webpackJsonp([0],{"+27R":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})})(n("PJh5"))},"+66z":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"+7/x":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})})(n("PJh5"))},"+Crt":function(e,t,n){"use strict";var r=n("TToO"),i=n("FQv3"),o="X-Amz-Date".toLowerCase(),a=["authorization",o,"date"],s="X-Amz-Signature".toLowerCase(),u="x-amz-content-sha256",c="X-Amz-Security-Token".toLowerCase(),l={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},d=/^proxy-/,p=/^sec-/,f="AWS4-HMAC-SHA256-PAYLOAD",h="UNSIGNED-PAYLOAD",m="aws4_request",v={},g=[];function y(e,t,n){return e+"/"+t+"/"+n+"/"+m}var b=function(e,t,n,o,a){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var s,u,c,l,d,p,f,h,y;return Object(r.__generator)(this,function(b){switch(b.label){case 0:return[4,_(e,t.secretAccessKey,t.accessKeyId)];case 1:if(s=b.sent(),(u=n+":"+o+":"+a+":"+Object(i.b)(s)+":"+t.sessionToken)in v)return[2,v[u]];for(g.push(u);g.length>50;)delete v[g.shift()];c="AWS4"+t.secretAccessKey,b.label=2;case 2:b.trys.push([2,7,8,9]),l=Object(r.__values)([n,o,a,m]),d=l.next(),b.label=3;case 3:return d.done?[3,6]:(p=d.value,[4,_(e,c,p)]);case 4:c=b.sent(),b.label=5;case 5:return d=l.next(),[3,3];case 6:return[3,9];case 7:return f=b.sent(),h={error:f},[3,9];case 8:try{d&&!d.done&&(y=l.return)&&y.call(l)}finally{if(h)throw h.error}return[7];case 9:return[2,v[u]=c]}})})};function w(){g.length=0,Object.keys(v).forEach(function(e){delete v[e]})}function _(e,t,n){var r=new e(t);return r.update(n),r.digest()}function S(e,t,n){var i,o,a=e.headers,s={};try{for(var u=Object(r.__values)(Object.keys(a).sort()),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.toLowerCase();(h in l||(null===t||void 0===t?void 0:t.has(h))||d.test(h)||p.test(h))&&(!n||n&&!n.has(h))||(s[h]=a[f].trim().replace(/\s+/g," "))}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return s}var x=n("iTMC");var E=n("DQeA");function T(e,t){var n=e.headers,o=e.body;return Object(r.__awaiter)(this,void 0,void 0,function(){var e,a,s,c,l,d,p;return Object(r.__generator)(this,function(f){switch(f.label){case 0:try{for(e=Object(r.__values)(Object.keys(n)),a=e.next();!a.done;a=e.next())if((s=a.value).toLowerCase()===u)return[2,n[s]]}catch(e){d={error:e}}finally{try{a&&!a.done&&(p=e.return)&&p.call(e)}finally{if(d)throw d.error}}return void 0!=o?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof o||ArrayBuffer.isView(o)||Object(E.a)(o)?((c=new t).update(o),l=i.b,[4,c.digest()]):[3,3];case 2:return[2,l.apply(void 0,[f.sent()])];case 3:return[2,h]}})})}function M(e){var t=e.headers,n=e.query,i=Object(r.__rest)(e,["headers","query"]);return Object(r.__assign)(Object(r.__assign)({},i),{headers:Object(r.__assign)({},t),query:n?function(e){return Object.keys(e).reduce(function(t,n){var i,o=e[n];return Object(r.__assign)(Object(r.__assign)({},t),((i={})[n]=Array.isArray(o)?Object(r.__spread)(o):o,i))},{})}(n):void 0})}function C(e){var t,n;e="function"==typeof e.clone?e.clone():M(e);try{for(var i=Object(r.__values)(Object.keys(e.headers)),o=i.next();!o.done;o=i.next()){var s=o.value;a.indexOf(s.toLowerCase())>-1&&delete e.headers[s]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return e}function I(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var L=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=A(r),this.credentialProvider=P(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(r.__awaiter)(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f,h,m,v,g,b,w,_,x,E,I,L,A,P;return Object(r.__generator)(this,function(O){switch(O.label){case 0:return n=t.signingDate,i=void 0===n?new Date:n,o=t.expiresIn,a=void 0===o?3600:o,s=t.unsignableHeaders,u=t.unhoistableHeaders,c=t.signableHeaders,l=t.signingRegion,d=t.signingService,[4,this.credentialProvider()];case 1:return p=O.sent(),null===l||void 0===l?[3,2]:(h=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:h=O.sent(),O.label=4;case 4:return f=h,m=k(i),v=m.longDate,g=m.shortDate,a>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(b=y(g,f,null!==d&&void 0!==d?d:this.service),w=function(e,t){var n,i,o;void 0===t&&(t={});var a="function"==typeof e.clone?e.clone():M(e),s=a.headers,u=a.query,c=void 0===u?{}:u;try{for(var l=Object(r.__values)(Object.keys(s)),d=l.next();!d.done;d=l.next()){var p=d.value,f=p.toLowerCase();"x-amz-"!==f.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(f))||(c[p]=s[p],delete s[p])}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return Object(r.__assign)(Object(r.__assign)({},e),{headers:s,query:c})}(C(e),{unhoistableHeaders:u}),p.sessionToken&&(w.query["X-Amz-Security-Token"]=p.sessionToken),w.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",w.query["X-Amz-Credential"]=p.accessKeyId+"/"+b,w.query["X-Amz-Date"]=v,w.query["X-Amz-Expires"]=a.toString(10),_=S(w,s,c),w.query["X-Amz-SignedHeaders"]=z(_),x=w.query,E="X-Amz-Signature",I=this.getSignature,L=[v,b,this.getSigningKey(p,f,g,d)],A=this.createCanonicalRequest,P=[w,_],[4,T(e,this.sha256)]);case 5:return[4,I.apply(this,L.concat([A.apply(this,P.concat([O.sent()]))]))];case 6:return x[E]=O.sent(),[2,w]}})})},e.prototype.sign=function(e,t){return Object(r.__awaiter)(this,void 0,void 0,function(){return Object(r.__generator)(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,o=e.payload,a=t.signingDate,s=void 0===a?new Date:a,u=t.priorSignature,c=t.signingRegion,l=t.signingService;return Object(r.__awaiter)(this,void 0,void 0,function(){var e,t,a,d,p,h,m,v,g,b,w;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return null===c||void 0===c?[3,1]:(t=c,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=r.sent(),r.label=3;case 3:return e=t,a=k(s),d=a.shortDate,p=a.longDate,h=y(d,e,null!==l&&void 0!==l?l:this.service),[4,T({headers:{},body:o},this.sha256)];case 4:return m=r.sent(),(v=new this.sha256).update(n),b=i.b,[4,v.digest()];case 5:return g=b.apply(void 0,[r.sent()]),w=[f,p,h,u,g,m].join("\n"),[2,this.signString(w,{signingDate:s,signingRegion:e,signingService:l})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,o=n.signingDate,a=void 0===o?new Date:o,s=n.signingRegion,u=n.signingService;return Object(r.__awaiter)(this,void 0,void 0,function(){var t,n,o,c,l,d,p,f;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return[4,this.credentialProvider()];case 1:return t=r.sent(),null===s||void 0===s?[3,2]:(o=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=r.sent(),r.label=4;case 4:return n=o,c=k(a).shortDate,p=(d=this.sha256).bind,[4,this.getSigningKey(t,n,c,u)];case 5:return(l=new(p.apply(d,[void 0,r.sent()]))).update(e),f=i.b,[4,l.digest()];case 6:return[2,f.apply(void 0,[r.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,i=n.signingDate,a=void 0===i?new Date:i,s=n.signableHeaders,l=n.unsignableHeaders,d=n.signingRegion,p=n.signingService;return Object(r.__awaiter)(this,void 0,void 0,function(){var t,n,i,f,h,m,v,g,b,w,_;return Object(r.__generator)(this,function(x){switch(x.label){case 0:return[4,this.credentialProvider()];case 1:return t=x.sent(),null===d||void 0===d?[3,2]:(i=d,[3,4]);case 2:return[4,this.regionProvider()];case 3:i=x.sent(),x.label=4;case 4:return n=i,f=C(e),h=k(a),m=h.longDate,v=h.shortDate,g=y(v,n,null!==p&&void 0!==p?p:this.service),f.headers[o]=m,t.sessionToken&&(f.headers[c]=t.sessionToken),[4,T(f,this.sha256)];case 5:return b=x.sent(),!function(e,t){var n,i;e=e.toLowerCase();try{for(var o=Object(r.__values)(Object.keys(t)),a=o.next();!a.done;a=o.next())if(e===a.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1}(u,f.headers)&&this.applyChecksum&&(f.headers[u]=b),w=S(f,l,s),[4,this.getSignature(m,g,this.getSigningKey(t,n,v,p),this.createCanonicalRequest(f,w,b))];case 6:return _=x.sent(),f.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+g+", SignedHeaders="+z(w)+", Signature="+_,[2,f]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var i=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,i=e.query,o=void 0===i?{}:i,a=[],u={},c=function(e){if(e.toLowerCase()===s)return"continue";a.push(e);var t=o[e];"string"==typeof t?u[e]=Object(x.a)(e)+"="+Object(x.a)(t):Array.isArray(t)&&(u[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([Object(x.a)(e)+"="+Object(x.a)(n)])},[]).join("&"))};try{for(var l=Object(r.__values)(Object.keys(o).sort()),d=l.next();!d.done;d=l.next())c(d.value)}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a.map(function(e){return u[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+i.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+i.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(r.__awaiter)(this,void 0,void 0,function(){var o,a;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return(o=new this.sha256).update(n),[4,o.digest()];case 1:return a=r.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(i.b)(a)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,o){return Object(r.__awaiter)(this,void 0,void 0,function(){var a,s,u,c,l;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return[4,this.createStringToSign(e,t,o)];case 1:return a=r.sent(),c=(u=this.sha256).bind,[4,n];case 2:return(s=new(c.apply(u,[void 0,r.sent()]))).update(a),l=i.b,[4,s.digest()];case 3:return[2,l.apply(void 0,[r.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return b(this.sha256,e,n,t,r||this.service)},e}(),k=function(e){var t=I(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},z=function(e){return Object.keys(e).sort().join(";")},A=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},P=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};n.d(t,!1,function(){return y}),n.d(t,!1,function(){return b}),n.d(t,!1,function(){return w}),n.d(t,"a",function(){return L})},"+E39":function(e,t,n){e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+HF9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateOperationNameMessage=i,t.UniqueOperationNames=function(e){var t=Object.create(null);return{OperationDefinition:function(n){var o=n.name;return o&&(t[o.value]?e.reportError(new r.GraphQLError(i(o.value),[t[o.value],o])):t[o.value]=o),!1},FragmentDefinition:function(){return!1}}};var r=n("QmgZ");function i(e){return'There can be only one operation named "'.concat(e,'".')}},"+Ue8":function(e,t){const n=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(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,t={}){if(t=Object.assign({},i,t),!e||"string"!=typeof e)return e;let o=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(o))return e;if(t.hex&&n.test(o))return Number.parseInt(o,16);{const n=r.exec(o);if(n){const r=n[1],i=n[2];let s=(a=n[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const u=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&r&&"."!==o[2])return e;if(!t.leadingZeros&&i.length>0&&!r&&"."!==o[1])return e;{const n=Number(o),a=""+n;return-1!==a.search(/[eE]/)?t.eNotation?n:e:u?t.eNotation?n:e:-1!==o.indexOf(".")?"0"===a&&""===s?n:a===s?n:r&&a==="-"+s?n:e:i?s===a?n:r+s===a?n:e:o===a?n:o===r+a?n:e}}return e}var a}},"+WA1":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})(n("PJh5"))},"+WEU":function(e,t,n){var r=n("ikxi");(r="function"==typeof r?r:window.Chart).Annotation=r.Annotation||{},r.Annotation.drawTimeOptions={afterDraw:"afterDraw",afterDatasetsDraw:"afterDatasetsDraw",beforeDatasetsDraw:"beforeDatasetsDraw"},r.Annotation.defaults={drawTime:"afterDatasetsDraw",dblClickSpeed:350,events:[],annotations:[]},r.Annotation.labelDefaults={backgroundColor:"rgba(0,0,0,0.8)",fontFamily:r.defaults.global.defaultFontFamily,fontSize:r.defaults.global.defaultFontSize,fontStyle:"bold",fontColor:"#fff",xPadding:6,yPadding:6,cornerRadius:6,position:"center",xAdjust:0,yAdjust:0,enabled:!1,content:null},r.Annotation.Element=n("Shgu")(r),r.Annotation.types={line:n("Ef6U")(r),box:n("Hc0a")(r)};var i=n("solA")(r);e.exports=i,r.pluginService.register(i)},"+WRH":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})})(n("PJh5"))},"+Wxh":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"getDescription",{enumerable:!0,get:function(){return u.getDescription}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return l.lexicographicSortSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return d.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return d.printType}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return d.printIntrospectionSchema}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return v.TypeInfo}}),Object.defineProperty(t,"coerceValue",{enumerable:!0,get:function(){return g.coerceValue}}),Object.defineProperty(t,"isValidJSValue",{enumerable:!0,get:function(){return y.isValidJSValue}}),Object.defineProperty(t,"isValidLiteralValue",{enumerable:!0,get:function(){return b.isValidLiteralValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return w.concatAST}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return _.separateOperations}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return S.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return S.isTypeSubTypeOf}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return S.doTypesOverlap}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return x.assertValidName}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return x.isValidNameError}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return E.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return E.DangerousChangeType}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return E.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return E.findDangerousChanges}}),Object.defineProperty(t,"findDeprecatedUsages",{enumerable:!0,get:function(){return T.findDeprecatedUsages}});var r=n("QT45"),i=n("a0Jq"),o=n("4wyj"),a=n("GSDy"),s=n("Mmjw"),u=n("3WU0"),c=n("Dd7q"),l=n("JtRM"),d=n("5e5i"),p=n("nIlP"),f=n("sU9v"),h=n("+deM"),m=n("f8D2"),v=n("nSZy"),g=n("cmKl"),y=n("tkST"),b=n("7kMQ"),w=n("OMK+"),_=n("O4iF"),S=n("UCA0"),x=n("bnlM"),E=n("6Wpm"),T=n("2H2I")},"+ZMJ":function(e,t,n){var r=n("lOnJ");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"+deM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case o.Kind.NULL:return null;case o.Kind.INT:return parseInt(t.value,10);case o.Kind.FLOAT:return parseFloat(t.value);case o.Kind.STRING:case o.Kind.ENUM:case o.Kind.BOOLEAN:return t.value;case o.Kind.LIST:return t.values.map(function(t){return e(t,n)});case o.Kind.OBJECT:return(0,r.default)(t.fields,function(e){return e.name.value},function(t){return e(t.value,n)});case o.Kind.VARIABLE:var a=t.name.value;return n&&!(0,i.default)(n[a])?n[a]:void 0}throw new Error("Unexpected value kind: "+t.kind)};var r=a(n("gJZj")),i=a(n("cHk2")),o=n("Jko5");function a(e){return e&&e.__esModule?e:{default:e}}},"+gg+":function(e,t,n){var r=n("TQ3y")["__core-js_shared__"];e.exports=r},"+lfL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(u())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}},"+tPU":function(e,t,n){n("xGkn");for(var r=n("7KvD"),i=n("hJx8"),o=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u0}).map(function(e){return null===e||void 0===e?void 0:e.replace(a,"_")}).join("/")},c={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},l=function(e){return{applyToStack:function(t){t.add(s(e),c)}}};n.d(t,"b",function(){return i}),n.d(t,!1,function(){return s}),n.d(t,!1,function(){return c}),n.d(t,"a",function(){return l})},"+tf3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("TToO").__exportStar(n("MgQf"),t)},"//Fk":function(e,t,n){e.exports={default:n("U5ju"),__esModule:!0}},"/6P1":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(r(e)?i(o)[1]:i(o)[0]):a?s+i(o)[1]:s+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})(n("PJh5"))},"/E8D":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},"/GnY":function(e,t,n){var r=n("HT7L"),i=n("W529"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"/I3N":function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"/THN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return e.reduce(function(e,n){return(0,i.default)(e)?e.then(function(e){return t(e,n)}):t(e,n)},n)};var r,i=(r=n("JiT4"))&&r.__esModule?r:{default:r}},"/Xb7":function(e,t,n){"use strict";t.a=function(e){var t,n,o=[];try{for(var a=Object(r.__values)(Object.keys(e).sort()),s=a.next();!s.done;s=a.next()){var u=s.value,c=e[u];if(u=Object(i.a)(u),Array.isArray(c))for(var l=0,d=c.length;l=300?[2,p(e,t)]:(n={$metadata:Q(e),botAlias:void 0,botName:void 0,sessionId:void 0,userId:void 0},[4,ee(e.body,t)]);case 1:return void 0!==(i=r.sent()).botAlias&&null!==i.botAlias&&(n.botAlias=i.botAlias),void 0!==i.botName&&null!==i.botName&&(n.botName=i.botName),void 0!==i.sessionId&&null!==i.sessionId&&(n.sessionId=i.sessionId),void 0!==i.userId&&null!==i.userId&&(n.userId=i.userId),[2,Promise.resolve(n)]}})})},p=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f,h;return Object(r.d)(this,function(m){switch(m.label){case 0:return i=[Object(r.a)({},e)],h={},[4,ee(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(h.body=m.sent(),h)])),a="UnknownError",a=te(e,n.body),a){case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,2];case"ConflictException":case"com.amazonaws.lexruntimeservice#ConflictException":return[3,4];case"InternalFailureException":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,6];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,8];case"NotFoundException":case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,10]}return[3,12];case 2:return s=[{}],[4,S(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([m.sent()])),{name:a,$metadata:Q(e)}]),[3,13];case 4:return u=[{}],[4,x(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([m.sent()])),{name:a,$metadata:Q(e)}]),[3,13];case 6:return c=[{}],[4,T(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([m.sent()])),{name:a,$metadata:Q(e)}]),[3,13];case 8:return l=[{}],[4,M(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([m.sent()])),{name:a,$metadata:Q(e)}]),[3,13];case 10:return d=[{}],[4,L(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,d.concat([m.sent()])),{name:a,$metadata:Q(e)}]),[3,13];case 12:p=n.body,a=p.code||p.Code||a,o=Object(r.a)(Object(r.a)({},p),{name:""+a,message:p.message||p.Message||a,$fault:"client",$metadata:Q(e)}),m.label=13;case 13:return f=o.message||o.Message||a,o.message=f,delete o.Message,[2,Promise.reject(Object.assign(new Error(f),o))]}})})},f=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i;return Object(r.d)(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,h(e,t)]:(n={$metadata:Q(e),activeContexts:void 0,dialogAction:void 0,recentIntentSummaryView:void 0,sessionAttributes:void 0,sessionId:void 0},[4,ee(e.body,t)]);case 1:return void 0!==(i=r.sent()).activeContexts&&null!==i.activeContexts&&(n.activeContexts=F(i.activeContexts,t)),void 0!==i.dialogAction&&null!==i.dialogAction&&(n.dialogAction=H(i.dialogAction,t)),void 0!==i.recentIntentSummaryView&&null!==i.recentIntentSummaryView&&(n.recentIntentSummaryView=q(i.recentIntentSummaryView,t)),void 0!==i.sessionAttributes&&null!==i.sessionAttributes&&(n.sessionAttributes=W(i.sessionAttributes,t)),void 0!==i.sessionId&&null!==i.sessionId&&(n.sessionId=i.sessionId),[2,Promise.resolve(n)]}})})},h=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f;return Object(r.d)(this,function(h){switch(h.label){case 0:return i=[Object(r.a)({},e)],f={},[4,ee(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(f.body=h.sent(),f)])),a="UnknownError",a=te(e,n.body),a){case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,2];case"InternalFailureException":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,4];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,6];case"NotFoundException":case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,8]}return[3,10];case 2:return s=[{}],[4,S(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([h.sent()])),{name:a,$metadata:Q(e)}]),[3,11];case 4:return u=[{}],[4,T(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([h.sent()])),{name:a,$metadata:Q(e)}]),[3,11];case 6:return c=[{}],[4,M(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([h.sent()])),{name:a,$metadata:Q(e)}]),[3,11];case 8:return l=[{}],[4,L(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([h.sent()])),{name:a,$metadata:Q(e)}]),[3,11];case 10:d=n.body,a=d.code||d.Code||a,o=Object(r.a)(Object(r.a)({},d),{name:""+a,message:d.message||d.Message||a,$fault:"client",$metadata:Q(e)}),h.label=11;case 11:return p=o.message||o.Message||a,o.message=p,delete o.Message,[2,Promise.reject(Object.assign(new Error(p),o))]}})})},m=function(t,n){return Object(r.b)(void 0,void 0,void 0,function(){var i,a;return Object(r.d)(this,function(r){return 200!==t.statusCode&&t.statusCode>=300?[2,v(t,n)]:(i={$metadata:Q(t),activeContexts:void 0,alternativeIntents:void 0,audioStream:void 0,botVersion:void 0,contentType:void 0,dialogState:void 0,inputTranscript:void 0,intentName:void 0,message:void 0,messageFormat:void 0,nluIntentConfidence:void 0,sentimentResponse:void 0,sessionAttributes:void 0,sessionId:void 0,slotToElicit:void 0,slots:void 0},void 0!==t.headers["content-type"]&&(i.contentType=t.headers["content-type"]),void 0!==t.headers["x-amz-lex-intent-name"]&&(i.intentName=t.headers["x-amz-lex-intent-name"]),void 0!==t.headers["x-amz-lex-nlu-intent-confidence"]&&(i.nluIntentConfidence=new o.c(e.from(t.headers["x-amz-lex-nlu-intent-confidence"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-alternative-intents"]&&(i.alternativeIntents=new o.c(e.from(t.headers["x-amz-lex-alternative-intents"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-slots"]&&(i.slots=new o.c(e.from(t.headers["x-amz-lex-slots"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-session-attributes"]&&(i.sessionAttributes=new o.c(e.from(t.headers["x-amz-lex-session-attributes"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-sentiment"]&&(i.sentimentResponse=t.headers["x-amz-lex-sentiment"]),void 0!==t.headers["x-amz-lex-message"]&&(i.message=t.headers["x-amz-lex-message"]),void 0!==t.headers["x-amz-lex-message-format"]&&(i.messageFormat=t.headers["x-amz-lex-message-format"]),void 0!==t.headers["x-amz-lex-dialog-state"]&&(i.dialogState=t.headers["x-amz-lex-dialog-state"]),void 0!==t.headers["x-amz-lex-slot-to-elicit"]&&(i.slotToElicit=t.headers["x-amz-lex-slot-to-elicit"]),void 0!==t.headers["x-amz-lex-input-transcript"]&&(i.inputTranscript=t.headers["x-amz-lex-input-transcript"]),void 0!==t.headers["x-amz-lex-bot-version"]&&(i.botVersion=t.headers["x-amz-lex-bot-version"]),void 0!==t.headers["x-amz-lex-session-id"]&&(i.sessionId=t.headers["x-amz-lex-session-id"]),void 0!==t.headers["x-amz-lex-active-contexts"]&&(i.activeContexts=new o.c(e.from(t.headers["x-amz-lex-active-contexts"],"base64").toString("ascii"))),a=t.body,i.audioStream=a,[2,Promise.resolve(i)])})})},v=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w;return Object(r.d)(this,function(A){switch(A.label){case 0:return i=[Object(r.a)({},e)],w={},[4,ee(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(w.body=A.sent(),w)])),a="UnknownError",a=te(e,n.body),a){case"BadGatewayException":case"com.amazonaws.lexruntimeservice#BadGatewayException":return[3,2];case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,4];case"ConflictException":case"com.amazonaws.lexruntimeservice#ConflictException":return[3,6];case"DependencyFailedException":case"com.amazonaws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureException":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,12];case"LoopDetectedException":case"com.amazonaws.lexruntimeservice#LoopDetectedException":return[3,14];case"NotAcceptableException":case"com.amazonaws.lexruntimeservice#NotAcceptableException":return[3,16];case"NotFoundException":case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,18];case"RequestTimeoutException":case"com.amazonaws.lexruntimeservice#RequestTimeoutException":return[3,20];case"UnsupportedMediaTypeException":case"com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":return[3,22]}return[3,24];case 2:return s=[{}],[4,_(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 4:return u=[{}],[4,S(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 6:return c=[{}],[4,x(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 8:return l=[{}],[4,E(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 10:return d=[{}],[4,T(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,d.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 12:return p=[{}],[4,M(n,t)];case 13:return o=r.a.apply(void 0,[r.a.apply(void 0,p.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 14:return f=[{}],[4,C(n,t)];case 15:return o=r.a.apply(void 0,[r.a.apply(void 0,f.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 16:return h=[{}],[4,I(n,t)];case 17:return o=r.a.apply(void 0,[r.a.apply(void 0,h.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 18:return m=[{}],[4,L(n,t)];case 19:return o=r.a.apply(void 0,[r.a.apply(void 0,m.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 20:return v=[{}],[4,k(n,t)];case 21:return o=r.a.apply(void 0,[r.a.apply(void 0,v.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 22:return g=[{}],[4,z(n,t)];case 23:return o=r.a.apply(void 0,[r.a.apply(void 0,g.concat([A.sent()])),{name:a,$metadata:Q(e)}]),[3,25];case 24:y=n.body,a=y.code||y.Code||a,o=Object(r.a)(Object(r.a)({},y),{name:""+a,message:y.message||y.Message||a,$fault:"client",$metadata:Q(e)}),A.label=25;case 25:return b=o.message||o.Message||a,o.message=b,delete o.Message,[2,Promise.reject(Object.assign(new Error(b),o))]}})})},g=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i;return Object(r.d)(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,y(e,t)]:(n={$metadata:Q(e),activeContexts:void 0,alternativeIntents:void 0,botVersion:void 0,dialogState:void 0,intentName:void 0,message:void 0,messageFormat:void 0,nluIntentConfidence:void 0,responseCard:void 0,sentimentResponse:void 0,sessionAttributes:void 0,sessionId:void 0,slotToElicit:void 0,slots:void 0},[4,ee(e.body,t)]);case 1:return void 0!==(i=r.sent()).activeContexts&&null!==i.activeContexts&&(n.activeContexts=F(i.activeContexts,t)),void 0!==i.alternativeIntents&&null!==i.alternativeIntents&&(n.alternativeIntents=U(i.alternativeIntents,t)),void 0!==i.botVersion&&null!==i.botVersion&&(n.botVersion=i.botVersion),void 0!==i.dialogState&&null!==i.dialogState&&(n.dialogState=i.dialogState),void 0!==i.intentName&&null!==i.intentName&&(n.intentName=i.intentName),void 0!==i.message&&null!==i.message&&(n.message=i.message),void 0!==i.messageFormat&&null!==i.messageFormat&&(n.messageFormat=i.messageFormat),void 0!==i.nluIntentConfidence&&null!==i.nluIntentConfidence&&(n.nluIntentConfidence=$(i.nluIntentConfidence,t)),void 0!==i.responseCard&&null!==i.responseCard&&(n.responseCard=G(i.responseCard,t)),void 0!==i.sentimentResponse&&null!==i.sentimentResponse&&(n.sentimentResponse=J(i.sentimentResponse,t)),void 0!==i.sessionAttributes&&null!==i.sessionAttributes&&(n.sessionAttributes=W(i.sessionAttributes,t)),void 0!==i.sessionId&&null!==i.sessionId&&(n.sessionId=i.sessionId),void 0!==i.slotToElicit&&null!==i.slotToElicit&&(n.slotToElicit=i.slotToElicit),void 0!==i.slots&&null!==i.slots&&(n.slots=W(i.slots,t)),[2,Promise.resolve(n)]}})})},y=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f,h,m,v,g;return Object(r.d)(this,function(y){switch(y.label){case 0:return i=[Object(r.a)({},e)],g={},[4,ee(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(g.body=y.sent(),g)])),a="UnknownError",a=te(e,n.body),a){case"BadGatewayException":case"com.amazonaws.lexruntimeservice#BadGatewayException":return[3,2];case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,4];case"ConflictException":case"com.amazonaws.lexruntimeservice#ConflictException":return[3,6];case"DependencyFailedException":case"com.amazonaws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureException":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,12];case"LoopDetectedException":case"com.amazonaws.lexruntimeservice#LoopDetectedException":return[3,14];case"NotFoundException":case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,16]}return[3,18];case 2:return s=[{}],[4,_(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 4:return u=[{}],[4,S(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 6:return c=[{}],[4,x(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 8:return l=[{}],[4,E(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 10:return d=[{}],[4,T(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,d.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 12:return p=[{}],[4,M(n,t)];case 13:return o=r.a.apply(void 0,[r.a.apply(void 0,p.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 14:return f=[{}],[4,C(n,t)];case 15:return o=r.a.apply(void 0,[r.a.apply(void 0,f.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 16:return h=[{}],[4,L(n,t)];case 17:return o=r.a.apply(void 0,[r.a.apply(void 0,h.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 18:m=n.body,a=m.code||m.Code||a,o=Object(r.a)(Object(r.a)({},m),{name:""+a,message:m.message||m.Message||a,$fault:"client",$metadata:Q(e)}),y.label=19;case 19:return v=o.message||o.Message||a,o.message=v,delete o.Message,[2,Promise.reject(Object.assign(new Error(v),o))]}})})},b=function(t,n){return Object(r.b)(void 0,void 0,void 0,function(){var i,a;return Object(r.d)(this,function(r){return 200!==t.statusCode&&t.statusCode>=300?[2,w(t,n)]:(i={$metadata:Q(t),activeContexts:void 0,audioStream:void 0,contentType:void 0,dialogState:void 0,intentName:void 0,message:void 0,messageFormat:void 0,sessionAttributes:void 0,sessionId:void 0,slotToElicit:void 0,slots:void 0},void 0!==t.headers["content-type"]&&(i.contentType=t.headers["content-type"]),void 0!==t.headers["x-amz-lex-intent-name"]&&(i.intentName=t.headers["x-amz-lex-intent-name"]),void 0!==t.headers["x-amz-lex-slots"]&&(i.slots=new o.c(e.from(t.headers["x-amz-lex-slots"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-session-attributes"]&&(i.sessionAttributes=new o.c(e.from(t.headers["x-amz-lex-session-attributes"],"base64").toString("ascii"))),void 0!==t.headers["x-amz-lex-message"]&&(i.message=t.headers["x-amz-lex-message"]),void 0!==t.headers["x-amz-lex-message-format"]&&(i.messageFormat=t.headers["x-amz-lex-message-format"]),void 0!==t.headers["x-amz-lex-dialog-state"]&&(i.dialogState=t.headers["x-amz-lex-dialog-state"]),void 0!==t.headers["x-amz-lex-slot-to-elicit"]&&(i.slotToElicit=t.headers["x-amz-lex-slot-to-elicit"]),void 0!==t.headers["x-amz-lex-session-id"]&&(i.sessionId=t.headers["x-amz-lex-session-id"]),void 0!==t.headers["x-amz-lex-active-contexts"]&&(i.activeContexts=new o.c(e.from(t.headers["x-amz-lex-active-contexts"],"base64").toString("ascii"))),a=t.body,i.audioStream=a,[2,Promise.resolve(i)])})})},w=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,d,p,f,h,m,v,g;return Object(r.d)(this,function(y){switch(y.label){case 0:return i=[Object(r.a)({},e)],g={},[4,ee(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(g.body=y.sent(),g)])),a="UnknownError",a=te(e,n.body),a){case"BadGatewayException":case"com.amazonaws.lexruntimeservice#BadGatewayException":return[3,2];case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,4];case"ConflictException":case"com.amazonaws.lexruntimeservice#ConflictException":return[3,6];case"DependencyFailedException":case"com.amazonaws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureException":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,12];case"NotAcceptableException":case"com.amazonaws.lexruntimeservice#NotAcceptableException":return[3,14];case"NotFoundException":case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,16]}return[3,18];case 2:return s=[{}],[4,_(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 4:return u=[{}],[4,S(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 6:return c=[{}],[4,x(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 8:return l=[{}],[4,E(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 10:return d=[{}],[4,T(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,d.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 12:return p=[{}],[4,M(n,t)];case 13:return o=r.a.apply(void 0,[r.a.apply(void 0,p.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 14:return f=[{}],[4,I(n,t)];case 15:return o=r.a.apply(void 0,[r.a.apply(void 0,f.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 16:return h=[{}],[4,L(n,t)];case 17:return o=r.a.apply(void 0,[r.a.apply(void 0,h.concat([y.sent()])),{name:a,$metadata:Q(e)}]),[3,19];case 18:m=n.body,a=m.code||m.Code||a,o=Object(r.a)(Object(r.a)({},m),{name:""+a,message:m.message||m.Message||a,$fault:"client",$metadata:Q(e)}),y.label=19;case 19:return v=o.message||o.Message||a,o.message=v,delete o.Message,[2,Promise.reject(Object.assign(new Error(v),o))]}})})},_=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"BadGatewayException",$fault:"server",$metadata:Q(e),Message:void 0},void 0!==(n=e.body).Message&&null!==n.Message&&(t.Message=n.Message),[2,t]})})},S=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"BadRequestException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},x=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"ConflictException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},E=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"DependencyFailedException",$fault:"client",$metadata:Q(e),Message:void 0},void 0!==(n=e.body).Message&&null!==n.Message&&(t.Message=n.Message),[2,t]})})},T=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"InternalFailureException",$fault:"server",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},M=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"LimitExceededException",$fault:"client",$metadata:Q(e),message:void 0,retryAfterSeconds:void 0},void 0!==e.headers["retry-after"]&&(t.retryAfterSeconds=e.headers["retry-after"]),void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},C=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"LoopDetectedException",$fault:"server",$metadata:Q(e),Message:void 0},void 0!==(n=e.body).Message&&null!==n.Message&&(t.Message=n.Message),[2,t]})})},I=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"NotAcceptableException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},L=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"NotFoundException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},k=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"RequestTimeoutException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},z=function(e,t){return Object(r.b)(void 0,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){return t={name:"UnsupportedMediaTypeException",$fault:"client",$metadata:Q(e),message:void 0},void 0!==(n=e.body).message&&null!==n.message&&(t.message=n.message),[2,t]})})},A=function(e,t){return Object.entries(e).reduce(function(e,t){var n,i=Object(r.e)(t,2),o=i[0],a=i[1];return null===a?e:Object(r.a)(Object(r.a)({},e),((n={})[o]=a,n))},{})},P=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)({},void 0!==e.name&&null!==e.name&&{name:e.name}),void 0!==e.parameters&&null!==e.parameters&&{parameters:A(e.parameters,t)}),void 0!==e.timeToLive&&null!==e.timeToLive&&{timeToLive:O(e.timeToLive,t)})}(e,t)})},O=function(e,t){return Object(r.a)(Object(r.a)({},void 0!==e.timeToLiveInSeconds&&null!==e.timeToLiveInSeconds&&{timeToLiveInSeconds:e.timeToLiveInSeconds}),void 0!==e.turnsToLive&&null!==e.turnsToLive&&{turnsToLive:e.turnsToLive})},D=function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},void 0!==e.fulfillmentState&&null!==e.fulfillmentState&&{fulfillmentState:e.fulfillmentState}),void 0!==e.intentName&&null!==e.intentName&&{intentName:e.intentName}),void 0!==e.message&&null!==e.message&&{message:e.message}),void 0!==e.messageFormat&&null!==e.messageFormat&&{messageFormat:e.messageFormat}),void 0!==e.slotToElicit&&null!==e.slotToElicit&&{slotToElicit:e.slotToElicit}),void 0!==e.slots&&null!==e.slots&&{slots:R(e.slots,t)}),void 0!==e.type&&null!==e.type&&{type:e.type})},N=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},void 0!==e.checkpointLabel&&null!==e.checkpointLabel&&{checkpointLabel:e.checkpointLabel}),void 0!==e.confirmationStatus&&null!==e.confirmationStatus&&{confirmationStatus:e.confirmationStatus}),void 0!==e.dialogActionType&&null!==e.dialogActionType&&{dialogActionType:e.dialogActionType}),void 0!==e.fulfillmentState&&null!==e.fulfillmentState&&{fulfillmentState:e.fulfillmentState}),void 0!==e.intentName&&null!==e.intentName&&{intentName:e.intentName}),void 0!==e.slotToElicit&&null!==e.slotToElicit&&{slotToElicit:e.slotToElicit}),void 0!==e.slots&&null!==e.slots&&{slots:R(e.slots,t)})}(e,t)})},R=function(e,t){return Object.entries(e).reduce(function(e,t){var n,i=Object(r.e)(t,2),o=i[0],a=i[1];return null===a?e:Object(r.a)(Object(r.a)({},e),((n={})[o]=a,n))},{})},j=function(e,t){return Object.entries(e).reduce(function(e,t){var n,i=Object(r.e)(t,2),o=i[0],a=i[1];return null===a?e:Object(r.a)(Object(r.a)({},e),((n={})[o]=a,n))},{})},F=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){return{name:void 0!==e.name&&null!==e.name?e.name:void 0,parameters:void 0!==e.parameters&&null!==e.parameters?j(e.parameters,t):void 0,timeToLive:void 0!==e.timeToLive&&null!==e.timeToLive?B(e.timeToLive,t):void 0}}(e,t)})},B=function(e,t){return{timeToLiveInSeconds:void 0!==e.timeToLiveInSeconds&&null!==e.timeToLiveInSeconds?e.timeToLiveInSeconds:void 0,turnsToLive:void 0!==e.turnsToLive&&null!==e.turnsToLive?e.turnsToLive:void 0}},H=function(e,t){return{fulfillmentState:void 0!==e.fulfillmentState&&null!==e.fulfillmentState?e.fulfillmentState:void 0,intentName:void 0!==e.intentName&&null!==e.intentName?e.intentName:void 0,message:void 0!==e.message&&null!==e.message?e.message:void 0,messageFormat:void 0!==e.messageFormat&&null!==e.messageFormat?e.messageFormat:void 0,slotToElicit:void 0!==e.slotToElicit&&null!==e.slotToElicit?e.slotToElicit:void 0,slots:void 0!==e.slots&&null!==e.slots?W(e.slots,t):void 0,type:void 0!==e.type&&null!==e.type?e.type:void 0}},V=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){return{attachmentLinkUrl:void 0!==e.attachmentLinkUrl&&null!==e.attachmentLinkUrl?e.attachmentLinkUrl:void 0,buttons:void 0!==e.buttons&&null!==e.buttons?Y(e.buttons,t):void 0,imageUrl:void 0!==e.imageUrl&&null!==e.imageUrl?e.imageUrl:void 0,subTitle:void 0!==e.subTitle&&null!==e.subTitle?e.subTitle:void 0,title:void 0!==e.title&&null!==e.title?e.title:void 0}}(e,t)})},$=function(e,t){return{score:void 0!==e.score&&null!==e.score?e.score:void 0}},U=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:K(e,t)})},q=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){return{checkpointLabel:void 0!==e.checkpointLabel&&null!==e.checkpointLabel?e.checkpointLabel:void 0,confirmationStatus:void 0!==e.confirmationStatus&&null!==e.confirmationStatus?e.confirmationStatus:void 0,dialogActionType:void 0!==e.dialogActionType&&null!==e.dialogActionType?e.dialogActionType:void 0,fulfillmentState:void 0!==e.fulfillmentState&&null!==e.fulfillmentState?e.fulfillmentState:void 0,intentName:void 0!==e.intentName&&null!==e.intentName?e.intentName:void 0,slotToElicit:void 0!==e.slotToElicit&&null!==e.slotToElicit?e.slotToElicit:void 0,slots:void 0!==e.slots&&null!==e.slots?W(e.slots,t):void 0}}(e,t)})},Y=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:{text:void 0!==(t=e).text&&null!==t.text?t.text:void 0,value:void 0!==t.value&&null!==t.value?t.value:void 0};var t})},K=function(e,t){return{intentName:void 0!==e.intentName&&null!==e.intentName?e.intentName:void 0,nluIntentConfidence:void 0!==e.nluIntentConfidence&&null!==e.nluIntentConfidence?$(e.nluIntentConfidence,t):void 0,slots:void 0!==e.slots&&null!==e.slots?W(e.slots,t):void 0}},G=function(e,t){return{contentType:void 0!==e.contentType&&null!==e.contentType?e.contentType:void 0,genericAttachments:void 0!==e.genericAttachments&&null!==e.genericAttachments?V(e.genericAttachments,t):void 0,version:void 0!==e.version&&null!==e.version?e.version:void 0}},J=function(e,t){return{sentimentLabel:void 0!==e.sentimentLabel&&null!==e.sentimentLabel?e.sentimentLabel:void 0,sentimentScore:void 0!==e.sentimentScore&&null!==e.sentimentScore?e.sentimentScore:void 0}},W=function(e,t){return Object.entries(e).reduce(function(e,t){var n,i=Object(r.e)(t,2),o=i[0],a=i[1];return null===a?e:Object(r.a)(Object(r.a)({},e),((n={})[o]=a,n))},{})},Q=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},X=function(e,t){return function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)}(e,t).then(function(e){return t.utf8Encoder(e)})},Z=function(e){return!(void 0===e||null===e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size)},ee=function(e,t){return X(e,t).then(function(e){return e.length?JSON.parse(e):{}})},te=function(e,t){var n,r,i=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""}}).call(t,n("EuP9").Buffer)},"/f1d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=function(e){if("function"==typeof TextEncoder)return function(e){return(new TextEncoder).encode(e)}(e);return function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},t.toUtf8=function(e){if("function"==typeof TextDecoder)return function(e){return new TextDecoder("utf-8").decode(e)}(e);return function(e){for(var t="",n=0,r=e.length;n=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})(n("PJh5"))},"/n6Q":function(e,t,n){n("zQR9"),n("+tPU"),e.exports=n("Kh4W").f("iterator")},"/ocq":function(e,t,n){"use strict"; /*! * vue-router v3.5.3 * (c) 2021 Evan You * @license MIT */function r(e,t){for(var n in t)e[n]=t[n];return e}var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,o).replace(a,",")};function u(e){try{return decodeURIComponent(e)}catch(e){0}return e}var c=function(e){return null==e||"object"==typeof e?e:String(e)};function l(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function d(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach(function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))}),r.join("&")}return s(t)+"="+s(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=h(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,i),matched:e?function(e){var t=[];for(;e;)t.unshift(e),e=e.parent;return t}(e):[]};return n&&(a.redirectedFrom=v(n,i)),Object.freeze(a)}function h(e){if(Array.isArray(e))return e.map(h);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=h(e[n]);return t}return e}var m=f(null,{path:"/"});function v(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||d)(r)+i}function g(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&(n||e.hash===t.hash&&y(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&y(e.query,t.query)&&y(e.params,t.params))))}function y(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every(function(n,i){var o=e[n];if(r[i]!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?y(o,a):String(o)===String(a)})}function b(e){for(var t=0;t=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(o.path||""),p=t&&t.path||"/",f=d.path?S(d.path,p,n||o.append):p,h=function(e,t,n){void 0===t&&(t={});var r,i=n||l;try{r=i(e||"")}catch(e){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(c):c(a)}return r}(d.query,o.query,i&&i.options.parseQuery),m=o.hash||d.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:h,hash:m}}var $,U=[String,Object],q=[String,Array],Y=function(){},K={name:"RouterLink",props:{to:{type:U,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:q,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,u=o.href,c={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,m=null==d?"router-link-exact-active":d,v=null==this.activeClass?h:this.activeClass,y=null==this.exactActiveClass?m:this.exactActiveClass,b=s.redirectedFrom?f(null,V(s.redirectedFrom),null,n):s;c[y]=g(i,b,this.exactPath),c[v]=this.exact||this.exactPath?c[y]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,b);var w=c[y]?this.ariaCurrentValue:null,_=function(e){G(e)&&(t.replace?n.replace(a,Y):n.push(a,Y))},S={click:G};Array.isArray(this.event)?this.event.forEach(function(e){S[e]=_}):S[this.event]=_;var x={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:_,isActive:c[v],isExactActive:c[y]});if(E){if(1===E.length)return E[0];if(E.length>1||!E.length)return 0===E.length?e():e("span",{},E)}if("a"===this.tag)x.on=S,x.attrs={href:u,"aria-current":w};else{var T=function e(t){if(t)for(var n,r=0;r-1&&(s.params[p]=n.params[p]);return s.path=H(l.path,s.params),u(l,s,a)}if(s.path){s.params={};for(var f=0;f=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}var we={redirected:2,aborted:4,cancelled:8,duplicated:16};function _e(e,t){return xe(e,t,we.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Ee.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function Se(e,t){return xe(e,t,we.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function xe(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Ee=["params","query","hash"];function Te(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Me(e,t){return Te(e)&&e._isRouter&&(null==t||e.type===t)}function Ce(e){return function(t,n,r){var i=!1,o=0,a=null;Ie(e,function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){i=!0,o++;var u,c=ze(function(t){var i;((i=t).__esModule||ke&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:$.extend(t),n.components[s]=t,--o<=0&&r()}),l=ze(function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Te(e)?e:new Error(t),r(a))});try{u=e(c,l)}catch(e){l(e)}if(u)if("function"==typeof u.then)u.then(c,l);else{var d=u.component;d&&"function"==typeof d.then&&d.then(c,l)}}}),i||r()}}function Ie(e,t){return Le(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function Le(e){return Array.prototype.concat.apply([],e)}var ke="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ze(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ae=function(e,t){this.router=e,this.base=function(e){if(!e)if(W){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Pe(e,t,n,r){var i=Ie(e,function(e,r,i,o){var a=function(e,t){"function"!=typeof e&&(e=$.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map(function(e){return n(e,r,i,o)}):n(a,r,i,o)});return Le(r?i.reverse():i)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}Ae.prototype.listen=function(e){this.cb=e},Ae.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Ae.prototype.onError=function(e){this.errorCbs.push(e)},Ae.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach(function(t){t(e)}),e}var o=this.current;this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach(function(e){e&&e(r,o)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){n&&n(e),e&&!i.ready&&(Me(e,we.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)})))})},Ae.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var o,a,s=function(e){!Me(e)&&Te(e)&&(r.errorCbs.length?r.errorCbs.forEach(function(t){t(e)}):console.error(e)),n&&n(e)},u=e.matched.length-1,c=i.matched.length-1;if(g(e,i)&&u===c&&e.matched[u]===i.matched[c])return this.ensureURL(),e.hash&&se(this.router,i,e,!1),s(((a=xe(o=i,e,we.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var l=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=ve&&n;r&&this.listeners.push(ae());var i=function(){var n=e.current,i=Ne(e.base);e.current===m&&i===e._startLocation||e.transitionTo(i,function(e){r&&se(t,e,n,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){ge(x(r.base+e.fullPath)),se(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){ye(x(r.base+e.fullPath)),se(r.router,e,i,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(Ne(this.base)!==this.current.fullPath){var t=x(this.base+this.current.fullPath);e?ge(t):ye(t)}},t.prototype.getCurrentLocation=function(){return Ne(this.base)},t}(Ae);function Ne(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(x(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Re=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Ne(e);if(!/^\/#/.test(t))return window.location.replace(x(e+"/#"+t)),!0}(this.base)||je()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=ve&&t;n&&this.listeners.push(ae());var r=function(){var t=e.current;je()&&e.transitionTo(Fe(),function(r){n&&se(e.router,r,t,!0),ve||Ve(r.fullPath)})},i=ve?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push(function(){window.removeEventListener(i,r)})}},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){He(e.fullPath),se(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){Ve(e.fullPath),se(r.router,e,i,!1),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Fe()!==t&&(e?He(t):Ve(t))},t.prototype.getCurrentLocation=function(){return Fe()},t}(Ae);function je(){var e=Fe();return"/"===e.charAt(0)||(Ve("/"+e),!1)}function Fe(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Be(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function He(e){ve?ge(Be(e)):window.location.hash=e}function Ve(e){ve?ye(Be(e)):window.location.replace(Be(e))}var $e=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach(function(t){t&&t(r,e)})},function(e){Me(e,we.duplicated)&&(t.index=n)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ae),Ue=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=X(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ve&&!1!==e.fallback,this.fallback&&(t="hash"),W||(t="abstract"),this.mode=t,t){case"history":this.history=new De(this,e.base);break;case"hash":this.history=new Re(this,e.base,this.fallback);break;case"abstract":this.history=new $e(this,e.base);break;default:0}},qe={currentRoute:{configurable:!0}};function Ye(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Ue.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},qe.currentRoute.get=function(){return this.history&&this.history.current},Ue.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof De||n instanceof Re){var r=function(e){n.setupListeners(),function(e){var r=n.current,i=t.options.scrollBehavior;ve&&i&&"fullPath"in e&&se(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},Ue.prototype.beforeEach=function(e){return Ye(this.beforeHooks,e)},Ue.prototype.beforeResolve=function(e){return Ye(this.resolveHooks,e)},Ue.prototype.afterEach=function(e){return Ye(this.afterHooks,e)},Ue.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ue.prototype.onError=function(e){this.history.onError(e)},Ue.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.push(e,t,n)});this.history.push(e,t,n)},Ue.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.replace(e,t,n)});this.history.replace(e,t,n)},Ue.prototype.go=function(e){this.history.go(e)},Ue.prototype.back=function(){this.go(-1)},Ue.prototype.forward=function(){this.go(1)},Ue.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Ue.prototype.resolve=function(e,t,n){var r=V(e,t=t||this.history.current,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?x(e+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ue.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ue.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Ue.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ue.prototype,qe),Ue.install=J,Ue.version="3.5.3",Ue.isNavigationFailure=Me,Ue.NavigationFailureType=we,Ue.START_LOCATION=m,W&&window.Vue&&window.Vue.use(Ue),t.a=Ue},"02Hb":function(e,t,n){(function(r){var i;i=function(){var e=e||function(e,t){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==r&&r.crypto&&(i=r.crypto),!i)try{i=n(0)}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},u=s.lib={},c=u.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=u.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},h=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,o);if(u){for(var d=0;d0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof d?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}Object.create;var f=n("Usjn"),h=n.n(f),m=n("gFtY"),v=n("OqwH"),g=n("X/+I"),y=n("iZss"),b=n("JVbd"),w=n("IhUy"),_=n("pK6L");var S,x,E,T,M,C,I,L,k,z,A,P,O,D,N,R,j,F,B,H,V,$,U,q,Y,K,G,J,W,Q,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,de,pe,fe,he,me,ve,ge,ye,be,we,_e,Se,xe,Ee,Te,Me,Ce,Ie,Le,ke,ze,Ae,Pe,Oe,De,Ne,Re,je,Fe,Be,He,Ve,$e,Ue,qe,Ye,Ke,Ge,Je,We,Qe,Xe,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,dt,pt,ft,ht,mt,vt,gt,yt,bt,wt,_t,St,xt,Et,Tt,Mt,Ct,It,Lt,kt,zt,At,Pt,Ot,Dt,Nt,Rt,jt,Ft,Bt,Ht,Vt,$t,Ut,qt,Yt,Kt,Gt,Jt,Wt,Qt,Xt,Zt,en,tn,nn,rn,on,an,sn,un,cn,ln,dn,pn,fn,hn,mn,vn,gn,yn,bn,wn,_n,Sn,xn,En,Tn,Mn,Cn,In,Ln,kn,zn,An,Pn,On,Dn,Nn,Rn,jn,Fn,Bn,Hn,Vn,$n,Un,qn,Yn,Kn,Gn,Jn,Wn,Qn,Xn,Zn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,dr,pr,fr,hr,mr,vr,gr,yr,br,wr,_r,Sr,xr,Er,Tr,Mr,Cr,Ir=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"]),Lr=new Set(["cn-north-1","cn-northwest-1"]),kr=new Set(["us-iso-east-1"]),zr=new Set(["us-isob-east-1"]),Ar=new Set(["us-gov-east-1","us-gov-west-1"]),Pr={apiVersion:"2016-06-27",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"rekognition.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"rekognition.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"rekognition.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"rekognition.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"rekognition.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"rekognition.ca-central-1.amazonaws.com",partition:"aws"};break;case"eu-central-1":n={hostname:"rekognition.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"rekognition.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"rekognition.eu-west-2.amazonaws.com",partition:"aws"};break;case"rekognition-fips.ca-central-1":n={hostname:"rekognition-fips.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"rekognition-fips.us-east-1":n={hostname:"rekognition-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"rekognition-fips.us-east-2":n={hostname:"rekognition-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"rekognition-fips.us-gov-west-1":n={hostname:"rekognition-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"rekognition-fips.us-west-1":n={hostname:"rekognition-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"rekognition-fips.us-west-2":n={hostname:"rekognition-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"us-east-1":n={hostname:"rekognition.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"rekognition.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"rekognition.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"rekognition.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"rekognition.us-west-2.amazonaws.com",partition:"aws"};break;default:Ir.has(e)&&(n={hostname:"rekognition.{region}.amazonaws.com".replace("{region}",e),partition:"aws"}),Lr.has(e)&&(n={hostname:"rekognition.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),kr.has(e)&&(n={hostname:"rekognition.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),zr.has(e)&&(n={hostname:"rekognition.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Ar.has(e)&&(n={hostname:"rekognition.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:"rekognition.{region}.amazonaws.com".replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"rekognition"},n))},serviceId:"Rekognition",urlParser:n("40b9").a},Or=o(o({},Pr),{runtime:"browser",base64Decoder:b.a,base64Encoder:b.b,bodyLengthChecker:w.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(_.a)({serviceId:Pr.serviceId,clientVersion:h.a.version}),maxAttempts:y.a,region:Object(g.a)("Region is missing"),requestHandler:new v.a,sha256:m.Sha256,streamCollector:v.b,utf8Decoder:function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},ec=n("LPDJ"),tc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"CompareFacesCommand",inputFilterSensitiveLog:ie.filterSensitiveLog,outputFilterSensitiveLog:se.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.CompareFaces"},r=JSON.stringify(io(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ur(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ia(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),nc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"CreateCollectionCommand",inputFilterSensitiveLog:be.filterSensitiveLog,outputFilterSensitiveLog:we.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.CreateCollection"},r=JSON.stringify(oo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,qr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=za(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),rc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"CreateProjectCommand",inputFilterSensitiveLog:Se.filterSensitiveLog,outputFilterSensitiveLog:xe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.CreateProject"},r=JSON.stringify(ao(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Yr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Aa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),ic=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"CreateProjectVersionCommand",inputFilterSensitiveLog:Le.filterSensitiveLog,outputFilterSensitiveLog:ke.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.CreateProjectVersion"},r=JSON.stringify(so(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Kr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Pa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),oc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"CreateStreamProcessorCommand",inputFilterSensitiveLog:je.filterSensitiveLog,outputFilterSensitiveLog:Fe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.CreateStreamProcessor"},r=JSON.stringify(uo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Gr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Oa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),ac=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DeleteCollectionCommand",inputFilterSensitiveLog:$e.filterSensitiveLog,outputFilterSensitiveLog:Ue.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DeleteCollection"},r=JSON.stringify(co(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Jr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Na(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),sc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DeleteFacesCommand",inputFilterSensitiveLog:qe.filterSensitiveLog,outputFilterSensitiveLog:Ye.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DeleteFaces"},r=JSON.stringify(lo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Wr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ra(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),uc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DeleteProjectCommand",inputFilterSensitiveLog:Ke.filterSensitiveLog,outputFilterSensitiveLog:Je.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DeleteProject"},r=JSON.stringify(po(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Qr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ja(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),cc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DeleteProjectVersionCommand",inputFilterSensitiveLog:We.filterSensitiveLog,outputFilterSensitiveLog:Xe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DeleteProjectVersion"},r=JSON.stringify(fo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Xr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Fa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),lc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DeleteStreamProcessorCommand",inputFilterSensitiveLog:Ze.filterSensitiveLog,outputFilterSensitiveLog:et.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DeleteStreamProcessor"},r=JSON.stringify(ho(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Zr(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ba(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),dc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DescribeCollectionCommand",inputFilterSensitiveLog:tt.filterSensitiveLog,outputFilterSensitiveLog:nt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DescribeCollection"},r=JSON.stringify(mo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ei(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ha(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),pc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DescribeProjectVersionsCommand",inputFilterSensitiveLog:st.filterSensitiveLog,outputFilterSensitiveLog:ht.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DescribeProjectVersions"},r=JSON.stringify(go(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ni(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=$a(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),fc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DescribeProjectsCommand",inputFilterSensitiveLog:rt.filterSensitiveLog,outputFilterSensitiveLog:ot.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DescribeProjects"},r=JSON.stringify(vo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ti(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Va(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),hc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DescribeStreamProcessorCommand",inputFilterSensitiveLog:mt.filterSensitiveLog,outputFilterSensitiveLog:gt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DescribeStreamProcessor"},r=JSON.stringify(yo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ri(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ua(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),mc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectCustomLabelsCommand",inputFilterSensitiveLog:yt.filterSensitiveLog,outputFilterSensitiveLog:bt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectCustomLabels"},r=JSON.stringify(bo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ii(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=qa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),vc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectFacesCommand",inputFilterSensitiveLog:_t.filterSensitiveLog,outputFilterSensitiveLog:St.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectFaces"},r=JSON.stringify(wo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,oi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ya(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),gc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectLabelsCommand",inputFilterSensitiveLog:Et.filterSensitiveLog,outputFilterSensitiveLog:It.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectLabels"},r=JSON.stringify(So(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ai(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ka(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),yc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectModerationLabelsCommand",inputFilterSensitiveLog:zt.filterSensitiveLog,outputFilterSensitiveLog:Pt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectModerationLabels"},r=JSON.stringify(xo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,si(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ga(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),bc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectProtectiveEquipmentCommand",inputFilterSensitiveLog:Nt.filterSensitiveLog,outputFilterSensitiveLog:Ft.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectProtectiveEquipment"},r=JSON.stringify(Eo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ui(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ja(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),wc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"DetectTextCommand",inputFilterSensitiveLog:Vt.filterSensitiveLog,outputFilterSensitiveLog:qt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.DetectText"},r=JSON.stringify(To(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ci(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Wa(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),_c=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetCelebrityInfoCommand",inputFilterSensitiveLog:Xt.filterSensitiveLog,outputFilterSensitiveLog:Zt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetCelebrityInfo"},r=JSON.stringify(Co(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,li(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ss(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Sc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetCelebrityRecognitionCommand",inputFilterSensitiveLog:en.filterSensitiveLog,outputFilterSensitiveLog:rn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetCelebrityRecognition"},r=JSON.stringify(Io(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,di(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=us(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),xc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetContentModerationCommand",inputFilterSensitiveLog:on.filterSensitiveLog,outputFilterSensitiveLog:an.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetContentModeration"},r=JSON.stringify(Lo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,pi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=cs(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Ec=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetFaceDetectionCommand",inputFilterSensitiveLog:sn.filterSensitiveLog,outputFilterSensitiveLog:un.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetFaceDetection"},r=JSON.stringify(ko(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,fi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ls(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Tc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetFaceSearchCommand",inputFilterSensitiveLog:cn.filterSensitiveLog,outputFilterSensitiveLog:pn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetFaceSearch"},r=JSON.stringify(zo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,hi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ds(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Mc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetLabelDetectionCommand",inputFilterSensitiveLog:hn.filterSensitiveLog,outputFilterSensitiveLog:vn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetLabelDetection"},r=JSON.stringify(Ao(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,mi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ps(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Cc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetPersonTrackingCommand",inputFilterSensitiveLog:yn.filterSensitiveLog,outputFilterSensitiveLog:wn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetPersonTracking"},r=JSON.stringify(Po(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,vi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=fs(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Ic=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetSegmentDetectionCommand",inputFilterSensitiveLog:_n.filterSensitiveLog,outputFilterSensitiveLog:In.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetSegmentDetection"},r=JSON.stringify(Oo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,gi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=hs(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Lc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"GetTextDetectionCommand",inputFilterSensitiveLog:Ln.filterSensitiveLog,outputFilterSensitiveLog:zn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.GetTextDetection"},r=JSON.stringify(Do(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,yi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ms(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),kc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"IndexFacesCommand",inputFilterSensitiveLog:Pn.filterSensitiveLog,outputFilterSensitiveLog:Nn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.IndexFaces"},r=JSON.stringify(Bo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,bi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=xs(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),zc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"ListCollectionsCommand",inputFilterSensitiveLog:jn.filterSensitiveLog,outputFilterSensitiveLog:Fn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.ListCollections"},r=JSON.stringify(Ho(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,wi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ds(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Ac=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"ListFacesCommand",inputFilterSensitiveLog:Bn.filterSensitiveLog,outputFilterSensitiveLog:Hn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.ListFaces"},r=JSON.stringify(Vo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,_i(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Ns(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Pc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"ListStreamProcessorsCommand",inputFilterSensitiveLog:Vn.filterSensitiveLog,outputFilterSensitiveLog:Un.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.ListStreamProcessors"},r=JSON.stringify($o(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Si(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Rs(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Oc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"RecognizeCelebritiesCommand",inputFilterSensitiveLog:Yn.filterSensitiveLog,outputFilterSensitiveLog:Kn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.RecognizeCelebrities"},r=JSON.stringify(Go(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,xi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=ru(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Dc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"SearchFacesByImageCommand",inputFilterSensitiveLog:Wn.filterSensitiveLog,outputFilterSensitiveLog:Qn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.SearchFacesByImage"},r=JSON.stringify(Xo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ti(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=cu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Nc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"SearchFacesCommand",inputFilterSensitiveLog:Gn.filterSensitiveLog,outputFilterSensitiveLog:Jn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.SearchFaces"},r=JSON.stringify(Zo(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ei(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=lu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Rc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartCelebrityRecognitionCommand",inputFilterSensitiveLog:Zn.filterSensitiveLog,outputFilterSensitiveLog:er.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartCelebrityRecognition"},r=JSON.stringify(ea(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Mi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=vu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),jc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartContentModerationCommand",inputFilterSensitiveLog:nr.filterSensitiveLog,outputFilterSensitiveLog:rr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartContentModeration"},r=JSON.stringify(ta(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ci(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=gu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Fc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartFaceDetectionCommand",inputFilterSensitiveLog:ir.filterSensitiveLog,outputFilterSensitiveLog:or.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartFaceDetection"},r=JSON.stringify(na(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ii(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=yu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Bc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartFaceSearchCommand",inputFilterSensitiveLog:ar.filterSensitiveLog,outputFilterSensitiveLog:sr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartFaceSearch"},r=JSON.stringify(ra(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Li(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=bu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Hc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartLabelDetectionCommand",inputFilterSensitiveLog:ur.filterSensitiveLog,outputFilterSensitiveLog:cr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartLabelDetection"},r=JSON.stringify(ia(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ki(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=wu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Vc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartPersonTrackingCommand",inputFilterSensitiveLog:lr.filterSensitiveLog,outputFilterSensitiveLog:dr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartPersonTracking"},r=JSON.stringify(oa(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,zi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=_u(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),$c=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartProjectVersionCommand",inputFilterSensitiveLog:pr.filterSensitiveLog,outputFilterSensitiveLog:fr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartProjectVersion"},r=JSON.stringify(aa(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ai(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Su(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Uc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartSegmentDetectionCommand",inputFilterSensitiveLog:gr.filterSensitiveLog,outputFilterSensitiveLog:yr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartSegmentDetection"},r=JSON.stringify(sa(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Pi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=xu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),qc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartStreamProcessorCommand",inputFilterSensitiveLog:br.filterSensitiveLog,outputFilterSensitiveLog:wr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartStreamProcessor"},r=JSON.stringify(ca(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Oi(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Eu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Yc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StartTextDetectionCommand",inputFilterSensitiveLog:Sr.filterSensitiveLog,outputFilterSensitiveLog:xr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StartTextDetection"},r=JSON.stringify(da(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Di(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Tu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Kc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StopProjectVersionCommand",inputFilterSensitiveLog:Er.filterSensitiveLog,outputFilterSensitiveLog:Tr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StopProjectVersion"},r=JSON.stringify(pa(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ni(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Mu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Gc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ec.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"RekognitionClient",commandName:"StopStreamProcessorCommand",inputFilterSensitiveLog:Mr.filterSensitiveLog,outputFilterSensitiveLog:Cr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"RekognitionService.StopStreamProcessor"},r=JSON.stringify(fa(e,t)),[2,Qu(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ri(e,t)]:[4,Xu(e.body,t)];case 1:return n=a.sent(),r={},r=Cu(n,t),i=o({$metadata:Ju(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Hr.b),Jc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.compareFaces=function(e,t,n){var r=new tc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createCollection=function(e,t,n){var r=new nc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createProject=function(e,t,n){var r=new rc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createProjectVersion=function(e,t,n){var r=new ic(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createStreamProcessor=function(e,t,n){var r=new oc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteCollection=function(e,t,n){var r=new ac(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteFaces=function(e,t,n){var r=new sc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteProject=function(e,t,n){var r=new uc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteProjectVersion=function(e,t,n){var r=new cc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteStreamProcessor=function(e,t,n){var r=new lc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeCollection=function(e,t,n){var r=new dc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeProjects=function(e,t,n){var r=new fc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeProjectVersions=function(e,t,n){var r=new pc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeStreamProcessor=function(e,t,n){var r=new hc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectCustomLabels=function(e,t,n){var r=new mc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectFaces=function(e,t,n){var r=new vc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectLabels=function(e,t,n){var r=new gc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectModerationLabels=function(e,t,n){var r=new yc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectProtectiveEquipment=function(e,t,n){var r=new bc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectText=function(e,t,n){var r=new wc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCelebrityInfo=function(e,t,n){var r=new _c(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCelebrityRecognition=function(e,t,n){var r=new Sc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getContentModeration=function(e,t,n){var r=new xc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getFaceDetection=function(e,t,n){var r=new Ec(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getFaceSearch=function(e,t,n){var r=new Tc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getLabelDetection=function(e,t,n){var r=new Mc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getPersonTracking=function(e,t,n){var r=new Cc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegmentDetection=function(e,t,n){var r=new Ic(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getTextDetection=function(e,t,n){var r=new Lc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.indexFaces=function(e,t,n){var r=new kc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listCollections=function(e,t,n){var r=new zc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listFaces=function(e,t,n){var r=new Ac(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listStreamProcessors=function(e,t,n){var r=new Pc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.recognizeCelebrities=function(e,t,n){var r=new Oc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.searchFaces=function(e,t,n){var r=new Nc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.searchFacesByImage=function(e,t,n){var r=new Dc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startCelebrityRecognition=function(e,t,n){var r=new Rc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startContentModeration=function(e,t,n){var r=new jc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startFaceDetection=function(e,t,n){var r=new Fc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startFaceSearch=function(e,t,n){var r=new Bc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startLabelDetection=function(e,t,n){var r=new Hc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startPersonTracking=function(e,t,n){var r=new Vc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startProjectVersion=function(e,t,n){var r=new $c(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startSegmentDetection=function(e,t,n){var r=new Uc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startStreamProcessor=function(e,t,n){var r=new qc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startTextDetection=function(e,t,n){var r=new Yc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopProjectVersion=function(e,t,n){var r=new Kc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopStreamProcessor=function(e,t,n){var r=new Gc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t}(Vr),Wc=function(e,t){for(var n=[],r=2;r0;try{for(i=u(c()),o=i.next();!o.done;o=i.next())a=o.value,r=r&&"RUNNING"==a}catch(e){f={error:e}}finally{try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(f)throw f.error}}if(r)return[2,{state:nl.a.SUCCESS}]}catch(e){}try{c=function(){return[].concat.apply([],l(n.ProjectVersionDescriptions)).map(function(e){return e.Status})};try{for(d=u(c()),p=d.next();!p.done;p=d.next())if("FAILED"==p.value)return[2,{state:nl.a.FAILURE}]}catch(e){m={error:e}}finally{try{p&&!p.done&&(v=d.return)&&v.call(d)}finally{if(m)throw m.error}}}catch(e){}return[3,3];case 2:return s.sent(),[3,3];case 3:return[2,{state:nl.a.RETRY}]}})})},il=function(e,t){return a(void 0,void 0,void 0,function(){var n;return s(this,function(r){return n={minDelay:30,maxDelay:120},[2,Object(nl.b)(o(o({},n),e),t,rl)]})})},ol=function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,o,a,c,d,p,f,h,m,v;return s(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,e.send(new pc(t))];case 1:n=s.sent();try{r=(c=function(){return[].concat.apply([],l(n.ProjectVersionDescriptions)).map(function(e){return e.Status})})().length>0;try{for(i=u(c()),o=i.next();!o.done;o=i.next())a=o.value,r=r&&"TRAINING_COMPLETED"==a}catch(e){f={error:e}}finally{try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(f)throw f.error}}if(r)return[2,{state:nl.a.SUCCESS}]}catch(e){}try{c=function(){return[].concat.apply([],l(n.ProjectVersionDescriptions)).map(function(e){return e.Status})};try{for(d=u(c()),p=d.next();!p.done;p=d.next())if("TRAINING_FAILED"==p.value)return[2,{state:nl.a.FAILURE}]}catch(e){m={error:e}}finally{try{p&&!p.done&&(v=d.return)&&v.call(d)}finally{if(m)throw m.error}}}catch(e){}return[3,3];case 2:return s.sent(),[3,3];case 3:return[2,{state:nl.a.RETRY}]}})})},al=function(e,t){return a(void 0,void 0,void 0,function(){var n;return s(this,function(r){return n={minDelay:120,maxDelay:120},[2,Object(nl.b)(o(o({},n),e),t,ol)]})})},sl=function(e,t){for(var n=[],r=2;r=3?e:e+12:"বিকাল"===t?e+12:"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})})(n("PJh5"))},"1Yb9":function(e,t,n){var r=n("mgnk"),i=n("UnEC"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},"1alW":function(e,t,n){var r=n("kM2E");r(r.S,"Number",{isInteger:n("AKgy")})},"1h2T":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("TToO"),i=n("HsNP"),o=n("AH5d"),a=n("/f1d"),s=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=u(e);if(t.byteLength>i.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var r=0;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]C.length?[2,S]:[2,Object(d.b)(C)];case 9:return E=m.sent(),Promise.reject(E),[3,10];case 10:return[3,15];case 11:T={Document:f,FeatureTypes:g},m.label=12;case 12:return m.trys.push([12,14,,15]),M=new c.a(T),[4,this.textractClient.send(M)];case 13:return C=m.sent().Blocks,[2,Object(d.b)(C)];case 14:return I=m.sent(),[2,Promise.reject(I)];case 15:return[2]}})})},n.prototype.identifyLabels=function(e){return h(this,void 0,void 0,function(){var t,n,r,o,a,u,c,l,d,p,h,v,g;return m(this,function(m){switch(m.label){case 0:return m.trys.push([0,3,,4]),[4,i.e.get()];case 1:return(t=m.sent())?(n=this._config.identifyLabels,o=(r=void 0===n?{}:n).region,a=void 0===o?"":o,u=r.defaults,c=(void 0===u?{}:u).type,l=void 0===c?"LABELS":c,this.rekognitionClient=new s.f({region:a,credentials:t,customUserAgent:Object(i.v)()}),[4,this.configureSource(e.labels.source).then(function(e){d=e}).catch(function(e){return Promise.reject(e)})]):[2,Promise.reject("No credentials")];case 2:return m.sent(),p={Image:d},h=[],"LABELS"!==(v=e.labels.type||l)&&"ALL"!==v||h.push(this.detectLabels(p)),"UNSAFE"!==v&&"ALL"!==v||h.push(this.detectModerationLabels(p)),[2,Promise.all(h).then(function(e){var t={};return e.forEach(function(e){t=f(f({},t),e)}),t}).catch(function(e){return Promise.reject(e)})];case 3:return g=m.sent(),[2,Promise.reject(g)];case 4:return[2]}})})},n.prototype.detectLabels=function(e){return h(this,void 0,void 0,function(){var t,n,r;return m(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=new s.b(e),[4,this.rekognitionClient.send(t)];case 1:return(n=i.sent()).Labels?[2,{labels:n.Labels.map(function(e){var t=e.Instances?e.Instances.map(function(e){return Object(l.b)(e.BoundingBox)}):void 0;return{name:e.Name,boundingBoxes:t,metadata:{confidence:e.Confidence,parents:Object(l.c)(e.Parents)}}})}]:[2,{labels:null}];case 2:return r=i.sent(),[2,Promise.reject(r)];case 3:return[2]}})})},n.prototype.detectModerationLabels=function(e){return h(this,void 0,void 0,function(){var t,n;return m(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=new s.c(e),[4,this.rekognitionClient.send(t)];case 1:return 0!==r.sent().ModerationLabels.length?[2,{unsafe:"YES"}]:[2,{unsafe:"NO"}];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})},n.prototype.identifyEntities=function(e){return h(this,void 0,void 0,function(){var t,n,r,o,a,c,d,p,h,v,g,y,b,w,_,S,x,E,T,M,C,I,L,k,z,A,P,O,D=this;return m(this,function(m){switch(m.label){case 0:return[4,i.e.get()];case 1:return(t=m.sent())?(n=this._config.identifyEntities,o=(r=void 0===n?{}:n).region,a=void 0===o?"":o,c=r.celebrityDetectionEnabled,d=void 0!==c&&c,p=r.defaults,v=(h=void 0===p?{}:p).collectionId,g=void 0===v?"":v,y=h.maxEntities,b=void 0===y?50:y,this.rekognitionClient=new s.f({region:a,credentials:t,customUserAgent:Object(i.v)()}),[4,this.configureSource(e.entities.source).then(function(e){return w=e}).catch(function(e){return Promise.reject(e)})]):[2,Promise.reject("No credentials")];case 2:if(m.sent(),_={Image:w},!Object(u.d)(e.entities)||!e.entities.celebrityDetection)return[3,7];if(!d)return[2,Promise.reject("Error: You have to enable celebrity detection first")];m.label=3;case 3:return m.trys.push([3,5,,6]),S=new s.e(_),[4,this.rekognitionClient.send(S)];case 4:return P=m.sent(),[2,{entities:P.CelebrityFaces.map(function(e){return{boundingBox:Object(l.b)(e.Face.BoundingBox),landmarks:Object(l.c)(e.Face.Landmarks),metadata:f(f({},Object(l.b)(e,["Id","Name","Urls"])),{pose:Object(l.b)(e.Face.Pose)})}})}];case 5:return x=m.sent(),[2,Promise.reject(x)];case 6:return[3,15];case 7:if(!Object(u.e)(e.entities)||!e.entities.collection)return[3,12];E=e.entities,T=E.collectionId,M=void 0===T?g:T,C=E.maxEntities,I=void 0===C?b:C,L=f(f({},_),{CollectionId:M,MaxFaces:I}),m.label=8;case 8:return m.trys.push([8,10,,11]),k=new s.g(L),[4,this.rekognitionClient.send(k)];case 9:return P=m.sent(),[2,{entities:P.FaceMatches.map(function(e){return{boundingBox:Object(l.b)(e.Face.BoundingBox),metadata:{externalImageId:D.decodeExternalImageId(e.Face.ExternalImageId),similarity:e.Similarity}}})}];case 10:return z=m.sent(),[2,Promise.reject(z)];case 11:return[3,15];case 12:return m.trys.push([12,14,,15]),A=new s.a(_),[4,this.rekognitionClient.send(A)];case 13:return P=m.sent(),[2,{entities:P.FaceDetails.map(function(e){var t=["Smile","Eyeglasses","Sunglasses","Gender","Beard","Mustache","EyesOpen","MouthOpen"],n=Object(l.b)(e,t);return e.Emotions&&(n.emotions=e.Emotions.map(function(e){return e.Type})),{boundingBox:Object(l.b)(e.BoundingBox),landmarks:Object(l.c)(e.Landmarks),ageRange:Object(l.b)(e.AgeRange),attributes:Object(l.b)(e,t),metadata:{confidence:e.Confidence,pose:Object(l.b)(e.Pose)}}})}];case 14:return O=m.sent(),[2,Promise.reject(O)];case 15:return[2]}})})},n.prototype.decodeExternalImageId=function(e){return(""+e).replace(/::/g,"/")},n}(a.a)}).call(t,n("EuP9").Buffer)},"20ml":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return a.FieldsOnCorrectType}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return s.FragmentsOnCompositeTypes}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return u.KnownArgumentNames}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectives}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return l.KnownFragmentNames}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNames}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return p.LoneAnonymousOperation}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return f.NoFragmentCycles}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return h.NoUndefinedVariables}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return m.NoUnusedFragments}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariables}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return g.OverlappingFieldsCanBeMerged}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return y.PossibleFragmentSpreads}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return b.ProvidedRequiredArguments}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return w.ScalarLeafs}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return _.SingleFieldSubscriptions}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return S.UniqueArgumentNames}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return x.UniqueDirectivesPerLocation}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return E.UniqueFragmentNames}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return T.UniqueInputFieldNames}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return M.UniqueOperationNames}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return C.UniqueVariableNames}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return I.ValuesOfCorrectType}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return L.VariablesAreInputTypes}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return k.VariablesInAllowedPosition}});var r=n("Wffn"),i=n("mCXM"),o=n("vPSl"),a=n("wUdp"),s=n("uani"),u=n("IzbH"),c=n("Ei90"),l=n("EqjL"),d=n("dZ4Z"),p=n("Lf7X"),f=n("6QL3"),h=n("pvCj"),m=n("b7bf"),v=n("MS6H"),g=n("CFfv"),y=n("HesH"),b=n("Qdvv"),w=n("XrST"),_=n("5IOP"),S=n("MWXf"),x=n("GJB4"),E=n("Bl0V"),T=n("Yks8"),M=n("+HF9"),C=n("8i8s"),I=n("t9z5"),L=n("3yaZ"),k=n("giQx")},"21It":function(e,t,n){"use strict";var r=n("FtD3");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"22B7":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"2BIt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"embedDashboard",{enumerable:!0,get:function(){return r.embedDashboard}}),Object.defineProperty(t,"embedQSearchBar",{enumerable:!0,get:function(){return r.embedQSearchBar}}),Object.defineProperty(t,"embedSession",{enumerable:!0,get:function(){return r.embedSession}}),Object.defineProperty(t,"embedVisual",{enumerable:!0,get:function(){return r.embedVisual}});var r=n("b5Xt")},"2H2I":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findDeprecatedUsages=function(e,t){var n=[],s=new a.TypeInfo(e);return(0,i.visit)(t,(0,i.visitWithTypeInfo)(s,{Field:function(e){var t=s.getFieldDef();if(t&&t.isDeprecated){var i=s.getParentType();if(i){var o=t.deprecationReason;n.push(new r.GraphQLError("The field ".concat(i.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),[e]))}}},EnumValue:function(e){var t=s.getEnumValue();if(t&&t.isDeprecated){var i=(0,o.getNamedType)(s.getInputType());if(i){var a=t.deprecationReason;n.push(new r.GraphQLError("The enum value ".concat(i.name,".").concat(t.name," is deprecated.")+(a?" "+a:""),[e]))}}}})),n};var r=n("QmgZ"),i=n("Hw4J"),o=n("AS5q"),a=n("nSZy")},"2Hvv":function(e,t,n){var r=n("imBK");e.exports=function(e){return r(this.__data__,e)>-1}},"2KxR":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"2Uzw":function(e,t,n){var r,i,o=n("Ekz1"),a=n("VZcw"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},"2X2u":function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n=20?"ste":"de")},week:{dow:1,doy:4}})})(n("PJh5"))},"3Eo+":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"3F7K":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n("EgU/");Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var i=n("WC9o");Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=n("fmow");Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=n("iNXb");Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},"3IRH":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"3K28":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})(n("PJh5"))},"3LKG":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})(n("PJh5"))},"3MVc":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),u=i[e][r(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n("PJh5"))},"3WU0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=_,t.getDescription=E,t.buildSchema=function(e,t){return _((0,l.parse)(e,t),t)},t.ASTDefinitionBuilder=void 0;var r=b(n("JiIc")),i=b(n("Qnzv")),o=b(n("gJZj")),a=n("sU9v"),s=n("Wffn"),u=b(n("5Xbz")),c=n("AxoS"),l=n("6u75"),d=n("tSvn"),p=n("Jko5"),f=n("anwo"),h=n("AS5q"),m=n("uWn1"),v=n("94xs"),g=n("EmyK"),y=n("mexH");function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){var n;e&&e.kind===p.Kind.DOCUMENT||(0,r.default)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||(0,s.assertValidSDL)(e);for(var i=[],o=Object.create(null),a=[],u=0;u>>((3&t)<<3)&255;return i}}},"3hfc":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})(n("PJh5"))},"3yaZ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=s,t.VariablesAreInputTypes=function(e){return{VariableDefinition:function(t){var n=(0,a.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,o.isInputType)(n)){var u=t.variable.name.value;e.reportError(new r.GraphQLError(s(u,(0,i.print)(t.type)),[t.type]))}}}};var r=n("QmgZ"),i=n("xC4e"),o=n("AS5q"),a=n("nIlP");function s(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}},"4/nl":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaDefinitionNotAloneMessage=i,t.canNotDefineSchemaWithinExtensionMessage=o,t.LoneSchemaDefinition=function(e){var t=e.getSchema(),n=t&&(t.astNode||t.getQueryType()||t.getMutationType()||t.getSubscriptionType()),i=0;return{SchemaDefinition:function(t){n?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",t)):(i>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",t)),++i)}}};var r=n("QmgZ");function i(){return"Must provide only one schema definition."}function o(){return"Cannot define a new schema within a schema extension."}},"40b9":function(e,t,n){"use strict";var r=n("TToO");n.d(t,"a",function(){return i});var i=function(e){var t,n=new URL(e),i=n.hostname,o=n.pathname,a=n.port,s=n.protocol,u=n.search;return u&&(t=function(e){var t,n,i={};if(e=e.replace(/^\?/,""))try{for(var o=Object(r.__values)(e.split("&")),a=o.next();!a.done;a=o.next()){var s=a.value,u=Object(r.__read)(s.split("="),2),c=u[0],l=u[1],d=void 0===l?null:l;c=decodeURIComponent(c),d&&(d=decodeURIComponent(d)),c in i?Array.isArray(i[c])?i[c].push(d):i[c]=[i[c],d]:i[c]=d}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}(u)),{hostname:i,port:a?parseInt(a):void 0,protocol:s,path:o,query:t}}},"47UH":function(e,t,n){"use strict";(function(e){n.d(t,"d",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"a",function(){return v});var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort(function(e,n){var i=e[t],o=n[t];return void 0===o?void 0===i?0:1*r:void 0===i?-1*r:io?1*r:0}),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach(function(e){delete n[e]})),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter(function(e){return n.endsWith("."+e.ext)});return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},d=function(){if("undefined"==typeof self)return!1;var e=self;return void 0!==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},p=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},f=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!m(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[t.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=n.includes(i)?e[i]:f(e[i],t,n)}return r},h=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!m(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[t.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=n.includes(i)?e[i]:h(e[i],t,n)}return r},m=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},v=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=d,e.browserOrNode=p,e.transferKeyToLowerCase=f,e.transferKeyToUpperCase=h,e.isStrictObject=m,e}()}).call(t,n("W2nU"))},"4mcu":function(e,t){e.exports=function(){}},"4wyj":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){switch(t.operation){case"query":var n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",[t]);return n;case"mutation":var i=e.getMutationType();if(!i)throw new r.GraphQLError("Schema is not configured for mutations.",[t]);return i;case"subscription":var o=e.getSubscriptionType();if(!o)throw new r.GraphQLError("Schema is not configured for subscriptions.",[t]);return o;default:throw new r.GraphQLError("Can only have query, mutation and subscription operations.",[t])}};var r=n("QmgZ")},"52gC":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"5IOP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleFieldOnlyMessage=i,t.SingleFieldSubscriptions=function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r.GraphQLError(i(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}};var r=n("QmgZ");function i(e){return(e?'Subscription "'.concat(e,'" '):"Anonymous Subscription ")+"must select only one top level field."}},"5N57":function(e,t,n){var r=n("ICSD")(n("TQ3y"),"Set");e.exports=r},"5Omq":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},"5PlU":function(e,t,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");e.exports=n("FeBl").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"5QVw":function(e,t,n){e.exports={default:n("BwfY"),__esModule:!0}},"5SNd":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n("PJh5"))},"5VQ+":function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},"5Xbz":function(e,t,n){"use strict";function r(e){for(var t=0;t0&&i(t[0]);)t.shift();for(;t.length>0&&i(t[t.length-1]);)t.pop();return t.join("\n")}},"5dBV":function(e,t,n){e.exports={default:n("quu5"),__esModule:!0}},"5e5i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printSchema=function(e,t){return h(e,function(e){return!(0,l.isSpecifiedDirective)(e)},f,t)},t.printIntrospectionSchema=function(e,t){return h(e,l.isSpecifiedDirective,d.isIntrospectionType,t)},t.printType=m;var r=p(n("Yi9h")),i=p(n("cHk2")),o=p(n("hZYs")),a=n("f8D2"),s=n("xC4e"),u=n("AS5q"),c=n("EmyK"),l=n("uWn1"),d=n("94xs");function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return!(0,c.isSpecifiedScalarType)(e)&&!(0,d.isIntrospectionType)(e)}function h(e,t,n,r){var i=e.getDirectives().filter(t),a=e.getTypeMap(),s=(0,o.default)(a).sort(function(e,t){return e.name.localeCompare(t.name)}).filter(n);return[function(e){if(function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();i&&t.push(" subscription: ".concat(i.name));return"schema {\n".concat(t.join("\n"),"\n}")}(e)].concat(i.map(function(e){return function(e,t){return w(t,e)+"directive @"+e.name+g(t,e.args)+" on "+e.locations.join(" | ")}(e,r)}),s.map(function(e){return m(e,r)})).filter(Boolean).join("\n\n")+"\n"}function m(e,t){if((0,u.isScalarType)(e))return function(e,t){return w(t,e)+"scalar ".concat(e.name)}(e,t);if((0,u.isObjectType)(e))return function(e,t){var n=e.getInterfaces(),r=n.length?" implements "+n.map(function(e){return e.name}).join(" & "):"";return w(t,e)+"type ".concat(e.name).concat(r," {\n")+v(t,e)+"\n}"}(e,t);if((0,u.isInterfaceType)(e))return function(e,t){return w(t,e)+"interface ".concat(e.name," {\n")+v(t,e)+"\n}"}(e,t);if((0,u.isUnionType)(e))return function(e,t){return w(t,e)+"union ".concat(e.name," = ").concat(e.getTypes().join(" | "))}(e,t);if((0,u.isEnumType)(e))return function(e,t){return w(t,e)+"enum ".concat(e.name," {\n")+function(e,t){return e.map(function(e,n){return w(t,e," ",!n)+" "+e.name+b(e)}).join("\n")}(e.getValues(),t)+"\n}"}(e,t);if((0,u.isInputObjectType)(e))return function(e,t){var n=(0,o.default)(e.getFields());return w(t,e)+"input ".concat(e.name," {\n")+n.map(function(e,n){return w(t,e," ",!n)+" "+y(e)}).join("\n")+"\n}"}(e,t);throw new Error("Unknown type: ".concat(e,"."))}function v(e,t){return(0,o.default)(t.getFields()).map(function(t,n){return w(e,t," ",!n)+" "+t.name+g(e,t.args," ")+": "+String(t.type)+b(t)}).join("\n")}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(y).join(", ")+")":"(\n"+t.map(function(t,r){return w(e,t," "+n,!r)+" "+n+y(t)}).join("\n")+"\n"+n+")"}function y(e){var t=e.name+": "+String(e.type);return(0,i.default)(e.defaultValue)||(t+=" = ".concat((0,s.print)((0,a.astFromValue)(e.defaultValue,e.type)))),t}function b(e){if(!e.isDeprecated)return"";var t=e.deprecationReason;return(0,r.default)(t)||""===t||t===l.DEFAULT_DEPRECATION_REASON?" @deprecated":" @deprecated(reason: "+(0,s.print)((0,a.astFromValue)(t,c.GraphQLString))+")"}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var i=function(e,t){for(var n=[],r=e.split("\n"),i=0;is)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},"5j66":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})(n("PJh5"))},"5vPg":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})(n("PJh5"))},"6AbY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locateWindow=function(){if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;return r};var r={}},"6MiT":function(e,t,n){var r=n("aCM0"),i=n("UnEC"),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},"6QL3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cycleErrorMessage=i,t.NoFragmentCycles=function(e){var t=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(a){return function a(s){if(t[s.name.value])return;var u=s.name.value;t[u]=!0;var c=e.getFragmentSpreads(s.selectionSet);if(0===c.length)return;o[u]=n.length;for(var l=0;l=100?100:null])},week:{dow:1,doy:7}})})(n("PJh5"))},"6fpj":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n("QmgZ")},"6qVS":function(e,t,n){var r;r=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},e.exports=r(n("02Hb"))},"6u75":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var n="string"==typeof e?new o.Source(e):e;if(!(n instanceof o.Source))throw new TypeError("Must provide Source. Received: ".concat((0,i.default)(n)));return function(e){var t=e.token;return{kind:u.Kind.DOCUMENT,definitions:ee(e,s.TokenKind.SOF,d,s.TokenKind.EOF),loc:K(e,t)}}((0,s.createLexer)(n,t||{}))},t.parseValue=function(e,t){var n="string"==typeof e?new o.Source(e):e,r=(0,s.createLexer)(n,t||{});Q(r,s.TokenKind.SOF);var i=E(r,!1);return Q(r,s.TokenKind.EOF),i},t.parseType=function(e,t){var n="string"==typeof e?new o.Source(e):e,r=(0,s.createLexer)(n,t||{});Q(r,s.TokenKind.SOF);var i=z(r);return Q(r,s.TokenKind.EOF),i},t.parseConstValue=M,t.parseTypeReference=z,t.parseNamedType=A;var r,i=(r=n("ieo+"))&&r.__esModule?r:{default:r},o=n("gyRD"),a=n("Qhe+"),s=n("AxoS"),u=n("Jko5"),c=n("nC2W");function l(e){var t=Q(e,s.TokenKind.NAME);return{kind:u.Kind.NAME,value:t.value,loc:K(e,t)}}function d(e){if(J(e,s.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return p(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return P(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===s.TokenKind.NAME)switch(t.value){case"schema":return function(e){var t=e.token;X(e,"extend"),X(e,"schema");var n=L(e,!0),r=J(e,s.TokenKind.BRACE_L)?ee(e,s.TokenKind.BRACE_L,N,s.TokenKind.BRACE_R):[];if(0===n.length&&0===r.length)throw Z(e);return{kind:u.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:K(e,t)}}(e);case"scalar":return function(e){var t=e.token;X(e,"extend"),X(e,"scalar");var n=l(e),r=L(e,!0);if(0===r.length)throw Z(e);return{kind:u.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:K(e,t)}}(e);case"type":return function(e){var t=e.token;X(e,"extend"),X(e,"type");var n=l(e),r=R(e),i=L(e,!0),o=j(e);if(0===r.length&&0===i.length&&0===o.length)throw Z(e);return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,loc:K(e,t)}}(e);case"interface":return function(e){var t=e.token;X(e,"extend"),X(e,"interface");var n=l(e),r=L(e,!0),i=j(e);if(0===r.length&&0===i.length)throw Z(e);return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:K(e,t)}}(e);case"union":return function(e){var t=e.token;X(e,"extend"),X(e,"union");var n=l(e),r=L(e,!0),i=V(e);if(0===r.length&&0===i.length)throw Z(e);return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:K(e,t)}}(e);case"enum":return function(e){var t=e.token;X(e,"extend"),X(e,"enum");var n=l(e),r=L(e,!0),i=$(e);if(0===r.length&&0===i.length)throw Z(e);return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:K(e,t)}}(e);case"input":return function(e){var t=e.token;X(e,"extend"),X(e,"input");var n=l(e),r=L(e,!0),i=q(e);if(0===r.length&&0===i.length)throw Z(e);return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:K(e,t)}}(e)}throw Z(e,t)}(e)}else{if(J(e,s.TokenKind.BRACE_L))return p(e);if(O(e))return P(e)}throw Z(e)}function p(e){if(J(e,s.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return f(e);case"fragment":return function(e){var t=e.token;if(X(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:u.Kind.FRAGMENT_DEFINITION,name:x(e),variableDefinitions:m(e),typeCondition:(X(e,"on"),A(e)),directives:L(e,!1),selectionSet:y(e),loc:K(e,t)};return{kind:u.Kind.FRAGMENT_DEFINITION,name:x(e),typeCondition:(X(e,"on"),A(e)),directives:L(e,!1),selectionSet:y(e),loc:K(e,t)}}(e)}else if(J(e,s.TokenKind.BRACE_L))return f(e);throw Z(e)}function f(e){var t=e.token;if(J(e,s.TokenKind.BRACE_L))return{kind:u.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:y(e),loc:K(e,t)};var n,r=h(e);return J(e,s.TokenKind.NAME)&&(n=l(e)),{kind:u.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:m(e),directives:L(e,!1),selectionSet:y(e),loc:K(e,t)}}function h(e){var t=Q(e,s.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw Z(e,t)}function m(e){return J(e,s.TokenKind.PAREN_L)?ee(e,s.TokenKind.PAREN_L,v,s.TokenKind.PAREN_R):[]}function v(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:u.Kind.VARIABLE_DEFINITION,variable:g(e),type:(Q(e,s.TokenKind.COLON),z(e)),defaultValue:W(e,s.TokenKind.EQUALS)?E(e,!0):void 0,directives:L(e,!0),loc:K(e,t)}:{kind:u.Kind.VARIABLE_DEFINITION,variable:g(e),type:(Q(e,s.TokenKind.COLON),z(e)),defaultValue:W(e,s.TokenKind.EQUALS)?E(e,!0):void 0,loc:K(e,t)}}function g(e){var t=e.token;return Q(e,s.TokenKind.DOLLAR),{kind:u.Kind.VARIABLE,name:l(e),loc:K(e,t)}}function y(e){var t=e.token;return{kind:u.Kind.SELECTION_SET,selections:ee(e,s.TokenKind.BRACE_L,b,s.TokenKind.BRACE_R),loc:K(e,t)}}function b(e){return J(e,s.TokenKind.SPREAD)?function(e){var t,n=e.token;if(Q(e,s.TokenKind.SPREAD),J(e,s.TokenKind.NAME)&&"on"!==e.token.value)return{kind:u.Kind.FRAGMENT_SPREAD,name:x(e),directives:L(e,!1),loc:K(e,n)};"on"===e.token.value&&(e.advance(),t=A(e));return{kind:u.Kind.INLINE_FRAGMENT,typeCondition:t,directives:L(e,!1),selectionSet:y(e),loc:K(e,n)}}(e):function(e){var t,n,r=e.token,i=l(e);W(e,s.TokenKind.COLON)?(t=i,n=l(e)):n=i;return{kind:u.Kind.FIELD,alias:t,name:n,arguments:w(e,!1),directives:L(e,!1),selectionSet:J(e,s.TokenKind.BRACE_L)?y(e):void 0,loc:K(e,r)}}(e)}function w(e,t){var n=t?S:_;return J(e,s.TokenKind.PAREN_L)?ee(e,s.TokenKind.PAREN_L,n,s.TokenKind.PAREN_R):[]}function _(e){var t=e.token;return{kind:u.Kind.ARGUMENT,name:l(e),value:(Q(e,s.TokenKind.COLON),E(e,!1)),loc:K(e,t)}}function S(e){var t=e.token;return{kind:u.Kind.ARGUMENT,name:l(e),value:(Q(e,s.TokenKind.COLON),M(e)),loc:K(e,t)}}function x(e){if("on"===e.token.value)throw Z(e);return l(e)}function E(e,t){var n=e.token;switch(n.kind){case s.TokenKind.BRACKET_L:return function(e,t){var n=e.token,r=t?M:C;return{kind:u.Kind.LIST,values:function(e,t,n,r){Q(e,t);var i=[];for(;!W(e,r);)i.push(n(e));return i}(e,s.TokenKind.BRACKET_L,r,s.TokenKind.BRACKET_R),loc:K(e,n)}}(e,t);case s.TokenKind.BRACE_L:return function(e,t){var n=e.token;Q(e,s.TokenKind.BRACE_L);var r=[];for(;!W(e,s.TokenKind.BRACE_R);)r.push(I(e,t));return{kind:u.Kind.OBJECT,fields:r,loc:K(e,n)}}(e,t);case s.TokenKind.INT:return e.advance(),{kind:u.Kind.INT,value:n.value,loc:K(e,n)};case s.TokenKind.FLOAT:return e.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:K(e,n)};case s.TokenKind.STRING:case s.TokenKind.BLOCK_STRING:return T(e);case s.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:u.Kind.BOOLEAN,value:"true"===n.value,loc:K(e,n)}):"null"===n.value?(e.advance(),{kind:u.Kind.NULL,loc:K(e,n)}):(e.advance(),{kind:u.Kind.ENUM,value:n.value,loc:K(e,n)});case s.TokenKind.DOLLAR:if(!t)return g(e)}throw Z(e)}function T(e){var t=e.token;return e.advance(),{kind:u.Kind.STRING,value:t.value,block:t.kind===s.TokenKind.BLOCK_STRING,loc:K(e,t)}}function M(e){return E(e,!0)}function C(e){return E(e,!1)}function I(e,t){var n=e.token;return{kind:u.Kind.OBJECT_FIELD,name:l(e),value:(Q(e,s.TokenKind.COLON),E(e,t)),loc:K(e,n)}}function L(e,t){for(var n=[];J(e,s.TokenKind.AT);)n.push(k(e,t));return n}function k(e,t){var n=e.token;return Q(e,s.TokenKind.AT),{kind:u.Kind.DIRECTIVE,name:l(e),arguments:w(e,t),loc:K(e,n)}}function z(e){var t,n=e.token;return W(e,s.TokenKind.BRACKET_L)?(t=z(e),Q(e,s.TokenKind.BRACKET_R),t={kind:u.Kind.LIST_TYPE,type:t,loc:K(e,n)}):t=A(e),W(e,s.TokenKind.BANG)?{kind:u.Kind.NON_NULL_TYPE,type:t,loc:K(e,n)}:t}function A(e){var t=e.token;return{kind:u.Kind.NAMED_TYPE,name:l(e),loc:K(e,t)}}function P(e){var t=O(e)?e.lookahead():e.token;if(t.kind===s.TokenKind.NAME)switch(t.value){case"schema":return function(e){var t=e.token;X(e,"schema");var n=L(e,!0),r=ee(e,s.TokenKind.BRACE_L,N,s.TokenKind.BRACE_R);return{kind:u.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:K(e,t)}}(e);case"scalar":return function(e){var t=e.token,n=D(e);X(e,"scalar");var r=l(e),i=L(e,!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:K(e,t)}}(e);case"type":return function(e){var t=e.token,n=D(e);X(e,"type");var r=l(e),i=R(e),o=L(e,!0),a=j(e);return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,loc:K(e,t)}}(e);case"interface":return function(e){var t=e.token,n=D(e);X(e,"interface");var r=l(e),i=L(e,!0),o=j(e);return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:K(e,t)}}(e);case"union":return function(e){var t=e.token,n=D(e);X(e,"union");var r=l(e),i=L(e,!0),o=V(e);return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:K(e,t)}}(e);case"enum":return function(e){var t=e.token,n=D(e);X(e,"enum");var r=l(e),i=L(e,!0),o=$(e);return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:K(e,t)}}(e);case"input":return function(e){var t=e.token,n=D(e);X(e,"input");var r=l(e),i=L(e,!0),o=q(e);return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:K(e,t)}}(e);case"directive":return function(e){var t=e.token,n=D(e);X(e,"directive"),Q(e,s.TokenKind.AT);var r=l(e),i=B(e);X(e,"on");var o=function(e){W(e,s.TokenKind.PIPE);var t=[];do{t.push(Y(e))}while(W(e,s.TokenKind.PIPE));return t}(e);return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,locations:o,loc:K(e,t)}}(e)}throw Z(e,t)}function O(e){return J(e,s.TokenKind.STRING)||J(e,s.TokenKind.BLOCK_STRING)}function D(e){if(O(e))return T(e)}function N(e){var t=e.token,n=h(e);Q(e,s.TokenKind.COLON);var r=A(e);return{kind:u.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:K(e,t)}}function R(e){var t=[];if("implements"===e.token.value){e.advance(),W(e,s.TokenKind.AMP);do{t.push(A(e))}while(W(e,s.TokenKind.AMP)||e.options.allowLegacySDLImplementsInterfaces&&J(e,s.TokenKind.NAME))}return t}function j(e){return e.options.allowLegacySDLEmptyFields&&J(e,s.TokenKind.BRACE_L)&&e.lookahead().kind===s.TokenKind.BRACE_R?(e.advance(),e.advance(),[]):J(e,s.TokenKind.BRACE_L)?ee(e,s.TokenKind.BRACE_L,F,s.TokenKind.BRACE_R):[]}function F(e){var t=e.token,n=D(e),r=l(e),i=B(e);Q(e,s.TokenKind.COLON);var o=z(e),a=L(e,!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a,loc:K(e,t)}}function B(e){return J(e,s.TokenKind.PAREN_L)?ee(e,s.TokenKind.PAREN_L,H,s.TokenKind.PAREN_R):[]}function H(e){var t=e.token,n=D(e),r=l(e);Q(e,s.TokenKind.COLON);var i,o=z(e);W(e,s.TokenKind.EQUALS)&&(i=M(e));var a=L(e,!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:a,loc:K(e,t)}}function V(e){var t=[];if(W(e,s.TokenKind.EQUALS)){W(e,s.TokenKind.PIPE);do{t.push(A(e))}while(W(e,s.TokenKind.PIPE))}return t}function $(e){return J(e,s.TokenKind.BRACE_L)?ee(e,s.TokenKind.BRACE_L,U,s.TokenKind.BRACE_R):[]}function U(e){var t=e.token,n=D(e),r=l(e),i=L(e,!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:K(e,t)}}function q(e){return J(e,s.TokenKind.BRACE_L)?ee(e,s.TokenKind.BRACE_L,H,s.TokenKind.BRACE_R):[]}function Y(e){var t=e.token,n=l(e);if(c.DirectiveLocation.hasOwnProperty(n.value))return n;throw Z(e,t)}function K(e,t){if(!e.options.noLocation)return new G(t,e.lastToken,e.source)}function G(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function J(e,t){return e.token.kind===t}function W(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function Q(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,a.syntaxError)(e.source,n.start,"Expected ".concat(t,", found ").concat((0,s.getTokenDesc)(n)))}function X(e,t){var n=e.token;if(n.kind===s.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,a.syntaxError)(e.source,n.start,'Expected "'.concat(t,'", found ').concat((0,s.getTokenDesc)(n)))}function Z(e,t){var n=t||e.token;return(0,a.syntaxError)(e.source,n.start,"Unexpected ".concat((0,s.getTokenDesc)(n)))}function ee(e,t,n,r){Q(e,t);for(var i=[n(e)];!W(e,r);)i.push(n(e));return i}G.prototype.toJSON=G.prototype.inspect=function(){return{start:this.start,end:this.end}}},"7+uW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function l(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function _(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var S=/-(\w)/g,x=_(function(e){return e.replace(S,function(e,t){return t?t.toUpperCase():""})}),E=_(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),T=/\B([A-Z])/g,M=_(function(e){return e.replace(T,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function I(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function L(e,t){for(var n in t)e[n]=t[n];return e}function k(e){for(var t={},n=0;n0,Z=W&&W.indexOf("edge/")>0,ee=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===J),te=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(K)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var oe=function(){return void 0===q&&(q=!K&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),q},ae=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var ue,ce="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);ue="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=z,de=0,pe=function(){this.id=de++,this.subs=[]};pe.prototype.addSub=function(e){this.subs.push(e)},pe.prototype.removeSub=function(e){y(this.subs,e)},pe.prototype.depend=function(){pe.target&&pe.target.addDep(this)},pe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===M(e)){var u=$e(String,i.type);(u<0||s0&&(pt((c=e(c,(n||"")+"_"+u))[0])&&pt(d)&&(s[l]=be(d.text+c[0].text),c.shift()),s.push.apply(s,c)):a(c)?pt(d)?s[l]=be(d.text+c):""!==c&&s.push(be(c)):pt(c)&&pt(d)?s[l]=be(d.text+c.text):(o(t._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+u+"__"),s.push(c)));return s}(e):void 0}function pt(e){return i(e)&&i(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=yt(t,u,e[u]))}else i={};for(var c in t)c in i||(i[c]=bt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function yt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!vt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function bt(e,t){return function(){return e[t]}}function wt(e,t){var n,r,o,a,u;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(pn=function(){return fn.now()})}function hn(){var e,t;for(dn=pn(),cn=!0,on.sort(function(e,t){return e.id-t.id}),ln=0;lnln&&on[n].id>e.id;)n--;on.splice(n+1,0,e)}else on.push(e);un||(un=!0,rt(hn))}}(this)},vn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';qe(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var gn={enumerable:!0,configurable:!0,get:z,set:z};function yn(e,t,n){gn.get=function(){return this[t][n]},gn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,gn)}function bn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Te(!1);var a=function(o){i.push(o);var a=Fe(o,t,n,e);Ie(r,o,a),o in e||yn(e,"_props",o)};for(var s in t)a(s);Te(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?z:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return Ue(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||V(o)||yn(e,"_data",o)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new vn(e,a||z,z,wn)),i in e||_n(e,i,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!l(e)&&e.test(t)}function zn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&An(n,o,r,i)}}}function An(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Tn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(Mn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=ht(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Ut(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ut(e,t,n,r,i,!0)};var o=r&&r.data;Ie(e,"$attrs",o&&o.attrs||n,null,!0),Ie(e,"$listeners",t._parentListeners||n,null,!0)}(t),rn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach(function(n){Ie(e,n,t[n])}),Te(!0))}(t),bn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),rn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Cn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Le,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,n){if(c(t))return En(this,e,t,n);(n=n||{}).user=!0;var r=new vn(this,e,t,n);if(n.immediate){var i='callback for immediate watcher "'+r.expression+'"';he(),qe(t,this,[r.value],this,i),me()}return function(){r.teardown()}}}(Cn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?I(n):n;for(var r=I(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&An(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)An(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){zn(e,function(e){return kn(t,e)})}),this.$watch("exclude",function(t){zn(e,function(e){return!kn(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Gt(e),n=t&&t.componentOptions;if(n){var r=Ln(n),i=this.include,o=this.exclude;if(i&&(!r||!kn(i,r))||o&&r&&kn(o,r))return t;var a=this.cache,s=this.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[u]?(t.componentInstance=a[u].componentInstance,y(s,u),s.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:L,mergeOptions:Re,defineReactive:Ie},e.set=Le,e.delete=ke,e.nextTick=rt,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),j.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,L(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=I(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),In(e),function(e){j.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:oe}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Dt}),Cn.version="2.6.14";var Dn=m("style,class"),Nn=m("input,textarea,option,select,progress"),Rn=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},jn=m("contenteditable,draggable,spellcheck"),Fn=m("events,caret,typing,plaintext-only"),Bn=function(e,t){return qn(t)||"false"===t?"false":"contenteditable"===e&&Fn(t)?t:"true"},Hn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Vn="http://www.w3.org/1999/xlink",$n=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return $n(e)?e.slice(6,e.length):""},qn=function(e){return null==e||!1===e};function Yn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Kn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Kn(t,n.data));return function(e,t){if(i(e)||i(t))return Gn(e,Jn(t));return""}(t.staticClass,t.class)}function Kn(e,t){return{staticClass:Gn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Gn(e,t){return e?t?e+" "+t:e:t||""}function Jn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?wr(e,t,n):Hn(t)?qn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):jn(t)?e.setAttribute(t,Bn(t,n)):$n(t)?qn(n)?e.removeAttributeNS(Vn,Un(t)):e.setAttributeNS(Vn,t,n):wr(e,t,n)}function wr(e,t,n){if(qn(n))e.removeAttribute(t);else{if(Q&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var _r={create:yr,update:yr};function Sr(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Yn(t),u=n._transitionClasses;i(u)&&(s=Gn(s,Jn(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xr,Er,Tr,Mr,Cr,Ir,Lr={create:Sr,update:Sr},kr=/[\w).+\-_$\]]/;function zr(e){var t,n,r,i,o,a=!1,s=!1,u=!1,c=!1,l=0,d=0,p=0,f=0;for(r=0;r=0&&" "===(m=e.charAt(h));h--);m&&kr.test(m)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):v();function v(){(o||(o=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&v(),o)for(r=0;r-1?{exp:e.slice(0,Mr),key:'"'+e.slice(Mr+1)+'"'}:{exp:e,key:null};Er=e,Mr=Cr=Ir=0;for(;!Jr();)Wr(Tr=Gr())?Xr(Tr):91===Tr&&Qr(Tr);return{exp:e.slice(0,Cr),key:e.slice(Cr+1,Ir)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Gr(){return Er.charCodeAt(++Mr)}function Jr(){return Mr>=xr}function Wr(e){return 34===e||39===e}function Qr(e){var t=1;for(Cr=Mr;!Jr();)if(Wr(e=Gr()))Xr(e);else if(91===e&&t++,93===e&&t--,0===t){Ir=Mr;break}}function Xr(e){for(var t=e;!Jr()&&(e=Gr())!==t;);}var Zr,ei="__r",ti="__c";function ni(e,t,n){var r=Zr;return function i(){null!==t.apply(null,arguments)&&oi(e,i,n,r)}}var ri=Je&&!(te&&Number(te[1])<=53);function ii(e,t,n,r){if(ri){var i=dn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Zr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function oi(e,t,n,r){(r||Zr).removeEventListener(e,t._wrapper||t,n)}function ai(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Zr=t.elm,function(e){if(i(e[ei])){var t=Q?"change":"input";e[t]=[].concat(e[ei],e[t]||[]),delete e[ei]}i(e[ti])&&(e.change=[].concat(e[ti],e.change||[]),delete e[ti])}(n),ut(n,o,ii,oi,ni,t.context),Zr=void 0}}var si,ui={create:ai,update:ai};function ci(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(n in i(u.__ob__)&&(u=t.data.domProps=L({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);li(a,c)&&(a.value=c)}else if("innerHTML"===n&&Xn(a.tagName)&&r(a.innerHTML)){(si=si||document.createElement("div")).innerHTML=""+o+"";for(var l=si.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(e){}}}}function li(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var di={create:ci,update:ci},pi=_(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function fi(e){var t=hi(e.style);return e.staticStyle?L(e.staticStyle,t):t}function hi(e){return Array.isArray(e)?k(e):"string"==typeof e?pi(e):e}var mi,vi=/^--/,gi=/\s*!important$/,yi=function(e,t,n){if(vi.test(t))e.style.setProperty(t,n);else if(gi.test(n))e.style.setProperty(M(t),n.replace(gi,""),"important");else{var r=wi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(xi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ti(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Mi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&L(t,Ci(e.name||"v")),L(t,e),t}return"string"==typeof e?Ci(e):void 0}}var Ci=_(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Ii=K&&!X,Li="transition",ki="animation",zi="transition",Ai="transitionend",Pi="animation",Oi="animationend";Ii&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(zi="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Pi="WebkitAnimation",Oi="webkitAnimationEnd"));var Di=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ni(e){Di(function(){Di(e)})}function Ri(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ei(e,t))}function ji(e,t){e._transitionClasses&&y(e._transitionClasses,t),Ti(e,t)}function Fi(e,t,n){var r=Hi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Li?Ai:Oi,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout(function(){u0&&(n=Li,l=a,d=o.length):t===ki?c>0&&(n=ki,l=c,d=u.length):d=(n=(l=Math.max(a,c))>0?a>c?Li:ki:null)?n===Li?o.length:u.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===Li&&Bi.test(r[zi+"Property"])}}function Vi(e,t){for(;e.length1}function Gi(e,t){!0!==t.data.show&&Ui(t)}var Ji=function(e){var t,n,s={},u=e.modules,c=e.nodeOps;for(t=0;th?b(e,r(n[g+1])?null:n[g+1].elm,n,f,g,o):f>g&&_(t,p,h)}(p,m,g,n,l):i(g)?(i(e.text)&&c.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):i(m)?_(m,0,m.length-1):i(e.text)&&c.setTextContent(p,""):e.text!==t.text&&c.setTextContent(p,t.text),i(h)&&i(f=h.hook)&&i(f=f.postpatch)&&f(e,t)}}}function T(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(O(eo(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Zi(e,t){return t.every(function(t){return!O(t,e)})}function eo(e){return"_value"in e?e._value:e.value}function to(e){e.target.composing=!0}function no(e){e.target.composing&&(e.target.composing=!1,ro(e.target,"input"))}function ro(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function io(e){return!e.componentInstance||e.data&&e.data.transition?e:io(e.componentInstance._vnode)}var oo={model:Wi,show:{bind:function(e,t,n){var r=t.value,i=(n=io(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ui(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=io(n)).data&&n.data.transition?(n.data.show=!0,r?Ui(n,function(){e.style.display=e.__vOriginalDisplay}):qi(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function so(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?so(Gt(t.children)):e}function uo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function co(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var lo=function(e){return e.tag||vt(e)},po=function(e){return"show"===e.name},fo={name:"transition",props:ao,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(lo)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=so(i);if(!o)return i;if(this._leaving)return co(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var u=(o.data||(o.data={})).transition=uo(this),c=this._vnode,l=so(c);if(o.data.directives&&o.data.directives.some(po)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!vt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=L({},u);if("out-in"===r)return this._leaving=!0,ct(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),co(e,i);if("in-out"===r){if(vt(o))return c;var p,f=function(){p()};ct(u,"afterEnter",f),ct(u,"enterCancelled",f),ct(d,"delayLeave",function(e){p=e})}}return i}}},ho=L({tag:String,moveClass:String},ao);function mo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function vo(e){e.data.newPos=e.elm.getBoundingClientRect()}function go(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ho.mode;var yo={Transition:fo,TransitionGroup:{props:ho,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=en(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=uo(this),s=0;s-1?tr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:tr[e]=/HTMLUnknownElement/.test(t.toString())},L(Cn.options.directives,oo),L(Cn.options.components,yo),Cn.prototype.__patch__=K?Ji:z,Cn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=ye),rn(e,"beforeMount"),new vn(e,function(){e._update(e._render(),n)},z,{before:function(){e._isMounted&&!e._isDestroyed&&rn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,rn(e,"mounted")),e}(this,e=e&&K?rr(e):void 0,t)},K&&setTimeout(function(){B.devtools&&ae&&ae.emit("init",Cn)},0);var bo=/\{\{((?:.|\r?\n)+?)\}\}/g,wo=/[-.*+?^${}()|[\]\/\\]/g,_o=_(function(e){var t=e[0].replace(wo,"\\$&"),n=e[1].replace(wo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function So(e,t){var n=t?_o(t):bo;if(n.test(e)){for(var r,i,o,a=[],s=[],u=n.lastIndex=0;r=n.exec(e);){(i=r.index)>u&&(s.push(o=e.slice(u,i)),a.push(JSON.stringify(o)));var c=zr(r[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),u=i+r[0].length}return u\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,zo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ao="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+H.source+"]*",Po="((?:"+Ao+"\\:)?"+Ao+")",Oo=new RegExp("^<"+Po),Do=/^\s*(\/?)>/,No=new RegExp("^<\\/"+Po+"[^>]*>"),Ro=/^]+>/i,jo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},$o=/&(?:lt|gt|quot|amp|#39);/g,Uo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,qo=m("pre,textarea",!0),Yo=function(e,t){return e&&qo(e)&&"\n"===t[0]};function Ko(e,t){var n=t?Uo:$o;return e.replace(n,function(e){return Vo[e]})}var Go,Jo,Wo,Qo,Xo,Zo,ea,ta,na=/^@|^v-on:/,ra=/^v-|^@|^:|^#/,ia=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,oa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,aa=/^\(|\)$/g,sa=/^\[.*\]$/,ua=/:(.*)$/,ca=/^:|^\.|^v-bind:/,la=/\.[^.\]]+(?=[^\]]*$)/g,da=/^v-slot(:|$)|^#/,pa=/[\r\n]/,fa=/[ \f\t\r\n]+/g,ha=_(Mo),ma="_empty_";function va(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),p=e.replace(d,function(e,n,r){return c=r.length,Bo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Yo(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});u+=e.length-p.length,e=p,M(l,u-c,u)}else{var f=e.indexOf("<");if(0===f){if(jo.test(e)){var h=e.indexOf("--\x3e");if(h>=0){t.shouldKeepComment&&t.comment(e.substring(4,h),u,u+h+3),x(h+3);continue}}if(Fo.test(e)){var m=e.indexOf("]>");if(m>=0){x(m+2);continue}}var v=e.match(Ro);if(v){x(v[0].length);continue}var g=e.match(No);if(g){var y=u;x(g[0].length),M(g[1],y,u);continue}var b=E();if(b){T(b),Yo(b.tagName,e)&&x(1);continue}}var w=void 0,_=void 0,S=void 0;if(f>=0){for(_=e.slice(f);!(No.test(_)||Oo.test(_)||jo.test(_)||Fo.test(_)||(S=_.indexOf("<",1))<0);)f+=S,_=e.slice(f);w=e.substring(0,f)}f<0&&(w=e),w&&x(w.length),t.chars&&w&&t.chars(w,u-w.length,u)}if(e===n){t.chars&&t.chars(e);break}}function x(t){u+=t,e=e.substring(t)}function E(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:u};for(x(t[0].length);!(n=e.match(Do))&&(r=e.match(zo)||e.match(ko));)r.start=u,x(r[0].length),r.end=u,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=u,i}}function T(e){var n=e.tagName,u=e.unarySlash;o&&("p"===r&&Lo(n)&&M(r),s(n)&&r===n&&M(n));for(var c=a(n)||!!u,l=e.attrs.length,d=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}M()}(e,{warn:Go,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,d){var p=i&&i.ns||ta(e);Q&&"svg"===p&&(n=function(e){for(var t=[],n=0;n-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Br(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Kr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Kr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Kr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Vr(e,"value")||"null";Dr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Br(e,"change",Kr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==r,c=o?"change":"range"===r?ei:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var d=Kr(t,l);u&&(d="if($event.target.composing)return;"+d),Dr(e,"value","("+t+")"),Br(e,c,d,null,!0),(s||a)&&Br(e,"blur","$forceUpdate()")}(e,r,i);else if(!B.isReservedTag(o))return Yr(e,r,i),!1;return!0},text:function(e,t){t.value&&Dr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Dr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Co,mustUseProp:Rn,canBeLeftOpenTag:Io,isReservedTag:Zn,getTagNamespace:er,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Ma)},ka=_(function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function za(e,t){e&&(Ca=ka(t.staticKeys||""),Ia=t.isReservedTag||A,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Ia(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Ca)))}(t);if(1===t.type){if(!Ia(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Pa=/\([^)]*?\);*$/,Oa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Da={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Na={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ra=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ra("$event.target !== $event.currentTarget"),ctrl:Ra("!$event.ctrlKey"),shift:Ra("!$event.shiftKey"),alt:Ra("!$event.altKey"),meta:Ra("!$event.metaKey"),left:Ra("'button' in $event && $event.button !== 0"),middle:Ra("'button' in $event && $event.button !== 1"),right:Ra("'button' in $event && $event.button !== 2")};function Fa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ba(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ba(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Ba(e)}).join(",")+"]";var t=Oa.test(e.value),n=Aa.test(e.value),r=Oa.test(e.value.replace(Pa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Da[s]&&a.push(s);else if("exact"===s){var u=e.modifiers;o+=Ra(["ctrl","shift","alt","meta"].filter(function(e){return!u[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ha).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ha(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Da[e],r=Na[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Va={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:z},$a=function(e){this.options=e,this.warn=e.warn||Pr,this.transforms=Or(e.modules,"transformCode"),this.dataGenFns=Or(e.modules,"genData"),this.directives=L(L({},Va),e.directives);var t=e.isReservedTag||A;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ua(e,t){var n=new $a(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":qa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function qa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ya(e,t);if(e.once&&!e.onceProcessed)return Ka(e,t);if(e.for&&!e.forProcessed)return Ja(e,t);if(e.if&&!e.ifProcessed)return Ga(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Za(e,t),i="_t("+n+(r?",function(){return "+r+"}":""),o=e.attrs||e.dynamicAttrs?ns((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Za(t,n,!0);return"_c("+e+","+Wa(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Wa(e,t));var i=e.inlineTemplate?null:Za(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Ua(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+ns(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Qa(e){return 1===e.type&&("slot"===e.tag||e.children.some(Qa))}function Xa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ga(e,t,Xa,"null");if(e.for&&!e.forProcessed)return Ja(e,t,Xa);var r=e.slotScope===ma?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Za(e,t)||"undefined")+":undefined":Za(e,t)||"undefined":qa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Za(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||qa)(a,t)+s}var u=n?function(e,t){for(var n=0,r=0;r':'
',ss.innerHTML.indexOf(" ")>0}var ds=!!K&&ls(!1),ps=!!K&&ls(!0),fs=_(function(e){var t=rr(e);return t&&t.innerHTML}),hs=Cn.prototype.$mount;Cn.prototype.$mount=function(e,t){if((e=e&&rr(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=fs(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=cs(r,{outputSourceRange:!1,shouldDecodeNewlines:ds,shouldDecodeNewlinesForHref:ps,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return hs.call(this,e,t)},Cn.compile=cs,t.default=Cn}.call(t,n("DuR2"))},"75wB":function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},"77Pl":function(e,t,n){var r=n("EqjI");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"7Flx":function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t=o[i]){var a=console.log.bind(console);"ERROR"===t&&console.error&&(a=console.error.bind(console)),"WARN"===t&&console.warn&&(a=console.warn.bind(console));var s="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"==typeof n[0])a(s+" - "+n[0]);else if(1===n.length)a(s,n[0]);else if("string"==typeof n[0]){var u=n.slice(1);1===u.length&&(u=u[0]),a(s+" - "+n[0],u)}else a(s,n)}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},u=new a("Amplify"),c=function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=a,this.ServiceWorker=null}return e.prototype.register=function(e){u.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):u.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),u.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(e){var n=s(e,2),r=(n[0],n[1]);Object.keys(r).forEach(function(e){t._modules[e]&&(r[e]=t._modules[e])})}),this._components.map(function(e){e.configure(t._config)}),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e}(),l=new c,d={userAgent:"aws-amplify/3.8.23 js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(d.product=navigator.product||"",d.navigator=navigator||null,navigator.product){case"ReactNative":d.userAgent="aws-amplify/3.8.23 react-native",d.isReactNative=!0;break;default:d.userAgent="aws-amplify/3.8.23 js",d.isReactNative=!1}var p=function(){return d.userAgent},f=new a("ClientDevice_Browser");function h(){return"undefined"==typeof window?{}:function(){if("undefined"==typeof window)return f.warn("No window object available to get browser client info"),{};var e=window.navigator;if(!e)return f.warn("No navigator object available to get browser client info"),{};var t=e.platform,n=e.product,r=e.vendor,i=e.userAgent,o=e.language,a=function(e){var t=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);if(t)return{type:t[1],version:t[2]};var n=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(e);if(n)return{type:n[1],version:n[2]};var r=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(e);if(r)return{type:r[1],version:r[2]};var i=/.+(Safari)\/([0-9\.]+).*/i.exec(e);if(i)return{type:i[1],version:i[2]};var o=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(e);if(o)return{type:o[1],version:o[2]};var a=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(e);if(a)return{type:a[1],version:a[2]};return{type:"",version:""}}(i),s=(u=/\(([A-Za-z\s].*)\)/.exec((new Date).toString()),u&&u[1]||"");var u;return{platform:t,make:n||r,model:a.type,version:a.version,appVersion:[a.type,a.version].join("/"),language:o,timezone:s}}()}var m=function(){function e(){}return e.clientInfo=function(){return h()},e.dimension=function(){return"undefined"==typeof window?(f.warn("No window object available to get browser client info"),{width:320,height:320}):{width:window.innerWidth,height:window.innerHeight}},e}();function v(e){return new Error("Missing config value of "+e)}function g(e){return new Error("Invalid parameter value of "+e)}var y=this&&this.__assign||function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},w=this&&this.__spread||function(){for(var e=[],t=0;t-1)&&(r===S||_.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:y({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(e){_.error(e)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))_.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach(function(r){_.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(e){_.error(e)}}),this.patterns.length>0){if(!n.message)return void _.warn("Cannot perform pattern matching without a message key");var i=n.message;this.patterns.forEach(function(t){var n=i.match(t.pattern);if(n){var r=b(n).slice(1),o=y(y({},e),{patternInfo:r});try{t.callback(o)}catch(e){_.error(e)}}})}},e}())("__default__"),E=new a("I18n"),T=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!=typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),E.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!this._lang)return void 0!==t?t:e;var n=this._lang,r=this.getByLanguage(e,n);return r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||(void 0!==t?t:e))},e.prototype.getByLanguage=function(e,t,n){if(void 0===n&&(n=null),!t)return n;var r=this._dict[t];return r?r[e]:n},e.prototype.putVocabulariesForLanguage=function(e,t){var n=this._dict[e];n||(n=this._dict[e]={}),Object.assign(n,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map(function(n){t.putVocabulariesForLanguage(n,e[n])})},e}(),M=new a("I18n"),C=null,I=null,L=function(){function e(){}return e.configure=function(t){return M.debug("configure I18n"),t?(C=Object.assign({},C,t.I18n||t),e.createInstance(),C):C},e.getModuleName=function(){return"I18n"},e.createInstance=function(){M.debug("create I18n instance"),I||(I=new T(C))},e.setLanguage=function(t){return e.checkConfig(),I.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?I.get(t,n):void 0===n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),I.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),I.putVocabularies(t)},e.checkConfig=function(){return I||(I=new T(C)),!0},e}();l.register(L);var k=n("Y5TK"),z=n("BZdP"),A=n("FQv3"),P=n("UZ5h"),O=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},N=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},j=this&&this.__spread||function(){for(var e=[],t=0;te)&&n}}(n))},U=function(){function e(){this._queue=[],this._pending=!1}return e.prototype.isLocked=function(){return this._pending},e.prototype.acquire=function(){var e=this,t=new Promise(function(t){return e._queue.push(t)});return this._pending||this._dispatchNext(),t},e.prototype.runExclusive=function(e){return this.acquire().then(function(t){var n;try{n=e()}catch(e){throw t(),e}return Promise.resolve(n).then(function(e){return t(),e},function(e){throw t(),e})})},e.prototype._dispatchNext=function(){this._queue.length>0?(this._pending=!0,this._queue.shift()(this._dispatchNext.bind(this))):this._pending=!1},e}(),q=n("BarH"),Y=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},K=function(){function e(){}return e.prototype.networkMonitor=function(t){if(Object(k.b)().isNode)return q.a.from([{online:!0}]);var n=Object(k.c)()?self:window;return new q.a(function(t){t.next({online:n.navigator.onLine});var r=function(){return t.next({online:!0})},i=function(){return t.next({online:!1})};return n.addEventListener("online",r),n.addEventListener("offline",i),e._observers.push(t),function(){n.removeEventListener("online",r),n.removeEventListener("offline",i),e._observers=e._observers.filter(function(e){return e!==t})}})},e._observerOverride=function(t){var n,r,i=function(n){if(n.closed)return e._observers=e._observers.filter(function(e){return e!==n}),"continue";n.next(t)};try{for(var o=Y(e._observers),a=o.next();!a.done;a=o.next()){i(a.value)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e._observers=[],e}(),G=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},J={clockOffset:0,getDateWithClockOffset:function(){return J.clockOffset?new Date((new Date).getTime()+J.clockOffset):new Date},getClockOffset:function(){return J.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=J.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=G(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6];return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(o),Number(a),Number(s)))},isClockSkewed:function(e){return Math.abs(e.getTime()-J.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean("BadRequestException"===t["x-amzn-errortype"]&&(t.date||t.Date))},setClockOffset:function(e){J.clockOffset=e}}; /*! * The MIT License (MIT) * * Copyright (c) 2016 Christian Speckner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function W(e){return e.split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")}).join("")}function Q(e){return e.match(/.{2}/g).map(function(e){return String.fromCharCode(parseInt(e,16))}).join("")}var X=this&&this.__assign||function(){return(X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;var Fe=n("6tp+"),Be=n.n(Fe),He=n("gFtY"),Ve=n("OqwH"),$e=n("X/+I"),Ue=n("iZss"),qe=n("JVbd"),Ye=n("IhUy"),Ke=n("pK6L");var Ge,Je,We,Qe,Xe,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,dt,pt,ft,ht,mt,vt,gt,yt,bt,wt,_t,St,xt,Et,Tt,Mt,Ct,It,Lt,kt,zt,At,Pt,Ot,Dt,Nt,Rt,jt,Ft,Bt,Ht,Vt,$t,Ut,qt,Yt,Kt,Gt,Jt,Wt,Qt="cognito-identity.{region}.amazonaws.com",Xt=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"]),Zt=new Set(["cn-north-1","cn-northwest-1"]),en=new Set(["us-iso-east-1"]),tn=new Set(["us-isob-east-1"]),nn=new Set(["us-gov-east-1","us-gov-west-1"]),rn={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":n={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":n={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:Xt.has(e)&&(n={hostname:Qt.replace("{region}",e),partition:"aws"}),Zt.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),en.has(e)&&(n={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),tn.has(e)&&(n={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),nn.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:Qt.replace("{region}",e),partition:"aws"})}return Promise.resolve(De({signingService:"cognito-identity"},n))},serviceId:"Cognito Identity",urlParser:n("40b9").a},on=De(De({},rn),{runtime:"browser",base64Decoder:qe.a,base64Encoder:qe.b,bodyLengthChecker:Ye.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(Ke.a)({serviceId:rn.serviceId,clientVersion:Be.a.version}),maxAttempts:Ue.a,region:Object($e.a)("Region is missing"),requestHandler:new Ve.a,sha256:He.Sha256,streamCollector:Ve.b,utf8Decoder:function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},li=n("LPDJ"),di=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"CreateIdentityPoolCommand",inputFilterSensitiveLog:We.filterSensitiveLog,outputFilterSensitiveLog:Qe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.CreateIdentityPool"},r=JSON.stringify(Gn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,mn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Or(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),pi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"DeleteIdentitiesCommand",inputFilterSensitiveLog:it.filterSensitiveLog,outputFilterSensitiveLog:st.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.DeleteIdentities"},r=JSON.stringify(Jn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,vn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Tr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),fi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"DeleteIdentityPoolCommand",inputFilterSensitiveLog:ut.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.DeleteIdentityPool"},r=JSON.stringify(Wn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n;return Re(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[2,gn(e,t)]:[4,ai(e.body,t)];case 1:return r.sent(),n={$metadata:oi(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(pn.b),hi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"DescribeIdentityCommand",inputFilterSensitiveLog:lt.filterSensitiveLog,outputFilterSensitiveLog:dt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.DescribeIdentity"},r=JSON.stringify(Qn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,yn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Pr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),mi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"DescribeIdentityPoolCommand",inputFilterSensitiveLog:pt.filterSensitiveLog,outputFilterSensitiveLog:Qe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.DescribeIdentityPool"},r=JSON.stringify(Xn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,bn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Or(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),vi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:ht.filterSensitiveLog,outputFilterSensitiveLog:vt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(Zn(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,wn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Ir(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),gi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:yt.filterSensitiveLog,outputFilterSensitiveLog:bt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(tr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,_n(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=kr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),yi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetIdentityPoolRolesCommand",inputFilterSensitiveLog:wt.filterSensitiveLog,outputFilterSensitiveLog:Mt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetIdentityPoolRoles"},r=JSON.stringify(er(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Sn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Lr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),bi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetOpenIdTokenCommand",inputFilterSensitiveLog:Ct.filterSensitiveLog,outputFilterSensitiveLog:It.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetOpenIdToken"},r=JSON.stringify(rr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,xn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Ar(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),wi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetOpenIdTokenForDeveloperIdentityCommand",inputFilterSensitiveLog:kt.filterSensitiveLog,outputFilterSensitiveLog:zt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity"},r=JSON.stringify(nr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,En(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=zr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),_i=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"ListIdentitiesCommand",inputFilterSensitiveLog:At.filterSensitiveLog,outputFilterSensitiveLog:Pt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.ListIdentities"},r=JSON.stringify(ur(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Tn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Hr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),Si=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"ListIdentityPoolsCommand",inputFilterSensitiveLog:Ot.filterSensitiveLog,outputFilterSensitiveLog:Nt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.ListIdentityPools"},r=JSON.stringify(cr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Mn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Vr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),xi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"ListTagsForResourceCommand",inputFilterSensitiveLog:Rt.filterSensitiveLog,outputFilterSensitiveLog:jt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.ListTagsForResource"},r=JSON.stringify(lr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Cn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=$r(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),Ei=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"LookupDeveloperIdentityCommand",inputFilterSensitiveLog:Ft.filterSensitiveLog,outputFilterSensitiveLog:Bt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.LookupDeveloperIdentity"},r=JSON.stringify(pr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,In(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=qr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),Ti=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"MergeDeveloperIdentitiesCommand",inputFilterSensitiveLog:Ht.filterSensitiveLog,outputFilterSensitiveLog:Vt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.MergeDeveloperIdentities"},r=JSON.stringify(hr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ln(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Yr(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),Mi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"SetIdentityPoolRolesCommand",inputFilterSensitiveLog:Ut.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.SetIdentityPoolRoles"},r=JSON.stringify(br(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n;return Re(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[2,kn(e,t)]:[4,ai(e.body,t)];case 1:return r.sent(),n={$metadata:oi(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(pn.b),Ci=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:qt.filterSensitiveLog,outputFilterSensitiveLog:Yt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.TagResource"},r=JSON.stringify(wr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,zn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=ti(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),Ii=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"UnlinkDeveloperIdentityCommand",inputFilterSensitiveLog:Kt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.UnlinkDeveloperIdentity"},r=JSON.stringify(_r(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n;return Re(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[2,An(e,t)]:[4,ai(e.body,t)];case 1:return r.sent(),n={$metadata:oi(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(pn.b),Li=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"UnlinkIdentityCommand",inputFilterSensitiveLog:Gt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.UnlinkIdentity"},r=JSON.stringify(Sr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n;return Re(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[2,Pn(e,t)]:[4,ai(e.body,t)];case 1:return r.sent(),n={$metadata:oi(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(pn.b),ki=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:Jt.filterSensitiveLog,outputFilterSensitiveLog:Wt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.UntagResource"},r=JSON.stringify(xr(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,On(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=ii(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b),zi=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Oe(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(li.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(ln.a)(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"UpdateIdentityPoolCommand",inputFilterSensitiveLog:Qe.filterSensitiveLog,outputFilterSensitiveLog:Qe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r;return Re(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.UpdateIdentityPool"},r=JSON.stringify(or(e,t)),[2,si(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i;return Re(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Dn(e,t)]:[4,ui(e.body,t)];case 1:return n=o.sent(),r={},r=Or(n,t),i=De({$metadata:oi(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(pn.b);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Oe(t,e),t.prototype.createIdentityPool=function(e,t,n){var r=new di(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentities=function(e,t,n){var r=new pi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentityPool=function(e,t,n){var r=new fi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentity=function(e,t,n){var r=new hi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentityPool=function(e,t,n){var r=new mi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCredentialsForIdentity=function(e,t,n){var r=new vi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getId=function(e,t,n){var r=new gi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getIdentityPoolRoles=function(e,t,n){var r=new yi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdToken=function(e,t,n){var r=new bi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdTokenForDeveloperIdentity=function(e,t,n){var r=new wi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentities=function(e,t,n){var r=new _i(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentityPools=function(e,t,n){var r=new Si(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForResource=function(e,t,n){var r=new xi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.lookupDeveloperIdentity=function(e,t,n){var r=new Ei(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.mergeDeveloperIdentities=function(e,t,n){var r=new Ti(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.setIdentityPoolRoles=function(e,t,n){var r=new Mi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagResource=function(e,t,n){var r=new Ci(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkDeveloperIdentity=function(e,t,n){var r=new Ii(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkIdentity=function(e,t,n){var r=new Li(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagResource=function(e,t,n){var r=new ki(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateIdentityPool=function(e,t,n){var r=new zi(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(fn);var Ai=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return Object(Ae.__extends)(t,e),t}(Error);function Pi(e){return Promise.all(Object.keys(e).reduce(function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then(function(e){return[n,e]})),t},[])).then(function(e){return e.reduce(function(e,t){var n=Object(Ae.__read)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})})}function Oi(e){var t=this;return function(){return Object(Ae.__awaiter)(t,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,l,d,p,f;return Object(Ae.__generator)(this,function(h){switch(h.label){case 0:return l=(c=e.client).send,d=vi.bind,f={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,Pi(e.logins)]:[3,2];case 1:return p=h.sent(),[3,3];case 2:p=void 0,h.label=3;case 3:return[4,l.apply(c,[new(d.apply(vi,[void 0,(f.Logins=p,f)]))])];case 4:return t=h.sent().Credentials,n=void 0===t?function(){throw new Ai("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,i=void 0===r?function(){throw new Ai("Response from Amazon Cognito contained no access key ID")}():r,o=n.Expiration,a=n.SecretKey,s=void 0===a?function(){throw new Ai("Response from Amazon Cognito contained no secret key")}():a,u=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:i,secretAccessKey:s,sessionToken:u,expiration:o}]}})})}}var Di=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",function(t){var n=t.get(e);return new Promise(function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}})}).catch(function(){return null})},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",function(t){var n=t.delete(e);return new Promise(function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}})})},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",function(n){var r=n.put({id:e,value:t});return new Promise(function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}})})},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}})},e.prototype.withObjectStore=function(e,t){return this.getDb().then(function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise(function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))}).catch(function(e){throw n.close(),e})})},e}(),Ni=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function Ri(e){var t=this,n=e.accountId,r=e.cache,i=void 0===r?"object"==typeof self&&self.indexedDB?new Di:"object"==typeof window&&window.localStorage?window.localStorage:Ni:r,o=e.client,a=e.customRoleArn,s=e.identityPoolId,u=e.logins,c=e.userIdentifier,l=void 0===c?u&&0!==Object.keys(u).length?void 0:"ANONYMOUS":c,d=l?"aws:cognito-identity-credentials:"+s+":"+l:void 0,p=function(){return Object(Ae.__awaiter)(t,void 0,void 0,function(){var e,t,r,c,l,f,h,m,v;return Object(Ae.__generator)(this,function(g){switch(g.label){case 0:return(t=d)?[4,i.getItem(d)]:[3,2];case 1:t=g.sent(),g.label=2;case 2:return(e=t)?[3,7]:(f=(l=o).send,h=gi.bind,v={AccountId:n,IdentityPoolId:s},u?[4,Pi(u)]:[3,4]);case 3:return m=g.sent(),[3,5];case 4:m=void 0,g.label=5;case 5:return[4,f.apply(l,[new(h.apply(gi,[void 0,(v.Logins=m,v)]))])];case 6:r=g.sent().IdentityId,c=void 0===r?function(){throw new Ai("Response from Amazon Cognito contained no identity ID")}():r,e=c,d&&Promise.resolve(i.setItem(d,e)).catch(function(){}),g.label=7;case 7:return[2,(p=Oi({client:o,customRoleArn:a,logins:u,identityId:e}))()]}})})};return function(){return p().catch(function(e){return Object(Ae.__awaiter)(t,void 0,void 0,function(){return Object(Ae.__generator)(this,function(t){throw d&&Promise.resolve(i.removeItem(d)).catch(function(){}),e})})})}}var ji=this&&this.__assign||function(){return(ji=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(Hi.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(Hi.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(Hi.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,i=e.user;return $(n,[],1e4).then(function(e){return Hi.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})}).catch(function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),Hi.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return Hi.debug("no credentials for expiration check"),!0;Hi.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return Fi(this,void 0,void 0,function(){var e,t,n,r,i,o,a,s=this;return Bi(this,function(u){switch(u.label){case 0:if(Hi.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return Hi.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return Hi.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._storageSync];case 2:return u.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return i=u.sent(),Hi.debug("Failed to get the cached identityId",i),[3,4];case 4:return o=new fn({region:n,customUserAgent:p()}),a=void 0,a=r?Oi({identityId:r,client:o})():function(){return Fi(s,void 0,void 0,function(){var e;return Bi(this,function(n){switch(n.label){case 0:return[4,o.send(new gi({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Oi({client:o,identityId:e})()]}})})}().catch(function(e){return Fi(s,void 0,void 0,function(){return Bi(this,function(t){throw e})})}),[2,this._loadCredentials(a,"guest",!1,null).then(function(e){return e}).catch(function(e){return Fi(s,void 0,void 0,function(){var n=this;return Bi(this,function(i){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?(Hi.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),a=function(){return Fi(n,void 0,void 0,function(){var e;return Bi(this,function(n){switch(n.label){case 0:return[4,o.send(new gi({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Oi({client:o,identityId:e})()]}})})}().catch(function(e){return Fi(n,void 0,void 0,function(){return Bi(this,function(t){throw e})})}),[2,this._loadCredentials(a,"guest",!1,null)]):[2,e]})})})]}})})},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=n;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return Hi.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return Hi.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new fn({region:u,customUserAgent:p()}),l=void 0;r?l=Oi({identityId:r,logins:o,client:c})():l=Ri({logins:o,identityPoolId:s,client:c})();return this._loadCredentials(l,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Hi.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId;if(!a)return Hi.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return Hi.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=n;var u=new fn({region:i,customUserAgent:p()}),c=Fi(t,void 0,void 0,function(){var e;return Bi(this,function(t){switch(t.label){case 0:return[4,u.send(new gi({IdentityPoolId:a,Logins:s}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,Oi({client:u,logins:s,identityId:e})()]}})}).catch(function(e){return Fi(t,void 0,void 0,function(){return Bi(this,function(t){throw e})})});return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this,a=this._config.identityPoolId;return new Promise(function(s,u){e.then(function(e){return Fi(i,void 0,void 0,function(){var i,u,c,l,d,p;return Bi(this,function(f){switch(f.label){case 0:if(Hi.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),u=r.provider,c=r.token,l=r.expires_at,d=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:u,token:c,user:i,expires_at:l,identity_id:d}))}catch(e){Hi.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,4];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,this._storageSync];case 2:return f.sent(),this._storage.setItem("CognitoIdentityId-"+a,e.identityId),[3,4];case 3:return p=f.sent(),Hi.debug("Failed to cache identityId",p),[3,4];case 4:return s(o._credentials),[2]}})})}).catch(function(t){if(t)return Hi.debug("Failed to load credentials",e),Hi.debug("Error loading credentials",t),void u(t)})})},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(Hi.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Fi(this,void 0,void 0,function(){return Bi(this,function(e){return this._credentials=null,this._credentials_source=null,Hi.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),$i=new Vi(null);l.register($i);var Ui=function(){function e(){this._logger=new a("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(r,i){if(!(navigator&&"serviceWorker"in navigator))return i(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),r(e)}).catch(function(e){return n._logger.debug("Service Worker Registration Failed "+e),i(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,r){if(!Object(k.b)().isBrowser)return r(new Error("Service Worker not available"));t._registration.pushManager.getSubscription().then(function(r){if(!r)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=r,t._logger.debug("User is subscribed to push: "+JSON.stringify(r)),n(r)})})},e.prototype._urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(t),r=new Uint8Array(n.length),i=0;i1&&~~(e/10)%10!=1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},"7MHZ":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},"7OnE":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})(n("PJh5"))},"7Q8x":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})})(n("PJh5"))},"7UMu":function(e,t,n){var r=n("R9M2");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"7YkW":function(e,t,n){var r=n("YeCl"),i=n("Cskv"),o=n("aQOO");function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t1)e.reportError("Field ".concat(t.name,".").concat(d.name," can only be defined once."),p);else{(0,r.isOutputType)(d.type)||e.reportError("The type of ".concat(t.name,".").concat(d.name," must be Output Type ")+"but got: ".concat((0,s.default)(d.type),"."),A(t,d.name));var f=Object.create(null),h=!0,m=!1,v=void 0;try{for(var g,y=d.args[Symbol.iterator]();!(h=(g=y.next()).done);h=!0){var w=g.value,_=w.name;b(e,w),f[_]&&e.reportError("Field argument ".concat(t.name,".").concat(d.name,"(").concat(_,":) can only ")+"be defined once.",O(t,d.name,_)),f[_]=!0,(0,r.isInputType)(w.type)||e.reportError("The type of ".concat(t.name,".").concat(d.name,"(").concat(_,":) must be Input ")+"Type but got: ".concat((0,s.default)(w.type),"."),D(t,d.name,_))}}catch(e){m=!0,v=e}finally{try{h||null==y.return||y.return()}finally{if(m)throw v}}}}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}function _(e,t){var n=Object.create(null),i=!0,o=!1,a=void 0;try{for(var u,c=t.getInterfaces()[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;(0,r.isInterfaceType)(l)?n[l.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(l.name," once."),L(t,l)):(n[l.name]=!0,S(e,t,l)):e.reportError("Type ".concat((0,s.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,s.default)(l),"."),I(t,l))}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}function S(e,t,n){for(var i=t.getFields(),o=n.getFields(),a=Object.keys(o),c=0;c1&&e.reportError("Enum type ".concat(t.name," can include value ").concat(c," only once."),l),b(e,u),"true"!==c&&"false"!==c&&"null"!==c||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(c,"."),u.astNode)}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}function T(e,t){var n=(0,l.default)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),M(t));var i=!0,o=!1,a=void 0;try{for(var u,c=n[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;b(e,d),(0,r.isInputType)(d.type)||e.reportError("The type of ".concat(t.name,".").concat(d.name," must be Input Type ")+"but got: ".concat((0,s.default)(d.type),"."),d.astNode&&d.astNode.type)}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}function M(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function C(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=M(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u){var c=t(u);c&&(n=n.concat(c))}}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function I(e,t){return L(e,t)[0]}function L(e,t){return C(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function k(e,t){return z(e,t)[0]}function z(e,t){return C(e,function(e){return e.fields}).filter(function(e){return e.name.value===t})}function A(e,t){var n=k(e,t);return n&&n.type}function P(e,t,n){return O(e,t,n)[0]}function O(e,t,n){var r=[],i=k(e,t);if(i&&i.arguments){var o=!0,a=!1,s=void 0;try{for(var u,c=i.arguments[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;l.name.value===n&&r.push(l)}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}}return r}function D(e,t,n){var r=P(e,t,n);return r&&r.type}function N(e,t){return C(e,function(e){return e.arguments}).filter(function(e){return e.name.value===t})}function R(e,t){var n=N(e,t)[0];return n&&n.type}function j(e,t){return C(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}function F(e,t){return C(e,function(e){return e.values}).filter(function(e){return e.name.value===t})}},"7e4z":function(e,t,n){var r=n("uieL"),i=n("1Yb9"),o=n("NGEn"),a=n("ggOT"),s=n("ZGh9"),u=n("YsVG"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&u(e),f=n||l||d||p,h=f?r(e.length,String):[],m=h.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},"7kMQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidLiteralValue=function(e,t){var n=new a.GraphQLSchema({}),c={kind:i.Kind.DOCUMENT,definitions:[]},l=new r.TypeInfo(n,void 0,e),d=new u.ValidationContext(n,c,l),p=(0,s.ValuesOfCorrectType)(d);return(0,o.visit)(t,(0,o.visitWithTypeInfo)(l,p)),d.getErrors()};var r=n("nSZy"),i=n("Jko5"),o=n("Hw4J"),a=n("mexH"),s=n("t9z5"),u=n("mCXM")},"82Mu":function(e,t,n){var r=n("7KvD"),i=n("L42u").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n("R9M2")(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},"85UT":function(e,t,n){var r=n("JjP3"),i=n("V4Ak"),o=i;o.v1=r,o.v4=i,e.exports=o},"880/":function(e,t,n){e.exports=n("hJx8")},"88GK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,i=t.subtle;return r.map(function(e){return i[e]}).concat(n).every(function(e){return"function"==typeof e})}return!1}},"8i8s":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateVariableMessage=i,t.UniqueVariableNames=function(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var o=n.variable.name.value;t[o]?e.reportError(new r.GraphQLError(i(o),[t[o],n.variable.name])):t[o]=n.variable.name}}};var r=n("QmgZ");function i(e){return'There can be only one variable named "'.concat(e,'".')}},"8v14":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},"94VQ":function(e,t,n){"use strict";var r=n("Yobk"),i=n("X8DO"),o=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"94sX":function(e,t,n){var r=n("dCZQ");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"94xs":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntrospectionType=function(e){return(0,s.isNamedType)(e)&&(e.name===d.name||e.name===p.name||e.name===f.name||e.name===h.name||e.name===m.name||e.name===v.name||e.name===g.name||e.name===b.name)},t.introspectionTypes=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0;var r=l(n("cHk2")),i=l(n("hZYs")),o=n("f8D2"),a=n("xC4e"),s=n("AS5q"),u=n("EmyK"),c=n("nC2W");function l(e){return e&&e.__esModule?e:{default:e}}var d=new s.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:(0,s.GraphQLNonNull)((0,s.GraphQLList)((0,s.GraphQLNonNull)(h))),resolve:function(e){return(0,i.default)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:(0,s.GraphQLNonNull)(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:(0,s.GraphQLNonNull)((0,s.GraphQLList)((0,s.GraphQLNonNull)(p))),resolve:function(e){return e.getDirectives()}}}}});t.__Schema=d;var p=new s.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:(0,s.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},locations:{type:(0,s.GraphQLNonNull)((0,s.GraphQLList)((0,s.GraphQLNonNull)(f))),resolve:function(e){return e.locations}},args:{type:(0,s.GraphQLNonNull)((0,s.GraphQLList)((0,s.GraphQLNonNull)(v))),resolve:function(e){return e.args||[]}}}}});t.__Directive=p;var f=new s.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:c.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:c.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=f;var h=new s.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:(0,s.GraphQLNonNull)(b),resolve:function(e){if((0,s.isScalarType)(e))return y.SCALAR;if((0,s.isObjectType)(e))return y.OBJECT;if((0,s.isInterfaceType)(e))return y.INTERFACE;if((0,s.isUnionType)(e))return y.UNION;if((0,s.isEnumType)(e))return y.ENUM;if((0,s.isInputObjectType)(e))return y.INPUT_OBJECT;if((0,s.isListType)(e))return y.LIST;if((0,s.isNonNullType)(e))return y.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:u.GraphQLString,resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},fields:{type:(0,s.GraphQLList)((0,s.GraphQLNonNull)(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){var r=(0,i.default)(e.getFields());return n||(r=r.filter(function(e){return!e.deprecationReason})),r}return null}},interfaces:{type:(0,s.GraphQLList)((0,s.GraphQLNonNull)(h)),resolve:function(e){if((0,s.isObjectType)(e))return e.getInterfaces()}},possibleTypes:{type:(0,s.GraphQLList)((0,s.GraphQLNonNull)(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,s.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:(0,s.GraphQLList)((0,s.GraphQLNonNull)(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,s.isEnumType)(e)){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:(0,s.GraphQLList)((0,s.GraphQLNonNull)(v)),resolve:function(e){if((0,s.isInputObjectType)(e))return(0,i.default)(e.getFields())}},ofType:{type:h,resolve:function(e){return e.ofType}}}}});t.__Type=h;var m=new s.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:(0,s.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},args:{type:(0,s.GraphQLNonNull)((0,s.GraphQLList)((0,s.GraphQLNonNull)(v))),resolve:function(e){return e.args||[]}},type:{type:(0,s.GraphQLNonNull)(h),resolve:function(e){return e.type}},isDeprecated:{type:(0,s.GraphQLNonNull)(u.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__Field=m;var v=new s.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:(0,s.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},type:{type:(0,s.GraphQLNonNull)(h),resolve:function(e){return e.type}},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return(0,r.default)(e.defaultValue)?null:(0,a.print)((0,o.astFromValue)(e.defaultValue,e.type))}}}}});t.__InputValue=v;var g=new s.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:(0,s.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},isDeprecated:{type:(0,s.GraphQLNonNull)(u.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__EnumValue=g;var y={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"};t.TypeKind=y;var b=new s.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=b;var w={name:"__schema",type:(0,s.GraphQLNonNull)(d),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}};t.SchemaMetaFieldDef=w;var _={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",type:(0,s.GraphQLNonNull)(u.GraphQLString)}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)}};t.TypeMetaFieldDef=_;var S={name:"__typename",type:(0,s.GraphQLNonNull)(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}};t.TypeNameMetaFieldDef=S;var x=[d,p,f,h,m,v,g,b];t.introspectionTypes=x},"9cRb":function(e,t,n){"use strict";var r,i=n("bZwV"),o=n("Vaby"),a=n("mO9k"),s=n("7Flx"),u=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=new s.l("AbstractIdentifyPredictionsProvider"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.getCategory=function(){return"Identify"},t.prototype.identify=function(e){return Object(a.h)(e)?(c.debug("identifyText"),this.identifyText(e)):Object(a.g)(e)?(c.debug("identifyLabels"),this.identifyLabels(e)):Object(a.e)(e)?(c.debug("identifyEntities"),this.identifyEntities(e)):void 0},t.prototype.identifyText=function(e){throw new Error("identifyText is not implemented by this provider.")},t.prototype.identifyLabels=function(e){throw new Error("identifyLabels is not implemented by this provider")},t.prototype.identifyEntities=function(e){throw new Error("identifyEntities is not implemented by this provider")},t}(i.a),d=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getCategory=function(){return"Interpret"},t.prototype.interpret=function(e){if(Object(a.i)(e))return this.interpretText(e)},t.prototype.interpretText=function(e){throw new Error("interpretText is not implement by this provider")},t}(i.a);n.d(t,"c",function(){return i.a}),n.d(t,!1,function(){return o.a}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return p})},"9eUC":function(e,t,n){"use strict";(function(e){var r;if(t.a=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},"undefined"!=typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==e&&e.crypto&&(r=e.crypto),!r)try{r=n(1)}catch(e){}}).call(t,n("DuR2"))},A9mX:function(e,t,n){var r=n("pTUa");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},AFCf:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},AH5d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("HsNP"),i=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],d=0;d>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[d]=(f+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(r.KEY[d]+this.temp[d]|0)|0)|0,v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;l=c,c=u,u=s,s=a+m|0,a=o,o=i,i=n,n=m+v|0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=i},"AJ/E":function(e,t,n){var r,i,o=n("VyNF"),a=n("C0yR"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},AKgy:function(e,t,n){var r=n("EqjI"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},ALEw:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n("PJh5"))},AS5q:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isType=m,t.assertType=v,t.isScalarType=g,t.assertScalarType=function(e){return g(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Scalar type.")),e},t.isObjectType=y,t.assertObjectType=function(e){return y(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Object type.")),e},t.isInterfaceType=b,t.assertInterfaceType=function(e){return b(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Interface type.")),e},t.isUnionType=w,t.assertUnionType=function(e){return w(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Union type.")),e},t.isEnumType=_,t.assertEnumType=function(e){return _(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Enum type.")),e},t.isInputObjectType=S,t.assertInputObjectType=function(e){return S(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Input Object type.")),e},t.isListType=x,t.assertListType=function(e){return x(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL List type.")),e},t.isNonNullType=E,t.assertNonNullType=function(e){return E(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL Non-Null type.")),e},t.isInputType=T,t.assertInputType=function(e){return T(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL input type.")),e},t.isOutputType=M,t.assertOutputType=function(e){return M(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL output type.")),e},t.isLeafType=C,t.assertLeafType=function(e){return C(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL leaf type.")),e},t.isCompositeType=I,t.assertCompositeType=function(e){return I(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL composite type.")),e},t.isAbstractType=L,t.assertAbstractType=function(e){return L(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL abstract type.")),e},t.GraphQLList=k,t.GraphQLNonNull=z,t.isWrappingType=A,t.assertWrappingType=function(e){return A(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL wrapping type.")),e},t.isNullableType=P,t.assertNullableType=O,t.getNullableType=function(e){if(e)return E(e)?e.ofType:e},t.isNamedType=D,t.assertNamedType=function(e){return D(e)||(0,s.default)(0,"Expected ".concat((0,a.default)(e)," to be a GraphQL named type.")),e},t.getNamedType=function(e){if(e){for(var t=e;A(t);)t=t.ofType;return t}},t.isRequiredArgument=function(e){return E(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return E(e.type)&&void 0===e.defaultValue},t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var r=d(n("YxBq")),i=d(n("hSN0")),o=d(n("IpNb")),a=d(n("ieo+")),s=d(n("JiIc")),u=d(n("Qnzv")),c=n("Jko5"),l=n("+deM");function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){for(var t=1;t10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})(n("PJh5"))},"Ai/T":function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},AoDM:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})})(n("PJh5"))},AxoS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLexer=function(e,t){var n=new d(u.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:a,lookahead:s}},t.getTokenDesc=function(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind},t.TokenKind=void 0;var r,i=n("Qhe+"),o=(r=n("5Xbz"))&&r.__esModule?r:{default:r};function a(){return this.lastToken=this.token,this.token=this.lookahead()}function s(){var e=this.token;if(e.kind!==u.EOF)do{e=e.next||(e.next=f(this,e))}while(e.kind===u.COMMENT);return e}var u=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=u;var c=String.prototype.charCodeAt,l=String.prototype.slice;function d(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function p(e){return isNaN(e)?u.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f(e,t){var n=e.source,r=n.body,a=r.length,s=function(e,t,n){var r=e.length,i=t;for(;i=a)return new d(u.EOF,a,a,f,v,t);var g=c.call(r,s);switch(g){case 33:return new d(u.BANG,s,s+1,f,v,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=c.call(a,++s)}while(null!==o&&(o>31||9===o));return new d(u.COMMENT,t,s,n,r,i,l.call(a,t+1,s))}(n,s,f,v,t);case 36:return new d(u.DOLLAR,s,s+1,f,v,t);case 38:return new d(u.AMP,s,s+1,f,v,t);case 40:return new d(u.PAREN_L,s,s+1,f,v,t);case 41:return new d(u.PAREN_R,s,s+1,f,v,t);case 46:if(46===c.call(r,s+1)&&46===c.call(r,s+2))return new d(u.SPREAD,s,s+3,f,v,t);break;case 58:return new d(u.COLON,s,s+1,f,v,t);case 61:return new d(u.EQUALS,s,s+1,f,v,t);case 64:return new d(u.AT,s,s+1,f,v,t);case 91:return new d(u.BRACKET_L,s,s+1,f,v,t);case 93:return new d(u.BRACKET_R,s,s+1,f,v,t);case 123:return new d(u.BRACE_L,s,s+1,f,v,t);case 124:return new d(u.PIPE,s,s+1,f,v,t);case 125:return new d(u.BRACE_R,s,s+1,f,v,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,p=0;for(;s!==a&&null!==(p=c.call(o,s))&&(95===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122);)++s;return new d(u.NAME,t,s,n,r,i,l.call(o,t,s))}(n,s,f,v,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,o,a){var s=e.body,f=n,m=t,v=!1;45===f&&(f=c.call(s,++m));if(48===f){if((f=c.call(s,++m))>=48&&f<=57)throw(0,i.syntaxError)(e,m,"Invalid number, unexpected digit after 0: ".concat(p(f),"."))}else m=h(e,m,f),f=c.call(s,m);46===f&&(v=!0,f=c.call(s,++m),m=h(e,m,f),f=c.call(s,m));69!==f&&101!==f||(v=!0,43!==(f=c.call(s,++m))&&45!==f||(f=c.call(s,++m)),m=h(e,m,f));return new d(v?u.FLOAT:u.INT,t,m,r,o,a,l.call(s,t,m))}(n,s,g,f,v,t);case 34:return 34===c.call(r,s+1)&&34===c.call(r,s+2)?function(e,t,n,r,a){var s=e.body,f=t+3,h=f,m=0,v="";for(;f=48&&a<=57){do{a=c.call(r,++o)}while(a>=48&&a<=57);return o}throw(0,i.syntaxError)(e,o,"Invalid number, expected digit but got: ".concat(p(a),"."))}function m(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}d.prototype.toJSON=d.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},"B+a0":function(e,t,n){var r=n("AJ/E"),i=n("yyay"),o=i;o.v1=r,o.v4=i,e.exports=o},BEem:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})(n("PJh5"))},BO1k:function(e,t,n){e.exports={default:n("fxRn"),__esModule:!0}},BZdP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("TToO").__exportStar(n("1h2T"),t)},BarH:function(e,t,n){"use strict";var r=n("zSos"),i=n.n(r).a;t.a=i},BbgG:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})(n("PJh5"))},BeVi:function(e,t,n){"use strict";t.a=function(e){var t={text:{fullText:"",words:[],lines:[],linesDetailed:[]}};return e.forEach(function(e){switch(e.Type){case"LINE":t.text.lines.push(e.DetectedText),t.text.linesDetailed.push({text:e.DetectedText,polygon:a(e.Geometry),boundingBox:o(e.Geometry),page:null});break;case"WORD":t.text.fullText+=e.DetectedText+" ",t.text.words.push({text:e.DetectedText,polygon:a(e.Geometry),boundingBox:o(e.Geometry)})}}),t.text.fullText=t.text.fullText.substr(0,t.text.fullText.length-1),t},t.b=function(e){var t={text:{fullText:"",words:[],lines:[],linesDetailed:[]}};if(0===e.length)return t;var n=Array(),r=Array(),u={};if(e.forEach(function(e){switch(e.BlockType){case"LINE":t.text.lines.push(e.Text),t.text.linesDetailed.push({text:e.Text,polygon:a(e.Geometry),boundingBox:o(e.Geometry),page:e.Page});break;case"WORD":t.text.fullText+=e.Text+" ",t.text.words.push({text:e.Text,polygon:a(e.Geometry),boundingBox:o(e.Geometry)}),u[e.Id]=e;break;case"SELECTION_ELEMENT":var i="SELECTED"===e.SelectionStatus;t.text.selections||(t.text.selections=[]),t.text.selections.push({selected:i,polygon:a(e.Geometry),boundingBox:o(e.Geometry)}),u[e.Id]=e;break;case"TABLE":n.push(e);break;case"KEY_VALUE_SET":r.push(e),u[e.Id]=e;break;default:u[e.Id]=e}}),t.text.fullText=t.text.fullText.substr(0,t.text.fullText.length-1),0!==n.length){var c=Array();n.forEach(function(e){c.push(function(e,t){var n,r,u,c,l;l=[];try{for(var d=i(e.Relationships),p=d.next();!p.done;p=d.next()){var f=p.value;try{for(var h=(u=void 0,i(f.Ids)),m=h.next();!m.done;m=h.next()){var v=m.value,g=t[v],y=g.RowIndex-1,b=g.ColumnIndex-1,w=s(g,t),_={text:w.text,boundingBox:o(g.Geometry),polygon:a(g.Geometry),selected:w.selected,rowSpan:g.RowSpan,columnSpan:g.ColumnSpan};l[y]||(l[y]=[]),l[y][b]=_}}catch(e){u={error:e}}finally{try{m&&!m.done&&(c=h.return)&&c.call(h)}finally{if(u)throw u.error}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var S=l.length,x=l[0].length;return{size:{rows:S,columns:x},table:l,boundingBox:o(e.Geometry),polygon:a(e.Geometry)}}(e,u))}),t.text.tables=c}if(0!==r.length){var l=Array();r.forEach(function(e){var t=Array.from(e.EntityTypes);-1!==t.indexOf("KEY")&&l.push(function(e,t){var n,r,u,c,l,d="",p="";try{for(var f=i(e.Relationships),h=f.next();!h.done;h=f.next()){var m=h.value;if("CHILD"===m.Type){var v=s(e,t);d=v.text}else if("VALUE"===m.Type)try{for(var g=(u=void 0,i(m.Ids)),y=g.next();!y.done;y=g.next()){var b=y.value,w=t[b],v=s(w,t);p=v.text,null!=v.selected&&(l=v.selected)}}catch(e){u={error:e}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}return{key:d,value:{text:p,selected:l},polygon:a(e.Geometry),boundingBox:o(e.Geometry)}}(e,u))}),t.text.keyValues=l}return t};var r=n("sN2Z"),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e){if(e)return Object(r.b)(e.BoundingBox)}function a(e){if(e)return Object(r.c)(Array.from(e.Polygon))}function s(e,t){var n,r,o,a,s,u="";if(!e.Relationships)return{text:"",selected:void 0};try{for(var c=i(e.Relationships),l=c.next();!l.done;l=c.next()){var d=l.value;try{for(var p=(o=void 0,i(d.Ids)),f=p.next();!f.done;f=p.next()){var h=t[f.value];"WORD"===h.BlockType?u+=h.Text+" ":"SELECTION_ELEMENT"===h.BlockType&&(s="SELECTED"===h.SelectionStatus)}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return{text:u=u.substr(0,u.length-1),selected:s}}},Bl0V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=i,t.UniqueFragmentNames=function(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var o=n.name.value;return t[o]?e.reportError(new r.GraphQLError(i(o),[t[o],n.name])):t[o]=n.name,!1}}};var r=n("QmgZ");function i(e){return'There can be only one fragment named "'.concat(e,'".')}},BmPm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a,s,u,c=(0,r.getAsyncIterator)(e);"function"==typeof c.return&&(a=c.return,s=function(e){var t=function(){return Promise.reject(e)};return a.call(c).then(t,t)});function l(e){return e.done?e:i(e.value,t).then(o,s)}if(n){var d=n;u=function(e){return i(e,d).then(o,s)}}return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({next:function(){return c.next().then(l,u)},return:function(){return a?a.call(c).then(l,u):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(l,u):Promise.reject(e).catch(s)}},r.$$asyncIterator,function(){return this})};var r=n("viVm");function i(e,t){return new Promise(function(n){return n(t(e))})}function o(e){return{value:e,done:!1}}},Bp2f:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})(n("PJh5"))},BwfY:function(e,t,n){n("fWfb"),n("M6a0"),n("OYls"),n("QWe/"),e.exports=n("FeBl").Symbol},C0hh:function(e,t){e.exports=function(){return[]}},C0yR:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},C2Vs:function(e,t,n){"use strict";const r=n("cGSG"),i={allowBooleanAttributes:!1},o=["allowBooleanAttributes"];function a(e,t){const n=t;for(;t5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",m(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===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[t]&&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[t+2]){t+=2;break}return t}t.validate=function(e,t){t=r.buildOptions(t,i,o);const n=[];let u=!1,c=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)g+=e[i];if("/"===(g=g.trim())[g.length-1]&&(g=g.substring(0,g.length-1),i--),d=g,!r.isName(d)){let t;return h("InvalidTag",t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",m(e,i))}const y=l(e,i);if(!1===y)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",m(e,i));let b=y.value;if(i=y.index,"/"===b[b.length-1]){const n=i-b.length,r=p(b=b.substring(0,b.length-1),t);if(!0!==r)return h(r.err.code,r.err.msg,m(e,n+r.err.line));u=!0}else if(v){if(!y.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",m(e,i));if(b.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",m(e,o));{const t=n.pop();if(g!==t.tagName){let n=m(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",m(e,o))}0==n.length&&(c=!0)}}else{const r=p(b,t);if(!0!==r)return h(r.err.code,r.err.msg,m(e,i-b.length+r.err.line));if(!0===c)return h("InvalidXml","Multiple possible root nodes found.",m(e,i));n.push({tagName:g,tagStartPos:o}),u=!0}for(i++;i0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const u='"',c="'";function l(e,t){let n="",r="",i=!1;for(;t"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,d),i={};for(let e=0;e0){var a=n.substring(0,i),s=n.substring(i+r.length);n=a+t[o]+s}return n},c=[0,6,77,81,73,115,100,112,3],l=[0,4,77,81,84,84,4],d=function(e,t){for(var n in this.type=e,t)t.hasOwnProperty(n)&&(this[n]=t[n])};function p(e,t){var n,i=t,o=e[t],a=o>>4,s=o&=15;t+=1;var u=0,c=1;do{if(t==e.length)return[null,i];u+=(127&(n=e[t++]))*c,c*=128}while(0!=(128&n));var l=t+u;if(l>e.length)return[null,i];var p=new d(a);switch(a){case r.CONNACK:1&e[t++]&&(p.sessionPresent=!0),p.returnCode=e[t++];break;case r.PUBLISH:var f=s>>1&3,h=m(e,t),v=y(e,t+=2,h);t+=h,f>0&&(p.messageIdentifier=m(e,t),t+=2);var g=new S(e.subarray(t,l));1==(1&s)&&(g.retained=!0),8==(8&s)&&(g.duplicate=!0),g.qos=f,g.destinationName=v,p.payloadMessage=g;break;case r.PUBACK:case r.PUBREC:case r.PUBREL:case r.PUBCOMP:case r.UNSUBACK:p.messageIdentifier=m(e,t);break;case r.SUBACK:p.messageIdentifier=m(e,t),t+=2,p.returnCode=e.subarray(t,l)}return[p,l]}function f(e,t,n){return t[n++]=e>>8,t[n++]=e%256,n}function h(e,t,n,r){return g(e,n,r=f(t,n,r)),r+t}function m(e,t){return 256*e[t]+e[t+1]}function v(e){for(var t=0,n=0;n2047?(55296<=r&&r<=56319&&(n++,t++),t+=3):r>127?t+=2:t++}return t}function g(e,t,n){for(var r=n,i=0;i>6&31|192,t[r++]=63&o|128):o<=65535?(t[r++]=o>>12&15|224,t[r++]=o>>6&63|128,t[r++]=63&o|128):(t[r++]=o>>18&7|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=63&o|128)}return t}function y(e,t,n){for(var r,i="",o=t;o65535&&(r-=65536,i+=String.fromCharCode(55296+(r>>10)),r=56320+(1023&r)),i+=String.fromCharCode(r)}return i}d.prototype.encode=function(){var e,t=(15&this.type)<<4,n=0,i=[],o=0;switch(void 0!==this.messageIdentifier&&(n+=2),this.type){case r.CONNECT:switch(this.mqttVersion){case 3:n+=c.length+3;break;case 4:n+=l.length+3}n+=v(this.clientId)+2,void 0!==this.willMessage&&(n+=v(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(s)),n+=e.byteLength+2),void 0!==this.userName&&(n+=v(this.userName)+2),void 0!==this.password&&(n+=v(this.password)+2);break;case r.SUBSCRIBE:t|=2;for(var a=0;a>=7)>0&&(r|=128),t[n++]=r}while(e>0&&n<4);return t}(n),d=u.length+1,p=new ArrayBuffer(n+d),m=new Uint8Array(p);if(m[0]=t,m.set(u,1),this.type==r.PUBLISH)d=h(this.payloadMessage.destinationName,o,m,d);else if(this.type==r.CONNECT){switch(this.mqttVersion){case 3:m.set(c,d),d+=c.length;break;case 4:m.set(l,d),d+=l.length}var g=0;this.cleanSession&&(g=2),void 0!==this.willMessage&&(g|=4,g|=this.willMessage.qos<<3,this.willMessage.retained&&(g|=32)),void 0!==this.userName&&(g|=128),void 0!==this.password&&(g|=64),m[d++]=g,d=f(this.keepAliveInterval,m,d)}switch(void 0!==this.messageIdentifier&&(d=f(this.messageIdentifier,m,d)),this.type){case r.CONNECT:d=h(this.clientId,v(this.clientId),m,d),void 0!==this.willMessage&&(d=h(this.willMessage.destinationName,v(this.willMessage.destinationName),m,d),d=f(e.byteLength,m,d),m.set(e,d),d+=e.byteLength),void 0!==this.userName&&(d=h(this.userName,v(this.userName),m,d)),void 0!==this.password&&(d=h(this.password,v(this.password),m,d));break;case r.PUBLISH:m.set(s,d);break;case r.SUBSCRIBE:for(a=0;a0&&(this.timeout=setTimeout(i(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},w=function(e,t,n,r){t||(t=30);this.timeout=setTimeout(function(e,t,n){return function(){return e.apply(t,n)}}(n,e,r),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},_=function(t,r,i,o,s){if(!("WebSocket"in e&&null!==e.WebSocket))throw new Error(u(a.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e&&null!==e.ArrayBuffer))throw new Error(u(a.UNSUPPORTED,["ArrayBuffer"]));for(var c in this._trace("Paho.Client",t,r,i,o,s),this.host=r,this.port=i,this.path=o,this.uri=t,this.clientId=s,this._wsuri=null,this._localKey=r+":"+i+("/mqtt"!=o?":"+o:"")+":"+s+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,n)0!==c.indexOf("Sent:"+this._localKey)&&0!==c.indexOf("Received:"+this._localKey)||this.restore(c)};_.prototype.host=null,_.prototype.port=null,_.prototype.path=null,_.prototype.uri=null,_.prototype.clientId=null,_.prototype.socket=null,_.prototype.connected=!1,_.prototype.maxMessageIdentifier=65536,_.prototype.connectOptions=null,_.prototype.hostIndex=null,_.prototype.onConnected=null,_.prototype.onConnectionLost=null,_.prototype.onMessageDelivered=null,_.prototype.onMessageArrived=null,_.prototype.traceFunction=null,_.prototype._msg_queue=null,_.prototype._buffered_msg_queue=null,_.prototype._connectTimeout=null,_.prototype.sendPinger=null,_.prototype.receivePinger=null,_.prototype._reconnectInterval=1,_.prototype._reconnecting=!1,_.prototype._reconnectTimeout=null,_.prototype.disconnectedPublishing=!1,_.prototype.disconnectedBufferSize=5e3,_.prototype.receiveBuffer=null,_.prototype._traceBuffer=null,_.prototype._MAX_TRACE_ENTRIES=100,_.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(u(a.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(u(a.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},_.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(u(a.INVALID_STATE,["not connected"]));var n=new d(r.SUBSCRIBE);n.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),n.requestedQos=[];for(var i=0;i0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(u(a.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(u(a.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},_.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(u(a.INVALID_STATE,["not connecting or connected"]));var e=new d(r.DISCONNECT);this._notify_msg_sent[e]=o(this._disconnected,this),this._schedule_message(e)},_.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},_.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},_.prototype.stopTrace=function(){delete this._traceBuffer},_.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(e,["mqttv3.1"]):this.socket=new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=o(this._on_socket_open,this),this.socket.onmessage=o(this._on_socket_message,this),this.socket.onerror=o(this._on_socket_error,this),this.socket.onclose=o(this._on_socket_close,this),this.sendPinger=new b(this,this.connectOptions.keepAliveInterval),this.receivePinger=new b(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new w(this,this.connectOptions.timeout,this._disconnected,[a.CONNECT_TIMEOUT.code,u(a.CONNECT_TIMEOUT)])},_.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},_.prototype.store=function(e,t){var i={type:t.type,messageIdentifier:t.messageIdentifier,version:1};switch(t.type){case r.PUBLISH:t.pubRecReceived&&(i.pubRecReceived=!0),i.payloadMessage={};for(var o="",s=t.payloadMessage.payloadBytes,c=0;c=2;){var f=parseInt(s.substring(0,2),16);s=s.substring(2,s.length),l[p++]=f}var h=new S(l);h.qos=i.payloadMessage.qos,h.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(h.duplicate=!0),i.payloadMessage.retained&&(h.retained=!0),o.payloadMessage=h;break;default:throw Error(u(a.INVALID_STORED_DATA,[e,t]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},_.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},_.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===r.PUBLISH&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},_.prototype._on_socket_open=function(){var e=new d(r.CONNECT,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},_.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),n=0;n0)for(var p=null;p=this._buffered_msg_queue.pop();)c.push(p),this.onMessageDelivered&&(this._notify_msg_sent[p]=this.onMessageDelivered(p.payloadMessage));for(var f=0,h=(c=c.sort(function(e,t){return e.sequence-t.sequence})).length;f65535)throw new Error(u(a.INVALID_ARGUMENT,[r,"clientId"]));var f=new _(o,e,t,n,r);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(u(a.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(u(a.UNSUPPORTED_OPERATION))}},path:{get:function(){return n},set:function(){throw new Error(u(a.UNSUPPORTED_OPERATION))}},uri:{get:function(){return o},set:function(){throw new Error(u(a.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return f.clientId},set:function(){throw new Error(u(a.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return f.onConnected},set:function(e){if("function"!=typeof e)throw new Error(u(a.INVALID_TYPE,[typeof e,"onConnected"]));f.onConnected=e}},disconnectedPublishing:{get:function(){return f.disconnectedPublishing},set:function(e){f.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return f.disconnectedBufferSize},set:function(e){f.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return f.onConnectionLost},set:function(e){if("function"!=typeof e)throw new Error(u(a.INVALID_TYPE,[typeof e,"onConnectionLost"]));f.onConnectionLost=e}},onMessageDelivered:{get:function(){return f.onMessageDelivered},set:function(e){if("function"!=typeof e)throw new Error(u(a.INVALID_TYPE,[typeof e,"onMessageDelivered"]));f.onMessageDelivered=e}},onMessageArrived:{get:function(){return f.onMessageArrived},set:function(e){if("function"!=typeof e)throw new Error(u(a.INVALID_TYPE,[typeof e,"onMessageArrived"]));f.onMessageArrived=e}},trace:{get:function(){return f.traceFunction},set:function(e){if("function"!=typeof e)throw new Error(u(a.INVALID_TYPE,[typeof e,"onTrace"]));f.traceFunction=e}}}),this.connect=function(e){if(i(e=e||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(u(a.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(u(a.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof S))throw new Error(u(a.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,void 0===e.willMessage.destinationName)throw new Error(u(a.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(u(a.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(u(a.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,r=0;r=3&&(i.qos=n),arguments.length>=4&&(i.retained=r),f.send(i)},this.publish=function(e,t,n,r){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof S)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(i=e).destinationName)throw new Error(u(a.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));f.send(i)}else(i=new S(t)).destinationName=e,arguments.length>=3&&(i.qos=n),arguments.length>=4&&(i.retained=r),f.send(i)},this.disconnect=function(){f.disconnect()},this.getTraceLog=function(){return f.getTraceLog()},this.startTrace=function(){f.startTrace()},this.stopTrace=function(){f.stopTrace()},this.isConnected=function(){return f.connected}},Message:S}}(void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},e.exports=n()}).call(t,n("DuR2"))},C7av:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},CFfv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=d,t.OverlappingFieldsCanBeMerged=function(e){var t=new y,n=new Map;return{SelectionSet:function(i){for(var o=function(e,t,n,r,i){var o=[],a=v(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=Object.keys(i),a=0;a1)for(var c=0;c0)return[[t,e.map(function(e){var t=e[0];return t})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[r])]}(function(e,t,n,r,i,o,a,s){var u=[],c=v(e,t,i,o),l=c[0],d=c[1],m=v(e,t,a,s),g=m[0],y=m[1];if(h(e,u,t,n,r,l,g),0!==y.length)for(var b=Object.create(null),w=0;w11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})(n("PJh5"))},CHlY:function(e,t,n){var r=n("kM2E"),i=n("bs6G");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},CW5P:function(e,t,n){var r=n("T/bE"),i=n("duB3"),o=n("POb3");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},CXw9:function(e,t,n){"use strict";var r,i,o,a,s=n("O4g8"),u=n("7KvD"),c=n("+ZMJ"),l=n("RY/4"),d=n("kM2E"),p=n("EqjI"),f=n("lOnJ"),h=n("2KxR"),m=n("NWt+"),v=n("t8x9"),g=n("L42u").set,y=n("82Mu")(),b=n("qARP"),w=n("dNDb"),_=n("iUbK"),S=n("fJUb"),x=u.TypeError,E=u.process,T=E&&E.versions,M=T&&T.v8||"",C=u.Promise,I="process"==l(E),L=function(){},k=i=b.f,z=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n("dSzd")("species")]=function(e){e(L,L)};return(I||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==M.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?c(x("Promise-chain cycle")):(o=A(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!a&&l.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&O(e)})}},O=function(e){g.call(u,function(){var t,n,r,i=e._v,o=D(e);if(o&&(t=w(function(){I?E.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=I||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(u,function(){var t;I?E.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=A(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(j,r,1),c(R,r,1))}catch(e){R.call(r,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};z||(C=function(e){h(this,C,"Promise","_h"),f(e),r.call(this);try{e(c(j,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(C.prototype,{then:function(e,t){var n=k(v(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=I?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(j,e,1),this.reject=c(R,e,1)},b.f=k=function(e){return e===C||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!z,{Promise:C}),n("e6n0")(C,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,d(d.S+d.F*!z,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!z),"Promise",{resolve:function(e){return S(s&&this===a?C:this,e)}}),d(d.S+d.F*!(z&&n("dY0y")(function(e){C.all(e).catch(L)})),"Promise",{all:function(e){var t=this,n=k(t),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=k(t),r=n.reject,i=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},Cdx3:function(e,t,n){var r=n("sB3e"),i=n("lktj");n("uqUo")("keys",function(){return function(e){return i(r(e))}})},CqHt:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})})(n("PJh5"))},Cskv:function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},D2L2:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},DOkx:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},DQCr:function(e,t,n){"use strict";var r=n("cGG2");function i(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(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},DQeA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},DSXN:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})(n("PJh5"))},DUeU:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))}),r.forEach(o,c),r.forEach(a,function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])}),r.forEach(s,function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))});var l=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===l.indexOf(e)});return r.forEach(d,c),n}},Dc0G:function(e,t,n){(function(e){var r=n("blYT"),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(t,n("3IRH")(e))},Dd7q:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,l.isSchema)(e)||(0,r.default)(0,"Must provide valid GraphQLSchema"),!(t&&t.kind===m.Kind.DOCUMENT)&&(0,r.default)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||(0,u.assertValidSDLExtension)(t,e);for(var g,w=Object.create(null),_=Object.create(null),S=[],x=[],E=0;E0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},ETHv:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})(n("PJh5"))},Ef6U:function(e,t,n){e.exports=function(e){var t=e.helpers,r=n("wXZ4")(e),i="horizontal",o="vertical";return e.Annotation.Element.extend({setDataLimits:function(){var e=this._model,t=this.options;e.ranges={},e.ranges[t.scaleID]={min:t.value,max:t.endValue||t.value}},configure:function(){var e,n,a=this._model,s=this.options,u=this.chartInstance,c=u.chart.ctx,l=u.scales[s.scaleID];if(l&&(e=r.isValid(s.value)?l.getPixelForValue(s.value):NaN,n=r.isValid(s.endValue)?l.getPixelForValue(s.endValue):e),!isNaN(e)){var d=u.chartArea;a.clip={x1:d.left,x2:d.right,y1:d.top,y2:d.bottom},this.options.mode==i?(a.x1=d.left,a.x2=d.right,a.y1=e,a.y2=n):(a.y1=d.top,a.y2=d.bottom,a.x1=e,a.x2=n),a.line=new function(e){var t=(e.x2-e.x1)/(e.y2-e.y1),n=e.x1||0;this.m=t,this.b=n,this.getX=function(r){return t*(r-e.y1)+n},this.getY=function(r){return(r-n)/t+e.y1},this.intersects=function(e,t,n){n=n||.001;var r=this.getY(e),i=this.getX(t);return(!isFinite(r)||Math.abs(t-r)=n.labelX&&e<=n.labelX+n.labelWidth&&t>=n.labelY&&t<=n.labelY+n.labelHeight},getCenterPoint:function(){return{x:(this._model.x2+this._model.x1)/2,y:(this._model.y2+this._model.y1)/2}},getWidth:function(){return Math.abs(this._model.right-this._model.left)},getHeight:function(){return this._model.borderWidth||1},getArea:function(){return Math.sqrt(Math.pow(this.getWidth(),2)+Math.pow(this.getHeight(),2))},draw:function(){var e=this._view,n=this.chartInstance.chart.ctx;e.clip&&(n.save(),n.beginPath(),n.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),n.clip(),n.lineWidth=e.borderWidth,n.strokeStyle=e.borderColor,n.setLineDash&&n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),n.stroke(),e.labelEnabled&&e.labelContent&&(n.beginPath(),n.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),n.clip(),n.fillStyle=e.labelBackgroundColor,t.drawRoundedRectangle(n,e.labelX,e.labelY,e.labelWidth,e.labelHeight,e.labelCornerRadius),n.fill(),n.font=t.fontString(e.labelFontSize,e.labelFontStyle,e.labelFontFamily),n.fillStyle=e.labelFontColor,n.textAlign="center",n.textBaseline="middle",n.fillText(e.labelContent,e.labelX+e.labelWidth/2,e.labelY+e.labelHeight/2)),n.restore())}})}},"EgU/":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=n("fyIH"),i=void 0!==e&&e.from?function(t){return e.from(t,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}).call(t,n("EuP9").Buffer)},Ei90:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownDirectiveMessage=s,t.misplacedDirectiveMessage=u,t.KnownDirectives=function(e){var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():a.specifiedDirectives,l=!0,d=!1,p=void 0;try{for(var f,h=c[Symbol.iterator]();!(l=(f=h.next()).done);l=!0){var m=f.value;t[m.name]=m.locations}}catch(e){d=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(d)throw p}}var v=e.getDocument().definitions,g=!0,y=!1,b=void 0;try{for(var w,_=v[Symbol.iterator]();!(g=(w=_.next()).done);g=!0){var S=w.value;S.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[S.name.value]=S.locations.map(function(e){return e.value}))}}catch(e){y=!0,b=e}finally{try{g||null==_.return||_.return()}finally{if(y)throw b}}return{Directive:function(n,a,c,l,d){var p=n.name.value,f=t[p];if(f){var h=function(e){var t=e[e.length-1];if(!Array.isArray(t))switch(t.kind){case i.Kind.OPERATION_DEFINITION:switch(t.operation){case"query":return o.DirectiveLocation.QUERY;case"mutation":return o.DirectiveLocation.MUTATION;case"subscription":return o.DirectiveLocation.SUBSCRIPTION}break;case i.Kind.FIELD:return o.DirectiveLocation.FIELD;case i.Kind.FRAGMENT_SPREAD:return o.DirectiveLocation.FRAGMENT_SPREAD;case i.Kind.INLINE_FRAGMENT:return o.DirectiveLocation.INLINE_FRAGMENT;case i.Kind.FRAGMENT_DEFINITION:return o.DirectiveLocation.FRAGMENT_DEFINITION;case i.Kind.VARIABLE_DEFINITION:return o.DirectiveLocation.VARIABLE_DEFINITION;case i.Kind.SCHEMA_DEFINITION:case i.Kind.SCHEMA_EXTENSION:return o.DirectiveLocation.SCHEMA;case i.Kind.SCALAR_TYPE_DEFINITION:case i.Kind.SCALAR_TYPE_EXTENSION:return o.DirectiveLocation.SCALAR;case i.Kind.OBJECT_TYPE_DEFINITION:case i.Kind.OBJECT_TYPE_EXTENSION:return o.DirectiveLocation.OBJECT;case i.Kind.FIELD_DEFINITION:return o.DirectiveLocation.FIELD_DEFINITION;case i.Kind.INTERFACE_TYPE_DEFINITION:case i.Kind.INTERFACE_TYPE_EXTENSION:return o.DirectiveLocation.INTERFACE;case i.Kind.UNION_TYPE_DEFINITION:case i.Kind.UNION_TYPE_EXTENSION:return o.DirectiveLocation.UNION;case i.Kind.ENUM_TYPE_DEFINITION:case i.Kind.ENUM_TYPE_EXTENSION:return o.DirectiveLocation.ENUM;case i.Kind.ENUM_VALUE_DEFINITION:return o.DirectiveLocation.ENUM_VALUE;case i.Kind.INPUT_OBJECT_TYPE_DEFINITION:case i.Kind.INPUT_OBJECT_TYPE_EXTENSION:return o.DirectiveLocation.INPUT_OBJECT;case i.Kind.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION?o.DirectiveLocation.INPUT_FIELD_DEFINITION:o.DirectiveLocation.ARGUMENT_DEFINITION}}(d);h&&-1===f.indexOf(h)&&e.reportError(new r.GraphQLError(u(p,h),[n]))}else e.reportError(new r.GraphQLError(s(p),[n]))}}};var r=n("QmgZ"),i=n("Jko5"),o=n("nC2W"),a=n("uWn1");function s(e){return'Unknown directive "'.concat(e,'".')}function u(e,t){return'Directive "'.concat(e,'" may not be used on ').concat(t,".")}},Ekz1:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},ElpU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execute=function(e,t,n,r,i,o,a){return 1===arguments.length?E(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):E(e,t,n,r,i,o,a)},t.responsePathAsArray=T,t.addPath=M,t.assertValidExecutionArguments=C,t.buildExecutionContext=I,t.collectFields=k,t.buildResolveInfo=O,t.resolveFieldValueOrError=D,t.getFieldDef=Y,t.defaultFieldResolver=void 0;var r=n("viVm"),i=n("QmgZ"),o=n("t/I/"),a=S(n("ieo+")),s=S(n("JiIc")),u=S(n("cHk2")),c=S(n("Yi9h")),l=S(n("JiT4")),d=S(n("JOB5")),p=S(n("SnwO")),f=S(n("/THN")),h=n("4wyj"),m=n("nIlP"),v=n("Jko5"),g=n("tSvn"),y=n("AS5q"),b=n("94xs"),w=n("uWn1"),_=n("7b7P");function S(e){return e&&e.__esModule?e:{default:e}}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,n,r,i,o,a){C(e,t,i);var s=I(e,t,n,r,i,o,a);return Array.isArray(s)?{errors:s}:function e(t,n){if((0,l.default)(n))return n.then(function(n){return e(t,n)});return 0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(s,function(e,t,n){var r=(0,h.getOperationRootType)(e.schema,t),i=k(e,r,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var a="mutation"===t.operation?function(e,t,n,r,i){return(0,f.default)(Object.keys(i),function(o,a){var s=i[a],u=M(r,a),c=P(e,t,n,s,u);return void 0===c?o:(0,l.default)(c)?c.then(function(e){return o[a]=e,o}):(o[a]=c,o)},Object.create(null))}(e,r,n,o,i):L(e,r,n,o,i);return(0,l.default)(a)?a.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}(s,s.operation,n))}function T(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function M(e,t){return{prev:e,key:t}}function C(e,t,n){t||(0,s.default)(0,"Must provide document"),(0,_.assertValidSchema)(e),n&&"object"!==x(n)&&(0,s.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function I(e,t,n,r,o,a,u){for(var c,l,d=[],p=!1,f=Object.create(null),h=0;hc||tc||e=l)return t}}});t.GraphQLInt=d;var p=new a.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!(0,i.default)(t))throw new TypeError("Float cannot represent non numeric value: ".concat((0,r.default)(e)));return t},parseValue:function(e){if(!(0,i.default)(e))throw new TypeError("Float cannot represent non numeric value: ".concat((0,r.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.FLOAT||e.kind===s.Kind.INT?parseFloat(e.value):void 0}});t.GraphQLFloat=p;var f=new a.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=e&&"function"==typeof e.valueOf?e.valueOf():e;if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if((0,i.default)(t))return t.toString();throw new TypeError("String cannot represent value: ".concat((0,r.default)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat((0,r.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.STRING?e.value:void 0}});t.GraphQLString=f;var h=new a.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if((0,i.default)(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,r.default)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,r.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.BOOLEAN?e.value:void 0}});t.GraphQLBoolean=h;var m=new a.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=e&&"function"==typeof e.valueOf?e.valueOf():e;if("string"==typeof t)return t;if((0,o.default)(t))return String(t);throw new TypeError("ID cannot represent value: ".concat((0,r.default)(e)))},parseValue:function(e){if("string"==typeof e)return e;if((0,o.default)(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat((0,r.default)(e)))},parseLiteral:function(e){return e.kind===s.Kind.STRING||e.kind===s.Kind.INT?e.value:void 0}});t.GraphQLID=m;var v=[f,d,p,h,m];t.specifiedScalarTypes=v},EomY:function(e,t,n){var r,i,o=n("YpO/"),a=n("lAOA"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},EqBC:function(e,t,n){"use strict";var r=n("kM2E"),i=n("FeBl"),o=n("7KvD"),a=n("t8x9"),s=n("fJUb");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},EqjI:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},EqjL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=i,t.KnownFragmentNames=function(e){return{FragmentSpread:function(t){var n=t.name.value,o=e.getFragment(n);o||e.reportError(new r.GraphQLError(i(n),[t.name]))}}};var r=n("QmgZ");function i(e){return'Unknown fragment "'.concat(e,'".')}},EuP9:function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("EKta"),i=n("ujcs"),o=n("sOR5");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("DuR2"))},Ex0O:function(e,t,n){"use strict";var r=n("TToO"),i=function(){var e=[],t=[],n=new Set,s=function(n){return e.forEach(function(e){n.add(e.middleware,Object(r.__assign)({},e))}),t.forEach(function(e){n.addRelativeTo(e.middleware,Object(r.__assign)({},e))}),n},u=function(e){var t=[];return e.before.forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(r.__spread)(u(e)))}),t.push(e),e.after.reverse().forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(r.__spread)(u(e)))}),t},c=function(){var n,i=[],s=[],c={};return e.forEach(function(e){var t=Object(r.__assign)(Object(r.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),i.push(t)}),t.forEach(function(e){var t=Object(r.__assign)(Object(r.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),s.push(t)}),s.forEach(function(e){if(e.toMiddleware){var t=c[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),(n=i,n.sort(function(e,t){return o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"]})).map(u).reduce(function(e,t){return e.push.apply(e,Object(r.__spread)(t)),e},[]).map(function(e){return e.middleware})},l={add:function(t,i){void 0===i&&(i={});var o=i.name,a=i.override,s=Object(r.__assign)({step:"initialize",priority:"normal",middleware:t},i);if(o){if(n.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var u=e.findIndex(function(e){return e.name===o}),c=e[u];if(c.step!==s.step||c.priority!==s.priority)throw new Error('"'+o+'" middleware with '+c.priority+" priority in "+c.step+" step cannot be overridden by same-name middleware with "+s.priority+" priority in "+s.step+" step.");e.splice(u,1)}n.add(o)}e.push(s)},addRelativeTo:function(e,i){var o=i.name,a=i.override,s=Object(r.__assign)({middleware:e},i);if(o){if(n.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var u=t.findIndex(function(e){return e.name===o}),c=t[u];if(c.toMiddleware!==s.toMiddleware||c.relation!==s.relation)throw new Error('"'+o+'" middleware '+c.relation+' "'+c.toMiddleware+'" middleware cannot be overridden by same-name middleware '+s.relation+' "'+s.toMiddleware+'" middleware.');t.splice(u,1)}n.add(o)}t.push(s)},clone:function(){return s(i())},use:function(e){e.applyToStack(l)},remove:function(r){return"string"==typeof r?function(r){var i=!1,o=function(e){return!e.name||e.name!==r||(i=!0,n.delete(r),!1)};return e=e.filter(o),t=t.filter(o),i}(r):function(r){var i=!1,o=function(e){return e.middleware!==r||(i=!0,e.name&&n.delete(e.name),!1)};return e=e.filter(o),t=t.filter(o),i}(r)},removeByTag:function(r){var i=!1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(r)||(o&&n.delete(o),i=!0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var t=s(i());return t.use(e),t},applyToStack:s,resolve:function(e,t){var n,i;try{for(var o=Object(r.__values)(c().reverse()),a=o.next();!a.done;a=o.next()){e=(0,a.value)(e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}};return l},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1},s=function(){function e(e){this.middlewareStack=i(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,i="function"==typeof t?t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return o(e).then(function(e){return e.output});o(e).then(function(e){return i(null,e.output)},function(e){return i(e)}).catch(function(){})},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),u=function(){return function(){this.middlewareStack=i()}}();function c(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}var l=function(e){return Array.isArray(e)?e:[e]},d=function(e){for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]["#text"]?e[t]=e[t]["#text"]:"object"==typeof e[t]&&null!==e[t]&&(e[t]=d(e[t]));return e},p=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,Object(r.__spread)([null],arguments)));return Object.setPrototypeOf(t,e.prototype),t};p.prototype=Object.create(String.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(p,String);var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:e instanceof String||"string"==typeof e?new t(e):new t(JSON.stringify(e))},t}(p),h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function v(e){var t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),o=e.getUTCHours(),a=e.getUTCMinutes(),s=e.getUTCSeconds(),u=i<10?"0"+i:""+i,c=o<10?"0"+o:""+o,l=a<10?"0"+a:""+a,d=s<10?"0"+s:""+s;return h[r]+", "+u+" "+m[n]+" "+t+" "+c+":"+l+":"+d+" GMT"}function g(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");var r=e.split(t);if(1===n)return r;for(var i=[],o="",a=0;a1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},FQv3:function(e,t,n){"use strict";t.a=function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;np))return!1;var h=l.get(e),m=l.get(t);if(h&&m)return h==t&&m==e;var v=-1,g=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})(n("PJh5"))},G2xm:function(e,t){e.exports=function(e){return this.__data__.has(e)}},GGUb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t,n,r,i,o,a,s){return 1===arguments.length?p(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver,e.subscribeFieldResolver):p(e,t,n,r,i,o,a,s)},t.createSourceEventStream=f;var r=n("viVm"),i=l(n("ieo+")),o=n("QmgZ"),a=n("t/I/"),s=n("ElpU"),u=l(n("BmPm")),c=n("4wyj");function l(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e instanceof o.GraphQLError)return{errors:[e]};throw e}function p(e,t,n,i,o,a,c,l){var p=function(n){return(0,s.execute)(e,t,n,i,o,a,c)};return f(e,t,n,i,o,a,l).then(function(e){return(0,r.isAsyncIterable)(e)?(0,u.default)(e,p,d):e},d)}function f(e,t,n,u,l,d,p){(0,s.assertValidExecutionArguments)(e,t,l);try{var f=(0,s.buildExecutionContext)(e,t,n,u,l,d,p);if(Array.isArray(f))return Promise.resolve({errors:f});var h=(0,c.getOperationRootType)(e,f.operation),m=(0,s.collectFields)(f,h,f.operation.selectionSet,Object.create(null),Object.create(null)),v=Object.keys(m)[0],g=m[v],y=g[0].name.value,b=(0,s.getFieldDef)(e,h,y);if(!b)throw new o.GraphQLError('The subscription field "'.concat(y,'" is not defined.'),g);var w=b.subscribe||f.fieldResolver,_=(0,s.addPath)(void 0,v),S=(0,s.buildResolveInfo)(f,b,g,h,_),x=(0,s.resolveFieldValueOrError)(f,b,g,w,n,S);return Promise.resolve(x).then(function(e){if(e instanceof Error)throw(0,a.locatedError)(e,g,(0,s.responsePathAsArray)(_));if((0,r.isAsyncIterable)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+(0,i.default)(e))})}catch(e){return Promise.reject(e)}}},GHBc:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},GJB4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateDirectiveMessage=i,t.UniqueDirectivesPerLocation=function(e){return{enter:function(t){var n=t.directives;if(n){var o=Object.create(null),a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var d=c.value,p=d.name.value;o[p]?e.reportError(new r.GraphQLError(i(p),[o[p],d])):o[p]=d}}catch(e){s=!0,u=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}};var r=n("QmgZ");function i(e){return'The directive "'.concat(e,'" can only be used once at ')+"this location."}},GSDy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){var n=(0,s.parse)((0,o.getIntrospectionQuery)(t)),r=(0,a.execute)(e,n);return(r.then||r.errors||!r.data)&&(0,i.default)(0),r.data};var r,i=(r=n("JiIc"))&&r.__esModule?r:{default:r},o=n("QT45"),a=n("ElpU"),s=n("6u75")},GrS7:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})})(n("PJh5"))},HT4B:function(e,t,n){var r,i,o=n("jsER"),a=n("Du8l"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},HT7L:function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},Hamp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return i.Kind}}),Object.defineProperty(t,"createLexer",{enumerable:!0,get:function(){return o.createLexer}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return s.print}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return u.Source}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return c.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return c.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return c.visitWithTypeInfo}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return c.getVisitFn}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return c.BREAK}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return l.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return l.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return l.isSelectionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return l.isValueNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return l.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return l.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return l.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return l.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return l.isTypeExtensionNode}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return d.DirectiveLocation}});var r=n("Nvbj"),i=n("Jko5"),o=n("AxoS"),a=n("6u75"),s=n("xC4e"),u=n("gyRD"),c=n("Hw4J"),l=n("anwo"),d=n("nC2W")},Hc0a:function(e,t,n){e.exports=function(e){var t=n("wXZ4")(e);return e.Annotation.Element.extend({setDataLimits:function(){var e=this._model,n=this.options,r=this.chartInstance,i=r.scales[n.xScaleID],o=r.scales[n.yScaleID],a=r.chartArea;if(e.ranges={},a){var s=0,u=0;i&&(s=t.isValid(n.xMin)?n.xMin:i.getPixelForValue(a.left),u=t.isValid(n.xMax)?n.xMax:i.getPixelForValue(a.right),e.ranges[n.xScaleID]={min:Math.min(s,u),max:Math.max(s,u)}),o&&(s=t.isValid(n.yMin)?n.yMin:o.getPixelForValue(a.bottom),u=t.isValid(n.yMax)?n.yMax:o.getPixelForValue(a.top),e.ranges[n.yScaleID]={min:Math.min(s,u),max:Math.max(s,u)})}},configure:function(){var e=this._model,n=this.options,r=this.chartInstance,i=r.scales[n.xScaleID],o=r.scales[n.yScaleID],a=r.chartArea;e.clip={x1:a.left,x2:a.right,y1:a.top,y2:a.bottom};var s,u,c=a.left,l=a.top,d=a.right,p=a.bottom;i&&(s=t.isValid(n.xMin)?i.getPixelForValue(n.xMin):a.left,u=t.isValid(n.xMax)?i.getPixelForValue(n.xMax):a.right,c=Math.min(s,u),d=Math.max(s,u)),o&&(s=t.isValid(n.yMin)?o.getPixelForValue(n.yMin):a.bottom,u=t.isValid(n.yMax)?o.getPixelForValue(n.yMax):a.top,l=Math.min(s,u),p=Math.max(s,u)),e.left=c,e.top=l,e.right=d,e.bottom=p,e.borderColor=n.borderColor,e.borderWidth=n.borderWidth,e.backgroundColor=n.backgroundColor},inRange:function(e,t){var n=this._model;return n&&e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom},getCenterPoint:function(){var e=this._model;return{x:(e.right+e.left)/2,y:(e.bottom+e.top)/2}},getWidth:function(){var e=this._model;return Math.abs(e.right-e.left)},getHeight:function(){var e=this._model;return Math.abs(e.bottom-e.top)},getArea:function(){return this.getWidth()*this.getHeight()},draw:function(){var e=this._view,t=this.chartInstance.chart.ctx;t.save(),t.beginPath(),t.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),t.clip(),t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,t.fillStyle=e.backgroundColor;var n=e.right-e.left,r=e.bottom-e.top;t.fillRect(e.left,e.top,n,r),t.strokeRect(e.left,e.top,n,r),t.restore()}})}},HesH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=c,t.typeIncompatibleAnonSpreadMessage=l,t.PossibleFragmentSpreads=function(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();(0,u.isCompositeType)(n)&&(0,u.isCompositeType)(r)&&!(0,a.doTypesOverlap)(e.getSchema(),n,r)&&e.reportError(new o.GraphQLError(l((0,i.default)(r),(0,i.default)(n)),[t]))},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,u.isCompositeType)(r))return r}}(e,n),l=e.getParentType();r&&l&&!(0,a.doTypesOverlap)(e.getSchema(),r,l)&&e.reportError(new o.GraphQLError(c(n,(0,i.default)(l),(0,i.default)(r)),[t]))}}};var r,i=(r=n("ieo+"))&&r.__esModule?r:{default:r},o=n("QmgZ"),a=n("UCA0"),s=n("nIlP"),u=n("AS5q");function c(e,t,n){return'Fragment "'.concat(e,'" cannot be spread here as objects of ')+'type "'.concat(t,'" can never be of type "').concat(n,'".')}function l(e,t){return"Fragment cannot be spread here as objects of "+'type "'.concat(e,'" can never be of type "').concat(t,'".')}},HsNP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},HtRB:function(e,t,n){"use strict";var r=n("TToO"),i=function(){return function(e,t){return function(n){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return Object(r.__generator)(this,function(f){switch(f.label){case 0:return i=t.clientName,o=t.commandName,a=t.inputFilterSensitiveLog,s=t.logger,u=t.outputFilterSensitiveLog,[4,e(n)];case 1:return c=f.sent(),s?("function"==typeof s.info&&(l=c.output,d=l.$metadata,p=Object(r.__rest)(l,["$metadata"]),s.info({clientName:i,commandName:o,input:a(n.input),output:u(p),metadata:d})),[2,c]):[2,c]}})})}}},o={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},a=function(e){return{applyToStack:function(e){e.add(i(),o)}}};n.d(t,!1,function(){return i}),n.d(t,!1,function(){return o}),n.d(t,"a",function(){return a})},Hw4J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,s=void 0,u=Array.isArray(e),c=[e],l=-1,d=[],p=void 0,f=void 0,h=void 0,m=[],v=[],g=e;do{var y=++l===c.length,b=y&&0!==d.length;if(y){if(f=0===v.length?void 0:m[m.length-1],p=h,h=v.pop(),b){if(u)p=p.slice();else{var w={};for(var _ in p)p.hasOwnProperty(_)&&(w[_]=p[_]);p=w}for(var S=0,x=0;xu;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},IhUy:function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size}},IpNb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e instanceof t};t.default=r},Iqx9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=function(e){var t=[];if(e.nodes){var n=!0,o=!1,a=void 0;try{for(var s,u=e.nodes[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var c=s.value;c.loc&&t.push(i(c.loc.source,(0,r.getLocation)(c.loc.source,c.loc.start)))}}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}}else if(e.source&&e.locations){var l=e.source,d=!0,p=!1,f=void 0;try{for(var h,m=e.locations[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var v=h.value;t.push(i(l,v))}}catch(e){p=!0,f=e}finally{try{d||null==m.return||m.return()}finally{if(p)throw f}}}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"};var r=n("Nvbj");function i(e,t){var n=e.locationOffset.column-1,r=o(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,u=1===t.line?n:0,c=t.column+u,l=r.split(/\r\n|[\n\r]/g);return"".concat(e.name," (").concat(s,":").concat(c,")\n")+function(e){var t=e.filter(function(e){e[0];var t=e[1];return void 0!==t}),n=0,r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value,l=c[0];n=Math.max(n,l.length)}}catch(e){i=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return t.map(function(e){var t,r=e[0],i=e[1];return o(n-(t=r).length)+t+i}).join("\n")}([["".concat(s-1,": "),l[i-1]],["".concat(s,": "),l[i]],["",o(c-1)+"^"],["".concat(s+1,": "),l[i+1]]])}function o(e){return Array(e+1).join(" ")}},Ixeu:function(e,t,n){var r=n("QOIZ"),i=n("OSUr"),o=i;o.v1=r,o.v4=i,e.exports=o},IyM2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("dsdS"),i=n("INHo"),o=n("OCFT"),a=n("+tf3"),s=n("forS"),u=n("6AbY"),c=function(){function e(e){(0,a.supportsWebCrypto)((0,u.locateWindow)())?this.hash=new i.Sha256(e):(0,s.isMsWindow)((0,u.locateWindow)())?this.hash=new r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}();t.Sha256=c},IzbH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownArgMessage=l,t.unknownDirectiveArgMessage=d,t.KnownArgumentNames=function(e){return function(e){for(var t=1;t1){o[u]=[];for(let n in e.child[u])e.child[u].hasOwnProperty(n)&&o[u].push(i(e.child[u][n],t,u))}else{const a=i(e.child[u][0],t,u),s=!0===t.arrayMode&&"object"==typeof a||r.isTagNameInArrayMode(u,t.arrayMode,n);o[u]=s?[a]:a}}return o};t.convertToJson=i},JVbd:function(e,t,n){"use strict";t.a=function(e){var t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var n=new ArrayBuffer(t),i=new DataView(n),o=0;o>=l;var p=o/4*3;a>>=s%d;for(var f=Math.floor(s/d),h=0;h>m)}}return new Uint8Array(n)},t.b=function(e){for(var t="",n=0;n>f]}t+="==".slice(0,4-u)}return t};for(var r={},i=new Array(64),o=0,a="A".charCodeAt(0),s="Z".charCodeAt(0);o+a<=s;o++){var u=String.fromCharCode(o+a);r[u]=o,i[o]=u}for(o=0,a="a".charCodeAt(0),s="z".charCodeAt(0);o+a<=s;o++){u=String.fromCharCode(o+a);var c=o+26;r[u]=c,i[c]=u}for(o=0;o<10;o++){r[o.toString(10)]=o+52;u=o.toString(10),c=o+52;r[u]=c,i[c]=u}r["+"]=62,i[62]="+",r["/"]=63,i[63]="/";var l=6,d=8,p=63},JiIc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},JiT4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Boolean(e&&"function"==typeof e.then)}},JjP3:function(e,t,n){var r,i,o=n("3hDt"),a=n("yRnX"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},Jko5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0;var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});t.Kind=r},JtRM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){var t=Object.create(null),n=function(e){return e&&y(e)};return new o.GraphQLSchema({types:g((0,i.default)(e.getTypeMap())),directives:f(e.getDirectives()).map(function(e){return new a.GraphQLDirective({name:e.name,description:e.description,locations:h(e.locations,function(e){return e}),args:l(e.args),astNode:e.astNode})}),query:n(e.getQueryType()),mutation:n(e.getMutationType()),subscription:n(e.getSubscriptionType()),astNode:e.astNode});function l(e){return(0,r.default)(f(e),function(e){return e.name},function(e){return function(e){for(var t=1;t=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})(n("PJh5"))},KCLY:function(e,t,n){"use strict";(function(t){var r=n("cGG2"),i=n("5VQ+"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:("undefined"!=typeof XMLHttpRequest?s=n("7GwW"):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n("7GwW")),s),transformRequest:[function(e,t){return i(t,"Accept"),i(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(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.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(o)}),e.exports=u}).call(t,n("W2nU"))},KJEw:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},KJJc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};t.default=r},KOFO:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})(n("PJh5"))},Kh4W:function(e,t,n){t.f=n("dSzd")},Kh5d:function(e,t,n){var r=n("sB3e"),i=n("PzxK");n("uqUo")("getPrototypeOf",function(){return function(e){return i(r(e))}})},KmWZ:function(e,t,n){var r=n("duB3");e.exports=function(){this.__data__=new r,this.size=0}},L42u:function(e,t,n){var r,i,o,a=n("+ZMJ"),s=n("knuC"),u=n("RPLV"),c=n("ON07"),l=n("7KvD"),d=l.process,p=l.setImmediate,f=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete g[e]},"process"==n("R9M2")(d)?r=function(e){d.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:p,clear:f}},LKZe:function(e,t,n){var r=n("NpIQ"),i=n("X8DO"),o=n("TcQ7"),a=n("MmMw"),s=n("D2L2"),u=n("SfB7"),c=Object.getOwnPropertyDescriptor;t.f=n("+E39")?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},LPDJ:function(e,t,n){"use strict";var r=n("TToO"),i=function(e,t){return function(n,i){return function(i){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var o,a;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return[4,n(i)];case 1:return o=r.sent().response,[4,t(o,e)];case 2:return a=r.sent(),[2,{response:o,output:a}]}})})}}},o=function(e,t){return function(n,i){return function(i){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var o;return Object(r.__generator)(this,function(a){switch(a.label){case 0:return[4,t(i.input,e)];case 1:return o=a.sent(),[2,n(Object(r.__assign)(Object(r.__assign)({},i),{request:o}))]}})})}}},a={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},s={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function u(e,t,n){return{applyToStack:function(r){r.add(i(e,n),a),r.add(o(e,t),s)}}}n.d(t,!1,function(){return i}),n.d(t,!1,function(){return o}),n.d(t,!1,function(){return a}),n.d(t,!1,function(){return s}),n.d(t,"a",function(){return u})},LT9G:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})})(n("PJh5"))},Lf7X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anonOperationNotAloneMessage=o,t.LoneAnonymousOperation=function(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===i.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",[n]))}}};var r=n("QmgZ"),i=n("Jko5");function o(){return"This anonymous operation must be the only defined operation."}},Lgqo:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})})(n("PJh5"))},M4fF:function(e,t,n){(function(e,r){var i; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",f=1,h=2,m=4,v=1,g=2,y=1,b=2,w=4,_=8,S=16,x=32,E=64,T=128,M=256,C=512,I=30,L="...",k=800,z=16,A=1,P=2,O=1/0,D=9007199254740991,N=1.7976931348623157e308,R=NaN,j=4294967295,F=j-1,B=j>>>1,H=[["ary",T],["bind",y],["bindKey",b],["curry",_],["curryRight",S],["flip",C],["partial",x],["partialRight",E],["rearg",M]],V="[object Arguments]",$="[object Array]",U="[object AsyncFunction]",q="[object Boolean]",Y="[object Date]",K="[object DOMException]",G="[object Error]",J="[object Function]",W="[object GeneratorFunction]",Q="[object Map]",X="[object Number]",Z="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",ae="[object Undefined]",se="[object WeakMap]",ue="[object WeakSet]",ce="[object ArrayBuffer]",le="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",fe="[object Int8Array]",he="[object Int16Array]",me="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Te=RegExp(xe.source),Me=RegExp(Ee.source),Ce=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),De=/^\s+/,Ne=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,Ve=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,We=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Ze+"]",it="\\d+",ot="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ut="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+at+"|"+st+")",ht="(?:"+pt+"|"+st+")",mt="(?:"+rt+"|"+ut+")"+"?",vt="[\\ufe0e\\ufe0f]?"+mt+("(?:\\u200d(?:"+[ct,lt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+mt+")*"),gt="(?:"+[ot,lt,dt].join("|")+")"+vt,yt="(?:"+[ct+rt+"?",rt,lt,dt,tt].join("|")+")",bt=RegExp("['’]","g"),wt=RegExp(rt,"g"),_t=RegExp(ut+"(?="+ut+")|"+yt+vt,"g"),St=RegExp([pt+"?"+at+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,pt,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,pt+ft,"$"].join("|")+")",pt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,gt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),Et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Ct={};Ct[de]=Ct[pe]=Ct[fe]=Ct[he]=Ct[me]=Ct[ve]=Ct[ge]=Ct[ye]=Ct[be]=!0,Ct[V]=Ct[$]=Ct[ce]=Ct[q]=Ct[le]=Ct[Y]=Ct[G]=Ct[J]=Ct[Q]=Ct[X]=Ct[ee]=Ct[ne]=Ct[re]=Ct[ie]=Ct[se]=!1;var It={};It[V]=It[$]=It[ce]=It[le]=It[q]=It[Y]=It[de]=It[pe]=It[fe]=It[he]=It[me]=It[Q]=It[X]=It[ee]=It[ne]=It[re]=It[ie]=It[oe]=It[ve]=It[ge]=It[ye]=It[be]=!0,It[G]=It[J]=It[se]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kt=parseFloat,zt=parseInt,At="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=At||Pt||Function("return this")(),Dt="object"==typeof t&&t&&!t.nodeType&&t,Nt=Dt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=Nt&&Nt.exports===Dt,jt=Rt&&At.process,Ft=function(){try{var e=Nt&&Nt.require&&Nt.require("util").types;return e||jt&&jt.binding&&jt.binding("util")}catch(e){}}(),Bt=Ft&&Ft.isArrayBuffer,Ht=Ft&&Ft.isDate,Vt=Ft&&Ft.isMap,$t=Ft&&Ft.isRegExp,Ut=Ft&&Ft.isSet,qt=Ft&&Ft.isTypedArray;function Yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Kt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Zt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var En=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Tn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Mn(e){return"\\"+Lt[e]}function Cn(e){return xt.test(e)}function In(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ln(e,t){return function(n){return e(t(n))}}function kn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Rn=function e(t){var n,r=(t=null==t?Ot:Rn.defaults(Ot.Object(),t,Rn.pick(Ot,Tt))).Array,i=t.Date,Ne=t.Error,Ze=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=r.prototype,at=Ze.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,dt=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ft=st.toString,ht=ct.call(tt),mt=Ot._,vt=nt("^"+ct.call(lt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Rt?t.Buffer:o,yt=t.Symbol,_t=t.Uint8Array,xt=gt?gt.allocUnsafe:o,Lt=Ln(tt.getPrototypeOf,tt),At=tt.create,Pt=st.propertyIsEnumerable,Dt=ot.splice,Nt=yt?yt.isConcatSpreadable:o,jt=yt?yt.iterator:o,Ft=yt?yt.toStringTag:o,an=function(){try{var e=Ho(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),hn=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,jn=i&&i.now!==Ot.Date.now&&i.now,Fn=t.setTimeout!==Ot.setTimeout&&t.setTimeout,Bn=et.ceil,Hn=et.floor,Vn=tt.getOwnPropertySymbols,$n=gt?gt.isBuffer:o,Un=t.isFinite,qn=ot.join,Yn=Ln(tt.keys,tt),Kn=et.max,Gn=et.min,Jn=i.now,Wn=t.parseInt,Qn=et.random,Xn=ot.reverse,Zn=Ho(t,"DataView"),er=Ho(t,"Map"),tr=Ho(t,"Promise"),nr=Ho(t,"Set"),rr=Ho(t,"WeakMap"),ir=Ho(tt,"create"),or=rr&&new rr,ar={},sr=fa(Zn),ur=fa(er),cr=fa(tr),lr=fa(nr),dr=fa(rr),pr=yt?yt.prototype:o,fr=pr?pr.valueOf:o,hr=pr?pr.toString:o;function mr(e){if(ks(e)&&!bs(e)&&!(e instanceof br)){if(e instanceof yr)return e;if(lt.call(e,"__wrapped__"))return ha(e)}return new yr(e)}var vr=function(){function e(){}return function(t){if(!Ls(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function gr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Rr(e,t,n,r,i,a){var s,u=t&f,c=t&h,l=t&m;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Ls(e))return e;var d=bs(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return io(e,s)}else{var p=Uo(e),v=p==J||p==W;if(xs(e))return Xi(e,u);if(p==ee||p==V||v&&!i){if(s=c||v?{}:Yo(e),!u)return c?function(e,t){return oo(e,$o(e),t)}(e,function(e,t){return e&&oo(t,su(t),e)}(s,e)):function(e,t){return oo(e,Vo(e),t)}(e,Pr(s,e))}else{if(!It[p])return i?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case ce:return Zi(e);case q:case Y:return new a(+e);case le:return function(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case fe:case he:case me:case ve:case ge:case ye:case be:return eo(e,n);case Q:return new a;case X:case ie:return new a(e);case ne:return(o=new(i=e).constructor(i.source,Ue.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case oe:return r=e,fr?tt(fr.call(r)):{}}}(e,p,u)}}a||(a=new Er);var g=a.get(e);if(g)return g;a.set(e,s),Ds(e)?e.forEach(function(r){s.add(Rr(r,t,n,r,e,a))}):zs(e)&&e.forEach(function(r,i){s.set(i,Rr(r,t,n,i,e,a))});var y=d?o:(l?c?Oo:Po:c?su:au)(e);return Gt(y||e,function(r,i){y&&(r=e[i=r]),kr(s,i,Rr(r,t,n,i,e,a))}),s}function jr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new it(u);return aa(function(){e.apply(o,n)},t)}function Br(e,t,n,r){var i=-1,o=Xt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=en(t,bn(n))),r?(o=Zt,s=!1):t.length>=a&&(o=_n,s=!1,t=new xr(t));e:for(;++i-1},_r.prototype.set=function(e,t){var n=this.__data__,r=zr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Sr.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(er||_r),string:new wr}},Sr.prototype.delete=function(e){var t=Fo(this,e).delete(e);return this.size-=t?1:0,t},Sr.prototype.get=function(e){return Fo(this,e).get(e)},Sr.prototype.has=function(e){return Fo(this,e).has(e)},Sr.prototype.set=function(e,t){var n=Fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,l),this},xr.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.clear=function(){this.__data__=new _r,this.size=0},Er.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Er.prototype.get=function(e){return this.__data__.get(e)},Er.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _r){var r=n.__data__;if(!er||r.length0&&n(s)?t>1?Yr(s,t-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var Kr=co(),Gr=co(!0);function Jr(e,t){return e&&Kr(e,t,au)}function Wr(e,t){return e&&Gr(e,t,au)}function Qr(e,t){return Qt(t,function(t){return Ms(e[t])})}function Xr(e,t){for(var n=0,r=(t=Gi(t,e)).length;null!=e&&nt}function ni(e,t){return null!=e&<.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ii(e,t,n){for(var i=n?Zt:Xt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,d=[];u--;){var p=e[u];u&&t&&(p=en(p,bn(t))),l=Gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):o}p=e[0];var f=-1,h=c[0];e:for(;++f=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function wi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Dt.call(s,u,1),Dt.call(e,u,1);return e}function Si(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Go(i)?Dt.call(e,i,1):Bi(e,i)}}return e}function xi(e,t){return e+Hn(Qn()*(t-e+1))}function Ei(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),(t=Hn(t/2))&&(e+=e)}while(t);return n}function Ti(e,t){return sa(na(e,t,Au),e+"")}function Mi(e){return Mr(mu(e))}function Ci(e,t){var n=mu(e);return la(n,Nr(t,0,n.length))}function Ii(e,t,n,r){if(!Ls(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Rs(a)&&(n?a<=t:a=a){var l=t?null:To(e);if(l)return zn(l);s=!1,i=_n,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Ai(e,t,n)}var Qi=hn||function(e){return Ot.clearTimeout(e)};function Xi(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Zi(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function eo(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function to(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=Rs(e),s=t!==o,u=null===t,c=t==t,l=Rs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Jo(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++r-1?i[a?t[s]:s]:o}}function mo(e){return Ao(function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==No(a))var s=new yr([],!0)}for(r=s?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,h=n&g?new xr:o;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(H,function(n){var r="_."+n[0];t&n[1]&&!Xt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(Fe):[]}(r),n)))}function ca(e){var t=0,n=0;return function(){var r=Jn(),i=z-(r-n);if(n=r,i>0){if(++t>=k)return arguments[0]}else t=0;return e.apply(o,arguments)}}function la(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return Oa(e,n="function"==typeof n?(e.pop(),n):o)});function Ha(e){var t=mr(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var $a=Ao(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Va,args:[i],thisArg:o}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ua=ao(function(e,t,n){lt.call(e,n)?++e[n]:Or(e,n,1)});var qa=ho(ya),Ya=ho(ba);function Ka(e,t){return(bs(e)?Gt:Hr)(e,jo(t,3))}function Ga(e,t){return(bs(e)?Jt:Vr)(e,jo(t,3))}var Ja=ao(function(e,t,n){lt.call(e,n)?e[n].push(t):Or(e,n,[t])});var Wa=Ti(function(e,t,n){var i=-1,o="function"==typeof t,a=_s(e)?r(e.length):[];return Hr(e,function(e){a[++i]=o?Yt(t,e,n):oi(e,t,n)}),a}),Qa=ao(function(e,t,n){Or(e,n,t)});function Xa(e,t){return(bs(e)?en:hi)(e,jo(t,3))}var Za=ao(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var es=Ti(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Jo(e,t[0],t[1])?t=[]:n>2&&Jo(t[0],t[1],t[2])&&(t=[t[0]]),bi(e,Yr(t,1),[])}),ts=jn||function(){return Ot.Date.now()};function ns(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Co(e,T,o,o,o,o,t)}function rs(e,t){var n;if("function"!=typeof t)throw new it(u);return e=$s(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var is=Ti(function(e,t,n){var r=y;if(n.length){var i=kn(n,Ro(is));r|=x}return Co(e,r,t,n,i)}),os=Ti(function(e,t,n){var r=y|b;if(n.length){var i=kn(n,Ro(os));r|=x}return Co(t,r,e,n,i)});function as(e,t,n){var r,i,a,s,c,l,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new it(u);function m(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n)}function v(e){var n=e-l;return l===o||n>=t||n<0||f&&e-d>=a}function g(){var e=ts();if(v(e))return y(e);c=aa(g,function(e){var n=t-(e-l);return f?Gn(n,a-(e-d)):n}(e))}function y(e){return c=o,h&&r?m(e):(r=i=o,s)}function b(){var e=ts(),n=v(e);if(r=arguments,i=this,l=e,n){if(c===o)return function(e){return d=e,c=aa(g,t),p?m(e):s}(l);if(f)return Qi(c),c=aa(g,t),m(l)}return c===o&&(c=aa(g,t)),s}return t=qs(t)||0,Ls(n)&&(p=!!n.leading,a=(f="maxWait"in n)?Kn(qs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&Qi(c),d=0,r=l=i=c=o},b.flush=function(){return c===o?s:y(ts())},b}var ss=Ti(function(e,t){return Fr(e,1,t)}),us=Ti(function(e,t,n){return Fr(e,qs(t)||0,n)});function cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(cs.Cache||Sr),n}function ls(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}cs.Cache=Sr;var ds=Ji(function(e,t){var n=(t=1==t.length&&bs(t[0])?en(t[0],bn(jo())):en(Yr(t,1),bn(jo()))).length;return Ti(function(r){for(var i=-1,o=Gn(r.length,n);++i=t}),ys=ai(function(){return arguments}())?ai:function(e){return ks(e)&<.call(e,"callee")&&!Pt.call(e,"callee")},bs=r.isArray,ws=Bt?bn(Bt):function(e){return ks(e)&&ei(e)==ce};function _s(e){return null!=e&&Is(e.length)&&!Ms(e)}function Ss(e){return ks(e)&&_s(e)}var xs=$n||qu,Es=Ht?bn(Ht):function(e){return ks(e)&&ei(e)==Y};function Ts(e){if(!ks(e))return!1;var t=ei(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Ms(e){if(!Ls(e))return!1;var t=ei(e);return t==J||t==W||t==U||t==te}function Cs(e){return"number"==typeof e&&e==$s(e)}function Is(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function Ls(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ks(e){return null!=e&&"object"==typeof e}var zs=Vt?bn(Vt):function(e){return ks(e)&&Uo(e)==Q};function As(e){return"number"==typeof e||ks(e)&&ei(e)==X}function Ps(e){if(!ks(e)||ei(e)!=ee)return!1;var t=Lt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ht}var Os=$t?bn($t):function(e){return ks(e)&&ei(e)==ne};var Ds=Ut?bn(Ut):function(e){return ks(e)&&Uo(e)==re};function Ns(e){return"string"==typeof e||!bs(e)&&ks(e)&&ei(e)==ie}function Rs(e){return"symbol"==typeof e||ks(e)&&ei(e)==oe}var js=qt?bn(qt):function(e){return ks(e)&&Is(e.length)&&!!Ct[ei(e)]};var Fs=So(fi),Bs=So(function(e,t){return e<=t});function Hs(e){if(!e)return[];if(_s(e))return Ns(e)?On(e):io(e);if(jt&&e[jt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[jt]());var t=Uo(e);return(t==Q?In:t==re?zn:mu)(e)}function Vs(e){return e?(e=qs(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function $s(e){var t=Vs(e),n=t%1;return t==t?n?t-n:t:0}function Us(e){return e?Nr($s(e),0,j):0}function qs(e){if("number"==typeof e)return e;if(Rs(e))return R;if(Ls(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ls(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=Ye.test(e);return n||Ge.test(e)?zt(e.slice(2),n?2:8):qe.test(e)?R:+e}function Ys(e){return oo(e,su(e))}function Ks(e){return null==e?"":ji(e)}var Gs=so(function(e,t){if(Zo(t)||_s(t))oo(t,au(t),e);else for(var n in t)lt.call(t,n)&&kr(e,n,t[n])}),Js=so(function(e,t){oo(t,su(t),e)}),Ws=so(function(e,t,n,r){oo(t,su(t),e,r)}),Qs=so(function(e,t,n,r){oo(t,au(t),e,r)}),Xs=Ao(Dr);var Zs=Ti(function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Jo(t[0],t[1],i)&&(r=1);++n1),t}),oo(e,Oo(e),n),r&&(n=Rr(n,f|h|m,ko));for(var i=t.length;i--;)Bi(n,t[i]);return n});var du=Ao(function(e,t){return null==e?{}:function(e,t){return wi(e,t,function(t,n){return nu(e,n)})}(e,t)});function pu(e,t){if(null==e)return{};var n=en(Oo(e),function(e){return[e]});return t=jo(t),wi(e,n,function(e,n){return t(e,n[0])})}var fu=Mo(au),hu=Mo(su);function mu(e){return null==e?[]:wn(e,au(e))}var vu=po(function(e,t,n){return t=t.toLowerCase(),e+(n?gu(t):t)});function gu(e){return Tu(Ks(e).toLowerCase())}function yu(e){return(e=Ks(e))&&e.replace(We,En).replace(wt,"")}var bu=po(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wu=po(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),_u=lo("toLowerCase");var Su=po(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=po(function(e,t,n){return e+(n?" ":"")+Tu(t)});var Eu=po(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Tu=lo("toUpperCase");function Mu(e,t,n){return e=Ks(e),(t=n?o:t)===o?function(e){return Et.test(e)}(e)?function(e){return e.match(St)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Cu=Ti(function(e,t){try{return Yt(e,o,t)}catch(e){return Ts(e)?e:new Ne(e)}}),Iu=Ao(function(e,t){return Gt(t,function(t){t=pa(t),Or(e,t,is(e[t],e))}),e});function Lu(e){return function(){return e}}var ku=mo(),zu=mo(!0);function Au(e){return e}function Pu(e){return li("function"==typeof e?e:Rr(e,f))}var Ou=Ti(function(e,t){return function(n){return oi(n,e,t)}}),Du=Ti(function(e,t){return function(n){return oi(e,n,t)}});function Nu(e,t,n){var r=au(t),i=Qr(t,r);null!=n||Ls(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Qr(t,au(t)));var o=!(Ls(n)&&"chain"in n&&!n.chain),a=Ms(e);return Gt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})}),e}function Ru(){}var ju=bo(en),Fu=bo(Wt),Bu=bo(on);function Hu(e){return Wo(e)?fn(pa(e)):function(e){return function(t){return Xr(t,e)}}(e)}var Vu=_o(),$u=_o(!0);function Uu(){return[]}function qu(){return!1}var Yu=yo(function(e,t){return e+t},0),Ku=Eo("ceil"),Gu=yo(function(e,t){return e/t},1),Ju=Eo("floor");var Wu,Qu=yo(function(e,t){return e*t},1),Xu=Eo("round"),Zu=yo(function(e,t){return e-t},0);return mr.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=$s(e),function(){if(--e<1)return t.apply(this,arguments)}},mr.ary=ns,mr.assign=Gs,mr.assignIn=Js,mr.assignInWith=Ws,mr.assignWith=Qs,mr.at=Xs,mr.before=rs,mr.bind=is,mr.bindAll=Iu,mr.bindKey=os,mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bs(e)?e:[e]},mr.chain=Ha,mr.chunk=function(e,t,n){t=(n?Jo(e,t,n):t===o)?1:Kn($s(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(Bn(i/t));ai?0:i+n),(r=r===o||r>i?i:$s(r))<0&&(r+=i),r=n>r?0:Us(r);n>>0)?(e=Ks(e))&&("string"==typeof t||null!=t&&!Os(t))&&!(t=ji(t))&&Cn(e)?Wi(On(e),0,n):e.split(t,n):[]},mr.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:Kn($s(t),0),Ti(function(n){var r=n[t],i=Wi(n,0,t);return r&&tn(i,r),Yt(e,this,i)})},mr.tail=function(e){var t=null==e?0:e.length;return t?Ai(e,1,t):[]},mr.take=function(e,t,n){return e&&e.length?Ai(e,0,(t=n||t===o?1:$s(t))<0?0:t):[]},mr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ai(e,(t=r-(t=n||t===o?1:$s(t)))<0?0:t,r):[]},mr.takeRightWhile=function(e,t){return e&&e.length?Vi(e,jo(t,3),!1,!0):[]},mr.takeWhile=function(e,t){return e&&e.length?Vi(e,jo(t,3)):[]},mr.tap=function(e,t){return t(e),e},mr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(u);return Ls(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),as(e,t,{leading:r,maxWait:t,trailing:i})},mr.thru=Va,mr.toArray=Hs,mr.toPairs=fu,mr.toPairsIn=hu,mr.toPath=function(e){return bs(e)?en(e,pa):Rs(e)?[e]:io(da(Ks(e)))},mr.toPlainObject=Ys,mr.transform=function(e,t,n){var r=bs(e),i=r||xs(e)||js(e);if(t=jo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ls(e)&&Ms(o)?vr(Lt(e)):{}}return(i?Gt:Jr)(e,function(e,r,i){return t(n,e,r,i)}),n},mr.unary=function(e){return ns(e,1)},mr.union=ka,mr.unionBy=za,mr.unionWith=Aa,mr.uniq=function(e){return e&&e.length?Fi(e):[]},mr.uniqBy=function(e,t){return e&&e.length?Fi(e,jo(t,2)):[]},mr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Fi(e,o,t):[]},mr.unset=function(e,t){return null==e||Bi(e,t)},mr.unzip=Pa,mr.unzipWith=Oa,mr.update=function(e,t,n){return null==e?e:Hi(e,t,Ki(n))},mr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Hi(e,t,Ki(n),r)},mr.values=mu,mr.valuesIn=function(e){return null==e?[]:wn(e,su(e))},mr.without=Da,mr.words=Mu,mr.wrap=function(e,t){return ps(Ki(t),e)},mr.xor=Na,mr.xorBy=Ra,mr.xorWith=ja,mr.zip=Fa,mr.zipObject=function(e,t){return qi(e||[],t||[],kr)},mr.zipObjectDeep=function(e,t){return qi(e||[],t||[],Ii)},mr.zipWith=Ba,mr.entries=fu,mr.entriesIn=hu,mr.extend=Js,mr.extendWith=Ws,Nu(mr,mr),mr.add=Yu,mr.attempt=Cu,mr.camelCase=vu,mr.capitalize=gu,mr.ceil=Ku,mr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=qs(n))==n?n:0),t!==o&&(t=(t=qs(t))==t?t:0),Nr(qs(e),t,n)},mr.clone=function(e){return Rr(e,m)},mr.cloneDeep=function(e){return Rr(e,f|m)},mr.cloneDeepWith=function(e,t){return Rr(e,f|m,t="function"==typeof t?t:o)},mr.cloneWith=function(e,t){return Rr(e,m,t="function"==typeof t?t:o)},mr.conformsTo=function(e,t){return null==t||jr(e,t,au(t))},mr.deburr=yu,mr.defaultTo=function(e,t){return null==e||e!=e?t:e},mr.divide=Gu,mr.endsWith=function(e,t,n){e=Ks(e),t=ji(t);var r=e.length,i=n=n===o?r:Nr($s(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},mr.eq=ms,mr.escape=function(e){return(e=Ks(e))&&Me.test(e)?e.replace(Ee,Tn):e},mr.escapeRegExp=function(e){return(e=Ks(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},mr.every=function(e,t,n){var r=bs(e)?Wt:$r;return n&&Jo(e,t,n)&&(t=o),r(e,jo(t,3))},mr.find=qa,mr.findIndex=ya,mr.findKey=function(e,t){return sn(e,jo(t,3),Jr)},mr.findLast=Ya,mr.findLastIndex=ba,mr.findLastKey=function(e,t){return sn(e,jo(t,3),Wr)},mr.floor=Ju,mr.forEach=Ka,mr.forEachRight=Ga,mr.forIn=function(e,t){return null==e?e:Kr(e,jo(t,3),su)},mr.forInRight=function(e,t){return null==e?e:Gr(e,jo(t,3),su)},mr.forOwn=function(e,t){return e&&Jr(e,jo(t,3))},mr.forOwnRight=function(e,t){return e&&Wr(e,jo(t,3))},mr.get=tu,mr.gt=vs,mr.gte=gs,mr.has=function(e,t){return null!=e&&qo(e,t,ni)},mr.hasIn=nu,mr.head=_a,mr.identity=Au,mr.includes=function(e,t,n,r){e=_s(e)?e:mu(e),n=n&&!r?$s(n):0;var i=e.length;return n<0&&(n=Kn(i+n,0)),Ns(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&cn(e,t,n)>-1},mr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:$s(n);return i<0&&(i=Kn(r+i,0)),cn(e,t,i)},mr.inRange=function(e,t,n){return t=Vs(t),n===o?(n=t,t=0):n=Vs(n),function(e,t,n){return e>=Gn(t,n)&&e=-D&&e<=D},mr.isSet=Ds,mr.isString=Ns,mr.isSymbol=Rs,mr.isTypedArray=js,mr.isUndefined=function(e){return e===o},mr.isWeakMap=function(e){return ks(e)&&Uo(e)==se},mr.isWeakSet=function(e){return ks(e)&&ei(e)==ue},mr.join=function(e,t){return null==e?"":qn.call(e,t)},mr.kebabCase=bu,mr.last=Ta,mr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=$s(n))<0?Kn(r+i,0):Gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):un(e,dn,i,!0)},mr.lowerCase=wu,mr.lowerFirst=_u,mr.lt=Fs,mr.lte=Bs,mr.max=function(e){return e&&e.length?Ur(e,Au,ti):o},mr.maxBy=function(e,t){return e&&e.length?Ur(e,jo(t,2),ti):o},mr.mean=function(e){return pn(e,Au)},mr.meanBy=function(e,t){return pn(e,jo(t,2))},mr.min=function(e){return e&&e.length?Ur(e,Au,fi):o},mr.minBy=function(e,t){return e&&e.length?Ur(e,jo(t,2),fi):o},mr.stubArray=Uu,mr.stubFalse=qu,mr.stubObject=function(){return{}},mr.stubString=function(){return""},mr.stubTrue=function(){return!0},mr.multiply=Qu,mr.nth=function(e,t){return e&&e.length?yi(e,$s(t)):o},mr.noConflict=function(){return Ot._===this&&(Ot._=mt),this},mr.noop=Ru,mr.now=ts,mr.pad=function(e,t,n){e=Ks(e);var r=(t=$s(t))?Pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wo(Hn(i),n)+e+wo(Bn(i),n)},mr.padEnd=function(e,t,n){e=Ks(e);var r=(t=$s(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qn();return Gn(e+i*(t-e+kt("1e-"+((i+"").length-1))),t)}return xi(e,t)},mr.reduce=function(e,t,n){var r=bs(e)?nn:mn,i=arguments.length<3;return r(e,jo(t,4),n,i,Hr)},mr.reduceRight=function(e,t,n){var r=bs(e)?rn:mn,i=arguments.length<3;return r(e,jo(t,4),n,i,Vr)},mr.repeat=function(e,t,n){return t=(n?Jo(e,t,n):t===o)?1:$s(t),Ei(Ks(e),t)},mr.replace=function(){var e=arguments,t=Ks(e[0]);return e.length<3?t:t.replace(e[1],e[2])},mr.result=function(e,t,n){var r=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++rD)return[];var n=j,r=Gn(e,j);t=jo(t),e-=j;for(var i=gn(r,t);++n=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Wi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),Os(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=nt(i.source,Ks(Ue.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ji(i),u)!=u){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},mr.unescape=function(e){return(e=Ks(e))&&Te.test(e)?e.replace(xe,Nn):e},mr.uniqueId=function(e){var t=++dt;return Ks(e)+t},mr.upperCase=Eu,mr.upperFirst=Tu,mr.each=Ka,mr.eachRight=Ga,mr.first=_a,Nu(mr,(Wu={},Jr(mr,function(e,t){lt.call(mr.prototype,t)||(Wu[t]=e)}),Wu),{chain:!1}),mr.VERSION="4.17.21",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){mr[e].placeholder=mr}),Gt(["drop","take"],function(e,t){br.prototype[e]=function(n){n=n===o?1:Kn($s(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,j),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==A||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(Au)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Ti(function(e,t){return"function"==typeof e?new br(this):this.map(function(n){return oi(n,e,t)})}),br.prototype.reject=function(e){return this.filter(ls(jo(e)))},br.prototype.slice=function(e,t){e=$s(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=$s(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(j)},Jr(br.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=mr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(mr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof br,c=s[0],l=u||bs(t),d=function(e){var t=i.apply(mr,tn([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=u&&!f;if(!a&&l){t=m?t:new br(this);var v=e.apply(t,s);return v.__actions__.push({func:Va,args:[d],thisArg:o}),new yr(v,p)}return h&&m?e.apply(this,s):(v=this.thru(d),h?r?v.value()[0]:v.value():v)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);mr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(bs(i)?i:[],e)}return this[n](function(n){return t.apply(bs(n)?n:[],e)})}}),Jr(br.prototype,function(e,t){var n=mr[t];if(n){var r=n.name+"";lt.call(ar,r)||(ar[r]=[]),ar[r].push({name:t,func:n})}}),ar[vo(o,b).name]=[{name:"wrapper",func:o}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},mr.prototype.plant=function(e){for(var t,n=this;n instanceof gr;){var r=ha(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:Va,args:[La],thisArg:o}),new yr(t,this.__chain__)}return this.thru(La)},mr.prototype.toJSON=mr.prototype.valueOf=mr.prototype.value=function(){return $i(this.__wrapped__,this.__actions__)},mr.prototype.first=mr.prototype.head,jt&&(mr.prototype[jt]=function(){return this}),mr}();Ot._=Rn,(i=function(){return Rn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(t,n("DuR2"),n("3IRH")(e))},M6a0:function(e,t){},MS6H:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unusedVariableMessage=i,t.NoUnusedVariables=function(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var o=Object.create(null),a=e.getRecursiveVariableUsages(n),s=n.name?n.name.value:null,u=!0,c=!1,l=void 0;try{for(var d,p=a[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var f=d.value,h=f.node;o[h.name.value]=!0}}catch(e){c=!0,l=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw l}}for(var m=0;m= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-l,S=Math.floor,x=String.fromCharCode;function E(e){throw new RangeError(w[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function M(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+T((e=e.replace(b,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function L(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,n){var r=0;for(e=n?S(e/f):e>>1,e+=S(e/t);e>_*d>>1;r+=c)e=S(e/_);return S(r+(_+1)*e/(e+p))}function z(e){var t,n,r,i,o,a,s,p,f,g,y,b=[],w=e.length,_=0,x=m,T=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=w&&E("invalid-input"),((p=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||p>S((u-_)/a))&&E("overflow"),_+=p*a,!(p<(f=s<=T?l:s>=T+d?d:s-T));s+=c)a>S(u/(g=c-f))&&E("overflow"),a*=g;T=k(_-o,t=b.length+1,0==o),S(_/t)>u-x&&E("overflow"),x+=S(_/t),_%=t,b.splice(_++,0,x)}return I(b)}function A(e){var t,n,r,i,o,a,s,p,f,g,y,b,w,_,T,M=[];for(b=(e=C(e)).length,t=m,n=0,o=h,a=0;a=t&&yS((u-n)/(w=r+1))&&E("overflow"),n+=(s-t)*w,t=s,a=0;au&&E("overflow"),y==t){for(p=n,f=c;!(p<(g=f<=o?l:f>=o+d?d:f-o));f+=c)T=p-g,_=c-g,M.push(x(L(g+T%_,0))),p=S(T/_);M.push(x(L(p,0))),o=k(n,w,r==i),n=0,++r}++n,++t}return M.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:I},decode:z,encode:A,toASCII:function(e){return M(e,function(e){return y.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return M(e,function(e){return g.test(e)?z(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n("3IRH")(e),n("DuR2"))},N3vo:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})(n("PJh5"))},NCRV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return r.execute}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return r.defaultFieldResolver}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.responsePathAsArray}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return i.getDirectiveValues}});var r=n("ElpU"),i=n("tSvn")},NGEn:function(e,t){var n=Array.isArray;e.exports=n},"NWt+":function(e,t,n){var r=n("+ZMJ"),i=n("msXi"),o=n("Mhyx"),a=n("77Pl"),s=n("QRG4"),u=n("3fs2"),c={},l={};(t=e.exports=function(e,t,n,d,p){var f,h,m,v,g=p?function(){return e}:u(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(f=s(e.length);f>b;b++)if((v=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||v===l)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=i(m,y,h.value,t))===c||v===l)return v}).BREAK=c,t.RETURN=l},NYST:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n("PJh5"))},NYxO:function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,i=(n=function(t){return t.original===e},t.filter(n)[0]);if(i)return i.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach(function(n){o[n]=r(e[n],t)}),o}function i(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function o(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var u=function(e){this.register([],e,!1)};u.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},u.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},u.prototype.update=function(e){!function e(t,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},u.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,function(t,i){r.register(e.concat(i),t,n)})},u.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},u.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var c;var l=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=i;var l=this._modules.root.state;m(this,l,[],this._modules.root),h(this,l),r.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:c.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){n.emit("vuex:mutation",e,t)},{prepend:!0}),e.subscribeAction(function(e,t){n.emit("vuex:action",e,t)},{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;m(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o={};i(e._wrappedGetters,function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var a=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:o}),c.config.silent=a,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),c.nextTick(function(){return r.$destroy()}))}function m(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=v(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){c.set(s,u,r.state)})}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=g(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,i){var o=g(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return v(e.state,n)}}}),i}(e,a,n);r.forEachMutation(function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,r.state,t)})}(e,a+n,t,l)}),r.forEachAction(function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push(function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):o})}(e,r,i,l)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,l)}),r.forEachChild(function(r,o){m(e,t,n.concat(o),r,i)})}function v(e,t){return t.reduce(function(e,t){return e[t]},e)}function g(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function y(e){c&&e===c|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(c=e)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,i=g(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(e){e(a)})}),this._subscribers.slice().forEach(function(e){return e(s,r.state)}))},l.prototype.dispatch=function(e,t){var n=this,r=g(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(a,n.state)})}catch(e){0}var u=s.length>1?Promise.all(s.map(function(e){return e(o)})):s[0](o);return new Promise(function(e,t){u.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(a,n.state)})}catch(e){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(a,n.state,e)})}catch(e){0}t(e)})})}},l.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},l.prototype.subscribeAction=function(e,t){return p("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch(function(){return e(r.state,r.getters)},t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),m(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=v(t.state,e.slice(0,-1));c.delete(n,e[e.length-1])}),f(this)},l.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},l.prototype.hotUpdate=function(e){this._modules.update(e),f(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,d);var b=E(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0}),n}),w=E(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n}),_=E(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0}),n}),S=E(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});function x(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function E(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){return e._modulesNamespaceMap[n]}function M(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function C(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function I(){var e=new Date;return" @ "+L(e.getHours(),2)+":"+L(e.getMinutes(),2)+":"+L(e.getSeconds(),2)+"."+L(e.getMilliseconds(),3)}function L(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var k={Store:l,install:y,version:"3.6.2",mapState:b,mapMutations:w,mapGetters:_,mapActions:S,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:_.bind(null,e),mapMutations:w.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var d=r(e.state);void 0!==l&&(u&&e.subscribe(function(e,a){var s=r(a);if(n(e,d,s)){var u=I(),c=o(e),p="mutation "+e.type+u;M(l,p,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),C(l)}d=s}),c&&e.subscribeAction(function(e,n){if(a(e,n)){var r=I(),i=s(e),o="action "+e.type+r;M(l,o,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),C(l)}}))}}};t.a=k}).call(t,n("DuR2"))},Nd3h:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})(n("PJh5"))},NhAe:function(e,t,n){"use strict";const r=n("cGSG"),i=n("cGSG").buildOptions,o=n("QirJ"),a=n("+Ue8");"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const s={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=s;const u=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function c(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=d(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.numParseOptions)),t}function l(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 d(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}t.props=u;const p=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function f(e,t){if(!t.ignoreAttributes&&"string"==typeof e){e=e.replace(/\r?\n/g," ");const n=r.getAllMatches(e,p),i=n.length,o={};for(let e=0;e"===t)return{data:r,index:i};"\t"===t&&(t=" ")}r+=t}}function m(e,t,n,r){const i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,s,u);const n=new o("!xml");let a=n,l="";for(let n=0;n",n,"Closing Tag is not closed.");let o=e.substring(n+2,i).trim();if(t.ignoreNameSpace){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}a&&(a.val?a.val=r.getValue(a.val)+""+c(o,l,t):a.val=c(o,l,t)),t.stopNodes.length&&t.stopNodes.includes(a.tagname)&&(a.child=[],void 0==a.attrsMap&&(a.attrsMap={}),a.val=e.substr(a.startIndex+1,n-a.startIndex-1)),a=a.parent,l="",n=i}else if("?"===e[n+1])n=m(e,"?>",n,"Pi Tag is not closed.");else if("!--"===e.substr(n+1,3))n=m(e,"--\x3e",n,"Comment is not closed.");else if("!D"===e.substr(n+1,2)){const t=m(e,">",n,"DOCTYPE is not closed.");n=e.substring(n,t).indexOf("[")>=0?e.indexOf("]>",n)+1:t}else if("!["===e.substr(n+1,2)){const i=m(e,"]]>",n,"CDATA is not closed.")-2,s=e.substring(n+9,i);if(l&&(a.val=r.getValue(a.val)+""+c(a.tagname,l,t),l=""),t.cdataTagName){const e=new o(t.cdataTagName,a,s);a.addChild(e),a.val=r.getValue(a.val)+t.cdataPositionChar,s&&(e.val=s)}else a.val=(a.val||"")+(s||"");n=i+2}else{const i=h(e,n+1);let s=i.data;const u=i.index,d=s.indexOf(" ");let p=s,m=!0;if(-1!==d&&(p=s.substr(0,d).replace(/\s\s*$/,""),s=s.substr(d+1)),t.ignoreNameSpace){const e=p.indexOf(":");-1!==e&&(m=(p=p.substr(e+1))!==i.data.substr(e+1))}if(a&&l&&"!xml"!==a.tagname&&(a.val=r.getValue(a.val)+""+c(a.tagname,l,t)),s.length>0&&s.lastIndexOf("/")===s.length-1){s="/"===p[p.length-1]?p=p.substr(0,p.length-1):s.substr(0,s.length-1);const e=new o(p,a,"");p!==s&&(e.attrsMap=f(s,t)),a.addChild(e)}else{const e=new o(p,a);t.stopNodes.length&&t.stopNodes.includes(e.tagname)&&(e.startIndex=u),p!==s&&m&&(e.attrsMap=f(s,t)),a.addChild(e),a=e}l="",n=u}else l+=e[n];return n}},NkRn:function(e,t,n){var r=n("TQ3y").Symbol;e.exports=r},Nlnz:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})(n("PJh5"))},NpIQ:function(e,t){t.f={}.propertyIsEnumerable},NqZt:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},Nvbj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;for(;(n=r.exec(e.body))&&n.index9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})})(n("PJh5"))},OUMt:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},OVPi:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},OYls:function(e,t,n){n("crlp")("asyncIterator")},"Oi+a":function(e,t,n){"use strict";var r=n("dIwP"),i=n("qRfI");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},OqwH:function(e,t,n){"use strict";var r=n("TToO"),i=n("i8+n"),o=n("/Xb7");var a=function(){function e(e){var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void 0===t?{}:t).abortSignal,a=this.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var s=new Error("Request aborted");return s.name="AbortError",Promise.reject(s)}var u=e.path;if(e.query){var c=Object(o.a)(e.query);c&&(u+="?"+c)}var l=e.port,d=e.method,p=e.protocol+"//"+e.hostname+(l?":"+l:"")+u,f={body:"GET"===d||"HEAD"===d?void 0:e.body,headers:new Headers(e.headers),method:d};"undefined"!=typeof AbortController&&(f.signal=n);var h,m=new Request(p,f),v=[fetch(m).then(function(e){var t,n,o=e.headers,a={};try{for(var s=Object(r.__values)(o.entries()),u=s.next();!u.done;u=s.next()){var c=u.value;a[c[0]]=c[1]}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new i.b({headers:a,statusCode:e.status,body:e.body})}:e.blob().then(function(t){return{response:new i.b({headers:a,statusCode:e.status,body:t})}})}),(h=a,void 0===h&&(h=0),new Promise(function(e,t){h&&setTimeout(function(){var e=new Error("Request did not complete within "+h+" ms");e.name="TimeoutError",t(e)},h)}))];return n&&v.push(new Promise(function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}})),Promise.race(v)},e}(),s=n("JVbd"),u=function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return Object(r.__awaiter)(this,void 0,void 0,function(){var t,n;return Object(r.__generator)(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=Object(s.a)(t),[2,new Uint8Array(n)]}})})}(e):function(e){return Object(r.__awaiter)(this,void 0,void 0,function(){var t,n,i,o,a,s,u;return Object(r.__generator)(this,function(r){switch(r.label){case 0:t=new Uint8Array(0),n=e.getReader(),i=!1,r.label=1;case 1:return i?[3,3]:[4,n.read()];case 2:return o=r.sent(),a=o.done,(s=o.value)&&(u=t,(t=new Uint8Array(u.length+s.length)).set(u),t.set(s,u.length)),i=a,[3,1];case 3:return[2,t]}})})}(e)};n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u})},OvRC:function(e,t,n){e.exports={default:n("oM7Q"),__esModule:!0}},PIk1:function(e,t,n){var r;r=function(e){var t,n,r;n=(t=e).lib.Base,r=t.enc.Utf8,t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,c=0;c>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},N={};function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=F(t,e.localeData()),D[t]=D[t]||function(e){var t,n,r,i=e.match(P);for(t=0,n=i.length;t=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,n-=1;return e}var B={};function H(e,t){var n=e.toLowerCase();B[n]=B[n+"s"]=B[t]=e}function V(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function $(e){var t,n,r={};for(n in e)u(e,n)&&(t=V(n))&&(r[t]=e[n]);return r}var U={};function q(e,t){U[e]=t}function Y(e){return e%4==0&&e%100!=0||e%400==0}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=K(t)),n}function J(e,t){return function(n){return null!=n?(Q(this,e,n),o.updateOffset(this,t),this):W(this,e)}}function W(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Y(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,ee=/\d\d/,te=/\d{3}/,ne=/\d{4}/,re=/[+-]?\d{6}/,ie=/\d\d?/,oe=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,se=/\d{1,3}/,ue=/\d{1,4}/,ce=/[+-]?\d{1,6}/,le=/\d+/,de=/[+-]?\d+/,pe=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function me(e,t,n){X[e]=L(t)?t:function(e,r){return e&&n?n:t}}function ve(e,t){return u(X,e)?X[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ye={};function be(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=G(e)}),r=e.length,n=0;n68?1900:2e3)};var Ve=J("FullYear",!0);function $e(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,n){var r=7+t-n;return-((7+$e(e,0,r).getUTCDay()-t)%7)+r-1}function qe(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Ue(e,r,i);return s<=0?a=He(o=e-1)+s:s>He(e)?(o=e+1,a=s-He(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ye(e,t,n){var r,i,o=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ke(i=e.year()-1,t,n):a>Ke(e.year(),t,n)?(r=a-Ke(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ke(e,t,n){var r=Ue(e,t,n),i=Ue(e+1,t,n);return(He(e)-r+i)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),q("week",5),q("isoWeek",5),me("w",ie),me("ww",ie,ee),me("W",ie),me("WW",ie,ee),we(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=G(e)});function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),me("d",ie),me("e",ie),me("E",ie),me("dd",function(e,t){return t.weekdaysMinRegex(e)}),me("ddd",function(e,t){return t.weekdaysShortRegex(e)}),me("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e}),we(["d","e","E"],function(e,t,n,r){t[r]=G(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=he,Ze=he,et=he;function tt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),i=ge(this.weekdaysShort(n,"")),o=ge(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function it(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,nt),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+nt.apply(this)+A(this.minutes(),2)}),R("hmmss",0,0,function(){return""+nt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),rt("a",!0),rt("A",!1),H("hour","h"),q("hour",13),me("a",it),me("A",it),me("H",ie),me("h",ie),me("k",ie),me("HH",ie,ee),me("hh",ie,ee),me("kk",ie,ee),me("hmm",oe),me("hmmss",ae),me("Hmm",oe),me("Hmmss",ae),be(["H","HH"],Me),be(["k","kk"],function(e,t,n){var r=G(e);t[Me]=24===r?0:r}),be(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),be(["h","hh"],function(e,t,n){t[Me]=G(e),v(n).bigHour=!0}),be("hmm",function(e,t,n){var r=e.length-2;t[Me]=G(e.substr(0,r)),t[Ce]=G(e.substr(r)),v(n).bigHour=!0}),be("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Me]=G(e.substr(0,r)),t[Ce]=G(e.substr(r,2)),t[Ie]=G(e.substr(i)),v(n).bigHour=!0}),be("Hmm",function(e,t,n){var r=e.length-2;t[Me]=G(e.substr(0,r)),t[Ce]=G(e.substr(r))}),be("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Me]=G(e.substr(0,r)),t[Ce]=G(e.substr(r,2)),t[Ie]=G(e.substr(i))});var ot=J("Hours",!0);var at,st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},ut={},ct={};function lt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=pt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&<(i,n)>=t-1)break;t--}o++}return at}(e)}function vt(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ee]<0||n[Ee]>11?Ee:n[Te]<1||n[Te]>Ae(n[xe],n[Ee])?Te:n[Me]<0||n[Me]>24||24===n[Me]&&(0!==n[Ce]||0!==n[Ie]||0!==n[Le])?Me:n[Ce]<0||n[Ce]>59?Ce:n[Ie]<0||n[Ie]>59?Ie:n[Le]<0||n[Le]>999?Le:-1,v(e)._overflowDayOfYear&&(tTe)&&(t=Te),v(e)._overflowWeeks&&-1===t&&(t=ke),v(e)._overflowWeekday&&-1===t&&(t=ze),v(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],St=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Et={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,a,s=e._i,u=gt.exec(s)||yt.exec(s),c=wt.length,l=_t.length;if(u){for(v(e).iso=!0,t=0,n=c;t7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ye(Pt(),o,a),n=It(t.gg,e._a[xe],c.year),r=It(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o);r<1||r>Ke(n,o,a)?v(e)._overflowWeeks=!0:null!=u?v(e)._overflowWeekday=!0:(s=qe(n,r,i,o,a),e._a[xe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=It(e._a[xe],r[xe]),(e._dayOfYear>He(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=$e(a,0,e._dayOfYear),e._a[Ee]=n.getUTCMonth(),e._a[Te]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[Ce]&&0===e._a[Ie]&&0===e._a[Le]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?$e:function(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,a,s,u,c=""+e._i,l=c.length,d=0;for(u=(r=F(e._f,e._locale).match(P)||[]).length,t=0;t0&&v(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),N[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=l-d,c.length>0&&v(e).unusedInput.push(c),e._a[Me]<=12&&!0===v(e).bigHour&&e._a[Me]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Me]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Me],e._meridiem),null!==(s=v(e).era)&&(e._a[xe]=e._locale.erasConvertYear(s,e._a[xe])),Lt(e),vt(e)}else Ct(e);else Tt(e)}function zt(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(vt(t)):(p(t)?e._d=t:a(n)?function(e){var t,n,r,i,o,a,s=!1,u=e._f.length;if(0===u)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()});function Nt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-pn:new Date(e,t,n).valueOf()}function mn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function gn(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e(o=Ke(e,r,i))&&(t=o),function(e,t,n,r,i){var o=qe(e,t,n,r,i),a=$e(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),me("N",vn),me("NN",vn),me("NNN",vn),me("NNNN",function(e,t){return t.erasNameRegex(e)}),me("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),be(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e}),me("y",le),me("yy",le),me("yyy",le),me("yyyy",le),me("yo",function(e,t){return t._eraYearOrdinalRegex||le}),be(["y","yy","yyy","yyyy"],xe),be(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xe]=n._locale.eraYearOrdinalParse(e,i):t[xe]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),me("G",de),me("g",de),me("GG",ie,ee),me("gg",ie,ee),me("GGGG",ue,ne),me("gggg",ue,ne),me("GGGGG",ce,re),me("ggggg",ce,re),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=G(e)}),we(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),H("quarter","Q"),q("quarter",7),me("Q",Z),be("Q",function(e,t){t[Ee]=3*(G(e)-1)}),R("D",["DD",2],"Do","date"),H("date","D"),q("date",9),me("D",ie),me("DD",ie,ee),me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),be(["D","DD"],Te),be("Do",function(e,t){t[Te]=G(e.match(ie)[0])});var wn=J("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),q("dayOfYear",4),me("DDD",se),me("DDDD",te),be(["DDD","DDDD"],function(e,t,n){n._dayOfYear=G(e)}),R("m",["mm",2],0,"minute"),H("minute","m"),q("minute",14),me("m",ie),me("mm",ie,ee),be(["m","mm"],Ce);var _n=J("Minutes",!1);R("s",["ss",2],0,"second"),H("second","s"),q("second",15),me("s",ie),me("ss",ie,ee),be(["s","ss"],Ie);var Sn,xn,En=J("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),H("millisecond","ms"),q("millisecond",16),me("S",se,Z),me("SS",se,ee),me("SSS",se,te),Sn="SSSS";Sn.length<=9;Sn+="S")me(Sn,le);function Tn(e,t){t[Le]=G(1e3*("0."+e))}for(Sn="S";Sn.length<=9;Sn+="S")be(Sn,Tn);xn=J("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var Mn=S.prototype;function Cn(e){return e}Mn.add=en,Mn.calendar=function(e,t){1===arguments.length&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=s(e)&&!c(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mn.isUtc=Yt,Mn.isUTC=Yt,Mn.zoneAbbr=function(){return this._isUTC?"UTC":""},Mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mn.dates=T("dates accessor is deprecated. Use date instead.",wn),Mn.months=T("months accessor is deprecated. Use month instead",Fe),Mn.years=T("years accessor is deprecated. Use year instead",Ve),Mn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Mn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zt(t))._a?(e=t._isUTC?m(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted});var In=z.prototype;function Ln(e,t,n,r){var i=mt(),o=m().set(r,t);return i[n](o,e)}function kn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Ln(e,r,n,"month");return i}function zn(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=mt(),a=e?o._week.dow:0,s=[];if(null!=n)return Ln(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Ln(t,(i+a)%7,r,"day");return s}In.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},In.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},In.invalidDate=function(){return this._invalidDate},In.ordinal=function(e){return this._ordinal.replace("%d",e)},In.preparse=Cn,In.postformat=Cn,In.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)},In.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},In.set=function(e){var t,n;for(n in e)u(e,n)&&(L(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},In.eras=function(e,t){var n,r,i,a=this._eras||mt("en")._eras;for(n=0,r=a.length;n=0)return u[r]},In.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},In.erasAbbrRegex=function(e){return u(this,"_erasAbbrRegex")||gn.call(this),e?this._erasAbbrRegex:this._erasRegex},In.erasNameRegex=function(e){return u(this,"_erasNameRegex")||gn.call(this),e?this._erasNameRegex:this._erasRegex},In.erasNarrowRegex=function(e){return u(this,"_erasNarrowRegex")||gn.call(this),e?this._erasNarrowRegex:this._erasRegex},In.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},In.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},In.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Se.call(this._shortMonthsParse,a))?i:null:-1!==(i=Se.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Se.call(this._shortMonthsParse,a))?i:-1!==(i=Se.call(this._longMonthsParse,a))?i:null:-1!==(i=Se.call(this._longMonthsParse,a))?i:-1!==(i=Se.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},In.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},In.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},In.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},In.firstDayOfYear=function(){return this._week.doy},In.firstDayOfWeek=function(){return this._week.dow},In.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},In.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},In.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},In.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Se.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},In.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},In.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},In.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},In.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},In.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",ft),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",mt);var An=Math.abs;function Pn(e,t,n,r){var i=Jt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(e){return 4800*e/146097}function Nn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var jn=Rn("ms"),Fn=Rn("s"),Bn=Rn("m"),Hn=Rn("h"),Vn=Rn("d"),$n=Rn("w"),Un=Rn("M"),qn=Rn("Q"),Yn=Rn("y");function Kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gn=Kn("milliseconds"),Jn=Kn("seconds"),Wn=Kn("minutes"),Qn=Kn("hours"),Xn=Kn("days"),Zn=Kn("months"),er=Kn("years");var tr=Math.round,nr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var rr=Math.abs;function ir(e){return(e>0)-(e<0)||+e}function or(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=rr(this._milliseconds)/1e3,c=rr(this._days),l=rr(this._months),d=this.asSeconds();return d?(t=K((e=K(u/60))/60),u%=60,e%=60,n=K(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ir(this._months)!==ir(d)?"-":"",a=ir(this._days)!==ir(d)?"-":"",s=ir(this._milliseconds)!==ir(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ar=jt.prototype;return ar.isValid=function(){return this._isValid},ar.abs=function(){var e=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),e.milliseconds=An(e.milliseconds),e.seconds=An(e.seconds),e.minutes=An(e.minutes),e.hours=An(e.hours),e.months=An(e.months),e.years=An(e.years),this},ar.add=function(e,t){return Pn(this,e,t,1)},ar.subtract=function(e,t){return Pn(this,e,t,-1)},ar.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Dn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},ar.asMilliseconds=jn,ar.asSeconds=Fn,ar.asMinutes=Bn,ar.asHours=Hn,ar.asDays=Vn,ar.asWeeks=$n,ar.asMonths=Un,ar.asQuarters=qn,ar.asYears=Yn,ar.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},ar._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*On(Nn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=K(o/1e3),u.seconds=e%60,t=K(e/60),u.minutes=t%60,n=K(t/60),u.hours=n%24,s+=i=K(Dn(a+=K(n/24))),a-=On(Nn(i)),r=K(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},ar.clone=function(){return Jt(this)},ar.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},ar.milliseconds=Gn,ar.seconds=Jn,ar.minutes=Wn,ar.hours=Qn,ar.days=Xn,ar.weeks=function(){return K(this.days()/7)},ar.months=Zn,ar.years=er,ar.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=nr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},nr,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=function(e,t,n,r){var i=Jt(e).abs(),o=tr(i.as("s")),a=tr(i.as("m")),s=tr(i.as("h")),u=tr(i.as("d")),c=tr(i.as("M")),l=tr(i.as("w")),d=tr(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,p)}(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},ar.toISOString=or,ar.toString=or,ar.toJSON=or,ar.locale=an,ar.localeData=un,ar.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",or),ar.lang=sn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),me("x",de),me("X",/[+-]?\d+(\.\d{1,3})?/),be("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),be("x",function(e,t,n){n._d=new Date(G(e))}), //! moment.js o.version="2.29.4",r=Pt,o.fn=Mn,o.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},o.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=m,o.unix=function(e){return Pt(1e3*e)},o.months=function(e,t){return kn(e,t,"months")},o.isDate=p,o.locale=ft,o.invalid=y,o.duration=Jt,o.isMoment=x,o.weekdays=function(e,t,n){return zn(e,t,n,"weekdays")},o.parseZone=function(){return Pt.apply(null,arguments).parseZone()},o.localeData=mt,o.isDuration=Ft,o.monthsShort=function(e,t){return kn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return zn(e,t,n,"weekdaysMin")},o.defineLocale=ht,o.updateLocale=function(e,t){if(null!=t){var n,r,i=st;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(k(ut[e]._config,t)):(null!=(r=pt(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new z(t)).parentLocale=ut[e],ut[e]=n),ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===ft()&&ft(e)):null!=ut[e]&&delete ut[e]);return ut[e]},o.locales=function(){return M(ut)},o.weekdaysShort=function(e,t,n){return zn(e,t,n,"weekdaysShort")},o.normalizeUnits=V,o.relativeTimeRounding=function(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==nr[e]&&(void 0===t?nr[e]:(nr[e]=t,"s"===e&&(nr.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=Mn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o},e.exports=r()}).call(t,n("3IRH")(e))},PNBz:function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1)),r(n(2)),r(n(3)),r(n(4)),r(n(5)),r(n(6)),r(n(7)),r(n(8)),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(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",sceneBar:"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"}}])},e.exports=r()},POb3:function(e,t,n){var r=n("ICSD")(n("TQ3y"),"Map");e.exports=r},PY8R:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},Pf15:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n("kiBT")),i=a(n("OvRC")),o=a(n("pFYg"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},Phbz:function(e,t,n){"use strict";const r=n("cGSG").buildOptions,i={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 a(e){this.options=r(e,i,o),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=m),this.options.cdataTagName?this.isCDATA=v:this.isCDATA=function(){return!1},this.replaceCDATAstr=u,this.replaceCDATAarr=c,this.processTextOrObjNode=s,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=f,this.buildObjNode=d):(this.buildTextNode=p,this.buildObjNode=l),this.buildTextValNode=p,this.buildObjectNode=l}function s(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextNode(r.val,t,r.attrStr,n):this.buildObjNode(r.val,t,r.attrStr,n)}function u(e,t){return e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e?e+"");return e+this.newLine}function l(e,t,n,r){return n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+">"+e+""+this.options.tagValueProcessor(e)+"1&&(e={[this.options.rootNodeName]:e}),this.j2x(e,0).val},a.prototype.j2x=function(e,t){let n="",r="";for(let i in e)if(void 0===e[i]);else if(null===e[i])r+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)r+=this.buildTextNode(e[i],i,"",t);else if("object"!=typeof e[i]){const o=this.isAttribute(i);o?n+=" "+o+'="'+this.options.attrValueProcessor(""+e[i])+'"':this.isCDATA(i)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[i]):r+=this.replaceCDATAstr("",e[i]):i===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[i])):r+=this.buildTextNode(e[i],i,"",t)}else if(Array.isArray(e[i]))if(this.isCDATA(i))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[i]):r+=this.replaceCDATAarr("",e[i]);else{const n=e[i].length;for(let o=0;os)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},QRG4:function(e,t,n){var r=n("UuGF"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},QT45:function(e,t,n){"use strict";function r(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=r,t.introspectionQuery=void 0;var i=r();t.introspectionQuery=i},"QWe/":function(e,t,n){n("crlp")("observable")},QZk1:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n("PJh5"))},Qdvv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=p,t.missingDirectiveArgMessage=f,t.ProvidedRequiredArguments=function(e){return function(e){for(var t=1;t-1&&e%1==0&&e<=n}},RnJI:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"})},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})(n("PJh5"))},Rrel:function(e,t,n){var r=n("TcQ7"),i=n("n0T6").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},S7p9:function(e,t){e.exports=function(e){return function(t){return e(t)}}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},SHWz:function(e,t,n){var r=n("MoMe"),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var c=n&i,l=r(e),d=l.length;if(d!=r(t).length&&!c)return!1;for(var p=d;p--;){var f=l[p];if(!(c?f in t:o.call(t,f)))return!1}var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var v=!0;u.set(e,t),u.set(t,e);for(var g=c;++p=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:z(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function w(e,t,n,r){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=_(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function E(){}function T(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function M(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){u.value=e,o(u)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function z(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},t.__param=function(e,t){return function(n,r){t(n,r,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||u(e,t)})})}function u(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(c,l):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function c(e){u("next",e)}function l(e){u("throw",e)}function d(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:s(e[r](t)),done:"return"===r}:i?i(t):t}:i}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=o(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){t=e[n](t),function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,t.done,t.value)})}}},t.__makeTemplateObject=function(e,t){Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t;return e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}},t.__classPrivateFieldGet=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},t.__classPrivateFieldSet=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},TX8X:function(e,t,n){"use strict"; /*! * portal-vue © Thorsten Lünborg, 2019 * * Version: 2.1.7 * * LICENCE: MIT * * https://github.com/linusborg/portal-vue * */Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n("7+uW"))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var i=this.$_getTransportIndex(e);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(e,t,n){s&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,t,n){s&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([t])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var r in this.transports[t])if(this.transports[t][r].from===n)return+r;return-1}}}))(c),f=1,h=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(f++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick(function(){p.registerSource(e.name,e)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){p.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};p.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"==typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:a(e),order:this.order};p.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),m=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:p.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick(function(){p.registerTarget(e.name,e)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){p.unregisterTarget(t),p.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick(function(){e.firstRender=!1})},beforeDestroy:function(){p.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,n){var r=n.passengers[0],i="function"==typeof r?r(t):n.passengers;return e.concat(i)},[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),v=0,g=["disabled","name","order","slim","slotProps","tag","to"],y=["multiple","transition"],b=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(v++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(p.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=p.targets[t.name];else{var n=t.append;if(n){var r="string"==typeof n?n:"DIV",i=document.createElement(r);e.appendChild(i),e=i}var o=u(this.$props,y);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new m({el:e,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=u(this.$props,g);return e(h,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||e()}});var w={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",h),e.component(t.portalTargetName||"PortalTarget",m),e.component(t.MountingPortalName||"MountingPortal",b)}};t.default=w,t.Portal=h,t.PortalTarget=m,t.MountingPortal=b,t.Wormhole=p},TcQ7:function(e,t,n){var r=n("MU5D"),i=n("52gC");e.exports=function(e){return r(i(e))}},To0v:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})})(n("PJh5"))},To3L:function(e,t,n){"use strict";var r=n("+E39"),i=n("lktj"),o=n("1kS7"),a=n("NpIQ"),s=n("sB3e"),u=n("MU5D"),c=Object.assign;e.exports=!c||n("S82l")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,l=1,d=o.f,p=a.f;c>l;)for(var f,h=u(arguments[l++]),m=d?i(h).concat(d(h)):i(h),v=m.length,g=0;v>g;)f=m[g++],r&&!p.call(h,f)||(n[f]=h[f]);return n}:c},TpNK:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("11VZ")),o=s(n("Z+oX")),a=n("zk+s");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n0,w=(/msie|trident/.test(y),function(){var e=!1;if(h)try{var t={get passive(){e=!0}};m.addEventListener("test",t,t),m.removeEventListener("test",t,t)}catch(t){e=!1}return e}()),_=h&&("ontouchstart"in v.documentElement||g.maxTouchPoints>0),S=h&&Boolean(m.PointerEvent||m.MSPointerEvent),x=h&&"IntersectionObserver"in m&&"IntersectionObserverEntry"in m&&"intersectionRatio"in m.IntersectionObserverEntry.prototype,E=["xs","sm","md","lg","xl"],T=/\[(\d+)]/g,M=/^(BV?)/,C=/^\d+$/,I=/^\..+/,L=/^#/,k=/^#[A-Za-z]+[\w\-:.]*$/,z=/(<([^>]+)>)/gi,A=/\B([A-Z])/g,P=/([a-z])([A-Z])/g,O=/^[0-9]*\.?[0-9]+$/,D=/\+/g,N=/[-/\\^$*+?.()|[\]{}]/g,R=/[\s\uFEFF\xA0]+/g,j=/\s+/,F=/\/\*$/,B=/(\s|^)(\w)/g,H=/^\s+/,V=/_/g,$=/-(\w)/g,U=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,q=/-|\s|T/,Y=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,K=/^.*(#[^#]+)$/,G=/%2C/g,J=/[!'()*]/g,W=/^(\?|#|&)/,Q=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,X=/[/:]/,Z=/^col-/,ee=/^BIcon/,te=/-u-.+/;function ne(e){"@babel/helpers - typeof";return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ce(e,t)}function oe(e){var t=ue();return function(){var n,r=le(e);if(t){var i=le(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ae(e){var t="function"==typeof Map?new Map:void 0;return(ae=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return se(e,arguments,le(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ce(r,e)})(e)}function se(e,t,n){return(se=ue()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ce(i,n.prototype),i}).apply(null,arguments)}function ue(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=c?m.Element:function(e){ie(n,ae(Object));var t=oe(n);function n(){return re(this,n),t.apply(this,arguments)}return n}(),pe=c?m.HTMLElement:function(e){ie(n,de);var t=oe(n);function n(){return re(this,n),t.apply(this,arguments)}return n}(),fe=c?m.SVGElement:function(e){ie(n,de);var t=oe(n);function n(){return re(this,n),t.apply(this,arguments)}return n}(),he=c?m.File:function(e){ie(n,ae(Object));var t=oe(n);function n(){return re(this,n),t.apply(this,arguments)}return n}();function me(e){"@babel/helpers - typeof";return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ve=function(e){return me(e)},ge=function(e){return Object.prototype.toString.call(e).slice(8,-1)},ye=function(e){return void 0===e},be=function(e){return null===e},we=function(e){return ye(e)||be(e)},_e=function(e){return"function"===ve(e)},Se=function(e){return"boolean"===ve(e)},xe=function(e){return"string"===ve(e)},Ee=function(e){return"number"===ve(e)},Te=function(e){return O.test(String(e))},Me=function(e){return Array.isArray(e)},Ce=function(e){return null!==e&&"object"===me(e)},Ie=function(e){return"[object Object]"===Object.prototype.toString.call(e)},Le=function(e){return e instanceof Date},ke=function(e){return e instanceof Event},ze=function(e){return"RegExp"===ge(e)};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:t;return Me(t)?t.reduce(function(t,n){return[].concat(We(t),[e(n,n)])},[]):Ie(t)?Be(t).reduce(function(n,r){return Ge(Ge({},n),{},Je({},r,e(t[r],t[r])))},{}):n},Ze=function(e){return e},et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(t=Me(t)?t.join("."):t)||!Ce(e))return n;if(t in e)return e[t];var r=(t=String(t).replace(T,".$1")).split(".").filter(Ze);return 0===r.length?n:r.every(function(t){return Ce(e)&&t in e&&!we(e=e[t])})?e:be(e)?null:n},tt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=et(e,t);return we(r)?n:r},nt=n("ixoM"),rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object(nt.a)()||console.warn("[BootstrapVue warn]: ".concat(t?"".concat(t," - "):"").concat(e))},it=function(e){return!h&&(rt("".concat(e,": Can not be called during SSR.")),!0)},ot=function(e){return!p&&(rt("".concat(e,": Requires Promise support.")),!0)};function at(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Ie(t)&&Fe(t).forEach(function(n){var r=t[n];"breakpoints"===n?!Me(r)||r.length<2||r.some(function(e){return!xe(e)||0===e.length})?rt('"breakpoints" must be an array of at least 2 breakpoint names',"BvConfig"):e.$_config[n]=Xe(r):Ie(r)&&(e.$_config[n]=Fe(r).reduce(function(e,t){return ye(r[t])||(e[t]=Xe(r[t])),e},e.$_config[n]||{}))})}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return Xe(this.$_config)}},{key:"getConfigValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Xe(et(this.$_config,e,t))}}])&&at(t.prototype,n),r&&at(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=e.directives,i=e.plugins,o=function e(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.installed||(e.installed=!0,ft(o),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default;t.prototype.$bvConfig=r.default.prototype.$bvConfig=t.prototype.$bvConfig||r.default.prototype.$bvConfig||new st,t.prototype.$bvConfig.setConfig(e)}(a,o),bt(o,t),_t(o,n),gt(o,i))};return o.installed=!1,o},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct(ct({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{install:ht(e)})},vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct(ct({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{install:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=e.directives,r=e.plugins,i=function e(i){e.installed||(e.installed=!0,ft(i),bt(i,t),_t(i,n),gt(i,r))};return i.installed=!1,i}(e)})},gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)n&&t[n]&&e.use(t[n])},yt=function(e,t,n){e&&t&&n&&e.component(t,n)},bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)yt(e,n,t[n])},wt=function(e,t,n){e&&t&&n&&e.directive(t.replace(/^VB/,"B"),n)},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)wt(e,n,t[n])},St="bv",xt={passive:!0},Et={passive:!0,capture:!1},Tt=Array,Mt=Boolean,Ct=Date,It=Function,Lt=Number,kt=Object,zt=RegExp,At=String,Pt=[Tt,It],Ot=[Tt,kt],Dt=[Tt,kt,At],Nt=[Tt,At],Rt=[Mt,Lt],jt=[Mt,Lt,At],Ft=[Mt,At],Bt=[Ct,At],Ht=[It,At],Vt=[Lt,At],$t=[Lt,kt,At],Ut=[kt,It],qt=[kt,At],Yt=function(){return Array.from.apply(Array,arguments)},Kt=function(e,t){return-1!==e.indexOf(t)},Gt=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(e,10);return isNaN(n)?t:n},Xt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(e);return isNaN(n)?t:n},Zt=function(e,t){return Xt(e).toFixed(Qt(t,0))},en=function(e){return e.replace(A,"-$1").toLowerCase()},tn=function(e){return(e=en(e).replace($,function(e,t){return t?t.toUpperCase():""})).charAt(0).toUpperCase()+e.slice(1)},nn=function(e){return e.replace(V," ").replace(P,function(e,t,n){return t+" "+n}).replace(B,function(e,t,n){return t+n.toUpperCase()})},rn=function(e){return(e=xe(e)?e.trim():String(e)).charAt(0).toUpperCase()+e.slice(1)},on=function(e){return e.replace(N,"\\$&")},an=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return we(e)?"":Me(e)||Ie(e)&&e.toString===Object.prototype.toString?JSON.stringify(e,null,t):String(e)},sn=function(e){return an(e).trim()},un=function(e){return an(e).toLowerCase()},cn=de.prototype,ln=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(function(e){return"".concat(e,":not(:disabled):not([disabled])")}).join(", "),dn=cn.matches||cn.msMatchesSelector||cn.webkitMatchesSelector,pn=cn.closest||function(e){var t=this;do{if(En(t,e))return t;t=t.parentElement||t.parentNode}while(!be(t)&&t.nodeType===Node.ELEMENT_NODE);return null},fn=(m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.msRequestAnimationFrame||m.oRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(m),hn=m.MutationObserver||m.WebKitMutationObserver||m.MozMutationObserver||null,mn=function(e){return!(!e||e.nodeType!==Node.ELEMENT_NODE)},vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=v.activeElement;return t&&!e.some(function(e){return e===t})?t:null},gn=function(e,t){return an(e).toLowerCase()===an(t).toLowerCase()},yn=function(e){return mn(e)&&e===vn()},bn=function(e){if(!mn(e)||!e.parentNode||!Mn(v.body,e))return!1;if("none"===Rn(e,"display"))return!1;var t=jn(e);return!!(t&&t.height>0&&t.width>0)},wn=function(e){return!mn(e)||e.disabled||On(e,"disabled")||kn(e,"disabled")},_n=function(e){return mn(e)&&e.offsetHeight},Sn=function(e,t){return Yt((mn(t)?t:v).querySelectorAll(e))},xn=function(e,t){return(mn(t)?t:v).querySelector(e)||null},En=function(e,t){return!!mn(e)&&dn.call(e,t)},Tn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!mn(t))return null;var r=pn.call(t,e);return n?r:r===t?null:r},Mn=function(e,t){return!(!e||!_e(e.contains))&&e.contains(t)},Cn=function(e){return v.getElementById(/^#/.test(e)?e.slice(1):e)||null},In=function(e,t){t&&mn(e)&&e.classList&&e.classList.add(t)},Ln=function(e,t){t&&mn(e)&&e.classList&&e.classList.remove(t)},kn=function(e,t){return!!(t&&mn(e)&&e.classList)&&e.classList.contains(t)},zn=function(e,t,n){t&&mn(e)&&e.setAttribute(t,n)},An=function(e,t){t&&mn(e)&&e.removeAttribute(t)},Pn=function(e,t){return t&&mn(e)?e.getAttribute(t):null},On=function(e,t){return t&&mn(e)?e.hasAttribute(t):null},Dn=function(e,t,n){t&&mn(e)&&(e.style[t]=n)},Nn=function(e,t){t&&mn(e)&&(e.style[t]="")},Rn=function(e,t){return t&&mn(e)&&e.style[t]||null},jn=function(e){return mn(e)?e.getBoundingClientRect():null},Fn=function(e){var t=m.getComputedStyle;return t&&mn(e)?t(e):{}},Bn=function(e){var t={top:0,left:0};if(!mn(e)||0===e.getClientRects().length)return t;var n=jn(e);if(n){var r=e.ownerDocument.defaultView;t.top=n.top+r.pageYOffset,t.left=n.left+r.pageXOffset}return t},Hn=function(e){var t={top:0,left:0};if(!mn(e))return t;var n={top:0,left:0},r=Fn(e);if("fixed"===r.position)t=jn(e)||t;else{t=Bn(e);for(var i=e.ownerDocument,o=e.offsetParent||i.documentElement;o&&(o===i.body||o===i.documentElement)&&"static"===Fn(o).position;)o=o.parentNode;if(o&&o!==e&&o.nodeType===Node.ELEMENT_NODE){n=Bn(o);var a=Fn(o);n.top+=Xt(a.borderTopWidth,0),n.left+=Xt(a.borderLeftWidth,0)}}return{top:t.top-n.top-Xt(r.marginTop,0),left:t.left-n.left-Xt(r.marginLeft,0)}},Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return Sn(ln,e).filter(bn).filter(function(e){return e.tabIndex>-1&&!e.disabled})},$n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e.focus(t)}catch(e){}return yn(e)},Un=function(e){try{e.blur()}catch(e){}return!yn(e)},qn=function(e){var t=Ne(null);return function(){for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:void 0,n=Yn.$bvConfig;return n?n.getConfigValue(e,t):Xe(t)},Gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return t?Kn("".concat(e,".").concat(t),n):Kn(e,{})},Jn=function(){return Kn("breakpoints",E)},Wn=qn(function(){return Jn()}),Qn=function(){return Xe(Wn())},Xn=qn(function(){var e=Qn();return e[0]="",e});function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=!0===n;return r=i?r:n,er(er(er({},e?{type:e}:{}),i?{required:i}:ye(t)?{}:{default:Ce(t)?function(){return t}:t}),ye(r)?{}:{validator:r})},ar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze;if(Me(e))return e.map(t);var n={};for(var r in e)He(e,r)&&(n[t(r)]=Ce(e[r])?Ve(e[r]):e[r]);return n},sr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ze;return(Me(e)?e.slice():Be(e)).reduce(function(e,r){return e[n(r)]=t[r],e},{})},ur=function(e,t,n){return er(er({},Xe(e)),{},{default:function(){var r=Gn(n,t,e.default);return _e(r)?r():r}})},cr=function(e,t){return Be(e).reduce(function(n,r){return er(er({},n),{},tr({},r,ur(e[r],r,t)))},{})},lr=ur({},"","").default.name,dr=function(e){return _e(e)&&e.name&&e.name!==lr};var pr=function(e){var t,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.type,s=void 0===a?void 0:a,u=o.defaultValue,c=void 0===u?void 0:u,l=o.validator,d=void 0===l?void 0:l,p=o.event,f=void 0===p?"input":p,h=(t={},n=e,i=or(s,c,d),n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t);return{mixin:r.default.extend({model:{prop:e,event:f},props:h}),props:h,prop:e,event:f}},fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(e=Gt(e).filter(Ze)).some(function(e){return t[e]||n[e]})},hr=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=Gt(e).filter(Ze);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return fr(e,t,n)},normalizeSlot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,i=hr(e,t,n,r);return i?Gt(i):i}}}),vr=function(e){return w?Ce(e)?e:{capture:!!e||!1}:!!(Ce(e)?e.capture:e)},gr=function(e,t,n,r){e&&e.addEventListener&&e.addEventListener(t,n,vr(r))},yr=function(e,t,n,r){e&&e.removeEventListener&&e.removeEventListener(t,n,vr(r))},br=function(e){for(var t=e?gr:yr,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.preventDefault,r=void 0===n||n,i=t.propagation,o=void 0===i||i,a=t.immediatePropagation,s=void 0!==a&&a;r&&e.preventDefault(),o&&e.stopPropagation(),s&&e.stopImmediatePropagation()},_r=function(e){return en(e.replace(M,""))},Sr=function(e,t){return[St,_r(e),t].join("::")},xr=function(e,t){return[St,t,_r(e)].join("::")};var Er=cr({ariaLabel:or(At,"Close"),content:or(At,"×"),disabled:or(Mt,!1),textVariant:or(At)},"BButtonClose"),Tr=r.default.extend({name:"BButtonClose",functional:!0,props:Er,render:function(e,t){var n,r,i,o=t.props,a=t.data,s=t.slots,c=t.scopedSlots,l=s(),d=c||{},p={staticClass:"close",class:(n={},r="text-".concat(o.textVariant),i=o.textVariant,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),attrs:{type:"button",disabled:o.disabled,"aria-label":o.ariaLabel?String(o.ariaLabel):null},on:{click:function(e){o.disabled&&ke(e)&&wr(e)}}};return fr("default",d,l)||(p.domProps={innerHTML:o.content}),e("button",u(a,p),hr("default",{},d,l))}});function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t0?e:0},$r=function(e){return""===e||!0===e||!(Qt(e,0)<1)&&!!e},Ur=cr(qe(Dr(Dr({},Fr),{},{dismissLabel:or(At,"Close"),dismissible:or(Mt,!1),fade:or(Mt,!1),variant:or(At,"info")})),"BAlert"),qr=r.default.extend({name:"BAlert",mixins:[jr,mr],props:Ur,data:function(){return{countDown:0,localShow:$r(this[Br])}},watch:(Lr={},Nr(Lr,Br,function(e){this.countDown=Vr(e),this.localShow=$r(e)}),Nr(Lr,"countDown",function(e){var t=this;this.clearCountDownInterval();var n=this[Br];Te(n)&&(this.$emit("dismiss-count-down",e),n!==e&&this.$emit(Hr,e),e>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout(function(){t.countDown--},1e3)):this.$nextTick(function(){fn(function(){t.localShow=!1})}))}),Nr(Lr,"localShow",function(e){var t=this[Br];e||!this.dismissible&&!Te(t)||this.$emit("dismissed"),Te(t)||t===e||this.$emit(Hr,e)}),Lr),created:function(){this.$_filterTimer=null;var e=this[Br];this.countDown=Vr(e),this.localShow=$r(e)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(e){var t=e();if(this.localShow){var n=this.dismissible,r=this.variant,i=e();n&&(i=e(Tr,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot("dismiss")])),t=e("div",{staticClass:"alert",class:Nr({"alert-dismissible":n},"alert-".concat(r),r),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this._uid},[i,this.normalizeSlot()])}return e(Pr,{props:{noFade:!this.fade}},[t])}}),Yr=mt({components:{BAlert:qr}}),Kr=Math.min,Gr=Math.max,Jr=Math.abs,Wr=Math.ceil,Qr=Math.floor,Xr=Math.pow,Zr=Math.round;function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.href,n=e.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(t)return t;if(li(r))return null;if(xe(n))return n||o;if(Ie(n)&&(n.path||n.query||n.hash)){var a=an(n.path),s=function(e){if(!Ie(e))return"";var t=Be(e).map(function(t){var n=e[t];return ye(n)?"":be(n)?ai(t):Me(n)?n.reduce(function(e,n){return be(n)?e.push(ai(t)):ye(n)||e.push(ai(t)+"="+ai(n)),e},[]).join("&"):ai(t)+"="+ai(n)}).filter(function(e){return e.length>0}).join("&");return t?"?".concat(t):""}(n.query),u=an(n.hash);return u=u&&"#"!==u.charAt(0)?"#".concat(u):u,"".concat(a).concat(s).concat(u)||o}return i};function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fi={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},hi={width:null,height:null,focusable:null,role:null,"aria-label":null},mi={animation:or(At),content:or(At),flipH:or(Mt,!1),flipV:or(Mt,!1),fontScale:or(Vt,1),rotate:or(Vt,0),scale:or(Vt,1),shiftH:or(Vt,0),shiftV:or(Vt,0),stacked:or(Mt,!1),title:or(At),variant:or(At)},vi=r.default.extend({name:"BIconBase",functional:!0,props:mi,render:function(e,t){var n,r=t.data,i=t.props,o=t.children,a=i.animation,s=i.content,c=i.flipH,l=i.flipV,d=i.stacked,p=i.title,f=i.variant,h=Gr(Xt(i.fontScale,1),0)||1,m=Gr(Xt(i.scale,1),0)||1,v=Xt(i.rotate,0),g=Xt(i.shiftH,0),y=Xt(i.shiftV,0),b=c||l||1!==m,w=b||v,_=g||y,S=!we(s),x=e("g",{attrs:{transform:[w?"translate(8 8)":null,b?"scale(".concat((c?-1:1)*m," ").concat((l?-1:1)*m,")"):null,v?"rotate(".concat(v,")"):null,w?"translate(-8 -8)":null].filter(Ze).join(" ")||null},domProps:S?{innerHTML:s||""}:{}},o);_&&(x=e("g",{attrs:{transform:"translate(".concat(16*g/16," ").concat(-16*y/16,")")}},[x])),d&&(x=e("g",[x]));var E=[p?e("title",p):null,x].filter(Ze);return e("svg",u({staticClass:"b-icon bi",class:(n={},pi(n,"text-".concat(f),f),pi(n,"b-icon-animation-".concat(a),a),n),attrs:fi,style:d?{}:{fontSize:1===h?null:"".concat(100*h,"%")}},r,d?{attrs:hi}:{},{attrs:{xmlns:d?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),E)}});function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t'),Ei=_i("AlarmFill",''),Ti=_i("AlignBottom",''),Mi=_i("AlignCenter",''),Ci=_i("AlignEnd",''),Ii=_i("AlignMiddle",''),Li=_i("AlignStart",''),ki=_i("AlignTop",''),zi=_i("Alt",''),Ai=_i("App",''),Pi=_i("AppIndicator",''),Oi=_i("Archive",''),Di=_i("ArchiveFill",''),Ni=_i("Arrow90degDown",''),Ri=_i("Arrow90degLeft",''),ji=_i("Arrow90degRight",''),Fi=_i("Arrow90degUp",''),Bi=_i("ArrowBarDown",''),Hi=_i("ArrowBarLeft",''),Vi=_i("ArrowBarRight",''),$i=_i("ArrowBarUp",''),Ui=_i("ArrowClockwise",''),qi=_i("ArrowCounterclockwise",''),Yi=_i("ArrowDown",''),Ki=_i("ArrowDownCircle",''),Gi=_i("ArrowDownCircleFill",''),Ji=_i("ArrowDownLeft",''),Wi=_i("ArrowDownLeftCircle",''),Qi=_i("ArrowDownLeftCircleFill",''),Xi=_i("ArrowDownLeftSquare",''),Zi=_i("ArrowDownLeftSquareFill",''),eo=_i("ArrowDownRight",''),to=_i("ArrowDownRightCircle",''),no=_i("ArrowDownRightCircleFill",''),ro=_i("ArrowDownRightSquare",''),io=_i("ArrowDownRightSquareFill",''),oo=_i("ArrowDownShort",''),ao=_i("ArrowDownSquare",''),so=_i("ArrowDownSquareFill",''),uo=_i("ArrowDownUp",''),co=_i("ArrowLeft",''),lo=_i("ArrowLeftCircle",''),po=_i("ArrowLeftCircleFill",''),fo=_i("ArrowLeftRight",''),ho=_i("ArrowLeftShort",''),mo=_i("ArrowLeftSquare",''),vo=_i("ArrowLeftSquareFill",''),go=_i("ArrowRepeat",''),yo=_i("ArrowReturnLeft",''),bo=_i("ArrowReturnRight",''),wo=_i("ArrowRight",''),_o=_i("ArrowRightCircle",''),So=_i("ArrowRightCircleFill",''),xo=_i("ArrowRightShort",''),Eo=_i("ArrowRightSquare",''),To=_i("ArrowRightSquareFill",''),Mo=_i("ArrowUp",''),Co=_i("ArrowUpCircle",''),Io=_i("ArrowUpCircleFill",''),Lo=_i("ArrowUpLeft",''),ko=_i("ArrowUpLeftCircle",''),zo=_i("ArrowUpLeftCircleFill",''),Ao=_i("ArrowUpLeftSquare",''),Po=_i("ArrowUpLeftSquareFill",''),Oo=_i("ArrowUpRight",''),Do=_i("ArrowUpRightCircle",''),No=_i("ArrowUpRightCircleFill",''),Ro=_i("ArrowUpRightSquare",''),jo=_i("ArrowUpRightSquareFill",''),Fo=_i("ArrowUpShort",''),Bo=_i("ArrowUpSquare",''),Ho=_i("ArrowUpSquareFill",''),Vo=_i("ArrowsAngleContract",''),$o=_i("ArrowsAngleExpand",''),Uo=_i("ArrowsCollapse",''),qo=_i("ArrowsExpand",''),Yo=_i("ArrowsFullscreen",''),Ko=_i("ArrowsMove",''),Go=_i("AspectRatio",''),Jo=_i("AspectRatioFill",''),Wo=_i("Asterisk",''),Qo=_i("At",''),Xo=_i("Award",''),Zo=_i("AwardFill",''),ea=_i("Back",''),ta=_i("Backspace",''),na=_i("BackspaceFill",''),ra=_i("BackspaceReverse",''),ia=_i("BackspaceReverseFill",''),oa=_i("Badge3d",''),aa=_i("Badge3dFill",''),sa=_i("Badge4k",''),ua=_i("Badge4kFill",''),ca=_i("Badge8k",''),la=_i("Badge8kFill",''),da=_i("BadgeAd",''),pa=_i("BadgeAdFill",''),fa=_i("BadgeAr",''),ha=_i("BadgeArFill",''),ma=_i("BadgeCc",''),va=_i("BadgeCcFill",''),ga=_i("BadgeHd",''),ya=_i("BadgeHdFill",''),ba=_i("BadgeTm",''),wa=_i("BadgeTmFill",''),_a=_i("BadgeVo",''),Sa=_i("BadgeVoFill",''),xa=_i("BadgeVr",''),Ea=_i("BadgeVrFill",''),Ta=_i("BadgeWc",''),Ma=_i("BadgeWcFill",''),Ca=_i("Bag",''),Ia=_i("BagCheck",''),La=_i("BagCheckFill",''),ka=_i("BagDash",''),za=_i("BagDashFill",''),Aa=_i("BagFill",''),Pa=_i("BagPlus",''),Oa=_i("BagPlusFill",''),Da=_i("BagX",''),Na=_i("BagXFill",''),Ra=_i("Bank",''),ja=_i("Bank2",''),Fa=_i("BarChart",''),Ba=_i("BarChartFill",''),Ha=_i("BarChartLine",''),Va=_i("BarChartLineFill",''),$a=_i("BarChartSteps",''),Ua=_i("Basket",''),qa=_i("Basket2",''),Ya=_i("Basket2Fill",''),Ka=_i("Basket3",''),Ga=_i("Basket3Fill",''),Ja=_i("BasketFill",''),Wa=_i("Battery",''),Qa=_i("BatteryCharging",''),Xa=_i("BatteryFull",''),Za=_i("BatteryHalf",''),es=_i("Bell",''),ts=_i("BellFill",''),ns=_i("BellSlash",''),rs=_i("BellSlashFill",''),is=_i("Bezier",''),os=_i("Bezier2",''),as=_i("Bicycle",''),ss=_i("Binoculars",''),us=_i("BinocularsFill",''),cs=_i("BlockquoteLeft",''),ls=_i("BlockquoteRight",''),ds=_i("Book",''),ps=_i("BookFill",''),fs=_i("BookHalf",''),hs=_i("Bookmark",''),ms=_i("BookmarkCheck",''),vs=_i("BookmarkCheckFill",''),gs=_i("BookmarkDash",''),ys=_i("BookmarkDashFill",''),bs=_i("BookmarkFill",''),ws=_i("BookmarkHeart",''),_s=_i("BookmarkHeartFill",''),Ss=_i("BookmarkPlus",''),xs=_i("BookmarkPlusFill",''),Es=_i("BookmarkStar",''),Ts=_i("BookmarkStarFill",''),Ms=_i("BookmarkX",''),Cs=_i("BookmarkXFill",''),Is=_i("Bookmarks",''),Ls=_i("BookmarksFill",''),ks=_i("Bookshelf",''),zs=_i("Bootstrap",''),As=_i("BootstrapFill",''),Ps=_i("BootstrapReboot",''),Os=_i("Border",''),Ds=_i("BorderAll",''),Ns=_i("BorderBottom",''),Rs=_i("BorderCenter",''),js=_i("BorderInner",''),Fs=_i("BorderLeft",''),Bs=_i("BorderMiddle",''),Hs=_i("BorderOuter",''),Vs=_i("BorderRight",''),$s=_i("BorderStyle",''),Us=_i("BorderTop",''),qs=_i("BorderWidth",''),Ys=_i("BoundingBox",''),Ks=_i("BoundingBoxCircles",''),Gs=_i("Box",''),Js=_i("BoxArrowDown",''),Ws=_i("BoxArrowDownLeft",''),Qs=_i("BoxArrowDownRight",''),Xs=_i("BoxArrowInDown",''),Zs=_i("BoxArrowInDownLeft",''),eu=_i("BoxArrowInDownRight",''),tu=_i("BoxArrowInLeft",''),nu=_i("BoxArrowInRight",''),ru=_i("BoxArrowInUp",''),iu=_i("BoxArrowInUpLeft",''),ou=_i("BoxArrowInUpRight",''),au=_i("BoxArrowLeft",''),su=_i("BoxArrowRight",''),uu=_i("BoxArrowUp",''),cu=_i("BoxArrowUpLeft",''),lu=_i("BoxArrowUpRight",''),du=_i("BoxSeam",''),pu=_i("Braces",''),fu=_i("Bricks",''),hu=_i("Briefcase",''),mu=_i("BriefcaseFill",''),vu=_i("BrightnessAltHigh",''),gu=_i("BrightnessAltHighFill",''),yu=_i("BrightnessAltLow",''),bu=_i("BrightnessAltLowFill",''),wu=_i("BrightnessHigh",''),_u=_i("BrightnessHighFill",''),Su=_i("BrightnessLow",''),xu=_i("BrightnessLowFill",''),Eu=_i("Broadcast",''),Tu=_i("BroadcastPin",''),Mu=_i("Brush",''),Cu=_i("BrushFill",''),Iu=_i("Bucket",''),Lu=_i("BucketFill",''),ku=_i("Bug",''),zu=_i("BugFill",''),Au=_i("Building",''),Pu=_i("Bullseye",''),Ou=_i("Calculator",''),Du=_i("CalculatorFill",''),Nu=_i("Calendar",''),Ru=_i("Calendar2",''),ju=_i("Calendar2Check",''),Fu=_i("Calendar2CheckFill",''),Bu=_i("Calendar2Date",''),Hu=_i("Calendar2DateFill",''),Vu=_i("Calendar2Day",''),$u=_i("Calendar2DayFill",''),Uu=_i("Calendar2Event",''),qu=_i("Calendar2EventFill",''),Yu=_i("Calendar2Fill",''),Ku=_i("Calendar2Minus",''),Gu=_i("Calendar2MinusFill",''),Ju=_i("Calendar2Month",''),Wu=_i("Calendar2MonthFill",''),Qu=_i("Calendar2Plus",''),Xu=_i("Calendar2PlusFill",''),Zu=_i("Calendar2Range",''),ec=_i("Calendar2RangeFill",''),tc=_i("Calendar2Week",''),nc=_i("Calendar2WeekFill",''),rc=_i("Calendar2X",''),ic=_i("Calendar2XFill",''),oc=_i("Calendar3",''),ac=_i("Calendar3Event",''),sc=_i("Calendar3EventFill",''),uc=_i("Calendar3Fill",''),cc=_i("Calendar3Range",''),lc=_i("Calendar3RangeFill",''),dc=_i("Calendar3Week",''),pc=_i("Calendar3WeekFill",''),fc=_i("Calendar4",''),hc=_i("Calendar4Event",''),mc=_i("Calendar4Range",''),vc=_i("Calendar4Week",''),gc=_i("CalendarCheck",''),yc=_i("CalendarCheckFill",''),bc=_i("CalendarDate",''),wc=_i("CalendarDateFill",''),_c=_i("CalendarDay",''),Sc=_i("CalendarDayFill",''),xc=_i("CalendarEvent",''),Ec=_i("CalendarEventFill",''),Tc=_i("CalendarFill",''),Mc=_i("CalendarMinus",''),Cc=_i("CalendarMinusFill",''),Ic=_i("CalendarMonth",''),Lc=_i("CalendarMonthFill",''),kc=_i("CalendarPlus",''),zc=_i("CalendarPlusFill",''),Ac=_i("CalendarRange",''),Pc=_i("CalendarRangeFill",''),Oc=_i("CalendarWeek",''),Dc=_i("CalendarWeekFill",''),Nc=_i("CalendarX",''),Rc=_i("CalendarXFill",''),jc=_i("Camera",''),Fc=_i("Camera2",''),Bc=_i("CameraFill",''),Hc=_i("CameraReels",''),Vc=_i("CameraReelsFill",''),$c=_i("CameraVideo",''),Uc=_i("CameraVideoFill",''),qc=_i("CameraVideoOff",''),Yc=_i("CameraVideoOffFill",''),Kc=_i("Capslock",''),Gc=_i("CapslockFill",''),Jc=_i("CardChecklist",''),Wc=_i("CardHeading",''),Qc=_i("CardImage",''),Xc=_i("CardList",''),Zc=_i("CardText",''),el=_i("CaretDown",''),tl=_i("CaretDownFill",''),nl=_i("CaretDownSquare",''),rl=_i("CaretDownSquareFill",''),il=_i("CaretLeft",''),ol=_i("CaretLeftFill",''),al=_i("CaretLeftSquare",''),sl=_i("CaretLeftSquareFill",''),ul=_i("CaretRight",''),cl=_i("CaretRightFill",''),ll=_i("CaretRightSquare",''),dl=_i("CaretRightSquareFill",''),pl=_i("CaretUp",''),fl=_i("CaretUpFill",''),hl=_i("CaretUpSquare",''),ml=_i("CaretUpSquareFill",''),vl=_i("Cart",''),gl=_i("Cart2",''),yl=_i("Cart3",''),bl=_i("Cart4",''),wl=_i("CartCheck",''),_l=_i("CartCheckFill",''),Sl=_i("CartDash",''),xl=_i("CartDashFill",''),El=_i("CartFill",''),Tl=_i("CartPlus",''),Ml=_i("CartPlusFill",''),Cl=_i("CartX",''),Il=_i("CartXFill",''),Ll=_i("Cash",''),kl=_i("CashCoin",''),zl=_i("CashStack",''),Al=_i("Cast",''),Pl=_i("Chat",''),Ol=_i("ChatDots",''),Dl=_i("ChatDotsFill",''),Nl=_i("ChatFill",''),Rl=_i("ChatLeft",''),jl=_i("ChatLeftDots",''),Fl=_i("ChatLeftDotsFill",''),Bl=_i("ChatLeftFill",''),Hl=_i("ChatLeftQuote",''),Vl=_i("ChatLeftQuoteFill",''),$l=_i("ChatLeftText",''),Ul=_i("ChatLeftTextFill",''),ql=_i("ChatQuote",''),Yl=_i("ChatQuoteFill",''),Kl=_i("ChatRight",''),Gl=_i("ChatRightDots",''),Jl=_i("ChatRightDotsFill",''),Wl=_i("ChatRightFill",''),Ql=_i("ChatRightQuote",''),Xl=_i("ChatRightQuoteFill",''),Zl=_i("ChatRightText",''),ed=_i("ChatRightTextFill",''),td=_i("ChatSquare",''),nd=_i("ChatSquareDots",''),rd=_i("ChatSquareDotsFill",''),id=_i("ChatSquareFill",''),od=_i("ChatSquareQuote",''),ad=_i("ChatSquareQuoteFill",''),sd=_i("ChatSquareText",''),ud=_i("ChatSquareTextFill",''),cd=_i("ChatText",''),ld=_i("ChatTextFill",''),dd=_i("Check",''),pd=_i("Check2",''),fd=_i("Check2All",''),hd=_i("Check2Circle",''),md=_i("Check2Square",''),vd=_i("CheckAll",''),gd=_i("CheckCircle",''),yd=_i("CheckCircleFill",''),bd=_i("CheckLg",''),wd=_i("CheckSquare",''),_d=_i("CheckSquareFill",''),Sd=_i("ChevronBarContract",''),xd=_i("ChevronBarDown",''),Ed=_i("ChevronBarExpand",''),Td=_i("ChevronBarLeft",''),Md=_i("ChevronBarRight",''),Cd=_i("ChevronBarUp",''),Id=_i("ChevronCompactDown",''),Ld=_i("ChevronCompactLeft",''),kd=_i("ChevronCompactRight",''),zd=_i("ChevronCompactUp",''),Ad=_i("ChevronContract",''),Pd=_i("ChevronDoubleDown",''),Od=_i("ChevronDoubleLeft",''),Dd=_i("ChevronDoubleRight",''),Nd=_i("ChevronDoubleUp",''),Rd=_i("ChevronDown",''),jd=_i("ChevronExpand",''),Fd=_i("ChevronLeft",''),Bd=_i("ChevronRight",''),Hd=_i("ChevronUp",''),Vd=_i("Circle",''),$d=_i("CircleFill",''),Ud=_i("CircleHalf",''),qd=_i("CircleSquare",''),Yd=_i("Clipboard",''),Kd=_i("ClipboardCheck",''),Gd=_i("ClipboardData",''),Jd=_i("ClipboardMinus",''),Wd=_i("ClipboardPlus",''),Qd=_i("ClipboardX",''),Xd=_i("Clock",''),Zd=_i("ClockFill",''),ep=_i("ClockHistory",''),tp=_i("Cloud",''),np=_i("CloudArrowDown",''),rp=_i("CloudArrowDownFill",''),ip=_i("CloudArrowUp",''),op=_i("CloudArrowUpFill",''),ap=_i("CloudCheck",''),sp=_i("CloudCheckFill",''),up=_i("CloudDownload",''),cp=_i("CloudDownloadFill",''),lp=_i("CloudDrizzle",''),dp=_i("CloudDrizzleFill",''),pp=_i("CloudFill",''),fp=_i("CloudFog",''),hp=_i("CloudFog2",''),mp=_i("CloudFog2Fill",''),vp=_i("CloudFogFill",''),gp=_i("CloudHail",''),yp=_i("CloudHailFill",''),bp=_i("CloudHaze",''),wp=_i("CloudHaze1",''),_p=_i("CloudHaze2Fill",''),Sp=_i("CloudHazeFill",''),xp=_i("CloudLightning",''),Ep=_i("CloudLightningFill",''),Tp=_i("CloudLightningRain",''),Mp=_i("CloudLightningRainFill",''),Cp=_i("CloudMinus",''),Ip=_i("CloudMinusFill",''),Lp=_i("CloudMoon",''),kp=_i("CloudMoonFill",''),zp=_i("CloudPlus",''),Ap=_i("CloudPlusFill",''),Pp=_i("CloudRain",''),Op=_i("CloudRainFill",''),Dp=_i("CloudRainHeavy",''),Np=_i("CloudRainHeavyFill",''),Rp=_i("CloudSlash",''),jp=_i("CloudSlashFill",''),Fp=_i("CloudSleet",''),Bp=_i("CloudSleetFill",''),Hp=_i("CloudSnow",''),Vp=_i("CloudSnowFill",''),$p=_i("CloudSun",''),Up=_i("CloudSunFill",''),qp=_i("CloudUpload",''),Yp=_i("CloudUploadFill",''),Kp=_i("Clouds",''),Gp=_i("CloudsFill",''),Jp=_i("Cloudy",''),Wp=_i("CloudyFill",''),Qp=_i("Code",''),Xp=_i("CodeSlash",''),Zp=_i("CodeSquare",''),ef=_i("Coin",''),tf=_i("Collection",''),nf=_i("CollectionFill",''),rf=_i("CollectionPlay",''),of=_i("CollectionPlayFill",''),af=_i("Columns",''),sf=_i("ColumnsGap",''),uf=_i("Command",''),cf=_i("Compass",''),lf=_i("CompassFill",''),df=_i("Cone",''),pf=_i("ConeStriped",''),ff=_i("Controller",''),hf=_i("Cpu",''),mf=_i("CpuFill",''),vf=_i("CreditCard",''),gf=_i("CreditCard2Back",''),yf=_i("CreditCard2BackFill",''),bf=_i("CreditCard2Front",''),wf=_i("CreditCard2FrontFill",''),_f=_i("CreditCardFill",''),Sf=_i("Crop",''),xf=_i("Cup",''),Ef=_i("CupFill",''),Tf=_i("CupStraw",''),Mf=_i("CurrencyBitcoin",''),Cf=_i("CurrencyDollar",''),If=_i("CurrencyEuro",''),Lf=_i("CurrencyExchange",''),kf=_i("CurrencyPound",''),zf=_i("CurrencyYen",''),Af=_i("Cursor",''),Pf=_i("CursorFill",''),Of=_i("CursorText",''),Df=_i("Dash",''),Nf=_i("DashCircle",''),Rf=_i("DashCircleDotted",''),jf=_i("DashCircleFill",''),Ff=_i("DashLg",''),Bf=_i("DashSquare",''),Hf=_i("DashSquareDotted",''),Vf=_i("DashSquareFill",''),$f=_i("Diagram2",''),Uf=_i("Diagram2Fill",''),qf=_i("Diagram3",''),Yf=_i("Diagram3Fill",''),Kf=_i("Diamond",''),Gf=_i("DiamondFill",''),Jf=_i("DiamondHalf",''),Wf=_i("Dice1",''),Qf=_i("Dice1Fill",''),Xf=_i("Dice2",''),Zf=_i("Dice2Fill",''),eh=_i("Dice3",''),th=_i("Dice3Fill",''),nh=_i("Dice4",''),rh=_i("Dice4Fill",''),ih=_i("Dice5",''),oh=_i("Dice5Fill",''),ah=_i("Dice6",''),sh=_i("Dice6Fill",''),uh=_i("Disc",''),ch=_i("DiscFill",''),lh=_i("Discord",''),dh=_i("Display",''),ph=_i("DisplayFill",''),fh=_i("DistributeHorizontal",''),hh=_i("DistributeVertical",''),mh=_i("DoorClosed",''),vh=_i("DoorClosedFill",''),gh=_i("DoorOpen",''),yh=_i("DoorOpenFill",''),bh=_i("Dot",''),wh=_i("Download",''),_h=_i("Droplet",''),Sh=_i("DropletFill",''),xh=_i("DropletHalf",''),Eh=_i("Earbuds",''),Th=_i("Easel",''),Mh=_i("EaselFill",''),Ch=_i("Egg",''),Ih=_i("EggFill",''),Lh=_i("EggFried",''),kh=_i("Eject",''),zh=_i("EjectFill",''),Ah=_i("EmojiAngry",''),Ph=_i("EmojiAngryFill",''),Oh=_i("EmojiDizzy",''),Dh=_i("EmojiDizzyFill",''),Nh=_i("EmojiExpressionless",''),Rh=_i("EmojiExpressionlessFill",''),jh=_i("EmojiFrown",''),Fh=_i("EmojiFrownFill",''),Bh=_i("EmojiHeartEyes",''),Hh=_i("EmojiHeartEyesFill",''),Vh=_i("EmojiLaughing",''),$h=_i("EmojiLaughingFill",''),Uh=_i("EmojiNeutral",''),qh=_i("EmojiNeutralFill",''),Yh=_i("EmojiSmile",''),Kh=_i("EmojiSmileFill",''),Gh=_i("EmojiSmileUpsideDown",''),Jh=_i("EmojiSmileUpsideDownFill",''),Wh=_i("EmojiSunglasses",''),Qh=_i("EmojiSunglassesFill",''),Xh=_i("EmojiWink",''),Zh=_i("EmojiWinkFill",''),em=_i("Envelope",''),tm=_i("EnvelopeFill",''),nm=_i("EnvelopeOpen",''),rm=_i("EnvelopeOpenFill",''),im=_i("Eraser",''),om=_i("EraserFill",''),am=_i("Exclamation",''),sm=_i("ExclamationCircle",''),um=_i("ExclamationCircleFill",''),cm=_i("ExclamationDiamond",''),lm=_i("ExclamationDiamondFill",''),dm=_i("ExclamationLg",''),pm=_i("ExclamationOctagon",''),fm=_i("ExclamationOctagonFill",''),hm=_i("ExclamationSquare",''),mm=_i("ExclamationSquareFill",''),vm=_i("ExclamationTriangle",''),gm=_i("ExclamationTriangleFill",''),ym=_i("Exclude",''),bm=_i("Eye",''),wm=_i("EyeFill",''),_m=_i("EyeSlash",''),Sm=_i("EyeSlashFill",''),xm=_i("Eyedropper",''),Em=_i("Eyeglasses",''),Tm=_i("Facebook",''),Mm=_i("File",''),Cm=_i("FileArrowDown",''),Im=_i("FileArrowDownFill",''),Lm=_i("FileArrowUp",''),km=_i("FileArrowUpFill",''),zm=_i("FileBarGraph",''),Am=_i("FileBarGraphFill",''),Pm=_i("FileBinary",''),Om=_i("FileBinaryFill",''),Dm=_i("FileBreak",''),Nm=_i("FileBreakFill",''),Rm=_i("FileCheck",''),jm=_i("FileCheckFill",''),Fm=_i("FileCode",''),Bm=_i("FileCodeFill",''),Hm=_i("FileDiff",''),Vm=_i("FileDiffFill",''),$m=_i("FileEarmark",''),Um=_i("FileEarmarkArrowDown",''),qm=_i("FileEarmarkArrowDownFill",''),Ym=_i("FileEarmarkArrowUp",''),Km=_i("FileEarmarkArrowUpFill",''),Gm=_i("FileEarmarkBarGraph",''),Jm=_i("FileEarmarkBarGraphFill",''),Wm=_i("FileEarmarkBinary",''),Qm=_i("FileEarmarkBinaryFill",''),Xm=_i("FileEarmarkBreak",''),Zm=_i("FileEarmarkBreakFill",''),ev=_i("FileEarmarkCheck",''),tv=_i("FileEarmarkCheckFill",''),nv=_i("FileEarmarkCode",''),rv=_i("FileEarmarkCodeFill",''),iv=_i("FileEarmarkDiff",''),ov=_i("FileEarmarkDiffFill",''),av=_i("FileEarmarkEasel",''),sv=_i("FileEarmarkEaselFill",''),uv=_i("FileEarmarkExcel",''),cv=_i("FileEarmarkExcelFill",''),lv=_i("FileEarmarkFill",''),dv=_i("FileEarmarkFont",''),pv=_i("FileEarmarkFontFill",''),fv=_i("FileEarmarkImage",''),hv=_i("FileEarmarkImageFill",''),mv=_i("FileEarmarkLock",''),vv=_i("FileEarmarkLock2",''),gv=_i("FileEarmarkLock2Fill",''),yv=_i("FileEarmarkLockFill",''),bv=_i("FileEarmarkMedical",''),wv=_i("FileEarmarkMedicalFill",''),_v=_i("FileEarmarkMinus",''),Sv=_i("FileEarmarkMinusFill",''),xv=_i("FileEarmarkMusic",''),Ev=_i("FileEarmarkMusicFill",''),Tv=_i("FileEarmarkPdf",''),Mv=_i("FileEarmarkPdfFill",''),Cv=_i("FileEarmarkPerson",''),Iv=_i("FileEarmarkPersonFill",''),Lv=_i("FileEarmarkPlay",''),kv=_i("FileEarmarkPlayFill",''),zv=_i("FileEarmarkPlus",''),Av=_i("FileEarmarkPlusFill",''),Pv=_i("FileEarmarkPost",''),Ov=_i("FileEarmarkPostFill",''),Dv=_i("FileEarmarkPpt",''),Nv=_i("FileEarmarkPptFill",''),Rv=_i("FileEarmarkRichtext",''),jv=_i("FileEarmarkRichtextFill",''),Fv=_i("FileEarmarkRuled",''),Bv=_i("FileEarmarkRuledFill",''),Hv=_i("FileEarmarkSlides",''),Vv=_i("FileEarmarkSlidesFill",''),$v=_i("FileEarmarkSpreadsheet",''),Uv=_i("FileEarmarkSpreadsheetFill",''),qv=_i("FileEarmarkText",''),Yv=_i("FileEarmarkTextFill",''),Kv=_i("FileEarmarkWord",''),Gv=_i("FileEarmarkWordFill",''),Jv=_i("FileEarmarkX",''),Wv=_i("FileEarmarkXFill",''),Qv=_i("FileEarmarkZip",''),Xv=_i("FileEarmarkZipFill",''),Zv=_i("FileEasel",''),eg=_i("FileEaselFill",''),tg=_i("FileExcel",''),ng=_i("FileExcelFill",''),rg=_i("FileFill",''),ig=_i("FileFont",''),og=_i("FileFontFill",''),ag=_i("FileImage",''),sg=_i("FileImageFill",''),ug=_i("FileLock",''),cg=_i("FileLock2",''),lg=_i("FileLock2Fill",''),dg=_i("FileLockFill",''),pg=_i("FileMedical",''),fg=_i("FileMedicalFill",''),hg=_i("FileMinus",''),mg=_i("FileMinusFill",''),vg=_i("FileMusic",''),gg=_i("FileMusicFill",''),yg=_i("FilePdf",''),bg=_i("FilePdfFill",''),wg=_i("FilePerson",''),_g=_i("FilePersonFill",''),Sg=_i("FilePlay",''),xg=_i("FilePlayFill",''),Eg=_i("FilePlus",''),Tg=_i("FilePlusFill",''),Mg=_i("FilePost",''),Cg=_i("FilePostFill",''),Ig=_i("FilePpt",''),Lg=_i("FilePptFill",''),kg=_i("FileRichtext",''),zg=_i("FileRichtextFill",''),Ag=_i("FileRuled",''),Pg=_i("FileRuledFill",''),Og=_i("FileSlides",''),Dg=_i("FileSlidesFill",''),Ng=_i("FileSpreadsheet",''),Rg=_i("FileSpreadsheetFill",''),jg=_i("FileText",''),Fg=_i("FileTextFill",''),Bg=_i("FileWord",''),Hg=_i("FileWordFill",''),Vg=_i("FileX",''),$g=_i("FileXFill",''),Ug=_i("FileZip",''),qg=_i("FileZipFill",''),Yg=_i("Files",''),Kg=_i("FilesAlt",''),Gg=_i("Film",''),Jg=_i("Filter",''),Wg=_i("FilterCircle",''),Qg=_i("FilterCircleFill",''),Xg=_i("FilterLeft",''),Zg=_i("FilterRight",''),ey=_i("FilterSquare",''),ty=_i("FilterSquareFill",''),ny=_i("Flag",''),ry=_i("FlagFill",''),iy=_i("Flower1",''),oy=_i("Flower2",''),ay=_i("Flower3",''),sy=_i("Folder",''),uy=_i("Folder2",''),cy=_i("Folder2Open",''),ly=_i("FolderCheck",''),dy=_i("FolderFill",''),py=_i("FolderMinus",''),fy=_i("FolderPlus",''),hy=_i("FolderSymlink",''),my=_i("FolderSymlinkFill",''),vy=_i("FolderX",''),gy=_i("Fonts",''),yy=_i("Forward",''),by=_i("ForwardFill",''),wy=_i("Front",''),_y=_i("Fullscreen",''),Sy=_i("FullscreenExit",''),xy=_i("Funnel",''),Ey=_i("FunnelFill",''),Ty=_i("Gear",''),My=_i("GearFill",''),Cy=_i("GearWide",''),Iy=_i("GearWideConnected",''),Ly=_i("Gem",''),ky=_i("GenderAmbiguous",''),zy=_i("GenderFemale",''),Ay=_i("GenderMale",''),Py=_i("GenderTrans",''),Oy=_i("Geo",''),Dy=_i("GeoAlt",''),Ny=_i("GeoAltFill",''),Ry=_i("GeoFill",''),jy=_i("Gift",''),Fy=_i("GiftFill",''),By=_i("Github",''),Hy=_i("Globe",''),Vy=_i("Globe2",''),$y=_i("Google",''),Uy=_i("GraphDown",''),qy=_i("GraphUp",''),Yy=_i("Grid",''),Ky=_i("Grid1x2",''),Gy=_i("Grid1x2Fill",''),Jy=_i("Grid3x2",''),Wy=_i("Grid3x2Gap",''),Qy=_i("Grid3x2GapFill",''),Xy=_i("Grid3x3",''),Zy=_i("Grid3x3Gap",''),eb=_i("Grid3x3GapFill",''),tb=_i("GridFill",''),nb=_i("GripHorizontal",''),rb=_i("GripVertical",''),ib=_i("Hammer",''),ob=_i("HandIndex",''),ab=_i("HandIndexFill",''),sb=_i("HandIndexThumb",''),ub=_i("HandIndexThumbFill",''),cb=_i("HandThumbsDown",''),lb=_i("HandThumbsDownFill",''),db=_i("HandThumbsUp",''),pb=_i("HandThumbsUpFill",''),fb=_i("Handbag",''),hb=_i("HandbagFill",''),mb=_i("Hash",''),vb=_i("Hdd",''),gb=_i("HddFill",''),yb=_i("HddNetwork",''),bb=_i("HddNetworkFill",''),wb=_i("HddRack",''),_b=_i("HddRackFill",''),Sb=_i("HddStack",''),xb=_i("HddStackFill",''),Eb=_i("Headphones",''),Tb=_i("Headset",''),Mb=_i("HeadsetVr",''),Cb=_i("Heart",''),Ib=_i("HeartFill",''),Lb=_i("HeartHalf",''),kb=_i("Heptagon",''),zb=_i("HeptagonFill",''),Ab=_i("HeptagonHalf",''),Pb=_i("Hexagon",''),Ob=_i("HexagonFill",''),Db=_i("HexagonHalf",''),Nb=_i("Hourglass",''),Rb=_i("HourglassBottom",''),jb=_i("HourglassSplit",''),Fb=_i("HourglassTop",''),Bb=_i("House",''),Hb=_i("HouseDoor",''),Vb=_i("HouseDoorFill",''),$b=_i("HouseFill",''),Ub=_i("Hr",''),qb=_i("Hurricane",''),Yb=_i("Image",''),Kb=_i("ImageAlt",''),Gb=_i("ImageFill",''),Jb=_i("Images",''),Wb=_i("Inbox",''),Qb=_i("InboxFill",''),Xb=_i("Inboxes",''),Zb=_i("InboxesFill",''),ew=_i("Info",''),tw=_i("InfoCircle",''),nw=_i("InfoCircleFill",''),rw=_i("InfoLg",''),iw=_i("InfoSquare",''),ow=_i("InfoSquareFill",''),aw=_i("InputCursor",''),sw=_i("InputCursorText",''),uw=_i("Instagram",''),cw=_i("Intersect",''),lw=_i("Journal",''),dw=_i("JournalAlbum",''),pw=_i("JournalArrowDown",''),fw=_i("JournalArrowUp",''),hw=_i("JournalBookmark",''),mw=_i("JournalBookmarkFill",''),vw=_i("JournalCheck",''),gw=_i("JournalCode",''),yw=_i("JournalMedical",''),bw=_i("JournalMinus",''),ww=_i("JournalPlus",''),_w=_i("JournalRichtext",''),Sw=_i("JournalText",''),xw=_i("JournalX",''),Ew=_i("Journals",''),Tw=_i("Joystick",''),Mw=_i("Justify",''),Cw=_i("JustifyLeft",''),Iw=_i("JustifyRight",''),Lw=_i("Kanban",''),kw=_i("KanbanFill",''),zw=_i("Key",''),Aw=_i("KeyFill",''),Pw=_i("Keyboard",''),Ow=_i("KeyboardFill",''),Dw=_i("Ladder",''),Nw=_i("Lamp",''),Rw=_i("LampFill",''),jw=_i("Laptop",''),Fw=_i("LaptopFill",''),Bw=_i("LayerBackward",''),Hw=_i("LayerForward",''),Vw=_i("Layers",''),$w=_i("LayersFill",''),Uw=_i("LayersHalf",''),qw=_i("LayoutSidebar",''),Yw=_i("LayoutSidebarInset",''),Kw=_i("LayoutSidebarInsetReverse",''),Gw=_i("LayoutSidebarReverse",''),Jw=_i("LayoutSplit",''),Ww=_i("LayoutTextSidebar",''),Qw=_i("LayoutTextSidebarReverse",''),Xw=_i("LayoutTextWindow",''),Zw=_i("LayoutTextWindowReverse",''),e_=_i("LayoutThreeColumns",''),t_=_i("LayoutWtf",''),n_=_i("LifePreserver",''),r_=_i("Lightbulb",''),i_=_i("LightbulbFill",''),o_=_i("LightbulbOff",''),a_=_i("LightbulbOffFill",''),s_=_i("Lightning",''),u_=_i("LightningCharge",''),c_=_i("LightningChargeFill",''),l_=_i("LightningFill",''),d_=_i("Link",''),p_=_i("Link45deg",''),f_=_i("Linkedin",''),h_=_i("List",''),m_=_i("ListCheck",''),v_=_i("ListNested",''),g_=_i("ListOl",''),y_=_i("ListStars",''),b_=_i("ListTask",''),w_=_i("ListUl",''),__=_i("Lock",''),S_=_i("LockFill",''),x_=_i("Mailbox",''),E_=_i("Mailbox2",''),T_=_i("Map",''),M_=_i("MapFill",''),C_=_i("Markdown",''),I_=_i("MarkdownFill",''),L_=_i("Mask",''),k_=_i("Mastodon",''),z_=_i("Megaphone",''),A_=_i("MegaphoneFill",''),P_=_i("MenuApp",''),O_=_i("MenuAppFill",''),D_=_i("MenuButton",''),N_=_i("MenuButtonFill",''),R_=_i("MenuButtonWide",''),j_=_i("MenuButtonWideFill",''),F_=_i("MenuDown",''),B_=_i("MenuUp",''),H_=_i("Messenger",''),V_=_i("Mic",''),$_=_i("MicFill",''),U_=_i("MicMute",''),q_=_i("MicMuteFill",''),Y_=_i("Minecart",''),K_=_i("MinecartLoaded",''),G_=_i("Moisture",''),J_=_i("Moon",''),W_=_i("MoonFill",''),Q_=_i("MoonStars",''),X_=_i("MoonStarsFill",''),Z_=_i("Mouse",''),eS=_i("Mouse2",''),tS=_i("Mouse2Fill",''),nS=_i("Mouse3",''),rS=_i("Mouse3Fill",''),iS=_i("MouseFill",''),oS=_i("MusicNote",''),aS=_i("MusicNoteBeamed",''),sS=_i("MusicNoteList",''),uS=_i("MusicPlayer",''),cS=_i("MusicPlayerFill",''),lS=_i("Newspaper",''),dS=_i("NodeMinus",''),pS=_i("NodeMinusFill",''),fS=_i("NodePlus",''),hS=_i("NodePlusFill",''),mS=_i("Nut",''),vS=_i("NutFill",''),gS=_i("Octagon",''),yS=_i("OctagonFill",''),bS=_i("OctagonHalf",''),wS=_i("Option",''),_S=_i("Outlet",''),SS=_i("PaintBucket",''),xS=_i("Palette",''),ES=_i("Palette2",''),TS=_i("PaletteFill",''),MS=_i("Paperclip",''),CS=_i("Paragraph",''),IS=_i("PatchCheck",''),LS=_i("PatchCheckFill",''),kS=_i("PatchExclamation",''),zS=_i("PatchExclamationFill",''),AS=_i("PatchMinus",''),PS=_i("PatchMinusFill",''),OS=_i("PatchPlus",''),DS=_i("PatchPlusFill",''),NS=_i("PatchQuestion",''),RS=_i("PatchQuestionFill",''),jS=_i("Pause",''),FS=_i("PauseBtn",''),BS=_i("PauseBtnFill",''),HS=_i("PauseCircle",''),VS=_i("PauseCircleFill",''),$S=_i("PauseFill",''),US=_i("Peace",''),qS=_i("PeaceFill",''),YS=_i("Pen",''),KS=_i("PenFill",''),GS=_i("Pencil",''),JS=_i("PencilFill",''),WS=_i("PencilSquare",''),QS=_i("Pentagon",''),XS=_i("PentagonFill",''),ZS=_i("PentagonHalf",''),ex=_i("People",''),tx=_i("PeopleFill",''),nx=_i("Percent",''),rx=_i("Person",''),ix=_i("PersonBadge",''),ox=_i("PersonBadgeFill",''),ax=_i("PersonBoundingBox",''),sx=_i("PersonCheck",''),ux=_i("PersonCheckFill",''),cx=_i("PersonCircle",''),lx=_i("PersonDash",''),dx=_i("PersonDashFill",''),px=_i("PersonFill",''),fx=_i("PersonLinesFill",''),hx=_i("PersonPlus",''),mx=_i("PersonPlusFill",''),vx=_i("PersonSquare",''),gx=_i("PersonX",''),yx=_i("PersonXFill",''),bx=_i("Phone",''),wx=_i("PhoneFill",''),_x=_i("PhoneLandscape",''),Sx=_i("PhoneLandscapeFill",''),xx=_i("PhoneVibrate",''),Ex=_i("PhoneVibrateFill",''),Tx=_i("PieChart",''),Mx=_i("PieChartFill",''),Cx=_i("PiggyBank",''),Ix=_i("PiggyBankFill",''),Lx=_i("Pin",''),kx=_i("PinAngle",''),zx=_i("PinAngleFill",''),Ax=_i("PinFill",''),Px=_i("PinMap",''),Ox=_i("PinMapFill",''),Dx=_i("Pip",''),Nx=_i("PipFill",''),Rx=_i("Play",''),jx=_i("PlayBtn",''),Fx=_i("PlayBtnFill",''),Bx=_i("PlayCircle",''),Hx=_i("PlayCircleFill",''),Vx=_i("PlayFill",''),$x=_i("Plug",''),Ux=_i("PlugFill",''),qx=_i("Plus",''),Yx=_i("PlusCircle",''),Kx=_i("PlusCircleDotted",''),Gx=_i("PlusCircleFill",''),Jx=_i("PlusLg",''),Wx=_i("PlusSquare",''),Qx=_i("PlusSquareDotted",''),Xx=_i("PlusSquareFill",''),Zx=_i("Power",''),eE=_i("Printer",''),tE=_i("PrinterFill",''),nE=_i("Puzzle",''),rE=_i("PuzzleFill",''),iE=_i("Question",''),oE=_i("QuestionCircle",''),aE=_i("QuestionCircleFill",''),sE=_i("QuestionDiamond",''),uE=_i("QuestionDiamondFill",''),cE=_i("QuestionLg",''),lE=_i("QuestionOctagon",''),dE=_i("QuestionOctagonFill",''),pE=_i("QuestionSquare",''),fE=_i("QuestionSquareFill",''),hE=_i("Rainbow",''),mE=_i("Receipt",''),vE=_i("ReceiptCutoff",''),gE=_i("Reception0",''),yE=_i("Reception1",''),bE=_i("Reception2",''),wE=_i("Reception3",''),_E=_i("Reception4",''),SE=_i("Record",''),xE=_i("Record2",''),EE=_i("Record2Fill",''),TE=_i("RecordBtn",''),ME=_i("RecordBtnFill",''),CE=_i("RecordCircle",''),IE=_i("RecordCircleFill",''),LE=_i("RecordFill",''),kE=_i("Recycle",''),zE=_i("Reddit",''),AE=_i("Reply",''),PE=_i("ReplyAll",''),OE=_i("ReplyAllFill",''),DE=_i("ReplyFill",''),NE=_i("Rss",''),RE=_i("RssFill",''),jE=_i("Rulers",''),FE=_i("Safe",''),BE=_i("Safe2",''),HE=_i("Safe2Fill",''),VE=_i("SafeFill",''),$E=_i("Save",''),UE=_i("Save2",''),qE=_i("Save2Fill",''),YE=_i("SaveFill",''),KE=_i("Scissors",''),GE=_i("Screwdriver",''),JE=_i("SdCard",''),WE=_i("SdCardFill",''),QE=_i("Search",''),XE=_i("SegmentedNav",''),ZE=_i("Server",''),eT=_i("Share",''),tT=_i("ShareFill",''),nT=_i("Shield",''),rT=_i("ShieldCheck",''),iT=_i("ShieldExclamation",''),oT=_i("ShieldFill",''),aT=_i("ShieldFillCheck",''),sT=_i("ShieldFillExclamation",''),uT=_i("ShieldFillMinus",''),cT=_i("ShieldFillPlus",''),lT=_i("ShieldFillX",''),dT=_i("ShieldLock",''),pT=_i("ShieldLockFill",''),fT=_i("ShieldMinus",''),hT=_i("ShieldPlus",''),mT=_i("ShieldShaded",''),vT=_i("ShieldSlash",''),gT=_i("ShieldSlashFill",''),yT=_i("ShieldX",''),bT=_i("Shift",''),wT=_i("ShiftFill",''),_T=_i("Shop",''),ST=_i("ShopWindow",''),xT=_i("Shuffle",''),ET=_i("Signpost",''),TT=_i("Signpost2",''),MT=_i("Signpost2Fill",''),CT=_i("SignpostFill",''),IT=_i("SignpostSplit",''),LT=_i("SignpostSplitFill",''),kT=_i("Sim",''),zT=_i("SimFill",''),AT=_i("SkipBackward",''),PT=_i("SkipBackwardBtn",''),OT=_i("SkipBackwardBtnFill",''),DT=_i("SkipBackwardCircle",''),NT=_i("SkipBackwardCircleFill",''),RT=_i("SkipBackwardFill",''),jT=_i("SkipEnd",''),FT=_i("SkipEndBtn",''),BT=_i("SkipEndBtnFill",''),HT=_i("SkipEndCircle",''),VT=_i("SkipEndCircleFill",''),$T=_i("SkipEndFill",''),UT=_i("SkipForward",''),qT=_i("SkipForwardBtn",''),YT=_i("SkipForwardBtnFill",''),KT=_i("SkipForwardCircle",''),GT=_i("SkipForwardCircleFill",''),JT=_i("SkipForwardFill",''),WT=_i("SkipStart",''),QT=_i("SkipStartBtn",''),XT=_i("SkipStartBtnFill",''),ZT=_i("SkipStartCircle",''),eM=_i("SkipStartCircleFill",''),tM=_i("SkipStartFill",''),nM=_i("Skype",''),rM=_i("Slack",''),iM=_i("Slash",''),oM=_i("SlashCircle",''),aM=_i("SlashCircleFill",''),sM=_i("SlashLg",''),uM=_i("SlashSquare",''),cM=_i("SlashSquareFill",''),lM=_i("Sliders",''),dM=_i("Smartwatch",''),pM=_i("Snow",''),fM=_i("Snow2",''),hM=_i("Snow3",''),mM=_i("SortAlphaDown",''),vM=_i("SortAlphaDownAlt",''),gM=_i("SortAlphaUp",''),yM=_i("SortAlphaUpAlt",''),bM=_i("SortDown",''),wM=_i("SortDownAlt",''),_M=_i("SortNumericDown",''),SM=_i("SortNumericDownAlt",''),xM=_i("SortNumericUp",''),EM=_i("SortNumericUpAlt",''),TM=_i("SortUp",''),MM=_i("SortUpAlt",''),CM=_i("Soundwave",''),IM=_i("Speaker",''),LM=_i("SpeakerFill",''),kM=_i("Speedometer",''),zM=_i("Speedometer2",''),AM=_i("Spellcheck",''),PM=_i("Square",''),OM=_i("SquareFill",''),DM=_i("SquareHalf",''),NM=_i("Stack",''),RM=_i("Star",''),jM=_i("StarFill",''),FM=_i("StarHalf",''),BM=_i("Stars",''),HM=_i("Stickies",''),VM=_i("StickiesFill",''),$M=_i("Sticky",''),UM=_i("StickyFill",''),qM=_i("Stop",''),YM=_i("StopBtn",''),KM=_i("StopBtnFill",''),GM=_i("StopCircle",''),JM=_i("StopCircleFill",''),WM=_i("StopFill",''),QM=_i("Stoplights",''),XM=_i("StoplightsFill",''),ZM=_i("Stopwatch",''),eC=_i("StopwatchFill",''),tC=_i("Subtract",''),nC=_i("SuitClub",''),rC=_i("SuitClubFill",''),iC=_i("SuitDiamond",''),oC=_i("SuitDiamondFill",''),aC=_i("SuitHeart",''),sC=_i("SuitHeartFill",''),uC=_i("SuitSpade",''),cC=_i("SuitSpadeFill",''),lC=_i("Sun",''),dC=_i("SunFill",''),pC=_i("Sunglasses",''),fC=_i("Sunrise",''),hC=_i("SunriseFill",''),mC=_i("Sunset",''),vC=_i("SunsetFill",''),gC=_i("SymmetryHorizontal",''),yC=_i("SymmetryVertical",''),bC=_i("Table",''),wC=_i("Tablet",''),_C=_i("TabletFill",''),SC=_i("TabletLandscape",''),xC=_i("TabletLandscapeFill",''),EC=_i("Tag",''),TC=_i("TagFill",''),MC=_i("Tags",''),CC=_i("TagsFill",''),IC=_i("Telegram",''),LC=_i("Telephone",''),kC=_i("TelephoneFill",''),zC=_i("TelephoneForward",''),AC=_i("TelephoneForwardFill",''),PC=_i("TelephoneInbound",''),OC=_i("TelephoneInboundFill",''),DC=_i("TelephoneMinus",''),NC=_i("TelephoneMinusFill",''),RC=_i("TelephoneOutbound",''),jC=_i("TelephoneOutboundFill",''),FC=_i("TelephonePlus",''),BC=_i("TelephonePlusFill",''),HC=_i("TelephoneX",''),VC=_i("TelephoneXFill",''),$C=_i("Terminal",''),UC=_i("TerminalFill",''),qC=_i("TextCenter",''),YC=_i("TextIndentLeft",''),KC=_i("TextIndentRight",''),GC=_i("TextLeft",''),JC=_i("TextParagraph",''),WC=_i("TextRight",''),QC=_i("Textarea",''),XC=_i("TextareaResize",''),ZC=_i("TextareaT",''),eI=_i("Thermometer",''),tI=_i("ThermometerHalf",''),nI=_i("ThermometerHigh",''),rI=_i("ThermometerLow",''),iI=_i("ThermometerSnow",''),oI=_i("ThermometerSun",''),aI=_i("ThreeDots",''),sI=_i("ThreeDotsVertical",''),uI=_i("Toggle2Off",''),cI=_i("Toggle2On",''),lI=_i("ToggleOff",''),dI=_i("ToggleOn",''),pI=_i("Toggles",''),fI=_i("Toggles2",''),hI=_i("Tools",''),mI=_i("Tornado",''),vI=_i("Translate",''),gI=_i("Trash",''),yI=_i("Trash2",''),bI=_i("Trash2Fill",''),wI=_i("TrashFill",''),_I=_i("Tree",''),SI=_i("TreeFill",''),xI=_i("Triangle",''),EI=_i("TriangleFill",''),TI=_i("TriangleHalf",''),MI=_i("Trophy",''),CI=_i("TrophyFill",''),II=_i("TropicalStorm",''),LI=_i("Truck",''),kI=_i("TruckFlatbed",''),zI=_i("Tsunami",''),AI=_i("Tv",''),PI=_i("TvFill",''),OI=_i("Twitch",''),DI=_i("Twitter",''),NI=_i("Type",''),RI=_i("TypeBold",''),jI=_i("TypeH1",''),FI=_i("TypeH2",''),BI=_i("TypeH3",''),HI=_i("TypeItalic",''),VI=_i("TypeStrikethrough",''),$I=_i("TypeUnderline",''),UI=_i("UiChecks",''),qI=_i("UiChecksGrid",''),YI=_i("UiRadios",''),KI=_i("UiRadiosGrid",''),GI=_i("Umbrella",''),JI=_i("UmbrellaFill",''),WI=_i("Union",''),QI=_i("Unlock",''),XI=_i("UnlockFill",''),ZI=_i("Upc",''),eL=_i("UpcScan",''),tL=_i("Upload",''),nL=_i("VectorPen",''),rL=_i("ViewList",''),iL=_i("ViewStacked",''),oL=_i("Vinyl",''),aL=_i("VinylFill",''),sL=_i("Voicemail",''),uL=_i("VolumeDown",''),cL=_i("VolumeDownFill",''),lL=_i("VolumeMute",''),dL=_i("VolumeMuteFill",''),pL=_i("VolumeOff",''),fL=_i("VolumeOffFill",''),hL=_i("VolumeUp",''),mL=_i("VolumeUpFill",''),vL=_i("Vr",''),gL=_i("Wallet",''),yL=_i("Wallet2",''),bL=_i("WalletFill",''),wL=_i("Watch",''),_L=_i("Water",''),SL=_i("Whatsapp",''),xL=_i("Wifi",''),EL=_i("Wifi1",''),TL=_i("Wifi2",''),ML=_i("WifiOff",''),CL=_i("Wind",''),IL=_i("Window",''),LL=_i("WindowDock",''),kL=_i("WindowSidebar",''),zL=_i("Wrench",''),AL=_i("X",''),PL=_i("XCircle",''),OL=_i("XCircleFill",''),DL=_i("XDiamond",''),NL=_i("XDiamondFill",''),RL=_i("XLg",''),jL=_i("XOctagon",''),FL=_i("XOctagonFill",''),BL=_i("XSquare",''),HL=_i("XSquareFill",''),VL=_i("Youtube",''),$L=_i("ZoomIn",''),UL=_i("ZoomOut",'');function qL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YL(e){for(var t=1;t1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=e.rel;return"_blank"===t&&be(n)?"noopener":n||null}({target:this.target,rel:this.rel})},computedHref:function(){var e=this.to,t=this.href;return di({to:e,href:t},this.computedTag)},computedProps:function(){var e=this.event,t=this.prefetch,n=this.routerTag;return this.isRouterLink?vk(vk(vk(vk({},sr(Ue(vk(vk({},bk),wk),["event","prefetch","routerTag"]),this)),e?{event:e}:{}),Se(t)?{prefetch:t}:{}),n?{tag:n}:{}):{}},computedAttrs:function(){var e=this.bvAttrs,t=this.computedHref,n=this.computedRel,r=this.disabled,i=this.target,o=this.routerTag,a=this.isRouterLink;return vk(vk(vk(vk({},e),t?{href:t}:{}),a&&o&&!gn(o,"a")?{}:{rel:n,target:i}),{},{tabindex:r?"-1":ye(e.tabindex)?null:e.tabindex,"aria-disabled":r?"true":null})},computedListeners:function(){return vk(vk({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(e){var t=arguments,n=ke(e),r=this.isRouterLink,i=this.bvListeners.click;n&&this.disabled?wr(e,{immediatePropagation:!0}):(r&&e.currentTarget.__vue__&&e.currentTarget.__vue__.$emit("click",e),Gt(i).filter(function(e){return _e(e)}).forEach(function(e){e.apply(void 0,fk(t))}),this.emitOnRoot(yk,e),this.emitOnRoot("clicked::link",e)),n&&!r&&"#"===this.computedHref&&wr(e,{propagation:!1})},focus:function(){$n(this.$el)},blur:function(){Un(this.$el)}},render:function(e){var t=this.active,n=this.disabled;return e(this.computedTag,gk({class:{active:t,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ek(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(z,"")},Zk=function(e,t){return e?{innerHTML:e}:t?{textContent:t}:{}};function ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tz(e){for(var t=1;t-1&&(t=t.slice(0,n).reverse(),$n(t[0]))},focusNext:function(e){var t=this.getItems(),n=t.indexOf(e.target);n>-1&&(t=t.slice(n+1),$n(t[0]))},focusLast:function(){var e=this.getItems().reverse();$n(e[0])},onFocusin:function(e){var t=this.$el;e.target!==t||Mn(t,e.relatedTarget)||(wr(e),this.focusFirst(e))},onKeydown:function(e){var t=e.keyCode,n=e.shiftKey;t===ik||t===tk?(wr(e),n?this.focusFirst(e):this.focusPrev(e)):t!==QL&&t!==nk||(wr(e),n?this.focusLast(e):this.focusNext(e))}},render:function(e){var t=this.keyNav;return e("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:t?"0":null},on:t?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),xz=mt({components:{BButtonToolbar:Sz,BBtnToolbar:Sz}});function Ez(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tz(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=kz(e),t=kz(t)||e,n=kz(n)||e,e?en?n:e:null},Uz=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map(function(e){return e.toLowerCase()}),qz=function(e){var t=an(e).toLowerCase().replace(te,"").split("-"),n=t.slice(0,2).join("-"),r=t[0];return Kt(Uz,n)||Kt(Uz,r)},Yz={id:or(At)},Kz=r.default.extend({props:Yz,data:function(){return{localId_:null}},computed:{safeId:function(){var e=this.id||this.localId_;return function(t){return e?(t=String(t||"").replace(/\s+/g,"_"))?e+"_"+t:e:null}}},mounted:function(){var e=this;this.$nextTick(function(){e.localId_="__BVID__".concat(e._uid)})}});function Gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jz(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"gregory";return e=Gt(e).filter(Ze),new Intl.DateTimeFormat(e,{calendar:t}).resolvedOptions().locale}(Gt(this.locale).filter(Ze),"gregory")},computedDateDisabledFn:function(){var e=this.dateDisabledFn;return dr(e)?e:function(){return!1}},computedDateInfoFn:function(){var e=this.dateInfoFn;return dr(e)?e:function(){return{}}},calendarLocale:function(){var e=new Intl.DateTimeFormat(this.computedLocale,{calendar:"gregory"}),t=e.resolvedOptions().calendar,n=e.resolvedOptions().locale;return"gregory"!==t&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return Lz(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var e=Lz(this.calendarFirstDay);return e.setMonth(e.getMonth()+1,0),e.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},computedNavButtonVariant:function(){return"btn-outline-".concat(this.navButtonVariant||"primary")},isRTL:function(){var e=an(this.direction).toLowerCase();return"rtl"===e||"ltr"!==e&&qz(this.computedLocale)},context:function(){var e=this.selectedYMD,t=this.activeYMD,n=kz(e),r=kz(t);return{selectedYMD:e,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:t,activeDate:r,activeFormatted:r?this.formatDateString(r):"",disabled:this.dateDisabled(r),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var e=this.computedMin,t=this.computedMax;return function(n){return n=kz(n),e&&nt}},dateDisabled:function(){var e=this,t=this.dateOutOfRange;return function(n){n=kz(n);var r=zz(n);return!(!t(n)&&!e.computedDateDisabledFn(r,n))}},formatDateString:function(){return Az(this.calendarLocale,Jz(Jz({year:"numeric",month:"2-digit",day:"2-digit"},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:"gregory"}))},formatYearMonth:function(){return Az(this.calendarLocale,{year:"numeric",month:"long",calendar:"gregory"})},formatWeekdayName:function(){return Az(this.calendarLocale,{weekday:"long",calendar:"gregory"})},formatWeekdayNameShort:function(){return Az(this.calendarLocale,{weekday:this.weekdayHeaderFormat||"short",calendar:"gregory"})},formatDay:function(){var e=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(t){return e.format(t.getDate())}},prevDecadeDisabled:function(){var e=this.computedMin;return this.disabled||e&&Dz(Hz(this.activeDate))e},nextYearDisabled:function(){var e=this.computedMax;return this.disabled||e&&Oz(Bz(this.activeDate))>e},nextDecadeDisabled:function(){var e=this.computedMax;return this.disabled||e&&Oz(Vz(this.activeDate))>e},calendar:function(){for(var e=[],t=this.calendarFirstDay,n=t.getFullYear(),r=t.getMonth(),i=this.calendarDaysInMonth,o=t.getDay(),a=0-((this.computedWeekStarts>o?7:0)-this.computedWeekStarts)-o,s=0;s<6&&a0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}])&&BA(t.prototype,n),r&&BA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),UA=function(e){var t=e[VA];t&&t.stop&&t.stop(),delete e[VA]},qA=function(e,t,n){var r=t.value,i=t.modifiers,o={margin:"0px",once:!1,callback:r};Be(i).forEach(function(e){C.test(e)?o.margin="".concat(e,"px"):"once"===e.toLowerCase()&&(o.once=!0)}),UA(e),e[VA]=new $A(e,o,n),e[VA]._prevModifiers=Ve(i)},YA={bind:qA,componentUpdated:function(e,t,n){var r=t.value,i=t.oldValue,o=t.modifiers;o=Ve(o),!e||r===i&&e[VA]&&ok(o,e[VA]._prevModifiers)||qA(e,{value:r,modifiers:o},n)},unbind:function(e){UA(e)}};function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GA(e){for(var t=1;t0||i.removedNodes.length>0)&&(n=!0)}n&&t()});return r.observe(e,function(e){for(var t=1;t0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(pP={},vP(pP,wP,function(e,t){e!==t&&this.setSlide(Qt(e,0))}),vP(pP,"interval",function(e,t){e!==t&&(e?(this.pause(!0),this.start(!1)):this.pause(!1))}),vP(pP,"isPaused",function(e,t){e!==t&&this.$emit(e?"paused":"unpaused")}),vP(pP,"index",function(e,t){e===t||this.isSliding||this.doSlide(e,t)}),pP),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!(Qt(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=function(e){for(var t in EP)if(!ye(e.style[t]))return EP[t];return null}(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){clearInterval(this.$_interval),this.$_interval=null}),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=fP(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(h&&document.visibilityState&&document.hidden)){var r=this.noWrap,i=this.numSlides;e=Qr(e),0!==i&&(this.isSliding?this.$once("sliding-end",function(){fn(function(){return t.setSlide(e,n)})}):(this.direction=n,this.index=e>=i?r?i-1:0:e<0?r?0:i-1:e,r&&this.index!==e&&this.index!==this[wP]&&this.$emit(_P,this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(e){e||(this.isPaused=!0),this.clearInterval()},start:function(e){e||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,Gr(1e3,this.interval)))},restart:function(){this.$el.contains(vn())||this.start()},doSlide:function(e,t){var n=this,r=Boolean(this.interval),i=this.calcDirection(this.direction,t,e),o=i.overlayClass,a=i.dirClass,s=this.slides[t],u=this.slides[e];if(s&&u){if(this.isSliding=!0,r&&this.pause(!1),this.$emit("sliding-start",e),this.$emit(_P,this.index),this.noAnimation)In(u,"active"),Ln(s,"active"),this.isSliding=!1,this.$nextTick(function(){return n.$emit("sliding-end",e)});else{In(u,o),_n(u),In(s,a),In(u,a);var c=!1,l=function t(){if(!c){if(c=!0,n.transitionEndEvent)n.transitionEndEvent.split(/\s+/).forEach(function(e){return yr(u,e,t,Et)});n.clearAnimationTimeout(),Ln(u,a),Ln(u,o),In(u,"active"),Ln(s,"active"),Ln(s,a),Ln(s,o),zn(s,"aria-current","false"),zn(u,"aria-current","true"),zn(s,"aria-hidden","true"),zn(u,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick(function(){return n.$emit("sliding-end",e)})}};if(this.transitionEndEvent)this.transitionEndEvent.split(/\s+/).forEach(function(e){return gr(u,e,l,Et)});this.$_animationTimeout=setTimeout(l,650)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=Sn(".carousel-item",this.$refs.inner);var e=this.slides.length,t=Gr(0,Kr(Qr(this.index),e-1));this.slides.forEach(function(n,r){var i=r+1;r===t?(In(n,"active"),zn(n,"aria-current","true")):(Ln(n,"active"),zn(n,"aria-current","false")),zn(n,"aria-posinset",String(i)),zn(n,"aria-setsize",String(e))}),this.setSlide(t),this.start(this.isPaused)},calcDirection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e?SP[e]:n>t?SP.next:SP.prev},handleClick:function(e,t){var n=e.keyCode;"click"!==e.type&&n!==rk&&n!==ZL||(wr(e),t())},handleSwipe:function(){var e=Jr(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0?this.prev():t<0&&this.next()}},touchStart:function(e){S&&xP[e.pointerType.toUpperCase()]?this.touchStartX=e.clientX:S||(this.touchStartX=e.touches[0].clientX)},touchMove:function(e){e.touches&&e.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=e.touches[0].clientX-this.touchStartX},touchEnd:function(e){S&&xP[e.pointerType.toUpperCase()]&&(this.touchDeltaX=e.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,500+Gr(1e3,this.interval))}},render:function(e){var t=this,n=this.indicators,r=this.background,i=this.noAnimation,o=this.noHoverPause,a=this.noTouch,s=this.index,u=this.isSliding,c=this.pause,l=this.restart,d=this.touchStart,p=this.touchEnd,f=this.safeId("__BV_inner_"),h=e("div",{staticClass:"carousel-inner",attrs:{id:f,role:"list"},ref:"inner"},[this.normalizeSlot()]),m=e();if(this.controls){var v=function(n,r,i){var o=function(e){u?wr(e,{propagation:!1}):t.handleClick(e,i)};return e("a",{staticClass:"carousel-control-".concat(n),attrs:{href:"#",role:"button","aria-controls":f,"aria-disabled":u?"true":null},on:{click:o,keydown:o}},[e("span",{staticClass:"carousel-control-".concat(n,"-icon"),attrs:{"aria-hidden":"true"}}),e("span",{class:"sr-only"},[r])])};m=[v("prev",this.labelPrev,this.prev),v("next",this.labelNext,this.next)]}var g=e("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:n}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":n?"false":"true","aria-label":this.labelIndicators,"aria-owns":f}},this.slides.map(function(r,i){var o=function(e){t.handleClick(e,function(){t.setSlide(i)})};return e("li",{class:{active:i===s},attrs:{role:"button",id:t.safeId("__BV_indicator_".concat(i+1,"_")),tabindex:n?"0":"-1","aria-current":i===s?"true":"false","aria-label":"".concat(t.labelGotoSlide," ").concat(i+1),"aria-describedby":r.id||null,"aria-controls":f},on:{click:o,keydown:o},key:"slide_".concat(i)})})),y={mouseenter:o?cP:c,mouseleave:o?cP:l,focusin:c,focusout:l,keydown:function(e){if(!/input|textarea/i.test(e.target.tagName)){var n=e.keyCode;n!==tk&&n!==nk||(wr(e),t[n===tk?"prev":"next"]())}}};return _&&!a&&(S?(y["&pointerdown"]=d,y["&pointerup"]=p):(y["&touchstart"]=d,y["&touchmove"]=this.touchMove,y["&touchend"]=p)),e("div",{staticClass:"carousel",class:{slide:!i,"carousel-fade":!i&&this.fade,"pointer-event":_&&S&&!a},style:{background:r},attrs:{role:"region",id:this.safeId(),"aria-busy":u?"true":"false"},on:y},[h,m,g])}});function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IP(e){for(var t=1;t0?(zn(e,"aria-controls",r.join(" ")),Dn(e,"overflow-anchor","none")):(An(e,"aria-controls"),Nn(e,"overflow-anchor")),fn(function(){!function(e,t){if(dO(e),t.context){var n=function(n){"keydown"===n.type&&!Kt(cO,n.keyCode)||wn(e)||(e[iO]||[]).forEach(function(e){t.context.$root.$emit(oO,e)})};e[nO]=n,gr(e,"click",n,xt),lO(e)&&gr(e,"keydown",n,xt)}}(e,n)}),ok(r,e[iO])||(e[iO]=r,r.forEach(function(e){n.context.$root.$emit(uO,e)}))}},vO={bind:function(e,t,n){e[rO]=!1,e[iO]=[],function(e,t){if(pO(e,t),t.context){var n=function(t,n){Kt(e[iO]||[],t)&&(e[rO]=n,fO(e,n))};e[tO]=n,t.context.$root.$on([aO,sO],n)}}(e,n),mO(e,t,n)},componentUpdated:mO,updated:mO,unbind:function(e,t,n){dO(e),pO(e,n),hO(e,tO),hO(e,nO),hO(e,rO),hO(e,iO),Ln(e,"collapsed"),Ln(e,"not-collapsed"),An(e,"aria-expanded"),An(e,"aria-controls"),An(e,"role"),Nn(e,"overflow-anchor")}},gO=mt({directives:{VBToggle:vO}}),yO=mt({components:{BCollapse:ZP},plugins:{VBTogglePlugin:gO}}),bO=n("Zgw8");function wO(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));De(this,e.Defaults,this.constructor.Defaults,n,{type:t}),Re(this,{type:Ye(),cancelable:Ye(),nativeEvent:Ye(),target:Ye(),relatedTarget:Ye(),vueTarget:Ye(),componentId:Ye()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},je(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}var t,n,r;return t=e,r=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&wO(t.prototype,n),r&&wO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),SO=r.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(e,t){e!==t&&(yr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Et),e&&gr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Et))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&gr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Et)},beforeDestroy:function(){yr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Et)},methods:{isClickOut:function(e){return!Mn(this.$el,e.target)},_clickOutHandler:function(e){this.clickOutHandler&&this.isClickOut(e)&&this.clickOutHandler(e)}}}),xO=r.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(e,t){e!==t&&(yr(this.focusInElement,"focusin",this._focusInHandler,Et),e&&gr(this.focusInElement,"focusin",this._focusInHandler,Et))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&gr(this.focusInElement,"focusin",this._focusInHandler,Et)},beforeDestroy:function(){yr(this.focusInElement,"focusin",this._focusInHandler,Et)},methods:{_focusInHandler:function(e){this.focusInHandler&&this.focusInHandler(e)}}});function EO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TO(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,e&&this.$once("hidden",this.focusToggler))},toggle:function(e){var t=e=e||{},n=t.type,r=t.keyCode;("click"===n||"keydown"===n&&-1!==[ZL,rk,QL].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",e),wr(e),this.visible?this.hide(!0):this.show()))},onMousedown:function(e){wr(e,{propagation:!1})},onKeydown:function(e){var t=e.keyCode;27===t?this.onEsc(e):t===QL?this.focusNext(e,!1):t===ik&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,wr(e),this.$once("hidden",this.focusToggler))},onSplitClick:function(e){this.disabled?this.visible=!1:this.$emit("click",e)},hideHandler:function(e){var t=this,n=e.target;!this.visible||Mn(this.$refs.menu,n)||Mn(this.toggler,n)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout(function(){return t.hide()},this.hideDelay))},clickOutHandler:function(e){this.hideHandler(e)},focusInHandler:function(e){this.hideHandler(e)},focusNext:function(e,t){var n=this,r=e.target;!this.visible||e&&Tn(".dropdown form",r)||(wr(e),this.$nextTick(function(){var e=n.getItems();if(!(e.length<1)){var i=e.indexOf(r);t&&i>0?i--:!t&&i1&&void 0!==arguments[1]?arguments[1]:null;if(Ie(e)){var n=tt(e,this.valueField),r=tt(e,this.textField);return{value:ye(n)?t||r:n,text:Xk(String(ye(r)?t:r)),html:tt(e,this.htmlField),disabled:Boolean(tt(e,this.disabledField))}}return{value:t||e,text:Xk(String(e)),disabled:!1}},normalizeOptions:function(e){var t=this;return Me(e)?e.map(function(e){return t.normalizeOption(e)}):Ie(e)?(rt('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),Be(e).map(function(n){return t.normalizeOption(e[n]||{},n)})):[]}}});function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t-1:ok(t,e)},isRadio:function(){return!1}},watch:cN({},"indeterminate",function(e,t){ok(e,t)||this.setIndeterminate(e)}),mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{computedLocalCheckedWatcher:function(e,t){if(!ok(e,t)){this.$emit(iN,e);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},handleChange:function(e){var t=this,n=e.target,r=n.checked,i=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if(Me(s)){var u=HD(s,o);r&&u<0?s=s.concat(o):!r&&u>-1&&(s=s.slice(0,u).concat(s.slice(u+1)))}else s=r?o:a;this.computedLocalChecked=s,this.$nextTick(function(){t.$emit("change",s),t.isGroup&&t.bvGroup.$emit("change",s),t.$emit("update:indeterminate",i)})},setIndeterminate:function(e){Me(this.computedLocalChecked)&&(e=!1);var t=this.$refs.input;t&&(t.indeterminate=e,this.$emit("update:indeterminate",e))}}}),fN=cr(oN,"BFormRadio"),hN=r.default.extend({name:"BFormRadio",mixins:[aN],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:fN,watch:{computedLocalChecked:function(e,t){ok(e,t)||this.$emit(iN,e)}}});function mN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vN(e){for(var t=1;t0&&(u=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":u.length>1,"justify-content-end":u.length<2}},u)]);var p=e(rA,{staticClass:"b-form-date-calendar w-100",props:UN(UN({},sr(XN,o)),{},{hidden:!this.isVisible,value:t,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:$e(a,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},u);return e(VN,{staticClass:"b-form-datepicker",props:UN(UN({},sr(ZN,o)),{},{formattedValue:t?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:s,rtl:this.isRTL,value:t}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:qN({},"button-content",a["button-content"]||this.defaultButtonFn),ref:"control"},[p])}}),nR=mt({components:{BFormDatepicker:tR,BDatepicker:tR}});function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iR(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(function(r){var i=[];!function o(){t.readEntries(function(t){0===t.length?r(Promise.all(i).then(function(e){return e.reduce(function(e,t){return Gt(e,t)},[])})):(i.push(Promise.all(t.map(function(t){if(t){if(t.isDirectory)return e(t.createReader(),"".concat(n).concat(t.name,"/"));if(t.isFile)return new Promise(function(e){t.file(function(t){t.$path="".concat(n).concat(t.name),e(t)})})}return null}).filter(Ze))),o())})}()})},mR=cr(qe(iR(iR(iR(iR(iR(iR(iR({},Yz),uR),VD),UD),GD),YD),{},{accept:or(At,""),browseText:or(At,"Browse"),capture:or(Mt,!1),directory:or(Mt,!1),dropPlaceholder:or(At,"Drop files here"),fileNameFormatter:or(It),multiple:or(Mt,!1),noDrop:or(Mt,!1),noDropPlaceholder:or(At,"Not allowed"),noTraverse:or(Mt,!1),placeholder:or(At,"No file chosen")})),"BFormFile"),vR=r.default.extend({name:"BFormFile",mixins:[ck,Kz,sR,mr,$D,JD,qD,mr],inheritAttrs:!1,props:mR,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var e=this.accept;return 0===(e=(e||"").trim().split(/[,\s]+/).filter(Ze)).length?null:e.map(function(e){var t="name",n="^",r="$";return I.test(e)?n="":(t="type",F.test(e)&&(r=".+$",e=e.slice(0,-1))),e=on(e),{rx:new RegExp("".concat(n).concat(e).concat(r)),prop:t}})},computedCapture:function(){var e=this.capture;return!0===e||""===e||(e||null)},computedAttrs:function(){var e=this.name,t=this.disabled,n=this.required,r=this.form,i=this.computedCapture,o=this.accept,a=this.multiple,s=this.directory;return iR(iR({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:e,disabled:t,required:n,form:r||null,capture:i,accept:o||null,multiple:a,directory:s,webkitdirectory:s,"aria-required":n?"true":null})},computedFileNameFormatter:function(){var e=this.fileNameFormatter;return dr(e)?e:this.defaultFileNameFormatter},clonedFiles:function(){return Xe(this.files)},flattenedFiles:function(){return Wt(this.files)},fileNames:function(){return this.flattenedFiles.map(function(e){return e.name})},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot("drop-placeholder",{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(0===this.files.length)return this.normalizeSlot("placeholder")||this.placeholder;var e=this.flattenedFiles,t=this.clonedFiles,n=this.fileNames,r=this.computedFileNameFormatter;return this.hasNormalizedSlot("file-name")?this.normalizeSlot("file-name",{files:e,filesTraversed:t,names:n}):r(e,t,n)}},watch:(YN={},oR(YN,cR,function(e){(!e||Me(e)&&0===e.length)&&this.reset()}),oR(YN,"files",function(e,t){if(!ok(e,t)){var n=this.multiple,r=this.noTraverse,i=!n||r?Wt(e):e;this.$emit(lR,n?i:i[0]||null)}}),YN),created:function(){this.$_form=null},mounted:function(){var e=Tn("form",this.$el);e&&(gr(e,"reset",this.reset,xt),this.$_form=e)},beforeDestroy:function(){var e=this.$_form;e&&yr(e,"reset",this.reset,xt)},methods:{isFileValid:function(e){if(!e)return!1;var t=this.computedAccept;return!t||t.some(function(t){return t.rx.test(e[t.prop])})},isFilesArrayValid:function(e){var t=this;return Me(e)?e.every(function(e){return t.isFileValid(e)}):this.isFileValid(e)},defaultFileNameFormatter:function(e,t,n){return n.join(", ")},setFiles:function(e){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?e:Wt(e):Wt(e).slice(0,1)},setInputFiles:function(e){try{var t=new ClipboardEvent("").clipboardData||new DataTransfer;Wt(Xe(e)).forEach(function(e){delete e.$path,t.items.add(e)}),this.$refs.input.files=t.files}catch(e){}},reset:function(){try{var e=this.$refs.input;e.value="",e.type="",e.type="file"}catch(e){}this.files=[]},handleFiles:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.filter(this.isFilesArrayValid);t.length>0&&(this.setFiles(t),this.setInputFiles(t))}else this.setFiles(e)},focusHandler:function(e){this.plain||"focusout"===e.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(e){var t=this,n=e.type,r=e.target,i=e.dataTransfer,o=void 0===i?{}:i,a="drop"===n;this.$emit("change",e);var s=Yt(o.items||[]);if(p&&s.length>0&&!be(fR(s[0])))(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.all(Yt(e).filter(function(e){return"file"===e.kind}).map(function(e){var n=fR(e);if(n){if(n.isDirectory&&t)return hR(n.createReader(),"".concat(n.name,"/"));if(n.isFile)return new Promise(function(e){n.file(function(t){t.$path="",e(t)})})}return null}).filter(Ze))})(s,this.directory).then(function(e){return t.handleFiles(e,a)});else{var u=Yt(r.files||o.files||[]).map(function(e){return e.$path=e.webkitRelativePath||"",e});this.handleFiles(u,a)}},onDragenter:function(e){wr(e),this.dragging=!0;var t=e.dataTransfer,n=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragover:function(e){wr(e),this.dragging=!0;var t=e.dataTransfer,n=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragleave:function(e){var t=this;wr(e),this.$nextTick(function(){t.dragging=!1,t.dropAllowed=!t.noDrop})},onDrop:function(e){var t=this;wr(e),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick(function(){t.dropAllowed=!t.noDrop}):this.onChange(e)}},render:function(e){var t=this.custom,n=this.plain,r=this.size,i=this.dragging,o=this.stateClass,a=this.bvAttrs,s=e("input",{class:[{"form-control-file":n,"custom-file-input":t,focus:t&&this.hasFocus},o],style:t?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(n)return s;var u=e("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[e("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return e("div",{staticClass:"custom-file b-form-file",class:[oR({},"b-custom-control-".concat(r),r),o,a.class],style:a.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[s,u])}}),gR=mt({components:{BFormFile:vR,BFile:vR}}),yR=function(e){return"\\"+e},bR=function(e){var t=(e=an(e)).length,n=e.charCodeAt(0);return e.split("").reduce(function(r,i,o){var a=e.charCodeAt(o);return 0===a?r+"�":127===a||a>=1&&a<=31||0===o&&a>=48&&a<=57||1===o&&a>=48&&a<=57&&45===n?r+yR("".concat(a.toString(16)," ")):0===o&&45===a&&1===t?r+yR(i):a>=128||45===a||95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+i:r+yR(i)},"")};function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _R(e){for(var t=1;t0||Be(this.labelColProps).length>0}},watch:{ariaDescribedby:function(e,t){e!==t&&this.updateAriaDescribedby(e,t)}},mounted:function(){var e=this;this.$nextTick(function(){e.updateAriaDescribedby(e.ariaDescribedby)})},methods:{getAlignClasses:function(e,t){return Xn().reduce(function(n,r){var i=e[ir(r,"".concat(t,"Align"))]||null;return i&&n.push(["text",r,i].filter(Ze).join("-")),n},[])},getColProps:function(e,t){return Xn().reduce(function(n,r){var i=e[ir(r,"".concat(t,"Cols"))];return Se(i=""===i||(i||!1))||"auto"===i||(i=(i=Qt(i,0))>0&&i),i&&(n[r||(Se(i)?"col":"cols")]=i),n},{})},updateAriaDescribedby:function(e,t){var n=this.labelFor;if(h&&n){var r=xn("#".concat(bR(n)),this.$refs.content);if(r){var i="aria-describedby",o=(e||"").split(j),a=(t||"").split(j),s=(Pn(r,i)||"").split(j).filter(function(e){return!Kt(a,e)}).concat(o).filter(function(e,t,n){return n.indexOf(e)===t}).filter(Ze).join(" ").trim();s?zn(r,i,s):An(r,i)}}},onLegendClick:function(e){if(!this.labelFor){var t=e.target,n=t?t.tagName:"";if(-1===AR.indexOf(n)){var r=Sn(zR,this.$refs.content).filter(bn);1===r.length&&$n(r[0])}}}},render:function(e){var t=this.computedState,n=this.feedbackAriaLive,r=this.isHorizontal,i=this.labelFor,o=this.normalizeSlot,a=this.safeId,s=this.tooltip,u=a(),c=!i,l=e(),d=o("label")||this.label,p=d?a("_BV_label_"):null;if(d||r){var f=this.labelSize,h=this.labelColProps,m=c?"legend":"label";this.labelSrOnly?(d&&(l=e(m,{class:"sr-only",attrs:{id:p,for:i||null}},[d])),l=e(r?MR:"div",{props:r?h:{}},[l])):l=e(r?MR:m,{on:c?{click:this.onLegendClick}:{},props:r?IR(IR({},h),{},{tag:m}):{},attrs:{id:p,for:i||null,tabindex:c?"-1":null},class:[c?"bv-no-focus-ring":"",r||c?"col-form-label":"",!r&&c?"pt-0":"",r||c?"":"d-block",f?"col-form-label-".concat(f):"",this.labelAlignClasses,this.labelClass]},[d])}var v=e(),g=o("invalid-feedback")||this.invalidFeedback,y=g?a("_BV_feedback_invalid_"):null;g&&(v=e(DD,{props:{ariaLive:n,id:y,state:t,tooltip:s},attrs:{tabindex:g?"-1":null}},[g]));var b=e(),w=o("valid-feedback")||this.validFeedback,_=w?a("_BV_feedback_valid_"):null;w&&(b=e(RD,{props:{ariaLive:n,id:_,state:t,tooltip:s},attrs:{tabindex:w?"-1":null}},[w]));var S=e(),x=o("description")||this.description,E=x?a("_BV_description_"):null;x&&(S=e(PD,{attrs:{id:E,tabindex:"-1"}},[x]));var T=this.ariaDescribedby=[E,!1===t?y:null,!0===t?_:null].filter(Ze).join(" ")||null,M=e(r?MR:"div",{props:r?this.contentColProps:{},ref:"content"},[o("default",{ariaDescribedby:T,descriptionId:E,id:u,labelId:p})||e(),v,b,S]);return e(c?"fieldset":r?FD:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:u,disabled:c?this.disabled:null,role:c?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":c&&r?p:null}},r&&c?[e(FD,[l,M])]:[l,M])}},OR=mt({components:{BFormGroup:PR,BFormFieldset:PR}}),DR=r.default.extend({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(e){this.$refs.input.selectionStart=e}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(e){this.$refs.input.selectionEnd=e}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(e){this.$refs.input.selectionDirection=e}}},methods:{select:function(){var e;(e=this.$refs.input).select.apply(e,arguments)},setSelectionRange:function(){var e;(e=this.$refs.input).setSelectionRange.apply(e,arguments)},setRangeText:function(){var e;(e=this.$refs.input).setRangeText.apply(e,arguments)}}});function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RR(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return e=an(e),!this.hasFormatter||this.lazyFormatter&&!n||(e=this.formatter(e,t)),e},modifyValue:function(e){return e=an(e),this.trim&&(e=e.trim()),this.number&&(e=Xt(e,e)),e},updateValue:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if((e=t.modifyValue(e))!==t.vModelValue)t.vModelValue=e,t.$emit($R,e);else if(t.hasFormatter){var n=t.$refs.input;n&&e!==n.value&&(n.value=e)}},o=this.computedDebounce;o>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,o):i()}},onInput:function(e){if(!e.target.composing){var t=e.target.value,n=this.formatValue(t,e);!1===n||e.defaultPrevented?wr(e,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit("input",n))}},onChange:function(e){var t=e.target.value,n=this.formatValue(t,e);!1===n||e.defaultPrevented?wr(e,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit("change",n))},onBlur:function(e){var t=e.target.value,n=this.formatValue(t,e,!0);!1!==n&&(this.localValue=an(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",e)},focus:function(){this.disabled||$n(this.$el)},blur:function(){this.disabled||Un(this.$el)}}}),YR=r.default.extend({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var e;return(e=this.$refs.input).setCustomValidity.apply(e,arguments)},checkValidity:function(){var e;return(e=this.$refs.input).checkValidity.apply(e,arguments)},reportValidity:function(){var e;return(e=this.$refs.input).reportValidity.apply(e,arguments)}}});function KR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GR(e){for(var t=1;t=n?"full":t>=n-.5?"half":"empty",l={variant:o,disabled:a,readonly:s};return e("span",{staticClass:"b-rating-star",class:{focused:r&&t===n||!Qt(t)&&n===u,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[e("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,l)])])}}),mj=cr(qe(oj(oj(oj(oj(oj({},Yz),cj),Ue(VD,["required","autofocus"])),YD),{},{color:or(At),iconClear:or(At,"x"),iconEmpty:or(At,"star"),iconFull:or(At,"star-fill"),iconHalf:or(At,"star-half"),inline:or(Mt,!1),locale:or(Nt),noBorder:or(Mt,!1),precision:or(Vt),readonly:or(Mt,!1),showClear:or(Mt,!1),showValue:or(Mt,!1),showValueMax:or(Mt,!1),stars:or(Vt,5,function(e){return Qt(e)>=3}),variant:or(At)})),"BFormRating"),vj=r.default.extend({name:"BFormRating",components:{BIconStar:RM,BIconStarHalf:FM,BIconStarFill:jM,BIconX:AL},mixins:[Kz,uj,KD],props:mj,data:function(){var e=Xt(this[lj],null),t=pj(this.stars);return{localValue:be(e)?null:fj(e,0,t),hasFocus:!1}},computed:{computedStars:function(){return pj(this.stars)},computedRating:function(){var e=Xt(this.localValue,0),t=Qt(this.precision,3);return fj(Xt(e.toFixed(t)),0,this.computedStars)},computedLocale:function(){var e=Gt(this.locale).filter(Ze);return new Intl.NumberFormat(e).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return qz(this.computedLocale)},formattedRating:function(){var e=Qt(this.precision),t=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(e)?0:e,maximumFractionDigits:isNaN(e)?3:e},i=this.computedStars.toLocaleString(n),o=this.localValue;return o=be(o)?t?"-":"":o.toLocaleString(n,r),t?"".concat(o,"/").concat(i):o}},watch:(WR={},aj(WR,lj,function(e,t){if(e!==t){var n=Xt(e,null);this.localValue=be(n)?null:fj(n,0,this.computedStars)}}),aj(WR,"localValue",function(e,t){e!==t&&e!==(this.value||0)&&this.$emit(dj,e||null)}),aj(WR,"disabled",function(e){e&&(this.hasFocus=!1,this.blur())}),WR),methods:{focus:function(){this.disabled||$n(this.$el)},blur:function(){this.disabled||Un(this.$el)},onKeydown:function(e){var t=e.keyCode;if(this.isInteractive&&Kt([tk,QL,nk,ik],t)){wr(e,{propagation:!1});var n=Qt(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,o=this.isRTL?-1:1;t===tk?this.localValue=fj(n-o,r,i)||null:t===nk?this.localValue=fj(n+o,r,i):t===QL?this.localValue=fj(n-1,r,i)||null:t===ik&&(this.localValue=fj(n+1,r,i))}},onSelected:function(e){this.isInteractive&&(this.localValue=e)},onFocus:function(e){this.hasFocus=!!this.isInteractive&&"focus"===e.type},renderIcon:function(e){return this.$createElement(WL,{props:{icon:e,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(WL,{props:{icon:this.iconClear}})}},render:function(e){var t=this,n=this.disabled,r=this.readonly,i=this.name,o=this.form,a=this.inline,s=this.variant,u=this.color,c=this.noBorder,l=this.hasFocus,d=this.computedRating,p=this.computedStars,f=this.formattedRating,h=this.showClear,m=this.isRTL,v=this.isInteractive,g=this.$scopedSlots,y=[];if(h&&!n&&!r){var b=e("span",{staticClass:"b-rating-icon"},[(g["icon-clear"]||this.iconClearFn)()]);y.push(e("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:l&&0===d},attrs:{tabindex:v?"-1":null},on:{click:function(){return t.onSelected(null)}},key:"clear"},[b]))}for(var w=0;w1&&void 0!==arguments[1]?arguments[1]:null;if(Ie(e)){var n=tt(e,this.valueField),r=tt(e,this.textField),i=tt(e,this.optionsField,null);return be(i)?{value:ye(n)?t||r:n,text:String(ye(r)?t:r),html:tt(e,this.htmlField),disabled:Boolean(tt(e,this.disabledField))}:{label:String(tt(e,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:t||e,text:String(e),disabled:!1}}}}),Ij=cr({disabled:or(Mt,!1),value:or(void 0,void 0,!0)},"BFormSelectOption"),Lj=r.default.extend({name:"BFormSelectOption",functional:!0,props:Ij,render:function(e,t){var n=t.props,r=t.data,i=t.children,o=n.value;return e("option",u(r,{attrs:{disabled:n.disabled},domProps:{value:o}}),i)}});function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zj(e){for(var t=1;t0?e:500},computedInterval:function(){var e=Qt(this.repeatInterval,0);return e>0?e:100},computedThreshold:function(){return Gr(Qt(this.repeatThreshold,10),1)},computedStepMultiplier:function(){return Gr(Qt(this.repeatStepMultiplier,4),1)},computedPrecision:function(){var e=this.computedStep;return Qr(e)===e?0:(e.toString().split(".")[1]||"").length},computedMultiplier:function(){return Xr(10,this.computedPrecision||0)},valueAsFixed:function(){var e=this.localValue;return be(e)?"":e.toFixed(this.computedPrecision)},computedLocale:function(){var e=Gt(this.locale).filter(Ze);return new Intl.NumberFormat(e).resolvedOptions().locale},computedRTL:function(){return qz(this.computedLocale)},defaultFormatter:function(){var e=this.computedPrecision;return new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:e,maximumFractionDigits:e,notation:"standard"}).format},computedFormatter:function(){var e=this.formatterFn;return dr(e)?e:this.defaultFormatter},computedAttrs:function(){return $j($j({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var e=this.spinId,t=this.localValue,n=this.computedRequired,r=this.disabled,i=this.state,o=this.computedFormatter,a=!be(t);return $j($j({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:e,role:"spinbutton",tabindex:r?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!a&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":an(this.computedMin),"aria-valuemax":an(this.computedMax),"aria-valuenow":a?t:null,"aria-valuetext":a?o(t):null})}},watch:(jj={},Uj(jj,Gj,function(e){this.localValue=Xt(e,null)}),Uj(jj,"localValue",function(e){this.$emit(Jj,e)}),Uj(jj,"disabled",function(e){e&&this.clearRepeat()}),Uj(jj,"readonly",function(e){e&&this.clearRepeat()}),jj),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||$n(this.$refs.spinner)},blur:function(){this.disabled||Un(this.$refs.spinner)},emitChange:function(){this.$emit("change",this.localValue)},stepValue:function(e){var t=this.localValue;if(!this.disabled&&!be(t)){var n=this.computedStep*e,r=this.computedMin,i=this.computedMax,o=this.computedMultiplier,a=this.wrap;t=Zr((t-r)/n)*n+r+n,t=Zr(t*o)/o,this.localValue=t>i?a?r:i:t0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;be(t)?this.localValue=this.computedMin:this.stepValue(1*e)},stepDown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;be(t)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*e)},onKeydown:function(e){var t=e.keyCode,n=e.altKey,r=e.ctrlKey,i=e.metaKey;if(!(this.disabled||this.readonly||n||r||i)&&Kt(Wj,t)){if(wr(e,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),Kt([ik,QL],t)?(this.$_keyIsDown=!0,t===ik?this.handleStepRepeat(e,this.stepUp):t===QL&&this.handleStepRepeat(e,this.stepDown)):33===t?this.stepUp(this.computedStepMultiplier):34===t?this.stepDown(this.computedStepMultiplier):t===ek?this.localValue=this.computedMin:t===XL&&(this.localValue=this.computedMax)}},onKeyup:function(e){var t=e.keyCode,n=e.altKey,r=e.ctrlKey,i=e.metaKey;this.disabled||this.readonly||n||r||i||Kt(Wj,t)&&(wr(e,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(e,t){var n=this,r=e||{},i=r.type,o=r.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&o)return;this.resetTimers(),t(1);var a=this.computedThreshold,s=this.computedStepMultiplier,u=this.computedDelay,c=this.computedInterval;this.$_autoDelayTimer=setTimeout(function(){var e=0;n.$_autoRepeatTimer=setInterval(function(){t(ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&n.indexOf(e)===t})},bF=function(e){return xe(e)?e:ke(e)&&e.target.value||""},wF=cr(qe(cF(cF(cF(cF(cF(cF({},Yz),fF),VD),YD),GD),{},{addButtonText:or(At,"Add"),addButtonVariant:or(At,"outline-secondary"),addOnChange:or(Mt,!1),duplicateTagText:or(At,"Duplicate tag(s)"),feedbackAriaLive:or(At,"assertive"),ignoreInputFocusSelector:or(Nt,gF),inputAttrs:or(kt,{}),inputClass:or(Dt),inputId:or(At),inputType:or(At,"text",function(e){return Kt(vF,e)}),invalidTagText:or(At,"Invalid tag(s)"),limit:or(Lt),limitTagsText:or(At,"Tag limit reached"),noAddOnEnter:or(Mt,!1),noOuterFocus:or(Mt,!1),noTagRemove:or(Mt,!1),placeholder:or(At,"Add tag..."),removeOnDelete:or(Mt,!1),separator:or(Nt),tagClass:or(Dt),tagPills:or(Mt,!1),tagRemoveLabel:or(At,"Remove tag"),tagRemovedLabel:or(At,"Tag removed"),tagValidator:or(It),tagVariant:or(At,"secondary")})),"BFormTags"),_F=r.default.extend({name:"BFormTags",mixins:[pk,Kz,pF,$D,KD,JD,mr],props:wF,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:{all:[],valid:[],invalid:[],duplicate:[]},focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return Kt(vF,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var e=this.disabled,t=this.form;return cF(cF({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:e,form:t})},computedInputHandlers:function(){return cF(cF({},Ue(this.bvListeners,["focusin","focusout"])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return Gt(this.separator).filter(xe).filter(Ze).join("")},computedSeparatorRegExp:function(){var e=this.computedSeparator;return e?new RegExp("[".concat(on(e).replace(R,"\\s"),"]+")):null},computedJoiner:function(){var e=this.computedSeparator.charAt(0);return" "!==e?"".concat(e," "):e},computeIgnoreInputFocusSelector:function(){return Gt(this.ignoreInputFocusSelector).filter(Ze).join(",").trim()},disableAddButton:function(){var e=this,t=sn(this.newTag);return""===t||!this.splitTags(t).some(function(t){return!Kt(e.tags,t)&&e.validateTag(t)})},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var e=this.limit;return Ee(e)&&e>=0&&this.tags.length>=e}},watch:(rF={},lF(rF,hF,function(e){this.tags=yF(e)}),lF(rF,"tags",function(e,t){ok(e,this[hF])||this.$emit(mF,e),ok(e,t)||(e=Gt(e).filter(Ze),t=Gt(t).filter(Ze),this.removedTags=t.filter(function(t){return!Kt(e,t)}))}),lF(rF,"tagsState",function(e,t){ok(e,t)||this.$emit("tag-state",e.valid,e.invalid,e.duplicate)}),rF),created:function(){this.tags=yF(this[hF])},mounted:function(){var e=Tn("form",this.$el);e&&gr(e,"reset",this.reset,xt)},beforeDestroy:function(){var e=Tn("form",this.$el);e&&yr(e,"reset",this.reset,xt)},methods:{addTag:function(e){if(e=xe(e)?e:this.newTag,!this.disabled&&""!==sn(e)&&!this.isLimitReached){var t=this.parseTags(e);if(t.valid.length>0||0===t.all.length)if(En(this.getInput(),"select"))this.newTag="";else{var n=[].concat(aF(t.invalid),aF(t.duplicate));this.newTag=t.all.filter(function(e){return Kt(n,e)}).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}t.valid.length>0&&(this.tags=Gt(this.tags,t.valid)),this.tagsState=t,this.focus()}},removeTag:function(e){this.disabled||(this.tags=this.tags.filter(function(t){return t!==e}))},reset:function(){var e=this;this.newTag="",this.tags=[],this.$nextTick(function(){e.removedTags=[],e.tagsState={all:[],valid:[],invalid:[],duplicate:[]}})},onInputInput:function(e){if(!(this.disabled||ke(e)&&e.target.composing)){var t=bF(e),n=this.computedSeparatorRegExp;this.newTag!==t&&(this.newTag=t),t=an(t).replace(H,""),n&&n.test(t.slice(-1))?this.addTag():this.tagsState=""===t?{all:[],valid:[],invalid:[],duplicate:[]}:this.parseTags(t)}},onInputChange:function(e){if(!this.disabled&&this.addOnChange){var t=bF(e);this.newTag!==t&&(this.newTag=t),this.addTag()}},onInputKeydown:function(e){if(!this.disabled&&ke(e)){var t=e.keyCode,n=e.target.value||"";this.noAddOnEnter||t!==ZL?!this.removeOnDelete||8!==t&&46!==t||""!==n||(wr(e,{propagation:!1}),this.tags=this.tags.slice(0,-1)):(wr(e,{propagation:!1}),this.addTag())}},onClick:function(e){var t=this,n=this.computeIgnoreInputFocusSelector;n&&Tn(n,e.target,!0)||this.$nextTick(function(){t.focus()})},onInputFocus:function(e){var t=this;"out"!==this.focusState&&(this.focusState="in",this.$nextTick(function(){fn(function(){t.hasFocus&&(t.$emit("focus",e),t.focusState=null)})}))},onInputBlur:function(e){var t=this;"in"!==this.focusState&&(this.focusState="out",this.$nextTick(function(){fn(function(){t.hasFocus||(t.$emit("blur",e),t.focusState=null)})}))},onFocusin:function(e){this.hasFocus=!0,this.$emit("focusin",e)},onFocusout:function(e){this.hasFocus=!1,this.$emit("focusout",e)},handleAutofocus:function(){var e=this;this.$nextTick(function(){fn(function(){e.autofocus&&e.focus()})})},focus:function(){this.disabled||$n(this.getInput())},blur:function(){this.disabled||Un(this.getInput())},splitTags:function(e){e=an(e);var t=this.computedSeparatorRegExp;return(t?e.split(t):[e]).map(sn).filter(Ze)},parseTags:function(e){var t=this,n=this.splitTags(e),r={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach(function(e){Kt(t.tags,e)||Kt(r.valid,e)?Kt(r.duplicate,e)||r.duplicate.push(e):t.validateTag(e)?r.valid.push(e):Kt(r.invalid,e)||r.invalid.push(e)}),r},validateTag:function(e){var t=this.tagValidator;return!dr(t)||t(e)},getInput:function(){return xn("#".concat(bR(this.computedInputId)),this.$el)},defaultRender:function(e){var t=e.addButtonText,n=e.addButtonVariant,r=e.addTag,i=e.disableAddButton,o=e.disabled,a=e.duplicateTagText,s=e.inputAttrs,u=e.inputClass,c=e.inputHandlers,l=e.inputType,d=e.invalidTagText,p=e.isDuplicate,f=e.isInvalid,h=e.isLimitReached,m=e.limitTagsText,v=e.noTagRemove,g=e.placeholder,y=e.removeTag,b=e.tagClass,w=e.tagPills,_=e.tagRemoveLabel,S=e.tagVariant,x=e.tags,E=this.$createElement,T=x.map(function(e){return e=an(e),E(oF,{class:b,props:{disabled:o,noRemove:v,pill:w,removeLabel:_,tag:"li",title:e,variant:S},on:{remove:function(){return y(e)}},key:"tags_".concat(e)},e)}),M=d&&f?this.safeId("__invalid_feedback__"):null,C=a&&p?this.safeId("__duplicate_feedback__"):null,I=m&&h?this.safeId("__limit_feedback__"):null,L=[s["aria-describedby"],M,C,I].filter(Ze).join(" "),k=E("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:u,style:{outline:0,minWidth:"5rem"},attrs:cF(cF({},s),{},{"aria-describedby":L||null,type:l,placeholder:g||null}),domProps:{value:s.value},on:c,directives:[{name:"model",value:s.value}],ref:"input"}),z=E(Pk,{staticClass:"b-form-tags-button py-0",class:{invisible:i},style:{fontSize:"90%"},props:{disabled:i||h,variant:n},on:{click:function(){return r()}},ref:"button"},[this.normalizeSlot("add-button-text")||t]),A=this.safeId("__tag_list__"),P=E("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":A},key:"tags_field"},[E("div",{staticClass:"d-flex",attrs:{role:"group"}},[k,z])]),O=E("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:A},key:"tags_list"},[T,P]),D=E();if(d||a||m){var N=this.feedbackAriaLive,R=this.computedJoiner,j=E();M&&(j=E(DD,{props:{id:M,ariaLive:N,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(R)]));var F=E();C&&(F=E(PD,{props:{id:C,ariaLive:N},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(R)]));var B=E();I&&(B=E(PD,{props:{id:I,ariaLive:N},key:"tags_limit_feedback"},[m])),D=E("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[j,F,B])}return[O,D]}},render:function(e){var t=this.name,n=this.disabled,r=this.required,i=this.form,o=this.tags,a=this.computedInputId,s=this.hasFocus,u=this.noOuterFocus,c=cF({tags:o.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:a,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},$e(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),l=this.normalizeSlot("default",c)||this.defaultRender(c),d=e("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:a,"aria-live":s?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),p=e("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":s?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),f=e();if(t&&!n){var h=o.length>0;f=(h?o:[""]).map(function(n){return e("input",{class:{"sr-only":!h},attrs:{type:h?"hidden":"text",value:n,required:r,name:t,form:i},key:"tag_input_".concat(n)})})}return e("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:s&&!u&&!n,disabled:n},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:n||u?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[d,p,l,f])}}),SF=mt({components:{BFormTags:_F,BTags:_F,BFormTag:oF,BTag:oF}});function xF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EF(e){for(var t=1;td?s:"".concat(d,"px")}},render:function(e){return e("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}}),LF=mt({components:{BFormTextarea:IF,BTextarea:IF}});function kF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zF(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return be(t)||be(n)||i&&be(r)?"":[t,n,i?r:0].map(HF).join(":")}({hours:this.modelHours,minutes:this.modelMinutes,seconds:this.modelSeconds},this.showSeconds)},resolvedOptions:function(){var e=Gt(this.locale).filter(Ze),t={hour:"numeric",minute:"numeric",second:"numeric"};we(this.hour12)||(t.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(e,t).resolvedOptions(),r=n.hour12||!1,i=n.hourCycle||(r?"h12":"h23");return{locale:n.locale,hour12:r,hourCycle:i}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return qz(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(Ze).join(" ")||null},timeFormatter:function(){var e={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:"numeric",minute:"numeric",timeZone:"UTC"};return this.showSeconds&&(e.second="numeric"),Az(this.computedLocale,e)},numberFormatter:function(){return new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"}).format},formattedTimeString:function(){var e=this.modelHours,t=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(Lz(Date.UTC(0,0,1,e,t,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var e=this.$createElement;return{increment:function(t){var n=t.hasFocus;return e(Hd,{props:{scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(t){var n=t.hasFocus;return e(Hd,{props:{flipV:!0,scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(MF={},AF(MF,FF,function(e,t){if(e!==t&&!ok(VF(e),VF(this.computedHMS))){var n=VF(e),r=n.hours,i=n.minutes,o=n.seconds,a=n.ampm;this.modelHours=r,this.modelMinutes=i,this.modelSeconds=o,this.modelAmpm=a}}),AF(MF,"computedHMS",function(e,t){e!==t&&this.$emit(BF,e)}),AF(MF,"context",function(e,t){ok(e,t)||this.$emit("context",e)}),AF(MF,"modelAmpm",function(e,t){var n=this;if(e!==t){var r=be(this.modelHours)?0:this.modelHours;this.$nextTick(function(){0===e&&r>11?n.modelHours=r-12:1===e&&r<12&&(n.modelHours=r+12)})}}),AF(MF,"modelHours",function(e,t){e!==t&&(this.modelAmpm=e>11?1:0)}),MF),created:function(){var e=this;this.$nextTick(function(){e.$emit("context",e.context)})},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||$n(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var e=vn();Mn(this.$el,e)&&Un(e)}},formatHours:function(e){var t=this.computedHourCycle;return e=0===(e=this.is12Hour&&e>12?e-12:e)&&"h12"===t?12:0===e&&"h24"===t?24:12===e&&"h11"===t?0:e,this.numberFormatter(e)},formatMinutes:function(e){return this.numberFormatter(e)},formatSeconds:function(e){return this.numberFormatter(e)},formatAmpm:function(e){return 0===e?this.labelAm:1===e?this.labelPm:""},setHours:function(e){this.modelHours=e},setMinutes:function(e){this.modelMinutes=e},setSeconds:function(e){this.modelSeconds=e},setAmpm:function(e){this.modelAmpm=e},onSpinLeftRight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.keyCode;if(!this.disabled&&"keydown"===t&&(n===tk||n===nk)){wr(e);var r=this.$refs.spinners||[],i=r.map(function(e){return!!e.hasFocus}).indexOf(!0);i=(i+=n===tk?-1:1)>=r.length?0:i<0?r.length-1:i,$n(r[i])}},setLive:function(e){var t=this;e?this.$nextTick(function(){fn(function(){t.isLive=!0})}):this.isLive=!1}},render:function(e){var t=this;if(this.hidden)return e();var n=this.disabled,r=this.readonly,i=this.computedLocale,o=this.computedAriaLabelledby,a=this.labelIncrement,s=this.labelDecrement,u=this.valueId,c=this.focus,l=[],d=function(o,c,d){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=t.safeId("_spinbutton_".concat(c,"_"))||null;return l.push(f),e(Xj,{class:d,props:zF({id:f,placeholder:"--",vertical:!0,required:!0,disabled:n,readonly:r,locale:i,labelIncrement:a,labelDecrement:s,wrap:!0,ariaControls:u,min:0},p),scopedSlots:t.spinScopedSlots,on:{change:o},key:c,ref:"spinners",refInFor:!0})},p=function(){return e("div",{staticClass:"d-flex flex-column",class:{"text-muted":n||r},attrs:{"aria-hidden":"true"}},[e($d,{props:{shiftV:4,scale:.5}}),e($d,{props:{shiftV:-4,scale:.5}})])},f=[];f.push(d(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),f.push(p()),f.push(d(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(f.push(p()),f.push(d(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.is12Hour&&f.push(d(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),f=e("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:n||r?null:"-1","aria-labelledby":o},on:{keydown:this.onSpinLeftRight,click:function(e){e.target===e.currentTarget&&c()}}},f);var h=e("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:n||r},attrs:{id:u,role:"status",for:l.filter(Ze).join(" ")||null,tabindex:n?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:c,focus:c}},[e("bdi",this.formattedTimeString),this.computedHMS?e("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),m=e(this.headerTag,{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[h]),v=this.normalizeSlot(),g=v?e(this.footerTag,{staticClass:"b-time-footer"},v):e();return e("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":o||null,"aria-disabled":n?"true":null,"aria-readonly":r&&!n?"true":null}},[m,f,g])}});function qF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YF(e){for(var t=1;t0&&a.push(e("span"," "));var u=this.labelResetButton;a.push(e(Pk,{props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":u||null},on:{click:this.onResetButton},key:"reset-btn"},u))}if(!this.noCloseButton){a.length>0&&a.push(e("span"," "));var c=this.labelCloseButton;a.push(e(Pk,{props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onCloseButton},key:"close-btn"},c))}a.length>0&&(a=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":a.length>1,"justify-content-end":a.length<2}},a)]);var l=e(UF,{staticClass:"b-form-time-control",props:YF(YF({},sr(ZF,i)),{},{value:t,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},a);return e(VN,{staticClass:"b-form-timepicker",props:YF(YF({},sr(eB,i)),{},{id:this.safeId(),value:t,formattedValue:t?this.formattedValue:"",placeholder:o,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:KF({},"button-content",this.$scopedSlots["button-content"]||this.defaultButtonFn),ref:"control"},[l])}}),rB=mt({components:{BFormTimepicker:nB,BTimepicker:nB}}),iB=mt({components:{BImg:IA,BImgLazy:XA}}),oB=cr({tag:or(At,"div")},"BInputGroupText"),aB=r.default.extend({name:"BInputGroupText",functional:!0,props:oB,render:function(e,t){var n=t.props,r=t.data,i=t.children;return e(n.tag,u(r,{staticClass:"input-group-text"}),i)}}),sB=cr({append:or(Mt,!1),id:or(At),isText:or(Mt,!1),tag:or(At,"div")},"BInputGroupAddon"),uB=r.default.extend({name:"BInputGroupAddon",functional:!0,props:sB,render:function(e,t){var n=t.props,r=t.data,i=t.children,o=n.append;return e(n.tag,u(r,{class:{"input-group-append":o,"input-group-prepend":!o},attrs:{id:n.id}}),n.isText?[e(aB,i)]:i)}});function cB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lB(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null;return e&&e.$options._scopeId||t};var iH=r.default.extend({computed:{scopedStyleAttrs:function(){var e,t,n,r=rH(this.$parent);return r?(n="",(t=r)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{}}}}),oH=r.default.extend({abstract:!0,name:"BVTransporterTarget",props:{nodes:or(Pt)},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){var e;(e=this.$el)&&e.parentNode&&e.parentNode.removeChild(e)},render:function(e){var t=this.updatedNodes,n=_e(t)?t({}):t;return(n=Gt(n).filter(Ze))&&n.length>0&&!n[0].text?n[0]:e()}}),aH={container:or([pe,At],"body"),disabled:or(Mt,!1),tag:or(At,"div")},sH=r.default.extend({name:"BVTransporter",mixins:[mr],props:aH,watch:{disabled:{immediate:!0,handler:function(e){e?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(h){var e=this.container;return xe(e)?xn(e):e}return null},mountTarget:function(){if(!this.$_target){var e=this.getContainer();if(e){var t=document.createElement("div");e.appendChild(t),this.$_target=new oH({el:t,parent:this,propsData:{nodes:Gt(this.normalizeSlot())}})}}},updateTarget:function(){if(h&&this.$_target){var e=this.$scopedSlots.default;this.disabled||(e&&this.$_defaultFn!==e?this.$_target.updatedNodes=e:e||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=e}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(e){if(this.disabled){var t=Gt(this.normalizeSlot()).filter(Ze);if(t.length>0&&!t[0].text)return t[0]}return e()}});function uH(e){"@babel/helpers - typeof";return(uH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lH(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e,n),Re(vH(t),{trigger:Ye()}),t}return t=o,r=[{key:"Defaults",get:function(){return lH(lH({},fH(gH(o),"Defaults",this)),{},{trigger:null})}}],(n=null)&&pH(t.prototype,n),r&&pH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(),bH=new(r.default.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(e,t){h&&(this.getScrollbarWidth(),e>0&&0===t?(this.checkScrollbar(),this.setScrollbar(),In(document.body,"modal-open")):0===e&&t>0&&(this.resetScrollbar(),Ln(document.body,"modal-open")),zn(document.body,"data-modal-open-count",String(e)))},modals:function(e){var t=this;this.checkScrollbar(),fn(function(){t.updateModals(e||[])})}},methods:{registerModal:function(e){e&&-1===this.modals.indexOf(e)&&this.modals.push(e)},unregisterModal:function(e){var t=this.modals.indexOf(e);t>-1&&(this.modals.splice(t,1),e._isBeingDestroyed||e._isDestroyed||this.resetModal(e))},getBaseZIndex:function(){if(h&&be(this.baseZIndex)){var e=document.createElement("div");In(e,"modal-backdrop"),In(e,"d-none"),Dn(e,"display","none"),document.body.appendChild(e),this.baseZIndex=Qt(Fn(e).zIndex,1040),document.body.removeChild(e)}return this.baseZIndex||1040},getScrollbarWidth:function(){if(h&&be(this.scrollbarWidth)){var e=document.createElement("div");In(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=jn(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var t=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();e.forEach(function(e,i){e.zIndex=n+i,e.scrollbarWidth=r,e.isTop=i===t.modals.length-1,e.isBodyOverflowing=t.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=jn(document.body),t=e.left,n=e.right;this.isBodyOverflowing=t+n0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=fP(this.$refs.content,this.checkModalOverflow.bind(this),LH))},updateModel:function(e){e!==this[MH]&&this.$emit(CH,e)},buildEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new yH(e,_H(_H({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},t),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once("hidden",this.show);else{this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var e=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(e),e.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var t=this.buildEvent("hide",{cancelable:"FORCE"!==e,trigger:e||null});if("ok"===e?this.$emit("ok",t):"cancel"===e?this.$emit("cancel",t):"headerclose"===e&&this.$emit("close",t),this.emitEvent(t),t.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(e){e&&(this.$_returnFocus=e),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var e=vn(h?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;bH.modalsAreOpen&&this.noStacking?this.listenOnRootOnce(Sr("BModal","hidden"),this.doShow):(bH.registerModal(this),this.isHidden=!1,this.$nextTick(function(){e.isVisible=!0,e.isOpening=!1,e.updateModel(!0),e.$nextTick(function(){e.setObserver(!0)})}))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var e=this;this.isBlock=!0,fn(function(){fn(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,fn(function(){e.emitEvent(e.buildEvent("shown")),e.setEnforceFocus(!0),e.$nextTick(function(){e.focusFirst()})})},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var e=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick(function(){e.isClosing=!1,bH.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent("hidden"))})},emitEvent:function(e){var t=e.type;this.emitOnRoot(Sr("BModal",t),e,e.componentId),this.$emit(t,e)},onDialogMousedown:function(){var e=this,t=this.$refs.modal;gr(t,"mouseup",function n(r){yr(t,"mouseup",n,Et),r.target===t&&(e.ignoreBackdropClick=!0)},Et)},onClickOut:function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&Mn(document.body,e.target)&&(Mn(this.$refs.content,e.target)||this.hide("backdrop"))},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(e){27===e.keyCode&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(e){var t=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!t||document===n||Mn(t,n)||this.computeIgnoreEnforceFocusSelector&&Tn(this.computeIgnoreEnforceFocusSelector,n,!0))){var r=Vn(this.$refs.content),i=this.$refs["bottom-trap"],o=this.$refs["top-trap"];if(i&&n===i){if($n(r[0]))return}else if(o&&n===o&&$n(r[r.length-1]))return;$n(t,{preventScroll:!0})}},setEnforceFocus:function(e){this.listenDocument(e,"focusin",this.focusHandler)},setResizeEvent:function(e){this.listenWindow(e,"resize",this.checkModalOverflow),this.listenWindow(e,"orientationchange",this.checkModalOverflow)},showHandler:function(e,t){e===this.modalId&&(this.$_returnFocus=t||this.getActiveElement(),this.show())},hideHandler:function(e){e===this.modalId&&this.hide("event")},toggleHandler:function(e,t){e===this.modalId&&this.toggle(t)},modalListener:function(e){this.noStacking&&e.vueTarget!==this&&this.hide()},focusFirst:function(){var e=this;h&&fn(function(){var t=e.$refs.modal,n=e.$refs.content,r=e.getActiveElement();if(t&&n&&(!r||!Mn(n,r))){var i=e.$refs["ok-button"],o=e.$refs["cancel-button"],a=e.$refs["close-button"],s=e.autoFocusButton,u="ok"===s&&i?i.$el||i:"cancel"===s&&o?o.$el||o:"headerclose"===s&&a?a.$el||a:n;$n(u),u===n&&e.$nextTick(function(){t.scrollTop=0})}})},returnFocusTo:function(){var e=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick(function(){(e=xe(e)?xn(e):e)&&(e=e.$el||e,$n(e))})},checkModalOverflow:function(){if(this.isVisible){var e=this.$refs.modal;this.isModalOverflowing=e.scrollHeight>document.documentElement.clientHeight}},makeModal:function(e){var t=e();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var r=e();this.hideHeaderClose||(r=e(Tr,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot("modal-title")?{}:Zk(this.titleHtml,this.title)},this.normalizeSlot("modal-title",this.slotScope)),r]}t=e(this.headerTag,{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=e("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot("default",this.slotScope)),o=e();if(!this.hideFooter){var a=this.normalizeSlot("modal-footer",this.slotScope);if(!a){var s=e();this.okOnly||(s=e(Pk,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:Zk(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel"))),a=[s,e(Pk,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:Zk(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"))]}o=e(this.footerTag,{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[a])}var u=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[t,i,o]),c=e(),l=e();this.isVisible&&!this.noEnforceFocus&&(c=e("span",{attrs:{tabindex:"0"},ref:"top-trap"}),l=e("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var d=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[c,u,l]),p=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[d]);p=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[p]);var f=e();return!this.hideBackdrop&&this.isVisible&&(f=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),f=e(Pr,{props:{noFade:this.noFade}},[f]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[p,f])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(sH,[this.makeModal(e)])}}),AH=xr("BModal","show"),PH="__bv_modal_directive__",OH=function(e){var t=e.modifiers,n=void 0===t?{}:t,r=e.arg,i=e.value;return xe(i)?i:xe(r)?r:Be(n).reverse()[0]},DH=function(e){return e&&En(e,".dropdown-menu > li, li.nav-item")&&xn("a, button",e)||e},NH=function(e){e&&"BUTTON"!==e.tagName&&(On(e,"role")||zn(e,"role","button"),"A"===e.tagName||On(e,"tabindex")||zn(e,"tabindex","0"))},RH=function(e){var t=e[PH]||{},n=t.trigger,r=t.handler;n&&r&&(yr(n,"click",r,xt),yr(n,"keydown",r,xt),yr(e,"click",r,xt),yr(e,"keydown",r,xt)),delete e[PH]},jH=function(e,t,n){var r=e[PH]||{},i=OH(t),o=DH(e);i===r.target&&o===r.trigger||(RH(e),function(e,t,n){var r=OH(t),i=DH(e);if(r&&i){var o=function(e){var t=e.currentTarget;if(!wn(t)){var i=e.type,o=e.keyCode;"click"!==i&&("keydown"!==i||o!==ZL&&o!==rk)||n.context.$root.$emit(AH,r,t)}};e[PH]={handler:o,target:r,trigger:i},NH(i),gr(i,"click",o,xt),"BUTTON"!==i.tagName&&"button"===Pn(i,"role")&&gr(i,"keydown",o,xt)}}(e,t,n)),NH(o)},FH={inserted:jH,updated:function(){},componentUpdated:jH,unbind:RH};function BH(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(n&&!ot("$bvModal")&&!it("$bvModal")&&_e(i))return function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KH;if(!it("$bvModal")&&!ot("$bvModal")){var i=new t({parent:e,propsData:VH(VH(VH({},JH(Gn("BModal"))),{},{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},Ue(n,Be(GH))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return Be(GH).forEach(function(e){ye(n[e])||(i.$slots[GH[e]]=Gt(n[e]))}),new Promise(function(e,t){var n=!1;i.$once("hook:destroyed",function(){n||t(new Error("BootstrapVue MsgBox destroyed before resolve"))}),i.$on("hide",function(t){if(!t.defaultPrevented){var i=r(t);t.defaultPrevented||(n=!0,e(i))}});var o=document.createElement("div");document.body.appendChild(o),i.$mount(o)})}}(e,VH(VH({},JH(r)),{},{msgBoxContent:n}),i)},r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),De(this,{_vm:t,_root:t.$root}),Re(this,{_vm:Ye(),_root:Ye()})}var t,r,i;return t=e,(r=[{key:"show",value:function(e){if(e&&this._root){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{}),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:e});return n(this._vm,e,t,function(){return!0})}},{key:"msgBoxConfirm",value:function(e){var t=VH(VH({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return n(this._vm,e,t,function(e){var t=e.trigger;return"ok"===t||"cancel"!==t&&null})}}])&&BH(t.prototype,r),i&&BH(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.mixin({beforeCreate:function(){this._bv__modal=new r(this)}}),He(e.prototype,"$bvModal")||je(e.prototype,"$bvModal",{get:function(){return this&&this._bv__modal||rt('"'.concat("$bvModal",'" must be accessed from a Vue instance "this" context.'),"BModal"),this._bv__modal}})}}}),QH=mt({components:{BModal:zH},directives:{VBModal:FH},plugins:{BVModalPlugin:WH}});function XH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZH=cr({align:or(At),cardHeader:or(Mt,!1),fill:or(Mt,!1),justified:or(Mt,!1),pills:or(Mt,!1),small:or(Mt,!1),tabs:or(Mt,!1),tag:or(At,"ul"),vertical:or(Mt,!1)},"BNav"),eV=r.default.extend({name:"BNav",functional:!0,props:ZH,render:function(e,t){var n,r,i=t.props,o=t.data,a=t.children,s=i.tabs,c=i.pills,l=i.vertical,d=i.align,p=i.cardHeader;return e(i.tag,u(o,{staticClass:"nav",class:(n={"nav-tabs":s,"nav-pills":c&&!s,"card-header-tabs":!l&&p&&s,"card-header-pills":!l&&p&&c&&!s,"flex-column":l,"nav-fill":!l&&i.fill,"nav-justified":!l&&i.justified},XH(n,(r=d,"justify-content-".concat(r="left"===r?"start":"right"===r?"end":r)),!l&&d),XH(n,"small",i.small),n)}),a)}});function tV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nV(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&t<=1}),overlayTag:or(At,"div"),rounded:or(Ft,!1),show:or(Mt,!1),spinnerSmall:or(Mt,!1),spinnerType:or(At,"border"),spinnerVariant:or(At),variant:or(At,"light"),wrapTag:or(At,"div"),zIndex:or(Vt,10)},"BOverlay"),KV=r.default.extend({name:"BOverlay",mixins:[mr],props:YV,computed:{computedRounded:function(){var e=this.rounded;return!0===e||""===e?"rounded":e?"rounded-".concat(e):""},computedVariant:function(){var e=this.variant;return e&&!this.bgColor?"bg-".concat(e):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(e){var t=e.spinnerType,n=e.spinnerVariant,r=e.spinnerSmall;return this.$createElement(BV,{props:{type:t,variant:n,small:r}})}},render:function(e){var t=this,n=this.show,r=this.fixed,i=this.noFade,o=this.noWrap,a=this.slotScope,s=e();if(n){var u=e("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:VV(VV({},qV),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),c=e("div",{staticClass:"position-absolute",style:this.noCenter?VV({},qV):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot("overlay",a)||this.defaultOverlayFn(a)]);s=e(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!o||o&&!r,"position-fixed":o&&r},style:VV(VV({},qV),{},{zIndex:this.zIndex||10}),on:{click:function(e){return t.$emit("click",e)}},key:"overlay"},[u,c])}return s=e(Pr,{props:{noFade:i,appear:!0},on:{"after-enter":function(){return t.$emit("shown")},"after-leave":function(){return t.$emit("hidden")}}},[s]),o?s:e(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},o?[s]:[this.normalizeSlot(),s])}}),GV=mt({components:{BOverlay:KV}});function JV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WV(e){for(var t=1;tt?t:n<1?1:n},o$=function(e){if(e.keyCode===rk)return wr(e,{immediatePropagation:!0}),e.currentTarget.click(),!1},a$=cr(qe(WV(WV({},e$),{},{align:or(At,"left"),ariaLabel:or(At,"Pagination"),disabled:or(Mt,!1),ellipsisClass:or(Dt),ellipsisText:or(At,"…"),firstClass:or(Dt),firstNumber:or(Mt,!1),firstText:or(At,"«"),hideEllipsis:or(Mt,!1),hideGotoEndButtons:or(Mt,!1),labelFirstPage:or(At,"Go to first page"),labelLastPage:or(At,"Go to last page"),labelNextPage:or(At,"Go to next page"),labelPage:or(Ht,"Go to page"),labelPrevPage:or(At,"Go to previous page"),lastClass:or(Dt),lastNumber:or(Mt,!1),lastText:or(At,"»"),limit:or(Vt,5,function(e){return!(Qt(e,0)<1)||(rt('Prop "limit" must be a number greater than "0"',"BPagination"),!1)}),nextClass:or(Dt),nextText:or(At,"›"),pageClass:or(Dt),pills:or(Mt,!1),prevClass:or(Dt),prevText:or(At,"‹"),size:or(At)})),"pagination"),s$=r.default.extend({mixins:[ZV,mr],props:a$,data:function(){var e=Qt(this[t$],0);return{currentPage:e=e>0?e:-1,localNumberOfPages:1,localLimit:5}},computed:{btnSize:function(){var e=this.size;return e?"pagination-".concat(e):""},alignment:function(){var e=this.align;return"center"===e?"justify-content-center":"end"===e||"right"===e?"justify-content-end":"fill"===e?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return i$(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var e=this.localLimit,t=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,i=this.firstNumber,o=this.lastNumber,a=!1,s=!1,u=e,c=1;t<=e?u=t:n3?(r&&!o||(s=!0,u=e-(i?0:1)),u=Kr(u,e)):t-n+23?(r&&!i||(a=!0,u=e-(o?0:1)),c=t-u+1):(e>3&&(u=e-(r?0:2),a=!(r&&!i),s=!(r&&!o)),c=n-Qr(u/2)),c<1?(c=1,a=!1):c>t-u&&(c=t-u+1,s=!1),a&&i&&c<4&&(u+=2,c=1,a=!1);var l=c+u-1;return s&&o&&l>t-3&&(u+=l===t-2?2:3,s=!1),e<=3&&(i&&1===c?u=Kr(u+1,t,e+1):o&&t===c+u-1&&(c=Gr(c-1,1),u=Kr(t-c+1,t,e+1))),{showFirstDots:a,showLastDots:s,numberOfLinks:u=Kr(u,t-c+1),startNumber:c}},pageList:function(){var e=this.paginationParams,t=e.numberOfLinks,n=e.startNumber,r=this.computedCurrentPage,i=function(e,t){return Jt(t,function(t,n){return{number:e+n,classes:null}})}(n,t);if(i.length>3){var o=r-n,a="bv-d-xs-down-none";if(0===o)for(var s=3;so+1;l--)i[l].classes=a}}return i}},watch:(UV={},QV(UV,t$,function(e,t){e!==t&&(this.currentPage=i$(e,this.localNumberOfPages))}),QV(UV,"currentPage",function(e,t){e!==t&&this.$emit(n$,e>0?e:null)}),QV(UV,"limit",function(e,t){e!==t&&(this.localLimit=r$(e))}),UV),created:function(){var e=this;this.localLimit=r$(this.limit),this.$nextTick(function(){e.currentPage=e.currentPage>e.localNumberOfPages?e.localNumberOfPages:e.currentPage})},methods:{handleKeyNav:function(e){var t=e.keyCode,n=e.shiftKey;this.isNav||(t===tk||t===ik?(wr(e,{propagation:!1}),n?this.focusFirst():this.focusPrev()):t!==nk&&t!==QL||(wr(e,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return Sn("button.page-link, a.page-link",this.$el).filter(function(e){return bn(e)})},focusCurrent:function(){var e=this;this.$nextTick(function(){var t=e.getButtons().find(function(t){return Qt(Pn(t,"aria-posinset"),0)===e.computedCurrentPage});$n(t)||e.focusFirst()})},focusFirst:function(){var e=this;this.$nextTick(function(){var t=e.getButtons().find(function(e){return!wn(e)});$n(t)})},focusLast:function(){var e=this;this.$nextTick(function(){var t=e.getButtons().reverse().find(function(e){return!wn(e)});$n(t)})},focusPrev:function(){var e=this;this.$nextTick(function(){var t=e.getButtons(),n=t.indexOf(vn());n>0&&!wn(t[n-1])&&$n(t[n-1])})},focusNext:function(){var e=this;this.$nextTick(function(){var t=e.getButtons(),n=t.indexOf(vn());na,v=r<1?1:r>a?a:r,g={disabled:f,page:v,index:v-1},y=t.normalizeSlot(s,g)||an(u)||e(),b=e(f?"span":o?Sk:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!f&&p},props:f||!o?{}:t.linkProps(r),attrs:{role:o?null:"menuitem",type:o||f?null:"button",tabindex:f||o?null:"-1","aria-label":i,"aria-controls":t.ariaControls||null,"aria-disabled":f?"true":null},on:f?{}:{"!click":function(e){t.onClick(e,r)},keydown:o$}},[y]);return e("li",{key:d,staticClass:"page-item",class:[{disabled:f,"flex-fill":p,"d-flex":p&&!o&&!f},c],attrs:{role:o?null:"presentation","aria-hidden":f?"true":null}},[b])},g=function(n){return e("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",p?"flex-fill":"",t.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(n?"last":"first")},[e("span",{staticClass:"page-link"},[t.normalizeSlot("ellipsis-text")||an(t.ellipsisText)||e()])])},y=function(i,s){var u=i.number,c=h(u)&&!m,l=n?null:c||m&&0===s?"0":"-1",d={role:o?null:"menuitemradio",type:o||n?null:"button","aria-disabled":n?"true":null,"aria-controls":t.ariaControls||null,"aria-label":dr(r)?r(u):"".concat(_e(r)?r():r," ").concat(u),"aria-checked":o?null:c?"true":"false","aria-current":o&&c?"page":null,"aria-posinset":o?null:u,"aria-setsize":o?null:a,tabindex:o?null:l},f=an(t.makePage(u)),v={page:u,index:u-1,content:f,active:c,disabled:n},g=e(n?"span":o?Sk:"button",{props:n||!o?{}:t.linkProps(u),staticClass:"page-link",class:{"flex-grow-1":!o&&!n&&p},attrs:d,on:n?{}:{"!click":function(e){t.onClick(e,u)},keydown:o$}},[t.normalizeSlot("page",v)||f]);return e("li",{staticClass:"page-item",class:[{disabled:n,active:c,"flex-fill":p,"d-flex":p&&!o&&!n},i.classes,t.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(u)},[g])},b=e();this.firstNumber||this.hideGotoEndButtons||(b=v(1,this.labelFirstPage,"first-text",this.firstText,this.firstClass,1,"pagination-goto-first")),f.push(b),f.push(v(s-1,this.labelPrevPage,"prev-text",this.prevText,this.prevClass,1,"pagination-goto-prev")),f.push(this.firstNumber&&1!==u[0]?y({number:1},0):e()),f.push(l?g(!1):e()),this.pageList.forEach(function(e,n){var r=l&&t.firstNumber&&1!==u[0]?1:0;f.push(y(e,n+r))}),f.push(d?g(!0):e()),f.push(this.lastNumber&&u[u.length-1]!==a?y({number:a},-1):e()),f.push(v(s+1,this.labelNextPage,"next-text",this.nextText,this.nextClass,a,"pagination-goto-next"));var w=e();this.lastNumber||this.hideGotoEndButtons||(w=v(a,this.labelLastPage,"last-text",this.lastText,this.lastClass,a,"pagination-goto-last")),f.push(w);var _=e("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":n?"true":"false","aria-label":o?null:i||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},f);return o?e("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":o&&i||null}},[_]):_}});function u$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c$(e){for(var t=1;te.numberOfPages&&(this.currentPage=1)),this.localNumberOfPages=e.numberOfPages}},created:function(){var e=this;this.localNumberOfPages=this.numberOfPages;var t=Qt(this[t$],0);t>0?this.currentPage=t:this.$nextTick(function(){e.currentPage=0})},methods:{onClick:function(e,t){var n=this;if(t!==this.currentPage){var r=e.target,i=new _O("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,t),i.defaultPrevented||(this.currentPage=t,this.$emit("change",this.currentPage),this.$nextTick(function(){bn(r)&&n.$el.contains(r)?$n(r):n.focusCurrent()}))}},makePage:function(e){return e},linkProps:function(){return{}}}}),m$=mt({components:{BPagination:h$}});function v$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g$(e){for(var t=1;t0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=(e=this.numberOfPages,Gr(Qt(e,0),1)),this.$nextTick(function(){t.guessCurrentPage()})},onClick:function(e,t){var n=this;if(t!==this.currentPage){var r=e.currentTarget||e.target,i=new _O("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,t),i.defaultPrevented||(fn(function(){n.currentPage=t,n.$emit("change",t)}),this.$nextTick(function(){Un(r)}))}},getPageInfo:function(e){if(!Me(this.pages)||0===this.pages.length||ye(this.pages[e-1])){var t="".concat(this.baseUrl).concat(e);return{link:this.useRouter?{path:t}:t,text:an(e)}}var n=this.pages[e-1];if(Ce(n)){var r=n.link;return{link:Ce(r)?r:this.useRouter?{path:r}:r,text:an(n.text||e)}}return{link:an(n),text:an(e)}},makePage:function(e){var t=this.pageGen,n=this.getPageInfo(e);return dr(t)?t(e,n):n.text},makeLink:function(e){var t=this.linkGen,n=this.getPageInfo(e);return dr(t)?t(e,n):n.link},linkProps:function(e){var t=sr(b$,this),n=this.makeLink(e);return this.useRouter||Ce(n)?t.to=n:t.href=n,t},resolveLink:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{(e=document.createElement("a")).href=di({to:t},"a","/","/"),document.body.appendChild(e);var n=e,r=n.pathname,i=n.hash,o=n.search;return document.body.removeChild(e),{path:r,hash:i,query:ui(o)}}catch(t){try{e&&e.parentNode&&e.parentNode.removeChild(e)}catch(e){}return{}}},resolveRoute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var t=this.$router.resolve(e,this.$route).route;return{path:t.path,hash:t.hash,query:t.query}}catch(e){return{}}},guessCurrentPage:function(){var e=this.$router,t=this.$route,n=this.computedValue;if(!this.noPageDetect&&!n&&(h||!h&&e))for(var r=e&&t?{path:t.path,hash:t.hash,query:t.query}:{},i=h?window.location||document.location:null,o=i?{path:i.pathname,hash:i.hash,query:ui(i.search)}:{},a=1;!n&&a<=this.localNumberOfPages;a++){var s=this.makeLink(a);n=e&&(Ce(s)||this.useRouter)?ok(this.resolveRoute(s),r)?a:null:h?ok(this.resolveLink(s),o)?a:null:-1}this.currentPage=n>0?n:0}}}),S$=mt({components:{BPaginationNav:_$}}),x$={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},E$={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},T$={arrowPadding:or(Vt,6),boundary:or([pe,At],"scrollParent"),boundaryPadding:or(Vt,5),fallbackPlacement:or(Nt,"flip"),offset:or(Vt,0),placement:or(At,"top"),target:or([pe,fe])},M$=r.default.extend({name:"BVPopper",props:T$,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var e=this,t=this.placement;return{placement:this.getAttachment(t),modifiers:{offset:{offset:this.getOffset(t)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e.popperPlacementChange(t)},onUpdate:function(t){e.popperPlacementChange(t)}}}},created:function(){var e=this;this.$_popper=null,this.localShow=!0,this.$on("show",function(t){e.popperCreate(t)});var t=function(){e.$nextTick(function(){fn(function(){e.$destroy()})})};this.$parent.$once("hook:destroyed",t),this.$once("hidden",t)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},methods:{hide:function(){this.localShow=!1},getAttachment:function(e){return x$[String(e).toUpperCase()]||"auto"},getOffset:function(e){if(!this.offset){var t=this.$refs.arrow||xn(".arrow",this.$el),n=Xt(Fn(t).width,0)+Xt(this.arrowPadding,0);switch(E$[String(e).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(e){this.destroyPopper(),this.$_popper=new bO.a(this.target,e,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(e){this.attachment=this.getAttachment(e.placement)},renderTemplate:function(e){return e("div")}},render:function(e){var t=this,n=this.noFade;return e(Pr,{props:{appear:!0,noFade:n},on:{beforeEnter:function(e){return t.$emit("show",e)},afterEnter:function(e){return t.$emit("shown",e)},beforeLeave:function(e){return t.$emit("hide",e)},afterLeave:function(e){return t.$emit("hidden",e)}}},[this.localShow?this.renderTemplate(e):e()])}});function C$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I$(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=!1;Be(B$).forEach(function(r){ye(t[r])||e[r]===t[r]||(e[r]=t[r],"title"===r&&(n=!0))}),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var e=this.getContainer(),t=this.getTemplate(),n=this.$_tip=new t({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:Qt(this.offset,0),arrowPadding:Qt(this.arrowPadding,0),boundaryPadding:Qt(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once("show",this.onTemplateShow),n.$once("shown",this.onTemplateShown),n.$once("hide",this.onTemplateHide),n.$once("hidden",this.onTemplateHidden),n.$once("hook:destroyed",this.destroyTemplate),n.$on("focusin",this.handleEvent),n.$on("focusout",this.handleEvent),n.$on("mouseenter",this.handleEvent),n.$on("mouseleave",this.handleEvent),n.$mount(e.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(e){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var e=this,t=this.$_tip;if(t){["title","content","variant","customClass","noFade","interactive"].forEach(function(n){t[n]!==e[n]&&(t[n]=e[n])})}},show:function(){var e=this.getTarget();if(e&&Mn(document.body,e)&&bn(e)&&!this.dropdownOpen()&&(!we(this.title)&&""!==this.title||!we(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var t=this.buildEvent("show",{cancelable:!0});this.emitEvent(t),t.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.getTemplateElement()&&this.localShow){var t=this.buildEvent("hide",{cancelable:!e});this.emitEvent(t),t.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent("enabled"))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent("disabled"))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var e=this.$_hoverState;this.$_hoverState="","out"===e&&this.leave(null),this.emitEvent(this.buildEvent("shown"))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent("hidden"))},getTarget:function(){var e=this.target;return xe(e)?e=Cn(e.replace(/^#/,"")):_e(e)?e=e():e&&(e=e.$el||e),mn(e)?e:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var e=this.getTarget();return e&&e.id?e.id:null},getContainer:function(){var e=!!this.container&&(this.container.$el||this.container),t=document.body,n=this.getTarget();return!1===e?Tn(F$,n)||t:xe(e)&&Cn(e.replace(/^#/,""))||t},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var e=this.getTarget();return e&&Tn(R$,e)},isDropdown:function(){var e=this.getTarget();return e&&kn(e,"dropdown")},dropdownOpen:function(){var e=this.getTarget();return this.isDropdown()&&e&&xn(".dropdown-menu.show",e)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var e in this.activeTrigger)this.activeTrigger[e]=!1},addAriaDescribedby:function(){var e=this.getTarget(),t=Pn(e,"aria-describedby")||"";t=t.split(/\s+/).concat(this.computedId).join(" ").trim(),zn(e,"aria-describedby",t)},removeAriaDescribedby:function(){var e=this,t=this.getTarget(),n=Pn(t,"aria-describedby")||"";(n=n.split(/\s+/).filter(function(t){return t!==e.computedId}).join(" ").trim())?zn(t,"aria-describedby",n):An(t,"aria-describedby")},fixTitle:function(){var e=this.getTarget();if(On(e,"title")){var t=Pn(e,"title");zn(e,"title",""),t&&zn(e,"data-original-title",t)}},restoreTitle:function(){var e=this.getTarget();if(On(e,"data-original-title")){var t=Pn(e,"data-original-title");An(e,"data-original-title"),t&&zn(e,"title",t)}},buildEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new _O(e,P$({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},t))},emitEvent:function(e){var t=e.type;this.emitOnRoot(Sr(this.templateType,t),e),this.$emit(t,e)},listen:function(){var e=this,t=this.getTarget();t&&(this.setRootListener(!0),this.computedTriggers.forEach(function(n){"click"===n?gr(t,"click",e.handleEvent,Et):"focus"===n?(gr(t,"focusin",e.handleEvent,Et),gr(t,"focusout",e.handleEvent,Et)):"blur"===n?gr(t,"focusout",e.handleEvent,Et):"hover"===n&&(gr(t,"mouseenter",e.handleEvent,Et),gr(t,"mouseleave",e.handleEvent,Et))},this))},unListen:function(){var e=this,t=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach(function(n){t&&yr(t,n,e.handleEvent,Et)},this)},setRootListener:function(e){var t=this.$root;if(t){var n=e?"$on":"$off",r=this.templateType;t[n](xr(r,"hide"),this.doHide),t[n](xr(r,"show"),this.doShow),t[n](xr(r,"disable"),this.doDisable),t[n](xr(r,"enable"),this.doEnable)}},setWhileOpenListeners:function(e){this.setModalListener(e),this.setDropdownListener(e),this.visibleCheck(e),this.setOnTouchStartListener(e)},visibleCheck:function(e){var t=this;this.clearVisibilityInterval();var n=this.getTarget();e&&(this.$_visibleInterval=setInterval(function(){!t.getTemplateElement()||!t.localShow||n.parentNode&&bn(n)||t.forceHide()},100))},setModalListener:function(e){this.isInModal()&&this.$root[e?"$on":"$off"](j$,this.forceHide)},setOnTouchStartListener:function(e){var t=this;"ontouchstart"in document.documentElement&&Yt(document.body.children).forEach(function(n){br(e,n,"mouseover",t.$_noop)})},setDropdownListener:function(e){var t=this.getTarget();t&&this.$root&&this.isDropdown&&t.__vue__&&t.__vue__[e?"$on":"$off"]("shown",this.forceHide)},handleEvent:function(e){var t=this.getTarget();if(t&&!wn(t)&&this.$_enabled&&!this.dropdownOpen()){var n=e.type,r=this.computedTriggers;if("click"===n&&Kt(r,"click"))this.click(e);else if("mouseenter"===n&&Kt(r,"hover"))this.enter(e);else if("focusin"===n&&Kt(r,"focus"))this.enter(e);else if("focusout"===n&&(Kt(r,"focus")||Kt(r,"blur"))||"mouseleave"===n&&Kt(r,"hover")){var i=this.getTemplateElement(),o=e.target,a=e.relatedTarget;if(i&&Mn(i,o)&&Mn(t,a)||i&&Mn(t,o)&&Mn(i,a)||i&&Mn(i,o)&&Mn(i,a)||Mn(t,o)&&Mn(t,a))return;this.leave(e)}}},doHide:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.forceHide()},doShow:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.show()},doDisable:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.disable()},doEnable:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.enable()},click:function(e){this.$_enabled&&!this.dropdownOpen()&&($n(e.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusin"===t.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout(function(){"in"===e.$_hoverState?e.show():e.localShow||e.restoreTitle()},this.computedDelay.show)):this.show())},leave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusout"===t.type?"focus":"hover"]=!1,"focusout"===t.type&&Kt(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout(function(){"out"===e.$_hoverState&&e.hide()},this.computedDelay.hide):this.hide())}}});function V$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=cr(($$(D$={boundary:or([pe,kt,At],"scrollParent"),boundaryPadding:or(Vt,50),container:or([pe,kt,At]),customClass:or(At),delay:or($t,50)},"disabled",or(Mt,!1)),$$(D$,"fallbackPlacement",or(Nt,"flip")),$$(D$,"id",or(At)),$$(D$,"noFade",or(Mt,!1)),$$(D$,"noninteractive",or(Mt,!1)),$$(D$,"offset",or(Vt,0)),$$(D$,"placement",or(At,"top")),$$(D$,"show",or(Mt,!1)),$$(D$,"target",or([pe,fe,It,kt,At],void 0,!0)),$$(D$,"title",or(At)),$$(D$,"triggers",or(Nt,"hover focus")),$$(D$,"variant",or(At)),D$),"BTooltip"),q$=r.default.extend({name:"BTooltip",mixins:[mr],inheritAttrs:!1,props:U$,data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return function(e){for(var t=1;t0&&e[nU].updateData(t)})}var o={title:r.title,content:r.content,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,disabled:r.disabled,html:r.html},a=e[nU].__bv_prev_data__;if(e[nU].__bv_prev_data__=o,!ok(o,a)){var s={target:e};Be(o).forEach(function(t){o[t]!==a[t]&&(s[t]="title"!==t&&"content"!==t||!_e(o[t])?o[t]:o[t](e))}),e[nU].updateData(s)}}},mU={bind:function(e,t,n){hU(e,t,n)},componentUpdated:function(e,t,n){n.context.$nextTick(function(){hU(e,t,n)})},unbind:function(e){!function(e){e[nU]&&(e[nU].$destroy(),e[nU]=null),delete e[nU]}(e)}},vU=mt({directives:{VBPopover:mU}}),gU=mt({components:{BPopover:X$},plugins:{VBPopoverPlugin:vU}}),yU=cr({animated:or(Mt,null),label:or(At),labelHtml:or(At),max:or(Vt,null),precision:or(Vt,null),showProgress:or(Mt,null),showValue:or(Mt,null),striped:or(Mt,null),value:or(Vt,0),variant:or(At)},"BProgressBar"),bU=r.default.extend({name:"BProgressBar",mixins:[mr],inject:{bvProgress:{default:function(){return{}}}},props:yU,computed:{progressBarClasses:function(){var e=this.computedAnimated,t=this.computedVariant;return[t?"bg-".concat(t):"",this.computedStriped||e?"progress-bar-striped":"",e?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return Xt(this.value,0)},computedMax:function(){var e=Xt(this.max)||Xt(this.bvProgress.max,0);return e>0?e:100},computedPrecision:function(){return Gr(Qt(this.precision,Qt(this.bvProgress.precision,0)),0)},computedProgress:function(){var e=this.computedPrecision,t=Xr(10,e);return Zt(100*t*this.computedValue/this.computedMax/t,e)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return Se(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return Se(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return Se(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return Se(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(e){var t,n=this.label,r=this.labelHtml,i=this.computedValue,o=this.computedPrecision,a={};return this.hasNormalizedSlot()?t=this.normalizeSlot():n||r?a=Zk(r,n):this.computedShowProgress?t=this.computedProgress:this.computedShowValue&&(t=Zt(i,o)),e("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":an(this.computedMax),"aria-valuenow":Zt(i,o)},domProps:a},t)}});function wU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _U(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||e.fullPath===t.fullPath||this.hide()}),xU),created:function(){this.$_returnFocusEl=null},mounted:function(){var e=this;this.listenOnRoot(AU,this.handleToggle),this.listenOnRoot(zU,this.handleSync),this.$nextTick(function(){e.emitState(e.localShow)})},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(PU,this.safeId(),e)},emitSync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(OU,this.safeId(),e)},handleToggle:function(e){e&&e===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(e){var t=this;e&&e===this.safeId()&&this.$nextTick(function(){t.emitSync(t.localShow)})},onKeydown:function(e){var t=e.keyCode;!this.noCloseOnEsc&&27===t&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var e=Vn(this.$refs.content);this.enforceFocus(e.reverse()[0])},onBottomTrapFocus:function(){var e=Vn(this.$refs.content);this.enforceFocus(e[0])},onBeforeEnter:function(){this.$_returnFocusEl=vn(h?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(e){Mn(e,vn())||this.enforceFocus(e),this.$emit("shown")},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit("hidden")},enforceFocus:function(e){this.noEnforceFocus||$n(e)}},render:function(e){var t,n=this.bgVariant,r=this.width,i=this.textVariant,o=this.localShow,a=""===this.shadow||this.shadow,s=e(this.tag,{staticClass:"b-sidebar",class:[(t={shadow:!0===a},kU(t,"shadow-".concat(a),a&&!0!==a),kU(t,"".concat("b-sidebar","-right"),this.right),kU(t,"bg-".concat(n),n),kU(t,"text-".concat(i),i),t),this.sidebarClass],style:{width:r},attrs:this.computedAttrs,directives:[{name:"show",value:o}],ref:"content"},[function(e,t){var n=HU(e,t);return t.lazy&&!t.isOpen?n:[n,function(e,t){return e("div",{staticClass:"".concat("b-sidebar","-body"),class:t.bodyClass,key:"body"},[t.normalizeSlot("default",t.slotScope)])}(e,t),function(e,t){var n=t.normalizeSlot("footer",t.slotScope);return n?e(t.footerTag,{staticClass:"".concat("b-sidebar","-footer"),class:t.footerClass,key:"footer"},[n]):e()}(e,t)]}(e,this)]);s=e("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[s]);var u=e(Pr,{props:{noFade:this.noSlide}},[function(e,t){if(!t.backdrop)return e();var n=t.backdropVariant;return e("div",{directives:[{name:"show",value:t.localShow}],staticClass:"b-sidebar-backdrop",class:kU({},"bg-".concat(n),n),on:{click:t.onBackdropClick}})}(e,this)]),c=e(),l=e();return this.backdrop&&o&&(c=e("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),l=e("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),e("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[c,s,l,u])}}),$U=mt({components:{BSidebar:VU},plugins:{VBTogglePlugin:gO}});function UU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qU=cr({animation:or(At,"wave"),height:or(At),size:or(At),type:or(At,"text"),variant:or(At),width:or(At)},"BSkeleton"),YU=r.default.extend({name:"BSkeleton",functional:!0,props:qU,render:function(e,t){var n,r=t.data,i=t.props,o=i.size,a=i.animation,s=i.variant;return e("div",u(r,{staticClass:"b-skeleton",style:{width:o||i.width,height:o||i.height},class:(n={},UU(n,"b-skeleton-".concat(i.type),!0),UU(n,"b-skeleton-animate-".concat(a),a),UU(n,"bg-".concat(s),s),n)}))}}),KU=cr(Ue(mi,["content","stacked"]),"BIconstack"),GU=r.default.extend({name:"BIconstack",functional:!0,props:KU,render:function(e,t){var n=t.data,r=t.props,i=t.children;return e(vi,u(n,{staticClass:"b-iconstack",props:r}),i)}}),JU=vt({components:{BIcon:WL,BIconstack:GU,BIconBlank:Si,BIconAlarm:xi,BIconAlarmFill:Ei,BIconAlignBottom:Ti,BIconAlignCenter:Mi,BIconAlignEnd:Ci,BIconAlignMiddle:Ii,BIconAlignStart:Li,BIconAlignTop:ki,BIconAlt:zi,BIconApp:Ai,BIconAppIndicator:Pi,BIconArchive:Oi,BIconArchiveFill:Di,BIconArrow90degDown:Ni,BIconArrow90degLeft:Ri,BIconArrow90degRight:ji,BIconArrow90degUp:Fi,BIconArrowBarDown:Bi,BIconArrowBarLeft:Hi,BIconArrowBarRight:Vi,BIconArrowBarUp:$i,BIconArrowClockwise:Ui,BIconArrowCounterclockwise:qi,BIconArrowDown:Yi,BIconArrowDownCircle:Ki,BIconArrowDownCircleFill:Gi,BIconArrowDownLeft:Ji,BIconArrowDownLeftCircle:Wi,BIconArrowDownLeftCircleFill:Qi,BIconArrowDownLeftSquare:Xi,BIconArrowDownLeftSquareFill:Zi,BIconArrowDownRight:eo,BIconArrowDownRightCircle:to,BIconArrowDownRightCircleFill:no,BIconArrowDownRightSquare:ro,BIconArrowDownRightSquareFill:io,BIconArrowDownShort:oo,BIconArrowDownSquare:ao,BIconArrowDownSquareFill:so,BIconArrowDownUp:uo,BIconArrowLeft:co,BIconArrowLeftCircle:lo,BIconArrowLeftCircleFill:po,BIconArrowLeftRight:fo,BIconArrowLeftShort:ho,BIconArrowLeftSquare:mo,BIconArrowLeftSquareFill:vo,BIconArrowRepeat:go,BIconArrowReturnLeft:yo,BIconArrowReturnRight:bo,BIconArrowRight:wo,BIconArrowRightCircle:_o,BIconArrowRightCircleFill:So,BIconArrowRightShort:xo,BIconArrowRightSquare:Eo,BIconArrowRightSquareFill:To,BIconArrowUp:Mo,BIconArrowUpCircle:Co,BIconArrowUpCircleFill:Io,BIconArrowUpLeft:Lo,BIconArrowUpLeftCircle:ko,BIconArrowUpLeftCircleFill:zo,BIconArrowUpLeftSquare:Ao,BIconArrowUpLeftSquareFill:Po,BIconArrowUpRight:Oo,BIconArrowUpRightCircle:Do,BIconArrowUpRightCircleFill:No,BIconArrowUpRightSquare:Ro,BIconArrowUpRightSquareFill:jo,BIconArrowUpShort:Fo,BIconArrowUpSquare:Bo,BIconArrowUpSquareFill:Ho,BIconArrowsAngleContract:Vo,BIconArrowsAngleExpand:$o,BIconArrowsCollapse:Uo,BIconArrowsExpand:qo,BIconArrowsFullscreen:Yo,BIconArrowsMove:Ko,BIconAspectRatio:Go,BIconAspectRatioFill:Jo,BIconAsterisk:Wo,BIconAt:Qo,BIconAward:Xo,BIconAwardFill:Zo,BIconBack:ea,BIconBackspace:ta,BIconBackspaceFill:na,BIconBackspaceReverse:ra,BIconBackspaceReverseFill:ia,BIconBadge3d:oa,BIconBadge3dFill:aa,BIconBadge4k:sa,BIconBadge4kFill:ua,BIconBadge8k:ca,BIconBadge8kFill:la,BIconBadgeAd:da,BIconBadgeAdFill:pa,BIconBadgeAr:fa,BIconBadgeArFill:ha,BIconBadgeCc:ma,BIconBadgeCcFill:va,BIconBadgeHd:ga,BIconBadgeHdFill:ya,BIconBadgeTm:ba,BIconBadgeTmFill:wa,BIconBadgeVo:_a,BIconBadgeVoFill:Sa,BIconBadgeVr:xa,BIconBadgeVrFill:Ea,BIconBadgeWc:Ta,BIconBadgeWcFill:Ma,BIconBag:Ca,BIconBagCheck:Ia,BIconBagCheckFill:La,BIconBagDash:ka,BIconBagDashFill:za,BIconBagFill:Aa,BIconBagPlus:Pa,BIconBagPlusFill:Oa,BIconBagX:Da,BIconBagXFill:Na,BIconBank:Ra,BIconBank2:ja,BIconBarChart:Fa,BIconBarChartFill:Ba,BIconBarChartLine:Ha,BIconBarChartLineFill:Va,BIconBarChartSteps:$a,BIconBasket:Ua,BIconBasket2:qa,BIconBasket2Fill:Ya,BIconBasket3:Ka,BIconBasket3Fill:Ga,BIconBasketFill:Ja,BIconBattery:Wa,BIconBatteryCharging:Qa,BIconBatteryFull:Xa,BIconBatteryHalf:Za,BIconBell:es,BIconBellFill:ts,BIconBellSlash:ns,BIconBellSlashFill:rs,BIconBezier:is,BIconBezier2:os,BIconBicycle:as,BIconBinoculars:ss,BIconBinocularsFill:us,BIconBlockquoteLeft:cs,BIconBlockquoteRight:ls,BIconBook:ds,BIconBookFill:ps,BIconBookHalf:fs,BIconBookmark:hs,BIconBookmarkCheck:ms,BIconBookmarkCheckFill:vs,BIconBookmarkDash:gs,BIconBookmarkDashFill:ys,BIconBookmarkFill:bs,BIconBookmarkHeart:ws,BIconBookmarkHeartFill:_s,BIconBookmarkPlus:Ss,BIconBookmarkPlusFill:xs,BIconBookmarkStar:Es,BIconBookmarkStarFill:Ts,BIconBookmarkX:Ms,BIconBookmarkXFill:Cs,BIconBookmarks:Is,BIconBookmarksFill:Ls,BIconBookshelf:ks,BIconBootstrap:zs,BIconBootstrapFill:As,BIconBootstrapReboot:Ps,BIconBorder:Os,BIconBorderAll:Ds,BIconBorderBottom:Ns,BIconBorderCenter:Rs,BIconBorderInner:js,BIconBorderLeft:Fs,BIconBorderMiddle:Bs,BIconBorderOuter:Hs,BIconBorderRight:Vs,BIconBorderStyle:$s,BIconBorderTop:Us,BIconBorderWidth:qs,BIconBoundingBox:Ys,BIconBoundingBoxCircles:Ks,BIconBox:Gs,BIconBoxArrowDown:Js,BIconBoxArrowDownLeft:Ws,BIconBoxArrowDownRight:Qs,BIconBoxArrowInDown:Xs,BIconBoxArrowInDownLeft:Zs,BIconBoxArrowInDownRight:eu,BIconBoxArrowInLeft:tu,BIconBoxArrowInRight:nu,BIconBoxArrowInUp:ru,BIconBoxArrowInUpLeft:iu,BIconBoxArrowInUpRight:ou,BIconBoxArrowLeft:au,BIconBoxArrowRight:su,BIconBoxArrowUp:uu,BIconBoxArrowUpLeft:cu,BIconBoxArrowUpRight:lu,BIconBoxSeam:du,BIconBraces:pu,BIconBricks:fu,BIconBriefcase:hu,BIconBriefcaseFill:mu,BIconBrightnessAltHigh:vu,BIconBrightnessAltHighFill:gu,BIconBrightnessAltLow:yu,BIconBrightnessAltLowFill:bu,BIconBrightnessHigh:wu,BIconBrightnessHighFill:_u,BIconBrightnessLow:Su,BIconBrightnessLowFill:xu,BIconBroadcast:Eu,BIconBroadcastPin:Tu,BIconBrush:Mu,BIconBrushFill:Cu,BIconBucket:Iu,BIconBucketFill:Lu,BIconBug:ku,BIconBugFill:zu,BIconBuilding:Au,BIconBullseye:Pu,BIconCalculator:Ou,BIconCalculatorFill:Du,BIconCalendar:Nu,BIconCalendar2:Ru,BIconCalendar2Check:ju,BIconCalendar2CheckFill:Fu,BIconCalendar2Date:Bu,BIconCalendar2DateFill:Hu,BIconCalendar2Day:Vu,BIconCalendar2DayFill:$u,BIconCalendar2Event:Uu,BIconCalendar2EventFill:qu,BIconCalendar2Fill:Yu,BIconCalendar2Minus:Ku,BIconCalendar2MinusFill:Gu,BIconCalendar2Month:Ju,BIconCalendar2MonthFill:Wu,BIconCalendar2Plus:Qu,BIconCalendar2PlusFill:Xu,BIconCalendar2Range:Zu,BIconCalendar2RangeFill:ec,BIconCalendar2Week:tc,BIconCalendar2WeekFill:nc,BIconCalendar2X:rc,BIconCalendar2XFill:ic,BIconCalendar3:oc,BIconCalendar3Event:ac,BIconCalendar3EventFill:sc,BIconCalendar3Fill:uc,BIconCalendar3Range:cc,BIconCalendar3RangeFill:lc,BIconCalendar3Week:dc,BIconCalendar3WeekFill:pc,BIconCalendar4:fc,BIconCalendar4Event:hc,BIconCalendar4Range:mc,BIconCalendar4Week:vc,BIconCalendarCheck:gc,BIconCalendarCheckFill:yc,BIconCalendarDate:bc,BIconCalendarDateFill:wc,BIconCalendarDay:_c,BIconCalendarDayFill:Sc,BIconCalendarEvent:xc,BIconCalendarEventFill:Ec,BIconCalendarFill:Tc,BIconCalendarMinus:Mc,BIconCalendarMinusFill:Cc,BIconCalendarMonth:Ic,BIconCalendarMonthFill:Lc,BIconCalendarPlus:kc,BIconCalendarPlusFill:zc,BIconCalendarRange:Ac,BIconCalendarRangeFill:Pc,BIconCalendarWeek:Oc,BIconCalendarWeekFill:Dc,BIconCalendarX:Nc,BIconCalendarXFill:Rc,BIconCamera:jc,BIconCamera2:Fc,BIconCameraFill:Bc,BIconCameraReels:Hc,BIconCameraReelsFill:Vc,BIconCameraVideo:$c,BIconCameraVideoFill:Uc,BIconCameraVideoOff:qc,BIconCameraVideoOffFill:Yc,BIconCapslock:Kc,BIconCapslockFill:Gc,BIconCardChecklist:Jc,BIconCardHeading:Wc,BIconCardImage:Qc,BIconCardList:Xc,BIconCardText:Zc,BIconCaretDown:el,BIconCaretDownFill:tl,BIconCaretDownSquare:nl,BIconCaretDownSquareFill:rl,BIconCaretLeft:il,BIconCaretLeftFill:ol,BIconCaretLeftSquare:al,BIconCaretLeftSquareFill:sl,BIconCaretRight:ul,BIconCaretRightFill:cl,BIconCaretRightSquare:ll,BIconCaretRightSquareFill:dl,BIconCaretUp:pl,BIconCaretUpFill:fl,BIconCaretUpSquare:hl,BIconCaretUpSquareFill:ml,BIconCart:vl,BIconCart2:gl,BIconCart3:yl,BIconCart4:bl,BIconCartCheck:wl,BIconCartCheckFill:_l,BIconCartDash:Sl,BIconCartDashFill:xl,BIconCartFill:El,BIconCartPlus:Tl,BIconCartPlusFill:Ml,BIconCartX:Cl,BIconCartXFill:Il,BIconCash:Ll,BIconCashCoin:kl,BIconCashStack:zl,BIconCast:Al,BIconChat:Pl,BIconChatDots:Ol,BIconChatDotsFill:Dl,BIconChatFill:Nl,BIconChatLeft:Rl,BIconChatLeftDots:jl,BIconChatLeftDotsFill:Fl,BIconChatLeftFill:Bl,BIconChatLeftQuote:Hl,BIconChatLeftQuoteFill:Vl,BIconChatLeftText:$l,BIconChatLeftTextFill:Ul,BIconChatQuote:ql,BIconChatQuoteFill:Yl,BIconChatRight:Kl,BIconChatRightDots:Gl,BIconChatRightDotsFill:Jl,BIconChatRightFill:Wl,BIconChatRightQuote:Ql,BIconChatRightQuoteFill:Xl,BIconChatRightText:Zl,BIconChatRightTextFill:ed,BIconChatSquare:td,BIconChatSquareDots:nd,BIconChatSquareDotsFill:rd,BIconChatSquareFill:id,BIconChatSquareQuote:od,BIconChatSquareQuoteFill:ad,BIconChatSquareText:sd,BIconChatSquareTextFill:ud,BIconChatText:cd,BIconChatTextFill:ld,BIconCheck:dd,BIconCheck2:pd,BIconCheck2All:fd,BIconCheck2Circle:hd,BIconCheck2Square:md,BIconCheckAll:vd,BIconCheckCircle:gd,BIconCheckCircleFill:yd,BIconCheckLg:bd,BIconCheckSquare:wd,BIconCheckSquareFill:_d,BIconChevronBarContract:Sd,BIconChevronBarDown:xd,BIconChevronBarExpand:Ed,BIconChevronBarLeft:Td,BIconChevronBarRight:Md,BIconChevronBarUp:Cd,BIconChevronCompactDown:Id,BIconChevronCompactLeft:Ld,BIconChevronCompactRight:kd,BIconChevronCompactUp:zd,BIconChevronContract:Ad,BIconChevronDoubleDown:Pd,BIconChevronDoubleLeft:Od,BIconChevronDoubleRight:Dd,BIconChevronDoubleUp:Nd,BIconChevronDown:Rd,BIconChevronExpand:jd,BIconChevronLeft:Fd,BIconChevronRight:Bd,BIconChevronUp:Hd,BIconCircle:Vd,BIconCircleFill:$d,BIconCircleHalf:Ud,BIconCircleSquare:qd,BIconClipboard:Yd,BIconClipboardCheck:Kd,BIconClipboardData:Gd,BIconClipboardMinus:Jd,BIconClipboardPlus:Wd,BIconClipboardX:Qd,BIconClock:Xd,BIconClockFill:Zd,BIconClockHistory:ep,BIconCloud:tp,BIconCloudArrowDown:np,BIconCloudArrowDownFill:rp,BIconCloudArrowUp:ip,BIconCloudArrowUpFill:op,BIconCloudCheck:ap,BIconCloudCheckFill:sp,BIconCloudDownload:up,BIconCloudDownloadFill:cp,BIconCloudDrizzle:lp,BIconCloudDrizzleFill:dp,BIconCloudFill:pp,BIconCloudFog:fp,BIconCloudFog2:hp,BIconCloudFog2Fill:mp,BIconCloudFogFill:vp,BIconCloudHail:gp,BIconCloudHailFill:yp,BIconCloudHaze:bp,BIconCloudHaze1:wp,BIconCloudHaze2Fill:_p,BIconCloudHazeFill:Sp,BIconCloudLightning:xp,BIconCloudLightningFill:Ep,BIconCloudLightningRain:Tp,BIconCloudLightningRainFill:Mp,BIconCloudMinus:Cp,BIconCloudMinusFill:Ip,BIconCloudMoon:Lp,BIconCloudMoonFill:kp,BIconCloudPlus:zp,BIconCloudPlusFill:Ap,BIconCloudRain:Pp,BIconCloudRainFill:Op,BIconCloudRainHeavy:Dp,BIconCloudRainHeavyFill:Np,BIconCloudSlash:Rp,BIconCloudSlashFill:jp,BIconCloudSleet:Fp,BIconCloudSleetFill:Bp,BIconCloudSnow:Hp,BIconCloudSnowFill:Vp,BIconCloudSun:$p,BIconCloudSunFill:Up,BIconCloudUpload:qp,BIconCloudUploadFill:Yp,BIconClouds:Kp,BIconCloudsFill:Gp,BIconCloudy:Jp,BIconCloudyFill:Wp,BIconCode:Qp,BIconCodeSlash:Xp,BIconCodeSquare:Zp,BIconCoin:ef,BIconCollection:tf,BIconCollectionFill:nf,BIconCollectionPlay:rf,BIconCollectionPlayFill:of,BIconColumns:af,BIconColumnsGap:sf,BIconCommand:uf,BIconCompass:cf,BIconCompassFill:lf,BIconCone:df,BIconConeStriped:pf,BIconController:ff,BIconCpu:hf,BIconCpuFill:mf,BIconCreditCard:vf,BIconCreditCard2Back:gf,BIconCreditCard2BackFill:yf,BIconCreditCard2Front:bf,BIconCreditCard2FrontFill:wf,BIconCreditCardFill:_f,BIconCrop:Sf,BIconCup:xf,BIconCupFill:Ef,BIconCupStraw:Tf,BIconCurrencyBitcoin:Mf,BIconCurrencyDollar:Cf,BIconCurrencyEuro:If,BIconCurrencyExchange:Lf,BIconCurrencyPound:kf,BIconCurrencyYen:zf,BIconCursor:Af,BIconCursorFill:Pf,BIconCursorText:Of,BIconDash:Df,BIconDashCircle:Nf,BIconDashCircleDotted:Rf,BIconDashCircleFill:jf,BIconDashLg:Ff,BIconDashSquare:Bf,BIconDashSquareDotted:Hf,BIconDashSquareFill:Vf,BIconDiagram2:$f,BIconDiagram2Fill:Uf,BIconDiagram3:qf,BIconDiagram3Fill:Yf,BIconDiamond:Kf,BIconDiamondFill:Gf,BIconDiamondHalf:Jf,BIconDice1:Wf,BIconDice1Fill:Qf,BIconDice2:Xf,BIconDice2Fill:Zf,BIconDice3:eh,BIconDice3Fill:th,BIconDice4:nh,BIconDice4Fill:rh,BIconDice5:ih,BIconDice5Fill:oh,BIconDice6:ah,BIconDice6Fill:sh,BIconDisc:uh,BIconDiscFill:ch,BIconDiscord:lh,BIconDisplay:dh,BIconDisplayFill:ph,BIconDistributeHorizontal:fh,BIconDistributeVertical:hh,BIconDoorClosed:mh,BIconDoorClosedFill:vh,BIconDoorOpen:gh,BIconDoorOpenFill:yh,BIconDot:bh,BIconDownload:wh,BIconDroplet:_h,BIconDropletFill:Sh,BIconDropletHalf:xh,BIconEarbuds:Eh,BIconEasel:Th,BIconEaselFill:Mh,BIconEgg:Ch,BIconEggFill:Ih,BIconEggFried:Lh,BIconEject:kh,BIconEjectFill:zh,BIconEmojiAngry:Ah,BIconEmojiAngryFill:Ph,BIconEmojiDizzy:Oh,BIconEmojiDizzyFill:Dh,BIconEmojiExpressionless:Nh,BIconEmojiExpressionlessFill:Rh,BIconEmojiFrown:jh,BIconEmojiFrownFill:Fh,BIconEmojiHeartEyes:Bh,BIconEmojiHeartEyesFill:Hh,BIconEmojiLaughing:Vh,BIconEmojiLaughingFill:$h,BIconEmojiNeutral:Uh,BIconEmojiNeutralFill:qh,BIconEmojiSmile:Yh,BIconEmojiSmileFill:Kh,BIconEmojiSmileUpsideDown:Gh,BIconEmojiSmileUpsideDownFill:Jh,BIconEmojiSunglasses:Wh,BIconEmojiSunglassesFill:Qh,BIconEmojiWink:Xh,BIconEmojiWinkFill:Zh,BIconEnvelope:em,BIconEnvelopeFill:tm,BIconEnvelopeOpen:nm,BIconEnvelopeOpenFill:rm,BIconEraser:im,BIconEraserFill:om,BIconExclamation:am,BIconExclamationCircle:sm,BIconExclamationCircleFill:um,BIconExclamationDiamond:cm,BIconExclamationDiamondFill:lm,BIconExclamationLg:dm,BIconExclamationOctagon:pm,BIconExclamationOctagonFill:fm,BIconExclamationSquare:hm,BIconExclamationSquareFill:mm,BIconExclamationTriangle:vm,BIconExclamationTriangleFill:gm,BIconExclude:ym,BIconEye:bm,BIconEyeFill:wm,BIconEyeSlash:_m,BIconEyeSlashFill:Sm,BIconEyedropper:xm,BIconEyeglasses:Em,BIconFacebook:Tm,BIconFile:Mm,BIconFileArrowDown:Cm,BIconFileArrowDownFill:Im,BIconFileArrowUp:Lm,BIconFileArrowUpFill:km,BIconFileBarGraph:zm,BIconFileBarGraphFill:Am,BIconFileBinary:Pm,BIconFileBinaryFill:Om,BIconFileBreak:Dm,BIconFileBreakFill:Nm,BIconFileCheck:Rm,BIconFileCheckFill:jm,BIconFileCode:Fm,BIconFileCodeFill:Bm,BIconFileDiff:Hm,BIconFileDiffFill:Vm,BIconFileEarmark:$m,BIconFileEarmarkArrowDown:Um,BIconFileEarmarkArrowDownFill:qm,BIconFileEarmarkArrowUp:Ym,BIconFileEarmarkArrowUpFill:Km,BIconFileEarmarkBarGraph:Gm,BIconFileEarmarkBarGraphFill:Jm,BIconFileEarmarkBinary:Wm,BIconFileEarmarkBinaryFill:Qm,BIconFileEarmarkBreak:Xm,BIconFileEarmarkBreakFill:Zm,BIconFileEarmarkCheck:ev,BIconFileEarmarkCheckFill:tv,BIconFileEarmarkCode:nv,BIconFileEarmarkCodeFill:rv,BIconFileEarmarkDiff:iv,BIconFileEarmarkDiffFill:ov,BIconFileEarmarkEasel:av,BIconFileEarmarkEaselFill:sv,BIconFileEarmarkExcel:uv,BIconFileEarmarkExcelFill:cv,BIconFileEarmarkFill:lv,BIconFileEarmarkFont:dv,BIconFileEarmarkFontFill:pv,BIconFileEarmarkImage:fv,BIconFileEarmarkImageFill:hv,BIconFileEarmarkLock:mv,BIconFileEarmarkLock2:vv,BIconFileEarmarkLock2Fill:gv,BIconFileEarmarkLockFill:yv,BIconFileEarmarkMedical:bv,BIconFileEarmarkMedicalFill:wv,BIconFileEarmarkMinus:_v,BIconFileEarmarkMinusFill:Sv,BIconFileEarmarkMusic:xv,BIconFileEarmarkMusicFill:Ev,BIconFileEarmarkPdf:Tv,BIconFileEarmarkPdfFill:Mv,BIconFileEarmarkPerson:Cv,BIconFileEarmarkPersonFill:Iv,BIconFileEarmarkPlay:Lv,BIconFileEarmarkPlayFill:kv,BIconFileEarmarkPlus:zv,BIconFileEarmarkPlusFill:Av,BIconFileEarmarkPost:Pv,BIconFileEarmarkPostFill:Ov,BIconFileEarmarkPpt:Dv,BIconFileEarmarkPptFill:Nv,BIconFileEarmarkRichtext:Rv,BIconFileEarmarkRichtextFill:jv,BIconFileEarmarkRuled:Fv,BIconFileEarmarkRuledFill:Bv,BIconFileEarmarkSlides:Hv,BIconFileEarmarkSlidesFill:Vv,BIconFileEarmarkSpreadsheet:$v,BIconFileEarmarkSpreadsheetFill:Uv,BIconFileEarmarkText:qv,BIconFileEarmarkTextFill:Yv,BIconFileEarmarkWord:Kv,BIconFileEarmarkWordFill:Gv,BIconFileEarmarkX:Jv,BIconFileEarmarkXFill:Wv,BIconFileEarmarkZip:Qv,BIconFileEarmarkZipFill:Xv,BIconFileEasel:Zv,BIconFileEaselFill:eg,BIconFileExcel:tg,BIconFileExcelFill:ng,BIconFileFill:rg,BIconFileFont:ig,BIconFileFontFill:og,BIconFileImage:ag,BIconFileImageFill:sg,BIconFileLock:ug,BIconFileLock2:cg,BIconFileLock2Fill:lg,BIconFileLockFill:dg,BIconFileMedical:pg,BIconFileMedicalFill:fg,BIconFileMinus:hg,BIconFileMinusFill:mg,BIconFileMusic:vg,BIconFileMusicFill:gg,BIconFilePdf:yg,BIconFilePdfFill:bg,BIconFilePerson:wg,BIconFilePersonFill:_g,BIconFilePlay:Sg,BIconFilePlayFill:xg,BIconFilePlus:Eg,BIconFilePlusFill:Tg,BIconFilePost:Mg,BIconFilePostFill:Cg,BIconFilePpt:Ig,BIconFilePptFill:Lg,BIconFileRichtext:kg,BIconFileRichtextFill:zg,BIconFileRuled:Ag,BIconFileRuledFill:Pg,BIconFileSlides:Og,BIconFileSlidesFill:Dg,BIconFileSpreadsheet:Ng,BIconFileSpreadsheetFill:Rg,BIconFileText:jg,BIconFileTextFill:Fg,BIconFileWord:Bg,BIconFileWordFill:Hg,BIconFileX:Vg,BIconFileXFill:$g,BIconFileZip:Ug,BIconFileZipFill:qg,BIconFiles:Yg,BIconFilesAlt:Kg,BIconFilm:Gg,BIconFilter:Jg,BIconFilterCircle:Wg,BIconFilterCircleFill:Qg,BIconFilterLeft:Xg,BIconFilterRight:Zg,BIconFilterSquare:ey,BIconFilterSquareFill:ty,BIconFlag:ny,BIconFlagFill:ry,BIconFlower1:iy,BIconFlower2:oy,BIconFlower3:ay,BIconFolder:sy,BIconFolder2:uy,BIconFolder2Open:cy,BIconFolderCheck:ly,BIconFolderFill:dy,BIconFolderMinus:py,BIconFolderPlus:fy,BIconFolderSymlink:hy,BIconFolderSymlinkFill:my,BIconFolderX:vy,BIconFonts:gy,BIconForward:yy,BIconForwardFill:by,BIconFront:wy,BIconFullscreen:_y,BIconFullscreenExit:Sy,BIconFunnel:xy,BIconFunnelFill:Ey,BIconGear:Ty,BIconGearFill:My,BIconGearWide:Cy,BIconGearWideConnected:Iy,BIconGem:Ly,BIconGenderAmbiguous:ky,BIconGenderFemale:zy,BIconGenderMale:Ay,BIconGenderTrans:Py,BIconGeo:Oy,BIconGeoAlt:Dy,BIconGeoAltFill:Ny,BIconGeoFill:Ry,BIconGift:jy,BIconGiftFill:Fy,BIconGithub:By,BIconGlobe:Hy,BIconGlobe2:Vy,BIconGoogle:$y,BIconGraphDown:Uy,BIconGraphUp:qy,BIconGrid:Yy,BIconGrid1x2:Ky,BIconGrid1x2Fill:Gy,BIconGrid3x2:Jy,BIconGrid3x2Gap:Wy,BIconGrid3x2GapFill:Qy,BIconGrid3x3:Xy,BIconGrid3x3Gap:Zy,BIconGrid3x3GapFill:eb,BIconGridFill:tb,BIconGripHorizontal:nb,BIconGripVertical:rb,BIconHammer:ib,BIconHandIndex:ob,BIconHandIndexFill:ab,BIconHandIndexThumb:sb,BIconHandIndexThumbFill:ub,BIconHandThumbsDown:cb,BIconHandThumbsDownFill:lb,BIconHandThumbsUp:db,BIconHandThumbsUpFill:pb,BIconHandbag:fb,BIconHandbagFill:hb,BIconHash:mb,BIconHdd:vb,BIconHddFill:gb,BIconHddNetwork:yb,BIconHddNetworkFill:bb,BIconHddRack:wb,BIconHddRackFill:_b,BIconHddStack:Sb,BIconHddStackFill:xb,BIconHeadphones:Eb,BIconHeadset:Tb,BIconHeadsetVr:Mb,BIconHeart:Cb,BIconHeartFill:Ib,BIconHeartHalf:Lb,BIconHeptagon:kb,BIconHeptagonFill:zb,BIconHeptagonHalf:Ab,BIconHexagon:Pb,BIconHexagonFill:Ob,BIconHexagonHalf:Db,BIconHourglass:Nb,BIconHourglassBottom:Rb,BIconHourglassSplit:jb,BIconHourglassTop:Fb,BIconHouse:Bb,BIconHouseDoor:Hb,BIconHouseDoorFill:Vb,BIconHouseFill:$b,BIconHr:Ub,BIconHurricane:qb,BIconImage:Yb,BIconImageAlt:Kb,BIconImageFill:Gb,BIconImages:Jb,BIconInbox:Wb,BIconInboxFill:Qb,BIconInboxes:Xb,BIconInboxesFill:Zb,BIconInfo:ew,BIconInfoCircle:tw,BIconInfoCircleFill:nw,BIconInfoLg:rw,BIconInfoSquare:iw,BIconInfoSquareFill:ow,BIconInputCursor:aw,BIconInputCursorText:sw,BIconInstagram:uw,BIconIntersect:cw,BIconJournal:lw,BIconJournalAlbum:dw,BIconJournalArrowDown:pw,BIconJournalArrowUp:fw,BIconJournalBookmark:hw,BIconJournalBookmarkFill:mw,BIconJournalCheck:vw,BIconJournalCode:gw,BIconJournalMedical:yw,BIconJournalMinus:bw,BIconJournalPlus:ww,BIconJournalRichtext:_w,BIconJournalText:Sw,BIconJournalX:xw,BIconJournals:Ew,BIconJoystick:Tw,BIconJustify:Mw,BIconJustifyLeft:Cw,BIconJustifyRight:Iw,BIconKanban:Lw,BIconKanbanFill:kw,BIconKey:zw,BIconKeyFill:Aw,BIconKeyboard:Pw,BIconKeyboardFill:Ow,BIconLadder:Dw,BIconLamp:Nw,BIconLampFill:Rw,BIconLaptop:jw,BIconLaptopFill:Fw,BIconLayerBackward:Bw,BIconLayerForward:Hw,BIconLayers:Vw,BIconLayersFill:$w,BIconLayersHalf:Uw,BIconLayoutSidebar:qw,BIconLayoutSidebarInset:Yw,BIconLayoutSidebarInsetReverse:Kw,BIconLayoutSidebarReverse:Gw,BIconLayoutSplit:Jw,BIconLayoutTextSidebar:Ww,BIconLayoutTextSidebarReverse:Qw,BIconLayoutTextWindow:Xw,BIconLayoutTextWindowReverse:Zw,BIconLayoutThreeColumns:e_,BIconLayoutWtf:t_,BIconLifePreserver:n_,BIconLightbulb:r_,BIconLightbulbFill:i_,BIconLightbulbOff:o_,BIconLightbulbOffFill:a_,BIconLightning:s_,BIconLightningCharge:u_,BIconLightningChargeFill:c_,BIconLightningFill:l_,BIconLink:d_,BIconLink45deg:p_,BIconLinkedin:f_,BIconList:h_,BIconListCheck:m_,BIconListNested:v_,BIconListOl:g_,BIconListStars:y_,BIconListTask:b_,BIconListUl:w_,BIconLock:__,BIconLockFill:S_,BIconMailbox:x_,BIconMailbox2:E_,BIconMap:T_,BIconMapFill:M_,BIconMarkdown:C_,BIconMarkdownFill:I_,BIconMask:L_,BIconMastodon:k_,BIconMegaphone:z_,BIconMegaphoneFill:A_,BIconMenuApp:P_,BIconMenuAppFill:O_,BIconMenuButton:D_,BIconMenuButtonFill:N_,BIconMenuButtonWide:R_,BIconMenuButtonWideFill:j_,BIconMenuDown:F_,BIconMenuUp:B_,BIconMessenger:H_,BIconMic:V_,BIconMicFill:$_,BIconMicMute:U_,BIconMicMuteFill:q_,BIconMinecart:Y_,BIconMinecartLoaded:K_,BIconMoisture:G_,BIconMoon:J_,BIconMoonFill:W_,BIconMoonStars:Q_,BIconMoonStarsFill:X_,BIconMouse:Z_,BIconMouse2:eS,BIconMouse2Fill:tS,BIconMouse3:nS,BIconMouse3Fill:rS,BIconMouseFill:iS,BIconMusicNote:oS,BIconMusicNoteBeamed:aS,BIconMusicNoteList:sS,BIconMusicPlayer:uS,BIconMusicPlayerFill:cS,BIconNewspaper:lS,BIconNodeMinus:dS,BIconNodeMinusFill:pS,BIconNodePlus:fS,BIconNodePlusFill:hS,BIconNut:mS,BIconNutFill:vS,BIconOctagon:gS,BIconOctagonFill:yS,BIconOctagonHalf:bS,BIconOption:wS,BIconOutlet:_S,BIconPaintBucket:SS,BIconPalette:xS,BIconPalette2:ES,BIconPaletteFill:TS,BIconPaperclip:MS,BIconParagraph:CS,BIconPatchCheck:IS,BIconPatchCheckFill:LS,BIconPatchExclamation:kS,BIconPatchExclamationFill:zS,BIconPatchMinus:AS,BIconPatchMinusFill:PS,BIconPatchPlus:OS,BIconPatchPlusFill:DS,BIconPatchQuestion:NS,BIconPatchQuestionFill:RS,BIconPause:jS,BIconPauseBtn:FS,BIconPauseBtnFill:BS,BIconPauseCircle:HS,BIconPauseCircleFill:VS,BIconPauseFill:$S,BIconPeace:US,BIconPeaceFill:qS,BIconPen:YS,BIconPenFill:KS,BIconPencil:GS,BIconPencilFill:JS,BIconPencilSquare:WS,BIconPentagon:QS,BIconPentagonFill:XS,BIconPentagonHalf:ZS,BIconPeople:ex,BIconPeopleFill:tx,BIconPercent:nx,BIconPerson:rx,BIconPersonBadge:ix,BIconPersonBadgeFill:ox,BIconPersonBoundingBox:ax,BIconPersonCheck:sx,BIconPersonCheckFill:ux,BIconPersonCircle:cx,BIconPersonDash:lx,BIconPersonDashFill:dx,BIconPersonFill:px,BIconPersonLinesFill:fx,BIconPersonPlus:hx,BIconPersonPlusFill:mx,BIconPersonSquare:vx,BIconPersonX:gx,BIconPersonXFill:yx,BIconPhone:bx,BIconPhoneFill:wx,BIconPhoneLandscape:_x,BIconPhoneLandscapeFill:Sx,BIconPhoneVibrate:xx,BIconPhoneVibrateFill:Ex,BIconPieChart:Tx,BIconPieChartFill:Mx,BIconPiggyBank:Cx,BIconPiggyBankFill:Ix,BIconPin:Lx,BIconPinAngle:kx,BIconPinAngleFill:zx,BIconPinFill:Ax,BIconPinMap:Px,BIconPinMapFill:Ox,BIconPip:Dx,BIconPipFill:Nx,BIconPlay:Rx,BIconPlayBtn:jx,BIconPlayBtnFill:Fx,BIconPlayCircle:Bx,BIconPlayCircleFill:Hx,BIconPlayFill:Vx,BIconPlug:$x,BIconPlugFill:Ux,BIconPlus:qx,BIconPlusCircle:Yx,BIconPlusCircleDotted:Kx,BIconPlusCircleFill:Gx,BIconPlusLg:Jx,BIconPlusSquare:Wx,BIconPlusSquareDotted:Qx,BIconPlusSquareFill:Xx,BIconPower:Zx,BIconPrinter:eE,BIconPrinterFill:tE,BIconPuzzle:nE,BIconPuzzleFill:rE,BIconQuestion:iE,BIconQuestionCircle:oE,BIconQuestionCircleFill:aE,BIconQuestionDiamond:sE,BIconQuestionDiamondFill:uE,BIconQuestionLg:cE,BIconQuestionOctagon:lE,BIconQuestionOctagonFill:dE,BIconQuestionSquare:pE,BIconQuestionSquareFill:fE,BIconRainbow:hE,BIconReceipt:mE,BIconReceiptCutoff:vE,BIconReception0:gE,BIconReception1:yE,BIconReception2:bE,BIconReception3:wE,BIconReception4:_E,BIconRecord:SE,BIconRecord2:xE,BIconRecord2Fill:EE,BIconRecordBtn:TE,BIconRecordBtnFill:ME,BIconRecordCircle:CE,BIconRecordCircleFill:IE,BIconRecordFill:LE,BIconRecycle:kE,BIconReddit:zE,BIconReply:AE,BIconReplyAll:PE,BIconReplyAllFill:OE,BIconReplyFill:DE,BIconRss:NE,BIconRssFill:RE,BIconRulers:jE,BIconSafe:FE,BIconSafe2:BE,BIconSafe2Fill:HE,BIconSafeFill:VE,BIconSave:$E,BIconSave2:UE,BIconSave2Fill:qE,BIconSaveFill:YE,BIconScissors:KE,BIconScrewdriver:GE,BIconSdCard:JE,BIconSdCardFill:WE,BIconSearch:QE,BIconSegmentedNav:XE,BIconServer:ZE,BIconShare:eT,BIconShareFill:tT,BIconShield:nT,BIconShieldCheck:rT,BIconShieldExclamation:iT,BIconShieldFill:oT,BIconShieldFillCheck:aT,BIconShieldFillExclamation:sT,BIconShieldFillMinus:uT,BIconShieldFillPlus:cT,BIconShieldFillX:lT,BIconShieldLock:dT,BIconShieldLockFill:pT,BIconShieldMinus:fT,BIconShieldPlus:hT,BIconShieldShaded:mT,BIconShieldSlash:vT,BIconShieldSlashFill:gT,BIconShieldX:yT,BIconShift:bT,BIconShiftFill:wT,BIconShop:_T,BIconShopWindow:ST,BIconShuffle:xT,BIconSignpost:ET,BIconSignpost2:TT,BIconSignpost2Fill:MT,BIconSignpostFill:CT,BIconSignpostSplit:IT,BIconSignpostSplitFill:LT,BIconSim:kT,BIconSimFill:zT,BIconSkipBackward:AT,BIconSkipBackwardBtn:PT,BIconSkipBackwardBtnFill:OT,BIconSkipBackwardCircle:DT,BIconSkipBackwardCircleFill:NT,BIconSkipBackwardFill:RT,BIconSkipEnd:jT,BIconSkipEndBtn:FT,BIconSkipEndBtnFill:BT,BIconSkipEndCircle:HT,BIconSkipEndCircleFill:VT,BIconSkipEndFill:$T,BIconSkipForward:UT,BIconSkipForwardBtn:qT,BIconSkipForwardBtnFill:YT,BIconSkipForwardCircle:KT,BIconSkipForwardCircleFill:GT,BIconSkipForwardFill:JT,BIconSkipStart:WT,BIconSkipStartBtn:QT,BIconSkipStartBtnFill:XT,BIconSkipStartCircle:ZT,BIconSkipStartCircleFill:eM,BIconSkipStartFill:tM,BIconSkype:nM,BIconSlack:rM,BIconSlash:iM,BIconSlashCircle:oM,BIconSlashCircleFill:aM,BIconSlashLg:sM,BIconSlashSquare:uM,BIconSlashSquareFill:cM,BIconSliders:lM,BIconSmartwatch:dM,BIconSnow:pM,BIconSnow2:fM,BIconSnow3:hM,BIconSortAlphaDown:mM,BIconSortAlphaDownAlt:vM,BIconSortAlphaUp:gM,BIconSortAlphaUpAlt:yM,BIconSortDown:bM,BIconSortDownAlt:wM,BIconSortNumericDown:_M,BIconSortNumericDownAlt:SM,BIconSortNumericUp:xM,BIconSortNumericUpAlt:EM,BIconSortUp:TM,BIconSortUpAlt:MM,BIconSoundwave:CM,BIconSpeaker:IM,BIconSpeakerFill:LM,BIconSpeedometer:kM,BIconSpeedometer2:zM,BIconSpellcheck:AM,BIconSquare:PM,BIconSquareFill:OM,BIconSquareHalf:DM,BIconStack:NM,BIconStar:RM,BIconStarFill:jM,BIconStarHalf:FM,BIconStars:BM,BIconStickies:HM,BIconStickiesFill:VM,BIconSticky:$M,BIconStickyFill:UM,BIconStop:qM,BIconStopBtn:YM,BIconStopBtnFill:KM,BIconStopCircle:GM,BIconStopCircleFill:JM,BIconStopFill:WM,BIconStoplights:QM,BIconStoplightsFill:XM,BIconStopwatch:ZM,BIconStopwatchFill:eC,BIconSubtract:tC,BIconSuitClub:nC,BIconSuitClubFill:rC,BIconSuitDiamond:iC,BIconSuitDiamondFill:oC,BIconSuitHeart:aC,BIconSuitHeartFill:sC,BIconSuitSpade:uC,BIconSuitSpadeFill:cC,BIconSun:lC,BIconSunFill:dC,BIconSunglasses:pC,BIconSunrise:fC,BIconSunriseFill:hC,BIconSunset:mC,BIconSunsetFill:vC,BIconSymmetryHorizontal:gC,BIconSymmetryVertical:yC,BIconTable:bC,BIconTablet:wC,BIconTabletFill:_C,BIconTabletLandscape:SC,BIconTabletLandscapeFill:xC,BIconTag:EC,BIconTagFill:TC,BIconTags:MC,BIconTagsFill:CC,BIconTelegram:IC,BIconTelephone:LC,BIconTelephoneFill:kC,BIconTelephoneForward:zC,BIconTelephoneForwardFill:AC,BIconTelephoneInbound:PC,BIconTelephoneInboundFill:OC,BIconTelephoneMinus:DC,BIconTelephoneMinusFill:NC,BIconTelephoneOutbound:RC,BIconTelephoneOutboundFill:jC,BIconTelephonePlus:FC,BIconTelephonePlusFill:BC,BIconTelephoneX:HC,BIconTelephoneXFill:VC,BIconTerminal:$C,BIconTerminalFill:UC,BIconTextCenter:qC,BIconTextIndentLeft:YC,BIconTextIndentRight:KC,BIconTextLeft:GC,BIconTextParagraph:JC,BIconTextRight:WC,BIconTextarea:QC,BIconTextareaResize:XC,BIconTextareaT:ZC,BIconThermometer:eI,BIconThermometerHalf:tI,BIconThermometerHigh:nI,BIconThermometerLow:rI,BIconThermometerSnow:iI,BIconThermometerSun:oI,BIconThreeDots:aI,BIconThreeDotsVertical:sI,BIconToggle2Off:uI,BIconToggle2On:cI,BIconToggleOff:lI,BIconToggleOn:dI,BIconToggles:pI,BIconToggles2:fI,BIconTools:hI,BIconTornado:mI,BIconTranslate:vI,BIconTrash:gI,BIconTrash2:yI,BIconTrash2Fill:bI,BIconTrashFill:wI,BIconTree:_I,BIconTreeFill:SI,BIconTriangle:xI,BIconTriangleFill:EI,BIconTriangleHalf:TI,BIconTrophy:MI,BIconTrophyFill:CI,BIconTropicalStorm:II,BIconTruck:LI,BIconTruckFlatbed:kI,BIconTsunami:zI,BIconTv:AI,BIconTvFill:PI,BIconTwitch:OI,BIconTwitter:DI,BIconType:NI,BIconTypeBold:RI,BIconTypeH1:jI,BIconTypeH2:FI,BIconTypeH3:BI,BIconTypeItalic:HI,BIconTypeStrikethrough:VI,BIconTypeUnderline:$I,BIconUiChecks:UI,BIconUiChecksGrid:qI,BIconUiRadios:YI,BIconUiRadiosGrid:KI,BIconUmbrella:GI,BIconUmbrellaFill:JI,BIconUnion:WI,BIconUnlock:QI,BIconUnlockFill:XI,BIconUpc:ZI,BIconUpcScan:eL,BIconUpload:tL,BIconVectorPen:nL,BIconViewList:rL,BIconViewStacked:iL,BIconVinyl:oL,BIconVinylFill:aL,BIconVoicemail:sL,BIconVolumeDown:uL,BIconVolumeDownFill:cL,BIconVolumeMute:lL,BIconVolumeMuteFill:dL,BIconVolumeOff:pL,BIconVolumeOffFill:fL,BIconVolumeUp:hL,BIconVolumeUpFill:mL,BIconVr:vL,BIconWallet:gL,BIconWallet2:yL,BIconWalletFill:bL,BIconWatch:wL,BIconWater:_L,BIconWhatsapp:SL,BIconWifi:xL,BIconWifi1:EL,BIconWifi2:TL,BIconWifiOff:ML,BIconWind:CL,BIconWindow:IL,BIconWindowDock:LL,BIconWindowSidebar:kL,BIconWrench:zL,BIconX:AL,BIconXCircle:PL,BIconXCircleFill:OL,BIconXDiamond:DL,BIconXDiamondFill:NL,BIconXLg:RL,BIconXOctagon:jL,BIconXOctagonFill:FL,BIconXSquare:BL,BIconXSquareFill:HL,BIconYoutube:VL,BIconZoomIn:$L,BIconZoomOut:UL}}),WU=vt({plugins:{IconsPlugin:JU}},{NAME:"BootstrapVueIcons"});function QU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XU(e){for(var t=1;t0}}});function oq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sq=cr({variant:or(At)},"BTr"),uq=r.default.extend({name:"BTr",mixins:[ck,pk,mr],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:sq,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return"light"!==this.headVariant&&"light"!==this.footVariant&&("dark"===this.headVariant||"dark"===this.footVariant||this.isDark)},trClasses:function(){var e=this.variant;return[e?"".concat(this.isRowDark?"bg":"table","-").concat(e):null]},trAttrs:function(){return function(e){for(var t=1;t0?e:null},mq=function(e){return we(e)||hq(e)>0},vq=cr({colspan:or(Vt,null,mq),rowspan:or(Vt,null,mq),stackedHeading:or(At),stickyColumn:or(Mt,!1),variant:or(At)},"BTableCell"),gq=r.default.extend({name:"BTableCell",mixins:[ck,pk,mr],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:vq,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return hq(this.colspan)},computedRowspan:function(){return hq(this.rowspan)},cellClasses:function(){var e=this.variant,t=this.headVariant,n=this.isStickyColumn;return(!e&&this.isStickyHeader&&!t||!e&&n&&this.inTfoot&&!this.footVariant||!e&&n&&this.inThead&&!t||!e&&n&&this.inTbody)&&(e=this.rowVariant||this.tableVariant||"b-table-default"),[e?"".concat(this.isDark?"bg":"table","-").concat(e):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var e=this.stackedHeading,t=this.inThead||this.inTfoot,n=this.computedColspan,r=this.computedRowspan,i="cell",o=null;return t?(i="columnheader",o=n>0?"colspan":"col"):gn(this.tag,"th")&&(i="rowheader",o=r>0?"rowgroup":"row"),pq(pq({colspan:n,rowspan:r,role:i,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!we(e)?an(e):null})}},render:function(e){var t=[this.normalizeSlot()];return e(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?e("div",[t]):t])}});var yq,bq,wq,_q=(yq={},bq="busy",wq=or(Mt,!1),bq in yq?Object.defineProperty(yq,bq,{value:wq,enumerable:!0,configurable:!0,writable:!0}):yq[bq]=wq,yq),Sq=r.default.extend({props:_q,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(e,t){e!==t&&this.$emit("update:busy",e)}},methods:{stopIfBusy:function(e){return!!this.computedBusy&&(wr(e),!0)},renderBusy:function(){var e=this.tbodyTrClass,t=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot("table-busy")?n(uq,{staticClass:"b-table-busy-slot",class:[_e(e)?e(null,"table-busy"):e],attrs:_e(t)?t(null,"table-busy"):t,key:"table-busy-slot"},[n(gq,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot("table-busy")])]):null}}}),xq={caption:or(At),captionHtml:or(At)},Eq=r.default.extend({props:xq,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var e=this.caption,t=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot("table-caption");return(i||e||t)&&(r=n("caption",{attrs:{id:this.captionId},domProps:i?{}:Zk(t,e),key:"caption",ref:"caption"},this.normalizeSlot("table-caption"))),r}}}),Tq={},Mq=r.default.extend({methods:{renderColgroup:function(){var e=this.computedFields,t=this.$createElement,n=t();return this.hasNormalizedSlot("table-colgroup")&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot("table-colgroup",{columns:e.length,fields:e})])),n}}}),Cq={emptyFilteredHtml:or(At),emptyFilteredText:or(At,"There are no records matching your request"),emptyHtml:or(At),emptyText:or(At,"There are no records to show"),showEmpty:or(Mt,!1)},Iq=r.default.extend({props:Cq,methods:{renderEmpty:function(){var e=this.computedItems,t=this.$createElement,n=t();if(this.showEmpty&&(!e||0===e.length)&&(!this.computedBusy||!this.hasNormalizedSlot("table-busy"))){var r=this.computedFields,i=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,u=this.emptyFilteredHtml,c=this.tbodyTrClass,l=this.tbodyTrAttr;(n=this.normalizeSlot(i?"emptyfiltered":"empty",{emptyFilteredHtml:u,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:r,items:e}))||(n=t("div",{class:["text-center","my-2"],domProps:i?Zk(u,s):Zk(a,o)})),n=t(gq,{props:{colspan:r.length||null}},[t("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=t(uq,{staticClass:"b-table-empty-row",class:[_e(c)?c(null,"row-empty"):c],attrs:_e(l)?l(null,"row-empty"):l,key:i?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),Lq=function e(t){return we(t)?"":Ce(t)&&!Le(t)?Be(t).sort().map(function(n){return e(t[n])}).filter(function(e){return!!e}).join(" "):an(t)};function kq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zq(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{},i=Be(r).reduce(function(t,n){var i=r[n],o=i.filterByFormatted,a=_e(o)?o:o?i.formatter:null;return _e(a)&&(t[n]=a(e[n],n,e)),t},Ve(e)),o=Be(i).filter(function(e){return!(Nq[e]||Me(t)&&t.length>0&&Kt(t,e)||Me(n)&&n.length>0&&!Kt(n,e))});return $e(i,o)};function Fq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&rt('Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',"BTable"),e},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){var e=this.filterFunction;return dr(e)?e:null},filteredItems:function(){var e=this.localItems,t=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,t)||this.defaultFilterFnFactory(t):null;return n&&e.length>0?e.filter(n):e}},watch:{computedFilterDebounce:function(e){!e&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(e){var t=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout(function(){t.localFilter=t.filterSanitize(e)},n):this.localFilter=this.filterSanitize(e)}},filteredCheck:function(e){var t=e.filteredItems,n=e.localFilter,r=!1;n?ok(n,[])||ok(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit("filtered",t,t.length),this.isFiltered=r},isFiltered:function(e,t){if(!1===e&&!0===t){var n=this.localItems;this.$emit("filtered",n,n.length)}}},created:function(){var e=this;this.$_filterTimer=null,this.$nextTick(function(){e.isFiltered=Boolean(e.localFilter)})},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(e){return!this.localFiltering||this.localFilterFn||xe(e)||ze(e)?Xe(e):""},filterFnFactory:function(e,t){if(!e||!_e(e)||!t||ok(t,[])||ok(t,{}))return null;return function(n){return e(n,t)}},defaultFilterFnFactory:function(e){var t=this;if(!e||!xe(e)&&!ze(e))return null;var n=e;if(xe(n)){var r=on(e).replace(R,"\\s+");n=new RegExp(".*".concat(r,".*"),"i")}return function(e){return n.lastIndex=0,n.test((r=e,i=t.computedFilterIgnored,o=t.computedFilterIncluded,a=t.computedFieldsObj,Ce(r)?Lq(jq(r,i,o,a)):""));var r,i,o,a}}}}),Vq=function(e,t){var n=[];if(Me(e)&&e.filter(Ze).forEach(function(e){if(xe(e))n.push({key:e,label:nn(e)});else if(Ce(e)&&e.key&&xe(e.key))n.push(Ve(e));else if(Ce(e)&&1===Be(e).length){var t=Be(e)[0],r=function(e,t){var n=null;return xe(t)?n={key:e,label:t}:_e(t)?n={key:e,formatter:t}:Ce(t)?(n=Ve(t)).key=n.key||e:!1!==t&&(n={key:e}),n}(t,e[t]);r&&n.push(r)}}),0===n.length&&Me(t)&&t.length>0){var r=t[0];Be(r).forEach(function(e){Nq[e]||n.push({key:e,label:nn(e)})})}var i={};return n.filter(function(e){return!i[e.key]&&(i[e.key]=!0,e.label=xe(e.label)?e.label:nn(e.key),!0)})};function $q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uq(e){for(var t=1;t0&&e.some(Ze)},selectableIsMultiSelect:function(){return this.isSelectable&&Kt(["range","multi"],this.selectMode)},selectableTableClasses:function(){var e,t=this.isSelectable;return oY(e={"b-table-selectable":t},"b-table-select-".concat(this.selectMode),t),oY(e,"b-table-selecting",this.selectableHasSelection),oY(e,"b-table-selectable-no-click",t&&!this.hasSelectableRowClick),e},selectableTableAttrs:function(){if(!this.isSelectable)return{};var e=this.bvAttrs.role||"grid";return{role:e,"aria-multiselectable":"grid"===e?an(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(e,t){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=Me(e)&&Me(t)&&e.length===t.length;for(var r=0;n&&r=0&&e0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?Jt(e,!0):[!0])},isRowSelected:function(e){return!(!Ee(e)||!this.selectedRows[e])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(e){if(this.isSelectable&&this.isRowSelected(e)){var t=this.selectedVariant;return oY({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(t),t)}return{}},selectableRowAttrs:function(e){return{"aria-selected":this.isSelectable?this.isRowSelected(e)?"true":"false":null}},setSelectionHandlers:function(e){var t=e&&!this.noSelectOnClick?"$on":"$off";this[t]("row-clicked",this.selectionHandler),this[t]("filtered",this.clearSelected),this[t]("context-changed",this.clearSelected)},selectionHandler:function(e,t,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[t];if("single"===r)o=[];else if("range"===r)if(i>-1&&n.shiftKey){for(var s=Kr(i,t);s<=Gr(i,t);s++)o[s]=!0;a=!0}else n.ctrlKey||n.metaKey||(o=[],a=!0),a&&(this.selectedLastRow=t);o[t]=a,this.selectedRows=o}else this.clearSelected()}}}),dY=function(e,t){return e.map(function(e,t){return[t,e]}).sort(function(e,t){return this(e[1],t[1])||e[0]-t[0]}.bind(t)).map(function(e){return e[1]})},pY=function(e){return we(e)?"":Te(e)?Xt(e,e):e};function fY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hY(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.sortBy,i=void 0===r?null:r,o=n.formatter,a=void 0===o?null:o,s=n.locale,u=void 0===s?void 0:s,c=n.localeOptions,l=void 0===c?{}:c,d=n.nullLast,p=void 0!==d&&d,f=tt(e,i,null),h=tt(t,i,null);return _e(a)&&(f=a(f,i,e),h=a(h,i,t)),f=pY(f),h=pY(h),Le(f)&&Le(h)||Ee(f)&&Ee(h)?fh?1:0:p&&""===f&&""!==h?1:p&&""!==f&&""===h?-1:Lq(f).localeCompare(Lq(h),u,l)}(o,a,{sortBy:e,formatter:c,locale:n,localeOptions:s,nullLast:r})),(u||0)*(t?-1:1)})}return a}},watch:(sY={isSortable:function(e){e?this.isSortable&&this.$on("head-clicked",this.handleSort):this.$off("head-clicked",this.handleSort)}},mY(sY,"sortDesc",function(e){e!==this.localSortDesc&&(this.localSortDesc=e||!1)}),mY(sY,"sortBy",function(e){e!==this.localSortBy&&(this.localSortBy=e||"")}),mY(sY,"localSortDesc",function(e,t){e!==t&&this.$emit("update:sortDesc",e)}),mY(sY,"localSortBy",function(e,t){e!==t&&this.$emit("update:sortBy",e)}),sY),created:function(){this.isSortable&&this.$on("head-clicked",this.handleSort)},methods:{handleSort:function(e,t,n,r){var i=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var o=!1,a=function(){var e=t.sortDirection||i.sortDirection;"asc"===e?i.localSortDesc=!1:"desc"===e&&(i.localSortDesc=!0)};if(t.sortable){var s=!this.localSorting&&t.sortKey?t.sortKey:e;this.localSortBy===s?this.localSortDesc=!this.localSortDesc:(this.localSortBy=s,a()),o=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",a(),o=!0);o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(e,t,n){return{"b-table-sort-icon-left":t.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(e,t,n){var r,i=this.isSortable,o=this.noFooterSorting,a=this.localSortDesc,s=this.localSortBy,u=this.localSorting;if(!i||n&&o)return{};var c=t.sortable,l=u?e:null!==(r=t.sortKey)&&void 0!==r?r:e;return{"aria-sort":c&&s===l?a?"descending":"ascending":c?"none":null}},sortTheadThLabel:function(e,t,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var r=this.localSortBy,i=this.localSortDesc,o=this.labelSortAsc,a=this.labelSortDesc,s="";if(t.sortable)if(r===e)s=i?o:a;else{s=i?a:o;var u=this.sortDirection||t.sortDirection;"asc"===u?s=o:"desc"===u&&(s=a)}else this.noSortReset||(s=r?this.labelSortClear:"");return sn(s)||null}}});var bY={stacked:or(Ft,!1)},wY=r.default.extend({props:bY,computed:{isStacked:function(){var e=this.stacked;return""===e||e},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var e,t,n,r=this.isStackedAlways;return e={"b-table-stacked":r},t="b-table-stacked-".concat(this.stacked),n=!r&&this.isStacked,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}});function _Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SY(e){for(var t=1;t0&&!this.computedBusy,[this.tableClass,{"table-striped":this.striped,"table-hover":e,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},t?"".concat(this.dark?"bg":"table","-").concat(t):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var e=this.computedItems,t=this.filteredItems,n=this.computedFields,r=this.selectableTableAttrs,i=this.isTableSimple?{}:{"aria-busy":an(this.computedBusy),"aria-colcount":an(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return SY(SY(SY({"aria-rowcount":e&&t&&t.length>e.length?an(t.length):null},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},i),r)}},render:function(e){var t=this.wrapperClasses,n=this.renderCaption,r=this.renderColgroup,i=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(r?r():null),s.push(i?i():null),s.push(o?o():null),s.push(a?a():null));var u=e("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},s.filter(Ze));return t.length>0?e("div",{class:t,style:this.wrapperStyles,key:"wrap"},[u]):u}});function MY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CY(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:document,t=m.getSelection?m.getSelection():null;return!!(t&&""!==t.toString().trim()&&t.containsNode&&mn(e))&&t.containsNode(e,!0)},OY=cr(vq,"BTh"),DY=r.default.extend({name:"BTh",extends:gq,props:OY,computed:{tag:function(){return"th"}}});function NY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RY(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(g=String((a-1)*s+t+1));var y=an(tt(e,o))||null,b=y||an(t),w=y?this.safeId("_row_".concat(y)):null,_=this.selectableRowClasses?this.selectableRowClasses(t):{},S=this.selectableRowAttrs?this.selectableRowAttrs(t):{},x=_e(u)?u(e,"row"):u,E=_e(c)?c(e,"row"):c;if(h.push(l(uq,{class:[x,_,p?"b-table-has-details":""],props:{variant:e[Oq]||null},attrs:RY(RY({id:w},E),{},{tabindex:f?"0":null,"data-pk":y||null,"aria-details":m,"aria-owns":m,"aria-rowindex":g},S),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(b,"__"),ref:"item-rows",refInFor:!0},v)),p){var T={item:e,index:t,fields:r,toggleDetails:this.toggleDetailsFactory(d,e)};this.supportsSelectableRows&&(T.rowSelected=this.isRowSelected(t),T.selectRow=function(){return n.selectRow(t)},T.unselectRow=function(){return n.unselectRow(t)});var M=l(gq,{props:{colspan:r.length},class:this.detailsTdClass},[this.normalizeSlot("row-details",T)]);i&&h.push(l("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(b)}));var C=_e(this.tbodyTrClass)?this.tbodyTrClass(e,"row-details"):this.tbodyTrClass,I=_e(this.tbodyTrAttr)?this.tbodyTrAttr(e,"row-details"):this.tbodyTrAttr;h.push(l(uq,{staticClass:"b-table-details",class:[C],props:{variant:e[Oq]||null},attrs:RY(RY({},I),{},{id:m,tabindex:"-1"}),key:"__b-table-details__".concat(b)},[M]))}else d&&(h.push(l()),i&&h.push(l()));return h}}});function VY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $Y(e){for(var t=1;t0&&n&&n.length>0?Yt(t.children).filter(function(e){return Kt(n,e)}):[]},getTbodyTrIndex:function(e){if(!mn(e))return-1;var t="TR"===e.tagName?e:Tn("tr",e,!0);return t?this.getTbodyTrs().indexOf(t):-1},emitTbodyRowEvent:function(e,t){if(e&&this.hasListener(e)&&t&&t.target){var n=this.getTbodyTrIndex(t.target);if(n>-1){var r=this.computedItems[n];this.$emit(e,r,n,t)}}},tbodyRowEventStopped:function(e){return this.stopIfBusy&&this.stopIfBusy(e)},onTbodyRowKeydown:function(e){var t=e.target,n=e.keyCode;if(!this.tbodyRowEventStopped(e)&&"TR"===t.tagName&&yn(t)&&0===t.tabIndex)if(Kt([ZL,rk],n))wr(e),this.onTBodyRowClicked(e);else if(Kt([ik,QL,ek,XL],n)){var r=this.getTbodyTrIndex(t);if(r>-1){wr(e);var i=this.getTbodyTrs(),o=e.shiftKey;n===ek||o&&n===ik?$n(i[0]):n===XL||o&&n===QL?$n(i[i.length-1]):n===ik&&r>0?$n(i[r-1]):n===QL&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,r=this.isSortable,i=this.isSelectable,o=this.headVariant,a=this.footVariant,s=this.headRowVariant,u=this.footRowVariant,c=this.$createElement;if(this.isStackedAlways||0===n.length)return c();var l=r||this.hasListener("head-clicked"),d=i?this.selectAllRows:cP,p=i?this.clearSelected:cP,f=n.map(function(n,i){var o=n.label,a=n.labelHtml,s=n.variant,u=n.stickyColumn,f=n.key,h=null;n.label.trim()||n.headerTitle||(h=nn(n.key));var m={};l&&(m.click=function(r){e.headClicked(r,n,t)},m.keydown=function(r){var i=r.keyCode;i!==ZL&&i!==rk||e.headClicked(r,n,t)});var v=r?e.sortTheadThAttrs(f,n,t):{},g=r?e.sortTheadThClasses(f,n,t):null,y=r?e.sortTheadThLabel(f,n,t):null,b={class:[{"position-relative":y},e.fieldClasses(n),g],props:{variant:s,stickyColumn:u},style:n.thStyle||{},attrs:uK(uK({tabindex:l&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":i+1,"aria-label":h},e.getThValues(null,f,n.thAttr,t?"foot":"head",{})),v),on:m,key:f},w=[lK(f),lK(f.toLowerCase()),lK()];t&&(w=[dK(f),dK(f.toLowerCase()),dK()].concat(oK(w)));var _={label:o,column:f,field:n,isFoot:t,selectAllRows:d,clearSelected:p},S=e.normalizeSlot(w,_)||c("div",{domProps:Zk(a,o)}),x=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(DY,b,[S,x].filter(Ze))}).filter(Ze),h=[];if(t)h.push(c(uq,{class:this.tfootTrClass,props:{variant:we(u)?s:u}},f));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:p};h.push(this.normalizeSlot("thead-top",m)||c()),h.push(c(uq,{class:this.theadTrClass,props:{variant:s}},f))}return c(t?XY:iK,{class:(t?this.tfootClass:this.theadClass)||null,props:t?{footVariant:a||o||null}:{headVariant:o||null},key:t?"bv-tfoot":"bv-thead"},h)}}}),hK=r.default.extend({methods:{renderTopRow:function(){var e=this.computedFields,t=this.stacked,n=this.tbodyTrClass,r=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot("top-row")&&!0!==t&&""!==t?i(uq,{staticClass:"b-table-top-row",class:[_e(n)?n(null,"row-top"):n],attrs:_e(r)?r(null,"row-top"):r,key:"b-top-row"},[this.normalizeSlot("top-row",{columns:e.length,fields:e})]):i()}}});function mK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vK(e){for(var t=1;t0},RK=cr({animation:or(At),columns:or(Lt,5,NK),hideHeader:or(Mt,!1),rows:or(Lt,3,NK),showFooter:or(Mt,!1),tableProps:or(kt,{})},"BSkeletonTable"),jK=r.default.extend({name:"BSkeletonTable",functional:!0,props:RK,render:function(e,t){var n=t.data,r=t.props,i=r.animation,o=r.columns,a=e("th",[e(YU,{props:{animation:i}})]),s=e("tr",Jt(o,a)),c=e("td",[e(YU,{props:{width:"75%",animation:i}})]),l=e("tr",Jt(o,c)),d=e("tbody",Jt(r.rows,l)),p=r.hideHeader?e():e("thead",[s]),f=r.showFooter?e("tfoot",[s]):e();return e(LK,u(n,{props:function(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t){this.$_observer=fP(this.$refs.content,function(){e.$nextTick(function(){fn(function(){e.updateTabs()})})},{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var e=this.registeredTabs.filter(function(e){return 0===e.$children.filter(function(e){return e._isTab}).length}),t=[];if(h&&e.length>0){var n=e.map(function(e){return"#".concat(e.safeId())}).join(", ");t=Sn(n,this.$el).map(function(e){return e.id}).filter(Ze)}return dY(e,function(e,n){return t.indexOf(e.safeId())-t.indexOf(n.safeId())})},updateTabs:function(){var e=this.getTabs(),t=e.indexOf(e.slice().reverse().find(function(e){return e.localActive&&!e.disabled}));if(t<0){var n=this.currentTab;n>=e.length?t=e.indexOf(e.slice().reverse().find(ZK)):e[n]&&!e[n].disabled&&(t=n)}t<0&&(t=e.indexOf(e.find(ZK))),e.forEach(function(e,n){e.localActive=n===t}),this.tabs=e,this.currentTab=t},getButtonForTab:function(e){return(this.$refs.buttons||[]).find(function(t){return t.tab===e})},updateButton:function(e){var t=this.getButtonForTab(e);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab:function(e){var t=this.currentTab,n=this.tabs,r=!1;if(e){var i=n.indexOf(e);if(i!==t&&i>-1&&!e.disabled){var o=new _O("activate-tab",{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(o.type,i,t,o),o.defaultPrevented||(this.currentTab=i,r=!0)}}return r||this[QK]===t||this.$emit(XK,t),r},deactivateTab:function(e){return!!e&&this.activateTab(this.tabs.filter(function(t){return t!==e}).find(ZK))},focusButton:function(e){var t=this;this.$nextTick(function(){$n(t.getButtonForTab(e))})},emitTabClick:function(e,t){ke(t)&&e&&e.$emit&&!e.disabled&&e.$emit("click",t)},clickTab:function(e,t){this.activateTab(e),this.emitTabClick(e,t)},firstTab:function(e){var t=this.tabs.find(ZK);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))},previousTab:function(e){var t=Gr(this.currentTab,0),n=this.tabs.slice(0,t).reverse().find(ZK);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},nextTab:function(e){var t=Gr(this.currentTab,-1),n=this.tabs.slice(t+1).find(ZK);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},lastTab:function(e){var t=this.tabs.slice().reverse().find(ZK);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))}},render:function(e){var t=this,n=this.align,r=this.card,i=this.end,o=this.fill,a=this.firstTab,s=this.justified,u=this.lastTab,c=this.nextTab,l=this.noKeyNav,d=this.noNavStyle,p=this.pills,f=this.previousTab,h=this.small,m=this.tabs,v=this.vertical,g=m.find(function(e){return e.localActive&&!e.disabled}),y=m.find(function(e){return!e.disabled}),b=m.map(function(n,r){var i,o=n.safeId,s=null;return l||(s=-1,(n===g||!g&&n===y)&&(s=null)),e(eG,{props:{controls:o?o():null,id:n.controlledBy||(o?o("_BV_tab_button_"):null),noKeyNav:l,posInSet:r+1,setSize:m.length,tab:n,tabIndex:s},on:(i={},qK(i,"click",function(e){t.clickTab(n,e)}),qK(i,"first",a),qK(i,"prev",f),qK(i,"next",c),qK(i,"last",u),i),key:n._uid||r,ref:"buttons",refInFor:!0})}),w=e(eV,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:o,justified:s,align:n,tabs:!d&&!p,pills:!d&&p,vertical:v,small:h,cardHeader:r&&!v},ref:"nav"},[this.normalizeSlot("tabs-start")||e(),b,this.normalizeSlot("tabs-end")||e()]);w=e("div",{class:[{"card-header":r&&!v&&!i,"card-footer":r&&!v&&i,"col-auto":v},this.navWrapperClass],key:"bv-tabs-nav"},[w]);var _=this.normalizeSlot()||[],S=e();0===_.length&&(S=e("div",{class:["tab-pane","active",{"card-body":r}],key:"bv-empty-tab"},this.normalizeSlot("empty")));var x=e("div",{staticClass:"tab-content",class:[{col:v},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[_,S]);return e(this.tag,{staticClass:"tabs",class:{row:v,"no-gutters":v&&r},attrs:{id:this.safeId()}},[i?x:e(),w,i?e():x])}});function iG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oG(e){for(var t=1;t" with name "'.concat(e,'" already exists in the document.'),"BToaster"),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot(Sr("BToaster","destroyed"),this.name)},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},render:function(e){var t=e("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=e(pG.PortalTarget,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:fG}});t=e("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return t}});function vG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gG(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return new _O(e,gG(gG({cancelable:!1,target:this.$el||null,relatedTarget:null},t),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(e){var t=e.type;this.emitOnRoot(Sr("BToast",t),e),this.$emit(t,e)},ensureToaster:function(){if(!this.static){var e=this.computedToaster;if(!pG.Wormhole.hasTarget(e)){var t=document.createElement("div");document.body.appendChild(t),new mG({parent:this.$root,propsData:{name:e}}).$mount(t)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(e){var t=this.$refs["b-toast"];br(e,t,"mouseenter",this.onPause,Et),br(e,t,"mouseleave",this.onUnPause,Et)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var e=Date.now()-this.dismissStarted;e>0&&(this.clearDismissTimer(),this.resumeDismiss=Gr(this.computedDuration-e,1e3))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var e=this;this.$nextTick(function(){fn(function(){e.hide()})})},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var e=this.buildEvent("shown");this.emitEvent(e),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var e=this.buildEvent("hidden");this.emitEvent(e),this.doRender=!1},makeToast:function(e){var t=this,n=this.title,r=this.slotScope,i=ci(this),o=[],a=this.normalizeSlot("toast-title",r);a?o.push(a):n&&o.push(e("strong",{staticClass:"mr-2"},n)),this.noCloseButton||o.push(e(Tr,{staticClass:"ml-auto mb-1",on:{click:function(){t.hide()}}}));var s=e();o.length>0&&(s=e(this.headerTag,{staticClass:"toast-header",class:this.headerClass},o));var u=e(i?Sk:"div",{staticClass:"toast-body",class:this.bodyClass,props:i?sr(EG,this):{},on:i?{click:this.onLinkClick}:{}},this.normalizeSlot("default",r));return e("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this._uid),ref:"toast"},[s,u])}},render:function(e){if(!this.doRender||!this.isMounted)return e();var t=this.order,n=this.static,r=this.isHiding,i=this.isStatus,o="b-toast-".concat(this._uid),a=e("div",{staticClass:"b-toast",class:this.toastClasses,attrs:gG(gG({},n?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:r?null:i?"status":"alert","aria-live":r?null:i?"polite":"assertive","aria-atomic":r?null:"true"}),key:o,ref:"b-toast"},[e(Pr,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(e):e()])]);return e(pG.Portal,{props:{name:o,to:this.computedToaster,order:t,slim:!0,disabled:n}},[a])}});function CG(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};e&&!it("$bvToast")&&function(e,n){if(!it("$bvToast")){var r=new t({parent:n,propsData:LG(LG(LG({},OG(Gn("BToast"))),Ue(e,Be(PG))),{},{static:!1,visible:!0})});Be(PG).forEach(function(t){var i=e[t];ye(i)||("title"===t&&xe(i)&&(i=[n.$createElement("strong",{class:"mr-2"},i)]),r.$slots[PG[t]]=Gt(i))});var i=document.createElement("div");document.body.appendChild(i),r.$mount(i)}}(LG(LG({},OG(n)),{},{toastContent:e}),this._vm)}},{key:"show",value:function(e){e&&this._root.$emit(xr("BToast","show"),e)}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit(xr("BToast","hide"),e)}}])&&CG(n.prototype,r),i&&CG(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.mixin({beforeCreate:function(){this._bv__toast=new n(this)}}),He(e.prototype,"$bvToast")||je(e.prototype,"$bvToast",{get:function(){return this&&this._bv__toast||rt('"'.concat("$bvToast",'" must be accessed from a Vue instance "this" context.'),"BToast"),this._bv__toast}})}}}),NG=mt({components:{BToast:MG,BToaster:mG},plugins:{BVToastPlugin:DG}});function RG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t=n){var r=this.$targets[this.$targets.length-1];this.$activeTarget!==r&&this.activate(r)}else{if(this.$activeTarget&&e0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){this.$activeTarget!==this.$targets[i]&&e>=this.$offsets[i]&&(ye(this.$offsets[i+1])||e0&&this.$root&&this.$root.$emit(fJ,e,n)}},{key:"clear",value:function(){var e=this;Sn("".concat(this.$selector,", ").concat(".nav-item"),this.$el).filter(function(e){return kn(e,"active")}).forEach(function(t){return e.setActiveState(t,!1)})}},{key:"setActiveState",value:function(e,t){e&&(t?In(e,"active"):Ln(e,"active"))}}])&&cJ(t.prototype,n),r&&cJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),bJ="__BV_Scrollspy__",wJ=/^\d+$/,_J=/^(auto|position|offset)$/,SJ=function(e,t,n){if(h){var r=function(e){var t={};return e.arg&&(t.element="#".concat(e.arg)),Be(e.modifiers).forEach(function(e){wJ.test(e)?t.offset=Qt(e,0):_J.test(e)&&(t.method=e)}),xe(e.value)?t.element=e.value:Ee(e.value)?t.offset=Zr(e.value):Ce(e.value)&&Be(e.value).filter(function(e){return!!yJ.DefaultType[e]}).forEach(function(n){t[n]=e.value[n]}),t}(t);e[bJ]?e[bJ].updateConfig(r,n.context.$root):e[bJ]=new yJ(e,r,n.context.$root)}},xJ={bind:function(e,t,n){SJ(e,t,n)},inserted:function(e,t,n){SJ(e,t,n)},update:function(e,t,n){t.value!==t.oldValue&&SJ(e,t,n)},componentUpdated:function(e,t,n){t.value!==t.oldValue&&SJ(e,t,n)},unbind:function(e){!function(e){e[bJ]&&(e[bJ].dispose(),e[bJ]=null,delete e[bJ])}(e)}},EJ=mt({directives:{VBScrollspy:xJ}}),TJ=mt({directives:{VBVisible:YA}}),MJ=mt({plugins:{VBHoverPlugin:iJ,VBModalPlugin:oJ,VBPopoverPlugin:vU,VBScrollspyPlugin:EJ,VBTogglePlugin:gO,VBTooltipPlugin:tJ,VBVisiblePlugin:TJ}}),CJ=mt();n.d(t,"a",function(){return IJ}),n.d(t,!1,function(){return CJ}),n.d(t,!1,function(){return CJ}),n.d(t,!1,function(){return WH}),n.d(t,!1,function(){return DG}),n.d(t,"b",function(){return JU}),n.d(t,!1,function(){return WU}),n.d(t,!1,function(){return WL}),n.d(t,!1,function(){return GU}),n.d(t,!1,function(){return Si}),n.d(t,!1,function(){return xi}),n.d(t,!1,function(){return Ei}),n.d(t,!1,function(){return Ti}),n.d(t,!1,function(){return Mi}),n.d(t,!1,function(){return Ci}),n.d(t,!1,function(){return Ii}),n.d(t,!1,function(){return Li}),n.d(t,!1,function(){return ki}),n.d(t,!1,function(){return zi}),n.d(t,!1,function(){return Ai}),n.d(t,!1,function(){return Pi}),n.d(t,!1,function(){return Oi}),n.d(t,!1,function(){return Di}),n.d(t,!1,function(){return Ni}),n.d(t,!1,function(){return Ri}),n.d(t,!1,function(){return ji}),n.d(t,!1,function(){return Fi}),n.d(t,!1,function(){return Bi}),n.d(t,!1,function(){return Hi}),n.d(t,!1,function(){return Vi}),n.d(t,!1,function(){return $i}),n.d(t,!1,function(){return Ui}),n.d(t,!1,function(){return qi}),n.d(t,!1,function(){return Yi}),n.d(t,!1,function(){return Ki}),n.d(t,!1,function(){return Gi}),n.d(t,!1,function(){return Ji}),n.d(t,!1,function(){return Wi}),n.d(t,!1,function(){return Qi}),n.d(t,!1,function(){return Xi}),n.d(t,!1,function(){return Zi}),n.d(t,!1,function(){return eo}),n.d(t,!1,function(){return to}),n.d(t,!1,function(){return no}),n.d(t,!1,function(){return ro}),n.d(t,!1,function(){return io}),n.d(t,!1,function(){return oo}),n.d(t,!1,function(){return ao}),n.d(t,!1,function(){return so}),n.d(t,!1,function(){return uo}),n.d(t,!1,function(){return co}),n.d(t,!1,function(){return lo}),n.d(t,!1,function(){return po}),n.d(t,!1,function(){return fo}),n.d(t,!1,function(){return ho}),n.d(t,!1,function(){return mo}),n.d(t,!1,function(){return vo}),n.d(t,!1,function(){return go}),n.d(t,!1,function(){return yo}),n.d(t,!1,function(){return bo}),n.d(t,!1,function(){return wo}),n.d(t,!1,function(){return _o}),n.d(t,!1,function(){return So}),n.d(t,!1,function(){return xo}),n.d(t,!1,function(){return Eo}),n.d(t,!1,function(){return To}),n.d(t,!1,function(){return Mo}),n.d(t,!1,function(){return Co}),n.d(t,!1,function(){return Io}),n.d(t,!1,function(){return Lo}),n.d(t,!1,function(){return ko}),n.d(t,!1,function(){return zo}),n.d(t,!1,function(){return Ao}),n.d(t,!1,function(){return Po}),n.d(t,!1,function(){return Oo}),n.d(t,!1,function(){return Do}),n.d(t,!1,function(){return No}),n.d(t,!1,function(){return Ro}),n.d(t,!1,function(){return jo}),n.d(t,!1,function(){return Fo}),n.d(t,!1,function(){return Bo}),n.d(t,!1,function(){return Ho}),n.d(t,!1,function(){return Vo}),n.d(t,!1,function(){return $o}),n.d(t,!1,function(){return Uo}),n.d(t,!1,function(){return qo}),n.d(t,!1,function(){return Yo}),n.d(t,!1,function(){return Ko}),n.d(t,!1,function(){return Go}),n.d(t,!1,function(){return Jo}),n.d(t,!1,function(){return Wo}),n.d(t,!1,function(){return Qo}),n.d(t,!1,function(){return Xo}),n.d(t,!1,function(){return Zo}),n.d(t,!1,function(){return ea}),n.d(t,!1,function(){return ta}),n.d(t,!1,function(){return na}),n.d(t,!1,function(){return ra}),n.d(t,!1,function(){return ia}),n.d(t,!1,function(){return oa}),n.d(t,!1,function(){return aa}),n.d(t,!1,function(){return sa}),n.d(t,!1,function(){return ua}),n.d(t,!1,function(){return ca}),n.d(t,!1,function(){return la}),n.d(t,!1,function(){return da}),n.d(t,!1,function(){return pa}),n.d(t,!1,function(){return fa}),n.d(t,!1,function(){return ha}),n.d(t,!1,function(){return ma}),n.d(t,!1,function(){return va}),n.d(t,!1,function(){return ga}),n.d(t,!1,function(){return ya}),n.d(t,!1,function(){return ba}),n.d(t,!1,function(){return wa}),n.d(t,!1,function(){return _a}),n.d(t,!1,function(){return Sa}),n.d(t,!1,function(){return xa}),n.d(t,!1,function(){return Ea}),n.d(t,!1,function(){return Ta}),n.d(t,!1,function(){return Ma}),n.d(t,!1,function(){return Ca}),n.d(t,!1,function(){return Ia}),n.d(t,!1,function(){return La}),n.d(t,!1,function(){return ka}),n.d(t,!1,function(){return za}),n.d(t,!1,function(){return Aa}),n.d(t,!1,function(){return Pa}),n.d(t,!1,function(){return Oa}),n.d(t,!1,function(){return Da}),n.d(t,!1,function(){return Na}),n.d(t,!1,function(){return Ra}),n.d(t,!1,function(){return ja}),n.d(t,!1,function(){return Fa}),n.d(t,!1,function(){return Ba}),n.d(t,!1,function(){return Ha}),n.d(t,!1,function(){return Va}),n.d(t,!1,function(){return $a}),n.d(t,!1,function(){return Ua}),n.d(t,!1,function(){return qa}),n.d(t,!1,function(){return Ya}),n.d(t,!1,function(){return Ka}),n.d(t,!1,function(){return Ga}),n.d(t,!1,function(){return Ja}),n.d(t,!1,function(){return Wa}),n.d(t,!1,function(){return Qa}),n.d(t,!1,function(){return Xa}),n.d(t,!1,function(){return Za}),n.d(t,!1,function(){return es}),n.d(t,!1,function(){return ts}),n.d(t,!1,function(){return ns}),n.d(t,!1,function(){return rs}),n.d(t,!1,function(){return is}),n.d(t,!1,function(){return os}),n.d(t,!1,function(){return as}),n.d(t,!1,function(){return ss}),n.d(t,!1,function(){return us}),n.d(t,!1,function(){return cs}),n.d(t,!1,function(){return ls}),n.d(t,!1,function(){return ds}),n.d(t,!1,function(){return ps}),n.d(t,!1,function(){return fs}),n.d(t,!1,function(){return hs}),n.d(t,!1,function(){return ms}),n.d(t,!1,function(){return vs}),n.d(t,!1,function(){return gs}),n.d(t,!1,function(){return ys}),n.d(t,!1,function(){return bs}),n.d(t,!1,function(){return ws}),n.d(t,!1,function(){return _s}),n.d(t,!1,function(){return Ss}),n.d(t,!1,function(){return xs}),n.d(t,!1,function(){return Es}),n.d(t,!1,function(){return Ts}),n.d(t,!1,function(){return Ms}),n.d(t,!1,function(){return Cs}),n.d(t,!1,function(){return Is}),n.d(t,!1,function(){return Ls}),n.d(t,!1,function(){return ks}),n.d(t,!1,function(){return zs}),n.d(t,!1,function(){return As}),n.d(t,!1,function(){return Ps}),n.d(t,!1,function(){return Os}),n.d(t,!1,function(){return Ds}),n.d(t,!1,function(){return Ns}),n.d(t,!1,function(){return Rs}),n.d(t,!1,function(){return js}),n.d(t,!1,function(){return Fs}),n.d(t,!1,function(){return Bs}),n.d(t,!1,function(){return Hs}),n.d(t,!1,function(){return Vs}),n.d(t,!1,function(){return $s}),n.d(t,!1,function(){return Us}),n.d(t,!1,function(){return qs}),n.d(t,!1,function(){return Ys}),n.d(t,!1,function(){return Ks}),n.d(t,!1,function(){return Gs}),n.d(t,!1,function(){return Js}),n.d(t,!1,function(){return Ws}),n.d(t,!1,function(){return Qs}),n.d(t,!1,function(){return Xs}),n.d(t,!1,function(){return Zs}),n.d(t,!1,function(){return eu}),n.d(t,!1,function(){return tu}),n.d(t,!1,function(){return nu}),n.d(t,!1,function(){return ru}),n.d(t,!1,function(){return iu}),n.d(t,!1,function(){return ou}),n.d(t,!1,function(){return au}),n.d(t,!1,function(){return su}),n.d(t,!1,function(){return uu}),n.d(t,!1,function(){return cu}),n.d(t,!1,function(){return lu}),n.d(t,!1,function(){return du}),n.d(t,!1,function(){return pu}),n.d(t,!1,function(){return fu}),n.d(t,!1,function(){return hu}),n.d(t,!1,function(){return mu}),n.d(t,!1,function(){return vu}),n.d(t,!1,function(){return gu}),n.d(t,!1,function(){return yu}),n.d(t,!1,function(){return bu}),n.d(t,!1,function(){return wu}),n.d(t,!1,function(){return _u}),n.d(t,!1,function(){return Su}),n.d(t,!1,function(){return xu}),n.d(t,!1,function(){return Eu}),n.d(t,!1,function(){return Tu}),n.d(t,!1,function(){return Mu}),n.d(t,!1,function(){return Cu}),n.d(t,!1,function(){return Iu}),n.d(t,!1,function(){return Lu}),n.d(t,!1,function(){return ku}),n.d(t,!1,function(){return zu}),n.d(t,!1,function(){return Au}),n.d(t,!1,function(){return Pu}),n.d(t,!1,function(){return Ou}),n.d(t,!1,function(){return Du}),n.d(t,!1,function(){return Nu}),n.d(t,!1,function(){return Ru}),n.d(t,!1,function(){return ju}),n.d(t,!1,function(){return Fu}),n.d(t,!1,function(){return Bu}),n.d(t,!1,function(){return Hu}),n.d(t,!1,function(){return Vu}),n.d(t,!1,function(){return $u}),n.d(t,!1,function(){return Uu}),n.d(t,!1,function(){return qu}),n.d(t,!1,function(){return Yu}),n.d(t,!1,function(){return Ku}),n.d(t,!1,function(){return Gu}),n.d(t,!1,function(){return Ju}),n.d(t,!1,function(){return Wu}),n.d(t,!1,function(){return Qu}),n.d(t,!1,function(){return Xu}),n.d(t,!1,function(){return Zu}),n.d(t,!1,function(){return ec}),n.d(t,!1,function(){return tc}),n.d(t,!1,function(){return nc}),n.d(t,!1,function(){return rc}),n.d(t,!1,function(){return ic}),n.d(t,!1,function(){return oc}),n.d(t,!1,function(){return ac}),n.d(t,!1,function(){return sc}),n.d(t,!1,function(){return uc}),n.d(t,!1,function(){return cc}),n.d(t,!1,function(){return lc}),n.d(t,!1,function(){return dc}),n.d(t,!1,function(){return pc}),n.d(t,!1,function(){return fc}),n.d(t,!1,function(){return hc}),n.d(t,!1,function(){return mc}),n.d(t,!1,function(){return vc}),n.d(t,!1,function(){return gc}),n.d(t,!1,function(){return yc}),n.d(t,!1,function(){return bc}),n.d(t,!1,function(){return wc}),n.d(t,!1,function(){return _c}),n.d(t,!1,function(){return Sc}),n.d(t,!1,function(){return xc}),n.d(t,!1,function(){return Ec}),n.d(t,!1,function(){return Tc}),n.d(t,!1,function(){return Mc}),n.d(t,!1,function(){return Cc}),n.d(t,!1,function(){return Ic}),n.d(t,!1,function(){return Lc}),n.d(t,!1,function(){return kc}),n.d(t,!1,function(){return zc}),n.d(t,!1,function(){return Ac}),n.d(t,!1,function(){return Pc}),n.d(t,!1,function(){return Oc}),n.d(t,!1,function(){return Dc}),n.d(t,!1,function(){return Nc}),n.d(t,!1,function(){return Rc}),n.d(t,!1,function(){return jc}),n.d(t,!1,function(){return Fc}),n.d(t,!1,function(){return Bc}),n.d(t,!1,function(){return Hc}),n.d(t,!1,function(){return Vc}),n.d(t,!1,function(){return $c}),n.d(t,!1,function(){return Uc}),n.d(t,!1,function(){return qc}),n.d(t,!1,function(){return Yc}),n.d(t,!1,function(){return Kc}),n.d(t,!1,function(){return Gc}),n.d(t,!1,function(){return Jc}),n.d(t,!1,function(){return Wc}),n.d(t,!1,function(){return Qc}),n.d(t,!1,function(){return Xc}),n.d(t,!1,function(){return Zc}),n.d(t,!1,function(){return el}),n.d(t,!1,function(){return tl}),n.d(t,!1,function(){return nl}),n.d(t,!1,function(){return rl}),n.d(t,!1,function(){return il}),n.d(t,!1,function(){return ol}),n.d(t,!1,function(){return al}),n.d(t,!1,function(){return sl}),n.d(t,!1,function(){return ul}),n.d(t,!1,function(){return cl}),n.d(t,!1,function(){return ll}),n.d(t,!1,function(){return dl}),n.d(t,!1,function(){return pl}),n.d(t,!1,function(){return fl}),n.d(t,!1,function(){return hl}),n.d(t,!1,function(){return ml}),n.d(t,!1,function(){return vl}),n.d(t,!1,function(){return gl}),n.d(t,!1,function(){return yl}),n.d(t,!1,function(){return bl}),n.d(t,!1,function(){return wl}),n.d(t,!1,function(){return _l}),n.d(t,!1,function(){return Sl}),n.d(t,!1,function(){return xl}),n.d(t,!1,function(){return El}),n.d(t,!1,function(){return Tl}),n.d(t,!1,function(){return Ml}),n.d(t,!1,function(){return Cl}),n.d(t,!1,function(){return Il}),n.d(t,!1,function(){return Ll}),n.d(t,!1,function(){return kl}),n.d(t,!1,function(){return zl}),n.d(t,!1,function(){return Al}),n.d(t,!1,function(){return Pl}),n.d(t,!1,function(){return Ol}),n.d(t,!1,function(){return Dl}),n.d(t,!1,function(){return Nl}),n.d(t,!1,function(){return Rl}),n.d(t,!1,function(){return jl}),n.d(t,!1,function(){return Fl}),n.d(t,!1,function(){return Bl}),n.d(t,!1,function(){return Hl}),n.d(t,!1,function(){return Vl}),n.d(t,!1,function(){return $l}),n.d(t,!1,function(){return Ul}),n.d(t,!1,function(){return ql}),n.d(t,!1,function(){return Yl}),n.d(t,!1,function(){return Kl}),n.d(t,!1,function(){return Gl}),n.d(t,!1,function(){return Jl}),n.d(t,!1,function(){return Wl}),n.d(t,!1,function(){return Ql}),n.d(t,!1,function(){return Xl}),n.d(t,!1,function(){return Zl}),n.d(t,!1,function(){return ed}),n.d(t,!1,function(){return td}),n.d(t,!1,function(){return nd}),n.d(t,!1,function(){return rd}),n.d(t,!1,function(){return id}),n.d(t,!1,function(){return od}),n.d(t,!1,function(){return ad}),n.d(t,!1,function(){return sd}),n.d(t,!1,function(){return ud}),n.d(t,!1,function(){return cd}),n.d(t,!1,function(){return ld}),n.d(t,!1,function(){return dd}),n.d(t,!1,function(){return pd}),n.d(t,!1,function(){return fd}),n.d(t,!1,function(){return hd}),n.d(t,!1,function(){return md}),n.d(t,!1,function(){return vd}),n.d(t,!1,function(){return gd}),n.d(t,!1,function(){return yd}),n.d(t,!1,function(){return bd}),n.d(t,!1,function(){return wd}),n.d(t,!1,function(){return _d}),n.d(t,!1,function(){return Sd}),n.d(t,!1,function(){return xd}),n.d(t,!1,function(){return Ed}),n.d(t,!1,function(){return Td}),n.d(t,!1,function(){return Md}),n.d(t,!1,function(){return Cd}),n.d(t,!1,function(){return Id}),n.d(t,!1,function(){return Ld}),n.d(t,!1,function(){return kd}),n.d(t,!1,function(){return zd}),n.d(t,!1,function(){return Ad}),n.d(t,!1,function(){return Pd}),n.d(t,!1,function(){return Od}),n.d(t,!1,function(){return Dd}),n.d(t,!1,function(){return Nd}),n.d(t,!1,function(){return Rd}),n.d(t,!1,function(){return jd}),n.d(t,!1,function(){return Fd}),n.d(t,!1,function(){return Bd}),n.d(t,!1,function(){return Hd}),n.d(t,!1,function(){return Vd}),n.d(t,!1,function(){return $d}),n.d(t,!1,function(){return Ud}),n.d(t,!1,function(){return qd}),n.d(t,!1,function(){return Yd}),n.d(t,!1,function(){return Kd}),n.d(t,!1,function(){return Gd}),n.d(t,!1,function(){return Jd}),n.d(t,!1,function(){return Wd}),n.d(t,!1,function(){return Qd}),n.d(t,!1,function(){return Xd}),n.d(t,!1,function(){return Zd}),n.d(t,!1,function(){return ep}),n.d(t,!1,function(){return tp}),n.d(t,!1,function(){return np}),n.d(t,!1,function(){return rp}),n.d(t,!1,function(){return ip}),n.d(t,!1,function(){return op}),n.d(t,!1,function(){return ap}),n.d(t,!1,function(){return sp}),n.d(t,!1,function(){return up}),n.d(t,!1,function(){return cp}),n.d(t,!1,function(){return lp}),n.d(t,!1,function(){return dp}),n.d(t,!1,function(){return pp}),n.d(t,!1,function(){return fp}),n.d(t,!1,function(){return hp}),n.d(t,!1,function(){return mp}),n.d(t,!1,function(){return vp}),n.d(t,!1,function(){return gp}),n.d(t,!1,function(){return yp}),n.d(t,!1,function(){return bp}),n.d(t,!1,function(){return wp}),n.d(t,!1,function(){return _p}),n.d(t,!1,function(){return Sp}),n.d(t,!1,function(){return xp}),n.d(t,!1,function(){return Ep}),n.d(t,!1,function(){return Tp}),n.d(t,!1,function(){return Mp}),n.d(t,!1,function(){return Cp}),n.d(t,!1,function(){return Ip}),n.d(t,!1,function(){return Lp}),n.d(t,!1,function(){return kp}),n.d(t,!1,function(){return zp}),n.d(t,!1,function(){return Ap}),n.d(t,!1,function(){return Pp}),n.d(t,!1,function(){return Op}),n.d(t,!1,function(){return Dp}),n.d(t,!1,function(){return Np}),n.d(t,!1,function(){return Rp}),n.d(t,!1,function(){return jp}),n.d(t,!1,function(){return Fp}),n.d(t,!1,function(){return Bp}),n.d(t,!1,function(){return Hp}),n.d(t,!1,function(){return Vp}),n.d(t,!1,function(){return $p}),n.d(t,!1,function(){return Up}),n.d(t,!1,function(){return qp}),n.d(t,!1,function(){return Yp}),n.d(t,!1,function(){return Kp}),n.d(t,!1,function(){return Gp}),n.d(t,!1,function(){return Jp}),n.d(t,!1,function(){return Wp}),n.d(t,!1,function(){return Qp}),n.d(t,!1,function(){return Xp}),n.d(t,!1,function(){return Zp}),n.d(t,!1,function(){return ef}),n.d(t,!1,function(){return tf}),n.d(t,!1,function(){return nf}),n.d(t,!1,function(){return rf}),n.d(t,!1,function(){return of}),n.d(t,!1,function(){return af}),n.d(t,!1,function(){return sf}),n.d(t,!1,function(){return uf}),n.d(t,!1,function(){return cf}),n.d(t,!1,function(){return lf}),n.d(t,!1,function(){return df}),n.d(t,!1,function(){return pf}),n.d(t,!1,function(){return ff}),n.d(t,!1,function(){return hf}),n.d(t,!1,function(){return mf}),n.d(t,!1,function(){return vf}),n.d(t,!1,function(){return gf}),n.d(t,!1,function(){return yf}),n.d(t,!1,function(){return bf}),n.d(t,!1,function(){return wf}),n.d(t,!1,function(){return _f}),n.d(t,!1,function(){return Sf}),n.d(t,!1,function(){return xf}),n.d(t,!1,function(){return Ef}),n.d(t,!1,function(){return Tf}),n.d(t,!1,function(){return Mf}),n.d(t,!1,function(){return Cf}),n.d(t,!1,function(){return If}),n.d(t,!1,function(){return Lf}),n.d(t,!1,function(){return kf}),n.d(t,!1,function(){return zf}),n.d(t,!1,function(){return Af}),n.d(t,!1,function(){return Pf}),n.d(t,!1,function(){return Of}),n.d(t,!1,function(){return Df}),n.d(t,!1,function(){return Nf}),n.d(t,!1,function(){return Rf}),n.d(t,!1,function(){return jf}),n.d(t,!1,function(){return Ff}),n.d(t,!1,function(){return Bf}),n.d(t,!1,function(){return Hf}),n.d(t,!1,function(){return Vf}),n.d(t,!1,function(){return $f}),n.d(t,!1,function(){return Uf}),n.d(t,!1,function(){return qf}),n.d(t,!1,function(){return Yf}),n.d(t,!1,function(){return Kf}),n.d(t,!1,function(){return Gf}),n.d(t,!1,function(){return Jf}),n.d(t,!1,function(){return Wf}),n.d(t,!1,function(){return Qf}),n.d(t,!1,function(){return Xf}),n.d(t,!1,function(){return Zf}),n.d(t,!1,function(){return eh}),n.d(t,!1,function(){return th}),n.d(t,!1,function(){return nh}),n.d(t,!1,function(){return rh}),n.d(t,!1,function(){return ih}),n.d(t,!1,function(){return oh}),n.d(t,!1,function(){return ah}),n.d(t,!1,function(){return sh}),n.d(t,!1,function(){return uh}),n.d(t,!1,function(){return ch}),n.d(t,!1,function(){return lh}),n.d(t,!1,function(){return dh}),n.d(t,!1,function(){return ph}),n.d(t,!1,function(){return fh}),n.d(t,!1,function(){return hh}),n.d(t,!1,function(){return mh}),n.d(t,!1,function(){return vh}),n.d(t,!1,function(){return gh}),n.d(t,!1,function(){return yh}),n.d(t,!1,function(){return bh}),n.d(t,!1,function(){return wh}),n.d(t,!1,function(){return _h}),n.d(t,!1,function(){return Sh}),n.d(t,!1,function(){return xh}),n.d(t,!1,function(){return Eh}),n.d(t,!1,function(){return Th}),n.d(t,!1,function(){return Mh}),n.d(t,!1,function(){return Ch}),n.d(t,!1,function(){return Ih}),n.d(t,!1,function(){return Lh}),n.d(t,!1,function(){return kh}),n.d(t,!1,function(){return zh}),n.d(t,!1,function(){return Ah}),n.d(t,!1,function(){return Ph}),n.d(t,!1,function(){return Oh}),n.d(t,!1,function(){return Dh}),n.d(t,!1,function(){return Nh}),n.d(t,!1,function(){return Rh}),n.d(t,!1,function(){return jh}),n.d(t,!1,function(){return Fh}),n.d(t,!1,function(){return Bh}),n.d(t,!1,function(){return Hh}),n.d(t,!1,function(){return Vh}),n.d(t,!1,function(){return $h}),n.d(t,!1,function(){return Uh}),n.d(t,!1,function(){return qh}),n.d(t,!1,function(){return Yh}),n.d(t,!1,function(){return Kh}),n.d(t,!1,function(){return Gh}),n.d(t,!1,function(){return Jh}),n.d(t,!1,function(){return Wh}),n.d(t,!1,function(){return Qh}),n.d(t,!1,function(){return Xh}),n.d(t,!1,function(){return Zh}),n.d(t,!1,function(){return em}),n.d(t,!1,function(){return tm}),n.d(t,!1,function(){return nm}),n.d(t,!1,function(){return rm}),n.d(t,!1,function(){return im}),n.d(t,!1,function(){return om}),n.d(t,!1,function(){return am}),n.d(t,!1,function(){return sm}),n.d(t,!1,function(){return um}),n.d(t,!1,function(){return cm}),n.d(t,!1,function(){return lm}),n.d(t,!1,function(){return dm}),n.d(t,!1,function(){return pm}),n.d(t,!1,function(){return fm}),n.d(t,!1,function(){return hm}),n.d(t,!1,function(){return mm}),n.d(t,!1,function(){return vm}),n.d(t,!1,function(){return gm}),n.d(t,!1,function(){return ym}),n.d(t,!1,function(){return bm}),n.d(t,!1,function(){return wm}),n.d(t,!1,function(){return _m}),n.d(t,!1,function(){return Sm}),n.d(t,!1,function(){return xm}),n.d(t,!1,function(){return Em}),n.d(t,!1,function(){return Tm}),n.d(t,!1,function(){return Mm}),n.d(t,!1,function(){return Cm}),n.d(t,!1,function(){return Im}),n.d(t,!1,function(){return Lm}),n.d(t,!1,function(){return km}),n.d(t,!1,function(){return zm}),n.d(t,!1,function(){return Am}),n.d(t,!1,function(){return Pm}),n.d(t,!1,function(){return Om}),n.d(t,!1,function(){return Dm}),n.d(t,!1,function(){return Nm}),n.d(t,!1,function(){return Rm}),n.d(t,!1,function(){return jm}),n.d(t,!1,function(){return Fm}),n.d(t,!1,function(){return Bm}),n.d(t,!1,function(){return Hm}),n.d(t,!1,function(){return Vm}),n.d(t,!1,function(){return $m}),n.d(t,!1,function(){return Um}),n.d(t,!1,function(){return qm}),n.d(t,!1,function(){return Ym}),n.d(t,!1,function(){return Km}),n.d(t,!1,function(){return Gm}),n.d(t,!1,function(){return Jm}),n.d(t,!1,function(){return Wm}),n.d(t,!1,function(){return Qm}),n.d(t,!1,function(){return Xm}),n.d(t,!1,function(){return Zm}),n.d(t,!1,function(){return ev}),n.d(t,!1,function(){return tv}),n.d(t,!1,function(){return nv}),n.d(t,!1,function(){return rv}),n.d(t,!1,function(){return iv}),n.d(t,!1,function(){return ov}),n.d(t,!1,function(){return av}),n.d(t,!1,function(){return sv}),n.d(t,!1,function(){return uv}),n.d(t,!1,function(){return cv}),n.d(t,!1,function(){return lv}),n.d(t,!1,function(){return dv}),n.d(t,!1,function(){return pv}),n.d(t,!1,function(){return fv}),n.d(t,!1,function(){return hv}),n.d(t,!1,function(){return mv}),n.d(t,!1,function(){return vv}),n.d(t,!1,function(){return gv}),n.d(t,!1,function(){return yv}),n.d(t,!1,function(){return bv}),n.d(t,!1,function(){return wv}),n.d(t,!1,function(){return _v}),n.d(t,!1,function(){return Sv}),n.d(t,!1,function(){return xv}),n.d(t,!1,function(){return Ev}),n.d(t,!1,function(){return Tv}),n.d(t,!1,function(){return Mv}),n.d(t,!1,function(){return Cv}),n.d(t,!1,function(){return Iv}),n.d(t,!1,function(){return Lv}),n.d(t,!1,function(){return kv}),n.d(t,!1,function(){return zv}),n.d(t,!1,function(){return Av}),n.d(t,!1,function(){return Pv}),n.d(t,!1,function(){return Ov}),n.d(t,!1,function(){return Dv}),n.d(t,!1,function(){return Nv}),n.d(t,!1,function(){return Rv}),n.d(t,!1,function(){return jv}),n.d(t,!1,function(){return Fv}),n.d(t,!1,function(){return Bv}),n.d(t,!1,function(){return Hv}),n.d(t,!1,function(){return Vv}),n.d(t,!1,function(){return $v}),n.d(t,!1,function(){return Uv}),n.d(t,!1,function(){return qv}),n.d(t,!1,function(){return Yv}),n.d(t,!1,function(){return Kv}),n.d(t,!1,function(){return Gv}),n.d(t,!1,function(){return Jv}),n.d(t,!1,function(){return Wv}),n.d(t,!1,function(){return Qv}),n.d(t,!1,function(){return Xv}),n.d(t,!1,function(){return Zv}),n.d(t,!1,function(){return eg}),n.d(t,!1,function(){return tg}),n.d(t,!1,function(){return ng}),n.d(t,!1,function(){return rg}),n.d(t,!1,function(){return ig}),n.d(t,!1,function(){return og}),n.d(t,!1,function(){return ag}),n.d(t,!1,function(){return sg}),n.d(t,!1,function(){return ug}),n.d(t,!1,function(){return cg}),n.d(t,!1,function(){return lg}),n.d(t,!1,function(){return dg}),n.d(t,!1,function(){return pg}),n.d(t,!1,function(){return fg}),n.d(t,!1,function(){return hg}),n.d(t,!1,function(){return mg}),n.d(t,!1,function(){return vg}),n.d(t,!1,function(){return gg}),n.d(t,!1,function(){return yg}),n.d(t,!1,function(){return bg}),n.d(t,!1,function(){return wg}),n.d(t,!1,function(){return _g}),n.d(t,!1,function(){return Sg}),n.d(t,!1,function(){return xg}),n.d(t,!1,function(){return Eg}),n.d(t,!1,function(){return Tg}),n.d(t,!1,function(){return Mg}),n.d(t,!1,function(){return Cg}),n.d(t,!1,function(){return Ig}),n.d(t,!1,function(){return Lg}),n.d(t,!1,function(){return kg}),n.d(t,!1,function(){return zg}),n.d(t,!1,function(){return Ag}),n.d(t,!1,function(){return Pg}),n.d(t,!1,function(){return Og}),n.d(t,!1,function(){return Dg}),n.d(t,!1,function(){return Ng}),n.d(t,!1,function(){return Rg}),n.d(t,!1,function(){return jg}),n.d(t,!1,function(){return Fg}),n.d(t,!1,function(){return Bg}),n.d(t,!1,function(){return Hg}),n.d(t,!1,function(){return Vg}),n.d(t,!1,function(){return $g}),n.d(t,!1,function(){return Ug}),n.d(t,!1,function(){return qg}),n.d(t,!1,function(){return Yg}),n.d(t,!1,function(){return Kg}),n.d(t,!1,function(){return Gg}),n.d(t,!1,function(){return Jg}),n.d(t,!1,function(){return Wg}),n.d(t,!1,function(){return Qg}),n.d(t,!1,function(){return Xg}),n.d(t,!1,function(){return Zg}),n.d(t,!1,function(){return ey}),n.d(t,!1,function(){return ty}),n.d(t,!1,function(){return ny}),n.d(t,!1,function(){return ry}),n.d(t,!1,function(){return iy}),n.d(t,!1,function(){return oy}),n.d(t,!1,function(){return ay}),n.d(t,!1,function(){return sy}),n.d(t,!1,function(){return uy}),n.d(t,!1,function(){return cy}),n.d(t,!1,function(){return ly}),n.d(t,!1,function(){return dy}),n.d(t,!1,function(){return py}),n.d(t,!1,function(){return fy}),n.d(t,!1,function(){return hy}),n.d(t,!1,function(){return my}),n.d(t,!1,function(){return vy}),n.d(t,!1,function(){return gy}),n.d(t,!1,function(){return yy}),n.d(t,!1,function(){return by}),n.d(t,!1,function(){return wy}),n.d(t,!1,function(){return _y}),n.d(t,!1,function(){return Sy}),n.d(t,!1,function(){return xy}),n.d(t,!1,function(){return Ey}),n.d(t,!1,function(){return Ty}),n.d(t,!1,function(){return My}),n.d(t,!1,function(){return Cy}),n.d(t,!1,function(){return Iy}),n.d(t,!1,function(){return Ly}),n.d(t,!1,function(){return ky}),n.d(t,!1,function(){return zy}),n.d(t,!1,function(){return Ay}),n.d(t,!1,function(){return Py}),n.d(t,!1,function(){return Oy}),n.d(t,!1,function(){return Dy}),n.d(t,!1,function(){return Ny}),n.d(t,!1,function(){return Ry}),n.d(t,!1,function(){return jy}),n.d(t,!1,function(){return Fy}),n.d(t,!1,function(){return By}),n.d(t,!1,function(){return Hy}),n.d(t,!1,function(){return Vy}),n.d(t,!1,function(){return $y}),n.d(t,!1,function(){return Uy}),n.d(t,!1,function(){return qy}),n.d(t,!1,function(){return Yy}),n.d(t,!1,function(){return Ky}),n.d(t,!1,function(){return Gy}),n.d(t,!1,function(){return Jy}),n.d(t,!1,function(){return Wy}),n.d(t,!1,function(){return Qy}),n.d(t,!1,function(){return Xy}),n.d(t,!1,function(){return Zy}),n.d(t,!1,function(){return eb}),n.d(t,!1,function(){return tb}),n.d(t,!1,function(){return nb}),n.d(t,!1,function(){return rb}),n.d(t,!1,function(){return ib});n.d(t,!1,function(){return ob}),n.d(t,!1,function(){return ab}),n.d(t,!1,function(){return sb}),n.d(t,!1,function(){return ub}),n.d(t,!1,function(){return cb}),n.d(t,!1,function(){return lb}),n.d(t,!1,function(){return db}),n.d(t,!1,function(){return pb}),n.d(t,!1,function(){return fb}),n.d(t,!1,function(){return hb}),n.d(t,!1,function(){return mb}),n.d(t,!1,function(){return vb}),n.d(t,!1,function(){return gb}),n.d(t,!1,function(){return yb}),n.d(t,!1,function(){return bb}),n.d(t,!1,function(){return wb}),n.d(t,!1,function(){return _b}),n.d(t,!1,function(){return Sb}),n.d(t,!1,function(){return xb}),n.d(t,!1,function(){return Eb}),n.d(t,!1,function(){return Tb}),n.d(t,!1,function(){return Mb}),n.d(t,!1,function(){return Cb}),n.d(t,!1,function(){return Ib}),n.d(t,!1,function(){return Lb}),n.d(t,!1,function(){return kb}),n.d(t,!1,function(){return zb}),n.d(t,!1,function(){return Ab}),n.d(t,!1,function(){return Pb}),n.d(t,!1,function(){return Ob}),n.d(t,!1,function(){return Db}),n.d(t,!1,function(){return Nb}),n.d(t,!1,function(){return Rb}),n.d(t,!1,function(){return jb}),n.d(t,!1,function(){return Fb}),n.d(t,!1,function(){return Bb}),n.d(t,!1,function(){return Hb}),n.d(t,!1,function(){return Vb}),n.d(t,!1,function(){return $b}),n.d(t,!1,function(){return Ub}),n.d(t,!1,function(){return qb}),n.d(t,!1,function(){return Yb}),n.d(t,!1,function(){return Kb}),n.d(t,!1,function(){return Gb}),n.d(t,!1,function(){return Jb}),n.d(t,!1,function(){return Wb}),n.d(t,!1,function(){return Qb}),n.d(t,!1,function(){return Xb}),n.d(t,!1,function(){return Zb}),n.d(t,!1,function(){return ew}),n.d(t,!1,function(){return tw}),n.d(t,!1,function(){return nw}),n.d(t,!1,function(){return rw}),n.d(t,!1,function(){return iw}),n.d(t,!1,function(){return ow}),n.d(t,!1,function(){return aw}),n.d(t,!1,function(){return sw}),n.d(t,!1,function(){return uw}),n.d(t,!1,function(){return cw}),n.d(t,!1,function(){return lw}),n.d(t,!1,function(){return dw}),n.d(t,!1,function(){return pw}),n.d(t,!1,function(){return fw}),n.d(t,!1,function(){return hw}),n.d(t,!1,function(){return mw}),n.d(t,!1,function(){return vw}),n.d(t,!1,function(){return gw}),n.d(t,!1,function(){return yw}),n.d(t,!1,function(){return bw}),n.d(t,!1,function(){return ww}),n.d(t,!1,function(){return _w}),n.d(t,!1,function(){return Sw}),n.d(t,!1,function(){return xw}),n.d(t,!1,function(){return Ew}),n.d(t,!1,function(){return Tw}),n.d(t,!1,function(){return Mw}),n.d(t,!1,function(){return Cw}),n.d(t,!1,function(){return Iw}),n.d(t,!1,function(){return Lw}),n.d(t,!1,function(){return kw}),n.d(t,!1,function(){return zw}),n.d(t,!1,function(){return Aw}),n.d(t,!1,function(){return Pw}),n.d(t,!1,function(){return Ow}),n.d(t,!1,function(){return Dw}),n.d(t,!1,function(){return Nw}),n.d(t,!1,function(){return Rw}),n.d(t,!1,function(){return jw}),n.d(t,!1,function(){return Fw}),n.d(t,!1,function(){return Bw}),n.d(t,!1,function(){return Hw}),n.d(t,!1,function(){return Vw}),n.d(t,!1,function(){return $w}),n.d(t,!1,function(){return Uw}),n.d(t,!1,function(){return qw}),n.d(t,!1,function(){return Yw}),n.d(t,!1,function(){return Kw}),n.d(t,!1,function(){return Gw}),n.d(t,!1,function(){return Jw}),n.d(t,!1,function(){return Ww}),n.d(t,!1,function(){return Qw}),n.d(t,!1,function(){return Xw}),n.d(t,!1,function(){return Zw}),n.d(t,!1,function(){return e_}),n.d(t,!1,function(){return t_}),n.d(t,!1,function(){return n_}),n.d(t,!1,function(){return r_}),n.d(t,!1,function(){return i_}),n.d(t,!1,function(){return o_}),n.d(t,!1,function(){return a_}),n.d(t,!1,function(){return s_}),n.d(t,!1,function(){return u_}),n.d(t,!1,function(){return c_}),n.d(t,!1,function(){return l_}),n.d(t,!1,function(){return d_}),n.d(t,!1,function(){return p_}),n.d(t,!1,function(){return f_}),n.d(t,!1,function(){return h_}),n.d(t,!1,function(){return m_}),n.d(t,!1,function(){return v_}),n.d(t,!1,function(){return g_}),n.d(t,!1,function(){return y_}),n.d(t,!1,function(){return b_}),n.d(t,!1,function(){return w_}),n.d(t,!1,function(){return __}),n.d(t,!1,function(){return S_}),n.d(t,!1,function(){return x_}),n.d(t,!1,function(){return E_}),n.d(t,!1,function(){return T_}),n.d(t,!1,function(){return M_}),n.d(t,!1,function(){return C_}),n.d(t,!1,function(){return I_}),n.d(t,!1,function(){return L_}),n.d(t,!1,function(){return k_}),n.d(t,!1,function(){return z_}),n.d(t,!1,function(){return A_}),n.d(t,!1,function(){return P_}),n.d(t,!1,function(){return O_}),n.d(t,!1,function(){return D_}),n.d(t,!1,function(){return N_}),n.d(t,!1,function(){return R_}),n.d(t,!1,function(){return j_}),n.d(t,!1,function(){return F_}),n.d(t,!1,function(){return B_}),n.d(t,!1,function(){return H_}),n.d(t,!1,function(){return V_}),n.d(t,!1,function(){return $_}),n.d(t,!1,function(){return U_}),n.d(t,!1,function(){return q_}),n.d(t,!1,function(){return Y_}),n.d(t,!1,function(){return K_}),n.d(t,!1,function(){return G_}),n.d(t,!1,function(){return J_}),n.d(t,!1,function(){return W_}),n.d(t,!1,function(){return Q_}),n.d(t,!1,function(){return X_}),n.d(t,!1,function(){return Z_}),n.d(t,!1,function(){return eS}),n.d(t,!1,function(){return tS}),n.d(t,!1,function(){return nS}),n.d(t,!1,function(){return rS}),n.d(t,!1,function(){return iS}),n.d(t,!1,function(){return oS}),n.d(t,!1,function(){return aS}),n.d(t,!1,function(){return sS}),n.d(t,!1,function(){return uS}),n.d(t,!1,function(){return cS}),n.d(t,!1,function(){return lS}),n.d(t,!1,function(){return dS}),n.d(t,!1,function(){return pS}),n.d(t,!1,function(){return fS}),n.d(t,!1,function(){return hS}),n.d(t,!1,function(){return mS}),n.d(t,!1,function(){return vS}),n.d(t,!1,function(){return gS}),n.d(t,!1,function(){return yS}),n.d(t,!1,function(){return bS}),n.d(t,!1,function(){return wS}),n.d(t,!1,function(){return _S}),n.d(t,!1,function(){return SS}),n.d(t,!1,function(){return xS}),n.d(t,!1,function(){return ES}),n.d(t,!1,function(){return TS}),n.d(t,!1,function(){return MS}),n.d(t,!1,function(){return CS}),n.d(t,!1,function(){return IS}),n.d(t,!1,function(){return LS}),n.d(t,!1,function(){return kS}),n.d(t,!1,function(){return zS}),n.d(t,!1,function(){return AS}),n.d(t,!1,function(){return PS}),n.d(t,!1,function(){return OS}),n.d(t,!1,function(){return DS}),n.d(t,!1,function(){return NS}),n.d(t,!1,function(){return RS}),n.d(t,!1,function(){return jS}),n.d(t,!1,function(){return FS}),n.d(t,!1,function(){return BS}),n.d(t,!1,function(){return HS}),n.d(t,!1,function(){return VS}),n.d(t,!1,function(){return $S}),n.d(t,!1,function(){return US}),n.d(t,!1,function(){return qS}),n.d(t,!1,function(){return YS}),n.d(t,!1,function(){return KS}),n.d(t,!1,function(){return GS}),n.d(t,!1,function(){return JS}),n.d(t,!1,function(){return WS}),n.d(t,!1,function(){return QS}),n.d(t,!1,function(){return XS}),n.d(t,!1,function(){return ZS}),n.d(t,!1,function(){return ex}),n.d(t,!1,function(){return tx}),n.d(t,!1,function(){return nx}),n.d(t,!1,function(){return rx}),n.d(t,!1,function(){return ix}),n.d(t,!1,function(){return ox}),n.d(t,!1,function(){return ax}),n.d(t,!1,function(){return sx}),n.d(t,!1,function(){return ux}),n.d(t,!1,function(){return cx}),n.d(t,!1,function(){return lx}),n.d(t,!1,function(){return dx}),n.d(t,!1,function(){return px}),n.d(t,!1,function(){return fx}),n.d(t,!1,function(){return hx}),n.d(t,!1,function(){return mx}),n.d(t,!1,function(){return vx}),n.d(t,!1,function(){return gx}),n.d(t,!1,function(){return yx}),n.d(t,!1,function(){return bx}),n.d(t,!1,function(){return wx}),n.d(t,!1,function(){return _x}),n.d(t,!1,function(){return Sx}),n.d(t,!1,function(){return xx}),n.d(t,!1,function(){return Ex}),n.d(t,!1,function(){return Tx}),n.d(t,!1,function(){return Mx}),n.d(t,!1,function(){return Cx}),n.d(t,!1,function(){return Ix}),n.d(t,!1,function(){return Lx}),n.d(t,!1,function(){return kx}),n.d(t,!1,function(){return zx}),n.d(t,!1,function(){return Ax}),n.d(t,!1,function(){return Px}),n.d(t,!1,function(){return Ox}),n.d(t,!1,function(){return Dx}),n.d(t,!1,function(){return Nx}),n.d(t,!1,function(){return Rx}),n.d(t,!1,function(){return jx}),n.d(t,!1,function(){return Fx}),n.d(t,!1,function(){return Bx}),n.d(t,!1,function(){return Hx}),n.d(t,!1,function(){return Vx}),n.d(t,!1,function(){return $x}),n.d(t,!1,function(){return Ux}),n.d(t,!1,function(){return qx}),n.d(t,!1,function(){return Yx}),n.d(t,!1,function(){return Kx}),n.d(t,!1,function(){return Gx}),n.d(t,!1,function(){return Jx}),n.d(t,!1,function(){return Wx}),n.d(t,!1,function(){return Qx}),n.d(t,!1,function(){return Xx}),n.d(t,!1,function(){return Zx}),n.d(t,!1,function(){return eE}),n.d(t,!1,function(){return tE}),n.d(t,!1,function(){return nE}),n.d(t,!1,function(){return rE}),n.d(t,!1,function(){return iE}),n.d(t,!1,function(){return oE}),n.d(t,!1,function(){return aE}),n.d(t,!1,function(){return sE}),n.d(t,!1,function(){return uE}),n.d(t,!1,function(){return cE}),n.d(t,!1,function(){return lE}),n.d(t,!1,function(){return dE}),n.d(t,!1,function(){return pE}),n.d(t,!1,function(){return fE}),n.d(t,!1,function(){return hE}),n.d(t,!1,function(){return mE}),n.d(t,!1,function(){return vE}),n.d(t,!1,function(){return gE}),n.d(t,!1,function(){return yE}),n.d(t,!1,function(){return bE}),n.d(t,!1,function(){return wE}),n.d(t,!1,function(){return _E}),n.d(t,!1,function(){return SE}),n.d(t,!1,function(){return xE}),n.d(t,!1,function(){return EE}),n.d(t,!1,function(){return TE}),n.d(t,!1,function(){return ME}),n.d(t,!1,function(){return CE}),n.d(t,!1,function(){return IE}),n.d(t,!1,function(){return LE}),n.d(t,!1,function(){return kE}),n.d(t,!1,function(){return zE}),n.d(t,!1,function(){return AE}),n.d(t,!1,function(){return PE}),n.d(t,!1,function(){return OE}),n.d(t,!1,function(){return DE}),n.d(t,!1,function(){return NE}),n.d(t,!1,function(){return RE}),n.d(t,!1,function(){return jE}),n.d(t,!1,function(){return FE}),n.d(t,!1,function(){return BE}),n.d(t,!1,function(){return HE}),n.d(t,!1,function(){return VE}),n.d(t,!1,function(){return $E}),n.d(t,!1,function(){return UE}),n.d(t,!1,function(){return qE}),n.d(t,!1,function(){return YE}),n.d(t,!1,function(){return KE}),n.d(t,!1,function(){return GE}),n.d(t,!1,function(){return JE}),n.d(t,!1,function(){return WE}),n.d(t,!1,function(){return QE}),n.d(t,!1,function(){return XE}),n.d(t,!1,function(){return ZE}),n.d(t,!1,function(){return eT}),n.d(t,!1,function(){return tT}),n.d(t,!1,function(){return nT}),n.d(t,!1,function(){return rT}),n.d(t,!1,function(){return iT}),n.d(t,!1,function(){return oT}),n.d(t,!1,function(){return aT}),n.d(t,!1,function(){return sT}),n.d(t,!1,function(){return uT}),n.d(t,!1,function(){return cT}),n.d(t,!1,function(){return lT}),n.d(t,!1,function(){return dT}),n.d(t,!1,function(){return pT}),n.d(t,!1,function(){return fT}),n.d(t,!1,function(){return hT}),n.d(t,!1,function(){return mT}),n.d(t,!1,function(){return vT}),n.d(t,!1,function(){return gT}),n.d(t,!1,function(){return yT}),n.d(t,!1,function(){return bT}),n.d(t,!1,function(){return wT}),n.d(t,!1,function(){return _T}),n.d(t,!1,function(){return ST}),n.d(t,!1,function(){return xT}),n.d(t,!1,function(){return ET}),n.d(t,!1,function(){return TT}),n.d(t,!1,function(){return MT}),n.d(t,!1,function(){return CT}),n.d(t,!1,function(){return IT}),n.d(t,!1,function(){return LT}),n.d(t,!1,function(){return kT}),n.d(t,!1,function(){return zT}),n.d(t,!1,function(){return AT}),n.d(t,!1,function(){return PT}),n.d(t,!1,function(){return OT}),n.d(t,!1,function(){return DT}),n.d(t,!1,function(){return NT}),n.d(t,!1,function(){return RT}),n.d(t,!1,function(){return jT}),n.d(t,!1,function(){return FT}),n.d(t,!1,function(){return BT}),n.d(t,!1,function(){return HT}),n.d(t,!1,function(){return VT}),n.d(t,!1,function(){return $T}),n.d(t,!1,function(){return UT}),n.d(t,!1,function(){return qT}),n.d(t,!1,function(){return YT}),n.d(t,!1,function(){return KT}),n.d(t,!1,function(){return GT}),n.d(t,!1,function(){return JT}),n.d(t,!1,function(){return WT}),n.d(t,!1,function(){return QT}),n.d(t,!1,function(){return XT}),n.d(t,!1,function(){return ZT}),n.d(t,!1,function(){return eM}),n.d(t,!1,function(){return tM}),n.d(t,!1,function(){return nM}),n.d(t,!1,function(){return rM}),n.d(t,!1,function(){return iM}),n.d(t,!1,function(){return oM}),n.d(t,!1,function(){return aM}),n.d(t,!1,function(){return sM}),n.d(t,!1,function(){return uM}),n.d(t,!1,function(){return cM}),n.d(t,!1,function(){return lM}),n.d(t,!1,function(){return dM}),n.d(t,!1,function(){return pM}),n.d(t,!1,function(){return fM}),n.d(t,!1,function(){return hM}),n.d(t,!1,function(){return mM}),n.d(t,!1,function(){return vM}),n.d(t,!1,function(){return gM}),n.d(t,!1,function(){return yM}),n.d(t,!1,function(){return bM}),n.d(t,!1,function(){return wM}),n.d(t,!1,function(){return _M}),n.d(t,!1,function(){return SM}),n.d(t,!1,function(){return xM}),n.d(t,!1,function(){return EM}),n.d(t,!1,function(){return TM}),n.d(t,!1,function(){return MM}),n.d(t,!1,function(){return CM}),n.d(t,!1,function(){return IM}),n.d(t,!1,function(){return LM}),n.d(t,!1,function(){return kM}),n.d(t,!1,function(){return zM}),n.d(t,!1,function(){return AM}),n.d(t,!1,function(){return PM}),n.d(t,!1,function(){return OM}),n.d(t,!1,function(){return DM}),n.d(t,!1,function(){return NM}),n.d(t,!1,function(){return RM}),n.d(t,!1,function(){return jM}),n.d(t,!1,function(){return FM}),n.d(t,!1,function(){return BM}),n.d(t,!1,function(){return HM}),n.d(t,!1,function(){return VM}),n.d(t,!1,function(){return $M}),n.d(t,!1,function(){return UM}),n.d(t,!1,function(){return qM}),n.d(t,!1,function(){return YM}),n.d(t,!1,function(){return KM}),n.d(t,!1,function(){return GM}),n.d(t,!1,function(){return JM}),n.d(t,!1,function(){return WM}),n.d(t,!1,function(){return QM}),n.d(t,!1,function(){return XM}),n.d(t,!1,function(){return ZM}),n.d(t,!1,function(){return eC}),n.d(t,!1,function(){return tC}),n.d(t,!1,function(){return nC}),n.d(t,!1,function(){return rC}),n.d(t,!1,function(){return iC}),n.d(t,!1,function(){return oC}),n.d(t,!1,function(){return aC}),n.d(t,!1,function(){return sC}),n.d(t,!1,function(){return uC}),n.d(t,!1,function(){return cC}),n.d(t,!1,function(){return lC}),n.d(t,!1,function(){return dC}),n.d(t,!1,function(){return pC}),n.d(t,!1,function(){return fC}),n.d(t,!1,function(){return hC}),n.d(t,!1,function(){return mC}),n.d(t,!1,function(){return vC}),n.d(t,!1,function(){return gC}),n.d(t,!1,function(){return yC}),n.d(t,!1,function(){return bC}),n.d(t,!1,function(){return wC}),n.d(t,!1,function(){return _C}),n.d(t,!1,function(){return SC}),n.d(t,!1,function(){return xC}),n.d(t,!1,function(){return EC}),n.d(t,!1,function(){return TC}),n.d(t,!1,function(){return MC}),n.d(t,!1,function(){return CC}),n.d(t,!1,function(){return IC}),n.d(t,!1,function(){return LC}),n.d(t,!1,function(){return kC}),n.d(t,!1,function(){return zC}),n.d(t,!1,function(){return AC}),n.d(t,!1,function(){return PC}),n.d(t,!1,function(){return OC}),n.d(t,!1,function(){return DC}),n.d(t,!1,function(){return NC}),n.d(t,!1,function(){return RC}),n.d(t,!1,function(){return jC}),n.d(t,!1,function(){return FC}),n.d(t,!1,function(){return BC}),n.d(t,!1,function(){return HC}),n.d(t,!1,function(){return VC}),n.d(t,!1,function(){return $C}),n.d(t,!1,function(){return UC}),n.d(t,!1,function(){return qC}),n.d(t,!1,function(){return YC}),n.d(t,!1,function(){return KC}),n.d(t,!1,function(){return GC}),n.d(t,!1,function(){return JC}),n.d(t,!1,function(){return WC}),n.d(t,!1,function(){return QC}),n.d(t,!1,function(){return XC}),n.d(t,!1,function(){return ZC}),n.d(t,!1,function(){return eI}),n.d(t,!1,function(){return tI}),n.d(t,!1,function(){return nI}),n.d(t,!1,function(){return rI}),n.d(t,!1,function(){return iI}),n.d(t,!1,function(){return oI}),n.d(t,!1,function(){return aI}),n.d(t,!1,function(){return sI}),n.d(t,!1,function(){return uI}),n.d(t,!1,function(){return cI}),n.d(t,!1,function(){return lI}),n.d(t,!1,function(){return dI}),n.d(t,!1,function(){return pI}),n.d(t,!1,function(){return fI}),n.d(t,!1,function(){return hI}),n.d(t,!1,function(){return mI}),n.d(t,!1,function(){return vI}),n.d(t,!1,function(){return gI}),n.d(t,!1,function(){return yI}),n.d(t,!1,function(){return bI}),n.d(t,!1,function(){return wI}),n.d(t,!1,function(){return _I}),n.d(t,!1,function(){return SI}),n.d(t,!1,function(){return xI}),n.d(t,!1,function(){return EI}),n.d(t,!1,function(){return TI}),n.d(t,!1,function(){return MI}),n.d(t,!1,function(){return CI}),n.d(t,!1,function(){return II}),n.d(t,!1,function(){return LI}),n.d(t,!1,function(){return kI}),n.d(t,!1,function(){return zI}),n.d(t,!1,function(){return AI}),n.d(t,!1,function(){return PI}),n.d(t,!1,function(){return OI}),n.d(t,!1,function(){return DI}),n.d(t,!1,function(){return NI}),n.d(t,!1,function(){return RI}),n.d(t,!1,function(){return jI}),n.d(t,!1,function(){return FI}),n.d(t,!1,function(){return BI}),n.d(t,!1,function(){return HI}),n.d(t,!1,function(){return VI}),n.d(t,!1,function(){return $I}),n.d(t,!1,function(){return UI}),n.d(t,!1,function(){return qI}),n.d(t,!1,function(){return YI}),n.d(t,!1,function(){return KI}),n.d(t,!1,function(){return GI}),n.d(t,!1,function(){return JI}),n.d(t,!1,function(){return WI}),n.d(t,!1,function(){return QI}),n.d(t,!1,function(){return XI}),n.d(t,!1,function(){return ZI}),n.d(t,!1,function(){return eL}),n.d(t,!1,function(){return tL}),n.d(t,!1,function(){return nL}),n.d(t,!1,function(){return rL}),n.d(t,!1,function(){return iL}),n.d(t,!1,function(){return oL}),n.d(t,!1,function(){return aL}),n.d(t,!1,function(){return sL}),n.d(t,!1,function(){return uL}),n.d(t,!1,function(){return cL}),n.d(t,!1,function(){return lL}),n.d(t,!1,function(){return dL}),n.d(t,!1,function(){return pL}),n.d(t,!1,function(){return fL}),n.d(t,!1,function(){return hL}),n.d(t,!1,function(){return mL}),n.d(t,!1,function(){return vL}),n.d(t,!1,function(){return gL}),n.d(t,!1,function(){return yL}),n.d(t,!1,function(){return bL}),n.d(t,!1,function(){return wL}),n.d(t,!1,function(){return _L}),n.d(t,!1,function(){return SL}),n.d(t,!1,function(){return xL}),n.d(t,!1,function(){return EL}),n.d(t,!1,function(){return TL}),n.d(t,!1,function(){return ML}),n.d(t,!1,function(){return CL}),n.d(t,!1,function(){return IL}),n.d(t,!1,function(){return LL}),n.d(t,!1,function(){return kL}),n.d(t,!1,function(){return zL}),n.d(t,!1,function(){return AL}),n.d(t,!1,function(){return PL}),n.d(t,!1,function(){return OL}),n.d(t,!1,function(){return DL}),n.d(t,!1,function(){return NL}),n.d(t,!1,function(){return RL}),n.d(t,!1,function(){return jL}),n.d(t,!1,function(){return FL}),n.d(t,!1,function(){return BL}),n.d(t,!1,function(){return HL}),n.d(t,!1,function(){return VL}),n.d(t,!1,function(){return $L}),n.d(t,!1,function(){return UL}),n.d(t,!1,function(){return Yr}),n.d(t,!1,function(){return qr}),n.d(t,!1,function(){return ii}),n.d(t,!1,function(){return ri}),n.d(t,!1,function(){return Uk}),n.d(t,!1,function(){return Hk}),n.d(t,!1,function(){return $k}),n.d(t,!1,function(){return Qk}),n.d(t,!1,function(){return Wk}),n.d(t,!1,function(){return pz}),n.d(t,!1,function(){return dz}),n.d(t,!1,function(){return az}),n.d(t,!1,function(){return fz}),n.d(t,!1,function(){return Pk}),n.d(t,!1,function(){return Tr}),n.d(t,!1,function(){return bz}),n.d(t,!1,function(){return yz}),n.d(t,!1,function(){return xz}),n.d(t,!1,function(){return Sz}),n.d(t,!1,function(){return iA}),n.d(t,!1,function(){return rA}),n.d(t,!1,function(){return uP}),n.d(t,!1,function(){return FA}),n.d(t,!1,function(){return hA}),n.d(t,!1,function(){return EA}),n.d(t,!1,function(){return sP}),n.d(t,!1,function(){return bA}),n.d(t,!1,function(){return PA}),n.d(t,!1,function(){return rP}),n.d(t,!1,function(){return cA}),n.d(t,!1,function(){return oP}),n.d(t,!1,function(){return sA}),n.d(t,!1,function(){return OP}),n.d(t,!1,function(){return MP}),n.d(t,!1,function(){return PP}),n.d(t,!1,function(){return yO}),n.d(t,!1,function(){return ZP}),n.d(t,!1,function(){return yD}),n.d(t,!1,function(){return NO}),n.d(t,!1,function(){return VO}),n.d(t,!1,function(){return KO}),n.d(t,!1,function(){return rD}),n.d(t,!1,function(){return lD}),n.d(t,!1,function(){return gD}),n.d(t,!1,function(){return XO}),n.d(t,!1,function(){return pD}),n.d(t,!1,function(){return SD}),n.d(t,!1,function(){return _D}),n.d(t,!1,function(){return BD}),n.d(t,!1,function(){return oD}),n.d(t,!1,function(){return LD}),n.d(t,!1,function(){return PD}),n.d(t,!1,function(){return DD}),n.d(t,!1,function(){return RD}),n.d(t,!1,function(){return AN}),n.d(t,!1,function(){return pN}),n.d(t,!1,function(){return zN}),n.d(t,!1,function(){return nR}),n.d(t,!1,function(){return tR}),n.d(t,!1,function(){return gR}),n.d(t,!1,function(){return vR}),n.d(t,!1,function(){return OR}),n.d(t,!1,function(){return PR}),n.d(t,!1,function(){return ej}),n.d(t,!1,function(){return ZR}),n.d(t,!1,function(){return rj}),n.d(t,!1,function(){return hN}),n.d(t,!1,function(){return nj}),n.d(t,!1,function(){return gj}),n.d(t,!1,function(){return vj}),n.d(t,!1,function(){return SF}),n.d(t,!1,function(){return _F}),n.d(t,!1,function(){return oF}),n.d(t,!1,function(){return Hj}),n.d(t,!1,function(){return Bj}),n.d(t,!1,function(){return Lj}),n.d(t,!1,function(){return Oj}),n.d(t,!1,function(){return Zj}),n.d(t,!1,function(){return Xj}),n.d(t,!1,function(){return LF}),n.d(t,!1,function(){return IF}),n.d(t,!1,function(){return rB}),n.d(t,!1,function(){return nB}),n.d(t,!1,function(){return iB}),n.d(t,!1,function(){return IA}),n.d(t,!1,function(){return XA}),n.d(t,!1,function(){return _B}),n.d(t,!1,function(){return wB}),n.d(t,!1,function(){return uB}),n.d(t,!1,function(){return fB}),n.d(t,!1,function(){return yB}),n.d(t,!1,function(){return aB}),n.d(t,!1,function(){return CB}),n.d(t,!1,function(){return MB}),n.d(t,!1,function(){return NB}),n.d(t,!1,function(){return xB}),n.d(t,!1,function(){return DB}),n.d(t,!1,function(){return MR}),n.d(t,!1,function(){return FD}),n.d(t,!1,function(){return RB}),n.d(t,!1,function(){return Sk}),n.d(t,!1,function(){return KB}),n.d(t,!1,function(){return FB}),n.d(t,!1,function(){return YB}),n.d(t,!1,function(){return eH}),n.d(t,!1,function(){return ZB}),n.d(t,!1,function(){return JB}),n.d(t,!1,function(){return QB}),n.d(t,!1,function(){return QH}),n.d(t,!1,function(){return zH}),n.d(t,!1,function(){return wV}),n.d(t,!1,function(){return eV}),n.d(t,!1,function(){return fV}),n.d(t,!1,function(){return aV}),n.d(t,!1,function(){return bV}),n.d(t,!1,function(){return sV}),n.d(t,!1,function(){return RV}),n.d(t,!1,function(){return xV}),n.d(t,!1,function(){return AV}),n.d(t,!1,function(){return MV}),n.d(t,!1,function(){return NV}),n.d(t,!1,function(){return GV}),n.d(t,!1,function(){return KV}),n.d(t,!1,function(){return m$}),n.d(t,!1,function(){return h$}),n.d(t,!1,function(){return S$}),n.d(t,!1,function(){return _$}),n.d(t,!1,function(){return gU}),n.d(t,!1,function(){return X$}),n.d(t,!1,function(){return CU}),n.d(t,!1,function(){return MU}),n.d(t,!1,function(){return bU}),n.d(t,!1,function(){return $U}),n.d(t,!1,function(){return VU}),n.d(t,!1,function(){return HK}),n.d(t,!1,function(){return YU}),n.d(t,!1,function(){return tq}),n.d(t,!1,function(){return rq}),n.d(t,!1,function(){return jK}),n.d(t,!1,function(){return BK}),n.d(t,!1,function(){return VK}),n.d(t,!1,function(){return BV}),n.d(t,!1,function(){return AK}),n.d(t,!1,function(){return kK}),n.d(t,!1,function(){return zK}),n.d(t,!1,function(){return bK}),n.d(t,!1,function(){return EK}),n.d(t,!1,function(){return LK}),n.d(t,!1,function(){return kY}),n.d(t,!1,function(){return iK}),n.d(t,!1,function(){return XY}),n.d(t,!1,function(){return uq}),n.d(t,!1,function(){return DY}),n.d(t,!1,function(){return gq}),n.d(t,!1,function(){return lG}),n.d(t,!1,function(){return rG}),n.d(t,!1,function(){return cG}),n.d(t,!1,function(){return dG}),n.d(t,!1,function(){return UF}),n.d(t,!1,function(){return NG}),n.d(t,!1,function(){return MG}),n.d(t,!1,function(){return mG}),n.d(t,!1,function(){return nJ}),n.d(t,!1,function(){return q$}),n.d(t,!1,function(){return iJ}),n.d(t,!1,function(){return NN}),n.d(t,!1,function(){return oJ}),n.d(t,!1,function(){return FH}),n.d(t,!1,function(){return vU}),n.d(t,!1,function(){return mU}),n.d(t,!1,function(){return EJ}),n.d(t,!1,function(){return xJ}),n.d(t,!1,function(){return gO}),n.d(t,!1,function(){return vO}),n.d(t,!1,function(){return tJ}),n.d(t,!1,function(){return eJ}),n.d(t,!1,function(){return TJ}),n.d(t,!1,function(){return YA}); /*! * BootstrapVue 2.22.0 * * @link https://bootstrap-vue.org * @source https://github.com/bootstrap-vue/bootstrap-vue * @copyright (c) 2016-2022 BootstrapVue * @license MIT * https://github.com/bootstrap-vue/bootstrap-vue/blob/master/LICENSE */ var IJ={install:ht({plugins:{componentsPlugin:rJ,directivesPlugin:MJ}}),NAME:"BootstrapVue"}},TqtY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var r=n("TToO"),i=n("3F7K"),o=n("i8qg"),a=function(){function e(){this.crc32=new o.Crc32}return e.prototype.update=function(e){(0,i.isEmptyData)(e)||this.crc32.update((0,i.convertToBuffer)(e))},e.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return[2,(0,i.numToUint8)(this.crc32.digest())]})})},e}();t.AwsCrc32=a},Tqun:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n("PJh5"))},U5Iz:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})})(n("PJh5"))},U5ju:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),e.exports=n("FeBl").Promise},UCA0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=function e(t,n){if(t===n)return!0;if((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n))return e(t.ofType,n.ofType);if((0,r.isListType)(t)&&(0,r.isListType)(n))return e(t.ofType,n.ofType);return!1},t.isTypeSubTypeOf=function e(t,n,i){if(n===i)return!0;if((0,r.isNonNullType)(i))return!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType);if((0,r.isNonNullType)(n))return e(t,n.ofType,i);if((0,r.isListType)(i))return!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType);if((0,r.isListType)(n))return!1;if((0,r.isAbstractType)(i)&&(0,r.isObjectType)(n)&&t.isPossibleType(i,n))return!0;return!1},t.doTypesOverlap=function(e,t,n){if(t===n)return!0;if((0,r.isAbstractType)(t))return(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n);if((0,r.isAbstractType)(n))return e.isPossibleType(n,t);return!1};var r=n("AS5q")},USNP:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})})(n("PJh5"))},UZ5h:function(e,t,n){"use strict";var r=n("MsCo"),i=n("qOJP");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),d=["%","/","?",";","#"].concat(l),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("1nuA");function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?P+="x":P+=A[O];if(!P.match(f)){var N=k.slice(0,C),R=k.slice(C+1),j=A.match(h);j&&(N.push(j[1]),R.unshift(j[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[S])for(C=0,z=l.length;C0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=x.slice(-1)[0],M=(n.host||e.host||x.length>1)&&("."===T||".."===T)||""===T,C=0,I=x.length;I>=0;I--)"."===(T=x[I])?x.splice(I,1):".."===T?(x.splice(I,1),C++):C&&(x.splice(I,1),C--);if(!_&&!S)for(;C--;C)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),M&&"/"!==x.join("/").substr(-1)&&x.push("");var L,k=""===x[0]||x[0]&&"/"===x[0].charAt(0);E&&(n.hostname=n.host=k?"":x.length?x.shift():"",(L=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift()));return(_=_||n.host&&x.length)&&!k&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},Ubhr:function(e,t,n){var r=n("6MiT"),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},UjR9:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=p(t,l);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(s("iterator")&&(r=p(t,c)))return new n(function(e){v(function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new n(function(e){v(function(){if(!e.closed){for(var n=0;n0?r:n)(e)}},Uz1a:function(e,t,n){var r=n("bJWQ"),i=n("FhcP"),o=n("EHRO"),a=n("SHWz"),s=n("gHOb"),u=n("NGEn"),c=n("ggOT"),l=n("YsVG"),d=1,p="[object Arguments]",f="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var b=u(e),w=u(t),_=b?f:s(e),S=w?f:s(t),x=(_=_==p?h:_)==h,E=(S=S==p?h:S)==h,T=_==S;if(T&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(T&&!x)return y||(y=new r),b||l(e)?i(e,t,n,v,g,y):o(e,t,_,n,v,g,y);if(!(n&d)){var M=x&&m.call(e,"__wrapped__"),C=E&&m.call(t,"__wrapped__");if(M||C){var I=M?e.value():e,L=C?t.value():t;return y||(y=new r),g(I,L,n,v,y)}}return!!T&&(y||(y=new r),a(e,t,n,v,g,y))}},V0td:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},V3tA:function(e,t,n){n("R4wc"),e.exports=n("FeBl").Object.assign},V4Ak:function(e,t,n){var r=n("3hDt"),i=n("yRnX");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},V4qH:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n("PJh5"))},VGQH:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})})(n("PJh5"))},VK9h:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})(n("PJh5"))},"VU/8":function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(a=e,s=e.default);var c,l="function"==typeof s?s.options:s;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=r),c){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=c,l.render=function(e,t){return c.call(t),p(e,t)}):l.beforeCreate=p?[].concat(p,c):[c]}return{esModule:a,exports:s,options:l}}},VZcw:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},Vaby:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r,i=n("mO9k"),o=n("bZwV"),a=n("7Flx"),s=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=new a.c("AbstractConvertPredictionsProvider"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getCategory=function(){return"Convert"},t.prototype.convert=function(e){return Object(i.m)(e)?(u.debug("translateText"),this.translateText(e)):Object(i.l)(e)?(u.debug("textToSpeech"),this.convertTextToSpeech(e)):Object(i.j)(e)?(u.debug("textToSpeech"),this.convertSpeechToText(e)):void 0},t.prototype.translateText=function(e){throw new Error("convertText is not implemented by this provider")},t.prototype.convertTextToSpeech=function(e){throw new Error("convertTextToSpeech is not implemented by this provider")},t.prototype.convertSpeechToText=function(e){throw new Error("convertSpeechToText is not implemented by this provider")},t}(o.a)},VyNF:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},Vz2w:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})(n("PJh5"))},W2nU:function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n=3e5},c=function(e){return new Date(Date.now()+e)};function l(e){return function(t,n){return function(i){return Object(r.__awaiter)(this,void 0,void 0,function(){var o,a,c,l,d,p,f,h,m;return Object(r.__generator)(this,function(v){switch(v.label){case 0:return s.a.isInstance(i.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(i)];case 1:return a=v.sent(),[3,3];case 2:a=e.signer,v.label=3;case 3:return o=a,l=t,d=[Object(r.__assign)({},i)],m={},[4,o.sign(i.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,l.apply(void 0,[r.__assign.apply(void 0,d.concat([(m.request=v.sent(),m)]))])];case 5:return c=v.sent(),p=c.response.headers,(f=p&&(p.date||p.Date))&&(h=Date.parse(f),u(h,e.systemClockOffset)&&(e.systemClockOffset=h-Date.now())),[2,c]}})})}}}var d={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},p=function(e){return{applyToStack:function(t){t.addRelativeTo(l(e),d)}}};n.d(t,"b",function(){return o}),n.d(t,!1,function(){return l}),n.d(t,!1,function(){return d}),n.d(t,"a",function(){return p})},WcDx:function(e,t,n){"use strict";t.c=function(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return i}),t.b=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},t.d=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create},Wffn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.specifiedRules,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new s.TypeInfo(e);t||(0,i.default)(0,"Must provide document"),(0,a.assertValidSchema)(e);var l=new c.ValidationContext(e,t,r),d=(0,o.visitInParallel)(n.map(function(e){return e(l)}));return(0,o.visit)(t,(0,o.visitWithTypeInfo)(r,d)),l.getErrors()},t.validateSDL=l,t.assertValidSDL=function(e){var t=l(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))},t.assertValidSDLExtension=function(e,t){var n=l(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))};var r,i=(r=n("JiIc"))&&r.__esModule?r:{default:r},o=n("Hw4J"),a=n("7b7P"),s=n("nSZy"),u=n("vPSl"),c=n("mCXM");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.specifiedSDLRules,r=new c.SDLValidationContext(e,t),i=n.map(function(e){return e(r)});return(0,o.visit)(e,(0,o.visitInParallel)(i)),r.getErrors()}},WxI4:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},"X/+I":function(e,t,n){"use strict";var r=function(e){return function(){throw new Error(e)}},i=function(e){return function(){return Promise.reject(e)}};n.d(t,!1,function(){return r}),n.d(t,"a",function(){return i})},X8DO:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},XEt7:function(e,t,n){var r=n("yc6H"),i=n("p/MK");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},XN3Q:function(e,t,n){"use strict";var r=n("DQeA"),i=n("EuP9");n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var o=function(e){var t=function(e,t){if("string"!=typeof e)throw new TypeError('The "input" argument must be of type string. Received type '+typeof e+" ("+e+")");return t?i.Buffer.from(e,t):i.Buffer.from(e)}(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},a=function(e){return function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=e.byteLength-t),!Object(r.a)(e))throw new TypeError('The "input" argument must be ArrayBuffer. Received type '+typeof e+" ("+e+")");return i.Buffer.from(e,t,n)}(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},XU1s:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})(n("PJh5"))},XaHp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},Xc4G:function(e,t,n){var r=n("lktj"),i=n("1kS7"),o=n("NpIQ");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},Xd32:function(e,t,n){n("+tPU"),n("zQR9"),e.exports=n("5PlU")},XlWM:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},XmWM:function(e,t,n){"use strict";var r=n("cGG2"),i=n("DQCr"),o=n("fuGk"),a=n("xLtR"),s=n("DUeU");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=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,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=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=u},XrST:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=s,t.requiredSubselectionMessage=u,t.ScalarLeafs=function(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;n&&((0,a.isLeafType)((0,a.getNamedType)(n))?r&&e.reportError(new o.GraphQLError(s(t.name.value,(0,i.default)(n)),[r])):r||e.reportError(new o.GraphQLError(u(t.name.value,(0,i.default)(n)),[t])))}}};var r,i=(r=n("ieo+"))&&r.__esModule?r:{default:r},o=n("QmgZ"),a=n("AS5q");function s(e,t){return'Field "'.concat(e,'" must not have a selection since ')+'type "'.concat(t,'" has no subfields.')}function u(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a ')+'selection of subfields. Did you mean "'.concat(e,' { ... }"?')}},Xxa5:function(e,t,n){e.exports=n("jyFz")},"XzD+":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})(n("PJh5"))},Y5TK:function(e,t,n){"use strict";(function(e){n.d(t,"d",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"a",function(){return v});var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort(function(e,n){var i=e[t],o=n[t];return void 0===o?void 0===i?0:1*r:void 0===i?-1*r:io?1*r:0}),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach(function(e){delete n[e]})),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter(function(e){return n.endsWith("."+e.ext)});return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},d=function(){if("undefined"==typeof self)return!1;var e=self;return void 0!==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},p=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},f=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!m(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[t.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=n.includes(i)?e[i]:f(e[i],t,n)}return r},h=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!m(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[t.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=n.includes(i)?e[i]:h(e[i],t,n)}return r},m=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},v=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=d,e.browserOrNode=p,e.transferKeyToLowerCase=f,e.transferKeyToUpperCase=h,e.isStrictObject=m,e}()}).call(t,n("W2nU"))},"YBA/":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},YDHx:function(e,t,n){var r=n("Uz1a"),i=n("UnEC");e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},YFfX:function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,u=e.map([t,n],function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,function(e){return t.isOS(e)});if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,function(e){return t.isPlatform(e)});if(l){var d=this.satisfies(n[l]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},e.exports=r()},YXlc:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})(n("PJh5"))},YdjF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.slice(0,r);return t.reduce(function(e,n,r){return e+(t.length>2?", ":" ")+(r===t.length-1?"or ":"")+n})};var r=5},YeCl:function(e,t,n){var r=n("CW5P"),i=n("A9mX"),o=n("v8Dt"),a=n("agim"),s=n("Dv2r");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tdocument.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"YpO/":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},YsVG:function(e,t,n){var r=n("z4hc"),i=n("S7p9"),o=n("Dc0G"),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},YxBq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.prototype.toJSON=e.prototype.inspect=e.prototype.toString}},"Z+oX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("hLpN")),i=s(n("11VZ")),o=n("zk+s"),a=s(n("MsCo"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})})(n("PJh5"))},ZGh9:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})(n("PJh5"))},ZaQb:function(e,t,n){var r=n("EqjI"),i=n("77Pl"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("+ZMJ")(Function.call,n("LKZe").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},Zgw8:function(e,t,n){"use strict";(function(e){ /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?l:10===e?d:l||d}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?f(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&f(a.firstElementChild)!==a?f(u):u;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function v(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=T(e),s=T(t),c=u(e),l=a(t),d=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=E({top:o.top-s.top-d,left:o.left-s.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(h,t)),h}function C(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},l=i?C(e):m(e,c(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left");return E({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(l,i);else{var d=void 0;"scrollParent"===r?"BODY"===(d=u(s(t))).nodeName&&(d=e.ownerDocument.documentElement):d="window"===r?e.ownerDocument.documentElement:r;var p=M(d,l,i);if("HTML"!==d.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===a(t,"position"))return!0;var r=s(t);return!!r&&e(r)}(l))o=p;else{var f=b(e.ownerDocument),h=f.height,g=f.width;o.top+=p.top-p.marginTop,o.bottom=h+p.top,o.left+=p.left-p.marginLeft,o.right=g+p.left}}var y="number"==typeof(n=n||0);return o.left+=y?n:n.left||0,o.top+=y?n:n.top||0,o.right-=y?n:n.right||0,o.bottom-=y?n:n.bottom||0,o}function L(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return x({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:u[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return M(n,r?C(t):m(t,c(n)),r)}function z(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function P(e,t,n){n=n.split("-")[0];var r=z(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[c]:t[A(s)],i}function O(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=O(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=n(t,e))}),t}function N(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Y.indexOf(e),r=Y.slice(n+1).concat(Y.slice(0,n));return t?r.reverse():r}var G={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function J(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(O(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(c=c.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return E(s)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){H(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}var W={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:S({},u,o[u]),end:S({},u,o[u]+o[c]-a[c])};e.offsets.popper=x({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=H(+n)?[+n,0]:J(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var r=R("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),S({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=x({},l,d[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",m=z(r)[l];u[h]-ms[h]&&(e.offsets.popper[p]+=u[p]+m-s[h]),e.offsets.popper=E(e.offsets.popper);var v=u[p]+u[l]/2-m/2,g=a(e.instance.popper),y=parseFloat(g["margin"+d]),b=parseFloat(g["border"+d+"Width"]),w=v-e.offsets.popper[p]-y-b;return w=Math.max(Math.min(s[l]-m,w),0),e.arrowElement=r,e.offsets.arrow=(S(n={},p,Math.round(w)),S(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(N(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=A(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case G.FLIP:a=[r,i];break;case G.CLOCKWISE:a=K(r);break;case G.COUNTERCLOCKWISE:a=K(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=A(r);var c=e.offsets.popper,l=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(l.left)||"right"===r&&d(c.left)d(l.top)||"bottom"===r&&d(c.top)d(n.right),m=d(c.top)d(n.bottom),g="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&v),w=!!t.flipVariationsByContent&&(y&&"start"===o&&h||y&&"end"===o&&f||!y&&"start"===o&&v||!y&&"end"===o&&m),_=b||w;(p||g||_)&&(e.flipped=!0,(p||g)&&(r=a[u+1]),_&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=x({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=E(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=O(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=x({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return x({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return B.call(this)}}]),e}();Q.Utils=("undefined"!=typeof window?window:e).PopperUtils,Q.placements=q,Q.Defaults=W,t.a=Q}).call(t,n("DuR2"))},ZoSI:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},Zrlr:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},Zx67:function(e,t,n){e.exports={default:n("fS6E"),__esModule:!0}},Zzip:function(e,t,n){e.exports={default:n("/n6Q"),__esModule:!0}},a0Jq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){for(var n=null,i=0;i=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})(n("PJh5"))},aQOO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},aeSz:function(e,t,n){var r,i,o=n("yc6H"),a=n("p/MK"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},agim:function(e,t,n){var r=n("pTUa");e.exports=function(e){return r(this,e).has(e)}},ankS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function y(e){var t,n=0,r=0,i=null,o=null;return(t={})[Symbol.asyncIterator]=function(){return v(this,arguments,function(){var t,a,s,u,c,l,d,p;return f(this,function(f){switch(f.label){case 0:t=e[Symbol.asyncIterator](),f.label=1;case 1:return[4,m(t.next())];case 2:return a=f.sent(),s=a.value,a.done?n?[3,4]:[4,m(void 0)]:[3,10];case 3:return[2,f.sent()];case 4:return n!==r?[3,7]:[4,m(i)];case 5:return[4,f.sent()];case 6:return f.sent(),[3,8];case 7:throw new Error("Truncated event message received.");case 8:return[4,m(void 0)];case 9:return[2,f.sent()];case 10:u=s.length,c=0,f.label=11;case 11:if(!(c0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}var E=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new p.a(t,n),this.universalMarshaller=new b({utf8Decoder:n,utf8Encoder:t})}return e.prototype.deserialize=function(e,t){var n,r,i=T(e)?(n=e,(r={})[Symbol.asyncIterator]=function(){return x(this,arguments,function(){var e,t,r,i;return _(this,function(o){switch(o.label){case 0:e=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,S(e.read())];case 3:return t=o.sent(),r=t.done,i=t.value,r?[4,S(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,S(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})},r):e;return this.universalMarshaller.deserialize(i,t)},e.prototype.serialize=function(e,t){var n,r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(n=r[Symbol.asyncIterator](),new ReadableStream({pull:function(e){return w(this,void 0,void 0,function(){var t,r,i;return _(this,function(o){switch(o.label){case 0:return[4,n.next()];case 1:return t=o.sent(),r=t.done,i=t.value,r?[2,e.close()]:(e.enqueue(i),[2])}})})}})):r},e}(),T=function(e){return"function"==typeof ReadableStream&&e instanceof ReadableStream},M=n("OqwH"),C=n("TToO");var I=n("X/+I");var L=function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},k=64,z=[1732584193,4023233417,2562383102,271733878],A=function(){function e(){this.state=Uint32Array.from(z),this.buffer=new DataView(new ArrayBuffer(k)),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 L(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,r=t.byteLength;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===k&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return Object(C.__awaiter)(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return Object(C.__generator)(this,function(s){if(!this.finished){if(t=(e=this).buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r,t.setUint8(this.bufferLength++,128),n%k>=k-8){for(a=this.bufferLength;a>>0,!0),t.setUint32(k-4,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new ArrayBuffer(16)),a=0;a<4;a++)o.setUint32(4*a,this.state[a],!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],r=t[1],i=t[2],o=t[3];r=R(r=R(r=R(r=R(r=N(r=N(r=N(r=N(r=D(r=D(r=D(r=D(r=O(r=O(r=O(r=O(r,i=O(i,o=O(o,n=O(n,r,i,o,e.getUint32(0,!0),7,3614090360),r,i,e.getUint32(4,!0),12,3905402710),n,r,e.getUint32(8,!0),17,606105819),o,n,e.getUint32(12,!0),22,3250441966),i=O(i,o=O(o,n=O(n,r,i,o,e.getUint32(16,!0),7,4118548399),r,i,e.getUint32(20,!0),12,1200080426),n,r,e.getUint32(24,!0),17,2821735955),o,n,e.getUint32(28,!0),22,4249261313),i=O(i,o=O(o,n=O(n,r,i,o,e.getUint32(32,!0),7,1770035416),r,i,e.getUint32(36,!0),12,2336552879),n,r,e.getUint32(40,!0),17,4294925233),o,n,e.getUint32(44,!0),22,2304563134),i=O(i,o=O(o,n=O(n,r,i,o,e.getUint32(48,!0),7,1804603682),r,i,e.getUint32(52,!0),12,4254626195),n,r,e.getUint32(56,!0),17,2792965006),o,n,e.getUint32(60,!0),22,1236535329),i=D(i,o=D(o,n=D(n,r,i,o,e.getUint32(4,!0),5,4129170786),r,i,e.getUint32(24,!0),9,3225465664),n,r,e.getUint32(44,!0),14,643717713),o,n,e.getUint32(0,!0),20,3921069994),i=D(i,o=D(o,n=D(n,r,i,o,e.getUint32(20,!0),5,3593408605),r,i,e.getUint32(40,!0),9,38016083),n,r,e.getUint32(60,!0),14,3634488961),o,n,e.getUint32(16,!0),20,3889429448),i=D(i,o=D(o,n=D(n,r,i,o,e.getUint32(36,!0),5,568446438),r,i,e.getUint32(56,!0),9,3275163606),n,r,e.getUint32(12,!0),14,4107603335),o,n,e.getUint32(32,!0),20,1163531501),i=D(i,o=D(o,n=D(n,r,i,o,e.getUint32(52,!0),5,2850285829),r,i,e.getUint32(8,!0),9,4243563512),n,r,e.getUint32(28,!0),14,1735328473),o,n,e.getUint32(48,!0),20,2368359562),i=N(i,o=N(o,n=N(n,r,i,o,e.getUint32(20,!0),4,4294588738),r,i,e.getUint32(32,!0),11,2272392833),n,r,e.getUint32(44,!0),16,1839030562),o,n,e.getUint32(56,!0),23,4259657740),i=N(i,o=N(o,n=N(n,r,i,o,e.getUint32(4,!0),4,2763975236),r,i,e.getUint32(16,!0),11,1272893353),n,r,e.getUint32(28,!0),16,4139469664),o,n,e.getUint32(40,!0),23,3200236656),i=N(i,o=N(o,n=N(n,r,i,o,e.getUint32(52,!0),4,681279174),r,i,e.getUint32(0,!0),11,3936430074),n,r,e.getUint32(12,!0),16,3572445317),o,n,e.getUint32(24,!0),23,76029189),i=N(i,o=N(o,n=N(n,r,i,o,e.getUint32(36,!0),4,3654602809),r,i,e.getUint32(48,!0),11,3873151461),n,r,e.getUint32(60,!0),16,530742520),o,n,e.getUint32(8,!0),23,3299628645),i=R(i,o=R(o,n=R(n,r,i,o,e.getUint32(0,!0),6,4096336452),r,i,e.getUint32(28,!0),10,1126891415),n,r,e.getUint32(56,!0),15,2878612391),o,n,e.getUint32(20,!0),21,4237533241),i=R(i,o=R(o,n=R(n,r,i,o,e.getUint32(48,!0),6,1700485571),r,i,e.getUint32(12,!0),10,2399980690),n,r,e.getUint32(40,!0),15,4293915773),o,n,e.getUint32(4,!0),21,2240044497),i=R(i,o=R(o,n=R(n,r,i,o,e.getUint32(32,!0),6,1873313359),r,i,e.getUint32(60,!0),10,4264355552),n,r,e.getUint32(24,!0),15,2734768916),o,n,e.getUint32(52,!0),21,1309151649),i=R(i,o=R(o,n=R(n,r,i,o,e.getUint32(16,!0),6,4149444226),r,i,e.getUint32(44,!0),10,3174756917),n,r,e.getUint32(8,!0),15,718787259),o,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295},e}();function P(e,t,n,r,i,o){return((t=(t+e&4294967295)+(r+o&4294967295)&4294967295)<>>32-i)+n&4294967295}function O(e,t,n,r,i,o,a){return P(t&n|~t&r,e,t,i,o,a)}function D(e,t,n,r,i,o,a){return P(t&r|n&~r,e,t,i,o,a)}function N(e,t,n,r,i,o,a){return P(t^n^r,e,t,i,o,a)}function R(e,t,n,r,i,o,a){return P(n^(t|~r),e,t,i,o,a)}var j=n("iZss"),F=n("JVbd"),B=n("IhUy"),H=n("pK6L");var V=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"]),$=new Set(["cn-north-1","cn-northwest-1"]),U=new Set(["us-iso-east-1"]),q=new Set(["us-isob-east-1"]),Y=new Set(["us-gov-east-1","us-gov-west-1"]),K={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:V.has(e)&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws"}),$.has(e)&&(n={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),U.has(e)&&(n={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),q.has(e)&&(n={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Y.has(e)&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws"})}return Promise.resolve(a({signingService:"s3"},n))},serviceId:"S3",signingEscapePath:!1,urlParser:n("40b9").a,useArnRegion:!1},G=a(a({},K),{runtime:"browser",base64Decoder:F.a,base64Encoder:F.b,bodyLengthChecker:B.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(H.a)({serviceId:K.serviceId,clientVersion:l.a.version}),eventStreamSerdeProvider:function(e){return new E(e)},maxAttempts:j.a,md5:A,region:Object(I.a)("Region is missing"),requestHandler:new M.a,sha256:d.Sha256,streamCollector:M.b,streamHasher:function(e,t){return Object(C.__awaiter)(this,void 0,void 0,function(){var n;return Object(C.__generator)(this,function(r){switch(r.label){case 0:return n=new e,[4,function(e,t,n){return void 0===n&&(n=1048576),new Promise(function(r,i){var o=new FileReader;o.addEventListener("error",i),o.addEventListener("abort",i);var a=e.size,s=0;function u(){s>=a?r():o.readAsArrayBuffer(e.slice(s,Math.min(a,s+n)))}o.addEventListener("load",function(e){var n=e.target.result;t(new Uint8Array(n)),s+=n.byteLength,u()}),u()})}(t,function(e){n.update(e)})];case 1:return r.sent(),[2,n.digest()]}})})},utf8Decoder:function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=6},ee=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,te=/(\d+\.){3}\d+/,ne=/\.\./,re=/\./,ie=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,oe=/^s3(-external-1)?\.amazonaws\.com$/,ae=function(e){return ue(e)?e.replace(/fips-|-fips/,""):e},se=function(e){var t=e.match(ie);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},ue=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},ce=function(e,t){return e===t||ae(e)===t||e===ae(t)},le=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)&&re.test(e))throw new Error("Invalid DNS label "+e)},de=function(e){var t=e.isCustomEndpoint,n=(e.baseHostname,e.dualstackEndpoint),r=e.accelerateEndpoint;if(t){if(n)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(r)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return function(e){return"string"==typeof e.bucketName}(e)?fe(Object(C.__assign)(Object(C.__assign)({},e),{isCustomEndpoint:t})):pe(Object(C.__assign)(Object(C.__assign)({},e),{isCustomEndpoint:t}))},pe=function(e){var t,n=e.isCustomEndpoint,r=e.baseHostname,i=Object(C.__read)(n?[e.clientRegion,r]:(t=r,oe.test(t)?[t.replace(".amazonaws.com",""),"amazonaws.com"]:se(t)),2),o=i[0],a=i[1],s=e.pathStyleEndpoint,u=e.dualstackEndpoint,c=void 0!==u&&u,l=e.accelerateEndpoint,d=void 0!==l&&l,p=e.tlsCompatible,f=void 0===p||p,h=e.useArnRegion,m=e.bucketName,v=e.clientPartition,g=void 0===v?"aws":v,y=e.clientSigningRegion,b=void 0===y?o:y;!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:s,accelerateEndpoint:d,tlsCompatible:f});var w=m.service,_=m.partition,S=m.accountId,x=m.region,E=m.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")}(w),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(_,{clientPartition:g}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(S),function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!ce(e,t.clientRegion)&&!ce(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&ue(e))throw new Error("Endpoint does not support FIPS region")}(x,{useArnRegion:h,clientRegion:o,clientSigningRegion:b});var T=function(e){var t=e.includes(":")?":":"/",n=Object(C.__read)(e.split(t)),r=n[0],i=n.slice(1);if("accesspoint"===r){if(1!==i.length||""===i[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:i[0]}}if("outpost"===r){if(!i[0]||"accesspoint"!==i[1]||!i[2]||3!==i.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var o=Object(C.__read)(i,3),a=o[0];return o[1],{outpostId:a,accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(E),M=T.accesspointName,I=T.outpostId;le(M+"-"+S,{tlsCompatible:f});var L=h?x:o,k=h?x:b;return I?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(w),le(I,{tlsCompatible:f}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(c),function(e){if(ue(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(L),{bucketEndpoint:!0,hostname:M+"-"+S+"."+I+(n?"":".s3-outposts."+L)+"."+a,signingRegion:k,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(w),{bucketEndpoint:!0,hostname:M+"-"+S+(n?"":".s3-accesspoint"+(c?".dualstack":"")+"."+L)+"."+a,signingRegion:k})},fe=function(e){var t,n=e.accelerateEndpoint,r=void 0!==n&&n,i=e.clientRegion,o=e.baseHostname,a=e.bucketName,s=e.dualstackEndpoint,u=void 0!==s&&s,c=e.pathStyleEndpoint,l=void 0!==c&&c,d=e.tlsCompatible,p=void 0===d||d,f=e.isCustomEndpoint,h=void 0!==f&&f,m=Object(C.__read)(h?[i,o]:(t=o,oe.test(t)?["us-east-1","amazonaws.com"]:se(t)),2),v=m[0],g=m[1];return l||!function(e){return ee.test(e)&&!te.test(e)&&!ne.test(e)}(a)||p&&re.test(a)?{bucketEndpoint:!1,hostname:u?"s3.dualstack."+v+"."+g:o}:(r?o="s3-accelerate"+(u?".dualstack":"")+"."+g:u&&(o="s3.dualstack."+v+"."+g),{bucketEndpoint:!0,hostname:a+"."+o})},he=function(e){return function(t,n){return function(r){return Object(C.__awaiter)(void 0,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_;return Object(C.__generator)(this,function(S){switch(S.label){case 0:return i=r.input.Bucket,o=e.bucketEndpoint,a=r.request,X.a.isInstance(a)?e.bucketEndpoint?(a.hostname=i,[3,7]):[3,1]:[3,8];case 1:return Z(i)?(s=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=Object(C.__read)(t);return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}}(i),u=ae,[4,e.region()]):[3,5];case 2:return g=u.apply(void 0,[S.sent()]),[4,e.regionInfoProvider(g)];case 3:return c=S.sent()||{},l=c.partition,d=c.signingRegion,p=void 0===d?g:d,[4,e.useArnRegion()];case 4:return f=S.sent(),h=de({bucketName:s,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,useArnRegion:f,clientPartition:l,clientSigningRegion:p,clientRegion:g,isCustomEndpoint:e.isCustomEndpoint}),w=h.hostname,_=h.bucketEndpoint,m=h.signingRegion,v=h.signingService,m&&m!==p&&(n.signing_region=m),v&&"s3"!==v&&(n.signing_service=v),a.hostname=w,o=_,[3,7];case 5:return y=ae,[4,e.region()];case 6:g=y.apply(void 0,[S.sent()]),b=de({bucketName:i,clientRegion:g,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,isCustomEndpoint:e.isCustomEndpoint}),w=b.hostname,_=b.bucketEndpoint,a.hostname=w,o=_,S.label=7;case 7:o&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),""===a.path&&(a.path="/")),S.label=8;case 8:return[2,t(Object(C.__assign)(Object(C.__assign)({},r),{request:a}))]}})})}}},me={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},ve=function(e){return{applyToStack:function(t){t.addRelativeTo(he(e),me)}}};var ge=n("yVKS");var ye={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},be=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(C.__awaiter)(t,void 0,void 0,function(){var t;return Object(C.__generator)(this,function(i){return t=r.request,X.a.isInstance(t)&&t.body&&"node"===e.runtime&&(t.headers=Object(C.__assign)(Object(C.__assign)({},t.headers),{Expect:"100-continue"})),[2,n(Object(C.__assign)(Object(C.__assign)({},r),{request:t}))]})})}}}(e),ye)}}},we=n("pmDB"),_e=n("HtRB");var Se,xe,Ee,Te,Me,Ce,Ie,Le,ke,ze,Ae,Pe,Oe,De,Ne,Re,je,Fe,Be,He,Ve,$e,Ue,qe,Ye,Ke,Ge,Je,We,Qe,Xe,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,dt,pt,ft,ht,mt,vt,gt,yt,bt,wt,_t,St,xt,Et,Tt,Mt,Ct,It,Lt,kt,zt,At,Pt,Ot,Dt,Nt,Rt,jt,Ft,Bt,Ht,Vt,$t,Ut,qt,Yt,Kt,Gt,Jt,Wt,Qt,Xt,Zt,en,tn,nn,rn,on,an,sn,un,cn,ln,dn,pn,fn,hn,mn,vn,gn,yn,bn,wn,_n,Sn,xn,En,Tn,Mn,Cn,In,Ln,kn,zn,An,Pn,On,Dn,Nn,Rn,jn,Fn,Bn,Hn,Vn,$n,Un,qn,Yn,Kn,Gn,Jn,Wn,Qn,Xn,Zn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,dr,pr,fr,hr,mr,vr,gr,yr,br,wr,_r,Sr,xr,Er,Tr,Mr,Cr,Ir,Lr,kr,zr,Ar,Pr,Or,Dr,Nr,Rr,jr,Fr,Br,Hr,Vr,$r,Ur,qr,Yr,Kr,Gr,Jr,Wr,Qr,Xr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,di,pi,fi,hi,mi,vi,gi,yi,bi,wi,_i,Si,xi,Ei,Ti,Mi,Ci,Ii,Li,ki,zi,Ai,Pi,Oi,Di,Ni,Ri,ji,Fi,Bi,Hi,Vi,$i,Ui,qi,Yi,Ki,Gi,Ji,Wi,Qi,Xi,Zi,eo,to,no,ro,io={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},oo=function(e){return{applyToStack:function(e){e.add(function(){var e=this;return function(t){return function(n){return Object(C.__awaiter)(e,void 0,void 0,function(){var e,r;return Object(C.__generator)(this,function(i){if("string"==typeof(e=n.input.Bucket)&&!Z(e)&&e.indexOf("/")>=0)throw(r=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",r;return[2,t(Object(C.__assign)({},n))]})})}}}(),io)}}},ao={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},so=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(C.__awaiter)(void 0,void 0,void 0,function(){var r,i;return Object(C.__generator)(this,function(o){switch(o.label){case 0:return r=n.request,!X.a.isInstance(r)||e.isCustomEndpoint?[2,t(Object(C.__assign)({},n))]:"s3.amazonaws.com"!==r.hostname?[3,1]:(r.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return i="aws-global",[4,e.region()];case 2:i===o.sent()&&(r.hostname="s3.amazonaws.com"),o.label=3;case 3:return[2,t(Object(C.__assign)({},n))]}})})}}}(e),ao)}}},uo=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},co=function(e,t){return uo(e,t).then(function(e){return t.utf8Encoder(e)})},lo={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},po=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t){return function(n){return Object(C.__awaiter)(void 0,void 0,void 0,function(){var r,i,o,a,s,u,c;return Object(C.__generator)(this,function(l){switch(l.label){case 0:return[4,t(n)];case 1:return r=l.sent(),i=r.response,X.b.isInstance(i)?(o=i.statusCode,a=i.body,o<200&&o>=300?[2,r]:[4,uo(a,e)]):[2,r];case 2:return s=l.sent(),[4,co(s,e)];case 3:if(u=l.sent(),0===s.length)throw(c=new Error("S3 aborted request")).name="InternalError",c;return u&&u.match("")&&(i.statusCode=400),i.body=s,[2,r]}})})}}}(e),lo)}}},fo=n("WKJU"),ho=n("+tSa"),mo=n("Ex0O"),vo=function(e){function t(t){var n,r,i,o,s,u,c,l,d,p,f,h=this,m=a(a({},G),t),v=Object(J.b)(m),g=Object(J.a)(v),y=Object(fo.b)(g),b=Object(j.c)(y),w=Object(we.b)(b),_=(r=(n=w).bucketEndpoint,i=void 0!==r&&r,o=n.forcePathStyle,s=void 0!==o&&o,u=n.useAccelerateEndpoint,c=void 0!==u&&u,l=n.useDualstackEndpoint,d=void 0!==l&&l,p=n.useArnRegion,f=void 0!==p&&p,Object(C.__assign)(Object(C.__assign)({},n),{bucketEndpoint:i,forcePathStyle:s,useAccelerateEndpoint:c,useDualstackEndpoint:d,useArnRegion:"function"==typeof f?f:function(){return Promise.resolve(f)}})),S=Object(ho.b)(_),x=Q(S);return(h=e.call(this,x)||this).config=x,h.middlewareStack.use(Object(fo.a)(h.config)),h.middlewareStack.use(Object(j.b)(h.config)),h.middlewareStack.use(Object(ge.a)(h.config)),h.middlewareStack.use(Object(we.a)(h.config)),h.middlewareStack.use(Object(_e.a)(h.config)),h.middlewareStack.use(oo(h.config)),h.middlewareStack.use(so(h.config)),h.middlewareStack.use(be(h.config)),h.middlewareStack.use(Object(ho.a)(h.config)),h}return o(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(mo.a);(Se||(Se={})).filterSensitiveLog=function(e){return a({},e)},(xe||(xe={})).filterSensitiveLog=function(e){return a({},e)},(Ee||(Ee={})).filterSensitiveLog=function(e){return a({},e)},(Te||(Te={})).filterSensitiveLog=function(e){return a({},e)},(Me||(Me={})).filterSensitiveLog=function(e){return a({},e)},(Ce||(Ce={})).filterSensitiveLog=function(e){return a({},e)},(Ie||(Ie={})).filterSensitiveLog=function(e){return a({},e)},(Le||(Le={})).filterSensitiveLog=function(e){return a({},e)},(ke||(ke={})).filterSensitiveLog=function(e){return a({},e)},(ze||(ze={})).filterSensitiveLog=function(e){return a({},e)},(Ae||(Ae={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d})},(Pe||(Pe={})).filterSensitiveLog=function(e){return a({},e)},(Oe||(Oe={})).filterSensitiveLog=function(e){return a({},e)},(De||(De={})).filterSensitiveLog=function(e){return a({},e)},(Ne||(Ne={})).filterSensitiveLog=function(e){return a({},e)},(Re||(Re={})).filterSensitiveLog=function(e){return a(a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d})},(je||(je={})).filterSensitiveLog=function(e){return a(a(a(a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d}),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:mo.d})},(Fe||(Fe={})).filterSensitiveLog=function(e){return a({},e)},(Be||(Be={})).filterSensitiveLog=function(e){return a({},e)},(He||(He={})).filterSensitiveLog=function(e){return a({},e)},(Ve||(Ve={})).filterSensitiveLog=function(e){return a({},e)},($e||($e={})).filterSensitiveLog=function(e){return a({},e)},(Ue||(Ue={})).filterSensitiveLog=function(e){return a({},e)},(qe||(qe={})).filterSensitiveLog=function(e){return a(a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d})},(Ye||(Ye={})).filterSensitiveLog=function(e){return a(a(a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d}),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d})},(Ke||(Ke={})).filterSensitiveLog=function(e){return a({},e)},(Ge||(Ge={})).filterSensitiveLog=function(e){return a({},e)},(Je||(Je={})).filterSensitiveLog=function(e){return a({},e)},(We||(We={})).filterSensitiveLog=function(e){return a({},e)},(Qe||(Qe={})).filterSensitiveLog=function(e){return a({},e)},(Xe||(Xe={})).filterSensitiveLog=function(e){return a({},e)},(Ze||(Ze={})).filterSensitiveLog=function(e){return a({},e)},(et||(et={})).filterSensitiveLog=function(e){return a({},e)},(tt||(tt={})).filterSensitiveLog=function(e){return a({},e)},(nt||(nt={})).filterSensitiveLog=function(e){return a({},e)},(rt||(rt={})).filterSensitiveLog=function(e){return a({},e)},(it||(it={})).filterSensitiveLog=function(e){return a({},e)},(ot||(ot={})).filterSensitiveLog=function(e){return a({},e)},(at||(at={})).filterSensitiveLog=function(e){return a({},e)},(st||(st={})).filterSensitiveLog=function(e){return a({},e)},(ut||(ut={})).filterSensitiveLog=function(e){return a({},e)},(ct||(ct={})).filterSensitiveLog=function(e){return a({},e)},(lt||(lt={})).filterSensitiveLog=function(e){return a({},e)},(dt||(dt={})).filterSensitiveLog=function(e){return a({},e)},(pt||(pt={})).filterSensitiveLog=function(e){return a({},e)},(ft||(ft={})).filterSensitiveLog=function(e){return a({},e)},(ht||(ht={})).filterSensitiveLog=function(e){return a({},e)},(mt||(mt={})).filterSensitiveLog=function(e){return a({},e)},(vt||(vt={})).filterSensitiveLog=function(e){return a({},e)},(gt||(gt={})).filterSensitiveLog=function(e){return a({},e)},(yt||(yt={})).filterSensitiveLog=function(e){return a({},e)},(bt||(bt={})).filterSensitiveLog=function(e){return a({},e)},(wt||(wt={})).filterSensitiveLog=function(e){return a({},e)},(_t||(_t={})).filterSensitiveLog=function(e){return a({},e)},(St||(St={})).filterSensitiveLog=function(e){return a({},e)},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:_t.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:St.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(xt||(xt={})),(Et||(Et={})).filterSensitiveLog=function(e){return a({},e)},(Tt||(Tt={})).filterSensitiveLog=function(e){return a({},e)},(Mt||(Mt={})).filterSensitiveLog=function(e){return a({},e)},(Ct||(Ct={})).filterSensitiveLog=function(e){return a({},e)},(It||(It={})).filterSensitiveLog=function(e){return a(a({},e),e.Filter&&{Filter:xt.filterSensitiveLog(e.Filter)})},(Lt||(Lt={})).filterSensitiveLog=function(e){return a(a({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:It.filterSensitiveLog(e.AnalyticsConfiguration)})},(kt||(kt={})).filterSensitiveLog=function(e){return a({},e)},(zt||(zt={})).filterSensitiveLog=function(e){return a({},e)},(At||(At={})).filterSensitiveLog=function(e){return a({},e)},(Pt||(Pt={})).filterSensitiveLog=function(e){return a({},e)},(Ot||(Ot={})).filterSensitiveLog=function(e){return a(a({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:mo.d})},(Dt||(Dt={})).filterSensitiveLog=function(e){return a(a({},e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:Ot.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})},(Nt||(Nt={})).filterSensitiveLog=function(e){return a(a({},e),e.Rules&&{Rules:e.Rules.map(function(e){return Dt.filterSensitiveLog(e)})})},(Rt||(Rt={})).filterSensitiveLog=function(e){return a(a({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:Nt.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(jt||(jt={})).filterSensitiveLog=function(e){return a({},e)},(Ft||(Ft={})).filterSensitiveLog=function(e){return a({},e)},(Bt||(Bt={})).filterSensitiveLog=function(e){return a({},e)},(Ht||(Ht={})).filterSensitiveLog=function(e){return a({},e)},(Vt||(Vt={})).filterSensitiveLog=function(e){return a({},e)},($t||($t={})).filterSensitiveLog=function(e){return a({},e)},(Ut||(Ut={})).filterSensitiveLog=function(e){return a({},e)},(qt||(qt={})).filterSensitiveLog=function(e){return a(a({},e),e.KeyId&&{KeyId:mo.d})},(Yt||(Yt={})).filterSensitiveLog=function(e){return a({},e)},(Kt||(Kt={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMS&&{SSEKMS:qt.filterSensitiveLog(e.SSEKMS)})},(Gt||(Gt={})).filterSensitiveLog=function(e){return a(a({},e),e.Encryption&&{Encryption:Kt.filterSensitiveLog(e.Encryption)})},(Jt||(Jt={})).filterSensitiveLog=function(e){return a(a({},e),e.S3BucketDestination&&{S3BucketDestination:Gt.filterSensitiveLog(e.S3BucketDestination)})},(Wt||(Wt={})).filterSensitiveLog=function(e){return a({},e)},(Qt||(Qt={})).filterSensitiveLog=function(e){return a({},e)},(Xt||(Xt={})).filterSensitiveLog=function(e){return a(a({},e),e.Destination&&{Destination:Jt.filterSensitiveLog(e.Destination)})},(Zt||(Zt={})).filterSensitiveLog=function(e){return a(a({},e),e.InventoryConfiguration&&{InventoryConfiguration:Xt.filterSensitiveLog(e.InventoryConfiguration)})},(en||(en={})).filterSensitiveLog=function(e){return a({},e)},(tn||(tn={})).filterSensitiveLog=function(e){return a({},e)},(nn||(nn={})).filterSensitiveLog=function(e){return a({},e)},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:_t.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:nn.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(rn||(rn={})),(on||(on={})).filterSensitiveLog=function(e){return a({},e)},(an||(an={})).filterSensitiveLog=function(e){return a({},e)},(sn||(sn={})).filterSensitiveLog=function(e){return a({},e)},(un||(un={})).filterSensitiveLog=function(e){return a(a({},e),e.Filter&&{Filter:rn.filterSensitiveLog(e.Filter)})},(cn||(cn={})).filterSensitiveLog=function(e){return a(a({},e),e.Rules&&{Rules:e.Rules.map(function(e){return un.filterSensitiveLog(e)})})},(ln||(ln={})).filterSensitiveLog=function(e){return a({},e)},(dn||(dn={})).filterSensitiveLog=function(e){return a({},e)},(pn||(pn={})).filterSensitiveLog=function(e){return a({},e)},(fn||(fn={})).filterSensitiveLog=function(e){return a({},e)},(hn||(hn={})).filterSensitiveLog=function(e){return a({},e)},(mn||(mn={})).filterSensitiveLog=function(e){return a({},e)},(vn||(vn={})).filterSensitiveLog=function(e){return a({},e)},(gn||(gn={})).filterSensitiveLog=function(e){return a({},e)},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:_t.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:gn.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(yn||(yn={})),(bn||(bn={})).filterSensitiveLog=function(e){return a(a({},e),e.Filter&&{Filter:yn.filterSensitiveLog(e.Filter)})},(wn||(wn={})).filterSensitiveLog=function(e){return a(a({},e),e.MetricsConfiguration&&{MetricsConfiguration:bn.filterSensitiveLog(e.MetricsConfiguration)})},(_n||(_n={})).filterSensitiveLog=function(e){return a({},e)},(Sn||(Sn={})).filterSensitiveLog=function(e){return a({},e)},(xn||(xn={})).filterSensitiveLog=function(e){return a({},e)},(En||(En={})).filterSensitiveLog=function(e){return a({},e)},(Tn||(Tn={})).filterSensitiveLog=function(e){return a({},e)},(Mn||(Mn={})).filterSensitiveLog=function(e){return a({},e)},(Cn||(Cn={})).filterSensitiveLog=function(e){return a({},e)},(In||(In={})).filterSensitiveLog=function(e){return a({},e)},(Ln||(Ln={})).filterSensitiveLog=function(e){return a({},e)},(kn||(kn={})).filterSensitiveLog=function(e){return a({},e)},(zn||(zn={})).filterSensitiveLog=function(e){return a({},e)},(An||(An={})).filterSensitiveLog=function(e){return a({},e)},(Pn||(Pn={})).filterSensitiveLog=function(e){return a({},e)},(On||(On={})).filterSensitiveLog=function(e){return a({},e)},(Dn||(Dn={})).filterSensitiveLog=function(e){return a({},e)},(Nn||(Nn={})).filterSensitiveLog=function(e){return a({},e)},(Rn||(Rn={})).filterSensitiveLog=function(e){return a({},e)},(jn||(jn={})).filterSensitiveLog=function(e){return a({},e)},(Fn||(Fn={})).filterSensitiveLog=function(e){return a({},e)},(Bn||(Bn={})).filterSensitiveLog=function(e){return a({},e)},(Hn||(Hn={})).filterSensitiveLog=function(e){return a({},e)},(Vn||(Vn={})).filterSensitiveLog=function(e){return a({},e)},($n||($n={})).filterSensitiveLog=function(e){return a({},e)},(Un||(Un={})).filterSensitiveLog=function(e){return a({},e)},(qn||(qn={})).filterSensitiveLog=function(e){return a({},e)},(Yn||(Yn={})).filterSensitiveLog=function(e){return a({},e)},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:_t.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Yn.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Kn||(Kn={})),(Gn||(Gn={})).filterSensitiveLog=function(e){return a({},e)},(Jn||(Jn={})).filterSensitiveLog=function(e){return a({},e)},(Wn||(Wn={})).filterSensitiveLog=function(e){return a({},e)},(Qn||(Qn={})).filterSensitiveLog=function(e){return a(a({},e),e.Filter&&{Filter:Kn.filterSensitiveLog(e.Filter)})},(Xn||(Xn={})).filterSensitiveLog=function(e){return a(a({},e),e.Rules&&{Rules:e.Rules.map(function(e){return Qn.filterSensitiveLog(e)})})},(Zn||(Zn={})).filterSensitiveLog=function(e){return a(a({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Xn.filterSensitiveLog(e.ReplicationConfiguration)})},(er||(er={})).filterSensitiveLog=function(e){return a({},e)},(tr||(tr={})).filterSensitiveLog=function(e){return a({},e)},(nr||(nr={})).filterSensitiveLog=function(e){return a({},e)},(rr||(rr={})).filterSensitiveLog=function(e){return a({},e)},(ir||(ir={})).filterSensitiveLog=function(e){return a({},e)},(or||(or={})).filterSensitiveLog=function(e){return a({},e)},(ar||(ar={})).filterSensitiveLog=function(e){return a({},e)},(sr||(sr={})).filterSensitiveLog=function(e){return a({},e)},(ur||(ur={})).filterSensitiveLog=function(e){return a({},e)},(cr||(cr={})).filterSensitiveLog=function(e){return a({},e)},(lr||(lr={})).filterSensitiveLog=function(e){return a({},e)},(dr||(dr={})).filterSensitiveLog=function(e){return a({},e)},(pr||(pr={})).filterSensitiveLog=function(e){return a({},e)},(fr||(fr={})).filterSensitiveLog=function(e){return a({},e)},(hr||(hr={})).filterSensitiveLog=function(e){return a({},e)},(mr||(mr={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d})},(vr||(vr={})).filterSensitiveLog=function(e){return a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d})},(gr||(gr={})).filterSensitiveLog=function(e){return a({},e)},(yr||(yr={})).filterSensitiveLog=function(e){return a({},e)},(br||(br={})).filterSensitiveLog=function(e){return a({},e)},(wr||(wr={})).filterSensitiveLog=function(e){return a({},e)},(_r||(_r={})).filterSensitiveLog=function(e){return a({},e)},(Sr||(Sr={})).filterSensitiveLog=function(e){return a({},e)},(xr||(xr={})).filterSensitiveLog=function(e){return a({},e)},(Er||(Er={})).filterSensitiveLog=function(e){return a({},e)},(Tr||(Tr={})).filterSensitiveLog=function(e){return a({},e)},(Mr||(Mr={})).filterSensitiveLog=function(e){return a({},e)},(Cr||(Cr={})).filterSensitiveLog=function(e){return a({},e)},(Ir||(Ir={})).filterSensitiveLog=function(e){return a({},e)},(Lr||(Lr={})).filterSensitiveLog=function(e){return a({},e)},(kr||(kr={})).filterSensitiveLog=function(e){return a({},e)},(zr||(zr={})).filterSensitiveLog=function(e){return a({},e)},(Ar||(Ar={})).filterSensitiveLog=function(e){return a({},e)},(Pr||(Pr={})).filterSensitiveLog=function(e){return a({},e)},(Or||(Or={})).filterSensitiveLog=function(e){return a({},e)},(Dr||(Dr={})).filterSensitiveLog=function(e){return a({},e)},(Nr||(Nr={})).filterSensitiveLog=function(e){return a({},e)},(Rr||(Rr={})).filterSensitiveLog=function(e){return a({},e)},(jr||(jr={})).filterSensitiveLog=function(e){return a({},e)},(Fr||(Fr={})).filterSensitiveLog=function(e){return a({},e)},(Br||(Br={})).filterSensitiveLog=function(e){return a({},e)},(Hr||(Hr={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d})},(Vr||(Vr={})).filterSensitiveLog=function(e){return a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d})},($r||($r={})).filterSensitiveLog=function(e){return a(a({},e),e.AnalyticsConfigurationList&&{AnalyticsConfigurationList:e.AnalyticsConfigurationList.map(function(e){return It.filterSensitiveLog(e)})})},(Ur||(Ur={})).filterSensitiveLog=function(e){return a({},e)},(qr||(qr={})).filterSensitiveLog=function(e){return a({},e)},(Yr||(Yr={})).filterSensitiveLog=function(e){return a({},e)},(Kr||(Kr={})).filterSensitiveLog=function(e){return a(a({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(function(e){return Xt.filterSensitiveLog(e)})})},(Gr||(Gr={})).filterSensitiveLog=function(e){return a({},e)},(Jr||(Jr={})).filterSensitiveLog=function(e){return a(a({},e),e.MetricsConfigurationList&&{MetricsConfigurationList:e.MetricsConfigurationList.map(function(e){return bn.filterSensitiveLog(e)})})},(Wr||(Wr={})).filterSensitiveLog=function(e){return a({},e)},(Qr||(Qr={})).filterSensitiveLog=function(e){return a({},e)},(Xr||(Xr={})).filterSensitiveLog=function(e){return a({},e)},(Zr||(Zr={})).filterSensitiveLog=function(e){return a({},e)},(ei||(ei={})).filterSensitiveLog=function(e){return a({},e)},(ti||(ti={})).filterSensitiveLog=function(e){return a({},e)},(ni||(ni={})).filterSensitiveLog=function(e){return a({},e)},(ri||(ri={})).filterSensitiveLog=function(e){return a({},e)},(ii||(ii={})).filterSensitiveLog=function(e){return a({},e)},(oi||(oi={})).filterSensitiveLog=function(e){return a({},e)},(ai||(ai={})).filterSensitiveLog=function(e){return a({},e)},(si||(si={})).filterSensitiveLog=function(e){return a({},e)},(ui||(ui={})).filterSensitiveLog=function(e){return a({},e)},(ci||(ci={})).filterSensitiveLog=function(e){return a({},e)},(li||(li={})).filterSensitiveLog=function(e){return a({},e)},(di||(di={})).filterSensitiveLog=function(e){return a({},e)},(pi||(pi={})).filterSensitiveLog=function(e){return a({},e)},(fi||(fi={})).filterSensitiveLog=function(e){return a({},e)},(hi||(hi={})).filterSensitiveLog=function(e){return a({},e)},(mi||(mi={})).filterSensitiveLog=function(e){return a({},e)},(vi||(vi={})).filterSensitiveLog=function(e){return a({},e)},(gi||(gi={})).filterSensitiveLog=function(e){return a({},e)},(yi||(yi={})).filterSensitiveLog=function(e){return a(a({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:It.filterSensitiveLog(e.AnalyticsConfiguration)})},(bi||(bi={})).filterSensitiveLog=function(e){return a({},e)},(wi||(wi={})).filterSensitiveLog=function(e){return a({},e)},(_i||(_i={})).filterSensitiveLog=function(e){return a(a({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:Nt.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(Si||(Si={})).filterSensitiveLog=function(e){return a({},e)},(xi||(xi={})).filterSensitiveLog=function(e){return a(a({},e),e.InventoryConfiguration&&{InventoryConfiguration:Xt.filterSensitiveLog(e.InventoryConfiguration)})},(Ei||(Ei={})).filterSensitiveLog=function(e){return a(a({},e),e.Rules&&{Rules:e.Rules.map(function(e){return un.filterSensitiveLog(e)})})},(Ti||(Ti={})).filterSensitiveLog=function(e){return a(a({},e),e.LifecycleConfiguration&&{LifecycleConfiguration:Ei.filterSensitiveLog(e.LifecycleConfiguration)})},(Mi||(Mi={})).filterSensitiveLog=function(e){return a({},e)},(Ci||(Ci={})).filterSensitiveLog=function(e){return a({},e)},(Ii||(Ii={})).filterSensitiveLog=function(e){return a(a({},e),e.MetricsConfiguration&&{MetricsConfiguration:bn.filterSensitiveLog(e.MetricsConfiguration)})},(Li||(Li={})).filterSensitiveLog=function(e){return a({},e)},(ki||(ki={})).filterSensitiveLog=function(e){return a({},e)},(zi||(zi={})).filterSensitiveLog=function(e){return a({},e)},(Ai||(Ai={})).filterSensitiveLog=function(e){return a(a({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Xn.filterSensitiveLog(e.ReplicationConfiguration)})},(Pi||(Pi={})).filterSensitiveLog=function(e){return a({},e)},(Oi||(Oi={})).filterSensitiveLog=function(e){return a({},e)},(Di||(Di={})).filterSensitiveLog=function(e){return a({},e)},(Ni||(Ni={})).filterSensitiveLog=function(e){return a({},e)},(Ri||(Ri={})).filterSensitiveLog=function(e){return a({},e)},(ji||(ji={})).filterSensitiveLog=function(e){return a({},e)},(Fi||(Fi={})).filterSensitiveLog=function(e){return a({},e)},(Bi||(Bi={})).filterSensitiveLog=function(e){return a({},e)},(Hi||(Hi={})).filterSensitiveLog=function(e){return a(a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d})},(Vi||(Vi={})).filterSensitiveLog=function(e){return a(a(a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d}),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:mo.d})},($i||($i={})).filterSensitiveLog=function(e){return a({},e)},(Ui||(Ui={})).filterSensitiveLog=function(e){return a({},e)},(qi||(qi={})).filterSensitiveLog=function(e){return a({},e)},(Yi||(Yi={})).filterSensitiveLog=function(e){return a({},e)},(Ki||(Ki={})).filterSensitiveLog=function(e){return a({},e)},(Gi||(Gi={})).filterSensitiveLog=function(e){return a({},e)},(Ji||(Ji={})).filterSensitiveLog=function(e){return a({},e)},(Wi||(Wi={})).filterSensitiveLog=function(e){return a({},e)},(Qi||(Qi={})).filterSensitiveLog=function(e){return a({},e)},(Xi||(Xi={})).filterSensitiveLog=function(e){return a({},e)},(Zi||(Zi={})).filterSensitiveLog=function(e){return a({},e)},(eo||(eo={})).filterSensitiveLog=function(e){return a({},e)},(to||(to={})).filterSensitiveLog=function(e){return a({},e)},(no||(no={})).filterSensitiveLog=function(e){return a({},e)},(ro||(ro={})).filterSensitiveLog=function(e){return a(a({},e),e.KMSKeyId&&{KMSKeyId:mo.d})};var go=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,i=this.attributes;try{for(var o=Object(C.__values)(Object.keys(i)),a=o.next();!a.done;a=o.next()){var s=a.value,u=i[s];void 0!==u&&null!==u&&(r+=" "+s+'="'+(""+u).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")+'"')}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r+(n?">"+this.children.map(function(e){return e.toString()}).join("")+"":"/>")},e}();var yo=function(){function e(e){this.value=e}return e.prototype.toString=function(){return(""+this.value).replace(/&/g,"&").replace(//g,">")},e}(),bo=n("gKN8"),wo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return s=[{}],[4,hs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},_o=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},So=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":return[3,2]}return[3,4];case 2:return s=[{}],[4,vs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},xo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],p={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(p.body=u.sent(),p)])),o="UnknownError",o=Ml(e,n.body),o){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":return[3,2];case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":return[3,4]}return[3,6];case 2:return s=[{}],[4,cs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,7];case 4:return c=[{}],[4,ls(n,t)];case 5:return i=a.apply(void 0,[a.apply(void 0,c.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,7];case 6:l=n.body,o=l.code||l.Code||o,i=a(a({},l),{name:""+o,message:l.message||l.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=7;case 7:return d=i.message||i.Message||o,i.message=d,delete i.Message,[2,Promise.reject(Object.assign(new Error(d),i))]}})})},Eo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},To=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Mo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Co=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Io=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Lo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ko=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},zo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ao=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Po=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Oo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Do=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},No=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ro=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},jo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Fo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Bo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ho=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Vo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},$o=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Uo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},qo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Yo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ko=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Go=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Jo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Wo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Qo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Xo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Zo=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ea=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ta=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},na=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ra=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ia=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},oa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},aa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},sa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ua=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],p={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(p.body=u.sent(),p)])),o="UnknownError",o=Ml(e,n.body),o){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return s=[{}],[4,ds(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,7];case 4:return c=[{}],[4,fs(n,t)];case 5:return i=a.apply(void 0,[a.apply(void 0,c.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,7];case 6:l=n.body,o=l.code||l.Code||o,i=a(a({},l),{name:""+o,message:l.message||l.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=7;case 7:return d=i.message||i.Message||o,i.message=d,delete i.Message,[2,Promise.reject(Object.assign(new Error(d),i))]}})})},ca=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,2]}return[3,4];case 2:return s=[{}],[4,fs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},la=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},da=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},pa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},fa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ha=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ma=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},va=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,ps(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},ga=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,2]}return[3,4];case 2:return s=[{}],[4,fs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},ya=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ba=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},wa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},_a=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Sa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},xa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ea=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,ps(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Ta=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,ps(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Ma=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ca=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ia=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},La=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ka=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},za=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Aa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Pa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Oa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Da=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Na=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ra=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ja=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Fa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ba=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ha=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Va=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},$a=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ua=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},qa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ya=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ka=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,2]}return[3,4];case 2:return s=[{}],[4,fs(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Ga=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Ja=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Wa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Qa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Xa=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},Za=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],d={},[4,Tl(e.body,t)];case 1:switch(n=a.apply(void 0,r.concat([(d.body=u.sent(),d)])),o="UnknownError",o=Ml(e,n.body),o){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":return[3,2]}return[3,4];case 2:return s=[{}],[4,ms(n,t)];case 3:return i=a.apply(void 0,[a.apply(void 0,s.concat([u.sent()])),{name:o,$metadata:Sl(e)}]),[3,5];case 4:c=n.body,o=c.code||c.Code||o,i=a(a({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:Sl(e)}),u.label=5;case 5:return l=i.message||i.Message||o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},es=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ts=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},ns=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l;return u(this,function(u){switch(u.label){case 0:return r=[a({},e)],l={},[4,Tl(e.body,t)];case 1:return n=a.apply(void 0,r.concat([(l.body=u.sent(),l)])),o="UnknownError",o=Ml(e,n.body),s=n.body,o=s.code||s.Code||o,i=a(a({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:Sl(e)}),c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},rs=function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,a;return u(this,function(s){switch(s.label){case 0:return void 0===e.Records?[3,2]:(n={},[4,ss(e.Records,t)]);case 1:return[2,(n.Records=s.sent(),n)];case 2:return void 0===e.Stats?[3,4]:(r={},[4,us(e.Stats,t)]);case 3:return[2,(r.Stats=s.sent(),r)];case 4:return void 0===e.Progress?[3,6]:(i={},[4,as(e.Progress,t)]);case 5:return[2,(i.Progress=s.sent(),i)];case 6:return void 0===e.Cont?[3,8]:(o={},[4,is(e.Cont,t)]);case 7:return[2,(o.Cont=s.sent(),o)];case 8:return void 0===e.End?[3,10]:(a={},[4,os(e.End,t)]);case 9:return[2,(a.End=s.sent(),a)];case 10:return[2,{$unknown:e}]}})})},is=function(e,t){return s(void 0,void 0,void 0,function(){return u(this,function(e){return[2,{}]})})},os=function(e,t){return s(void 0,void 0,void 0,function(){return u(this,function(e){return[2,{}]})})},as=function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return r=n={},[4,Tl(e.body,t)];case 1:return r.Details=i.sent(),[2,n]}})})},ss=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return(t={}).Payload=e.body,[2,t]})})},us=function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return r=n={},[4,Tl(e.body,t)];case 1:return r.Details=i.sent(),[2,n]}})})},cs=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"BucketAlreadyExists",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},ls=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"BucketAlreadyOwnedByYou",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},ds=function(e,t){return s(void 0,void 0,void 0,function(){var t,n;return u(this,function(r){return t={name:"InvalidObjectState",$fault:"client",$metadata:Sl(e),AccessTier:void 0,StorageClass:void 0},void 0!==(n=e.body).AccessTier&&(t.AccessTier=n.AccessTier),void 0!==n.StorageClass&&(t.StorageClass=n.StorageClass),[2,t]})})},ps=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"NoSuchBucket",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},fs=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"NoSuchKey",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},hs=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"NoSuchUpload",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},ms=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"ObjectAlreadyInActiveTierError",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},vs=function(e,t){return s(void 0,void 0,void 0,function(){var t;return u(this,function(n){return t={name:"ObjectNotInActiveTierError",$fault:"client",$metadata:Sl(e)},e.body,[2,t]})})},gs=function(e,t){var n=new go("AccelerateConfiguration");if(void 0!==e.Status&&null!==e.Status){var r=new go("BucketAccelerateStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n},ys=function(e,t){var n=new go("AccessControlPolicy");if(void 0!==e.Grants&&null!==e.Grants){var r=Rs(e.Grants,t),i=new go("AccessControlList");r.map(function(e){i.addChildNode(e)}),n.addChildNode(i)}if(void 0!==e.Owner&&null!==e.Owner){var o=pu(e.Owner,t).withName("Owner");n.addChildNode(o)}return n},bs=function(e,t){var n=new go("AnalyticsConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("AnalyticsId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=ws(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.StorageClassAnalysis&&null!==e.StorageClassAnalysis){r=Fu(e.StorageClassAnalysis,t).withName("StorageClassAnalysis");n.addChildNode(r)}return n},ws=function(e,t){var n=new go("AnalyticsFilter");return xt.visit(e,{Prefix:function(e){var t=new go("Prefix").addChildNode(new yo(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=Hu(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new go("AnalyticsAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&$u(e.Tags,t).map(function(e){e=e.withName("Tag"),n.addChildNode(e)});return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof go||t instanceof yo))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new go(e).addChildNode(t))}}),n},_s=function(e,t){var n=new go("AnalyticsS3BucketDestination");if(void 0!==e.Format&&null!==e.Format){var r=new go("AnalyticsS3ExportFileFormat").addChildNode(new yo(e.Format)).withName("Format");n.addChildNode(r)}if(void 0!==e.BucketAccountId&&null!==e.BucketAccountId){r=new go("AccountId").addChildNode(new yo(e.BucketAccountId)).withName("BucketAccountId");n.addChildNode(r)}if(void 0!==e.Bucket&&null!==e.Bucket){r=new go("BucketName").addChildNode(new yo(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}return n},Ss=function(e,t){var n=new go("BucketLifecycleConfiguration");void 0!==e.Rules&&null!==e.Rules&&Qs(e.Rules,t).map(function(e){e=e.withName("Rule"),n.addChildNode(e)});return n},xs=function(e,t){var n=new go("BucketLoggingStatus");if(void 0!==e.LoggingEnabled&&null!==e.LoggingEnabled){var r=Xs(e.LoggingEnabled,t).withName("LoggingEnabled");n.addChildNode(r)}return n},Es=function(e,t){var n=new go("CompletedMultipartUpload");void 0!==e.Parts&&null!==e.Parts&&Ts(e.Parts,t).map(function(e){e=e.withName("Part"),n.addChildNode(e)});return n},Ts=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("CompletedPart");if(void 0!==e.ETag&&null!==e.ETag){var r=new go("ETag").addChildNode(new yo(e.ETag)).withName("ETag");n.addChildNode(r)}void 0!==e.PartNumber&&null!==e.PartNumber&&(r=new go("PartNumber").addChildNode(new yo(String(e.PartNumber))).withName("PartNumber"),n.addChildNode(r));return n}(e).withName("member")})},Ms=function(e,t){var n=new go("CORSConfiguration");void 0!==e.CORSRules&&null!==e.CORSRules&&Is(e.CORSRules,t).map(function(e){e=e.withName("CORSRule"),n.addChildNode(e)});return n},Cs=function(e,t){var n=new go("CORSRule");void 0!==e.AllowedHeaders&&null!==e.AllowedHeaders&&function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("AllowedHeader").addChildNode(new yo(e)).withName("member")})}(e.AllowedHeaders).map(function(e){e=e.withName("AllowedHeader"),n.addChildNode(e)});void 0!==e.AllowedMethods&&null!==e.AllowedMethods&&function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("AllowedMethod").addChildNode(new yo(e)).withName("member")})}(e.AllowedMethods).map(function(e){e=e.withName("AllowedMethod"),n.addChildNode(e)});void 0!==e.AllowedOrigins&&null!==e.AllowedOrigins&&function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("AllowedOrigin").addChildNode(new yo(e)).withName("member")})}(e.AllowedOrigins).map(function(e){e=e.withName("AllowedOrigin"),n.addChildNode(e)});void 0!==e.ExposeHeaders&&null!==e.ExposeHeaders&&Os(e.ExposeHeaders,t).map(function(e){e=e.withName("ExposeHeader"),n.addChildNode(e)});if(void 0!==e.MaxAgeSeconds&&null!==e.MaxAgeSeconds){var r=new go("MaxAgeSeconds").addChildNode(new yo(String(e.MaxAgeSeconds))).withName("MaxAgeSeconds");n.addChildNode(r)}return n},Is=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:Cs(e,t).withName("member")})},Ls=function(e,t){var n=new go("CreateBucketConfiguration");if(void 0!==e.LocationConstraint&&null!==e.LocationConstraint){var r=new go("BucketLocationConstraint").addChildNode(new yo(e.LocationConstraint)).withName("LocationConstraint");n.addChildNode(r)}return n},ks=function(e,t){var n=new go("Delete");void 0!==e.Objects&&null!==e.Objects&&au(e.Objects,t).map(function(e){e=e.withName("Object"),n.addChildNode(e)});if(void 0!==e.Quiet&&null!==e.Quiet){var r=new go("Quiet").addChildNode(new yo(String(e.Quiet))).withName("Quiet");n.addChildNode(r)}return n},zs=function(e,t){var n=new go("Destination");if(void 0!==e.Bucket&&null!==e.Bucket){var r=new go("BucketName").addChildNode(new yo(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Account&&null!==e.Account){r=new go("AccountId").addChildNode(new yo(e.Account)).withName("Account");n.addChildNode(r)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new go("StorageClass").addChildNode(new yo(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}if(void 0!==e.AccessControlTranslation&&null!==e.AccessControlTranslation){r=function(e,t){var n=new go("AccessControlTranslation");if(void 0!==e.Owner&&null!==e.Owner){var r=new go("OwnerOverride").addChildNode(new yo(e.Owner)).withName("Owner");n.addChildNode(r)}return n}(e.AccessControlTranslation).withName("AccessControlTranslation");n.addChildNode(r)}if(void 0!==e.EncryptionConfiguration&&null!==e.EncryptionConfiguration){r=As(e.EncryptionConfiguration,t).withName("EncryptionConfiguration");n.addChildNode(r)}if(void 0!==e.ReplicationTime&&null!==e.ReplicationTime){r=Su(e.ReplicationTime,t).withName("ReplicationTime");n.addChildNode(r)}if(void 0!==e.Metrics&&null!==e.Metrics){r=Zs(e.Metrics,t).withName("Metrics");n.addChildNode(r)}return n},As=function(e,t){var n=new go("EncryptionConfiguration");if(void 0!==e.ReplicaKmsKeyID&&null!==e.ReplicaKmsKeyID){var r=new go("ReplicaKmsKeyID").addChildNode(new yo(e.ReplicaKmsKeyID)).withName("ReplicaKmsKeyID");n.addChildNode(r)}return n},Ps=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("Event").addChildNode(new yo(e)).withName("member")})},Os=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("ExposeHeader").addChildNode(new yo(e)).withName("member")})},Ds=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("FilterRule");if(void 0!==e.Name&&null!==e.Name){var r=new go("FilterRuleName").addChildNode(new yo(e.Name)).withName("Name");n.addChildNode(r)}void 0!==e.Value&&null!==e.Value&&(r=new go("FilterRuleValue").addChildNode(new yo(e.Value)).withName("Value"),n.addChildNode(r));return n}(e).withName("member")})},Ns=function(e,t){var n=new go("Grantee");if(void 0!==e.DisplayName&&null!==e.DisplayName){var r=new go("DisplayName").addChildNode(new yo(e.DisplayName)).withName("DisplayName");n.addChildNode(r)}if(void 0!==e.EmailAddress&&null!==e.EmailAddress){r=new go("EmailAddress").addChildNode(new yo(e.EmailAddress)).withName("EmailAddress");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new go("ID").addChildNode(new yo(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.URI&&null!==e.URI){r=new go("URI").addChildNode(new yo(e.URI)).withName("URI");n.addChildNode(r)}return void 0!==e.Type&&null!==e.Type&&n.addAttribute("xsi:type",e.Type),n},Rs=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("Grant");if(void 0!==e.Grantee&&null!==e.Grantee){var r=Ns(e.Grantee,t).withName("Grantee");n.addChildNode(r)}void 0!==e.Permission&&null!==e.Permission&&(r=new go("Permission").addChildNode(new yo(e.Permission)).withName("Permission"),n.addChildNode(r));return n}(e,t).withName("Grant")})},js=function(e,t){var n=new go("InputSerialization");if(void 0!==e.CSV&&null!==e.CSV){var r=function(e,t){var n=new go("CSVInput");if(void 0!==e.FileHeaderInfo&&null!==e.FileHeaderInfo){var r=new go("FileHeaderInfo").addChildNode(new yo(e.FileHeaderInfo)).withName("FileHeaderInfo");n.addChildNode(r)}void 0!==e.Comments&&null!==e.Comments&&(r=new go("Comments").addChildNode(new yo(e.Comments)).withName("Comments"),n.addChildNode(r));void 0!==e.QuoteEscapeCharacter&&null!==e.QuoteEscapeCharacter&&(r=new go("QuoteEscapeCharacter").addChildNode(new yo(e.QuoteEscapeCharacter)).withName("QuoteEscapeCharacter"),n.addChildNode(r));void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter&&(r=new go("RecordDelimiter").addChildNode(new yo(e.RecordDelimiter)).withName("RecordDelimiter"),n.addChildNode(r));void 0!==e.FieldDelimiter&&null!==e.FieldDelimiter&&(r=new go("FieldDelimiter").addChildNode(new yo(e.FieldDelimiter)).withName("FieldDelimiter"),n.addChildNode(r));void 0!==e.QuoteCharacter&&null!==e.QuoteCharacter&&(r=new go("QuoteCharacter").addChildNode(new yo(e.QuoteCharacter)).withName("QuoteCharacter"),n.addChildNode(r));void 0!==e.AllowQuotedRecordDelimiter&&null!==e.AllowQuotedRecordDelimiter&&(r=new go("AllowQuotedRecordDelimiter").addChildNode(new yo(String(e.AllowQuotedRecordDelimiter))).withName("AllowQuotedRecordDelimiter"),n.addChildNode(r));return n}(e.CSV).withName("CSV");n.addChildNode(r)}if(void 0!==e.CompressionType&&null!==e.CompressionType){r=new go("CompressionType").addChildNode(new yo(e.CompressionType)).withName("CompressionType");n.addChildNode(r)}if(void 0!==e.JSON&&null!==e.JSON){r=Ks(e.JSON,t).withName("JSON");n.addChildNode(r)}if(void 0!==e.Parquet&&null!==e.Parquet){r=mu(e.Parquet,t).withName("Parquet");n.addChildNode(r)}return n},Fs=function(e,t){var n=new go("IntelligentTieringConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("IntelligentTieringId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=Bs(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new go("IntelligentTieringStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}void 0!==e.Tierings&&null!==e.Tierings&&qu(e.Tierings,t).map(function(e){e=e.withName("Tiering"),n.addChildNode(e)});return n},Bs=function(e,t){var n=new go("IntelligentTieringFilter");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Tag&&null!==e.Tag){r=Hu(e.Tag,t).withName("Tag");n.addChildNode(r)}if(void 0!==e.And&&null!==e.And){r=function(e,t){var n=new go("IntelligentTieringAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&$u(e.Tags,t).map(function(e){e=e.withName("Tag"),n.addChildNode(e)});return n}(e.And,t).withName("And");n.addChildNode(r)}return n},Hs=function(e,t){var n=new go("InventoryConfiguration");if(void 0!==e.Destination&&null!==e.Destination){var r=Vs(e.Destination,t).withName("Destination");n.addChildNode(r)}if(void 0!==e.IsEnabled&&null!==e.IsEnabled){r=new go("IsEnabled").addChildNode(new yo(String(e.IsEnabled))).withName("IsEnabled");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=$s(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Id&&null!==e.Id){r=new go("InventoryId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.IncludedObjectVersions&&null!==e.IncludedObjectVersions){r=new go("InventoryIncludedObjectVersions").addChildNode(new yo(e.IncludedObjectVersions)).withName("IncludedObjectVersions");n.addChildNode(r)}if(void 0!==e.OptionalFields&&null!==e.OptionalFields){var i=Us(e.OptionalFields,t),o=new go("OptionalFields");i.map(function(e){o.addChildNode(e)}),n.addChildNode(o)}if(void 0!==e.Schedule&&null!==e.Schedule){r=Ys(e.Schedule,t).withName("Schedule");n.addChildNode(r)}return n},Vs=function(e,t){var n=new go("InventoryDestination");if(void 0!==e.S3BucketDestination&&null!==e.S3BucketDestination){var r=qs(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},$s=function(e,t){var n=new go("InventoryFilter");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}return n},Us=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:new go("InventoryOptionalField").addChildNode(new yo(e)).withName("Field")})},qs=function(e,t){var n=new go("InventoryS3BucketDestination");if(void 0!==e.AccountId&&null!==e.AccountId){var r=new go("AccountId").addChildNode(new yo(e.AccountId)).withName("AccountId");n.addChildNode(r)}if(void 0!==e.Bucket&&null!==e.Bucket){r=new go("BucketName").addChildNode(new yo(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Format&&null!==e.Format){r=new go("InventoryFormat").addChildNode(new yo(e.Format)).withName("Format");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Encryption&&null!==e.Encryption){r=function(e,t){var n=new go("InventoryEncryption");if(void 0!==e.SSES3&&null!==e.SSES3){var r=ju(e.SSES3,t).withName("SSE-S3");n.addChildNode(r)}void 0!==e.SSEKMS&&null!==e.SSEKMS&&(r=Nu(e.SSEKMS,t).withName("SSE-KMS"),n.addChildNode(r));return n}(e.Encryption,t).withName("Encryption");n.addChildNode(r)}return n},Ys=function(e,t){var n=new go("InventorySchedule");if(void 0!==e.Frequency&&null!==e.Frequency){var r=new go("InventoryFrequency").addChildNode(new yo(e.Frequency)).withName("Frequency");n.addChildNode(r)}return n},Ks=function(e,t){var n=new go("JSONInput");if(void 0!==e.Type&&null!==e.Type){var r=new go("JSONType").addChildNode(new yo(e.Type)).withName("Type");n.addChildNode(r)}return n},Gs=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("LambdaFunctionConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("NotificationId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}void 0!==e.LambdaFunctionArn&&null!==e.LambdaFunctionArn&&(r=new go("LambdaFunctionArn").addChildNode(new yo(e.LambdaFunctionArn)).withName("CloudFunction"),n.addChildNode(r));void 0!==e.Events&&null!==e.Events&&Ps(e.Events).map(function(e){e=e.withName("Event"),n.addChildNode(e)});void 0!==e.Filter&&null!==e.Filter&&(r=ou(e.Filter,t).withName("Filter"),n.addChildNode(r));return n}(e,t).withName("member")})},Js=function(e,t){var n=new go("LifecycleRule");if(void 0!==e.Expiration&&null!==e.Expiration){var r=function(e,t){var n=new go("LifecycleExpiration");if(void 0!==e.Date&&null!==e.Date){var r=new go("Date").addChildNode(new yo(e.Date.toISOString().split(".")[0]+"Z")).withName("Date");n.addChildNode(r)}void 0!==e.Days&&null!==e.Days&&(r=new go("Days").addChildNode(new yo(String(e.Days))).withName("Days"),n.addChildNode(r));void 0!==e.ExpiredObjectDeleteMarker&&null!==e.ExpiredObjectDeleteMarker&&(r=new go("ExpiredObjectDeleteMarker").addChildNode(new yo(String(e.ExpiredObjectDeleteMarker))).withName("ExpiredObjectDeleteMarker"),n.addChildNode(r));return n}(e.Expiration).withName("Expiration");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new go("ID").addChildNode(new yo(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=Ws(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new go("ExpirationStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}void 0!==e.Transitions&&null!==e.Transitions&&Ku(e.Transitions,t).map(function(e){e=e.withName("Transition"),n.addChildNode(e)});void 0!==e.NoncurrentVersionTransitions&&null!==e.NoncurrentVersionTransitions&&ru(e.NoncurrentVersionTransitions,t).map(function(e){e=e.withName("NoncurrentVersionTransition"),n.addChildNode(e)});if(void 0!==e.NoncurrentVersionExpiration&&null!==e.NoncurrentVersionExpiration){r=nu(e.NoncurrentVersionExpiration,t).withName("NoncurrentVersionExpiration");n.addChildNode(r)}if(void 0!==e.AbortIncompleteMultipartUpload&&null!==e.AbortIncompleteMultipartUpload){r=function(e,t){var n=new go("AbortIncompleteMultipartUpload");if(void 0!==e.DaysAfterInitiation&&null!==e.DaysAfterInitiation){var r=new go("DaysAfterInitiation").addChildNode(new yo(String(e.DaysAfterInitiation))).withName("DaysAfterInitiation");n.addChildNode(r)}return n}(e.AbortIncompleteMultipartUpload).withName("AbortIncompleteMultipartUpload");n.addChildNode(r)}return n},Ws=function(e,t){var n=new go("LifecycleRuleFilter");return rn.visit(e,{Prefix:function(e){var t=new go("Prefix").addChildNode(new yo(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=Hu(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new go("LifecycleRuleAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&$u(e.Tags,t).map(function(e){e=e.withName("Tag"),n.addChildNode(e)});return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof go||t instanceof yo))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new go(e).addChildNode(t))}}),n},Qs=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:Js(e,t).withName("member")})},Xs=function(e,t){var n=new go("LoggingEnabled");if(void 0!==e.TargetBucket&&null!==e.TargetBucket){var r=new go("TargetBucket").addChildNode(new yo(e.TargetBucket)).withName("TargetBucket");n.addChildNode(r)}if(void 0!==e.TargetGrants&&null!==e.TargetGrants){var i=Uu(e.TargetGrants,t),o=new go("TargetGrants");i.map(function(e){o.addChildNode(e)}),n.addChildNode(o)}if(void 0!==e.TargetPrefix&&null!==e.TargetPrefix){r=new go("TargetPrefix").addChildNode(new yo(e.TargetPrefix)).withName("TargetPrefix");n.addChildNode(r)}return n},Zs=function(e,t){var n=new go("Metrics");if(void 0!==e.Status&&null!==e.Status){var r=new go("MetricsStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.EventThreshold&&null!==e.EventThreshold){r=xu(e.EventThreshold,t).withName("EventThreshold");n.addChildNode(r)}return n},eu=function(e,t){var n=new go("MetricsConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("MetricsId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=tu(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},tu=function(e,t){var n=new go("MetricsFilter");return yn.visit(e,{Prefix:function(e){var t=new go("Prefix").addChildNode(new yo(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=Hu(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new go("MetricsAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&$u(e.Tags,t).map(function(e){e=e.withName("Tag"),n.addChildNode(e)});return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof go||t instanceof yo))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new go(e).addChildNode(t))}}),n},nu=function(e,t){var n=new go("NoncurrentVersionExpiration");if(void 0!==e.NoncurrentDays&&null!==e.NoncurrentDays){var r=new go("Days").addChildNode(new yo(String(e.NoncurrentDays))).withName("NoncurrentDays");n.addChildNode(r)}return n},ru=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("NoncurrentVersionTransition");if(void 0!==e.NoncurrentDays&&null!==e.NoncurrentDays){var r=new go("Days").addChildNode(new yo(String(e.NoncurrentDays))).withName("NoncurrentDays");n.addChildNode(r)}void 0!==e.StorageClass&&null!==e.StorageClass&&(r=new go("TransitionStorageClass").addChildNode(new yo(e.StorageClass)).withName("StorageClass"),n.addChildNode(r));return n}(e).withName("member")})},iu=function(e,t){var n=new go("NotificationConfiguration");void 0!==e.TopicConfigurations&&null!==e.TopicConfigurations&&Yu(e.TopicConfigurations,t).map(function(e){e=e.withName("TopicConfiguration"),n.addChildNode(e)});void 0!==e.QueueConfigurations&&null!==e.QueueConfigurations&&gu(e.QueueConfigurations,t).map(function(e){e=e.withName("QueueConfiguration"),n.addChildNode(e)});void 0!==e.LambdaFunctionConfigurations&&null!==e.LambdaFunctionConfigurations&&Gs(e.LambdaFunctionConfigurations,t).map(function(e){e=e.withName("CloudFunctionConfiguration"),n.addChildNode(e)});return n},ou=function(e,t){var n=new go("NotificationConfigurationFilter");if(void 0!==e.Key&&null!==e.Key){var r=Iu(e.Key,t).withName("S3Key");n.addChildNode(r)}return n},au=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("ObjectIdentifier");if(void 0!==e.Key&&null!==e.Key){var r=new go("ObjectKey").addChildNode(new yo(e.Key)).withName("Key");n.addChildNode(r)}void 0!==e.VersionId&&null!==e.VersionId&&(r=new go("ObjectVersionId").addChildNode(new yo(e.VersionId)).withName("VersionId"),n.addChildNode(r));return n}(e).withName("member")})},su=function(e,t){var n=new go("ObjectLockConfiguration");if(void 0!==e.ObjectLockEnabled&&null!==e.ObjectLockEnabled){var r=new go("ObjectLockEnabled").addChildNode(new yo(e.ObjectLockEnabled)).withName("ObjectLockEnabled");n.addChildNode(r)}if(void 0!==e.Rule&&null!==e.Rule){r=lu(e.Rule,t).withName("Rule");n.addChildNode(r)}return n},uu=function(e,t){var n=new go("ObjectLockLegalHold");if(void 0!==e.Status&&null!==e.Status){var r=new go("ObjectLockLegalHoldStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n},cu=function(e,t){var n=new go("ObjectLockRetention");if(void 0!==e.Mode&&null!==e.Mode){var r=new go("ObjectLockRetentionMode").addChildNode(new yo(e.Mode)).withName("Mode");n.addChildNode(r)}if(void 0!==e.RetainUntilDate&&null!==e.RetainUntilDate){r=new go("Date").addChildNode(new yo(e.RetainUntilDate.toISOString().split(".")[0]+"Z")).withName("RetainUntilDate");n.addChildNode(r)}return n},lu=function(e,t){var n=new go("ObjectLockRule");if(void 0!==e.DefaultRetention&&null!==e.DefaultRetention){var r=function(e,t){var n=new go("DefaultRetention");if(void 0!==e.Mode&&null!==e.Mode){var r=new go("ObjectLockRetentionMode").addChildNode(new yo(e.Mode)).withName("Mode");n.addChildNode(r)}void 0!==e.Days&&null!==e.Days&&(r=new go("Days").addChildNode(new yo(String(e.Days))).withName("Days"),n.addChildNode(r));void 0!==e.Years&&null!==e.Years&&(r=new go("Years").addChildNode(new yo(String(e.Years))).withName("Years"),n.addChildNode(r));return n}(e.DefaultRetention).withName("DefaultRetention");n.addChildNode(r)}return n},du=function(e,t){var n=new go("OutputSerialization");if(void 0!==e.CSV&&null!==e.CSV){var r=function(e,t){var n=new go("CSVOutput");if(void 0!==e.QuoteFields&&null!==e.QuoteFields){var r=new go("QuoteFields").addChildNode(new yo(e.QuoteFields)).withName("QuoteFields");n.addChildNode(r)}void 0!==e.QuoteEscapeCharacter&&null!==e.QuoteEscapeCharacter&&(r=new go("QuoteEscapeCharacter").addChildNode(new yo(e.QuoteEscapeCharacter)).withName("QuoteEscapeCharacter"),n.addChildNode(r));void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter&&(r=new go("RecordDelimiter").addChildNode(new yo(e.RecordDelimiter)).withName("RecordDelimiter"),n.addChildNode(r));void 0!==e.FieldDelimiter&&null!==e.FieldDelimiter&&(r=new go("FieldDelimiter").addChildNode(new yo(e.FieldDelimiter)).withName("FieldDelimiter"),n.addChildNode(r));void 0!==e.QuoteCharacter&&null!==e.QuoteCharacter&&(r=new go("QuoteCharacter").addChildNode(new yo(e.QuoteCharacter)).withName("QuoteCharacter"),n.addChildNode(r));return n}(e.CSV).withName("CSV");n.addChildNode(r)}if(void 0!==e.JSON&&null!==e.JSON){r=function(e,t){var n=new go("JSONOutput");if(void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter){var r=new go("RecordDelimiter").addChildNode(new yo(e.RecordDelimiter)).withName("RecordDelimiter");n.addChildNode(r)}return n}(e.JSON).withName("JSON");n.addChildNode(r)}return n},pu=function(e,t){var n=new go("Owner");if(void 0!==e.DisplayName&&null!==e.DisplayName){var r=new go("DisplayName").addChildNode(new yo(e.DisplayName)).withName("DisplayName");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new go("ID").addChildNode(new yo(e.ID)).withName("ID");n.addChildNode(r)}return n},fu=function(e,t){var n=new go("OwnershipControls");void 0!==e.Rules&&null!==e.Rules&&hu(e.Rules,t).map(function(e){e=e.withName("Rule"),n.addChildNode(e)});return n},hu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("OwnershipControlsRule");if(void 0!==e.ObjectOwnership&&null!==e.ObjectOwnership){var r=new go("ObjectOwnership").addChildNode(new yo(e.ObjectOwnership)).withName("ObjectOwnership");n.addChildNode(r)}return n}(e).withName("member")})},mu=function(e,t){return new go("ParquetInput")},vu=function(e,t){var n=new go("PublicAccessBlockConfiguration");if(void 0!==e.BlockPublicAcls&&null!==e.BlockPublicAcls){var r=new go("Setting").addChildNode(new yo(String(e.BlockPublicAcls))).withName("BlockPublicAcls");n.addChildNode(r)}if(void 0!==e.IgnorePublicAcls&&null!==e.IgnorePublicAcls){r=new go("Setting").addChildNode(new yo(String(e.IgnorePublicAcls))).withName("IgnorePublicAcls");n.addChildNode(r)}if(void 0!==e.BlockPublicPolicy&&null!==e.BlockPublicPolicy){r=new go("Setting").addChildNode(new yo(String(e.BlockPublicPolicy))).withName("BlockPublicPolicy");n.addChildNode(r)}if(void 0!==e.RestrictPublicBuckets&&null!==e.RestrictPublicBuckets){r=new go("Setting").addChildNode(new yo(String(e.RestrictPublicBuckets))).withName("RestrictPublicBuckets");n.addChildNode(r)}return n},gu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("QueueConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("NotificationId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}void 0!==e.QueueArn&&null!==e.QueueArn&&(r=new go("QueueArn").addChildNode(new yo(e.QueueArn)).withName("Queue"),n.addChildNode(r));void 0!==e.Events&&null!==e.Events&&Ps(e.Events).map(function(e){e=e.withName("Event"),n.addChildNode(e)});void 0!==e.Filter&&null!==e.Filter&&(r=ou(e.Filter,t).withName("Filter"),n.addChildNode(r));return n}(e,t).withName("member")})},yu=function(e,t){var n=new go("ReplicationConfiguration");if(void 0!==e.Role&&null!==e.Role){var r=new go("Role").addChildNode(new yo(e.Role)).withName("Role");n.addChildNode(r)}void 0!==e.Rules&&null!==e.Rules&&_u(e.Rules,t).map(function(e){e=e.withName("Rule"),n.addChildNode(e)});return n},bu=function(e,t){var n=new go("ReplicationRule");if(void 0!==e.ID&&null!==e.ID){var r=new go("ID").addChildNode(new yo(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.Priority&&null!==e.Priority){r=new go("Priority").addChildNode(new yo(String(e.Priority))).withName("Priority");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=wu(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new go("ReplicationRuleStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.SourceSelectionCriteria&&null!==e.SourceSelectionCriteria){r=Du(e.SourceSelectionCriteria,t).withName("SourceSelectionCriteria");n.addChildNode(r)}if(void 0!==e.ExistingObjectReplication&&null!==e.ExistingObjectReplication){r=function(e,t){var n=new go("ExistingObjectReplication");if(void 0!==e.Status&&null!==e.Status){var r=new go("ExistingObjectReplicationStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.ExistingObjectReplication).withName("ExistingObjectReplication");n.addChildNode(r)}if(void 0!==e.Destination&&null!==e.Destination){r=zs(e.Destination,t).withName("Destination");n.addChildNode(r)}if(void 0!==e.DeleteMarkerReplication&&null!==e.DeleteMarkerReplication){r=function(e,t){var n=new go("DeleteMarkerReplication");if(void 0!==e.Status&&null!==e.Status){var r=new go("DeleteMarkerReplicationStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.DeleteMarkerReplication).withName("DeleteMarkerReplication");n.addChildNode(r)}return n},wu=function(e,t){var n=new go("ReplicationRuleFilter");return Kn.visit(e,{Prefix:function(e){var t=new go("Prefix").addChildNode(new yo(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=Hu(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new go("ReplicationRuleAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new go("Prefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&$u(e.Tags,t).map(function(e){e=e.withName("Tag"),n.addChildNode(e)});return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof go||t instanceof yo))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new go(e).addChildNode(t))}}),n},_u=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:bu(e,t).withName("member")})},Su=function(e,t){var n=new go("ReplicationTime");if(void 0!==e.Status&&null!==e.Status){var r=new go("ReplicationTimeStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.Time&&null!==e.Time){r=xu(e.Time,t).withName("Time");n.addChildNode(r)}return n},xu=function(e,t){var n=new go("ReplicationTimeValue");if(void 0!==e.Minutes&&null!==e.Minutes){var r=new go("Minutes").addChildNode(new yo(String(e.Minutes))).withName("Minutes");n.addChildNode(r)}return n},Eu=function(e,t){var n=new go("RequestPaymentConfiguration");if(void 0!==e.Payer&&null!==e.Payer){var r=new go("Payer").addChildNode(new yo(e.Payer)).withName("Payer");n.addChildNode(r)}return n},Tu=function(e,t){var n=new go("RequestProgress");if(void 0!==e.Enabled&&null!==e.Enabled){var r=new go("EnableRequestProgress").addChildNode(new yo(String(e.Enabled))).withName("Enabled");n.addChildNode(r)}return n},Mu=function(e,t){var n=new go("RestoreRequest");if(void 0!==e.Days&&null!==e.Days){var r=new go("Days").addChildNode(new yo(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.GlacierJobParameters&&null!==e.GlacierJobParameters){r=function(e,t){var n=new go("GlacierJobParameters");if(void 0!==e.Tier&&null!==e.Tier){var r=new go("Tier").addChildNode(new yo(e.Tier)).withName("Tier");n.addChildNode(r)}return n}(e.GlacierJobParameters).withName("GlacierJobParameters");n.addChildNode(r)}if(void 0!==e.Type&&null!==e.Type){r=new go("RestoreRequestType").addChildNode(new yo(e.Type)).withName("Type");n.addChildNode(r)}if(void 0!==e.Tier&&null!==e.Tier){r=new go("Tier").addChildNode(new yo(e.Tier)).withName("Tier");n.addChildNode(r)}if(void 0!==e.Description&&null!==e.Description){r=new go("Description").addChildNode(new yo(e.Description)).withName("Description");n.addChildNode(r)}if(void 0!==e.SelectParameters&&null!==e.SelectParameters){r=zu(e.SelectParameters,t).withName("SelectParameters");n.addChildNode(r)}if(void 0!==e.OutputLocation&&null!==e.OutputLocation){r=function(e,t){var n=new go("OutputLocation");if(void 0!==e.S3&&null!==e.S3){var r=Lu(e.S3,t).withName("S3");n.addChildNode(r)}return n}(e.OutputLocation,t).withName("OutputLocation");n.addChildNode(r)}return n},Cu=function(e,t){var n=new go("RoutingRule");if(void 0!==e.Condition&&null!==e.Condition){var r=function(e,t){var n=new go("Condition");if(void 0!==e.HttpErrorCodeReturnedEquals&&null!==e.HttpErrorCodeReturnedEquals){var r=new go("HttpErrorCodeReturnedEquals").addChildNode(new yo(e.HttpErrorCodeReturnedEquals)).withName("HttpErrorCodeReturnedEquals");n.addChildNode(r)}void 0!==e.KeyPrefixEquals&&null!==e.KeyPrefixEquals&&(r=new go("KeyPrefixEquals").addChildNode(new yo(e.KeyPrefixEquals)).withName("KeyPrefixEquals"),n.addChildNode(r));return n}(e.Condition).withName("Condition");n.addChildNode(r)}if(void 0!==e.Redirect&&null!==e.Redirect){r=function(e,t){var n=new go("Redirect");if(void 0!==e.HostName&&null!==e.HostName){var r=new go("HostName").addChildNode(new yo(e.HostName)).withName("HostName");n.addChildNode(r)}void 0!==e.HttpRedirectCode&&null!==e.HttpRedirectCode&&(r=new go("HttpRedirectCode").addChildNode(new yo(e.HttpRedirectCode)).withName("HttpRedirectCode"),n.addChildNode(r));void 0!==e.Protocol&&null!==e.Protocol&&(r=new go("Protocol").addChildNode(new yo(e.Protocol)).withName("Protocol"),n.addChildNode(r));void 0!==e.ReplaceKeyPrefixWith&&null!==e.ReplaceKeyPrefixWith&&(r=new go("ReplaceKeyPrefixWith").addChildNode(new yo(e.ReplaceKeyPrefixWith)).withName("ReplaceKeyPrefixWith"),n.addChildNode(r));void 0!==e.ReplaceKeyWith&&null!==e.ReplaceKeyWith&&(r=new go("ReplaceKeyWith").addChildNode(new yo(e.ReplaceKeyWith)).withName("ReplaceKeyWith"),n.addChildNode(r));return n}(e.Redirect).withName("Redirect");n.addChildNode(r)}return n},Iu=function(e,t){var n=new go("S3KeyFilter");void 0!==e.FilterRules&&null!==e.FilterRules&&Ds(e.FilterRules).map(function(e){e=e.withName("FilterRule"),n.addChildNode(e)});return n},Lu=function(e,t){var n=new go("S3Location");if(void 0!==e.BucketName&&null!==e.BucketName){var r=new go("BucketName").addChildNode(new yo(e.BucketName)).withName("BucketName");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new go("LocationPrefix").addChildNode(new yo(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Encryption&&null!==e.Encryption){r=function(e,t){var n=new go("Encryption");if(void 0!==e.EncryptionType&&null!==e.EncryptionType){var r=new go("ServerSideEncryption").addChildNode(new yo(e.EncryptionType)).withName("EncryptionType");n.addChildNode(r)}void 0!==e.KMSKeyId&&null!==e.KMSKeyId&&(r=new go("SSEKMSKeyId").addChildNode(new yo(e.KMSKeyId)).withName("KMSKeyId"),n.addChildNode(r));void 0!==e.KMSContext&&null!==e.KMSContext&&(r=new go("KMSContext").addChildNode(new yo(e.KMSContext)).withName("KMSContext"),n.addChildNode(r));return n}(e.Encryption).withName("Encryption");n.addChildNode(r)}if(void 0!==e.CannedACL&&null!==e.CannedACL){r=new go("ObjectCannedACL").addChildNode(new yo(e.CannedACL)).withName("CannedACL");n.addChildNode(r)}if(void 0!==e.AccessControlList&&null!==e.AccessControlList){var i=Rs(e.AccessControlList,t),o=new go("AccessControlList");i.map(function(e){o.addChildNode(e)}),n.addChildNode(o)}if(void 0!==e.Tagging&&null!==e.Tagging){r=Vu(e.Tagging,t).withName("Tagging");n.addChildNode(r)}if(void 0!==e.UserMetadata&&null!==e.UserMetadata){i=Gu(e.UserMetadata,t);var a=new go("UserMetadata");i.map(function(e){a.addChildNode(e)}),n.addChildNode(a)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new go("StorageClass").addChildNode(new yo(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}return n},ku=function(e,t){var n=new go("ScanRange");if(void 0!==e.Start&&null!==e.Start){var r=new go("Start").addChildNode(new yo(String(e.Start))).withName("Start");n.addChildNode(r)}if(void 0!==e.End&&null!==e.End){r=new go("End").addChildNode(new yo(String(e.End))).withName("End");n.addChildNode(r)}return n},zu=function(e,t){var n=new go("SelectParameters");if(void 0!==e.InputSerialization&&null!==e.InputSerialization){var r=js(e.InputSerialization,t).withName("InputSerialization");n.addChildNode(r)}if(void 0!==e.ExpressionType&&null!==e.ExpressionType){r=new go("ExpressionType").addChildNode(new yo(e.ExpressionType)).withName("ExpressionType");n.addChildNode(r)}if(void 0!==e.Expression&&null!==e.Expression){r=new go("Expression").addChildNode(new yo(e.Expression)).withName("Expression");n.addChildNode(r)}if(void 0!==e.OutputSerialization&&null!==e.OutputSerialization){r=du(e.OutputSerialization,t).withName("OutputSerialization");n.addChildNode(r)}return n},Au=function(e,t){var n=new go("ServerSideEncryptionConfiguration");void 0!==e.Rules&&null!==e.Rules&&Ou(e.Rules,t).map(function(e){e=e.withName("Rule"),n.addChildNode(e)});return n},Pu=function(e,t){var n=new go("ServerSideEncryptionRule");if(void 0!==e.ApplyServerSideEncryptionByDefault&&null!==e.ApplyServerSideEncryptionByDefault){var r=function(e,t){var n=new go("ServerSideEncryptionByDefault");if(void 0!==e.SSEAlgorithm&&null!==e.SSEAlgorithm){var r=new go("ServerSideEncryption").addChildNode(new yo(e.SSEAlgorithm)).withName("SSEAlgorithm");n.addChildNode(r)}void 0!==e.KMSMasterKeyID&&null!==e.KMSMasterKeyID&&(r=new go("SSEKMSKeyId").addChildNode(new yo(e.KMSMasterKeyID)).withName("KMSMasterKeyID"),n.addChildNode(r));return n}(e.ApplyServerSideEncryptionByDefault).withName("ApplyServerSideEncryptionByDefault");n.addChildNode(r)}if(void 0!==e.BucketKeyEnabled&&null!==e.BucketKeyEnabled){r=new go("BucketKeyEnabled").addChildNode(new yo(String(e.BucketKeyEnabled))).withName("BucketKeyEnabled");n.addChildNode(r)}return n},Ou=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:Pu(e).withName("member")})},Du=function(e,t){var n=new go("SourceSelectionCriteria");if(void 0!==e.SseKmsEncryptedObjects&&null!==e.SseKmsEncryptedObjects){var r=Ru(e.SseKmsEncryptedObjects,t).withName("SseKmsEncryptedObjects");n.addChildNode(r)}if(void 0!==e.ReplicaModifications&&null!==e.ReplicaModifications){r=function(e,t){var n=new go("ReplicaModifications");if(void 0!==e.Status&&null!==e.Status){var r=new go("ReplicaModificationsStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.ReplicaModifications).withName("ReplicaModifications");n.addChildNode(r)}return n},Nu=function(e,t){var n=new go("SSE-KMS");if(void 0!==e.KeyId&&null!==e.KeyId){var r=new go("SSEKMSKeyId").addChildNode(new yo(e.KeyId)).withName("KeyId");n.addChildNode(r)}return n},Ru=function(e,t){var n=new go("SseKmsEncryptedObjects");if(void 0!==e.Status&&null!==e.Status){var r=new go("SseKmsEncryptedObjectsStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n},ju=function(e,t){return new go("SSE-S3")},Fu=function(e,t){var n=new go("StorageClassAnalysis");if(void 0!==e.DataExport&&null!==e.DataExport){var r=Bu(e.DataExport,t).withName("DataExport");n.addChildNode(r)}return n},Bu=function(e,t){var n=new go("StorageClassAnalysisDataExport");if(void 0!==e.OutputSchemaVersion&&null!==e.OutputSchemaVersion){var r=new go("StorageClassAnalysisSchemaVersion").addChildNode(new yo(e.OutputSchemaVersion)).withName("OutputSchemaVersion");n.addChildNode(r)}if(void 0!==e.Destination&&null!==e.Destination){r=function(e,t){var n=new go("AnalyticsExportDestination");if(void 0!==e.S3BucketDestination&&null!==e.S3BucketDestination){var r=_s(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n}(e.Destination,t).withName("Destination");n.addChildNode(r)}return n},Hu=function(e,t){var n=new go("Tag");if(void 0!==e.Key&&null!==e.Key){var r=new go("ObjectKey").addChildNode(new yo(e.Key)).withName("Key");n.addChildNode(r)}if(void 0!==e.Value&&null!==e.Value){r=new go("Value").addChildNode(new yo(e.Value)).withName("Value");n.addChildNode(r)}return n},Vu=function(e,t){var n=new go("Tagging");if(void 0!==e.TagSet&&null!==e.TagSet){var r=$u(e.TagSet,t),i=new go("TagSet");r.map(function(e){i.addChildNode(e)}),n.addChildNode(i)}return n},$u=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:Hu(e,t).withName("Tag")})},Uu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("TargetGrant");if(void 0!==e.Grantee&&null!==e.Grantee){var r=Ns(e.Grantee,t).withName("Grantee");n.addChildNode(r)}void 0!==e.Permission&&null!==e.Permission&&(r=new go("BucketLogsPermission").addChildNode(new yo(e.Permission)).withName("Permission"),n.addChildNode(r));return n}(e,t).withName("Grant")})},qu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("Tiering");if(void 0!==e.Days&&null!==e.Days){var r=new go("IntelligentTieringDays").addChildNode(new yo(String(e.Days))).withName("Days");n.addChildNode(r)}void 0!==e.AccessTier&&null!==e.AccessTier&&(r=new go("IntelligentTieringAccessTier").addChildNode(new yo(e.AccessTier)).withName("AccessTier"),n.addChildNode(r));return n}(e).withName("member")})},Yu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("TopicConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new go("NotificationId").addChildNode(new yo(e.Id)).withName("Id");n.addChildNode(r)}void 0!==e.TopicArn&&null!==e.TopicArn&&(r=new go("TopicArn").addChildNode(new yo(e.TopicArn)).withName("Topic"),n.addChildNode(r));void 0!==e.Events&&null!==e.Events&&Ps(e.Events).map(function(e){e=e.withName("Event"),n.addChildNode(e)});void 0!==e.Filter&&null!==e.Filter&&(r=ou(e.Filter,t).withName("Filter"),n.addChildNode(r));return n}(e,t).withName("member")})},Ku=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("Transition");if(void 0!==e.Date&&null!==e.Date){var r=new go("Date").addChildNode(new yo(e.Date.toISOString().split(".")[0]+"Z")).withName("Date");n.addChildNode(r)}void 0!==e.Days&&null!==e.Days&&(r=new go("Days").addChildNode(new yo(String(e.Days))).withName("Days"),n.addChildNode(r));void 0!==e.StorageClass&&null!==e.StorageClass&&(r=new go("TransitionStorageClass").addChildNode(new yo(e.StorageClass)).withName("StorageClass"),n.addChildNode(r));return n}(e).withName("member")})},Gu=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n=new go("MetadataEntry");if(void 0!==e.Name&&null!==e.Name){var r=new go("MetadataKey").addChildNode(new yo(e.Name)).withName("Name");n.addChildNode(r)}void 0!==e.Value&&null!==e.Value&&(r=new go("MetadataValue").addChildNode(new yo(e.Value)).withName("Value"),n.addChildNode(r));return n}(e).withName("MetadataEntry")})},Ju=function(e,t){var n=new go("VersioningConfiguration");if(void 0!==e.MFADelete&&null!==e.MFADelete){var r=new go("MFADelete").addChildNode(new yo(e.MFADelete)).withName("MfaDelete");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new go("BucketVersioningStatus").addChildNode(new yo(e.Status)).withName("Status");n.addChildNode(r)}return n},Wu=function(e,t){var n=new go("WebsiteConfiguration");if(void 0!==e.ErrorDocument&&null!==e.ErrorDocument){var r=function(e,t){var n=new go("ErrorDocument");if(void 0!==e.Key&&null!==e.Key){var r=new go("ObjectKey").addChildNode(new yo(e.Key)).withName("Key");n.addChildNode(r)}return n}(e.ErrorDocument).withName("ErrorDocument");n.addChildNode(r)}if(void 0!==e.IndexDocument&&null!==e.IndexDocument){r=function(e,t){var n=new go("IndexDocument");if(void 0!==e.Suffix&&null!==e.Suffix){var r=new go("Suffix").addChildNode(new yo(e.Suffix)).withName("Suffix");n.addChildNode(r)}return n}(e.IndexDocument).withName("IndexDocument");n.addChildNode(r)}if(void 0!==e.RedirectAllRequestsTo&&null!==e.RedirectAllRequestsTo){r=function(e,t){var n=new go("RedirectAllRequestsTo");if(void 0!==e.HostName&&null!==e.HostName){var r=new go("HostName").addChildNode(new yo(e.HostName)).withName("HostName");n.addChildNode(r)}void 0!==e.Protocol&&null!==e.Protocol&&(r=new go("Protocol").addChildNode(new yo(e.Protocol)).withName("Protocol"),n.addChildNode(r));return n}(e.RedirectAllRequestsTo).withName("RedirectAllRequestsTo");n.addChildNode(r)}if(void 0!==e.RoutingRules&&null!==e.RoutingRules){var i=function(e,t){return e.filter(function(e){return null!=e}).map(function(e){return null===e?null:Cu(e).withName("RoutingRule")})}(e.RoutingRules),o=new go("RoutingRules");i.map(function(e){o.addChildNode(e)}),n.addChildNode(o)}return n},Qu=function(e,t){var n={Id:void 0,Filter:void 0,StorageClassAnalysis:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.Filter&&(n.Filter=Zu(e.Filter,t)),void 0!==e.StorageClassAnalysis&&(n.StorageClassAnalysis=hl(e.StorageClassAnalysis,t)),n},Xu=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:Qu(e,t)})},Zu=function(e,t){return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:vl(e.Tag,t)}:void 0!==e.And?{And:function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=gl(Object(mo.g)(e.Tag),t)),n}(e.And,t)}:{$unknown:Object.entries(e)[0]}},ec=function(e,t){var n={Format:void 0,BucketAccountId:void 0,Bucket:void 0,Prefix:void 0};return void 0!==e.Format&&(n.Format=e.Format),void 0!==e.BucketAccountId&&(n.BucketAccountId=e.BucketAccountId),void 0!==e.Bucket&&(n.Bucket=e.Bucket),void 0!==e.Prefix&&(n.Prefix=e.Prefix),n},tc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Name:void 0,CreationDate:void 0},void 0!==(t=e).Name&&(n.Name=t.Name),void 0!==t.CreationDate&&(n.CreationDate=new Date(t.CreationDate)),n);var t,n})},nc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Prefix:void 0},void 0!==(t=e).Prefix&&(n.Prefix=t.Prefix),n);var t,n})},rc=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),n},ic=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),n},oc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={AllowedHeaders:void 0,AllowedMethods:void 0,AllowedOrigins:void 0,ExposeHeaders:void 0,MaxAgeSeconds:void 0};return""===e.AllowedHeader&&(n.AllowedHeaders=[]),void 0!==e.AllowedHeader&&(n.AllowedHeaders=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})}(Object(mo.g)(e.AllowedHeader))),""===e.AllowedMethod&&(n.AllowedMethods=[]),void 0!==e.AllowedMethod&&(n.AllowedMethods=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})}(Object(mo.g)(e.AllowedMethod))),""===e.AllowedOrigin&&(n.AllowedOrigins=[]),void 0!==e.AllowedOrigin&&(n.AllowedOrigins=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})}(Object(mo.g)(e.AllowedOrigin))),""===e.ExposeHeader&&(n.ExposeHeaders=[]),void 0!==e.ExposeHeader&&(n.ExposeHeaders=pc(Object(mo.g)(e.ExposeHeader),t)),void 0!==e.MaxAgeSeconds&&(n.MaxAgeSeconds=parseInt(e.MaxAgeSeconds)),n}(e,t)})},ac=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Key:void 0,VersionId:void 0,DeleteMarker:void 0,DeleteMarkerVersionId:void 0},void 0!==(t=e).Key&&(n.Key=t.Key),void 0!==t.VersionId&&(n.VersionId=t.VersionId),void 0!==t.DeleteMarker&&(n.DeleteMarker="true"==t.DeleteMarker),void 0!==t.DeleteMarkerVersionId&&(n.DeleteMarkerVersionId=t.DeleteMarkerVersionId),n);var t,n})},sc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Owner:void 0,Key:void 0,VersionId:void 0,IsLatest:void 0,LastModified:void 0};return void 0!==e.Owner&&(n.Owner=Yc(e.Owner,t)),void 0!==e.Key&&(n.Key=e.Key),void 0!==e.VersionId&&(n.VersionId=e.VersionId),void 0!==e.IsLatest&&(n.IsLatest="true"==e.IsLatest),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),n}(e,t)})},uc=function(e,t){var n={ReplicaKmsKeyID:void 0};return void 0!==e.ReplicaKmsKeyID&&(n.ReplicaKmsKeyID=e.ReplicaKmsKeyID),n},cc=function(e,t){var n={Key:void 0};return void 0!==e.Key&&(n.Key=e.Key),n},lc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Key:void 0,VersionId:void 0,Code:void 0,Message:void 0},void 0!==(t=e).Key&&(n.Key=t.Key),void 0!==t.VersionId&&(n.VersionId=t.VersionId),void 0!==t.Code&&(n.Code=t.Code),void 0!==t.Message&&(n.Message=t.Message),n);var t,n})},dc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})},pc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})},fc=function(e,t){var n={DisplayName:void 0,EmailAddress:void 0,ID:void 0,URI:void 0,Type:void 0};return void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),void 0!==e.EmailAddress&&(n.EmailAddress=e.EmailAddress),void 0!==e.ID&&(n.ID=e.ID),void 0!==e.URI&&(n.URI=e.URI),void 0!==e["xsi:type"]&&(n.Type=e["xsi:type"]),n},hc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Grantee:void 0,Permission:void 0};return void 0!==e.Grantee&&(n.Grantee=fc(e.Grantee,t)),void 0!==e.Permission&&(n.Permission=e.Permission),n}(e,t)})},mc=function(e,t){var n={Suffix:void 0};return void 0!==e.Suffix&&(n.Suffix=e.Suffix),n},vc=function(e,t){var n={ID:void 0,DisplayName:void 0};return void 0!==e.ID&&(n.ID=e.ID),void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),n},gc=function(e,t){var n={Id:void 0,Filter:void 0,Status:void 0,Tierings:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.Filter&&(n.Filter=bc(e.Filter,t)),void 0!==e.Status&&(n.Status=e.Status),""===e.Tiering&&(n.Tierings=[]),void 0!==e.Tiering&&(n.Tierings=bl(Object(mo.g)(e.Tiering),t)),n},yc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:gc(e,t)})},bc=function(e,t){var n={Prefix:void 0,Tag:void 0,And:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),void 0!==e.Tag&&(n.Tag=vl(e.Tag,t)),void 0!==e.And&&(n.And=function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=gl(Object(mo.g)(e.Tag),t)),n}(e.And,t)),n},wc=function(e,t){var n={Destination:void 0,IsEnabled:void 0,Filter:void 0,Id:void 0,IncludedObjectVersions:void 0,OptionalFields:void 0,Schedule:void 0};return void 0!==e.Destination&&(n.Destination=Sc(e.Destination,t)),void 0!==e.IsEnabled&&(n.IsEnabled="true"==e.IsEnabled),void 0!==e.Filter&&(n.Filter=xc(e.Filter,t)),void 0!==e.Id&&(n.Id=e.Id),void 0!==e.IncludedObjectVersions&&(n.IncludedObjectVersions=e.IncludedObjectVersions),""===e.OptionalFields&&(n.OptionalFields=[]),void 0!==e.OptionalFields&&void 0!==e.OptionalFields.Field&&(n.OptionalFields=Ec(Object(mo.g)(e.OptionalFields.Field),t)),void 0!==e.Schedule&&(n.Schedule=Mc(e.Schedule,t)),n},_c=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:wc(e,t)})},Sc=function(e,t){var n={S3BucketDestination:void 0};return void 0!==e.S3BucketDestination&&(n.S3BucketDestination=Tc(e.S3BucketDestination,t)),n},xc=function(e,t){var n={Prefix:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),n},Ec=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:e})},Tc=function(e,t){var n={AccountId:void 0,Bucket:void 0,Format:void 0,Prefix:void 0,Encryption:void 0};return void 0!==e.AccountId&&(n.AccountId=e.AccountId),void 0!==e.Bucket&&(n.Bucket=e.Bucket),void 0!==e.Format&&(n.Format=e.Format),void 0!==e.Prefix&&(n.Prefix=e.Prefix),void 0!==e.Encryption&&(n.Encryption=function(e,t){var n={SSES3:void 0,SSEKMS:void 0};return void 0!==e["SSE-S3"]&&(n.SSES3=fl(e["SSE-S3"],t)),void 0!==e["SSE-KMS"]&&(n.SSEKMS=dl(e["SSE-KMS"],t)),n}(e.Encryption,t)),n},Mc=function(e,t){var n={Frequency:void 0};return void 0!==e.Frequency&&(n.Frequency=e.Frequency),n},Cc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Id:void 0,LambdaFunctionArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.CloudFunction&&(n.LambdaFunctionArn=e.CloudFunction),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=dc(Object(mo.g)(e.Event))),void 0!==e.Filter&&(n.Filter=Fc(e.Filter,t)),n}(e,t)})},Ic=function(e,t){var n={Expiration:void 0,ID:void 0,Prefix:void 0,Filter:void 0,Status:void 0,Transitions:void 0,NoncurrentVersionTransitions:void 0,NoncurrentVersionExpiration:void 0,AbortIncompleteMultipartUpload:void 0};return void 0!==e.Expiration&&(n.Expiration=function(e,t){var n={Date:void 0,Days:void 0,ExpiredObjectDeleteMarker:void 0};return void 0!==e.Date&&(n.Date=new Date(e.Date)),void 0!==e.Days&&(n.Days=parseInt(e.Days)),void 0!==e.ExpiredObjectDeleteMarker&&(n.ExpiredObjectDeleteMarker="true"==e.ExpiredObjectDeleteMarker),n}(e.Expiration)),void 0!==e.ID&&(n.ID=e.ID),void 0!==e.Prefix&&(n.Prefix=e.Prefix),void 0!==e.Filter&&(n.Filter=Lc(e.Filter,t)),void 0!==e.Status&&(n.Status=e.Status),""===e.Transition&&(n.Transitions=[]),void 0!==e.Transition&&(n.Transitions=_l(Object(mo.g)(e.Transition),t)),""===e.NoncurrentVersionTransition&&(n.NoncurrentVersionTransitions=[]),void 0!==e.NoncurrentVersionTransition&&(n.NoncurrentVersionTransitions=jc(Object(mo.g)(e.NoncurrentVersionTransition),t)),void 0!==e.NoncurrentVersionExpiration&&(n.NoncurrentVersionExpiration=Rc(e.NoncurrentVersionExpiration,t)),void 0!==e.AbortIncompleteMultipartUpload&&(n.AbortIncompleteMultipartUpload=function(e,t){var n={DaysAfterInitiation:void 0};return void 0!==e.DaysAfterInitiation&&(n.DaysAfterInitiation=parseInt(e.DaysAfterInitiation)),n}(e.AbortIncompleteMultipartUpload)),n},Lc=function(e,t){return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:vl(e.Tag,t)}:void 0!==e.And?{And:function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=gl(Object(mo.g)(e.Tag),t)),n}(e.And,t)}:{$unknown:Object.entries(e)[0]}},kc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:Ic(e,t)})},zc=function(e,t){var n={TargetBucket:void 0,TargetGrants:void 0,TargetPrefix:void 0};return void 0!==e.TargetBucket&&(n.TargetBucket=e.TargetBucket),""===e.TargetGrants&&(n.TargetGrants=[]),void 0!==e.TargetGrants&&void 0!==e.TargetGrants.Grant&&(n.TargetGrants=yl(Object(mo.g)(e.TargetGrants.Grant),t)),void 0!==e.TargetPrefix&&(n.TargetPrefix=e.TargetPrefix),n},Ac=function(e,t){var n={Status:void 0,EventThreshold:void 0};return void 0!==e.Status&&(n.Status=e.Status),void 0!==e.EventThreshold&&(n.EventThreshold=ol(e.EventThreshold,t)),n},Pc=function(e,t){var n={Id:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.Filter&&(n.Filter=Dc(e.Filter,t)),n},Oc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:Pc(e,t)})},Dc=function(e,t){return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:vl(e.Tag,t)}:void 0!==e.And?{And:function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=gl(Object(mo.g)(e.Tag),t)),n}(e.And,t)}:{$unknown:Object.entries(e)[0]}},Nc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={UploadId:void 0,Key:void 0,Initiated:void 0,StorageClass:void 0,Owner:void 0,Initiator:void 0};return void 0!==e.UploadId&&(n.UploadId=e.UploadId),void 0!==e.Key&&(n.Key=e.Key),void 0!==e.Initiated&&(n.Initiated=new Date(e.Initiated)),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.Owner&&(n.Owner=Yc(e.Owner,t)),void 0!==e.Initiator&&(n.Initiator=vc(e.Initiator,t)),n}(e,t)})},Rc=function(e,t){var n={NoncurrentDays:void 0};return void 0!==e.NoncurrentDays&&(n.NoncurrentDays=parseInt(e.NoncurrentDays)),n},jc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={NoncurrentDays:void 0,StorageClass:void 0},void 0!==(t=e).NoncurrentDays&&(n.NoncurrentDays=parseInt(t.NoncurrentDays)),void 0!==t.StorageClass&&(n.StorageClass=t.StorageClass),n);var t,n})},Fc=function(e,t){var n={Key:void 0};return void 0!==e.S3Key&&(n.Key=sl(e.S3Key,t)),n},Bc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e.Key&&(n.Key=e.Key),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.Owner&&(n.Owner=Yc(e.Owner,t)),n}(e,t)})},Hc=function(e,t){var n={ObjectLockEnabled:void 0,Rule:void 0};return void 0!==e.ObjectLockEnabled&&(n.ObjectLockEnabled=e.ObjectLockEnabled),void 0!==e.Rule&&(n.Rule=Uc(e.Rule,t)),n},Vc=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=e.Status),n},$c=function(e,t){var n={Mode:void 0,RetainUntilDate:void 0};return void 0!==e.Mode&&(n.Mode=e.Mode),void 0!==e.RetainUntilDate&&(n.RetainUntilDate=new Date(e.RetainUntilDate)),n},Uc=function(e,t){var n={DefaultRetention:void 0};return void 0!==e.DefaultRetention&&(n.DefaultRetention=function(e,t){var n={Mode:void 0,Days:void 0,Years:void 0};return void 0!==e.Mode&&(n.Mode=e.Mode),void 0!==e.Days&&(n.Days=parseInt(e.Days)),void 0!==e.Years&&(n.Years=parseInt(e.Years)),n}(e.DefaultRetention)),n},qc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={ETag:void 0,Size:void 0,StorageClass:void 0,Key:void 0,VersionId:void 0,IsLatest:void 0,LastModified:void 0,Owner:void 0};return void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.Key&&(n.Key=e.Key),void 0!==e.VersionId&&(n.VersionId=e.VersionId),void 0!==e.IsLatest&&(n.IsLatest="true"==e.IsLatest),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.Owner&&(n.Owner=Yc(e.Owner,t)),n}(e,t)})},Yc=function(e,t){var n={DisplayName:void 0,ID:void 0};return void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),void 0!==e.ID&&(n.ID=e.ID),n},Kc=function(e,t){var n={Rules:void 0};return""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=Gc(Object(mo.g)(e.Rule),t)),n},Gc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={ObjectOwnership:void 0},void 0!==(t=e).ObjectOwnership&&(n.ObjectOwnership=t.ObjectOwnership),n);var t,n})},Jc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0},void 0!==(t=e).PartNumber&&(n.PartNumber=parseInt(t.PartNumber)),void 0!==t.LastModified&&(n.LastModified=new Date(t.LastModified)),void 0!==t.ETag&&(n.ETag=t.ETag),void 0!==t.Size&&(n.Size=parseInt(t.Size)),n);var t,n})},Wc=function(e,t){var n={IsPublic:void 0};return void 0!==e.IsPublic&&(n.IsPublic="true"==e.IsPublic),n},Qc=function(e,t){var n={BlockPublicAcls:void 0,IgnorePublicAcls:void 0,BlockPublicPolicy:void 0,RestrictPublicBuckets:void 0};return void 0!==e.BlockPublicAcls&&(n.BlockPublicAcls="true"==e.BlockPublicAcls),void 0!==e.IgnorePublicAcls&&(n.IgnorePublicAcls="true"==e.IgnorePublicAcls),void 0!==e.BlockPublicPolicy&&(n.BlockPublicPolicy="true"==e.BlockPublicPolicy),void 0!==e.RestrictPublicBuckets&&(n.RestrictPublicBuckets="true"==e.RestrictPublicBuckets),n},Xc=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Id:void 0,QueueArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.Queue&&(n.QueueArn=e.Queue),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=dc(Object(mo.g)(e.Event))),void 0!==e.Filter&&(n.Filter=Fc(e.Filter,t)),n}(e,t)})},Zc=function(e,t){var n={HostName:void 0,Protocol:void 0};return void 0!==e.HostName&&(n.HostName=e.HostName),void 0!==e.Protocol&&(n.Protocol=e.Protocol),n},el=function(e,t){var n={Role:void 0,Rules:void 0};return void 0!==e.Role&&(n.Role=e.Role),""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=rl(Object(mo.g)(e.Rule),t)),n},tl=function(e,t){var n={ID:void 0,Priority:void 0,Prefix:void 0,Filter:void 0,Status:void 0,SourceSelectionCriteria:void 0,ExistingObjectReplication:void 0,Destination:void 0,DeleteMarkerReplication:void 0};return void 0!==e.ID&&(n.ID=e.ID),void 0!==e.Priority&&(n.Priority=parseInt(e.Priority)),void 0!==e.Prefix&&(n.Prefix=e.Prefix),void 0!==e.Filter&&(n.Filter=nl(e.Filter,t)),void 0!==e.Status&&(n.Status=e.Status),void 0!==e.SourceSelectionCriteria&&(n.SourceSelectionCriteria=ll(e.SourceSelectionCriteria,t)),void 0!==e.ExistingObjectReplication&&(n.ExistingObjectReplication=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=e.Status),n}(e.ExistingObjectReplication)),void 0!==e.Destination&&(n.Destination=function(e,t){var n={Bucket:void 0,Account:void 0,StorageClass:void 0,AccessControlTranslation:void 0,EncryptionConfiguration:void 0,ReplicationTime:void 0,Metrics:void 0};return void 0!==e.Bucket&&(n.Bucket=e.Bucket),void 0!==e.Account&&(n.Account=e.Account),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.AccessControlTranslation&&(n.AccessControlTranslation=function(e,t){var n={Owner:void 0};return void 0!==e.Owner&&(n.Owner=e.Owner),n}(e.AccessControlTranslation)),void 0!==e.EncryptionConfiguration&&(n.EncryptionConfiguration=uc(e.EncryptionConfiguration,t)),void 0!==e.ReplicationTime&&(n.ReplicationTime=il(e.ReplicationTime,t)),void 0!==e.Metrics&&(n.Metrics=Ac(e.Metrics,t)),n}(e.Destination,t)),void 0!==e.DeleteMarkerReplication&&(n.DeleteMarkerReplication=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=e.Status),n}(e.DeleteMarkerReplication)),n},nl=function(e,t){return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:vl(e.Tag,t)}:void 0!==e.And?{And:function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=gl(Object(mo.g)(e.Tag),t)),n}(e.And,t)}:{$unknown:Object.entries(e)[0]}},rl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:tl(e,t)})},il=function(e,t){var n={Status:void 0,Time:void 0};return void 0!==e.Status&&(n.Status=e.Status),void 0!==e.Time&&(n.Time=ol(e.Time,t)),n},ol=function(e,t){var n={Minutes:void 0};return void 0!==e.Minutes&&(n.Minutes=parseInt(e.Minutes)),n},al=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Condition:void 0,Redirect:void 0},void 0!==(t=e).Condition&&(n.Condition=function(e,t){var n={HttpErrorCodeReturnedEquals:void 0,KeyPrefixEquals:void 0};return void 0!==e.HttpErrorCodeReturnedEquals&&(n.HttpErrorCodeReturnedEquals=e.HttpErrorCodeReturnedEquals),void 0!==e.KeyPrefixEquals&&(n.KeyPrefixEquals=e.KeyPrefixEquals),n}(t.Condition)),void 0!==t.Redirect&&(n.Redirect=function(e,t){var n={HostName:void 0,HttpRedirectCode:void 0,Protocol:void 0,ReplaceKeyPrefixWith:void 0,ReplaceKeyWith:void 0};return void 0!==e.HostName&&(n.HostName=e.HostName),void 0!==e.HttpRedirectCode&&(n.HttpRedirectCode=e.HttpRedirectCode),void 0!==e.Protocol&&(n.Protocol=e.Protocol),void 0!==e.ReplaceKeyPrefixWith&&(n.ReplaceKeyPrefixWith=e.ReplaceKeyPrefixWith),void 0!==e.ReplaceKeyWith&&(n.ReplaceKeyWith=e.ReplaceKeyWith),n}(t.Redirect)),n);var t,n})},sl=function(e,t){var n={FilterRules:void 0};return""===e.FilterRule&&(n.FilterRules=[]),void 0!==e.FilterRule&&(n.FilterRules=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Name:void 0,Value:void 0},void 0!==(t=e).Name&&(n.Name=t.Name),void 0!==t.Value&&(n.Value=t.Value),n);var t,n})}(Object(mo.g)(e.FilterRule))),n},ul=function(e,t){var n={Rules:void 0};return""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=cl(Object(mo.g)(e.Rule),t)),n},cl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={ApplyServerSideEncryptionByDefault:void 0,BucketKeyEnabled:void 0},void 0!==(t=e).ApplyServerSideEncryptionByDefault&&(n.ApplyServerSideEncryptionByDefault=function(e,t){var n={SSEAlgorithm:void 0,KMSMasterKeyID:void 0};return void 0!==e.SSEAlgorithm&&(n.SSEAlgorithm=e.SSEAlgorithm),void 0!==e.KMSMasterKeyID&&(n.KMSMasterKeyID=e.KMSMasterKeyID),n}(t.ApplyServerSideEncryptionByDefault)),void 0!==t.BucketKeyEnabled&&(n.BucketKeyEnabled="true"==t.BucketKeyEnabled),n);var t,n})},ll=function(e,t){var n={SseKmsEncryptedObjects:void 0,ReplicaModifications:void 0};return void 0!==e.SseKmsEncryptedObjects&&(n.SseKmsEncryptedObjects=pl(e.SseKmsEncryptedObjects,t)),void 0!==e.ReplicaModifications&&(n.ReplicaModifications=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=e.Status),n}(e.ReplicaModifications)),n},dl=function(e,t){var n={KeyId:void 0};return void 0!==e.KeyId&&(n.KeyId=e.KeyId),n},pl=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=e.Status),n},fl=function(e,t){return{}},hl=function(e,t){var n={DataExport:void 0};return void 0!==e.DataExport&&(n.DataExport=ml(e.DataExport,t)),n},ml=function(e,t){var n={OutputSchemaVersion:void 0,Destination:void 0};return void 0!==e.OutputSchemaVersion&&(n.OutputSchemaVersion=e.OutputSchemaVersion),void 0!==e.Destination&&(n.Destination=function(e,t){var n={S3BucketDestination:void 0};return void 0!==e.S3BucketDestination&&(n.S3BucketDestination=ec(e.S3BucketDestination,t)),n}(e.Destination,t)),n},vl=function(e,t){var n={Key:void 0,Value:void 0};return void 0!==e.Key&&(n.Key=e.Key),void 0!==e.Value&&(n.Value=e.Value),n},gl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:vl(e,t)})},yl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Grantee:void 0,Permission:void 0};return void 0!==e.Grantee&&(n.Grantee=fc(e.Grantee,t)),void 0!==e.Permission&&(n.Permission=e.Permission),n}(e,t)})},bl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Days:void 0,AccessTier:void 0},void 0!==(t=e).Days&&(n.Days=parseInt(t.Days)),void 0!==t.AccessTier&&(n.AccessTier=t.AccessTier),n);var t,n})},wl=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:function(e,t){var n={Id:void 0,TopicArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=e.Id),void 0!==e.Topic&&(n.TopicArn=e.Topic),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=dc(Object(mo.g)(e.Event))),void 0!==e.Filter&&(n.Filter=Fc(e.Filter,t)),n}(e,t)})},_l=function(e,t){return(e||[]).filter(function(e){return null!=e}).map(function(e){return null===e?null:(n={Date:void 0,Days:void 0,StorageClass:void 0},void 0!==(t=e).Date&&(n.Date=new Date(t.Date)),void 0!==t.Days&&(n.Days=parseInt(t.Days)),void 0!==t.StorageClass&&(n.StorageClass=t.StorageClass),n);var t,n})},Sl=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},xl=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},El=function(e){return!(void 0===e||null===e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size)},Tl=function(e,t){return function(e,t){return xl(e,t).then(function(e){return t.utf8Encoder(e)})}(e,t).then(function(e){if(e.length){var t=Object(bo.parse)(e,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(e,t){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<")}}),n=Object.keys(t)[0],r=t[n];return r["#text"]&&(r[n]=r["#text"],delete r["#text"]),Object(mo.h)(r)}return{}})},Ml=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""},Cl=n("LPDJ"),Il=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:Ee.filterSensitiveLog,outputFilterSensitiveLog:xe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,wo(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ll=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(po(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:De.filterSensitiveLog,outputFilterSensitiveLog:Ae.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(c=Es(e.MultipartUpload,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"POST",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,_o(e,t)]:(n={$metadata:Sl(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.ETag&&(n.ETag=r.ETag),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.Location&&(n.Location=r.Location),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b);var kl={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},zl=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(C.__awaiter)(t,void 0,void 0,function(){var t,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b;return Object(C.__generator)(this,function(w){switch(w.label){case 0:t=Object(C.__assign)({},r.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],w.label=1;case 1:w.trys.push([1,6,7,8]),o=Object(C.__values)(i),a=o.next(),w.label=2;case 2:return a.done?[3,5]:(s=a.value,(u=t[s.target])?(c=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"==typeof u?e.utf8Decoder(u):new Uint8Array(u),l=e.base64Encoder(c),(d=new e.md5).update(c),p=[Object(C.__assign)({},t)],(b={})[s.target]=l,f=s.hash,m=(h=e).base64Encoder,[4,d.digest()]):[3,4]);case 3:t=C.__assign.apply(void 0,p.concat([(b[f]=m.apply(h,[w.sent()]),b)])),w.label=4;case 4:return a=o.next(),[3,2];case 5:return[3,8];case 6:return v=w.sent(),g={error:v},[3,8];case 7:try{a&&!a.done&&(y=o.return)&&y.call(o)}finally{if(g)throw g.error}return[7];case 8:return[2,n(Object(C.__assign)(Object(C.__assign)({},r),{input:t}))]}})})}}}(e),kl)}}},Al=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(po(t)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:je.filterSensitiveLog,outputFilterSensitiveLog:Re.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.CacheControl)&&{"cache-control":e.CacheControl}),El(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),El(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),El(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),El(e.ContentType)&&{"content-type":e.ContentType}),El(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),El(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),El(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":Object(mo.e)(e.CopySourceIfModifiedSince).toString()}),El(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),El(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":Object(mo.e)(e.CopySourceIfUnmodifiedSince).toString()}),El(e.Expires)&&{expires:Object(mo.e)(e.Expires).toString()}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.MetadataDirective)&&{"x-amz-metadata-directive":e.MetadataDirective}),El(e.TaggingDirective)&&{"x-amz-tagging-directive":e.TaggingDirective}),El(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),El(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),El(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),El(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),El(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),El(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),El(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),El(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.Tagging)&&{"x-amz-tagging":e.Tagging}),El(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),El(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),El(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),El(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(t,n){var r;return a(a({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))},{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o={"x-id":"CopyObject"},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"PUT",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,So(e,t)]:(n={$metadata:Sl(e),BucketKeyEnabled:void 0,CopyObjectResult:void 0,CopySourceVersionId:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.CopyObjectResult=rc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b);var Pl={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},Ol=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(C.__awaiter)(t,void 0,void 0,function(){var t,i;return Object(C.__generator)(this,function(o){switch(o.label){case 0:return t=r.input.CreateBucketConfiguration,[4,e.region()];case 1:return i=o.sent(),t&&t.LocationConstraint||(r=Object(C.__assign)(Object(C.__assign)({},r),{input:Object(C.__assign)(Object(C.__assign)({},r.input),{CreateBucketConfiguration:"us-east-1"===i?void 0:{LocationConstraint:i}})})),[2,n(r)]}})})}}}(e),Pl)}}},Dl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ol(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:Ue.filterSensitiveLog,outputFilterSensitiveLog:Ve.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a({"content-type":"application/xml"},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.ObjectLockEnabledForBucket)&&{"x-amz-bucket-object-lock-enabled":e.ObjectLockEnabledForBucket.toString()}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),void 0!==e.CreateBucketConfiguration&&(s=Ls(e.CreateBucketConfiguration,t),o='',s.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),o+=s.toString()),[4,t.endpoint()];case 1:return c=u.sent(),l=c.hostname,d=c.protocol,p=void 0===d?"https":d,f=c.port,[2,new X.a({protocol:p,hostname:l,port:f,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,xo(e,t)]:(n={$metadata:Sl(e),Location:void 0},void 0!==e.headers.location&&(n.Location=e.headers.location),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Nl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:Ye.filterSensitiveLog,outputFilterSensitiveLog:qe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.CacheControl)&&{"cache-control":e.CacheControl}),El(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),El(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),El(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),El(e.ContentType)&&{"content-type":e.ContentType}),El(e.Expires)&&{expires:Object(mo.e)(e.Expires).toString()}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),El(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),El(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),El(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),El(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.Tagging)&&{"x-amz-tagging":e.Tagging}),El(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),El(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),El(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(t,n){var r;return a(a({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))},{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o={uploads:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"POST",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Eo(e,t)]:(n={$metadata:Sl(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Rl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:Ge.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({analytics:""},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Mo(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),jl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:Ke.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),[4,t.endpoint()];case 1:return o=u.sent(),s=o.hostname,c=o.protocol,l=void 0===c?"https":c,d=o.port,[2,new X.a({protocol:l,hostname:s,port:d,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,To(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Fl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:Je.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={cors:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Co(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Bl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:We.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={encryption:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Io(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Hl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:Qe.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n={},r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({"intelligent-tiering":""},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Lo(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Vl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:Xe.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({inventory:""},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,ko(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),$l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:Ze.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={lifecycle:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,zo(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ul=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:et.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({metrics:""},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Ao(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),ql=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:tt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={ownershipControls:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Po(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Yl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:nt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={policy:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Oo(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Kl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:rt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={replication:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Do(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Gl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:it.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={tagging:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,No(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Jl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:ot.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={website:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Ro(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Wl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:st.filterSensitiveLog,outputFilterSensitiveLog:at.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a({},El(e.MFA)&&{"x-amz-mfa":e.MFA}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,jo(e,t)]:(n={$metadata:Sl(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ql=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:mt.filterSensitiveLog,outputFilterSensitiveLog:ht.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Bo(e,t)]:(n={$metadata:Sl(e),VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b);var Xl=n("DQeA");function Zl(e){var t=this;return function(n){return function(r){return Object(C.__awaiter)(t,void 0,void 0,function(){var t,i,o,a,s,u,c,l,d,p,f,h;return Object(C.__generator)(this,function(m){switch(m.label){case 0:return t=r.request,X.a.isInstance(t)?(i=t.body,function(e,t){var n,r;e=e.toLowerCase();try{for(var i=Object(C.__values)(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;if(e===a.toLowerCase())return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}("Content-MD5",o=t.headers)?[3,2]:(a=void 0,void 0===i||"string"==typeof i||ArrayBuffer.isView(i)||Object(Xl.a)(i)?((s=new e.md5).update(i||""),a=s.digest()):a=e.streamHasher(e.md5,i),u=[Object(C.__assign)({},t)],f={},c=[Object(C.__assign)({},o)],h={},l="Content-MD5",p=(d=e).base64Encoder,[4,a])):[3,2];case 1:t=C.__assign.apply(void 0,u.concat([(f.headers=C.__assign.apply(void 0,c.concat([(h[l]=p.apply(d,[m.sent()]),h)])),f)])),m.label=2;case 2:return[2,n(Object(C.__assign)(Object(C.__assign)({},r),{request:t}))]}})})}}}var ed={name:"applyMd5BodyChecksumMiddleware",step:"build",tags:["SET_CONTENT_MD5","BODY_CHECKSUM"],override:!0},td=function(e){return{applyToStack:function(t){t.add(Zl(e),ed)}}};var nd,rd,id,od,ad,sd,ud,cd,ld,dd,pd,fd,hd,md,vd,gd,yd,bd,wd,_d,Sd,xd,Ed,Td,Md,Cd,Id,Ld,kd,zd,Ad,Pd,Od,Dd,Nd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:ft.filterSensitiveLog,outputFilterSensitiveLog:lt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a({"content-type":"application/xml"},El(e.MFA)&&{"x-amz-mfa":e.MFA}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={delete:""},void 0!==e.Delete&&(c=ks(e.Delete,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"POST",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Fo(e,t)]:(n={$metadata:Sl(e),Deleted:void 0,Errors:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).Deleted&&(n.Deleted=[]),void 0!==r.Deleted&&(n.Deleted=ac(Object(mo.g)(r.Deleted),t)),""===r.Error&&(n.Errors=[]),void 0!==r.Error&&(n.Errors=lc(Object(mo.g)(r.Error),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Rd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:vt.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={publicAccessBlock:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Ho(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),jd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:yt.filterSensitiveLog,outputFilterSensitiveLog:gt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={accelerate:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Vo(e,t)]:(n={$metadata:Sl(e),Status:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Status&&(n.Status=r.Status),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Fd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:wt.filterSensitiveLog,outputFilterSensitiveLog:bt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={acl:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$o(e,t)]:(n={$metadata:Sl(e),Grants:void 0,Owner:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).AccessControlList&&(n.Grants=[]),void 0!==r.AccessControlList&&void 0!==r.AccessControlList.Grant&&(n.Grants=hc(Object(mo.g)(r.AccessControlList.Grant),t)),void 0!==r.Owner&&(n.Owner=Yc(r.Owner,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Bd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:kt.filterSensitiveLog,outputFilterSensitiveLog:Lt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({analytics:"","x-id":"GetBucketAnalyticsConfiguration"},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Uo(e,t)]:(n={$metadata:Sl(e),AnalyticsConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.AnalyticsConfiguration=Qu(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Hd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:Pt.filterSensitiveLog,outputFilterSensitiveLog:At.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={cors:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,qo(e,t)]:(n={$metadata:Sl(e),CORSRules:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).CORSRule&&(n.CORSRules=[]),void 0!==r.CORSRule&&(n.CORSRules=oc(Object(mo.g)(r.CORSRule),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Vd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:jt.filterSensitiveLog,outputFilterSensitiveLog:Rt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={encryption:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Yo(e,t)]:(n={$metadata:Sl(e),ServerSideEncryptionConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.ServerSideEncryptionConfiguration=ul(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),$d=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:Ut.filterSensitiveLog,outputFilterSensitiveLog:$t.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n={},r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({"intelligent-tiering":"","x-id":"GetBucketIntelligentTieringConfiguration"},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ko(e,t)]:(n={$metadata:Sl(e),IntelligentTieringConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.IntelligentTieringConfiguration=gc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ud=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:en.filterSensitiveLog,outputFilterSensitiveLog:Zt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({inventory:"","x-id":"GetBucketInventoryConfiguration"},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Go(e,t)]:(n={$metadata:Sl(e),InventoryConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.InventoryConfiguration=wc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),qd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:ln.filterSensitiveLog,outputFilterSensitiveLog:cn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={lifecycle:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Jo(e,t)]:(n={$metadata:Sl(e),Rules:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).Rule&&(n.Rules=[]),void 0!==r.Rule&&(n.Rules=kc(Object(mo.g)(r.Rule),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Yd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:pn.filterSensitiveLog,outputFilterSensitiveLog:dn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={location:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Wo(e,t)]:(n={$metadata:Sl(e),LocationConstraint:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).LocationConstraint&&(n.LocationConstraint=r.LocationConstraint),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Kd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:vn.filterSensitiveLog,outputFilterSensitiveLog:mn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={logging:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Qo(e,t)]:(n={$metadata:Sl(e),LoggingEnabled:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).LoggingEnabled&&(n.LoggingEnabled=zc(r.LoggingEnabled,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Gd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:_n.filterSensitiveLog,outputFilterSensitiveLog:wn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({metrics:"","x-id":"GetBucketMetricsConfiguration"},void 0!==e.Id&&{id:e.Id}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Xo(e,t)]:(n={$metadata:Sl(e),MetricsConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.MetricsConfiguration=Pc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Jd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:Sn.filterSensitiveLog,outputFilterSensitiveLog:Ln.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={notification:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Zo(e,t)]:(n={$metadata:Sl(e),LambdaFunctionConfigurations:void 0,QueueConfigurations:void 0,TopicConfigurations:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).CloudFunctionConfiguration&&(n.LambdaFunctionConfigurations=[]),void 0!==r.CloudFunctionConfiguration&&(n.LambdaFunctionConfigurations=Cc(Object(mo.g)(r.CloudFunctionConfiguration),t)),""===r.QueueConfiguration&&(n.QueueConfigurations=[]),void 0!==r.QueueConfiguration&&(n.QueueConfigurations=Xc(Object(mo.g)(r.QueueConfiguration),t)),""===r.TopicConfiguration&&(n.TopicConfigurations=[]),void 0!==r.TopicConfiguration&&(n.TopicConfigurations=wl(Object(mo.g)(r.TopicConfiguration),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Wd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:Pn.filterSensitiveLog,outputFilterSensitiveLog:An.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={ownershipControls:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ea(e,t)]:(n={$metadata:Sl(e),OwnershipControls:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.OwnershipControls=Kc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Qd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:Dn.filterSensitiveLog,outputFilterSensitiveLog:On.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={policy:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ta(e,t)]:(n={$metadata:Sl(e),Policy:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Policy&&(n.Policy=r.Policy),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Xd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:jn.filterSensitiveLog,outputFilterSensitiveLog:Rn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={policyStatus:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,na(e,t)]:(n={$metadata:Sl(e),PolicyStatus:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.PolicyStatus=Wc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Zd=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:er.filterSensitiveLog,outputFilterSensitiveLog:Zn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={replication:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ra(e,t)]:(n={$metadata:Sl(e),ReplicationConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.ReplicationConfiguration=el(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),ep=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:nr.filterSensitiveLog,outputFilterSensitiveLog:tr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={requestPayment:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ia(e,t)]:(n={$metadata:Sl(e),Payer:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Payer&&(n.Payer=r.Payer),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),tp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:ir.filterSensitiveLog,outputFilterSensitiveLog:rr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={tagging:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,oa(e,t)]:(n={$metadata:Sl(e),TagSet:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).TagSet&&(n.TagSet=[]),void 0!==r.TagSet&&void 0!==r.TagSet.Tag&&(n.TagSet=gl(Object(mo.g)(r.TagSet.Tag),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),np=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:ar.filterSensitiveLog,outputFilterSensitiveLog:or.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={versioning:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,aa(e,t)]:(n={$metadata:Sl(e),MFADelete:void 0,Status:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).MfaDelete&&(n.MFADelete=r.MfaDelete),void 0!==r.Status&&(n.Status=r.Status),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),rp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:hr.filterSensitiveLog,outputFilterSensitiveLog:fr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={website:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,sa(e,t)]:(n={$metadata:Sl(e),ErrorDocument:void 0,IndexDocument:void 0,RedirectAllRequestsTo:void 0,RoutingRules:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).ErrorDocument&&(n.ErrorDocument=cc(r.ErrorDocument,t)),void 0!==r.IndexDocument&&(n.IndexDocument=mc(r.IndexDocument,t)),void 0!==r.RedirectAllRequestsTo&&(n.RedirectAllRequestsTo=Zc(r.RedirectAllRequestsTo,t)),""===r.RoutingRules&&(n.RoutingRules=[]),void 0!==r.RoutingRules&&void 0!==r.RoutingRules.RoutingRule&&(n.RoutingRules=al(Object(mo.g)(r.RoutingRules.RoutingRule),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),ip=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:wr.filterSensitiveLog,outputFilterSensitiveLog:br.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({acl:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ca(e,t)]:(n={$metadata:Sl(e),Grants:void 0,Owner:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).AccessControlList&&(n.Grants=[]),void 0!==r.AccessControlList&&void 0!==r.AccessControlList.Grant&&(n.Grants=hc(Object(mo.g)(r.AccessControlList.Grant),t)),void 0!==r.Owner&&(n.Owner=Yc(r.Owner,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),op=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:vr.filterSensitiveLog,outputFilterSensitiveLog:mr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a({},El(e.IfMatch)&&{"if-match":e.IfMatch}),El(e.IfModifiedSince)&&{"if-modified-since":Object(mo.e)(e.IfModifiedSince).toString()}),El(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),El(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(mo.e)(e.IfUnmodifiedSince).toString()}),El(e.Range)&&{range:e.Range}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a(a(a(a(a(a(a(a({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":(e.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,ua(e,t)]:(n={$metadata:Sl(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(n.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(n.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(n.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=new Date(e.headers.expires)),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-tagging-count"]&&(n.TagCount=parseInt(e.headers["x-amz-tagging-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach(function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])}),r=e.body,n.Body=r,[2,Promise.resolve(n)])})})}(e,t)},t}(mo.b),ap=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:xr.filterSensitiveLog,outputFilterSensitiveLog:Sr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({"legal-hold":""},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,la(e,t)]:(n={$metadata:Sl(e),LegalHold:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.LegalHold=Vc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),sp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:Ir.filterSensitiveLog,outputFilterSensitiveLog:Cr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={"object-lock":""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,da(e,t)]:(n={$metadata:Sl(e),ObjectLockConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.ObjectLockConfiguration=Hc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),up=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:zr.filterSensitiveLog,outputFilterSensitiveLog:kr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({retention:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,pa(e,t)]:(n={$metadata:Sl(e),Retention:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.Retention=$c(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),cp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:Pr.filterSensitiveLog,outputFilterSensitiveLog:Ar.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,fa(e,t)]:(n={$metadata:Sl(e),TagSet:void 0,VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).TagSet&&(n.TagSet=[]),void 0!==r.TagSet&&void 0!==r.TagSet.Tag&&(n.TagSet=gl(Object(mo.g)(r.TagSet.Tag),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),lp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:Dr.filterSensitiveLog,outputFilterSensitiveLog:Or.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o={torrent:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,ha(e,t)]:(n={$metadata:Sl(e),Body:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),r=e.body,n.Body=r,[2,Promise.resolve(n)])})})}(e,t)},t}(mo.b),dp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:jr.filterSensitiveLog,outputFilterSensitiveLog:Rr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={publicAccessBlock:""},[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ma(e,t)]:(n={$metadata:Sl(e),PublicAccessBlockConfiguration:void 0},[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.PublicAccessBlockConfiguration=Qc(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),pp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:Fr.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),[4,t.endpoint()];case 1:return o=u.sent(),s=o.hostname,c=o.protocol,l=void 0===c?"https":c,d=o.port,[2,new X.a({protocol:l,hostname:s,port:d,method:"HEAD",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,va(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),fp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:Vr.filterSensitiveLog,outputFilterSensitiveLog:Hr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a({},El(e.IfMatch)&&{"if-match":e.IfMatch}),El(e.IfModifiedSince)&&{"if-modified-since":Object(mo.e)(e.IfModifiedSince).toString()}),El(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),El(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(mo.e)(e.IfUnmodifiedSince).toString()}),El(e.Range)&&{range:e.Range}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a(a({},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"HEAD",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ga(e,t)]:(n={$metadata:Sl(e),AcceptRanges:void 0,ArchiveStatus:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["x-amz-archive-status"]&&(n.ArchiveStatus=e.headers["x-amz-archive-status"]),void 0!==e.headers["last-modified"]&&(n.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(n.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=new Date(e.headers.expires)),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach(function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])}),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),hp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:Ur.filterSensitiveLog,outputFilterSensitiveLog:$r.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({analytics:"","x-id":"ListBucketAnalyticsConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ya(e,t)]:(n={$metadata:Sl(e),AnalyticsConfigurationList:void 0,ContinuationToken:void 0,IsTruncated:void 0,NextContinuationToken:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).AnalyticsConfiguration&&(n.AnalyticsConfigurationList=[]),void 0!==r.AnalyticsConfiguration&&(n.AnalyticsConfigurationList=Xu(Object(mo.g)(r.AnalyticsConfiguration),t)),void 0!==r.ContinuationToken&&(n.ContinuationToken=r.ContinuationToken),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.NextContinuationToken&&(n.NextContinuationToken=r.NextContinuationToken),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),mp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:Yr.filterSensitiveLog,outputFilterSensitiveLog:qr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n={},r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({"intelligent-tiering":"","x-id":"ListBucketIntelligentTieringConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ba(e,t)]:(n={$metadata:Sl(e),ContinuationToken:void 0,IntelligentTieringConfigurationList:void 0,IsTruncated:void 0,NextContinuationToken:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).ContinuationToken&&(n.ContinuationToken=r.ContinuationToken),""===r.IntelligentTieringConfiguration&&(n.IntelligentTieringConfigurationList=[]),void 0!==r.IntelligentTieringConfiguration&&(n.IntelligentTieringConfigurationList=yc(Object(mo.g)(r.IntelligentTieringConfiguration),t)),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.NextContinuationToken&&(n.NextContinuationToken=r.NextContinuationToken),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),vp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:Gr.filterSensitiveLog,outputFilterSensitiveLog:Kr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({inventory:"","x-id":"ListBucketInventoryConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,wa(e,t)]:(n={$metadata:Sl(e),ContinuationToken:void 0,InventoryConfigurationList:void 0,IsTruncated:void 0,NextContinuationToken:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).ContinuationToken&&(n.ContinuationToken=r.ContinuationToken),""===r.InventoryConfiguration&&(n.InventoryConfigurationList=[]),void 0!==r.InventoryConfiguration&&(n.InventoryConfigurationList=_c(Object(mo.g)(r.InventoryConfiguration),t)),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.NextContinuationToken&&(n.NextContinuationToken=r.NextContinuationToken),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),gp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:Wr.filterSensitiveLog,outputFilterSensitiveLog:Jr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({metrics:"","x-id":"ListBucketMetricsConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,_a(e,t)]:(n={$metadata:Sl(e),ContinuationToken:void 0,IsTruncated:void 0,MetricsConfigurationList:void 0,NextContinuationToken:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).ContinuationToken&&(n.ContinuationToken=r.ContinuationToken),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),""===r.MetricsConfiguration&&(n.MetricsConfigurationList=[]),void 0!==r.MetricsConfiguration&&(n.MetricsConfigurationList=Oc(Object(mo.g)(r.MetricsConfiguration),t)),void 0!==r.NextContinuationToken&&(n.NextContinuationToken=r.NextContinuationToken),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),yp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:function(e){return e},outputFilterSensitiveLog:Xr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var e,n,r,i,o,a,s,c;return u(this,function(u){switch(u.label){case 0:return e={},n="/",r="",[4,t.endpoint()];case 1:return i=u.sent(),o=i.hostname,a=i.protocol,s=void 0===a?"https":a,c=i.port,[2,new X.a({protocol:s,hostname:o,port:c,method:"GET",headers:e,path:n,body:r})]}})})}(0,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Sa(e,t)]:(n={$metadata:Sl(e),Buckets:void 0,Owner:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).Buckets&&(n.Buckets=[]),void 0!==r.Buckets&&void 0!==r.Buckets.Bucket&&(n.Buckets=tc(Object(mo.g)(r.Buckets.Bucket),t)),void 0!==r.Owner&&(n.Owner=Yc(r.Owner,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),bp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:ri.filterSensitiveLog,outputFilterSensitiveLog:ni.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a(a(a(a(a(a({uploads:""},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.KeyMarker&&{"key-marker":e.KeyMarker}),void 0!==e.MaxUploads&&{"max-uploads":e.MaxUploads.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.UploadIdMarker&&{"upload-id-marker":e.UploadIdMarker}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,xa(e,t)]:(n={$metadata:Sl(e),Bucket:void 0,CommonPrefixes:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyMarker:void 0,MaxUploads:void 0,NextKeyMarker:void 0,NextUploadIdMarker:void 0,Prefix:void 0,UploadIdMarker:void 0,Uploads:void 0},[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),""===r.CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=nc(Object(mo.g)(r.CommonPrefixes),t)),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.KeyMarker&&(n.KeyMarker=r.KeyMarker),void 0!==r.MaxUploads&&(n.MaxUploads=parseInt(r.MaxUploads)),void 0!==r.NextKeyMarker&&(n.NextKeyMarker=r.NextKeyMarker),void 0!==r.NextUploadIdMarker&&(n.NextUploadIdMarker=r.NextUploadIdMarker),void 0!==r.Prefix&&(n.Prefix=r.Prefix),void 0!==r.UploadIdMarker&&(n.UploadIdMarker=r.UploadIdMarker),""===r.Upload&&(n.Uploads=[]),void 0!==r.Upload&&(n.Uploads=Nc(Object(mo.g)(r.Upload),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),wp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:pi.filterSensitiveLog,outputFilterSensitiveLog:di.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a({},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a(a(a(a(a(a({versions:""},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.KeyMarker&&{"key-marker":e.KeyMarker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.VersionIdMarker&&{"version-id-marker":e.VersionIdMarker}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ma(e,t)]:(n={$metadata:Sl(e),CommonPrefixes:void 0,DeleteMarkers:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyMarker:void 0,MaxKeys:void 0,Name:void 0,NextKeyMarker:void 0,NextVersionIdMarker:void 0,Prefix:void 0,VersionIdMarker:void 0,Versions:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=nc(Object(mo.g)(r.CommonPrefixes),t)),""===r.DeleteMarker&&(n.DeleteMarkers=[]),void 0!==r.DeleteMarker&&(n.DeleteMarkers=sc(Object(mo.g)(r.DeleteMarker),t)),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.KeyMarker&&(n.KeyMarker=r.KeyMarker),void 0!==r.MaxKeys&&(n.MaxKeys=parseInt(r.MaxKeys)),void 0!==r.Name&&(n.Name=r.Name),void 0!==r.NextKeyMarker&&(n.NextKeyMarker=r.NextKeyMarker),void 0!==r.NextVersionIdMarker&&(n.NextVersionIdMarker=r.NextVersionIdMarker),void 0!==r.Prefix&&(n.Prefix=r.Prefix),void 0!==r.VersionIdMarker&&(n.VersionIdMarker=r.VersionIdMarker),""===r.Version&&(n.Versions=[]),void 0!==r.Version&&(n.Versions=qc(Object(mo.g)(r.Version),t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),_p=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:ai.filterSensitiveLog,outputFilterSensitiveLog:oi.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a(a(a(a(a({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ea(e,t)]:(n={$metadata:Sl(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=nc(Object(mo.g)(r.CommonPrefixes),t)),""===r.Contents&&(n.Contents=[]),void 0!==r.Contents&&(n.Contents=Bc(Object(mo.g)(r.Contents),t)),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Marker&&(n.Marker=r.Marker),void 0!==r.MaxKeys&&(n.MaxKeys=parseInt(r.MaxKeys)),void 0!==r.Name&&(n.Name=r.Name),void 0!==r.NextMarker&&(n.NextMarker=r.NextMarker),void 0!==r.Prefix&&(n.Prefix=r.Prefix),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Sp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:ui.filterSensitiveLog,outputFilterSensitiveLog:si.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a(a(a(a(a(a(a({"list-type":"2"},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),void 0!==e.FetchOwner&&{"fetch-owner":e.FetchOwner.toString()}),void 0!==e.StartAfter&&{"start-after":e.StartAfter}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ta(e,t)]:(n={$metadata:Sl(e),CommonPrefixes:void 0,Contents:void 0,ContinuationToken:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyCount:void 0,MaxKeys:void 0,Name:void 0,NextContinuationToken:void 0,Prefix:void 0,StartAfter:void 0},[4,Tl(e.body,t)]);case 1:return""===(r=i.sent()).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=nc(Object(mo.g)(r.CommonPrefixes),t)),""===r.Contents&&(n.Contents=[]),void 0!==r.Contents&&(n.Contents=Bc(Object(mo.g)(r.Contents),t)),void 0!==r.ContinuationToken&&(n.ContinuationToken=r.ContinuationToken),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.KeyCount&&(n.KeyCount=parseInt(r.KeyCount)),void 0!==r.MaxKeys&&(n.MaxKeys=parseInt(r.MaxKeys)),void 0!==r.Name&&(n.Name=r.Name),void 0!==r.NextContinuationToken&&(n.NextContinuationToken=r.NextContinuationToken),void 0!==r.Prefix&&(n.Prefix=r.Prefix),void 0!==r.StartAfter&&(n.StartAfter=r.StartAfter),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),xp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:mi.filterSensitiveLog,outputFilterSensitiveLog:hi.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a({},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a(a(a({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ca(e,t)]:(n={$metadata:Sl(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Initiator&&(n.Initiator=vc(r.Initiator,t)),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.MaxParts&&(n.MaxParts=parseInt(r.MaxParts)),void 0!==r.NextPartNumberMarker&&(n.NextPartNumberMarker=r.NextPartNumberMarker),void 0!==r.Owner&&(n.Owner=Yc(r.Owner,t)),void 0!==r.PartNumberMarker&&(n.PartNumberMarker=r.PartNumberMarker),""===r.Part&&(n.Parts=[]),void 0!==r.Part&&(n.Parts=Jc(Object(mo.g)(r.Part),t)),void 0!==r.StorageClass&&(n.StorageClass=r.StorageClass),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ep=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:vi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={accelerate:""},void 0!==e.AccelerateConfiguration&&(c=gs(e.AccelerateConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ia(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Tp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:gi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a({"content-type":"application/xml"},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={acl:""},void 0!==e.AccessControlPolicy&&(c=ys(e.AccessControlPolicy,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,La(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Mp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:yi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({analytics:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.AnalyticsConfiguration&&(c=bs(e.AnalyticsConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ka(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Cp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:wi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={cors:""},void 0!==e.CORSConfiguration&&(c=Ms(e.CORSConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,za(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ip=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:_i.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={encryption:""},void 0!==e.ServerSideEncryptionConfiguration&&(c=Au(e.ServerSideEncryptionConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Aa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Lp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:Si.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n={"content-type":"application/xml"},r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({"intelligent-tiering":""},void 0!==e.Id&&{id:e.Id}),void 0!==e.IntelligentTieringConfiguration&&(c=Fs(e.IntelligentTieringConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Pa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),kp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:xi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({inventory:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.InventoryConfiguration&&(c=Hs(e.InventoryConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Oa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),zp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:Ti.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={lifecycle:""},void 0!==e.LifecycleConfiguration&&(c=Ss(e.LifecycleConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Da(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Ap=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:Ci.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={logging:""},void 0!==e.BucketLoggingStatus&&(c=xs(e.BucketLoggingStatus,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Na(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Pp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:Ii.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o=a({metrics:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.MetricsConfiguration&&(c=eu(e.MetricsConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ra(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Op=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:Li.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a({"content-type":"application/xml"},El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={notification:""},void 0!==e.NotificationConfiguration&&(c=iu(e.NotificationConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ja(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Dp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:ki.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={ownershipControls:""},void 0!==e.OwnershipControls&&(c=fu(e.OwnershipControls,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Fa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Np=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:zi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a({"content-type":"text/plain"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ConfirmRemoveSelfBucketAccess)&&{"x-amz-confirm-remove-self-bucket-access":e.ConfirmRemoveSelfBucketAccess.toString()}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={policy:""},void 0!==e.Policy&&(c=e.Policy,s=c),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ba(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Rp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:Ai.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.Token)&&{"x-amz-bucket-object-lock-token":e.Token}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={replication:""},void 0!==e.ReplicationConfiguration&&(c=yu(e.ReplicationConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ha(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),jp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:Oi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={requestPayment:""},void 0!==e.RequestPaymentConfiguration&&(c=Eu(e.RequestPaymentConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Va(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Fp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t)),this.middlewareStack.use(td(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:Ni.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={tagging:""},void 0!==e.Tagging&&(c=Vu(e.Tagging,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$a(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Bp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:ji.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.MFA)&&{"x-amz-mfa":e.MFA}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={versioning:""},void 0!==e.VersioningConfiguration&&(c=Ju(e.VersioningConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ua(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Hp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:Bi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={website:""},void 0!==e.WebsiteConfiguration&&(c=Wu(e.WebsiteConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,qa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Vp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:Ui.filterSensitiveLog,outputFilterSensitiveLog:$i.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a({"content-type":"application/xml"},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({acl:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.AccessControlPolicy&&(c=ys(e.AccessControlPolicy,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ka(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),$p=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:Vi.filterSensitiveLog,outputFilterSensitiveLog:Hi.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({"content-type":"application/octet-stream"},El(e.ACL)&&{"x-amz-acl":e.ACL}),El(e.CacheControl)&&{"cache-control":e.CacheControl}),El(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),El(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),El(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),El(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ContentType)&&{"content-type":e.ContentType}),El(e.Expires)&&{expires:Object(mo.e)(e.Expires).toString()}),El(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),El(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),El(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),El(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),El(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),El(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),El(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),El(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),El(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.Tagging)&&{"x-amz-tagging":e.Tagging}),El(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),El(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),El(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(t,n){var r;return a(a({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))},{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o={"x-id":"PutObject"},void 0!==e.Body&&(c=e.Body,s=c),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ya(e,t)]:(n={$metadata:Sl(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Up=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:Yi.filterSensitiveLog,outputFilterSensitiveLog:qi.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a({"content-type":"application/xml"},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({"legal-hold":""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.LegalHold&&(c=uu(e.LegalHold,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ga(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),qp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:Gi.filterSensitiveLog,outputFilterSensitiveLog:Ki.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a({"content-type":"application/xml"},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.Token)&&{"x-amz-bucket-object-lock-token":e.Token}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={"object-lock":""},void 0!==e.ObjectLockConfiguration&&(c=su(e.ObjectLockConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ja(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Yp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:Wi.filterSensitiveLog,outputFilterSensitiveLog:Ji.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a({"content-type":"application/xml"},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({retention:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.Retention&&(c=cu(e.Retention,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Wa(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Kp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:Xi.filterSensitiveLog,outputFilterSensitiveLog:Qi.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.Tagging&&(c=Vu(e.Tagging,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Qa(e,t)]:(n={$metadata:Sl(e),VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Gp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:Zi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(mo.f)(i)),o={publicAccessBlock:""},void 0!==e.PublicAccessBlockConfiguration&&(c=vu(e.PublicAccessBlockConfiguration,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Xa(e,t)]:(n={$metadata:Sl(e)},[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b);(nd||(nd={})).filterSensitiveLog=function(e){return a({},e)},(rd||(rd={})).filterSensitiveLog=function(e){return a(a({},e),e.Encryption&&{Encryption:ro.filterSensitiveLog(e.Encryption)})},(id||(id={})).filterSensitiveLog=function(e){return a(a({},e),e.S3&&{S3:rd.filterSensitiveLog(e.S3)})},function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(od||(od={})),(ad||(ad={})).filterSensitiveLog=function(e){return a({},e)},function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(sd||(sd={})),(ud||(ud={})).filterSensitiveLog=function(e){return a({},e)},(cd||(cd={})).filterSensitiveLog=function(e){return a({},e)},(ld||(ld={})).filterSensitiveLog=function(e){return a({},e)},function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(dd||(dd={})),(pd||(pd={})).filterSensitiveLog=function(e){return a({},e)},(fd||(fd={})).filterSensitiveLog=function(e){return a({},e)},(hd||(hd={})).filterSensitiveLog=function(e){return a({},e)},(md||(md={})).filterSensitiveLog=function(e){return a({},e)},function(e){e.SELECT="SELECT"}(vd||(vd={})),(gd||(gd={})).filterSensitiveLog=function(e){return a(a({},e),e.OutputLocation&&{OutputLocation:id.filterSensitiveLog(e.OutputLocation)})},(yd||(yd={})).filterSensitiveLog=function(e){return a(a({},e),e.RestoreRequest&&{RestoreRequest:gd.filterSensitiveLog(e.RestoreRequest)})},(bd||(bd={})).filterSensitiveLog=function(e){return a({},e)},(wd||(wd={})).filterSensitiveLog=function(e){return a({},e)},(_d||(_d={})).filterSensitiveLog=function(e){return a({},e)},(Sd||(Sd={})).filterSensitiveLog=function(e){return a({},e)},(xd||(xd={})).filterSensitiveLog=function(e){return a({},e)},(Ed||(Ed={})).filterSensitiveLog=function(e){return a({},e)},(Td||(Td={})).filterSensitiveLog=function(e){return a({},e)},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:xd.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:Td.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:Sd.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:bd.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:wd.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Md||(Md={})),(Cd||(Cd={})).filterSensitiveLog=function(e){return a(a({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})},(Id||(Id={})).filterSensitiveLog=function(e){return a({},e)},(Ld||(Ld={})).filterSensitiveLog=function(e){return a({},e)},(kd||(kd={})).filterSensitiveLog=function(e){return a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d})},(zd||(zd={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d})},(Ad||(Ad={})).filterSensitiveLog=function(e){return a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d})},(Pd||(Pd={})).filterSensitiveLog=function(e){return a({},e)},(Od||(Od={})).filterSensitiveLog=function(e){return a(a({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:mo.d})},(Dd||(Dd={})).filterSensitiveLog=function(e){return a(a(a({},e),e.SSECustomerKey&&{SSECustomerKey:mo.d}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:mo.d})};var Jp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:yd.filterSensitiveLog,outputFilterSensitiveLog:to.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a({"content-type":"application/xml"},El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a({restore:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.RestoreRequest&&(c=Mu(e.RestoreRequest,t),s='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=c.toString()),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"POST",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Za(e,t)]:(n={$metadata:Sl(e),RequestCharged:void 0,RestoreOutputPath:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-restore-output-path"]&&(n.RestoreOutputPath=e.headers["x-amz-restore-output-path"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Wp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:kd.filterSensitiveLog,outputFilterSensitiveLog:Cd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h,m;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a({"content-type":"application/xml"},El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o={select:"","select-type":"2"},s='',(c=new go("SelectObjectContentRequest")).addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),void 0!==e.Expression&&(l=new go("Expression").addChildNode(new yo(e.Expression)).withName("Expression"),c.addChildNode(l)),void 0!==e.ExpressionType&&(l=new go("ExpressionType").addChildNode(new yo(e.ExpressionType)).withName("ExpressionType"),c.addChildNode(l)),void 0!==e.InputSerialization&&(l=js(e.InputSerialization,t).withName("InputSerialization"),c.addChildNode(l)),void 0!==e.OutputSerialization&&(l=du(e.OutputSerialization,t).withName("OutputSerialization"),c.addChildNode(l)),void 0!==e.RequestProgress&&(l=Tu(e.RequestProgress,t).withName("RequestProgress"),c.addChildNode(l)),void 0!==e.ScanRange&&(l=ku(e.ScanRange,t).withName("ScanRange"),c.addChildNode(l)),s+=c.toString(),[4,t.endpoint()];case 1:return d=u.sent(),p=d.hostname,f=d.protocol,h=void 0===f?"https":f,m=d.port,[2,new X.a({protocol:h,hostname:p,port:m,method:"POST",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,es(e,t)]:(n={$metadata:Sl(e),Payload:void 0},r=t.eventStreamMarshaller.deserialize(e.body,function(e){return s(void 0,void 0,void 0,function(){var n,r,i,o;return u(this,function(a){switch(a.label){case 0:return n=Object.keys(e)[0],r=Object.entries(e[n].headers).reduce(function(e,t){return e[t[0]]=t[1].value,e},{}),i={headers:r,body:e[n].body},(o={})[n]=i,[4,rs(o,t)];case 1:return[2,a.sent()]}})})}),n.Payload=r,[2,Promise.resolve(n)])})})}(e,t)},t}(mo.b),Qp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:Ad.filterSensitiveLog,outputFilterSensitiveLog:zd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p,f,h;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a({"content-type":"application/octet-stream"},El(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),El(e.ContentMD5)&&{"content-md5":e.ContentMD5}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a(a({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(c=e.Body,s=c),[4,t.endpoint()];case 1:return l=u.sent(),d=l.hostname,p=l.protocol,f=void 0===p?"https":p,h=l.port,[2,new X.a({protocol:f,hostname:d,port:h,method:"PUT",headers:n,path:r,query:o,body:s})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ts(e,t)]:(n={$metadata:Sl(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,xl(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b),Xp=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return o(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Cl.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(po(t)),this.middlewareStack.use(zl(t)),this.middlewareStack.use(ve(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:Dd.filterSensitiveLog,outputFilterSensitiveLog:Od.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r,i,o,s,c,l,d,p;return u(this,function(u){switch(u.label){case 0:if(n=a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},El(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),El(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),El(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":Object(mo.e)(e.CopySourceIfModifiedSince).toString()}),El(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),El(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":Object(mo.e)(e.CopySourceIfUnmodifiedSince).toString()}),El(e.CopySourceRange)&&{"x-amz-copy-source-range":e.CopySourceRange}),El(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),El(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),El(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),El(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),El(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),El(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),El(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),El(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),El(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(mo.f)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map(function(e){return Object(mo.f)(e)}).join("/")),o=a(a({"x-id":"UploadPartCopy"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return s=u.sent(),c=s.hostname,l=s.protocol,d=void 0===l?"https":l,p=s.port,[2,new X.a({protocol:d,hostname:c,port:p,method:"PUT",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return s(void 0,void 0,void 0,function(){var n,r;return u(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ns(e,t)]:(n={$metadata:Sl(e),BucketKeyEnabled:void 0,CopyPartResult:void 0,CopySourceVersionId:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Tl(e.body,t)]);case 1:return r=i.sent(),n.CopyPartResult=ic(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(mo.b);(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e),t.prototype.abortMultipartUpload=function(e,t,n){var r=new Il(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.completeMultipartUpload=function(e,t,n){var r=new Ll(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.copyObject=function(e,t,n){var r=new Al(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createBucket=function(e,t,n){var r=new Dl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createMultipartUpload=function(e,t,n){var r=new Nl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucket=function(e,t,n){var r=new jl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketAnalyticsConfiguration=function(e,t,n){var r=new Rl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketCors=function(e,t,n){var r=new Fl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketEncryption=function(e,t,n){var r=new Bl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketIntelligentTieringConfiguration=function(e,t,n){var r=new Hl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketInventoryConfiguration=function(e,t,n){var r=new Vl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketLifecycle=function(e,t,n){var r=new $l(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketMetricsConfiguration=function(e,t,n){var r=new Ul(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketOwnershipControls=function(e,t,n){var r=new ql(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketPolicy=function(e,t,n){var r=new Yl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketReplication=function(e,t,n){var r=new Kl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketTagging=function(e,t,n){var r=new Gl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBucketWebsite=function(e,t,n){var r=new Jl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteObject=function(e,t,n){var r=new Wl(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteObjects=function(e,t,n){var r=new Nd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteObjectTagging=function(e,t,n){var r=new Ql(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deletePublicAccessBlock=function(e,t,n){var r=new Rd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketAccelerateConfiguration=function(e,t,n){var r=new jd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketAcl=function(e,t,n){var r=new Fd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketAnalyticsConfiguration=function(e,t,n){var r=new Bd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketCors=function(e,t,n){var r=new Hd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketEncryption=function(e,t,n){var r=new Vd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketIntelligentTieringConfiguration=function(e,t,n){var r=new $d(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketInventoryConfiguration=function(e,t,n){var r=new Ud(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketLifecycleConfiguration=function(e,t,n){var r=new qd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketLocation=function(e,t,n){var r=new Yd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketLogging=function(e,t,n){var r=new Kd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketMetricsConfiguration=function(e,t,n){var r=new Gd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketNotificationConfiguration=function(e,t,n){var r=new Jd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketOwnershipControls=function(e,t,n){var r=new Wd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketPolicy=function(e,t,n){var r=new Qd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketPolicyStatus=function(e,t,n){var r=new Xd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketReplication=function(e,t,n){var r=new Zd(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketRequestPayment=function(e,t,n){var r=new ep(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketTagging=function(e,t,n){var r=new tp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketVersioning=function(e,t,n){var r=new np(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBucketWebsite=function(e,t,n){var r=new rp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObject=function(e,t,n){var r=new op(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectAcl=function(e,t,n){var r=new ip(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectLegalHold=function(e,t,n){var r=new ap(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectLockConfiguration=function(e,t,n){var r=new sp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectRetention=function(e,t,n){var r=new up(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectTagging=function(e,t,n){var r=new cp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getObjectTorrent=function(e,t,n){var r=new lp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getPublicAccessBlock=function(e,t,n){var r=new dp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.headBucket=function(e,t,n){var r=new pp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.headObject=function(e,t,n){var r=new fp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listBucketAnalyticsConfigurations=function(e,t,n){var r=new hp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listBucketIntelligentTieringConfigurations=function(e,t,n){var r=new mp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listBucketInventoryConfigurations=function(e,t,n){var r=new vp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listBucketMetricsConfigurations=function(e,t,n){var r=new gp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listBuckets=function(e,t,n){var r=new yp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listMultipartUploads=function(e,t,n){var r=new bp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listObjects=function(e,t,n){var r=new _p(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listObjectsV2=function(e,t,n){var r=new Sp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listObjectVersions=function(e,t,n){var r=new wp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listParts=function(e,t,n){var r=new xp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketAccelerateConfiguration=function(e,t,n){var r=new Ep(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketAcl=function(e,t,n){var r=new Tp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketAnalyticsConfiguration=function(e,t,n){var r=new Mp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketCors=function(e,t,n){var r=new Cp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketEncryption=function(e,t,n){var r=new Ip(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketIntelligentTieringConfiguration=function(e,t,n){var r=new Lp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketInventoryConfiguration=function(e,t,n){var r=new kp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketLifecycleConfiguration=function(e,t,n){var r=new zp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketLogging=function(e,t,n){var r=new Ap(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketMetricsConfiguration=function(e,t,n){var r=new Pp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketNotificationConfiguration=function(e,t,n){var r=new Op(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketOwnershipControls=function(e,t,n){var r=new Dp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketPolicy=function(e,t,n){var r=new Np(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketReplication=function(e,t,n){var r=new Rp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketRequestPayment=function(e,t,n){var r=new jp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketTagging=function(e,t,n){var r=new Fp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketVersioning=function(e,t,n){var r=new Bp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putBucketWebsite=function(e,t,n){var r=new Hp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObject=function(e,t,n){var r=new $p(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObjectAcl=function(e,t,n){var r=new Vp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObjectLegalHold=function(e,t,n){var r=new Up(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObjectLockConfiguration=function(e,t,n){var r=new qp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObjectRetention=function(e,t,n){var r=new Yp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putObjectTagging=function(e,t,n){var r=new Kp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putPublicAccessBlock=function(e,t,n){var r=new Gp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.restoreObject=function(e,t,n){var r=new Jp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.selectObjectContent=function(e,t,n){var r=new Wp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.uploadPart=function(e,t,n){var r=new Qp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.uploadPartCopy=function(e,t,n){var r=new Xp(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}})(vo),n("n4vs");var Zp=n("/Xb7");function ef(e){var t=e.port,n=e.query,r=e.protocol,i=e.path,o=e.hostname;r&&":"!==r.substr(-1)&&(r+=":"),t&&(o+=":"+t),i&&"/"!==i.charAt(0)&&(i="/"+i);var a=n?Object(Zp.a)(n):"";return a&&"?"!==a[0]&&(a="?"+a),r+"//"+o+i+a}var tf=n("+Crt"),nf=function(){function e(e){var t=Object(C.__assign)({service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1},e);this.signer=new tf.a(t)}return e.prototype.presign=function(e,t){void 0===t&&(t={});var n=t.unsignableHeaders,r=void 0===n?new Set:n,i=t.unhoistableHeaders,o=void 0===i?new Set:i,a=Object(C.__rest)(t,["unsignableHeaders","unhoistableHeaders"]);return Object(C.__awaiter)(this,void 0,void 0,function(){return Object(C.__generator)(this,function(t){return r.add("content-type"),Object.keys(e.headers).map(function(e){return e.toLowerCase()}).filter(function(e){return e.startsWith("x-amz-server-side-encryption")}).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,Object(C.__assign)({expiresIn:900,unsignableHeaders:r,unhoistableHeaders:o},a))]})})},e}(),rf=n("mtWM"),of=n.n(rf),af=new r.c("axios-http-handler"),sf=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,r=this.emitter,i=e.path;if(e.query){var o=Object(Zp.a)(e.query);o&&(i+="?"+o)}var a=e.port,s=e.protocol+"//"+e.hostname+(a?":"+a:"")+i,u={};u.url=s,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),r&&(u.onUploadProgress=function(e){r.emit("sendProgress",e),af.debug(e)}),this.cancelTokenSource&&(u.cancelToken=this.cancelTokenSource.token),u.responseType="blob";var c=[of.a.request(u).then(function(e){return{response:new X.b({headers:e.headers,statusCode:e.status,body:e.data})}}).catch(function(e){throw af.error(e),e}),function(e){void 0===e&&(e=0);return 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)})}(n)];return Promise.race(c)},e}();var uf=n("vzCy"),cf=this&&this.__assign||function(){return(cf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ff=new r.c("AWSS3ProviderManagedUpload"),hf=function(){function e(e,t,n){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.multiPartMap=[],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 lf(this,void 0,void 0,function(){var e,t,n,r,i,o;return df(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 $p(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(),r=Math.ceil(this.totalBytesToUpload/this.minPartSize),i=0,a.label=5;case 5:return i0)throw new Error("Multi Part upload clean up failed");return[2]}})})},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on("sendProgress",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("sendProgress",{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 lf(this,void 0,void 0,function(){return df(this,function(t){switch(t.label){case 0:return this.isGenericObject(e)?[2,JSON.stringify(e)]:[3,1];case 1:return this.isBlob(e)?r.o.isReactNative?[4,Object(M.b)(e)]:[3,3]:[3,4];case 2:return[2,t.sent()];case 3:case 4:return[2,e]}})})},e.prototype.isBlob=function(e){return"undefined"!=typeof Blob&&e instanceof Blob},e.prototype.isGenericObject=function(e){if(null!==e&&"object"==typeof e)try{return!(this.byteLength(e)>=0)}catch(e){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return lf(this,void 0,void 0,function(){var n,i,o,a,s,u;return df(this,function(c){switch(c.label){case 0:return[4,this._getCredentials()];case 1:return n=c.sent(),i=e.region,o=e.dangerouslyConnectToHttpEndpointForTesting,a=e.cancelTokenSource,s={},o&&(s={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(u=new vo(cf(cf({region:i,credentials:n},s),{requestHandler:new sf({},t,a),customUserAgent:Object(r.v)()}))).middlewareStack.remove("contentLengthMiddleware"),[2,u]}})})},e.prototype._getCredentials=function(){return r.e.get().then(function(e){if(!e)return!1;var t=r.e.shear(e);return ff.debug("set credentials for storage",t),t}).catch(function(e){return ff.warn("ensure credentials error",e),!1})},e}(),mf=this&&this.__assign||function(){return(mf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Mf=new r.c("StorageClass"),Cf=function(){function e(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,Mf.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?(Mf.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(Mf.debug("configure Storage"),!e)return this._config;var n=r.n.parseMobilehubConfig(e),i=Object.keys(n.Storage),o=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],a=function(e){return o.some(function(t){return t===e})};return i&&i.find(function(e){return a(e)})&&!n.Storage.AWSS3&&(n.Storage.AWSS3={}),Object.entries(n.Storage).map(function(e){var t=Tf(e,2),r=t[0],i=t[1];r&&a(r)&&void 0!==i&&(n.Storage.AWSS3[r]=i,delete n.Storage[r])}),Object.keys(n.Storage).forEach(function(e){"string"!=typeof n.Storage[e]&&(t._config[e]=Sf(Sf({},t._config[e]),n.Storage[e]))}),this._pluggables.forEach(function(e){e.configure(t._config[e.getProviderName()])}),0===this._pluggables.length&&this.addPluggable(new _f),this._config},e.prototype.getCancellableTokenSource=function(){return of.a.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):Mf.debug("The request does not map to any cancel token")},e.prototype.get=function(e,t){var n=(t||{}).provider,r=void 0===n?"AWSS3":n,i=this._pluggables.find(function(e){return e.getProviderName()===r});if(void 0===i)return Mf.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource(),a=i.get(e,Sf(Sf({},t),{cancelTokenSource:o}));return this.updateRequestToBeCancellable(a,o),a},e.prototype.isCancelError=function(e){return of.a.isCancel(e)},e.prototype.put=function(e,t,n){var r=(n||{}).provider,i=void 0===r?"AWSS3":r,o=this._pluggables.find(function(e){return e.getProviderName()===i});if(void 0===o)return Mf.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource(),s=o.put(e,t,Sf(Sf({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.remove=function(e,t){return xf(this,void 0,void 0,function(){var n,r,i;return Ef(this,function(o){return n=(t||{}).provider,r=void 0===n?"AWSS3":n,void 0===(i=this._pluggables.find(function(e){return e.getProviderName()===r}))?(Mf.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.remove(e,t)]})})},e.prototype.list=function(e,t){return xf(this,void 0,void 0,function(){var n,r,i;return Ef(this,function(o){return n=(t||{}).provider,r=void 0===n?"AWSS3":n,void 0===(i=this._pluggables.find(function(e){return e.getProviderName()===r}))?(Mf.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.list(e,t)]})})},e}();n.d(t,"a",function(){return zf}),n.d(t,"b",function(){return Cf}),n.d(t,!1,function(){return _f});var If=this&&this.__assign||function(){return(If=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&"_"===e[0]&&"_"===e[1]?new i.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by ')+"GraphQL introspection.",t):a.test(e)?void 0:new i.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}},bs6G:function(e,t,n){var r=n("7KvD").parseFloat,i=n("mnVu").trim;e.exports=1/r(n("hyta")+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},c1x4:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&n&&"годину"===o?e+" година":e+" "+o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n("PJh5"))},c45H:function(e,t,n){n("1alW"),e.exports=n("FeBl").Number.isInteger},cGG2:function(e,t,n){"use strict";var r=n("JP+z"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n1)return 1;for(var n=e,r=0;r<8;r++){var i=this.sampleCurveX(n)-e;if(Math.abs(i)i?a=n:s=n,n=.5*(s-a)+a;return n},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};const i=r(.25,.1,.25,1);function o(e,t,n){return Math.min(n,Math.max(t,e))}function a(e,t,n){const r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function s(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}let u=1;function c(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function l(e,t,n){const r={};for(const i in e)r[i]=t.call(n||this,e[i],i,e);return r}function d(e,t,n){const r={};for(const i in e)t.call(n||this,e[i],i,e)&&(r[i]=e[i]);return r}function p(e){return Array.isArray(e)?e.map(p):"object"==typeof e&&e?l(e,p):e}const f={};function h(e){f[e]||("undefined"!=typeof console&&console.warn(e),f[e]=!0)}function m(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function v(e){let t=0;for(let n,r,i=0,o=e.length,a=o-1;i@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,n,r,i)=>{const o=r||i;return t[n]=!o||o.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let b,w,_=null;function S(e){if(null==_){const t=e.navigator?e.navigator.userAgent:null;_=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return _}function x(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}const E={now:"undefined"!=typeof performance&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){const n=window.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:e=>(b||(b=document.createElement("a")),b.href=e,b.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==w&&(w=matchMedia("(prefers-reduced-motion: reduce)")),w.matches)}};var T=M;function M(e,t){this.x=e,this.y=t}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},M.convert=function(e){return e instanceof M?e:Array.isArray(e)?new M(e[0],e[1]):e};const C={MAX_PARALLEL_IMAGE_REQUESTS:16,REGISTERED_PROTOCOLS:{}},I="mapbox-tiles";let L,k=500,z=50;function A(){"undefined"==typeof caches||L||(L=caches.open(I))}let P=1/0;const O={supported:!1,testSupport:function(e){!R&&N&&(j?F(e):D=e)}};let D,N,R=!1,j=!1;function F(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,N),e.isContextLost())return;O.supported=!0}catch(e){}e.deleteTexture(t),R=!0}"undefined"!=typeof document&&((N=document.createElement("img")).onload=function(){D&&F(D),D=null,j=!0},N.onerror=function(){R=!0,D=null},N.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const B={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(B);class H extends Error{constructor(e,t,n,r){super(`AJAXError: ${t} (${e}): ${n}`),this.status=e,this.statusText=t,this.url=n,this.body=r}}const V=g()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href;function $(e,t){const n=new AbortController,r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:V(),signal:n.signal});let i=!1,o=!1;return"json"===e.type&&r.headers.set("Accept","application/json"),((n,a,s)=>{if(o)return;Date.now();fetch(r).then(n=>n.ok?((n,r,a)=>{("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then(e=>{o||(i=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(e=>{o||t(new Error(e.message))})})(n):n.blob().then(r=>t(new H(n.status,n.statusText,e.url,r)))).catch(e=>{20!==e.code&&t(new Error(e.message))})})(),{cancel:()=>{o=!0,i||n.abort()}}}const U=function(e,t){if(/:\/\//.test(e.url)&&!/^https?:|^file:/.test(e.url)){if(g()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t);if(!g()){const n=e.url.substring(0,e.url.indexOf("://"));return(C.REGISTERED_PROTOCOLS[n]||$)(e,t)}}if(!(/^file:/.test(n=e.url)||/^file:/.test(V())&&!/^\w+:/.test(n))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return $(e,t);if(g()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){const n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer");for(const t in e.headers)n.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=(()=>{t(new Error(n.statusText))}),n.onload=(()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else{const r=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});t(new H(n.status,n.statusText,e.url,r))}}),n.send(e.body),{cancel:()=>n.abort()}}(e,t)},q=function(e,t){return U(s(e,{type:"arrayBuffer"}),t)};function Y(e){const t=window.document.createElement("a");return t.href=e,t.protocol===window.document.location.protocol&&t.host===window.document.location.host}const K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let G,J;G=[],J=0;const W=function(e,t){if(O.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),J>=C.MAX_PARALLEL_IMAGE_REQUESTS){const n={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return G.push(n),n}J++;let n=!1;const r=()=>{if(!n)for(n=!0,J--;G.length&&J{r(),e?t(e):n&&function(e,t){"function"==typeof createImageBitmap?function(e,t){const n=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(n).then(e=>{t(null,e)}).catch(e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(e,t):function(e,t){const n=new Image;n.onload=(()=>{t(null,n),URL.revokeObjectURL(n.src),n.onload=null,window.requestAnimationFrame(()=>{n.src=K})}),n.onerror=(()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")));const r=new Blob([new Uint8Array(e)],{type:"image/png"});n.src=e.byteLength?URL.createObjectURL(r):K}(e,t)}(n,(e,n)=>{null!=e?t(e):null!=n&&t(null,n,{cacheControl:i,expires:o})})});return{cancel:()=>{i.cancel(),r()}}};function Q(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function X(e,t,n){if(n&&n[e]){const r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}class Z{constructor(e,t={}){s(this,t),this.type=e}}class ee extends Z{constructor(e,t={}){super("error",s({error:e},t))}}class te{on(e,t){return this._listeners=this._listeners||{},Q(e,t,this._listeners),this}off(e,t){return X(e,t,this._listeners),X(e,t,this._oneTimeListeners),this}once(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},Q(e,t,this._oneTimeListeners),this}fire(e,t){"string"==typeof e&&(e=new Z(e,t||{}));const n=e.type;if(this.listens(n)){e.target=this;const t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of t)n.call(this,e);const r=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const t of r)X(n,t,this._oneTimeListeners),t.call(this,e);const i=this._eventedParent;i&&(s(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(e))}else e instanceof ee&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var ne={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};class re{constructor(e,t,n,r){this.message=(e?`${e}: `:"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}function ie(e){const t=e.value;return t?[new re(e.key,t,"constants have been deprecated as of v8")]:[]}function oe(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}function ae(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function se(e){if(Array.isArray(e))return e.map(se);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=se(e[n]);return t}return ae(e)}class ue extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class ce{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,n]of t)this.bindings[e]=n}concat(e){return new ce(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const le={kind:"null"},de={kind:"number"},pe={kind:"string"},fe={kind:"boolean"},he={kind:"color"},me={kind:"object"},ve={kind:"value"},ge={kind:"collator"},ye={kind:"formatted"},be={kind:"resolvedImage"};function we(e,t){return{kind:"array",itemType:e,N:t}}function _e(e){if("array"===e.kind){const t=_e(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Se=[le,de,pe,fe,he,ye,me,we(ve),be];function xe(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!xe(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Se)if(!xe(e,t))return null}return`Expected ${_e(e)} but found ${_e(t)} instead.`}function Ee(e,t){return t.some(t=>t.kind===e.kind)}function Te(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}var Me,Ce={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ie(e){return(e=Math.round(e))<0?0:e>255?255:e}function Le(e){return Ie("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function ke(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function ze(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{Me={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in Ce)return Ce[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=ke(a.pop());case"rgb":return 3!==a.length?null:[Le(a[0]),Le(a[1]),Le(a[2]),s];case"hsla":if(4!==a.length)return null;s=ke(a.pop());case"hsl":if(3!==a.length)return null;var u=(parseFloat(a[0])%360+360)%360/360,c=ke(a[1]),l=ke(a[2]),d=l<=.5?l*(c+1):l+c-l*c,p=2*l-d;return[Ie(255*ze(p,d,u+1/3)),Ie(255*ze(p,d,u)),Ie(255*ze(p,d,u-1/3)),s];default:return null}}return null}}catch(e){}class Ae{constructor(e,t,n,r=1){this.r=e,this.g=t,this.b=n,this.a=r}static parse(e){if(!e)return;if(e instanceof Ae)return e;if("string"!=typeof e)return;const t=Me(e);return t?new Ae(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}}Ae.black=new Ae(0,0,0,1),Ae.white=new Ae(1,1,1,1),Ae.transparent=new Ae(0,0,0,0),Ae.red=new Ae(1,0,0,1);class Pe{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Oe{constructor(e,t,n,r,i){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class De{constructor(e){this.sections=e}static fromString(e){return new De([new Oe(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof De?e:De.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class Ne{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Ne({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Re(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function je(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Ae)return!0;if(e instanceof Pe)return!0;if(e instanceof De)return!0;if(e instanceof Ne)return!0;if(Array.isArray(e)){for(const t of e)if(!je(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!je(e[t]))return!1;return!0}return!1}function Fe(e){if(null===e)return le;if("string"==typeof e)return pe;if("boolean"==typeof e)return fe;if("number"==typeof e)return de;if(e instanceof Ae)return he;if(e instanceof Pe)return ge;if(e instanceof De)return ye;if(e instanceof Ne)return be;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=Fe(t);if(n){if(n===e)continue;n=ve;break}n=e}return we(n||ve,t)}return me}function Be(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Ae||e instanceof De||e instanceof Ne?e.toString():JSON.stringify(e)}class He{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!je(e[1]))return t.error("invalid value");const n=e[1];let r=Fe(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new He(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Ae?["rgba"].concat(this.value.toArray()):this.value instanceof De?this.value.serialize():this.value}}class Ve{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const $e={string:pe,number:de,boolean:fe,object:me};class Ue{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in $e)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=$e[n],r++}else i=ve;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=we(i,o)}else n=$e[i];const o=[];for(;re.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map(e=>e.serialize()))}}class qe{constructor(e){this.type=ye,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=e.length-1;++n){const o=e[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let e=null;if(o["font-scale"]&&!(e=t.parse(o["font-scale"],1,de)))return null;let n=null;if(o["text-font"]&&!(n=t.parse(o["text-font"],1,we(pe))))return null;let a=null;if(o["text-color"]&&!(a=t.parse(o["text-color"],1,he)))return null;const s=r[r.length-1];s.scale=e,s.font=n,s.textColor=a}else{const o=t.parse(e[n],1,ve);if(!o)return null;const a=o.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new qe(r)}evaluate(e){return new De(this.sections.map(t=>{const n=t.content.evaluate(e);return Fe(n)===be?new Oe("",n,null,null,null):new Oe(Be(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Ye{constructor(e){this.type=be,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,pe);return n?new Ye(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Ne.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Ke={"to-boolean":fe,"to-color":he,"to-number":de,"to-string":pe};class Ge{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const r=Ke[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Re(t[0],t[1],t[2],t[3])))return new Ae(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Ve(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(null===(t=n.evaluate(e)))return 0;const r=Number(t);if(!isNaN(r))return r}throw new Ve(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?De.fromString(Be(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Ne.fromString(Be(this.args[0].evaluate(e))):Be(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new qe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ye(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}const Je=["Unknown","Point","LineString","Polygon"];class We{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Je[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Ae.parse(e)),t}}class Qe{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const n=e[0],r=Qe.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=o.filter(([t])=>!Array.isArray(t)||t.length===e.length-1);let s=null;for(const[r,o]of a){s=new wt(t.registry,t.path,null,t.scope);const a=[];let u=!1;for(let t=1;t{return t=e,Array.isArray(t)?`(${t.map(_e).join(", ")})`:`(${_e(t.type)}...)`;var t}).join(" | "),r=[];for(let n=1;n=t[2]||e[1]<=t[1]||e[3]>=t[3])}function nt(e,t){const n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,i=Math.pow(2,t.z);return[Math.round(n*i*Ze),Math.round(r*i*Ze)]}function rt(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function it(e,t){let n=!1;for(let a=0,s=t.length;a(r=e)[1]!=(o=s[t+1])[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function ot(e,t){for(let n=0;n0&&s<0||a<0&&s>0}function st(e,t,n){for(const c of n)for(let n=0;nn[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}et(t,e)}function ft(e,t,n,r){const i=Math.pow(2,r.z)*Ze,o=[r.x*Ze,r.y*Ze],a=[];for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];pt(r,t,n,i),a.push(r)}return a}function ht(e,t,n,r){const i=Math.pow(2,r.z)*Ze,o=[r.x*Ze,r.y*Ze],a=[];for(const n of e){const e=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];et(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)pt(r,t,n,i)}var s;return a}class mt{constructor(e,t){this.type=fe,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(je(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!vt(e)&&(t=!1)}),t}function gt(e){if(e instanceof Qe&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!gt(e)&&(t=!1)}),t}function yt(e,t){if(e instanceof Qe&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild(e=>{n&&!yt(e,t)&&(n=!1)}),n}class bt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new bt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class wt{constructor(e,t=[],n,r=new ce,i=[]){this.registry=e,this.path=t,this.key=t.map(e=>`[${e}]`).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(e,t,n,r,i={}){return t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new Ue(t,[e]):"coerce"===n?new Ge(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,i=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof He)&&"resolvedImage"!==r.type.kind&&function e(t){if(t instanceof bt)return e(t.boundExpression);if(t instanceof Qe&&"error"===t.name)return!1;if(t instanceof Xe)return!1;if(t instanceof mt)return!1;const n=t instanceof Ge||t instanceof Ue;let r=!0;return t.eachChild(t=>{r=n?r&&e(t):r&&t instanceof He}),!!r&&vt(t)&&yt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(r)){const t=new We;try{r=new He(r.type,r.evaluate(t))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new wt(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new ue(n,e))}checkSubtype(e,t){const n=xe(e,t);return n&&this.error(n),n}}function _t(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(r=e[s=Math.floor((o+a)/2)],i=e[s+1],r<=t){if(s===n||tt))throw new Ve("Input is not a number.");a=s-1}return 0}class St{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,de);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let n=1;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,u,i);if(!c)return null;i=i||c.type,r.push([o,c])}return new St(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[_t(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}function xt(e,t,n){return e*(1-n)+t*n}var Et=Object.freeze({__proto__:null,number:xt,color:function(e,t,n){return new Ae(xt(e.r,t.r,n),xt(e.g,t.g,n),xt(e.b,t.b,n),xt(e.a,t.a,n))},array:function(e,t,n){return e.map((e,r)=>xt(e,t[r],n))}});const Tt=.95047,Mt=1.08883,Ct=4/29,It=6/29,Lt=3*It*It,kt=Math.PI/180,zt=180/Math.PI;function At(e){return e>.008856451679035631?Math.pow(e,1/3):e/Lt+Ct}function Pt(e){return e>It?e*e*e:Lt*(e-Ct)}function Ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Nt(e){const t=Dt(e.r),n=Dt(e.g),r=Dt(e.b),i=At((.4124564*t+.3575761*n+.1804375*r)/Tt),o=At((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-At((.0193339*t+.119192*n+.9503041*r)/Mt)),alpha:e.a}}function Rt(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Pt(t),n=Tt*Pt(n),r=Mt*Pt(r),new Ae(Ot(3.2404542*n-1.5371385*t-.4985314*r),Ot(-.969266*n+1.8760108*t+.041556*r),Ot(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}const jt={forward:Nt,reverse:Rt,interpolate:function(e,t,n){return{l:xt(e.l,t.l,n),a:xt(e.a,t.a,n),b:xt(e.b,t.b,n),alpha:xt(e.alpha,t.alpha,n)}}},Ft={forward:function(e){const{l:t,a:n,b:r}=Nt(e),i=Math.atan2(r,n)*zt;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*kt,n=e.c;return Rt({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:function(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}(e.h,t.h,n),c:xt(e.c,t.c,n),l:xt(e.l,t.l,n),alpha:xt(e.alpha,t.alpha,n)}}};var Bt=Object.freeze({__proto__:null,lab:jt,hcl:Ft});class Ht{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,n,r,i){let o=0;if("exponential"===e.name)o=Vt(n,e.base,r,i);else if("linear"===e.name)o=Vt(n,1,r,i);else if("cubic-bezier"===e.name){const a=e.controlPoints;o=new t(a[0],a[1],a[2],a[3]).solve(Vt(n,1,r,i))}return o}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(i=t.parse(i,2,de)))return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=he:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(r,u,s);if(!c)return null;s=s||c.type,a.push([n,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new Ht(s,n,r,i,a):t.error(`Type ${_e(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=_t(t,r),a=Ht.interpolationFactor(this.interpolation,r,t[o],t[o+1]),s=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Et[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?Ft.reverse(Ft.interpolate(Ft.forward(s),Ft.forward(u),a)):jt.reverse(jt.interpolate(jt.forward(s),jt.forward(u),a))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;exe(r,e.type));return new $t(o?ve:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args)if(r++,(n=i.evaluate(e))&&n instanceof Ne&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null!==n)break;return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Ut{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r=n.length)throw new Ve(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new Ve(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Yt{constructor(e,t){this.type=fe,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ve),r=t.parse(e[2],2,ve);return n&&r?Ee(n.type,[fe,pe,de,le,ve])?new Yt(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${_e(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Te(t,["boolean","string","number","null"]))throw new Ve(`Expected first argument to be of type boolean, string, number or null, but found ${_e(Fe(t))} instead.`);if(!Te(n,["string","array"]))throw new Ve(`Expected second argument to be of type array or string, but found ${_e(Fe(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Kt{constructor(e,t,n){this.type=de,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ve),r=t.parse(e[2],2,ve);if(!n||!r)return null;if(!Ee(n.type,[fe,pe,de,le,ve]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${_e(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,de);return i?new Kt(n,r,i):null}return new Kt(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Te(t,["boolean","string","number","null"]))throw new Ve(`Expected first argument to be of type boolean, string, number or null, but found ${_e(Fe(t))} instead.`);if(!Te(n,["string","array"]))throw new Ve(`Expected second argument to be of type array or string, but found ${_e(Fe(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Gt{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let a=2;aNumber.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,Fe(e)))return null}else n=Fe(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const l=t.parse(u,a,r);if(!l)return null;r=r||l.type,o.push(l)}const a=t.parse(e[1],1,ve);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new Gt(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(Fe(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of n)e.push(1===r.length?i(r[0]):r.map(i)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}class Jt{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let i=1;it.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Wt{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ve),r=t.parse(e[2],2,de);if(!n||!r)return null;if(!Ee(n.type,[we(ve),pe,ve]))return t.error(`Expected first argument to be of type array or string, but found ${_e(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,de);return i?new Wt(n.type,n,r,i):null}return new Wt(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Te(t,["string","array"]))throw new Ve(`Expected first argument to be of type array or string, but found ${_e(Fe(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Qt(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Xt(e,t,n,r){return 0===r.compare(t,n)}function Zt(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=fe,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,ve);if(!o)return null;if(!Qt(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${_e(o.type)}'.`);let a=t.parse(e[2],2,ve);if(!a)return null;if(!Qt(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${_e(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${_e(o.type)}' and '${_e(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Ue(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Ue(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,ge)))return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=Fe(o),n=Fe(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new Ve(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=Fe(o),n=Fe(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const en=Zt("==",function(e,t,n){return t===n},Xt),tn=Zt("!=",function(e,t,n){return t!==n},function(e,t,n,r){return!Xt(0,t,n,r)}),nn=Zt("<",function(e,t,n){return t",function(e,t,n){return t>n},function(e,t,n,r){return r.compare(t,n)>0}),on=Zt("<=",function(e,t,n){return t<=n},function(e,t,n,r){return r.compare(t,n)<=0}),an=Zt(">=",function(e,t,n){return t>=n},function(e,t,n,r){return r.compare(t,n)>=0});class sn{constructor(e,t,n,r,i){this.type=pe,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,de);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&!(i=t.parse(r.locale,1,pe)))return null;let o=null;if(r.currency&&!(o=t.parse(r.currency,1,pe)))return null;let a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,de)))return null;let s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,de))?null:new sn(n,i,o,a,s)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class un{constructor(e){this.type=de,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${_e(n.type)} instead.`):new un(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ve(`Expected value to be of type string or array, but found ${_e(Fe(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}const cn={"==":en,"!=":tn,">":rn,"<":nn,">=":an,"<=":on,array:Ue,at:qt,boolean:Ue,case:Jt,coalesce:$t,collator:Xe,format:qe,image:Ye,in:Yt,"index-of":Kt,interpolate:Ht,"interpolate-hcl":Ht,"interpolate-lab":Ht,length:un,let:Ut,literal:He,match:Gt,number:Ue,"number-format":sn,object:Ue,slice:Wt,step:St,string:Ue,"to-boolean":Ge,"to-color":Ge,"to-number":Ge,"to-string":Ge,var:bt,within:mt};function ln(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=Re(t,n,r,o);if(a)throw new Ve(a);return new Ae(t/255*o,n/255*o,r/255*o,o)}function dn(e,t){return e in t}function pn(e,t){const n=t[e];return void 0===n?null:n}function fn(e){return{type:e}}function hn(e){return{result:"success",value:e}}function mn(e){return{result:"error",value:e}}function vn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function gn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function yn(e){return!!e.expression&&e.expression.interpolated}function bn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function wn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function _n(e){return e}function Sn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function xn(e,t,n,r,i){return Sn(typeof n===i?r[n]:void 0,e.default,t.default)}function En(e,t,n){if("number"!==bn(n))return Sn(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];const i=_t(e.stops.map(e=>e[0]),n);return e.stops[i][1]}function Tn(e,t,n){const r=void 0!==e.base?e.base:1;if("number"!==bn(n))return Sn(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const o=_t(e.stops.map(e=>e[0]),n),a=function(e,t,n,r){const i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],u=e.stops[o+1][1];let c=Et[t.type]||_n;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Bt[e.colorSpace];c=((e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),a)))}return"function"==typeof s.evaluate?{evaluate(...e){const t=s.evaluate.apply(void 0,e),n=u.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==n)return c(t,n,a)}}:c(s,u,a)}function Mn(e,t,n){return"color"===t.type?n=Ae.parse(n):"formatted"===t.type?n=De.fromString(n.toString()):"resolvedImage"===t.type?n=Ne.fromString(n.toString()):bn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Sn(n,e.default,t.default)}Qe.register(cn,{error:[{kind:"error"},[pe],(e,[t])=>{throw new Ve(t.evaluate(e))}],typeof:[pe,[ve],(e,[t])=>_e(Fe(t.evaluate(e)))],"to-rgba":[we(de,4),[he],(e,[t])=>t.evaluate(e).toArray()],rgb:[he,[de,de,de],ln],rgba:[he,[de,de,de,de],ln],has:{type:fe,overloads:[[[pe],(e,[t])=>dn(t.evaluate(e),e.properties())],[[pe,me],(e,[t,n])=>dn(t.evaluate(e),n.evaluate(e))]]},get:{type:ve,overloads:[[[pe],(e,[t])=>pn(t.evaluate(e),e.properties())],[[pe,me],(e,[t,n])=>pn(t.evaluate(e),n.evaluate(e))]]},"feature-state":[ve,[pe],(e,[t])=>pn(t.evaluate(e),e.featureState||{})],properties:[me,[],e=>e.properties()],"geometry-type":[pe,[],e=>e.geometryType()],id:[ve,[],e=>e.id()],zoom:[de,[],e=>e.globals.zoom],"heatmap-density":[de,[],e=>e.globals.heatmapDensity||0],"line-progress":[de,[],e=>e.globals.lineProgress||0],accumulated:[ve,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[de,fn(de),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[de,fn(de),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:de,overloads:[[[de,de],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[de],(e,[t])=>-t.evaluate(e)]]},"/":[de,[de,de],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[de,[de,de],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[de,[],()=>Math.LN2],pi:[de,[],()=>Math.PI],e:[de,[],()=>Math.E],"^":[de,[de,de],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[de,[de],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[de,[de],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[de,[de],(e,[t])=>Math.log(t.evaluate(e))],log2:[de,[de],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[de,[de],(e,[t])=>Math.sin(t.evaluate(e))],cos:[de,[de],(e,[t])=>Math.cos(t.evaluate(e))],tan:[de,[de],(e,[t])=>Math.tan(t.evaluate(e))],asin:[de,[de],(e,[t])=>Math.asin(t.evaluate(e))],acos:[de,[de],(e,[t])=>Math.acos(t.evaluate(e))],atan:[de,[de],(e,[t])=>Math.atan(t.evaluate(e))],min:[de,fn(de),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[de,fn(de),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[de,[de],(e,[t])=>Math.abs(t.evaluate(e))],round:[de,[de],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[de,[de],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[de,[de],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[fe,[pe,ve],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[fe,[ve],(e,[t])=>e.id()===t.value],"filter-type-==":[fe,[pe],(e,[t])=>e.geometryType()===t.value],"filter-<":[fe,[pe,ve],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r{const n=e.id(),r=t.value;return typeof n==typeof r&&n":[fe,[pe,ve],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[fe,[ve],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[fe,[pe,ve],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[fe,[ve],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[fe,[pe,ve],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[fe,[ve],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[fe,[ve],(e,[t])=>t.value in e.properties()],"filter-has-id":[fe,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[fe,[we(pe)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[fe,[we(ve)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[fe,[pe,we(ve)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[fe,[pe,we(ve)],(e,[t,n])=>(function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1})(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:fe,overloads:[[[fe,fe],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[fn(fe),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:fe,overloads:[[[fe,fe],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[fn(fe),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[fe,[fe],(e,[t])=>!t.evaluate(e)],"is-supported-script":[fe,[pe],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[pe,[pe],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[pe,[pe],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[pe,fn(ve),(e,t)=>t.map(t=>Be(t.evaluate(e))).join("")],"resolved-locale":[pe,[ge],(e,[t])=>t.evaluate(e).resolvedLocale()]});class Cn{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new We,this._defaultValue=t?function(e){return"color"===e.type&&wn(e.default)?new Ae(0,0,0,0):"color"===e.type?Ae.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,i,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{const t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new Ve(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function In(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in cn}function Ln(e,t){const n=new wt(cn,[],t?function(e){const t={color:he,string:pe,number:de,enum:pe,boolean:fe,formatted:ye,resolvedImage:be};return"array"===e.type?we(t[e.value]||ve,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?hn(new Cn(r,t)):mn(n.errors)}class kn{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!gt(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class zn{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!gt(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?Ht.interpolationFactor(this.interpolationType,e,t,n):0}}function An(e,t){const n=Ln(e,t);if("error"===n.result)return n;const r=n.value.expression,i=vt(r);if(!i&&!vn(t))return mn([new ue("","data expressions not supported")]);const o=yt(r,["zoom"]);if(!o&&!gn(t))return mn([new ue("","zoom expressions not supported")]);const a=function e(t){let n=null;if(t instanceof Ut)n=e(t.result);else if(t instanceof $t){for(const r of t.args)if(n=e(r))break}else(t instanceof St||t instanceof Ht)&&t.input instanceof Qe&&"zoom"===t.input.name&&(n=t);return n instanceof ue||t.eachChild(t=>{const r=e(t);r instanceof ue?n=r:!n&&r?n=new ue("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new ue("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}(r);return a||o?a instanceof ue?mn([a]):a instanceof Ht&&!yn(t)?mn([new ue("",'"interpolate" expressions cannot be used with this property')]):hn(a?new zn(i?"camera":"composite",n.value,a.labels,a instanceof Ht?a.interpolation:void 0):new kn(i?"constant":"source",n.value)):mn([new ue("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Pn{constructor(e,t){this._parameters=e,this._specification=t,oe(this,function e(t,n){const r="color"===n.type,i=t.stops&&"object"==typeof t.stops[0][0],o=i||!(i||void 0!==t.property),a=t.type||(yn(n)?"exponential":"interval");if(r&&((t=oe({},t)).stops&&(t.stops=t.stops.map(e=>[e[0],Ae.parse(e[1])])),t.default=Ae.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!Bt[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let s,u,c;if("exponential"===a)s=Tn;else if("interval"===a)s=En;else if("categorical"===a){s=xn,u=Object.create(null);for(const e of t.stops)u[e[0]]=e[1];c=typeof t.stops[0][0]}else{if("identity"!==a)throw new Error(`Unknown function type "${a}"`);s=Mn}if(i){const r={},i=[];for(let e=0;ee[0]),evaluate:({zoom:e},r)=>Tn({stops:o,base:t.base},n,e).evaluate(e,r)}}if(o){const e="exponential"===a?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:e,interpolationFactor:Ht.interpolationFactor.bind(void 0,e),zoomStops:t.stops.map(e=>e[0]),evaluate:({zoom:e})=>s(t,n,e,u,c)}}return{kind:"source",evaluate(e,r){const i=r&&r.properties?r.properties[t.property]:void 0;return void 0===i?Sn(t.default,n.default):s(t,n,i,u,c)}}}(this._parameters,this._specification))}static deserialize(e){return new Pn(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function On(e){const t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec;let s=[];const u=bn(n);if("object"!==u)return[new re(t,n,`object expected, ${u} found`)];for(const e in n){const u=e.split(".")[0],c=r[u]||r["*"];let l;if(i[u])l=i[u];else if(r[u])l=or;else if(i["*"])l=i["*"];else{if(!r["*"]){s.push(new re(t,n[e],`unknown property "${e}"`));continue}l=or}s=s.concat(l({key:(t?`${t}.`:t)+e,value:n[e],valueSpec:c,style:o,styleSpec:a,object:n,objectKey:e},n))}for(const e in r)i[e]||r[e].required&&void 0===r[e].default&&void 0===n[e]&&s.push(new re(t,n,`missing required property "${e}"`));return s}function Dn(e){const t=e.value,n=e.valueSpec,r=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||or;if("array"!==bn(t))return[new re(o,t,`array expected, ${bn(t)} found`)];if(n.length&&t.length!==n.length)return[new re(o,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.lengthr.maximum?[new re(t,n,`${n} is greater than the maximum value ${r.maximum}`)]:[]}function Rn(e){const t=e.valueSpec,n=ae(e.value.type);let r,i,o,a={};const s="categorical"!==n&&void 0===e.value.property,u=!s,c="array"===bn(e.value.stops)&&"array"===bn(e.value.stops[0])&&"object"===bn(e.value.stops[0][0]),l=On({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===n)return[new re(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const r=e.value;return t=t.concat(Dn({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===bn(r)&&0===r.length&&t.push(new re(e.key,r,"array must have at least one stop")),t},default:function(e){return or({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&s&&l.push(new re(e.key,e.value,'missing required property "property"')),"identity"===n||e.value.stops||l.push(new re(e.key,e.value,'missing required property "stops"')),"exponential"===n&&e.valueSpec.expression&&!yn(e.valueSpec)&&l.push(new re(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!vn(e.valueSpec)?l.push(new re(e.key,e.value,"property functions not supported")):s&&!gn(e.valueSpec)&&l.push(new re(e.key,e.value,"zoom functions not supported"))),"categorical"!==n&&!c||void 0!==e.value.property||l.push(new re(e.key,e.value,'"property" property is required')),l;function d(e){let n=[];const r=e.value,s=e.key;if("array"!==bn(r))return[new re(s,r,`array expected, ${bn(r)} found`)];if(2!==r.length)return[new re(s,r,`array length 2 expected, length ${r.length} found`)];if(c){if("object"!==bn(r[0]))return[new re(s,r,`object expected, ${bn(r[0])} found`)];if(void 0===r[0].zoom)return[new re(s,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new re(s,r,"object stop key must have value")];if(o&&o>ae(r[0].zoom))return[new re(s,r[0].zoom,"stop zoom values must appear in ascending order")];ae(r[0].zoom)!==o&&(o=ae(r[0].zoom),i=void 0,a={}),n=n.concat(On({key:`${s}[0]`,value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Nn,value:p}}))}else n=n.concat(p({key:`${s}[0]`,value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return In(se(r[1]))?n.concat([new re(`${s}[1]`,r[1],"expressions are not allowed in function stops.")]):n.concat(or({key:`${s}[1]`,value:r[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function p(e,o){const s=bn(e.value),u=ae(e.value),c=null!==e.value?e.value:o;if(r){if(s!==r)return[new re(e.key,c,`${s} stop domain type must match previous stop domain type ${r}`)]}else r=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new re(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==n){let r=`number expected, ${s} found`;return vn(t)&&void 0===n&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new re(e.key,c,r)]}return"categorical"!==n||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==n&&"number"===s&&void 0!==i&&unew re(`${e.key}${t.key}`,e.value,t.message));const n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new re(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!gt(n))return[new re(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!gt(n))return[new re(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!yt(n,["zoom","feature-state"]))return[new re(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!vt(n))return[new re(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Fn(e){const t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(ae(n))&&i.push(new re(t,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(r.values).indexOf(ae(n))&&i.push(new re(t,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),i}function Bn(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Bn(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}const Hn={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Vn(e){if(null==e)return{filter:()=>!0,needGeometry:!1};Bn(e)||(e=Un(e));const t=Ln(e,Hn);if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,n,r)=>t.value.evaluate(e,n,{},r),needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let n=1;nt?1:0}function Un(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?qn(e[1],e[2],"=="):"!="===t?Gn(qn(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?qn(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(Un))):"all"===t?["all"].concat(e.slice(1).map(Un)):"none"===t?["all"].concat(e.slice(1).map(Un).map(Gn)):"in"===t?Yn(e[1],e.slice(2)):"!in"===t?Gn(Yn(e[1],e.slice(2))):"has"===t?Kn(e[1]):"!has"===t?Gn(Kn(e[1])):"within"!==t||e;var n}function qn(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function Yn(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort($n)]]:["filter-in-small",e,["literal",t]]}}function Kn(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Gn(e){return["!",e]}function Jn(e){return Bn(se(e.value))?jn(oe({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){const n=t.value,r=t.key;if("array"!==bn(n))return[new re(r,n,`array expected, ${bn(n)} found`)];const i=t.styleSpec;let o,a=[];if(n.length<1)return[new re(r,n,"filter array must have at least 1 element")];switch(a=a.concat(Fn({key:`${r}[0]`,value:n[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),ae(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===ae(n[1])&&a.push(new re(r,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&a.push(new re(r,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&("string"!==(o=bn(n[1]))&&a.push(new re(`${r}[1]`,n[1],`string expected, ${o} found`)));for(let e=2;e{e in n&&t.push(new re(r,n[e],`"${e}" is prohibited for ref layers`))}),i.layers.forEach(t=>{ae(t.id)===s&&(e=t)}),e?e.ref?t.push(new re(r,n.ref,"ref cannot reference another ref layer")):a=ae(e.type):t.push(new re(r,n.ref,`ref layer "${s}" not found`))}else if("background"!==a)if(n.source){const e=i.sources&&i.sources[n.source],o=e&&ae(e.type);e?"vector"===o&&"raster"===a?t.push(new re(r,n.source,`layer "${n.id}" requires a raster source`)):"raster"===o&&"raster"!==a?t.push(new re(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==a?t.push(new re(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==a||!n.paint||!n.paint["line-gradient"]||"geojson"===o&&e.lineMetrics||t.push(new re(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new re(r,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new re(r,n.source,`source "${n.source}" not found`))}else t.push(new re(r,n,'missing required property "source"'));return t=t.concat(On({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>or({key:`${r}.type`,value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"}),filter:Jn,layout:e=>On({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Xn(oe({layerType:a},e))}}),paint:e=>On({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Qn(oe({layerType:a},e))}})}}))}function er(e){const t=e.value,n=e.key,r=bn(t);return"string"!==r?[new re(n,t,`string expected, ${r} found`)]:[]}const tr={promoteId:function({key:e,value:t}){if("string"===bn(t))return er({key:e,value:t});{const n=[];for(const r in t)n.push(...er({key:`${e}.${r}`,value:t[r]}));return n}}};function nr(e){const t=e.value,n=e.key,r=e.styleSpec,i=e.style;if(!t.type)return[new re(n,t,'"type" is required')];const o=ae(t.type);let a;switch(o){case"vector":case"raster":case"raster-dem":return a=On({key:n,value:t,valueSpec:r[`source_${o.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:tr});case"geojson":if(a=On({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:tr}),t.cluster)for(const e in t.clusterProperties){const[r,i]=t.clusterProperties[e],o="string"==typeof r?[r,["accumulated"],["get",e]]:r;a.push(...jn({key:`${n}.${e}.map`,value:i,expressionContext:"cluster-map"})),a.push(...jn({key:`${n}.${e}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return a;case"video":return On({key:n,value:t,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return On({key:n,value:t,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new re(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Fn({key:`${n}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function rr(e){const t=e.value,n=e.styleSpec,r=n.light,i=e.style;let o=[];const a=bn(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new re("light",t,`object expected, ${a} found`)]);for(const e in t){const a=e.match(/^(.*)-transition$/);o=o.concat(a&&r[a[1]]&&r[a[1]].transition?or({key:e,value:t[e],valueSpec:n.transition,style:i,styleSpec:n}):r[e]?or({key:e,value:t[e],valueSpec:r[e],style:i,styleSpec:n}):[new re(e,t[e],`unknown property "${e}"`)])}return o}const ir={"*":()=>[],array:Dn,boolean:function(e){const t=e.value,n=e.key,r=bn(t);return"boolean"!==r?[new re(n,t,`boolean expected, ${r} found`)]:[]},number:Nn,color:function(e){const t=e.key,n=e.value,r=bn(n);return"string"!==r?[new re(t,n,`color expected, ${r} found`)]:null===Me(n)?[new re(t,n,`color expected, "${n}" found`)]:[]},constants:ie,enum:Fn,filter:Jn,function:Rn,layer:Zn,object:On,source:nr,light:rr,string:er,formatted:function(e){return 0===er(e).length?[]:jn(e)},resolvedImage:function(e){return 0===er(e).length?[]:jn(e)}};function or(e){const t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&wn(ae(t))?Rn(e):n.expression&&In(se(t))?jn(e):n.type&&ir[n.type]?ir[n.type](e):On(oe({},e,{valueSpec:n.type?r[n.type]:n}))}function ar(e){const t=e.value,n=e.key,r=er(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new re(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new re(n,t,'"glyphs" url must include a "{range}" token'))),r}function sr(e,t=ne){let n=[];return n=n.concat(or({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:ar,"*":()=>[]}})),e.constants&&(n=n.concat(ie({key:"constants",value:e.constants,style:e,styleSpec:t}))),ur(n)}function ur(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function cr(e){return function(...t){return ur(e.apply(this,t))}}sr.source=cr(nr),sr.light=cr(rr),sr.layer=cr(Zn),sr.filter=cr(Jn),sr.paintProperty=cr(Qn),sr.layoutProperty=cr(Xn);const lr=sr,dr=lr.light,pr=lr.paintProperty,fr=lr.layoutProperty;function hr(e,t){let n=!1;if(t&&t.length)for(const r of t)e.fire(new ee(new Error(r.message))),n=!0;return n}class mr{constructor(e,t,n){const r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;const i=new Int32Array(this.arrayBuffer);e=i[0],this.d=(t=i[1])+2*(n=i[2]);for(let e=0;e=c[u+0]&&r>=c[u+1])?(a[d]=!0,o.push(i[d])):a[d]=!1}}}}_forEachCell(e,t,n,r,i,o,a,s){const u=this._convertToCellCoord(e),c=this._convertToCellCoord(t),l=this._convertToCellCoord(n),d=this._convertToCellCoord(r);for(let p=u;p<=l;p++)for(let u=c;u<=d;u++){const c=this.d*u+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(u),this._convertFromCellCoord(p+1),this._convertFromCellCoord(u+1)))&&i.call(this,e,t,n,r,c,o,a,s))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const e=this.cells,t=3+this.cells.length+1+1;let n=0;for(let e=0;e=0)continue;const o=e[n];i[n]=vr[r].shallow.indexOf(n)>=0?o:br(o,t)}e instanceof Error&&(i.message=e.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(i.$name=r),i}throw new Error("can't serialize object of type "+typeof e)}function wr(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||yr(e)||x(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(wr);if("object"==typeof e){const t=e.$name||"Object";if(!vr[t])throw new Error(`can't deserialize unregistered class ${t}`);const{klass:n}=vr[t];if(!n)throw new Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);const r=Object.create(n.prototype);for(const n of Object.keys(e)){if("$name"===n)continue;const i=e[n];r[n]=vr[t].shallow.indexOf(n)>=0?i:wr(i)}return r}throw new Error("can't deserialize object of type "+typeof e)}class _r{constructor(){this.first=!0}update(e,t){const n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoome>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519};function xr(e){for(const t of e)if(Mr(t.charCodeAt(0)))return!0;return!1}function Er(e){for(const t of e)if(!Tr(t.charCodeAt(0)))return!1;return!0}function Tr(e){return!(Sr.Arabic(e)||Sr["Arabic Supplement"](e)||Sr["Arabic Extended-A"](e)||Sr["Arabic Presentation Forms-A"](e)||Sr["Arabic Presentation Forms-B"](e))}function Mr(e){return!(746!==e&&747!==e&&(e<4352||!(Sr["Bopomofo Extended"](e)||Sr.Bopomofo(e)||Sr["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Sr["CJK Compatibility Ideographs"](e)||Sr["CJK Compatibility"](e)||Sr["CJK Radicals Supplement"](e)||Sr["CJK Strokes"](e)||!(!Sr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Sr["CJK Unified Ideographs Extension A"](e)||Sr["CJK Unified Ideographs"](e)||Sr["Enclosed CJK Letters and Months"](e)||Sr["Hangul Compatibility Jamo"](e)||Sr["Hangul Jamo Extended-A"](e)||Sr["Hangul Jamo Extended-B"](e)||Sr["Hangul Jamo"](e)||Sr["Hangul Syllables"](e)||Sr.Hiragana(e)||Sr["Ideographic Description Characters"](e)||Sr.Kanbun(e)||Sr["Kangxi Radicals"](e)||Sr["Katakana Phonetic Extensions"](e)||Sr.Katakana(e)&&12540!==e||!(!Sr["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Sr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Sr["Unified Canadian Aboriginal Syllabics"](e)||Sr["Unified Canadian Aboriginal Syllabics Extended"](e)||Sr["Vertical Forms"](e)||Sr["Yijing Hexagram Symbols"](e)||Sr["Yi Syllables"](e)||Sr["Yi Radicals"](e))))}function Cr(e){return!(Mr(e)||function(e){return!!(Sr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Sr["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Sr["Letterlike Symbols"](e)||Sr["Number Forms"](e)||Sr["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Sr["Control Pictures"](e)&&9251!==e||Sr["Optical Character Recognition"](e)||Sr["Enclosed Alphanumerics"](e)||Sr["Geometric Shapes"](e)||Sr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Sr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Sr["CJK Symbols and Punctuation"](e)||Sr.Katakana(e)||Sr["Private Use Area"](e)||Sr["CJK Compatibility Forms"](e)||Sr["Small Form Variants"](e)||Sr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Ir(e){return e>=1424&&e<=2303||Sr["Arabic Presentation Forms-A"](e)||Sr["Arabic Presentation Forms-B"](e)}function Lr(e,t){return!(!t&&Ir(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Sr.Khmer(e))}function kr(e){for(const t of e)if(Ir(t.charCodeAt(0)))return!0;return!1}const zr="deferred",Ar="loading",Pr="loaded";let Or=null,Dr="unavailable",Nr=null;const Rr=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Dr="error"),Or&&Or(e)};function jr(){Fr.fire(new Z("pluginStateChange",{pluginStatus:Dr,pluginURL:Nr}))}const Fr=new te,Br=function(){return Dr},Hr=function(){if(Dr!==zr||!Nr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Dr=Ar,jr(),Nr&&q({url:Nr},e=>{e?Rr(e):(Dr=Pr,jr())})},Vr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Dr===Pr||null!=Vr.applyArabicShaping,isLoading:()=>Dr===Ar,setState(e){Dr=e.pluginStatus,Nr=e.pluginURL},isParsed:()=>null!=Vr.applyArabicShaping&&null!=Vr.processBidirectionalText&&null!=Vr.processStyledBidirectionalText,getPluginURL:()=>Nr};class $r{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _r,this.transition={})}isSupportedScript(e){return function(e,t){for(const n of e)if(!Lr(n.charCodeAt(0),t))return!1;return!0}(e,Vr.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}}}class Ur{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(wn(e))return new Pn(e,t);if(In(e)){const n=An(e,t);if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));return n.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=Ae.parse(e)),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class qr{constructor(e){this.property=e,this.value=new Ur(e,void 0)}transitioned(e,t){return new Kr(this.property,this.value,t,s({},e.transition,this.transition),e.now)}untransitioned(){return new Kr(this.property,this.value,null,{},0)}}class Yr{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return p(this._values[e].value.value)}setValue(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new qr(this._values[e].property)),this._values[e].value=new Ur(this._values[e].property,null===t?void 0:p(t))}getTransition(e){return p(this._values[e].transition)}setTransition(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new qr(this._values[e].property)),this._values[e].transition=p(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){const n=new Gr(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(e,t._values[r]);return n}untransitioned(){const e=new Gr(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Kr{constructor(e,t,n,r,i){this.property=e,this.value=t,this.begin=i+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const r=e.now||0,i=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(a))}}return i}}class Gr{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){const r=new Qr(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(e,t,n);return r}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Jr{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return p(this._values[e].value)}setValue(e,t){this._values[e]=new Ur(this._values[e].property,null===t?void 0:p(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){const r=new Qr(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(e,t,n);return r}}class Wr{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)}}class Qr{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Xr{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,n){const r=Et[this.specification.type];return r?r(e,t,n):e}}class Zr{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,r){return new Wr(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)}interpolate(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Wr(this,{kind:"constant",value:void 0},e.parameters);const r=Et[this.specification.type];return r?new Wr(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e}evaluate(e,t,n,r,i,o){return"constant"===e.kind?e.value:e.evaluate(t,n,r,i,o)}}class ei extends Zr{possiblyEvaluate(e,t,n,r){if(void 0===e.value)return new Wr(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const i=e.expression.evaluate(t,null,{},n,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(o,o,o,t);return new Wr(this,{kind:"constant",value:a},t)}if("camera"===e.expression.kind){const n=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new Wr(this,{kind:"constant",value:n},t)}return new Wr(this,e.expression,t)}evaluate(e,t,n,r,i,o){if("source"===e.kind){const a=e.evaluate(t,n,r,i,o);return this._calculate(a,a,a,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class ti{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){const i=e.expression.evaluate(t,null,{},n,r);return this._calculate(i,i,i,t)}return this._calculate(e.expression.evaluate(new $r(Math.floor(t.zoom-1),t)),e.expression.evaluate(new $r(Math.floor(t.zoom),t)),e.expression.evaluate(new $r(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class ni{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)}interpolate(){return!1}}class ri{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const t in e){const n=e[t];n.specification.overridable&&this.overridableProperties.push(t);const r=this.defaultPropertyValues[t]=new Ur(n,void 0),i=this.defaultTransitionablePropertyValues[t]=new qr(n);this.defaultTransitioningPropertyValues[t]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}}}gr("DataDrivenProperty",Zr),gr("DataConstantProperty",Xr),gr("CrossFadedDataDrivenProperty",ei),gr("CrossFadedProperty",ti),gr("ColorRampProperty",ni);const ii="-transition";class oi extends te{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new Jr(t.layout)),t.paint)){this._transitionablePaint=new Yr(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Qr(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,n={}){null!=t&&this._validate(fr,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return e.endsWith(ii)?this._transitionablePaint.getTransition(e.slice(0,-ii.length)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,n={}){if(null!=t&&this._validate(pr,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if(e.endsWith(ii))return this._transitionablePaint.setTransition(e.slice(0,-ii.length),t||void 0),!1;{const n=this._transitionablePaint._values[e],r="cross-faded-data-driven"===n.property.specification["property-type"],i=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const a=this._transitionablePaint._values[e].value;return a.isDataDriven()||i||r||this._handleOverridablePaintPropertyUpdate(e,o,a)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),d(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}_validate(e,t,n,r,i={}){return(!i||!1!==i.validate)&&hr(this,e.call(lr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:ne,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Wr&&vn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}}const ai={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class si{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ui{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ci(e,t=1){let n=0,r=0;return{members:e.map(e=>{const i=ai[e.type].BYTES_PER_ELEMENT,o=n=li(n,Math.max(t,i)),a=e.components||1;return r=Math.max(r,i),n+=i*a,{name:e.name,type:e.type,components:a,offset:o}}),size:li(n,Math.max(r,t)),alignment:t}}function li(e,t){return Math.ceil(e/t)*t}class di extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e}}di.prototype.bytesPerElement=4,gr("StructArrayLayout2i4",di);class pi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e}}pi.prototype.bytesPerElement=8,gr("StructArrayLayout4i8",pi);class fi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e}}fi.prototype.bytesPerElement=12,gr("StructArrayLayout2i4i12",fi);class hi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=4*e,u=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=i,this.uint8[u+6]=o,this.uint8[u+7]=a,e}}hi.prototype.bytesPerElement=8,gr("StructArrayLayout2i4ub8",hi);class mi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e}}mi.prototype.bytesPerElement=8,gr("StructArrayLayout2f8",mi);class vi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,u,c){const l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s,u,c)}emplace(e,t,n,r,i,o,a,s,u,c,l){const d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=u,this.uint16[d+8]=c,this.uint16[d+9]=l,e}}vi.prototype.bytesPerElement=20,gr("StructArrayLayout10ui20",vi);class gi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,u,c,l,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,i,o,a,s,u,c,l,d)}emplace(e,t,n,r,i,o,a,s,u,c,l,d,p){const f=12*e;return this.int16[f+0]=t,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=i,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=u,this.int16[f+8]=c,this.int16[f+9]=l,this.int16[f+10]=d,this.int16[f+11]=p,e}}gi.prototype.bytesPerElement=24,gr("StructArrayLayout4i4ui4i24",gi);class yi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e}}yi.prototype.bytesPerElement=12,gr("StructArrayLayout3f12",yi);class bi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}bi.prototype.bytesPerElement=4,gr("StructArrayLayout1ul4",bi);class wi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,u){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,i,o,a,s,u)}emplace(e,t,n,r,i,o,a,s,u,c){const l=10*e,d=5*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=i,this.int16[l+4]=o,this.int16[l+5]=a,this.uint32[d+3]=s,this.uint16[l+8]=u,this.uint16[l+9]=c,e}}wi.prototype.bytesPerElement=20,gr("StructArrayLayout6i1ul2ui20",wi);class _i extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e}}_i.prototype.bytesPerElement=12,gr("StructArrayLayout2i2i2i12",_i);class Si extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,e}}Si.prototype.bytesPerElement=16,gr("StructArrayLayout2f1f2i16",Si);class xi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e}}xi.prototype.bytesPerElement=12,gr("StructArrayLayout2ub2f12",xi);class Ei extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e}}Ei.prototype.bytesPerElement=6,gr("StructArrayLayout3ui6",Ei);class Ti extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v)}emplace(e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g){const y=24*e,b=12*e,w=48*e;return this.int16[y+0]=t,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[y+10]=u,this.uint16[y+11]=c,this.uint16[y+12]=l,this.float32[b+7]=d,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=h,this.uint8[w+38]=m,this.uint32[b+10]=v,this.int16[y+22]=g,e}}Ti.prototype.bytesPerElement=48,gr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ti);class Mi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E,T,M,C){const I=this.length;return this.resize(I+1),this.emplace(I,e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E,T,M,C)}emplace(e,t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E,T,M,C,I){const L=34*e,k=17*e;return this.int16[L+0]=t,this.int16[L+1]=n,this.int16[L+2]=r,this.int16[L+3]=i,this.int16[L+4]=o,this.int16[L+5]=a,this.int16[L+6]=s,this.int16[L+7]=u,this.uint16[L+8]=c,this.uint16[L+9]=l,this.uint16[L+10]=d,this.uint16[L+11]=p,this.uint16[L+12]=f,this.uint16[L+13]=h,this.uint16[L+14]=m,this.uint16[L+15]=v,this.uint16[L+16]=g,this.uint16[L+17]=y,this.uint16[L+18]=b,this.uint16[L+19]=w,this.uint16[L+20]=_,this.uint16[L+21]=S,this.uint16[L+22]=x,this.uint32[k+12]=E,this.float32[k+13]=T,this.float32[k+14]=M,this.float32[k+15]=C,this.float32[k+16]=I,e}}Mi.prototype.bytesPerElement=68,gr("StructArrayLayout8i15ui1ul4f68",Mi);class Ci extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Ci.prototype.bytesPerElement=4,gr("StructArrayLayout1f4",Ci);class Ii extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e}}Ii.prototype.bytesPerElement=6,gr("StructArrayLayout3i6",Ii);class Li extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=4*e;return this.uint32[2*e+0]=t,this.uint16[i+2]=n,this.uint16[i+3]=r,e}}Li.prototype.bytesPerElement=8,gr("StructArrayLayout1ul2ui8",Li);class ki extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e}}ki.prototype.bytesPerElement=4,gr("StructArrayLayout2ui4",ki);class zi extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}zi.prototype.bytesPerElement=2,gr("StructArrayLayout1ui2",zi);class Ai extends ui{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e}}Ai.prototype.bytesPerElement=16,gr("StructArrayLayout4f16",Ai);class Pi extends si{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new T(this.anchorPointX,this.anchorPointY)}}Pi.prototype.size=20;class Oi extends wi{get(e){return new Pi(this,e)}}gr("CollisionBoxArray",Oi);class Di extends si{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Di.prototype.size=48;class Ni extends Ti{get(e){return new Di(this,e)}}gr("PlacedSymbolArray",Ni);class Ri extends si{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get textOffset0(){return this._structArray.float32[this._pos4+14]}get textOffset1(){return this._structArray.float32[this._pos4+15]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+16]}}Ri.prototype.size=68;class ji extends Mi{get(e){return new Ri(this,e)}}gr("SymbolInstanceArray",ji);class Fi extends Ci{getoffsetX(e){return this.float32[1*e+0]}}gr("GlyphOffsetArray",Fi);class Bi extends Ii{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}gr("SymbolLineVertexArray",Bi);class Hi extends si{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Hi.prototype.size=8;class Vi extends Li{get(e){return new Hi(this,e)}}gr("FeatureIndexArray",Vi);class $i extends di{}class Ui extends di{}class qi extends fi{}class Yi extends hi{}class Ki extends mi{}class Gi extends vi{}class Ji extends gi{}class Wi extends yi{}class Qi extends bi{}class Xi extends _i{}class Zi extends xi{}class eo extends Ei{}class to extends ki{}const no=ci([{name:"a_pos",components:2,type:"Int16"}],4),{members:ro}=no;class io{constructor(e=[]){this.segments=e}prepareSegment(e,t,n,r){let i=this.segments[this.segments.length-1];return e>io.MAX_VERTEX_ARRAY_LENGTH&&h(`Max vertices per segment is ${io.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!i||i.vertexLength+e>io.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,r){return new io([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])}}function oo(e,t){return 256*(e=o(Math.floor(e),0,255))+o(Math.floor(t),0,255)}io.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,gr("SegmentVector",io);const ao=ci([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var so={exports:{}},uo={exports:{}};uo.exports=function(e,t){var n,r,i,o,a,s,u,c;for(r=e.length-(n=3&e.length),i=t,a=3432918353,s=461845907,c=0;c>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0};var co={exports:{}};co.exports=function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0};var lo=uo.exports,po=co.exports;so.exports=lo,so.exports.murmur3=lo,so.exports.murmur2=po;var fo=so.exports;class ho{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,n,r){this.ids.push(mo(e)),this.positions.push(t,n,r)}getPositions(e){const t=mo(e);let n=0,r=this.ids.length-1;for(;n>1;this.ids[e]>=t?r=e:n=e+1}const i=[];for(;this.ids[n]===t;)i.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return i}static serialize(e,t){const n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,i){for(;r>1];let a=r-1,s=i+1;for(;;){do{a++}while(t[a]o);if(a>=s)break;vo(t,a,s),vo(n,3*a,3*s),vo(n,3*a+1,3*s+1),vo(n,3*a+2,3*s+2)}s-r`u_${e}`),this.type=n}setUniform(e,t,n){e.set(n.constantOr(this.value))}getBinding(e,t,n){return"color"===this.type?new wo(e,t):new yo(e,t)}}class Eo{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setUniform(e,t,n,r){const i="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;i&&e.set(i)}getBinding(e,t,n){return"u_pattern"===n.substr(0,9)?new bo(e,t):new yo(e,t)}}class To{constructor(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(e,t,n,r,i){const o=this.paintVertexArray.length,a=this.expression.evaluate(new $r(0),t,{},r,[],i);this.paintVertexArray.resize(e),this._setPaintValue(o,e,a)}updatePaintArray(e,t,n,r){const i=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,i)}_setPaintValue(e,t,n){if("color"===this.type){const r=So(n);for(let n=e;n`u_${e}_t`),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,t,n,r,i){const o=this.expression.evaluate(new $r(this.zoom),t,{},r,[],i),a=this.expression.evaluate(new $r(this.zoom+1),t,{},r,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,o,a)}updatePaintArray(e,t,n,r){const i=this.expression.evaluate({zoom:this.zoom},n,r),o=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,i,o)}_setPaintValue(e,t,n,r){if("color"===this.type){const i=So(n),o=So(r);for(let n=e;n`#define HAS_UNIFORM_${e}`))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof To||n instanceof Mo)for(let t=0;t!0)){this.programConfigurations={};for(const r of e)this.programConfigurations[r.id]=new Io(r,t,n);this.needsUpload=!1,this._featureMap=new ho,this._bufferOffset=0}populatePaintArrays(e,t,n,r,i,o){for(const n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,r,i,o);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,r){for(const i of n)this.needsUpload=this.programConfigurations[i.id].updatePaintArrays(e,this._featureMap,t,i,r)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function ko(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}function zo(e,t,n){const r={color:{source:mi,composite:Ai},number:{source:Ci,composite:mi}},i=function(e){return{"line-pattern":{source:Gi,composite:Gi},"fill-pattern":{source:Gi,composite:Gi},"fill-extrusion-pattern":{source:Gi,composite:Gi}}[e]}(e);return i&&i[n]||r[t][n]}gr("ConstantBinder",xo),gr("CrossFadedConstantBinder",Eo),gr("SourceExpressionBinder",To),gr("CrossFadedCompositeBinder",Co),gr("CompositeExpressionBinder",Mo),gr("ProgramConfiguration",Io,{omit:["_buffers"]}),gr("ProgramConfigurationSet",Lo);var Ao=8192;const Po=Math.pow(2,14)-1,Oo=-Po-1;function Do(e){const t=Ao/e.extent,n=e.loadGeometry();for(let e=0;en.x+1||an.y+1)&&h("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return n}function No(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Do(e):[]}}function Ro(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}class jo{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new $i,this.indexArray=new eo,this.segments=new io,this.programConfigurations=new Lo(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){const r=this.layers[0],i=[];let o=null,a=!1;"circle"===r.type&&(a=!(o=r.layout.get("circle-sort-key")).isConstant());for(const{feature:t,id:r,index:s,sourceLayerIndex:u}of e){const e=this.layers[0]._featureFilter.needGeometry,c=No(t,e);if(!this.layers[0]._featureFilter.filter(new $r(this.zoom),c,n))continue;const l=a?o.evaluate(c,{},n):void 0,d={id:r,properties:t.properties,type:t.type,sourceLayerIndex:u,index:s,geometry:e?c.geometry:Do(t),patterns:{},sortKey:l};i.push(d)}a&&i.sort((e,t)=>e.sortKey-t.sortKey);for(const r of i){const{geometry:i,index:o,sourceLayerIndex:a}=r,s=e[o].feature;this.addFeature(r,i,o,n),t.featureIndex.insert(s,i,o,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ro),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,r){for(const n of t)for(const t of n){const n=t.x,r=t.y;if(n<0||n>=Ao||r<0||r>=Ao)continue;const i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),o=i.vertexLength;Ro(this.layoutVertexArray,n,r,-1,-1),Ro(this.layoutVertexArray,n,r,1,-1),Ro(this.layoutVertexArray,n,r,1,1),Ro(this.layoutVertexArray,n,r,-1,1),this.indexArray.emplaceBack(o,o+1,o+2),this.indexArray.emplaceBack(o,o+3,o+2),i.vertexLength+=4,i.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)}}function Fo(e,t){for(let n=0;n1){if($o(e,t))return!0;for(let r=0;r1?n:n.sub(t)._mult(i)._add(t))}function Ko(e,t){let n,r,i,o=!1;for(let a=0;at.y!=i.y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o)}return o}function Go(e,t){let n=!1;for(let r=0,i=e.length-1;rt.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function Jo(e,t,n){const r=n[0],i=n[2];if(e.xi.x&&t.x>i.x||e.yi.y&&t.y>i.y)return!1;const o=m(e,t,n[0]);return o!==m(e,t,n[1])||o!==m(e,t,n[2])||o!==m(e,t,n[3])}function Wo(e,t,n){const r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function Qo(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Xo(e,t,n,r,i){if(!t[0]&&!t[1])return e;const o=T.convert(t)._mult(i);"viewport"===n&&o._rotate(-r);const a=[];for(let t=0;te.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const a=e.data,s=t.data;for(let u=0;u{t[e.evaluationKey]=o;const a=e.expression.evaluate(t);i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a)};if(e.clips)for(let t=0,i=0;t80*n){r=o=e[0],i=a=e[1];for(var h=n;ho&&(o=s),u>a&&(a=u);c=0!==(c=Math.max(o-r,a-i))?1/c:0}return xa(p,f,n,r,i,c),f}function _a(e,t,n,r,i){var o,a;if(i===qa(e,t,n,r)>0)for(o=t;o=t;o-=r)a=Va(o,e[o],e[o+1],a);return a&&Na(a,a.next)&&($a(a),a=a.next),a}function Sa(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Na(r,r.next)&&0!==Da(r.prev,r,r.next))r=r.next;else{if($a(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function xa(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=za(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);for(var s,u,c=e;e.prev!==e.next;)if(s=e.prev,u=e.next,o?Ta(e,r,i,o):Ea(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),$a(e),e=u.next,c=u.next;else if((e=u)===c){a?1===a?xa(e=Ma(Sa(e),t,n),t,n,r,i,o,2):2===a&&Ca(e,t,n,r,i,o):xa(Sa(e),t,n,r,i,o,1);break}}}function Ea(e){var t=e.prev,n=e,r=e.next;if(Da(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Pa(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Da(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Ta(e,t,n,r){var i=e.prev,o=e,a=e.next;if(Da(i,o,a)>=0)return!1;for(var s=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,c=za(i.x=c&&p&&p.z<=l;){if(d!==e.prev&&d!==e.next&&Pa(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Da(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&Pa(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Da(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=c;){if(d!==e.prev&&d!==e.next&&Pa(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Da(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=l;){if(p!==e.prev&&p!==e.next&&Pa(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Da(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function Ma(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Na(i,o)&&Ra(i,r,r.next,o)&&Ba(i,o)&&Ba(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),$a(r),$a(r.next),r=e=o),r=r.next}while(r!==e);return Sa(r)}function Ca(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Oa(a,s)){var u=Ha(a,s);return a=Sa(a,a.next),u=Sa(u,u.next),xa(a,t,n,r,i,o),void xa(u,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function Ia(e,t){return e.x-t.x}function La(e,t){var n=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x=r.x&&r.x>=l&&i!==r.x&&Pa(on.x||r.x===n.x&&ka(n,r)))&&(n=r,p=u)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var r=Ha(n,e),i=Sa(n,n.next);return Sa(r,r.next),t===n?i:t}function ka(e,t){return Da(e.prev,e,t.prev)<0&&Da(t.next,e,e.next)<0}function za(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Aa(e){var t=e,n=e;do{(t.x=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Oa(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Ra(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Ba(e,t)&&Ba(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Da(e.prev,e,t.prev)||Da(e,t.prev,t))||Na(e,t)&&Da(e.prev,e,e.next)>0&&Da(t.prev,t,t.next)>0)}function Da(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Na(e,t){return e.x===t.x&&e.y===t.y}function Ra(e,t,n,r){var i=Fa(Da(e,t,n)),o=Fa(Da(e,t,r)),a=Fa(Da(n,r,e)),s=Fa(Da(n,r,t));return i!==o&&a!==s||!(0!==i||!ja(e,n,t))||!(0!==o||!ja(e,r,t))||!(0!==a||!ja(n,e,r))||!(0!==s||!ja(n,t,r))}function ja(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Fa(e){return e>0?1:e<0?-1:0}function Ba(e,t){return Da(e.prev,e,e.next)<0?Da(e,t,e.next)>=0&&Da(e,e.prev,t)>=0:Da(e,t,e.prev)<0||Da(e,e.next,t)<0}function Ha(e,t){var n=new Ua(e.i,e.x,e.y),r=new Ua(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Va(e,t,n,r){var i=new Ua(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function $a(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ua(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function qa(e,t,n,r){for(var i=0,o=t,a=n-r;o0&&n.holes.push(r+=e[i-1].length)}return n};var Ya=ba.exports;function Ka(e,t,n,r,i){!function e(t,n,r,i,o){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-s*c/a+l)),Math.min(i,Math.floor(n+(a-s)*c/a+l)),o)}var d=t[n],p=r,f=i;for(Ga(t,r,n),o(t[i],d)>0&&Ga(t,r,i);p0;)f--}0===o(t[r],d)?Ga(t,r,f):Ga(t,++f,i),f<=n&&(r=f+1),n<=f&&(i=f-1)}}(e,t,n||0,r||e.length-1,i||Ja)}function Ga(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ja(e,t){return et?1:0}function Wa(e,t){const n=e.length;if(n<=1)return[e];const r=[];let i,o;for(let t=0;t1)for(let e=0;ee.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ui,this.indexArray=new eo,this.indexArray2=new to,this.programConfigurations=new Lo(e.layers,e.zoom),this.segments=new io,this.segments2=new io,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=Xa("fill",this.layers,t);const r=this.layers[0].layout.get("fill-sort-key"),i=!r.isConstant(),o=[];for(const{feature:a,id:s,index:u,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,l=No(a,e);if(!this.layers[0]._featureFilter.filter(new $r(this.zoom),l,n))continue;const d=i?r.evaluate(l,{},n,t.availableImages):void 0,p={id:s,properties:a.properties,type:a.type,sourceLayerIndex:c,index:u,geometry:e?l.geometry:Do(a),patterns:{},sortKey:d};o.push(p)}i&&o.sort((e,t)=>e.sortKey-t.sortKey);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:a}=r;if(this.hasPattern){const e=Za("fill",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,i,o,n,{});t.featureIndex.insert(e[o].feature,i,o,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ya),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,r,i){for(const e of Wa(t,500)){let t=0;for(const n of e)t+=n.length;const n=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),r=n.vertexLength,i=[],o=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&o.push(i.length/2);const n=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),r=n.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(r+t.length-1,r),i.push(t[0].x),i.push(t[0].y);for(let e=1;e>3}if(i--,1===r||2===r)o+=e.readSVarint(),a+=e.readSVarint(),1===r&&(t&&s.push(t),t=[]),t.push(new as(o,a));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&s.push(t),s},us.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,c=-1/0;e.pos>3}if(r--,1===n||2===n)(i+=e.readSVarint())s&&(s=i),(o+=e.readSVarint())c&&(c=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,c]},us.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,u=this.loadGeometry(),c=us.types[this.type];function l(e){for(var t=0;t>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}fs.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new ds(this._pbf,t,this.extent,this._keys,this._values)};var ms=ps;function vs(e,t,n){if(3===e){var r=new ms(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}os.VectorTile=function(e,t){this.layers=e.readFields(vs,{},t)},os.VectorTileFeature=ss,os.VectorTileLayer=ps;const gs=os.VectorTileFeature.types,ys=Math.pow(2,13);function bs(e,t,n,r,i,o,a,s){e.emplaceBack(t,n,2*Math.floor(r*ys)+a,i*ys*2,o*ys*2,Math.round(s))}class ws{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new qi,this.indexArray=new eo,this.programConfigurations=new Lo(e.layers,e.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.features=[],this.hasPattern=Xa("fill-extrusion",this.layers,t);for(const{feature:r,id:i,index:o,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,s=No(r,e);if(!this.layers[0]._featureFilter.filter(new $r(this.zoom),s,n))continue;const u={id:i,sourceLayerIndex:a,index:o,geometry:e?s.geometry:Do(r),properties:r.properties,type:r.type,patterns:{}};this.hasPattern?this.features.push(Za("fill-extrusion",this.layers,u,this.zoom,t)):this.addFeature(u,u.geometry,o,n,{}),t.featureIndex.insert(r,u.geometry,o,a,this.index,!0)}}addFeatures(e,t,n){for(const e of this.features){const{geometry:r}=e;this.addFeature(e,r,e.index,t,n)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,is),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,r,i){for(const n of Wa(t,500)){let t=0;for(const e of n)t+=e.length;let r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const e of n){if(0===e.length)continue;if(Ss(e))continue;let t=0;for(let n=0;n=1){const o=e[n-1];if(!_s(i,o)){r.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const e=i.sub(o)._perp()._unit(),n=o.dist(i);t+n>32768&&(t=0),bs(this.layoutVertexArray,i.x,i.y,e.x,e.y,0,0,t),bs(this.layoutVertexArray,i.x,i.y,e.x,e.y,0,1,t),t+=n,bs(this.layoutVertexArray,o.x,o.y,e.x,e.y,0,0,t),bs(this.layoutVertexArray,o.x,o.y,e.x,e.y,0,1,t);const a=r.vertexLength;this.indexArray.emplaceBack(a,a+2,a+1),this.indexArray.emplaceBack(a+1,a+2,a+3),r.vertexLength+=4,r.primitiveLength+=2}}}}if(r.vertexLength+t>io.MAX_VERTEX_ARRAY_LENGTH&&(r=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray)),"Polygon"!==gs[e.type])continue;const i=[],o=[],a=r.vertexLength;for(const e of n)if(0!==e.length){e!==n[0]&&o.push(i.length/2);for(let t=0;tAo)||e.y===t.y&&(e.y<0||e.y>Ao)}function Ss(e){return e.every(e=>e.x<0)||e.every(e=>e.x>Ao)||e.every(e=>e.y<0)||e.every(e=>e.y>Ao)}gr("FillExtrusionBucket",ws,{omit:["layers","features"]});var xs={paint:new ri({"fill-extrusion-opacity":new Xr(ne["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Zr(ne["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Xr(ne["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Xr(ne["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ei(ne["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Zr(ne["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Zr(ne["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Xr(ne["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Es(e,t){return e.x*t.x+e.y*t.y}function Ts(e,t){if(1===e.length){let n=0;const r=t[n++];let i;for(;!i||r.equals(i);)if(!(i=t[n++]))return 1/0;for(;ne.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new Yi,this.layoutVertexArray2=new Ki,this.indexArray=new eo,this.programConfigurations=new Lo(e.layers,e.zoom),this.segments=new io,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=Xa("line",this.layers,t);const r=this.layers[0].layout.get("line-sort-key"),i=!r.isConstant(),o=[];for(const{feature:t,id:a,index:s,sourceLayerIndex:u}of e){const e=this.layers[0]._featureFilter.needGeometry,c=No(t,e);if(!this.layers[0]._featureFilter.filter(new $r(this.zoom),c,n))continue;const l=i?r.evaluate(c,{},n):void 0,d={id:a,properties:t.properties,type:t.type,sourceLayerIndex:u,index:s,geometry:e?c.geometry:Do(t),patterns:{},sortKey:l};o.push(d)}i&&o.sort((e,t)=>e.sortKey-t.sortKey);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:a}=r;if(this.hasPattern){const e=Za("line",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,i,o,n,{});t.featureIndex.insert(e[o].feature,i,o,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ls)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Cs),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,r,i){const o=this.layers[0].layout,a=o.get("line-join").evaluate(e,{}),s=o.get("line-cap"),u=o.get("line-miter-limit"),c=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const n of t)this.addLine(n,e,a,s,u,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)}addLine(e,t,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t=2&&e[s-1].equals(e[s-2]);)s--;let u=0;for(;u0;if(_&&t>u){const e=d.dist(p);if(e>2*c){const t=d.sub(d.sub(p)._mult(c/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,h,0,0,l),p=t}}const x=p&&f;let E=x?n:a?"butt":r;if(x&&"round"===E&&(bi&&(E="bevel"),"bevel"===E&&(b>2&&(E="flipbevel"),b100)v=m.mult(-1);else{const e=b*h.add(m).mag()/h.sub(m).mag();v._perp()._mult(e*(S?-1:1))}this.addCurrentVertex(d,v,0,0,l),this.addCurrentVertex(d,v.mult(-1),0,0,l)}else if("bevel"===E||"fakeround"===E){const e=-Math.sqrt(b*b-1),t=S?e:0,n=S?0:e;if(p&&this.addCurrentVertex(d,h,t,n,l),"fakeround"===E){const e=Math.round(180*w/Math.PI/20);for(let t=1;t2*c){const t=d.add(f.sub(d)._mult(c/e)._round());this.updateDistance(d,t),this.addCurrentVertex(t,m,0,0,l),d=t}}}}addCurrentVertex(e,t,n,r,i,o=!1){const a=t.y*r-t.x,s=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,i),this.addHalfVertex(e,a,s,o,!0,-r,i),this.distance>As/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,i,o))}addHalfVertex({x:e,y:t},n,r,i,o,a,s){const u=.5*(this.lineClips?this.scaledDistance*(As-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(i?1:0),(t<<1)+(o?1:0),Math.round(63*n)+128,Math.round(63*r)+128,1+(0===a?0:a<0?-1:1)|(63&u)<<2,u>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const c=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),s.primitiveLength++),o?this.e2=c:this.e1=c}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}gr("LineBucket",Ps,{omit:["layers","patternFeatures"]});const Os=new ri({"line-cap":new Xr(ne.layout_line["line-cap"]),"line-join":new Zr(ne.layout_line["line-join"]),"line-miter-limit":new Xr(ne.layout_line["line-miter-limit"]),"line-round-limit":new Xr(ne.layout_line["line-round-limit"]),"line-sort-key":new Zr(ne.layout_line["line-sort-key"])});var Ds={paint:new ri({"line-opacity":new Zr(ne.paint_line["line-opacity"]),"line-color":new Zr(ne.paint_line["line-color"]),"line-translate":new Xr(ne.paint_line["line-translate"]),"line-translate-anchor":new Xr(ne.paint_line["line-translate-anchor"]),"line-width":new Zr(ne.paint_line["line-width"]),"line-gap-width":new Zr(ne.paint_line["line-gap-width"]),"line-offset":new Zr(ne.paint_line["line-offset"]),"line-blur":new Zr(ne.paint_line["line-blur"]),"line-dasharray":new ti(ne.paint_line["line-dasharray"]),"line-pattern":new ei(ne.paint_line["line-pattern"]),"line-gradient":new ni(ne.paint_line["line-gradient"])}),layout:Os};const Ns=new class extends Zr{possiblyEvaluate(e,t){return t=new $r(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,r){return t=s({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,r)}}(Ds.paint.properties["line-width"].specification);function Rs(e,t){return t>0?t+2*e:e}Ns.useIntegerZoom=!0;const js=ci([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Fs=ci([{name:"a_projected_pos",components:3,type:"Float32"}],4);ci([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Bs=ci([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);ci([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Hs=ci([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Vs=ci([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function $s(e,t,n){return e.sections.forEach(e=>{e.text=function(e,t,n){const r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),Vr.applyArabicShaping&&(e=Vr.applyArabicShaping(e)),e}(e.text,t,n)}),e}ci([{name:"triangle",components:3,type:"Uint16"}]),ci([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ci([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),ci([{type:"Float32",name:"offsetX"}]),ci([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);const Us={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var qs=24,Ys=Js,Ks=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},Gs=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?p/u:p*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m};function Js(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Js.Varint=0,Js.Fixed64=1,Js.Bytes=2,Js.Fixed32=5;var Ws,Qs=4294967296,Xs=1/Qs,Zs="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function eu(e){return e.type===Js.Bytes?e.readVarint()+e.pos:e.pos+1}function tu(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function nu(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function ru(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function hu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function mu(e,t,n){1===e&&n.readMessage(vu,t)}function vu(e,t,n){if(3===e){const{id:e,bitmap:r,width:i,height:o,left:a,top:s,advance:u}=n.readMessage(gu,{});t.push({id:e,bitmap:new fa({width:i+6,height:o+6},r),metrics:{width:i,height:o,left:a,top:s,advance:u}})}}function gu(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function yu(e){let t=0,n=0;for(const r of e)t+=r.w*r.h,n=Math.max(n,r.w);e.sort((e,t)=>t.h-e.h);const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let i=0,o=0;for(const t of e)for(let e=r.length-1;e>=0;e--){const n=r[e];if(!(t.w>n.w||t.h>n.h)){if(t.x=n.x,t.y=n.y,o=Math.max(o,t.y+t.h),i=Math.max(i,t.x+t.w),t.w===n.w&&t.h===n.h){const t=r.pop();e>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=pu(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=hu(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=pu(this.buf,this.pos)+pu(this.buf,this.pos+4)*Qs;return this.pos+=8,e},readSFixed64:function(){var e=pu(this.buf,this.pos)+hu(this.buf,this.pos+4)*Qs;return this.pos+=8,e},readFloat:function(){var e=Ks(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Ks(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return tu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return tu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return tu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return tu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return tu(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return tu(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Zs?function(e,t,n){return Zs.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i239?4:u>223?3:u>191?2:1;if(i+l>n)break;1===l?u<128&&(c=u):2===l?128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)<=127&&(c=null):3===l?(a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&((c=(15&u)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===l&&(a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&((c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,l=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=l}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Js.Bytes)return e.push(this.readVarint(t));var n=eu(this);for(e=e||[];this.pos127;);else if(t===Js.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Js.Fixed32)this.pos+=4;else{if(t!==Js.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&nu(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Gs(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Gs(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n=128&&nu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Js.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,ru,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,iu,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,su,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,ou,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,au,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,uu,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,cu,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,lu,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,du,t)},writeBytesField:function(e,t){this.writeTag(e,Js.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Js.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Js.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Js.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Js.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Js.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Js.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Js.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Js.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Js.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};class bu{constructor(e,{pixelRatio:t,version:n,stretchX:r,stretchY:i,content:o}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=r,this.stretchY=i,this.content=o,this.version=n}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class wu{constructor(e,t){const n={},r={};this.haveRenderCallbacks=[];const i=[];this.addImages(e,n,i),this.addImages(t,r,i);const{w:o,h:a}=yu(i),s=new ha({width:o||1,height:a||1});for(const t in e){const r=e[t],i=n[t].paddedRect;ha.copy(r.data,s,{x:0,y:0},{x:i.x+1,y:i.y+1},r.data)}for(const e in t){const n=t[e],i=r[e].paddedRect,o=i.x+1,a=i.y+1,u=n.data.width,c=n.data.height;ha.copy(n.data,s,{x:0,y:0},{x:o,y:a},n.data),ha.copy(n.data,s,{x:0,y:c-1},{x:o,y:a-1},{width:u,height:1}),ha.copy(n.data,s,{x:0,y:0},{x:o,y:a+c},{width:u,height:1}),ha.copy(n.data,s,{x:u-1,y:0},{x:o-1,y:a},{width:1,height:c}),ha.copy(n.data,s,{x:0,y:0},{x:o+u,y:a},{width:1,height:c})}this.image=s,this.iconPositions=n,this.patternPositions=r}addImages(e,t,n){for(const r in e){const i=e[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),t[r]=new bu(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(e,t){e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[r,i]=e.tl;n.update(t.data,void 0,{x:r,y:i})}}gr("ImagePosition",bu),gr("ImageAtlas",wu),e.WritingMode=void 0,(Ws=e.WritingMode||(e.WritingMode={}))[Ws.none=0]="none",Ws[Ws.horizontal=1]="horizontal",Ws[Ws.vertical=2]="vertical",Ws[Ws.horizontalOnly=3]="horizontalOnly";const _u=-17;class Su{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new Su;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new Su;return t.imageName=e,t}}class xu{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new xu;for(let r=0;r=0&&n>=e&&Tu[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new xu;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,t)=>Math.max(e,this.sections[t].scale),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(Su.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let t=0;t=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Eu(t,n,r,i,o,a,s,u,c,l,d,p,f,h,m,v){const g=xu.fromFeature(t,o);let y;p===e.WritingMode.vertical&&g.verticalizePunctuation();const{processBidirectionalText:b,processStyledBidirectionalText:w}=Vr;if(b&&1===g.sections.length){y=[];const e=b(g.toString(),zu(g,l,a,n,i,h,m));for(const t of e){const e=new xu;e.text=t,e.sections=g.sections;for(let n=0;n0&&r>S&&(S=r)}else{const e=r[m.fontStack],t=e&&e[g];if(t&&t.rect)x=t.rect,w=t.metrics;else{const e=n[m.fontStack],t=e&&e[g];if(!t)continue;w=t.metrics}y=(o-m.scale)*qs}M?(t.verticalizable=!0,_.push({glyph:g,imageName:E,x:f,y:h+y,vertical:M,scale:m.scale,fontStack:m.fontStack,sectionIndex:v,metrics:w,rect:x}),f+=T*m.scale+l):(_.push({glyph:g,imageName:E,x:f,y:h+y,vertical:M,scale:m.scale,fontStack:m.fontStack,sectionIndex:v,metrics:w,rect:x}),f+=w.advance*m.scale+l)}0!==_.length&&(m=Math.max(f-l,m),Pu(_,0,_.length-1,g,S)),f=0;const x=a*o+S;w.lineOffset=Math.max(S,u),h+=x,v=Math.max(x,v),++y}var b;const w=h-_u,{horizontalAlign:_,verticalAlign:S}=Au(s);(function(e,t,n,r,i,o,a,s,u){const c=(t-n)*i;let l=0;l=o!==a?-s*r-_u:(-r*u+.5)*a;for(const t of e)for(const e of t.positionedGlyphs)e.x+=c,e.y+=l})(t.positionedLines,g,_,S,m,v,a,w,o.length),t.top+=-S*w,t.bottom=t.top+w,t.left+=-_*m,t.right=t.left+m}(S,n,r,i,y,s,u,c,p,l,f,v),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(_)&&S}const Tu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Mu={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Cu(e,t,n,r,i,o){if(t.imageName){const e=r[t.imageName];return e?e.displaySize[0]*t.scale*qs/o+i:0}{const r=n[t.fontStack],o=r&&r[e];return o?o.metrics.advance*t.scale+i:0}}function Iu(e,t,n,r){const i=Math.pow(e-t,2);return r?e=0;let l=0;for(let n=0;n-n/2;){if(--a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;const u=[];let c=0;for(;sr;)c-=u.shift().angleDelta;if(c>i)return!1;a++,s+=t.dist(n)}return!0}function Bu(e){let t=0;for(let n=0;nc){const l=(c-u)/o,d=xt(r.x,i.x,l),p=xt(r.y,i.y,l),f=new ju(d,p,i.angleTo(r),n);return f._round(),!a||Fu(e,f,s,a,t)?f:void 0}u+=o}}function Uu(e,t,n,r,i,o,a,s,u){const c=Hu(r,o,a),l=Vu(r,i),d=l*a,p=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return t-d=0&&g=0&&y=0&&f+l<=d){const n=new ju(g,y,m,e);n._round(),i&&!Fu(t,n,a,i,o)||h.push(n)}}p+=u}return u||h.length||s||(h=e(t,p/2,r,i,o,a,s,!0,c)),h}(e,p?t/2*s%t:(l/2+2*o)*a*s%t,t,c,n,d,p,!1,u)}function qu(e,t,n,r,i){const o=[];for(let a=0;a=r&&c.x>=r||(a.x>=r?a=new T(r,a.y+(r-a.x)/(c.x-a.x)*(c.y-a.y))._round():c.x>=r&&(c=new T(r,a.y+(r-a.x)/(c.x-a.x)*(c.y-a.y))._round()),a.y>=i&&c.y>=i||(a.y>=i?a=new T(a.x+(i-a.y)/(c.y-a.y)*(c.x-a.x),i)._round():c.y>=i&&(c=new T(a.x+(i-a.y)/(c.y-a.y)*(c.x-a.x),i)._round()),u&&a.equals(u[u.length-1])||(u=[a],o.push(u)),u.push(c)))))}}return o}function Yu(e,t,n,r){const i=[],o=e.image,a=o.pixelRatio,s=o.paddedRect.w-2,u=o.paddedRect.h-2,c=e.right-e.left,l=e.bottom-e.top,d=o.stretchX||[[0,s]],p=o.stretchY||[[0,u]],f=(e,t)=>e+t[1]-t[0],h=d.reduce(f,0),m=p.reduce(f,0),v=s-h,g=u-m;let y=0,b=h,w=0,_=m,S=0,x=v,E=0,M=g;if(o.content&&r){const e=o.content;y=Ku(d,0,e[0]),w=Ku(p,0,e[1]),b=Ku(d,e[0],e[2]),_=Ku(p,e[1],e[3]),S=e[0]-y,E=e[1]-w,x=e[2]-e[0]-b,M=e[3]-e[1]-_}const C=(r,i,s,u)=>{const d=Ju(r.stretch-y,b,c,e.left),p=Wu(r.fixed-S,x,r.stretch,h),f=Ju(i.stretch-w,_,l,e.top),v=Wu(i.fixed-E,M,i.stretch,m),g=Ju(s.stretch-y,b,c,e.left),C=Wu(s.fixed-S,x,s.stretch,h),I=Ju(u.stretch-w,_,l,e.top),L=Wu(u.fixed-E,M,u.stretch,m),k=new T(d,f),z=new T(g,f),A=new T(g,I),P=new T(d,I),O=new T(p/a,v/a),D=new T(C/a,L/a),N=t*Math.PI/180;if(N){const e=Math.sin(N),t=Math.cos(N),n=[t,-e,e,t];k._matMult(n),z._matMult(n),P._matMult(n),A._matMult(n)}const R=r.stretch+r.fixed,j=i.stretch+i.fixed;return{tl:k,tr:z,bl:P,br:A,tex:{x:o.paddedRect.x+1+R,y:o.paddedRect.y+1+j,w:s.stretch+s.fixed-R,h:u.stretch+u.fixed-j},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:x/a/c,minFontScaleY:M/a/l,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){const e=Gu(d,v,h),t=Gu(p,g,m);for(let n=0;n0&&(r=Math.max(10,r),this.circleDiameter=r)}else{let u=o.top*a-s,l=o.bottom*a+s,d=o.left*a-s,p=o.right*a+s;const f=o.collisionPadding;if(f&&(d-=f[0]*a,u-=f[1]*a,p+=f[2]*a,l+=f[3]*a),c){const e=new T(d,u),t=new T(p,u),n=new T(d,l),r=new T(p,l),i=c*Math.PI/180;e._rotate(i),t._rotate(i),n._rotate(i),r._rotate(i),d=Math.min(e.x,t.x,n.x,r.x),p=Math.max(e.x,t.x,n.x,r.x),u=Math.min(e.y,t.y,n.y,r.y),l=Math.max(e.y,t.y,n.y,r.y)}e.emplaceBack(t.x,t.y,d,u,p,l,n,r,i)}this.boxEndIndex=e.length}}class Xu{constructor(e=[],t=function(e,t){return et?1:0}){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e=0)break;t[e]=o,e=r}t[e]=i}}function Zu(e,t=1,n=!1){let r=1/0,i=1/0,o=-1/0,a=-1/0;const s=e[0];for(let e=0;eo)&&(o=t.x),(!e||t.y>a)&&(a=t.y)}const u=Math.min(o-r,a-i);let c=u/2;const l=new Xu([],ec);if(0===u)return new T(r,i);for(let t=r;td.d||!d.d)&&(d=r,n&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,p)),r.max-d.d<=t||(c=r.h/2,l.push(new tc(r.p.x-c,r.p.y-c,c,e)),l.push(new tc(r.p.x+c,r.p.y-c,c,e)),l.push(new tc(r.p.x-c,r.p.y+c,c,e)),l.push(new tc(r.p.x+c,r.p.y+c,c,e)),p+=4)}return n&&(console.log(`num probes: ${p}`),console.log(`best distance: ${d.d}`)),d.p}function ec(e,t){return t.max-e.max}function tc(e,t,n,r){this.p=new T(e,t),this.h=n,this.d=function(e,t){let n=!1,r=1/0;for(let i=0;ie.y!=s.y>e.y&&e.x<(s.x-i.x)*(e.y-i.y)/(s.y-i.y)+i.x&&(n=!n),r=Math.min(r,Yo(e,i,s))}}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}const nc=Number.POSITIVE_INFINITY;function rc(e,t){return t[1]!==nc?function(e,t,n){let r=0,i=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,i]}(e,t[0],t[1]):function(e,t){let n=0,r=0;t<0&&(t=0);const i=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function ic(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function oc(t,n,r,i,o,a,s,u,c,l,d){let p=a.textMaxSize.evaluate(n,{});void 0===p&&(p=s);const f=t.layers[0].layout,m=f.get("icon-offset").evaluate(n,{},d),v=uc(r.horizontal),g=s/24,y=t.tilePixelRatio*g,b=t.tilePixelRatio*p/24,w=t.tilePixelRatio*u,_=t.tilePixelRatio*f.get("symbol-spacing"),S=f.get("text-padding")*t.tilePixelRatio,x=f.get("icon-padding")*t.tilePixelRatio,E=f.get("text-max-angle")/180*Math.PI,T="viewport"!==f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),M="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),C=f.get("symbol-placement"),I=_/2,L=f.get("icon-text-fit");let k;i&&"none"!==L&&(t.allowVerticalPlacement&&r.vertical&&(k=Du(i,r.vertical,L,f.get("icon-text-fit-padding"),m,g)),v&&(i=Du(i,v,L,f.get("icon-text-fit-padding"),m,g)));const z=(u,p)=>{p.x<0||p.x>=Ao||p.y<0||p.y>=Ao||function(t,n,r,i,o,a,s,u,c,l,d,p,f,m,v,g,y,b,w,_,S,x,E,T,M){const C=t.addToLineVertexArray(n,r);let I,L,k,z,A=0,P=0,O=0,D=0,N=-1,R=-1;const j={};let F=fo(""),B=0,H=0;if(void 0===u._unevaluatedLayout.getValue("text-radial-offset")?[B,H]=u.layout.get("text-offset").evaluate(S,{},T).map(e=>e*qs):(B=u.layout.get("text-radial-offset").evaluate(S,{},T)*qs,H=nc),t.allowVerticalPlacement&&i.vertical){const e=u.layout.get("text-rotate").evaluate(S,{},T)+90;k=new Qu(c,n,l,d,p,i.vertical,f,m,v,e),s&&(z=new Qu(c,n,l,d,p,s,y,b,v,e))}if(o){const r=u.layout.get("icon-rotate").evaluate(S,{}),i="none"!==u.layout.get("icon-text-fit"),a=Yu(o,r,E,i),f=s?Yu(s,r,E,i):void 0;L=new Qu(c,n,l,d,p,o,y,b,!1,r),A=4*a.length;const m=t.iconSizeData;let v=null;"source"===m.kind?(v=[Nu*u.layout.get("icon-size").evaluate(S,{})])[0]>ac&&h(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===m.kind&&(((v=[Nu*x.compositeIconSizes[0].evaluate(S,{},T),Nu*x.compositeIconSizes[1].evaluate(S,{},T)])[0]>ac||v[1]>ac)&&h(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,a,v,_,w,S,e.WritingMode.none,n,C.lineStartIndex,C.lineLength,-1,T),N=t.icon.placedSymbolArray.length-1,f&&(P=4*f.length,t.addSymbols(t.icon,f,v,_,w,S,e.WritingMode.vertical,n,C.lineStartIndex,C.lineLength,-1,T),R=t.icon.placedSymbolArray.length-1)}const V=Object.keys(i.horizontal);for(const r of V){const o=i.horizontal[r];if(!I){F=fo(o.text);const e=u.layout.get("text-rotate").evaluate(S,{},T);I=new Qu(c,n,l,d,p,o,f,m,v,e)}const s=1===o.positionedLines.length;if(O+=sc(t,n,o,a,u,v,S,g,C,i.vertical?e.WritingMode.horizontal:e.WritingMode.horizontalOnly,s?V:[r],j,N,x,T),s)break}i.vertical&&(D+=sc(t,n,i.vertical,a,u,v,S,g,C,e.WritingMode.vertical,["vertical"],j,R,x,T));const $=I?I.boxStartIndex:t.collisionBoxArray.length,U=I?I.boxEndIndex:t.collisionBoxArray.length,q=k?k.boxStartIndex:t.collisionBoxArray.length,Y=k?k.boxEndIndex:t.collisionBoxArray.length,K=L?L.boxStartIndex:t.collisionBoxArray.length,G=L?L.boxEndIndex:t.collisionBoxArray.length,J=z?z.boxStartIndex:t.collisionBoxArray.length,W=z?z.boxEndIndex:t.collisionBoxArray.length;let Q=-1;const X=(e,t)=>e&&e.circleDiameter?Math.max(e.circleDiameter,t):t,Z=(Q=X(z,Q=X(L,Q=X(k,Q=X(I,Q)))))>-1?1:0;Z&&(Q*=M/qs),t.glyphOffsetArray.length>=gc.MAX_GLYPHS&&h("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==S.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,S.sortKey),t.symbolInstances.emplaceBack(n.x,n.y,j.right>=0?j.right:-1,j.center>=0?j.center:-1,j.left>=0?j.left:-1,j.vertical||-1,N,R,F,$,U,q,Y,K,G,J,W,l,O,D,A,P,Z,0,f,B,H,Q)}(t,p,u,r,i,o,k,t.layers[0],t.collisionBoxArray,n.index,n.sourceLayerIndex,t.index,y,S,T,c,w,x,M,m,n,a,l,d,s)};if("line"===C)for(const e of qu(n.geometry,0,0,Ao,Ao)){const n=Uu(e,_,E,r.vertical||v,i,24,b,t.overscaling,Ao);for(const r of n){v&&cc(t,v.text,I,r)||z(e,r)}}else if("line-center"===C){for(const e of n.geometry)if(e.length>1){const t=$u(e,E,r.vertical||v,i,24,b);t&&z(e,t)}}else if("Polygon"===n.type)for(const e of Wa(n.geometry,0)){const t=Zu(e,16);z(e[0],new ju(t.x,t.y,0))}else if("LineString"===n.type)for(const e of n.geometry)z(e,new ju(e[0].x,e[0].y,0));else if("Point"===n.type)for(const e of n.geometry)for(const t of e)z([t],new ju(t.x,t.y,0))}const ac=32640;function sc(e,t,n,r,i,o,a,s,u,c,l,d,p,f,m){const v=function(e,t,n,r,i,o,a,s){const u=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,c=[];for(const e of t.positionedLines)for(const r of e.positionedGlyphs){if(!r.rect)continue;const o=r.rect||{};let l=4,d=!0,p=1,f=0;const h=(i||s)&&r.vertical,m=r.metrics.advance*r.scale/2;if(s&&t.verticalizable){const t=(r.scale-1)*qs,n=(qs-r.metrics.width*r.scale)/2;f=e.lineOffset/2-(r.imageName?-n:t)}if(r.imageName){const e=a[r.imageName];d=e.sdf,l=1/(p=e.pixelRatio)}const v=i?[r.x+m,r.y]:[0,0];let g=i?[0,0]:[r.x+m+n[0],r.y+n[1]-f],y=[0,0];h&&(y=g,g=[0,0]);const b=(r.metrics.left-l)*r.scale-m+g[0],w=(-r.metrics.top-l)*r.scale+g[1],_=b+o.w*r.scale/p,S=w+o.h*r.scale/p,x=new T(b,w),E=new T(_,w),M=new T(b,S),C=new T(_,S);if(h){const e=new T(-m,m-_u),t=-Math.PI/2,n=12-m,i=new T(22-n,-(r.imageName?n:0)),o=new T(...y);x._rotateAround(t,e)._add(i)._add(o),E._rotateAround(t,e)._add(i)._add(o),M._rotateAround(t,e)._add(i)._add(o),C._rotateAround(t,e)._add(i)._add(o)}if(u){const e=Math.sin(u),t=Math.cos(u),n=[t,-e,e,t];x._matMult(n),E._matMult(n),M._matMult(n),C._matMult(n)}const I=new T(0,0),L=new T(0,0);c.push({tl:x,tr:E,bl:M,br:C,tex:o,writingMode:t.writingMode,glyphOffset:v,sectionIndex:r.sectionIndex,isSDF:d,pixelOffsetTL:I,pixelOffsetBR:L,minFontScaleX:0,minFontScaleY:0})}return c}(0,n,s,i,o,a,r,e.allowVerticalPlacement),g=e.textSizeData;let y=null;"source"===g.kind?(y=[Nu*i.layout.get("text-size").evaluate(a,{})])[0]>ac&&h(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===g.kind&&(((y=[Nu*f.compositeTextSizes[0].evaluate(a,{},m),Nu*f.compositeTextSizes[1].evaluate(a,{},m)])[0]>ac||y[1]>ac)&&h(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,v,y,s,o,a,c,t,u.lineStartIndex,u.lineLength,p,m);for(const t of l)d[t]=e.text.placedSymbolArray.length-1;return 4*v.length}function uc(e){for(const t in e)return e[t];return null}function cc(e,t,n,r){const i=e.compareText;if(t in i){const e=i[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])e.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=na([]),this.placementViewportMatrix=na([]);const n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ru(this.zoom,n["text-size"]),this.iconSizeData=Ru(this.zoom,n["icon-size"]);const r=this.layers[0].layout,i=r.get("symbol-sort-key"),o=r.get("symbol-z-order");this.canOverlap="never"!==Sc(r,"text-overlap","text-allow-overlap")||"never"!==Sc(r,"icon-overlap","icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==o&&!i.isConstant(),this.sortFeaturesByY=("viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map(t=>e.WritingMode[t])),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=t.sourceID}createArrays(){this.text=new mc(new Lo(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new mc(new Lo(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new Fi,this.lineVertexArray=new Bi,this.symbolInstances=new ji}calculateGlyphDependencies(e,t,n,r,i){for(let o=0;o0)&&("constant"!==a.value.kind||a.value.value.length>0),l="constant"!==u.value.kind||!!u.value.value||Object.keys(u.parameters).length>0,d=o.get("symbol-sort-key");if(this.features=[],!c&&!l)return;const p=n.iconDependencies,f=n.glyphDependencies,h=n.availableImages,m=new $r(this.zoom);for(const{feature:n,id:s,index:u,sourceLayerIndex:v}of t){const t=i._featureFilter.needGeometry,g=No(n,t);if(!i._featureFilter.filter(m,g,r))continue;let y,b;if(t||(g.geometry=Do(n)),c){const e=i.getValueAndResolveTokens("text-field",g,r,h),t=De.factory(e);hc(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Br()||this.hasRTLText&&Vr.isParsed())&&(y=$s(t,i,g))}if(l){const e=i.getValueAndResolveTokens("icon-image",g,r,h);b=e instanceof Ne?e:Ne.fromString(e)}if(!y&&!b)continue;const w=this.sortFeaturesByKey?d.evaluate(g,{},r):void 0;if(this.features.push({id:s,text:y,icon:b,index:u,sourceLayerIndex:v,geometry:g.geometry,properties:n.properties,type:lc[n.type],sortKey:w}),b&&(p[b.name]=!0),y){const t=a.evaluate(g,{},r).join(","),n="viewport"!==o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.WritingMode.vertical)>=0;for(const e of y.sections)if(e.image)p[e.image.name]=!0;else{const r=xr(y.toString()),i=e.fontStack||t,o=f[i]=f[i]||{};this.calculateGlyphDependencies(e.text,o,n,this.allowVerticalPlacement,r)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},n={},r=[];let i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){const o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(e,n,i){const o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(e,t,n){const r=n?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;ce.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((e,t)=>e.sortKey-t.sortKey)}update(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length;if(void 0!==e.segment){let n=e.dist(t[e.segment+1]),r=e.dist(t[e.segment]);const i={};for(let r=e.segment+1;r=0;n--)i[n]={x:t[n].x,y:t[n].y,tileUnitDistanceFromAnchor:r},n>0&&(r+=t[n-1].dist(t[n]));for(let e=0;e0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs;for(let t=n.vertexStartIndex;tr[e]-r[t]||i[t]-i[e]),o}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach((e,t,n)=>{e>=0&&n.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)}),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}gr("SymbolBucket",gc,{omit:["layers","collisionBoxArray","features","compareText"]}),gc.MAX_GLYPHS=65535,gc.addDynamicAttributes=fc;const yc=new ri({"symbol-placement":new Xr(ne.layout_symbol["symbol-placement"]),"symbol-spacing":new Xr(ne.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Xr(ne.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Zr(ne.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Xr(ne.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Xr(ne.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Xr(ne.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Xr(ne.layout_symbol["icon-ignore-placement"]),"icon-optional":new Xr(ne.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Xr(ne.layout_symbol["icon-rotation-alignment"]),"icon-size":new Zr(ne.layout_symbol["icon-size"]),"icon-text-fit":new Xr(ne.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Xr(ne.layout_symbol["icon-text-fit-padding"]),"icon-image":new Zr(ne.layout_symbol["icon-image"]),"icon-rotate":new Zr(ne.layout_symbol["icon-rotate"]),"icon-padding":new Xr(ne.layout_symbol["icon-padding"]),"icon-keep-upright":new Xr(ne.layout_symbol["icon-keep-upright"]),"icon-offset":new Zr(ne.layout_symbol["icon-offset"]),"icon-anchor":new Zr(ne.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Xr(ne.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Xr(ne.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Xr(ne.layout_symbol["text-rotation-alignment"]),"text-field":new Zr(ne.layout_symbol["text-field"]),"text-font":new Zr(ne.layout_symbol["text-font"]),"text-size":new Zr(ne.layout_symbol["text-size"]),"text-max-width":new Zr(ne.layout_symbol["text-max-width"]),"text-line-height":new Xr(ne.layout_symbol["text-line-height"]),"text-letter-spacing":new Zr(ne.layout_symbol["text-letter-spacing"]),"text-justify":new Zr(ne.layout_symbol["text-justify"]),"text-radial-offset":new Zr(ne.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Xr(ne.layout_symbol["text-variable-anchor"]),"text-anchor":new Zr(ne.layout_symbol["text-anchor"]),"text-max-angle":new Xr(ne.layout_symbol["text-max-angle"]),"text-writing-mode":new Xr(ne.layout_symbol["text-writing-mode"]),"text-rotate":new Zr(ne.layout_symbol["text-rotate"]),"text-padding":new Xr(ne.layout_symbol["text-padding"]),"text-keep-upright":new Xr(ne.layout_symbol["text-keep-upright"]),"text-transform":new Zr(ne.layout_symbol["text-transform"]),"text-offset":new Zr(ne.layout_symbol["text-offset"]),"text-allow-overlap":new Xr(ne.layout_symbol["text-allow-overlap"]),"text-overlap":new Xr(ne.layout_symbol["text-overlap"]),"text-ignore-placement":new Xr(ne.layout_symbol["text-ignore-placement"]),"text-optional":new Xr(ne.layout_symbol["text-optional"])});var bc={paint:new ri({"icon-opacity":new Zr(ne.paint_symbol["icon-opacity"]),"icon-color":new Zr(ne.paint_symbol["icon-color"]),"icon-halo-color":new Zr(ne.paint_symbol["icon-halo-color"]),"icon-halo-width":new Zr(ne.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Zr(ne.paint_symbol["icon-halo-blur"]),"icon-translate":new Xr(ne.paint_symbol["icon-translate"]),"icon-translate-anchor":new Xr(ne.paint_symbol["icon-translate-anchor"]),"text-opacity":new Zr(ne.paint_symbol["text-opacity"]),"text-color":new Zr(ne.paint_symbol["text-color"],{runtimeType:he,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Zr(ne.paint_symbol["text-halo-color"]),"text-halo-width":new Zr(ne.paint_symbol["text-halo-width"]),"text-halo-blur":new Zr(ne.paint_symbol["text-halo-blur"]),"text-translate":new Xr(ne.paint_symbol["text-translate"]),"text-translate-anchor":new Xr(ne.paint_symbol["text-translate-anchor"])}),layout:yc};class wc{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:le,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}gr("FormatSectionOverride",wc,{omit:["defaultValue"]});class _c extends oi{constructor(e){super(e,bc)}recalculate(e,t){if(super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const e=this.layout.get("text-writing-mode");if(e){const t=[];for(const n of e)t.indexOf(n)<0&&t.push(n);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,r){const i=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||In(o.value)||!i?i:function(e,t){return i.replace(/{([^{}]+)}/g,(t,n)=>n in e?String(e[n]):"")}(t.properties)}createBucket(e){return new gc(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of bc.paint.overridableProperties){if(!_c.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new wc(t),r=new Cn(n,t.property.specification);let i=null;i="constant"===t.value.kind||"source"===t.value.kind?new kn("source",r):new zn("composite",r,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Wr(t.property,i,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&_c.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),r=bc.paint.properties[t];let i=!1;const o=e=>{for(const t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof De)o(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{i||(t instanceof He&&Fe(t.value)===ye?o(t.value.sections):t instanceof qe?o(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return i}}function Sc(e,t,n){let r="never";const i=e.get(t);return i?r=i:e.get(n)&&(r="always"),r}var xc={paint:new ri({"background-color":new Xr(ne.paint_background["background-color"]),"background-pattern":new ti(ne.paint_background["background-pattern"]),"background-opacity":new Xr(ne.paint_background["background-opacity"])})},Ec={paint:new ri({"raster-opacity":new Xr(ne.paint_raster["raster-opacity"]),"raster-hue-rotate":new Xr(ne.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Xr(ne.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Xr(ne.paint_raster["raster-brightness-max"]),"raster-saturation":new Xr(ne.paint_raster["raster-saturation"]),"raster-contrast":new Xr(ne.paint_raster["raster-contrast"]),"raster-resampling":new Xr(ne.paint_raster["raster-resampling"]),"raster-fade-duration":new Xr(ne.paint_raster["raster-fade-duration"])})};const Tc={circle:class extends oi{constructor(e){super(e,ea)}createBucket(e){return new jo(e)}queryRadius(e){const t=e;return Wo("circle-radius",this,t)+Wo("circle-stroke-width",this,t)+Qo(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,r,i,o,a,s){const u=Xo(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),l="map"===this.paint.get("circle-pitch-alignment"),d=l?u:function(e,t){return u.map(e=>sa(e,t))}(0,s),p=l?c*a:c;for(const e of r)for(const t of e){const e=l?t:sa(t,s);let n=p;const r=aa([],[t.x,t.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?n*=r[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(n*=o.cameraToCenterDistance/r[3]),Bo(d,e,n))return!0}return!1}},heatmap:class extends oi{constructor(e){super(e,ca),this._updateColorRamp()}createBucket(e){return new ua(e)}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=ma({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}},hillshade:class extends oi{constructor(e){super(e,va)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}},fill:class extends oi{constructor(e){super(e,ns)}recalculate(e,t){super.recalculate(e,t);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new es(e)}queryRadius(){return Qo(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,r,i,o,a){return Ho(Xo(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)}isTileClipped(){return!0}},"fill-extrusion":class extends oi{constructor(e){super(e,xs)}createBucket(e){return new ws(e)}queryRadius(){return Qo(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(e,t,n,r,i,o,a,s){const u=Xo(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,a),c=this.paint.get("fill-extrusion-height").evaluate(t,n),l=this.paint.get("fill-extrusion-base").evaluate(t,n),d=function(e,t,n,r){const i=[];for(const n of e){const e=[n.x,n.y,0,1];aa(e,e,t),i.push(new T(e[0]/e[3],e[1]/e[3]))}return i}(u,s),p=function(e,t,n,r){const i=[],o=[],a=r[8]*t,s=r[9]*t,u=r[10]*t,c=r[11]*t,l=r[8]*n,d=r[9]*n,p=r[10]*n,f=r[11]*n;for(const t of e){const e=[],n=[];for(const i of t){const t=i.x,o=i.y,h=r[0]*t+r[4]*o+r[12],m=r[1]*t+r[5]*o+r[13],v=r[2]*t+r[6]*o+r[14],g=r[3]*t+r[7]*o+r[15],y=v+u,b=g+c,w=h+l,_=m+d,S=v+p,x=g+f,E=new T((h+a)/b,(m+s)/b);E.z=y/b,e.push(E);const M=new T(w/x,_/x);M.z=S/x,n.push(M)}i.push(e),o.push(n)}return[i,o]}(r,l,c,s);return function(e,t,n){let r=1/0;Ho(n,t)&&(r=Ts(n,t[0]));for(let i=0;i=3)for(let t=0;t90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Cc(a(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,r=e.lat*t,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return Mc*Math.acos(Math.min(i,1))}toBounds(e=0){const t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Ic(new Cc(this.lng-n,this.lat-t),new Cc(this.lng+n,this.lat+t))}static convert(e){if(e instanceof Cc)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Cc(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Cc(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}class Ic{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Cc?new Cc(e.lng,e.lat):Cc.convert(e),this}setSouthWest(e){return this._sw=e instanceof Cc?new Cc(e.lng,e.lat):Cc.convert(e),this}extend(e){const t=this._sw,n=this._ne;let r,i;if(e instanceof Cc)r=e,i=e;else{if(!(e instanceof Ic))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Ic.convert(e)):this.extend(Cc.convert(e)):this;if(r=e._sw,i=e._ne,!r||!i)return this}return t||n?(t.lng=Math.min(r.lng,t.lng),t.lat=Math.min(r.lat,t.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new Cc(r.lng,r.lat),this._ne=new Cc(i.lng,i.lat)),this}getCenter(){return new Cc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Cc(this.getWest(),this.getNorth())}getSouthEast(){return new Cc(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=Cc.convert(e);let r=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&r}static convert(e){return e instanceof Ic?e:e?new Ic(e):e}}const Lc=2*Math.PI*Mc;function kc(e){return Lc*Math.cos(e*Math.PI/180)}function zc(e){return(180+e)/360}function Ac(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Pc(e,t){return e/kc(t)}function Oc(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}class Dc{constructor(e,t,n=0){this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e,t=0){const n=Cc.convert(e);return new Dc(zc(n.lng),Ac(n.lat),Pc(t,n.lat))}toLngLat(){return new Cc(360*this.x-180,Oc(this.y))}toAltitude(){return this.z*kc(Oc(this.y))}meterInMercatorCoordinateUnits(){return 1/Lc*(e=Oc(this.y),1/Math.cos(e*Math.PI/180));var e}}function Nc(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}class Rc{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Bc(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,n){const r=(o=this.y,a=this.z,s=Nc(256*(i=this.x),256*(o=Math.pow(2,a)-o-1),a),u=Nc(256*(i+1),256*(o+1),a),s[0]+","+s[1]+","+u[0]+","+u[1]);var i,o,a,s,u;const c=function(e,t,n){let r,i="";for(let o=e;o>0;o--)i+=(t&(r=1<1?"@2x":"").replace(/{quadkey}/g,c).replace(/{bbox-epsg-3857}/g,r)}getTilePoint(e){const t=Math.pow(2,this.z);return new T((e.x*t-this.x)*Ao,(e.y*t-this.y)*Ao)}toString(){return`${this.z}/${this.x}/${this.y}`}}class jc{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Bc(e,t.z,t.z,t.x,t.y)}}class Fc{constructor(e,t,n,r,i){this.overscaledZ=e,this.wrap=t,this.canonical=new Rc(n,+r,+i),this.key=Bc(t,e,n,r,i)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new Fc(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Fc(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t){const n=this.canonical.z-e;return e>this.canonical.z?Bc(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Bc(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new Fc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Fc(t,this.wrap,t,n,r),new Fc(t,this.wrap,t,n+1,r),new Fc(t,this.wrap,t,n,r+1),new Fc(t,this.wrap,t,n+1,r+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}_unpackMapbox(e,t,n){return(256*e*256+256*t+n)/10-1e4}_unpackTerrarium(e,t,n){return 256*e+t+n/256-32768}getPixels(){return new ha({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}const s=-t*this.dim,u=-n*this.dim;for(let t=o;t=0&&r[3]>=0&&s.insert(a,r[0],r[1],r[2],r[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new os.VectorTile(new Ys(this.rawTileData)).layers,this.sourceLayerCoder=new Vc(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,t,n,r){this.loadVTLayers();const i=e.params||{},o=Ao/e.tileSize/e.scale,a=Vn(i.filter),s=e.queryGeometry,u=e.queryPadding*o,c=Yc(s),l=this.grid.query(c.minX-u,c.minY-u,c.maxX+u,c.maxY+u),d=Yc(e.cameraQueryGeometry),p=this.grid3D.query(d.minX-u,d.minY-u,d.maxX+u,d.maxY+u,(t,n,r,i)=>(function(e,t,n,r,i){for(const o of e)if(t<=o.x&&n<=o.y&&r>=o.x&&i>=o.y)return!0;const o=[new T(t,n),new T(t,i),new T(r,i),new T(r,n)];if(e.length>2)for(const t of o)if(Go(e,t))return!0;for(let t=0;t(p||(p=Do(t)),n.queryIntersectsFeature(s,t,r,p,this.z,e.transform,o,e.pixelPosMatrix)))}return f}loadMatchingFeature(e,t,n,r,i,o,a,u,c,l,d){const p=this.bucketLayerIDs[t];if(o&&!function(e,t){for(let n=0;n=0)return!0;return!1}(o,p))return;const f=this.sourceLayerCoder.decode(n),h=this.vtLayers[f].feature(r);if(i.needGeometry){const e=No(h,!0);if(!i.filter(new $r(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!i.filter(new $r(this.tileID.overscaledZ),h))return;const m=this.getId(h,f);for(let t=0;t{const a=t instanceof Qr?t.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a})}function Yc(e){let t=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of e)t=Math.min(t,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x),i=Math.max(i,o.y);return{minX:t,minY:n,maxX:r,maxY:i}}function Kc(e,t){return t-e}var Gc;gr("FeatureIndex",Uc,{omit:["rawTileData","sourceLayerCoder"]}),e.PerformanceMarkers=void 0,(Gc=e.PerformanceMarkers||(e.PerformanceMarkers={})).create="create",Gc.load="load",Gc.fullLoad="fullLoad";let Jc=null,Wc=[];const Qc=1e3/30,Xc={mark(e){performance.mark(e)},frame(e){const t=e;null!=Jc&&Wc.push(t-Jc),Jc=t},clearMetrics(){Jc=null,Wc=[],performance.clearMeasures("loadTime"),performance.clearMeasures("fullLoadTime");for(const t in e.PerformanceMarkers)performance.clearMarks(e.PerformanceMarkers[t])},getPerformanceMetrics(){performance.measure("loadTime",e.PerformanceMarkers.create,e.PerformanceMarkers.load),performance.measure("fullLoadTime",e.PerformanceMarkers.create,e.PerformanceMarkers.fullLoad);const t=performance.getEntriesByName("loadTime")[0].duration,n=performance.getEntriesByName("fullLoadTime")[0].duration,r=Wc.length,i=1/(Wc.reduce((e,t)=>e+t,0)/r/1e3),o=Wc.filter(e=>e>Qc).reduce((e,t)=>e+(t-Qc)/Qc,0);return{loadTime:t,fullLoadTime:n,fps:i,percentDroppedFrames:o/(r+o)*100}}};e.AJAXError=H,e.ARRAY_TYPE=ta,e.Actor=class{constructor(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},c(["receive","process"],this),this.invoker=new class{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=(()=>{this._triggered=!1,this._callback()}))}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=(()=>{})}}(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=g()?e:window}send(e,t,n,r,i=!1){const o=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[o]=n);const a=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:e,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:br(t,a)},a),{cancel:()=>{n&&delete this.callbacks[o],this.target.postMessage({id:o,type:"",targetMapId:r,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if(""===t.type){delete this.tasks[n];const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e()}else g()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)}process(){if(!this.taskQueue.length)return;const e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){if(""===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(wr(t.error)):n(null,wr(t.data)))}else{let n=!1;const r=S(this.globalScope)?void 0:[],i=t.hasCallback?(t,i)=>{n=!0,delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"",sourceMapId:this.mapId,error:t?br(t):null,data:br(i,r)},r)}:e=>{n=!0};let o=null;const a=wr(t.data);if(this.parent[t.type])o=this.parent[t.type](t.sourceMapId,a,i);else if(this.parent.getWorkerSource){const e=t.type.split(".");o=this.parent.getWorkerSource(t.sourceMapId,e[0],a.source)[e[1]](a,i)}else i(new Error(`Could not find function ${t.type}`));!n&&o&&o.cancel&&(this.cancelCallbacks[e]=o.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.AlphaImage=fa,e.CanonicalTileID=Rc,e.CollisionBoxArray=Oi,e.CollisionCircleLayoutArray=class extends Si{},e.Color=Ae,e.DEMData=Hc,e.DataConstantProperty=Xr,e.DictionaryCoder=Vc,e.EXTENT=Ao,e.ErrorEvent=ee,e.EvaluationParameters=$r,e.Event=Z,e.Evented=te,e.FeatureIndex=Uc,e.FillBucket=es,e.FillExtrusionBucket=ws,e.GeoJSONFeature=$c,e.ImageAtlas=wu,e.ImagePosition=bu,e.LineBucket=Ps,e.LineStripIndexArray=class extends zi{},e.LngLat=Cc,e.LngLatBounds=Ic,e.MercatorCoordinate=Dc,e.ONE_EM=qs,e.OverscaledTileID=Fc,e.PerformanceUtils=Xc,e.PosArray=class extends di{},e.Properties=ri,e.QuadTriangleArray=class extends Ei{},e.RGBAImage=ha,e.RasterBoundsArray=class extends pi{},e.RequestPerformance=class{constructor(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let e=performance.getEntriesByName(this._marks.measure);return 0===e.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),e=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),e}},e.ResourceType=B,e.SegmentVector=io,e.SymbolBucket=gc,e.Transitionable=Yr,e.TriangleIndexArray=eo,e.Uniform1f=yo,e.Uniform1i=class extends go{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},e.Uniform2f=class extends go{constructor(e,t){super(e,t),this.current=[0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},e.Uniform3f=class extends go{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},e.Uniform4f=bo,e.UniformColor=wo,e.UniformMatrix4f=class extends go{constructor(e,t){super(e,t),this.current=_o}set(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(let t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}}},e.UnwrappedTileID=jc,e.ValidationError=re,e.ZoomHistory=_r,e.addDynamicAttributes=fc,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);let r=e.length;const i=new Array(e.length);let o=null;e.forEach((e,a)=>{t(e,(e,t)=>{e&&(o=e),i[a]=t,0==--r&&n(o,i)})})},e.bezier=r,e.bindAll=c,e.cacheEntryPossiblyAdded=function(e){++P>z&&(e.getActor().send("enforceCacheSizeLimit",k),P=0)},e.clamp=o,e.clearTileCache=function(e){const t=caches.delete(I);e&&t.catch(e).then(()=>e())},e.clipLine=qu,e.clone=function(e){var t=new ta(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=p,e.collisionCircleLayout=Vs,e.config=C,e.create=function(){var e=new ta(16);return ta!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.createExpression=Ln,e.createFilter=Vn,e.createLayout=ci,e.createStyleLayer=function(e){return"custom"===e.type?new class extends oi{constructor(e){super(e,{}),this.onAdd=(e=>{this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}),this.onRemove=(e=>{this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}}(e):new Tc[e.type](e)},e.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.ease=i,e.emitValidationErrors=hr,e.enforceCacheSizeLimit=function(e){A(),L&&L.then(t=>{t.keys().then(n=>{for(let r=0;r{}}},e.identity=na,e.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],d=t[9],p=t[10],f=t[11],h=t[12],m=t[13],v=t[14],g=t[15],y=n*s-r*a,b=n*u-i*a,w=n*c-o*a,_=r*u-i*s,S=r*c-o*s,x=i*c-o*u,E=l*m-d*h,T=l*v-p*h,M=l*g-f*h,C=d*v-p*m,I=d*g-f*m,L=p*g-f*v,k=y*L-b*I+w*C+_*M-S*T+x*E;return k?(e[0]=(s*L-u*I+c*C)*(k=1/k),e[1]=(i*I-r*L-o*C)*k,e[2]=(m*x-v*S+g*_)*k,e[3]=(p*S-d*x-f*_)*k,e[4]=(u*M-a*L-c*T)*k,e[5]=(n*L-i*M+o*T)*k,e[6]=(v*w-h*x-g*b)*k,e[7]=(l*x-p*w+f*b)*k,e[8]=(a*I-s*M+c*E)*k,e[9]=(r*M-n*I-o*E)*k,e[10]=(h*S-m*w+g*y)*k,e[11]=(d*w-l*S-f*y)*k,e[12]=(s*T-a*C-u*E)*k,e[13]=(n*C-r*T+i*E)*k,e[14]=(m*b-h*_-v*y)*k,e[15]=(l*_-d*b+p*y)*k,e):null},e.isImageBitmap=x,e.isSafari=S,e.keysDifference=function(e,t){const n=[];for(const r in e)r in t||n.push(r);return n},e.lazyLoadRTLTextPlugin=function(){Vr.isLoading()||Vr.isLoaded()||"deferred"!==Br()||Hr()},e.makeRequest=U,e.mapObject=l,e.mercatorXfromLng=zc,e.mercatorYfromLat=Ac,e.mercatorZfromAltitude=Pc,e.mul=oa,e.multiply=ra,e.nextPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.number=xt,e.ortho=function(e,t,n,r,i,o,a){var s=1/(t-n),u=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(a+o)*c,e[15]=1,e},e.parseCacheControl=y,e.parseGlyphPBF=function(e){return new Ys(e).readFields(mu,[])},e.pbf=Ys,e.performSymbolLayout=function(t,n,r,i,o,a,s){t.createArrays(),t.tilePixelRatio=Ao/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;const u=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,l={layoutIconSize:c["icon-size"].possiblyEvaluate(new $r(t.zoom+1),s),layoutTextSize:c["text-size"].possiblyEvaluate(new $r(t.zoom+1),s),textMaxSize:c["text-size"].possiblyEvaluate(new $r(18))};if("composite"===t.textSizeData.kind){const{minZoom:e,maxZoom:n}=t.textSizeData;l.compositeTextSizes=[c["text-size"].possiblyEvaluate(new $r(e),s),c["text-size"].possiblyEvaluate(new $r(n),s)]}if("composite"===t.iconSizeData.kind){const{minZoom:e,maxZoom:n}=t.iconSizeData;l.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new $r(e),s),c["icon-size"].possiblyEvaluate(new $r(n),s)]}const d=u.get("text-line-height")*qs,p="viewport"!==u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),f=u.get("text-keep-upright"),m=u.get("text-size");for(const a of t.features){const c=u.get("text-font").evaluate(a,{},s).join(","),v=m.evaluate(a,{},s),g=l.layoutTextSize.evaluate(a,{},s),y=l.layoutIconSize.evaluate(a,{},s),b={horizontal:{},vertical:void 0},w=a.text;let _,S=[0,0];if(w){const i=w.toString(),l=u.get("text-letter-spacing").evaluate(a,{},s)*qs,h=Er(i)?l:0,m=u.get("text-anchor").evaluate(a,{},s),y=u.get("text-variable-anchor");if(!y){const e=u.get("text-radial-offset").evaluate(a,{},s);S=e?rc(m,[e*qs,nc]):u.get("text-offset").evaluate(a,{},s).map(e=>e*qs)}let _=p?"center":u.get("text-justify").evaluate(a,{},s);const x=u.get("symbol-placement"),E="point"===x?u.get("text-max-width").evaluate(a,{},s)*qs:0,T=()=>{t.allowVerticalPlacement&&xr(i)&&(b.vertical=Eu(w,n,r,o,c,E,d,m,"left",h,S,e.WritingMode.vertical,!0,x,g,v))};if(!p&&y){const t="auto"===_?y.map(e=>ic(e)):[_];let i=!1;for(let a=0;athis._layers[e.id]),n=t[0];if("none"===n.visibility)continue;const r=n.source||"";let i=this.familiesBySource[r];i||(i=this.familiesBySource[r]={});const o=n.sourceLayer||"_geojsonTileLayer";let a=i[o];a||(a=i[o]=[]),a.push(t)}}}class i{constructor(t){const n={},r=[];for(const e in t){const i=t[e],o=n[e]={};for(const e in i){const t=i[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const n={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};r.push(n),o[e]={rect:n,metrics:t.metrics}}}const{w:i,h:o}=e.potpack(r),a=new e.AlphaImage({width:i||1,height:o||1});for(const r in t){const i=t[r];for(const t in i){const o=i[+t];if(!o||0===o.bitmap.width||0===o.bitmap.height)continue;const s=n[r][t].rect;e.AlphaImage.copy(o.bitmap,a,{x:0,y:0},{x:s.x+1,y:s.y+1},o.bitmap)}}this.image=a,this.positions=n}}e.register("GlyphAtlas",i);class o{constructor(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId}parse(t,n,r,o,s){this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;const u=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];const l={},d={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},p=n.familiesBySource[this.source];for(const n in p){const i=t.layers[n];if(!i)continue;1===i.version&&e.warnOnce(`Vector tile source "${this.source}" layer "${n}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const o=u.encode(n),s=[];for(let e=0;e=t.maxzoom||"none"!==t.visibility&&(a(e,this.zoom,r),(l[t.id]=t.createBucket({index:c.bucketLayerIDs.length,layers:e,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:o,sourceID:this.source})).populate(s,d,this.tileID.canonical),c.bucketLayerIDs.push(e.map(e=>e.id)))}}let f,h,m,v;const g=e.mapObject(d.glyphDependencies,e=>Object.keys(e).map(Number));Object.keys(g).length?o.send("getGlyphs",{uid:this.uid,stacks:g},(e,t)=>{f||(f=e,h=t,w.call(this))}):h={};const y=Object.keys(d.iconDependencies);y.length?o.send("getImages",{icons:y,source:this.source,tileID:this.tileID,type:"icons"},(e,t)=>{f||(f=e,m=t,w.call(this))}):m={};const b=Object.keys(d.patternDependencies);function w(){if(f)return s(f);if(h&&m&&v){const t=new i(h),n=new e.ImageAtlas(m,v);for(const i in l){const o=l[i];o instanceof e.SymbolBucket?(a(o.layers,this.zoom,r),e.performSymbolLayout(o,h,t.positions,m,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):o.hasPattern&&(o instanceof e.LineBucket||o instanceof e.FillBucket||o instanceof e.FillExtrusionBucket)&&(a(o.layers,this.zoom,r),o.addFeatures(d,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:Object.values(l).filter(e=>!e.isEmpty()),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?m:null,glyphPositions:this.returnDependencies?t.positions:null})}}b.length?o.send("getImages",{icons:b,source:this.source,tileID:this.tileID,type:"patterns"},(e,t)=>{f||(f=e,v=t,w.call(this))}):v={},w.call(this)}}function a(t,n,r){const i=new e.EvaluationParameters(n);for(const e of t)e.recalculate(i,r)}function s(t,n){const r=e.getArrayBuffer(t.request,(t,r,i,o)=>{t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:i,expires:o})});return()=>{r.cancel(),n()}}class u{constructor(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}}loadTile(t,n){const r=t.uid;this.loading||(this.loading={});const i=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),a=this.loading[r]=new o(t);a.abort=this.loadVectorData(t,(t,o)=>{if(delete this.loading[r],t||!o)return a.status="done",this.loaded[r]=a,n(t);const s=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.cacheControl=o.cacheControl);const c={};if(i){const e=i.finish();e&&(c.resourceTiming=JSON.parse(JSON.stringify(e)))}a.vectorTile=o.vectorTile,a.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,r)=>{if(t||!r)return n(t);n(null,e.extend({rawTileData:s.slice(0)},r,u,c))}),this.loaded=this.loaded||{},this.loaded[r]=a})}reloadTile(e,t){const n=this.loaded,r=e.uid,i=this;if(n&&n[r]){const o=n[r];o.showCollisionBoxes=e.showCollisionBoxes;const a=(e,n)=>{const r=o.reloadCallback;r&&(delete o.reloadCallback,o.parse(o.vectorTile,i.layerIndex,this.availableImages,i.actor,r)),t(e,n)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,a):a())}}abortTile(e,t){const n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()}removeTile(e,t){const n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()}}class c{constructor(){this.loaded={}}loadTile(t,n){const{uid:r,encoding:i,rawImageData:o}=t,a=e.isImageBitmap(o)?this.getImageData(o):o,s=new e.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)}getImageData(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);const n=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:n.width,height:n.height},n.data)}removeTile(e){const t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]}}var l=function e(t,n){var r,i=t&&t.type;if("FeatureCollection"===i)for(r=0;r=Math.abs(s)?n-u+s:s-u+n,n=u}n+r>=0!=!!t&&e.reverse()}const f=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class h{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.pointGeometry(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const r=[];for(const t of n)r.push(new e.pointGeometry(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,n){return f.call(this,e,t,n)}}class m{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(e){return new h(this._features[e])}}var v={exports:{}},g=e.pointGeometry,y=e.vectorTile.VectorTileFeature,b=w;function w(e,t){this.options=t||{},this.features=e,this.length=e.length}function _(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}w.prototype.feature=function(e){return new _(this.features[e],this.options.extent)},_.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t>31}function k(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;s>1;(function e(t,n,r,i,o,a){for(;o>i;){if(o-i>600){const s=o-i+1,u=r-i+1,c=Math.log(s),l=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);e(t,n,r,Math.max(i,Math.floor(r-u*l/s+d)),Math.min(o,Math.floor(r+(s-u)*l/s+d)),a)}const s=n[2*r+a];let u=i,c=o;for(O(t,n,i,r),n[2*o+a]>s&&O(t,n,i,o);us;)c--}n[2*i+a]===s?O(t,n,i,c):O(t,n,++c,o),c<=r&&(i=c+1),r<=c&&(o=c-1)}})(e,t,a,r,i,o%2),P(e,t,n,r,a-1,o+1),P(e,t,n,a+1,i,o+1)}function O(e,t,n,r){D(e,n,r),D(t,2*n,2*r),D(t,2*n+1,2*r+1)}function D(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function N(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}const R=e=>e[0],j=e=>e[1];class F{constructor(e,t=R,n=j,r=64,i=Float64Array){this.nodeSize=r,this.points=e;const o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length);for(let r=0;r=n&&c<=i&&l>=r&&l<=o&&u.push(e[a]);continue}const h=Math.floor((f+p)/2);c=t[2*h],l=t[2*h+1],c>=n&&c<=i&&l>=r&&l<=o&&u.push(e[h]);const m=(d+1)%2;(0===d?n<=c:r<=l)&&(s.push(f),s.push(h-1),s.push(m)),(0===d?i>=c:o>=l)&&(s.push(h+1),s.push(p),s.push(m))}return u}(this.ids,this.coords,e,t,n,r,this.nodeSize)}within(e,t,n){return function(e,t,n,r,i,o){const a=[0,e.length-1,0],s=[],u=i*i;for(;a.length;){const c=a.pop(),l=a.pop(),d=a.pop();if(l-d<=o){for(let i=d;i<=l;i++)N(t[2*i],t[2*i+1],n,r)<=u&&s.push(e[i]);continue}const p=Math.floor((d+l)/2),f=t[2*p],h=t[2*p+1];N(f,h,n,r)<=u&&s.push(e[p]);const m=(c+1)%2;(0===c?n-i<=f:r-i<=h)&&(a.push(d),a.push(p-1),a.push(m)),(0===c?n+i>=f:r+i>=h)&&(a.push(p+1),a.push(l),a.push(m))}return s}(this.ids,this.coords,e,t,n,this.nodeSize)}}const B={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},H=Math.fround||(V=new Float32Array(1),e=>(V[0]=+e,V[0]));var V;class ${constructor(e){this.options=W(Object.create(B),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:n,maxZoom:r,nodeSize:i}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;let a=[];for(let t=0;t=n;e--){const n=+Date.now();a=this._cluster(a,e),this.trees[e]=new F(a,Q,X,i,Float32Array),t&&console.log("z%d: %d clusters in %dms",e,a.length,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){const e=this.getClusters([n,r,180,o],t),a=this.getClusters([-180,r,i,o],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(G(n),J(o),G(i),J(r)),u=[];for(const e of s){const t=a.points[e];u.push(t.numPoints?Y(t):this.points[t.index])}return u}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.points[t];if(!o)throw new Error(r);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i.within(o.x,o.y,a),u=[];for(const t of s){const n=i.points[t];n.parentId===e&&u.push(n.numPoints?Y(n):this.points[n.index])}if(0===u.length)throw new Error(r);return u}getLeaves(e,t,n){const r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:a}=this.options,s=a/o,u=(n-s)/i,c=(n+1+s)/i,l={features:[]};return this._addTileFeatures(r.range((t-s)/i,u,(t+1+s)/i,c),r.points,t,n,i,l),0===t&&this._addTileFeatures(r.range(1-s/i,u,1,c),r.points,i,n,i,l),t===i-1&&this._addTileFeatures(r.range(0,u,s/i,c),r.points,-1,n,i,l),l.features.length?l:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){const o=this.getChildren(t);for(const t of o){const o=t.properties;if(o&&o.cluster?i+o.point_count<=r?i+=o.point_count:i=this._appendLeaves(e,o.cluster_id,n,r,i):it&&(d+=n.numPoints||1)}if(d>l&&d>=a){let e=i.x*l,a=i.y*l,s=o&&l>1?this._map(i,!0):null;const p=(r<<5)+(t+1)+this.points.length;for(const n of c){const r=u.points[n];if(r.zoom<=t)continue;r.zoom=t;const c=r.numPoints||1;e+=r.x*c,a+=r.y*c,r.parentId=p,o&&(s||(s=this._map(i,!0)),o(s,this._map(r)))}i.parentId=p,n.push(U(e/d,a/d,p,d,s))}else if(n.push(i),d>1)for(const e of c){const r=u.points[e];r.zoom<=t||(r.zoom=t,n.push(r))}}return n}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?W({},e.properties):e.properties;const n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?W({},r):r}}function U(e,t,n,r,i){return{x:H(e),y:H(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function q(e,t){const[n,r]=e.geometry.coordinates;return{x:H(G(n)),y:H(J(r)),zoom:1/0,index:t,parentId:-1}}function Y(e){return{type:"Feature",id:e.id,properties:K(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),function(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}(e.y)]}};var t}function K(e){const t=e.numPoints,n=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return W(W({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function G(e){return e/360+.5}function J(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function W(e,t){for(const n in t)e[n]=t[n];return e}function Q(e){return e.x}function X(e){return e.y}function Z(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((e-n)*a+(t-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=e-n)*a+(s=t-r)*s}function ee(e,t,n,r){var i={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)te(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r0&&(a+=r?(i*c-u*o)/2:Math.sqrt(Math.pow(u-i,2)+Math.pow(c-o,2))),i=u,o=c}var l=t.length-3;t[2]=1,function e(t,n,r,i){for(var o,a=i,s=r-n>>1,u=r-n,c=t[n],l=t[n+1],d=t[r],p=t[r+1],f=n+3;fa)o=f,a=h;else if(h===a){var m=Math.abs(f-s);mi&&(o-n>3&&e(t,n,o,i),t[o+2]=a,r-o>3&&e(t,o,r,i))}(t,0,l,n),t[l+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function oe(e,t,n,r){for(var i=0;i1?1:n}function ue(e,t,n,r,i,o,a,s){if(r/=t,o>=(n/=t)&&a=r)return null;for(var u=[],c=0;c=n&&h=r)){var m=[];if("Point"===p||"MultiPoint"===p)ce(d,m,n,r,i);else if("LineString"===p)le(d,m,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===p)pe(d,m,n,r,i,!1);else if("Polygon"===p)pe(d,m,n,r,i,!0);else if("MultiPolygon"===p)for(var v=0;v=n&&a<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function le(e,t,n,r,i,o,a){for(var s,u,c=de(e),l=0===i?he:me,d=e.start,p=0;pn&&(u=l(c,f,h,v,g,n),a&&(c.start=d+s*u)):y>r?b=n&&(u=l(c,f,h,v,g,n),w=!0),b>r&&y<=r&&(u=l(c,f,h,v,g,r),w=!0),!o&&w&&(a&&(c.end=d+s*u),t.push(c),c=de(e)),a&&(d+=s)}var _=e.length-3;f=e[_],h=e[_+1],m=e[_+2],(y=0===i?f:h)>=n&&y<=r&&fe(c,f,h,m),_=c.length-3,o&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&fe(c,c[0],c[1],c[2]),c.length&&t.push(c)}function de(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function pe(e,t,n,r,i,o){for(var a=0;aa.maxX&&(a.maxX=l),d>a.maxY&&(a.maxY=d)}return a}function _e(e,t,n,r){var i=t.geometry,o=t.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s0&&t.size<(i?a:r))n.numPoints+=t.length/3;else{for(var s=[],u=0;ua)&&(n.numSimplified++,s.push(t[u]),s.push(t[u+1])),n.numPoints++;i&&function(e,t){for(var n=0,r=0,i=e.length,o=i-2;r0===t)for(r=0,i=e.length;r24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r1&&console.time("creation"),p=this.tiles[d]=we(e,t,n,r,u),this.tileCoords.push({z:t,x:n,y:r}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var f="z"+t;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(p.source=e,i){if(t===u.maxZoom||t===i)continue;var h=1<1&&console.time("clipping");var m,v,g,y,b,w,_=.5*u.buffer/u.extent,S=.5-_,x=.5+_,E=1+_;m=v=g=y=null,b=ue(e,l,n-_,n+x,0,p.minX,p.maxX,u),w=ue(e,l,n+S,n+E,0,p.minX,p.maxX,u),e=null,b&&(m=ue(b,l,r-_,r+x,1,p.minY,p.maxY,u),v=ue(b,l,r+S,r+E,1,p.minY,p.maxY,u),b=null),w&&(g=ue(w,l,r-_,r+x,1,p.minY,p.maxY,u),y=ue(w,l,r+S,r+E,1,p.minY,p.maxY,u),w=null),c>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(v||[],t+1,2*n,2*r+1),s.push(g||[],t+1,2*n+1,2*r),s.push(y||[],t+1,2*n+1,2*r+1)}}},xe.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,o=r.debug;if(e<0||e>24)return null;var a=1<1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var u,c=e,l=t,d=n;!u&&c>0;)c--,l=Math.floor(l/2),d=Math.floor(d/2),u=this.tiles[Ee(c,l,d)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",c,l,d),o>1&&console.time("drilling down"),this.splitTile(u.source,c,l,d,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?ye(this.tiles[s],i):null):null};class Me extends u{constructor(e,t,n,r){super(e,t,n,Te),r&&(this.loadGeoJSON=r)}loadData(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())}_loadData(){if(!this._pendingCallback||!this._pendingLoadDataParams)return;const t=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;const r=!!(n&&n.request&&n.request.collectResourceTiming)&&new e.RequestPerformance(n.request);this.loadGeoJSON(n,(i,o)=>{if(i||!o)return t(i);if("object"!=typeof o)return t(new Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`));{l(o,!0);try{if(n.filter){const t=e.createExpression(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));o={type:"FeatureCollection",features:o.features.filter(e=>t.value.evaluate({zoom:0},e))}}this._geoJSONIndex=n.cluster?new $(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;const r={},i={},o={accumulated:null,zoom:0},a={properties:null},s=Object.keys(n);for(const t of s){const[o,a]=n[t],s=e.createExpression(a),u=e.createExpression("string"==typeof o?[o,["accumulated"],["get",t]]:o);r[t]=s.value,i[t]=u.value}return t.map=(e=>{a.properties=e;const t={};for(const e of s)t[e]=r[e].evaluate(o,a);return t}),t.reduce=((e,t)=>{a.properties=t;for(const t of s)o.accumulated=e[t],e[t]=i[t].evaluate(o,a)}),t}(n)).load(o.features):new xe(o,n.geojsonVtOptions)}catch(i){return t(i)}this.loaded={};const a={};if(r){const e=r.finish();e&&(a.resourceTiming={},a.resourceTiming[n.source]=JSON.parse(JSON.stringify(e)))}t(null,a)}})}coalesce(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())}reloadTile(e,t){const n=this.loaded;return n&&n[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}removeSource(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class Ce{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:Me},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=((e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t}),this.self.registerRTLTextPlugin=(t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText})}setReferrer(e,t){this.referrer=t}setImages(e,t,n){this.availableImages[e]=t;for(const n in this.workerSources[e]){const r=this.workerSources[e][n];for(const e in r)r[e].availableImages=t}n()}setLayers(e,t,n){this.getLayerIndex(e).replace(t),n()}updateLayers(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()}loadTile(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)}loadDEMTile(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)}reloadTile(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)}removeDEMTile(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)}removeSource(e,t,n){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,r){try{e.plugin.setState(n);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const n=e.plugin.isParsed();r(n?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),n)}}catch(e){r(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t}getWorkerSource(e,t,n){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){const r={send:(t,n,r)=>{this.actor.send(t,n,r,e)}};this.workerSources[e][t][n]=new this.workerSourceTypes[t](r,this.getLayerIndex(e),this.getAvailableImages(e))}return this.workerSources[e][t][n]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new c),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,n){e.enforceCacheSizeLimit(n)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new Ce(self)),Ce}),r(0,function(e){var t=n;function n(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===r[t=e&&e.failIfMajorPerformanceCaveat]&&(r[t]=function(e){var t,r=function(e){var t=document.createElement("canvas"),r=Object.create(n.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,t.getContext("webgl",r)||t.getContext("experimental-webgl",r)}(e);if(!r)return!1;try{t=r.createShader(r.VERTEX_SHADER)}catch(e){return!1}return!(!t||r.isContextLost())&&(r.shaderSource(t,"void main() {}"),r.compileShader(t),!0===r.getShaderParameter(t,r.COMPILE_STATUS))}(t)),r[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var r={};function i(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n{window.removeEventListener("click",o.suppressClickInternal,!0)},0)}static mousePos(t,n){const r=t.getBoundingClientRect();return new e.pointGeometry(n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop)}static touchPos(t,n){const r=t.getBoundingClientRect(),i=[];for(let o=0;o-1);o[++u]=s,a[u]=c,a[u+1]=h}for(let s=0,u=0;s{let r=this.entries[e];r||(r=this.entries[e]={glyphs:{},requests:{},ranges:{}});let i=r.glyphs[t];if(void 0!==i)return void n(null,{stack:e,id:t,glyph:i});if(i=this._tinySDF(r,e,t))return r.glyphs[t]=i,void n(null,{stack:e,id:t,glyph:i});const o=Math.floor(t/256);if(256*o>65535)return void n(new Error("glyphs > 65535 not supported"));if(r.ranges[o])return void n(null,{stack:e,id:t,glyph:i});let a=r.requests[o];a||(a=r.requests[o]=[],g.loadGlyphRange(e,o,this.url,this.requestManager,(e,t)=>{if(t){for(const e in t)this._doesCharSupportLocalGlyph(+e)||(r.glyphs[+e]=t[+e]);r.ranges[o]=!0}for(const n of a)n(e,t);delete r.requests[o]})),a.push((r,i)=>{r?n(r):i&&n(null,{stack:e,id:t,glyph:i[t]||null})})},(e,t)=>{if(e)n(e);else if(t){const e={};for(const{stack:n,id:r,glyph:i}of t)(e[n]||(e[n]={}))[r]=i&&{id:i.id,bitmap:i.bitmap.clone(),metrics:i.metrics};n(null,e)}})}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(e.unicodeBlockLookup["CJK Unified Ideographs"](t)||e.unicodeBlockLookup["Hangul Syllables"](t)||e.unicodeBlockLookup.Hiragana(t)||e.unicodeBlockLookup.Katakana(t))}_tinySDF(t,n,r){const i=this.localIdeographFontFamily;if(!i)return;if(!this._doesCharSupportLocalGlyph(r))return;let o=t.tinySDF;if(!o){let e="400";/bold/i.test(n)?e="900":/medium/i.test(n)?e="500":/light/i.test(n)&&(e="200"),o=t.tinySDF=new g.TinySDF({fontSize:24,buffer:3,radius:8,cutoff:.25,fontFamily:i,fontWeight:e})}const a=o.draw(String.fromCharCode(r));return{id:r,bitmap:new e.AlphaImage({width:a.width||30,height:a.height||30},a.data),metrics:{width:a.glyphWidth||24,height:a.glyphHeight||24,left:a.glyphLeft||0,top:a.glyphTop-27||-8,advance:a.glyphAdvance||24}}}}g.loadGlyphRange=function(t,n,r,i,o){const a=256*n,s=a+255,u=i.transformRequest(r.replace("{fontstack}",t).replace("{range}",`${a}-${s}`),e.ResourceType.Glyphs);e.getArrayBuffer(u,(t,n)=>{if(t)o(t);else if(n){const t={};for(const r of e.parseGlyphPBF(n))t[r.id]=r;o(null,t)}})},g.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:r=.25,fontFamily:i="sans-serif",fontWeight:o="normal",fontStyle:a="normal"}={}){this.buffer=t,this.cutoff=r,this.radius=n;const s=this.size=e+4*t,u=this._createCanvas(s),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${a} ${o} ${e}px ${i}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:i,actualBoundingBoxRight:o}=this.ctx.measureText(e),a=Math.ceil(n),s=Math.min(this.size-this.buffer,Math.ceil(o-i)),u=Math.min(this.size-this.buffer,a+Math.ceil(r)),c=s+2*this.buffer,l=u+2*this.buffer,d=Math.max(c*l,0),p=new Uint8ClampedArray(d),f={data:p,width:c,height:l,glyphWidth:s,glyphHeight:u,glyphTop:a,glyphLeft:0,glyphAdvance:t};if(0===s||0===u)return f;const{ctx:v,buffer:g,gridInner:y,gridOuter:b}=this;v.clearRect(g,g,s,u),v.fillText(e,g,g+a);const w=v.getImageData(g,g,s,u);b.fill(h,0,d),y.fill(0,0,d);for(let e=0;e0?e*e:0,y[r]=e<0?e*e:0}}m(b,0,0,c,l,c,this.f,this.v,this.z),m(y,g,g,s,u,c,this.f,this.v,this.z);for(let e=0;e1&&(a=e[++o]);const u=Math.abs(s-a.left),c=Math.abs(s-a.right),l=Math.min(u,c);let d;const p=t/n*(r+1);if(a.isDash){const e=r-Math.abs(p);d=Math.sqrt(l*l+e*e)}else d=r-Math.sqrt(l*l+p*p);this.data[i+s]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e){for(let t=e.length-1;t>=0;--t){const n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}const t=e[0],n=e[e.length-1];t.isDash===n.isDash&&(t.left=n.left-this.width,n.right=t.right+this.width);const r=this.width*this.nextRow;let i=0,o=e[i];for(let t=0;t1&&(o=e[++i]);const n=Math.abs(t-o.left),a=Math.abs(t-o.right),s=Math.min(n,a);this.data[r+t]=Math.max(0,Math.min(255,(o.isDash?s:-s)+128))}}addDash(t,n){const r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return e.warnOnce("LineAtlas out of space"),null;let o=0;for(let e=0;e{e.send(t,n,r)},r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(e=>{e.remove()}),this.actors=[],this.workerPool.release(this.id)}}function x(t,n,r){const i=function(n,i){if(n)return r(n);if(i){const n=e.pick(e.extend(i,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(n.vectorLayers=i.vector_layers,n.vectorLayerIds=n.vectorLayers.map(e=>e.id)),r(null,n)}};return t.url?e.getJSON(n.transformRequest(t.url,e.ResourceType.Source),i):e.exported.frame(()=>i(null,t))}S.Actor=e.Actor;class E{constructor(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x=i&&t.y{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),t?this.fire(new e.ErrorEvent(t)):n&&(e.extend(this,n),n.bounds&&(this.tileBounds=new E(n.bounds,this.minzoom,this.maxzoom)),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}loadTile(t,n){const r=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),i={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function o(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,o.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,o.bind(this)))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class M extends e.Evented{constructor(t,n,r,i){super(),this.id=t,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},n),e.extend(this,e.pick(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=x(this._options,this.map._requestManager,(t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(e.extend(this,n),n.bounds&&(this.tileBounds=new E(n.bounds,this.minzoom,this.maxzoom)),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const r=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),(r,i,o)=>{if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(i){this.map._refreshExpiredTiles&&t.setExpiryData(o);const r=this.map.painter.context,a=r.gl;t.texture=this.map.painter.getTileTexture(i.width),t.texture?t.texture.update(i,{useMipmap:!0}):(t.texture=new d(r,i,a.RGBA,{useMipmap:!0}),t.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),r.extTextureFilterAnisotropic&&a.texParameterf(a.TEXTURE_2D,r.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,r.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),n(null)}})}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}let C;class I extends M{constructor(t,n,r,i){super(t,n,r,i),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}serialize(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}}loadTile(t,n){const r=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,i){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(i){this.map._refreshExpiredTiles&&t.setExpiryData(i),delete i.cacheControl,delete i.expires;const n=e.isImageBitmap(i)&&(null==C&&(C="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),C)?i:e.exported.getImageData(i,1),r={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:n,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",r,function(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)}_getNeighboringTiles(t){const n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,u={};return u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1{if(this._pendingLoads--,this._removed||i&&i.abandoned)return;let o=null;if(i&&i.resourceTiming&&i.resourceTiming[this.id]&&(o=i.resourceTiming[this.id].slice(0)),this.actor.send(`${this.type}.coalesce`,{source:n.source},null),r)return void this.fire(new e.ErrorEvent(r));const a={dataType:"source",sourceDataType:t};this._collectResourceTiming&&o&&o.length>0&&e.extend(a,{resourceTiming:o}),this.fire(new e.Event("data",a))})}loaded(){return 0===this._pendingLoads}loadTile(e,t){const n=e.actor?"reloadTile":"loadTile";e.actor=this.actor;const r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(n,r,(r,i)=>(delete e.request,e.unloadVectorData(),e.aborted?t(null):r?t(r):(e.loadVectorData(i,this.map.painter,"reloadTile"===n),t(null))))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var k=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class z extends e.Evented{constructor(e,t,n,r){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=t}load(t,n){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(r,i)=>{this._loaded=!0,r?this.fire(new e.ErrorEvent(r)):i&&(this.image=i,t&&(this.coordinates=t),n&&n(),this._finishLoading())})}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}setCoordinates(t){this.coordinates=t;const n=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){let n=1/0,r=1/0,i=-1/0,o=-1/0;for(const e of t)n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),o=Math.max(o,e.y);const a=Math.max(i-n,o-r),s=Math.max(0,Math.floor(-Math.log(a)/Math.LN2)),u=Math.pow(2,s);return new e.CanonicalTileID(s,Math.floor((n+i)/2*u),Math.floor((r+o)/2*u))}(n),this.minzoom=this.maxzoom=this.tileID.z;const r=n.map(e=>this.tileID.getTilePoint(e)._round());return this._boundsArray=new e.RasterBoundsArray,this._boundsArray.emplaceBack(r[0].x,r[0].y,0,0),this._boundsArray.emplaceBack(r[1].x,r[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(r[3].x,r[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(r[2].x,r[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,n=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,k.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new d(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class A extends z{constructor(e,t,n,r){super(e,t,n,r),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,e.ResourceType.Source).url);e.getVideo(this.urls,(t,n)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(this.video=n,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;tn.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,k.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new d(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class P extends z{constructor(t,n,r,i){super(t,n,r,i),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context,r=n.gl;this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,k.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new d(n,this.canvas,r.RGBA,{premultiply:!0});for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}const O={vector:T,raster:M,"raster-dem":I,geojson:L,video:A,image:z,canvas:P};function D(t,n){const r=e.create();return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function N(e,t,n,r,i,o){const a=function(e,t,n){if(e)for(const r of e){const e=t[r];if(e&&e.source===n&&"fill-extrusion"===e.type)return!0}else for(const e in t){const r=t[e];if(r.source===n&&"fill-extrusion"===r.type)return!0}return!1}(i&&i.layers,t,e.id),s=o.maxPitchScaleFactor(),u=e.tilesIn(r,s,a);u.sort(R);const c=[];for(const r of u)c.push({wrappedTileID:r.tileID.wrapped().key,queryResults:r.tile.queryRenderedFeatures(t,n,e._state,r.queryGeometry,r.cameraQueryGeometry,r.scale,i,o,s,D(e.transform,r.tileID))});const l=function(e){const t={},n={};for(const r of e){const e=r.queryResults,i=r.wrappedTileID,o=n[i]=n[i]||{};for(const n in e){const r=e[n],i=o[n]=o[n]||{},a=t[n]=t[n]||[];for(const e of r)i[e.featureIndex]||(i[e.featureIndex]=!0,a.push(e))}}return t}(c);for(const t in l)l[t].forEach(t=>{const n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r});return l}function R(e,t){const n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}class j{constructor(t,n){this.tileID=t,this.uid=e.uniqueId(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){const n=t+this.timeAdded;nt.getLayer(e)).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0]));for(const t of e)n[t.id]=r}}return n}(t.buckets,n.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const n=this.buckets[t];if(n instanceof e.SymbolBucket){if(this.hasSymbolBuckets=!0,!r)break;n.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const n=this.buckets[t];if(n instanceof e.SymbolBucket&&n.hasRTLText){this.hasRTLText=!0,e.lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const e in this.buckets){const t=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(e).queryRadius(t))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new e.CollisionBoxArray}unloadVectorData(){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(const t in this.buckets){const n=this.buckets[t];n.uploadPending()&&n.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new d(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new d(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,r,i,o,a,s,u,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:o,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:a,queryPadding:this.queryPadding*u},e,t,n):{}}querySourceFeatures(t,n){const r=this.latestFeatureIndex;if(!r||!r.rawTileData)return;const i=r.loadVTLayers(),o=n?n.sourceLayer:"",a=i._geojsonTileLayer||i[o];if(!a)return;const s=e.createFilter(n&&n.filter),{z:u,x:c,y:l}=this.tileID.canonical,d={z:u,x:c,y:l};for(let n=0;ne)t=!1;else if(n)if(this.expirationTime{this.remove(e,i)},n)),this.data[r].push(i),this.order.push(r),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const r of this.data[n])e(r.value)||t.push(r);for(const e of t)this.remove(e.value.tileID,e)}}class B{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,n,r){const i=String(n);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},e.extend(this.stateChanges[t][i],r),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==i&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][i]){this.deletedStates[t][i]={};for(const e in this.state[t][i])r[e]||(this.deletedStates[t][i][e]=null)}else for(const e in r)this.deletedStates[t]&&this.deletedStates[t][i]&&null===this.deletedStates[t][i][e]&&delete this.deletedStates[t][i][e]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(t,n){const r=String(n),i=e.extend({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const e=this.deletedStates[t][n];if(null===e)return{};for(const t in e)delete i[t]}return i}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(t,n){const r={};for(const t in this.stateChanges){this.state[t]=this.state[t]||{};const n={};for(const r in this.stateChanges[t])this.state[t][r]||(this.state[t][r]={}),e.extend(this.state[t][r],this.stateChanges[t][r]),n[r]=this.state[t][r];r[t]=n}for(const t in this.deletedStates){this.state[t]=this.state[t]||{};const n={};if(null===this.deletedStates[t])for(const e in this.state[t])n[e]={},this.state[t][e]={};else for(const e in this.deletedStates[t]){if(null===this.deletedStates[t][e])this.state[t][e]={};else for(const n of Object.keys(this.deletedStates[t][e]))delete this.state[t][e][n];n[e]=this.state[t][e]}r[t]=r[t]||{},e.extend(r[t],n)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(const e in t)t[e].setFeatureState(r,n)}}class H extends e.Evented{constructor(t,n,r){super(),this.id=t,this.dispatcher=r,this.on("data",e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=function(t,n,r,i){const o=new O[n.type](t,n,r,i);if(o.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${o.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o}(t,n,r,this),this._tiles={},this._cache=new F(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new B}onAdd(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)}onRemove(e){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(e)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,()=>{}),this._source.fire(new e.Event("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(e=>e.tileID).sort(V).map(e=>e.key)}getRenderableIds(t){const n=[];for(const e in this._tiles)this._isIdRenderable(e,t)&&n.push(this._tiles[e]);return t?n.sort((t,n)=>{const r=t.tileID,i=n.tileID,o=new e.pointGeometry(r.canonical.x,r.canonical.y)._rotate(this.transform.angle),a=new e.pointGeometry(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return r.overscaledZ-i.overscaledZ||a.y-o.y||a.x-o.x}).map(e=>e.tileID.key):n.map(e=>e.tileID).sort(V).map(e=>e.key)}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(t,n,r,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new e.ErrorEvent(i,{tile:t})):this.update(this.transform));t.timeAdded=e.exported.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(e){const t=this.getRenderableIds();for(let r=0;r1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,r){for(const i in this._tiles){let o=this._tiles[i];if(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)continue;let a=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[e.key])&&o.hasData()&&(a=e)}let s=a;for(;s.overscaledZ>t;)if(e[(s=s.scaledTo(s.overscaledZ-1)).key]){r[a.key]=a;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),r=this._getLoadedTile(t);if(r)return r}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)}updateCacheSize(e){const t=Math.ceil(e.width/this._source.tileSize)+1,n=Math.ceil(e.height/this._source.tileSize)+1,r=Math.floor(t*n*5),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const n in this._tiles){const r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(e,this._tiles[e])}}update(t){if(this.transform=t,!this._sourceLoaded||this._paused)return;let n;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(n=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(n=n.filter(e=>this._source.hasTile(e)))):n=[];const r=t.coveringZoomLevel(this._source),i=Math.max(r-H.maxOverzooming,this._source.minzoom),o=Math.max(r+H.maxUnderzooming,this._source.minzoom),a=this._updateRetainedTiles(n,r);if($(this._source.type)){const t={},n={},s=Object.keys(a);for(const r of s){const o=a[r],s=this._tiles[r];if(!s||s.fadeEndTime&&s.fadeEndTime<=e.exported.now())continue;const u=this.findLoadedParent(o,i);u&&(this._addTile(u.tileID),t[u.tileID.key]=u.tileID),n[r]=o}this._retainLoadedChildren(n,r,o,a);for(const e in t)a[e]||(this._coveredTiles[e]=!0,a[e]=t[e])}for(const e in a)this._tiles[e].clearFadeHold();const s=e.keysDifference(this._tiles,a);for(const e of s){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(e)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)}_updateRetainedTiles(e,t){const n={},r={},i=Math.max(t-H.maxOverzooming,this._source.minzoom),o=Math.max(t+H.maxUnderzooming,this._source.minzoom),a={};for(const r of e){const e=this._addTile(r);n[r.key]=r,e.hasData()||tthis._source.maxzoom){const e=o.children(this._source.maxzoom)[0],t=this.getTile(e);if(t&&t.hasData()){n[e.key]=e;continue}}else{const e=o.children(this._source.maxzoom);if(n[e[0].key]&&n[e[1].key]&&n[e[2].key]&&n[e[3].key])continue}let a=e.wasRequested();for(let t=o.overscaledZ-1;t>=i;--t){const i=o.scaledTo(t);if(r[i.key])break;if(r[i.key]=!0,!(e=this.getTile(i))&&a&&(e=this._addTile(i)),e&&(n[i.key]=i,a=e.wasRequested(),e.hasData()))break}}return n}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);const e=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(e))break;r=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(t){let n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));const r=n;return n||(n=new j(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},n))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(e);this._cache.reset()}tilesIn(t,n,r){const i=[],o=this.transform;if(!o)return i;const a=r?o.getCameraQueryGeometry(t):t,s=t.map(e=>o.pointCoordinate(e)),u=a.map(e=>o.pointCoordinate(e)),c=this.getIds();let l=1/0,d=1/0,p=-1/0,f=-1/0;for(const e of u)l=Math.min(l,e.x),d=Math.min(d,e.y),p=Math.max(p,e.x),f=Math.max(f,e.y);for(let t=0;t=0&&v[1].y+m>=0){const e=s.map(e=>a.getTilePoint(e)),t=u.map(e=>a.getTilePoint(e));i.push({tile:r,tileID:a,queryGeometry:e,cameraQueryGeometry:t,scale:h})}}return i}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map(e=>this._tiles[e].tileID);for(const e of t)e.posMatrix=this.transform.calculatePosMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if($(this._source.type))for(const t in this._tiles){const n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.exported.now())return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){const r=this._tiles[e];r&&r.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter(n=>!n.hasDependency(e,t))}}function V(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function $(e){return"raster"===e||"image"===e||"video"===e}H.maxOverzooming=10,H.maxUnderzooming=3;const U="mapboxgl_preloaded_worker_pool";class q{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[U]}numActive(){return Object.keys(this.active).length}}const Y=Math.floor(e.exported.hardwareConcurrency/2);let K;function G(){return K||(K=new q),K}function J(t,n){const r={};for(const e in t)"ref"!==e&&(r[e]=t[e]);return e.refProperties.forEach(e=>{e in n&&(r[e]=n[e])}),r}function W(e){e=e.slice();const t=Object.create(null);for(let n=0;n0?(i-a)/s:0;return this.points[o].mult(1-u).add(this.points[n].mult(u))}}function ae(e,t){let n=!0;return"always"===e||"never"!==e&&"never"!==t||(n=!1),n}class se{constructor(e,t,n){const r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let e=0;ethis.width||r<0||t>this.height)return[];const s=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return[{key:null,x1:e,y1:t,x2:n,y2:r}];for(let e=0;e0}hitTestCircle(e,t,n,r,i){const o=e-n,a=e+n,s=t-n,u=t+n;if(a<0||o>this.width||u<0||s>this.height)return!1;const c=[];return this._forEachCell(o,s,a,u,this._queryCellCircle,c,{hitTest:!0,overlapMode:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},i),c.length>0}_queryCell(e,t,n,r,i,o,a,s){const{seenUids:u,hitTest:c,overlapMode:l}=a,d=this.boxCells[i];if(null!==d){const i=this.bboxes;for(const a of d)if(!u.box[a]){u.box[a]=!0;const d=4*a,p=this.boxKeys[a];if(e<=i[d+2]&&t<=i[d+3]&&n>=i[d+0]&&r>=i[d+1]&&(!s||s(p))&&(!c||!ae(l,p.overlapMode))&&(o.push({key:p,x1:i[d],y1:i[d+1],x2:i[d+2],y2:i[d+3]}),c))return!0}}const p=this.circleCells[i];if(null!==p){const i=this.circles;for(const a of p)if(!u.circle[a]){u.circle[a]=!0;const d=3*a,p=this.circleKeys[a];if(this._circleAndRectCollide(i[d],i[d+1],i[d+2],e,t,n,r)&&(!s||s(p))&&(!c||!ae(l,p.overlapMode))){const e=i[d],t=i[d+1],n=i[d+2];if(o.push({key:p,x1:e-n,y1:t-n,x2:e+n,y2:t+n}),c)return!0}}}return!1}_queryCellCircle(e,t,n,r,i,o,a,s){const{circle:u,seenUids:c,overlapMode:l}=a,d=this.boxCells[i];if(null!==d){const e=this.bboxes;for(const t of d)if(!c.box[t]){c.box[t]=!0;const n=4*t,r=this.boxKeys[t];if(this._circleAndRectCollide(u.x,u.y,u.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!s||s(r))&&!ae(l,r.overlapMode))return o.push(!0),!0}}const p=this.circleCells[i];if(null!==p){const e=this.circles;for(const t of p)if(!c.circle[t]){c.circle[t]=!0;const n=3*t,r=this.circleKeys[t];if(this._circlesCollide(e[n],e[n+1],e[n+2],u.x,u.y,u.radius)&&(!s||s(r))&&!ae(l,r.overlapMode))return o.push(!0),!0}}}_forEachCell(e,t,n,r,i,o,a,s){const u=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),l=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r);for(let p=u;p<=l;p++)for(let u=c;u<=d;u++)if(i.call(this,e,t,n,r,this.xCellCount*u+p,o,a,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,r,i,o){const a=r-e,s=i-t,u=n+o;return u*u>a*a+s*s}_circleAndRectCollide(e,t,n,r,i,o,a){const s=(o-r)/2,u=Math.abs(e-(r+s));if(u>s+n)return!1;const c=(a-i)/2,l=Math.abs(t-(i+c));if(l>c+n)return!1;if(u<=s||l<=c)return!0;const d=u-s,p=l-c;return d*d+p*p<=n*n}}function ue(t,n,r,i,o){const a=e.create();return n?(e.scale(a,a,[1/o,1/o,1]),r||e.rotateZ(a,a,i.angle)):e.multiply(a,i.labelPlaneMatrix,t),a}function ce(t,n,r,i,o){if(n){const n=e.clone(t);return e.scale(n,n,[o,o,1]),r||e.rotateZ(n,n,-i.angle),n}return i.glCoordMatrix}function le(t,n){const r=[t.x,t.y,0,1];_e(r,r,n);const i=r[3];return{point:new e.pointGeometry(r[0]/i,r[1]/i),signedDistanceFromCamera:i}}function de(e,t){return.5+e/t*.5}function pe(e,t){const n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function fe(t,n,r,i,o,a,s,u,c){const l=i?t.textSizeData:t.iconSizeData,d=e.evaluateSizeForZoom(l,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],f=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();const h=t.lineVertexArray,m=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=r.transform.width/r.transform.height;let g=!1;for(let i=0;iMath.abs(r.x-n.x)*i?{useVertical:!0}:(t===e.WritingMode.vertical?n.yr.x)?{needsFlipping:!0}:null}function ve(t,n,r,i,o,a,s,u,c,l,d,p,f,h,m){const v=n/24,g=t.lineOffsetX*v,y=t.lineOffsetY*v;let b;if(t.numGlyphs>1){const e=t.glyphStartIndex+t.numGlyphs,n=t.lineStartIndex,o=t.lineStartIndex+t.lineLength,l=he(v,u,g,y,r,d,p,t,c,a,f,m);if(!l)return{notEnoughRoom:!0};const w=le(l.first.point,s).point,_=le(l.last.point,s).point;if(i&&!r){const e=me(t.writingMode,w,_,h);if(e)return e}b=[l.first];for(let i=t.glyphStartIndex+1;i0?a.point:ge(p,i,n,1,o),u=me(t.writingMode,n,s,h);if(u)return u}const n=ye(v*u.getoffsetX(t.glyphStartIndex),g,y,r,d,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,a,f,m);if(!n)return{notEnoughRoom:!0};b=[n]}for(const t of b)e.addDynamicAttributes(l,t.point,t.angle);return{}}function ge(e,t,n,r,i){const o=le(e.add(e.sub(t)._unit()),i).point,a=n.sub(o);return n.add(a._mult(r/a.mag()))}function ye(t,n,r,i,o,a,s,u,c,l,d,p,f){const h=i?t-n:t+n;let m=h>0?1:-1,v=0;i&&(m*=-1,v=Math.PI),m<0&&(v+=Math.PI);let g=m>0?u+s:u+s+1,y=o,b=o,w=0,_=0;const S=Math.abs(h),x=[];for(;w+_<=S;){if((g+=m)=c)return null;if(b=y,x.push(y),void 0===(y=p[g])){const t=new e.pointGeometry(l.getx(g),l.gety(g)),n=le(t,d);if(n.signedDistanceFromCamera>0)y=p[g]=n.point;else{const n=g-m;y=ge(0===w?a:new e.pointGeometry(l.getx(n),l.gety(n)),t,b,S-w+1,d)}}w+=_,_=b.dist(y)}const E=(S-w)/_,T=y.sub(b),M=T.mult(E)._add(b);M._add(T._unit()._perp()._mult(r*m));const C=v+Math.atan2(y.y-b.y,y.x-b.x);return x.push(M),{point:M,angle:f?C:0,path:x}}const be=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function we(e,t){for(let n=0;n=1;e--)l.push(a.path[e]);for(let e=1;ele(e,u));l=e.some(e=>e.signedDistanceFromCamera<=0)?[]:e.map(e=>e.point)}let v=[];if(l.length>0){const t=l[0].clone(),n=l[0].clone();for(let e=1;e=r.x&&n.x<=i.x&&t.y>=r.y&&n.y<=i.y?[l]:n.xi.x||n.yi.y?[]:e.clipLine([l],r.x,r.y,i.x,i.y)}for(const e of v){o.reset(e,.25*n);let r=0;r=o.length<=.5*n?1:Math.ceil(o.paddedLength/m)+1;for(let e=0;e=this.screenRightBoundary||rthis.screenBottomBoundary}isInsideGrid(e,t,n,r){return n>=0&&e=0&&te.collisionGroupID===t}}return this.collisionGroups[e]}}function ze(t,n,r,i,o){const{horizontalAlign:a,verticalAlign:s}=e.getAnchorAlignment(t),u=-(a-.5)*n,c=-(s-.5)*r,l=e.evaluateVariableOffset(t,i);return new e.pointGeometry(u+l[0]*o,c+l[1]*o)}function Ae(t,n,r,i,o,a){const{x1:s,x2:u,y1:c,y2:l,anchorPointX:d,anchorPointY:p}=t,f=new e.pointGeometry(n,r);return i&&f._rotate(o?a:-a),{x1:s+f.x,y1:c+f.y,x2:u+f.x,y2:l+f.y,anchorPointX:d,anchorPointY:p}}class Pe{constructor(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new xe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new ke(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,r,i){const o=r.getBucket(n),a=r.latestFeatureIndex;if(!o||!a||n.id!==o.layerIds[0])return;const s=r.collisionBoxArray,u=o.layers[0].layout,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),l=r.tileSize/e.EXTENT,d=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),p="map"===u.get("text-pitch-alignment"),f="map"===u.get("text-rotation-alignment"),h=Ee(r,1,this.transform.zoom),m=ue(d,p,f,this.transform,h);let v=null;if(p){const t=ce(d,p,f,this.transform,h);v=e.multiply([],this.transform.labelPlaneMatrix,t)}this.retainedQueryData[o.bucketInstanceId]=new Le(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);const g={bucket:o,layout:u,posMatrix:d,textLabelPlaneMatrix:m,labelToScreenMatrix:v,scale:c,textPixelRatio:l,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(const e of o.sortKeyRanges){const{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i}=e;t.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:g})}attemptAnchorPlacement(e,t,n,r,i,o,a,s,u,c,l,d,p,f,h){const m=[d.textOffset0,d.textOffset1],v=ze(e,n,r,m,i),g=this.collisionIndex.placeCollisionBox(Ae(t,v.x,v.y,o,a,this.transform.angle),l,s,u,c.predicate);if((!h||0!==this.collisionIndex.placeCollisionBox(Ae(h,v.x,v.y,o,a,this.transform.angle),l,s,u,c.predicate).box.length)&&g.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(t=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:m,width:n,height:r,anchor:e,textBoxScale:i,prevAnchor:t},this.markUsedJustification(p,e,d,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,d),this.placedOrientations[d.crossTileID]=f),{shift:v,placedGlyphBoxes:g}}}placeLayerBucketPart(t,n,r){const{bucket:i,layout:o,posMatrix:a,textLabelPlaneMatrix:s,labelToScreenMatrix:u,textPixelRatio:c,holdingForFade:l,collisionBoxArray:d,partiallyEvaluatedTextSize:p,collisionGroup:f}=t.parameters,h=o.get("text-optional"),m=o.get("icon-optional"),v=e.getOverlapMode(o,"text-overlap","text-allow-overlap"),g="always"===v,y=e.getOverlapMode(o,"icon-overlap","icon-allow-overlap"),b="always"===y,w="map"===o.get("text-rotation-alignment"),_="map"===o.get("text-pitch-alignment"),S="none"!==o.get("icon-text-fit"),x="viewport-y"===o.get("symbol-z-order"),E=g&&(b||!i.hasIconData()||m),T=b&&(g||!i.hasTextData()||h);!i.collisionArrays&&d&&i.deserializeCollisionBoxes(d);const M=(t,d)=>{if(n[t.crossTileID])return;if(l)return void(this.placements[t.crossTileID]=new Ce(!1,!1,!1));let b=!1,x=!1,M=!0,C=null,I={box:null,offscreen:null},L={box:null,offscreen:null},k=null,z=null,A=null,P=0,O=0,D=0;d.textFeatureIndex?P=d.textFeatureIndex:t.useRuntimeCollisionCircles&&(P=t.featureIndex),d.verticalTextFeatureIndex&&(O=d.verticalTextFeatureIndex);const N=d.textBox;if(N){const n=n=>{let r=e.WritingMode.horizontal;if(i.allowVerticalPlacement&&!n&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,r=e,this.markUsedOrientation(i,r,t))}return r},r=(n,r)=>{if(i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&d.verticalTextBox){for(const t of i.writingModes)if(t===e.WritingMode.vertical?(I=r(),L=I):I=n(),I&&I.box&&I.box.length)break}else I=n()};if(o.get("text-variable-anchor")){let s=o.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[t.crossTileID]){const e=this.prevPlacement.variableOffsets[t.crossTileID];s.indexOf(e.anchor)>0&&(s=s.filter(t=>t!==e.anchor)).unshift(e.anchor)}const u=(e,n,r)=>{const o=e.x2-e.x1,u=e.y2-e.y1,l=t.textBoxScale,d=S&&"never"===y?n:null;let p={box:[],offscreen:!1};const h="never"!==v?2*s.length:s.length;for(let n=0;n=s.length?v:"never",t,i,r,d);if(h&&((p=h.placedGlyphBoxes)&&p.box&&p.box.length)){b=!0,C=h.shift;break}}return p};r(()=>u(N,d.iconBox,e.WritingMode.horizontal),()=>{const n=d.verticalTextBox;return i.allowVerticalPlacement&&!(I&&I.box&&I.box.length)&&t.numVerticalGlyphVertices>0&&n?u(n,d.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}}),I&&(b=I.box,M=I.offscreen);const l=n(I&&I.box);if(!b&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(i,e.anchor,t,l))}}else{const o=(e,n)=>{const r=this.collisionIndex.placeCollisionBox(e,v,c,a,f.predicate);return r&&r.box&&r.box.length&&(this.markUsedOrientation(i,n,t),this.placedOrientations[t.crossTileID]=n),r};r(()=>o(N,e.WritingMode.horizontal),()=>{const n=d.verticalTextBox;return i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?o(n,e.WritingMode.vertical):{box:null,offscreen:null}}),n(I&&I.box&&I.box.length)}}if(b=(k=I)&&k.box&&k.box.length>0,M=k&&k.offscreen,t.useRuntimeCollisionCircles){const n=i.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),c=e.evaluateSizeForFeature(i.textSizeData,p,n),l=o.get("text-padding");z=this.collisionIndex.placeCollisionCircles(v,n,i.lineVertexArray,i.glyphOffsetArray,c,a,s,u,r,_,f.predicate,t.collisionCircleDiameter,l),b=g||z.circles.length>0&&!z.collisionDetected,M=M&&z.offscreen}if(d.iconFeatureIndex&&(D=d.iconFeatureIndex),d.iconBox){const e=e=>{const t=S&&C?Ae(e,C.x,C.y,w,_,this.transform.angle):e;return this.collisionIndex.placeCollisionBox(t,y,c,a,f.predicate)};L&&L.box&&L.box.length&&d.verticalIconBox?x=(A=e(d.verticalIconBox)).box.length>0:x=(A=e(d.iconBox)).box.length>0,M=M&&A.offscreen}const R=h||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,j=m||0===t.numIconVertices;if(R||j?j?R||(x=x&&b):b=x&&b:x=b=x&&b,b&&k&&k.box&&this.collisionIndex.insertCollisionBox(k.box,v,o.get("text-ignore-placement"),i.bucketInstanceId,L&&L.box&&O?O:P,f.ID),x&&A&&this.collisionIndex.insertCollisionBox(A.box,y,o.get("icon-ignore-placement"),i.bucketInstanceId,D,f.ID),z&&(b&&this.collisionIndex.insertCollisionCircles(z.circles,v,o.get("text-ignore-placement"),i.bucketInstanceId,P,f.ID),r)){const e=i.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new Ie);for(let e=0;e=0;--t){const n=e[t];M(i.symbolInstances.get(n),i.collisionArrays[n])}}else for(let e=t.symbolInstanceStart;e=0&&(t.text.placedSymbolArray.get(e).crossTileID=o>=0&&e!==o?0:r.crossTileID)}markUsedOrientation(t,n,r){const i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(const e of a)t.text.placedSymbolArray.get(e).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],o=i[e];o?(this.opacities[e]=new Me(o,r,t.text,t.icon),n=n||t.text!==o.text.placed||t.icon!==o.icon.placed):(this.opacities[e]=new Me(null,r,t.text,t.icon,t.skipFade),n=n||t.text||t.icon)}for(const e in i){const t=i[e];if(!this.opacities[e]){const i=new Me(t,r,!1,!1);i.isHidden()||(this.opacities[e]=i,n=n||t.text.placed||t.icon.placed)}}for(const e in o)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=o[e]);for(const e in a)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=a[e]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const n={};for(const r of t){const t=r.getBucket(e);t&&r.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,n,r.collisionBoxArray)}}updateBucketOpacities(t,n,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const i=t.layers[0].layout,o=new Me(null,0,!1,!1,!0),a=i.get("text-allow-overlap"),s=i.get("icon-allow-overlap"),u=i.get("text-variable-anchor"),c="map"===i.get("text-rotation-alignment"),l="map"===i.get("text-pitch-alignment"),d="none"!==i.get("icon-text-fit"),p=new Me(null,0,a&&(s||!t.hasIconData()||i.get("icon-optional")),s&&(a||!t.hasTextData()||i.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);const f=(e,t,n)=>{for(let r=0;r0,g=this.placedOrientations[i.crossTileID],y=g===e.WritingMode.vertical,b=g===e.WritingMode.horizontal||g===e.WritingMode.horizontalOnly;if(a>0||s>0){const e=Ve(m.text);f(t.text,a,y?$e:e),f(t.text,s,b?$e:e);const n=m.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=n||y?1:0)}),i.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=n||b?1:0);const r=this.variableOffsets[i.crossTileID];r&&this.markUsedJustification(t,r.anchor,i,g);const o=this.placedOrientations[i.crossTileID];o&&(this.markUsedJustification(t,"left",i,o),this.markUsedOrientation(t,o,i))}if(v){const e=Ve(m.icon),n=!(d&&i.verticalPlacedIconSymbolIndex&&y);i.placedIconSymbolIndex>=0&&(f(t.icon,i.numIconVertices,n?e:$e),t.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=m.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(f(t.icon,i.numVerticalIconVertices,n?$e:e),t.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const n=t.collisionArrays[r];if(n){let r=new e.pointGeometry(0,0);if(n.textBox||n.verticalTextBox){let e=!0;if(u){const t=this.variableOffsets[h];t?(r=ze(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),c&&r._rotate(l?this.transform.angle:-this.transform.angle)):e=!1}n.textBox&&Oe(t.textCollisionBox.collisionVertexArray,m.text.placed,!e||y,r.x,r.y),n.verticalTextBox&&Oe(t.textCollisionBox.collisionVertexArray,m.text.placed,!e||b,r.x,r.y)}const i=Boolean(!b&&n.verticalIconBox);n.iconBox&&Oe(t.iconCollisionBox.collisionVertexArray,m.icon.placed,i,d?r.x:0,d?r.y:0),n.verticalIconBox&&Oe(t.iconCollisionBox.collisionVertexArray,m.icon.placed,!i,d?r.x:0,d?r.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}}function Oe(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}const De=Math.pow(2,25),Ne=Math.pow(2,24),Re=Math.pow(2,17),je=Math.pow(2,16),Fe=Math.pow(2,9),Be=Math.pow(2,8),He=Math.pow(2,1);function Ve(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*De+t*Ne+n*Re+t*je+n*Fe+t*Be+n*He+t}const $e=0;class Ue{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,n,r,i){const o=this._bucketParts;for(;this._currentTileIndexe.sortKey-t.sortKey));this._currentPartIndex{const t=e.exported.now()-i;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=n[t[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=i)&&(!e.maxzoom||e.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new Ue(e)),this._inProgressLayer.continuePlacement(r[e.source],this.placement,this._showCollisionBoxes,e,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const Ye=512/e.EXTENT/2;class Ke{constructor(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(let n=0;ne.overscaledZ)for(const n in i){const o=i[n];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,r)}else{const o=i[e.scaledTo(Number(n)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let e=0;e{t[e]=!0});for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}const Qe=(t,n)=>e.emitValidationErrors(t,n&&n.filter(e=>"source.canvas"!==e.identifier)),Xe=e.pick(Q,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ze=e.pick(Q,["setCenter","setZoom","setBearing","setPitch"]),et=function(){const t={},n=e.spec.$version;for(const r in e.spec.$root){const i=e.spec.$root[r];if(i.required){let e=null;null!=(e="version"===r?n:"array"===i.type?[]:{})&&(t[r]=e)}}return t}();class tt extends e.Evented{constructor(t,n={}){super(),this.map=t,this.dispatcher=new S(G(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new g(t._requestManager,n.localIdeographFontFamily),this.lineAtlas=new _(256,512),this.crossTileSymbolIndex=new We,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const r=this;this._rtlTextPluginCallback=tt.registerForPluginStateChange(t=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(t,n)=>{if(e.triggerPluginCompletionEvent(t),n&&n.every(e=>e))for(const e in r.sourceCaches)r.sourceCaches[e].reload()})}),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.sourceCaches[e.sourceId];if(!t)return;const n=t.getSource();if(n&&n.vectorLayerIds)for(const e in this._layers){const t=this._layers[e];t.source===n.id&&this._validateLayer(t)}})}loadURL(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"}));const r="boolean"!=typeof n.validate||n.validate,i=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(i,(t,n)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):n&&this._load(n,r)})}loadJSON(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame(()=>{this._request=null,this._load(t,!1!==n.validate)})}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(et,!1)}_load(t,n){if(n&&Qe(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=t;for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);const r=W(this.stylesheet.layers);this._order=r.map(e=>e.id),this._layers={},this._serializedLayers={};for(let t of r)(t=e.createStyleLayer(t)).setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=t,this._serializedLayers[t.id]=t.serialize();this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}_loadSprite(t){this._spriteRequest=function(t,n,r,i){let o,a,s;const u=r>1?"@2x":"";let c=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,u,".json"),e.ResourceType.SpriteJSON),(e,t)=>{c=null,s||(s=e,o=t,d())}),l=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,u,".png"),e.ResourceType.SpriteImage),(e,t)=>{l=null,s||(s=e,a=t,d())});function d(){if(s)i(s);else if(o&&a){const t=e.exported.getImageData(a),n={};for(const r in o){const{width:i,height:a,x:s,y:u,sdf:c,pixelRatio:l,stretchX:d,stretchY:p,content:f}=o[r],h=new e.RGBAImage({width:i,height:a});e.RGBAImage.copy(t,h,{x:s,y:u},{x:0,y:0},{width:i,height:a}),n[r]={data:h,pixelRatio:l,sdf:c,stretchX:d,stretchY:p,content:f}}i(null,n)}}return{cancel(){c&&(c.cancel(),c=null),l&&(l.cancel(),l=null)}}}(t,this.map._requestManager,this.map.getPixelRatio(),(t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(n)for(const e in n)this.imageManager.addImage(e,n[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))})}_validateLayer(t){const n=this.sourceCaches[t.source];if(!n)return;const r=t.sourceLayer;if(!r)return;const i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const n of e){const e=this._layers[n];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(e.length||n.length)&&this._updateWorkerLayers(e,n);for(const e in this._updatedSources){const t=this._updatedSources[e];"reload"===t?this._reloadSource(e):"clear"===t&&this._clearSource(e)}this._updateTilesForChangedImages();for(const e in this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const r={};for(const e in this.sourceCaches){const t=this.sourceCaches[e];r[e]=t.used,t.used=!1}for(const e of this._order){const n=this._layers[e];n.recalculate(t,this._availableImages),!n.isHidden(t.zoom)&&n.source&&(this.sourceCaches[n.source].used=!0)}for(const t in r){const n=this.sourceCaches[t];r[t]!==n.used&&n.fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:t}))}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(t){if(this._checkLoaded(),Qe(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=W(t.layers);const n=function(e,t){if(!e)return[{command:Q.setStyle,args:[t]}];let n=[];try{if(!i(e.version,t.version))return[{command:Q.setStyle,args:[t]}];i(e.center,t.center)||n.push({command:Q.setCenter,args:[t.center]}),i(e.zoom,t.zoom)||n.push({command:Q.setZoom,args:[t.zoom]}),i(e.bearing,t.bearing)||n.push({command:Q.setBearing,args:[t.bearing]}),i(e.pitch,t.pitch)||n.push({command:Q.setPitch,args:[t.pitch]}),i(e.sprite,t.sprite)||n.push({command:Q.setSprite,args:[t.sprite]}),i(e.glyphs,t.glyphs)||n.push({command:Q.setGlyphs,args:[t.glyphs]}),i(e.transition,t.transition)||n.push({command:Q.setTransition,args:[t.transition]}),i(e.light,t.light)||n.push({command:Q.setLight,args:[t.light]});const r={},o=[];!function(e,t,n,r){let o;for(o in t=t||{},e=e||{})Object.prototype.hasOwnProperty.call(e,o)&&(Object.prototype.hasOwnProperty.call(t,o)||Z(o,n,r));for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Object.prototype.hasOwnProperty.call(e,o)?i(e[o],t[o])||("geojson"===e[o].type&&"geojson"===t[o].type&&te(e,t,o)?n.push({command:Q.setGeoJSONSourceData,args:[o,t[o].data]}):ee(o,t,n,r)):X(o,t,n))}(e.sources,t.sources,o,r);const a=[];e.layers&&e.layers.forEach(e=>{r[e.source]?n.push({command:Q.removeLayer,args:[e.id]}):a.push(e)}),n=n.concat(o),function(e,t,n){t=t||[];const r=(e=e||[]).map(re),o=t.map(re),a=e.reduce(ie,{}),s=t.reduce(ie,{}),u=r.slice(),c=Object.create(null);let l,d,p,f,h,m,v;for(l=0,d=0;l!(e.command in Ze));if(0===n.length)return!1;const r=n.filter(e=>!(e.command in Xe));if(r.length>0)throw new Error(`Unimplemented: ${r.map(e=>e.command).join(", ")}.`);return n.forEach(e=>{"setTransition"!==e.command&&this[e.command].apply(this,e.args)}),this.stylesheet=t,!0}addImage(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,n),this._afterImageUpdated(t)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,n,r={}){if(this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error(`Source "${t}" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,`sources.${t}`,n,null,r))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const i=this.sourceCaches[t]=new H(t,n,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:this.loaded(),source:i.serialize(),sourceId:t})),i.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(const n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${n}" is using it.`)));const n=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],n.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0}getSource(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()}addLayer(t,n,r={}){this._checkLoaded();const i=t.id;if(this.getLayer(i))return void this.fire(new e.ErrorEvent(new Error(`Layer "${i}" already exists on this map.`)));let o;if("custom"===t.type){if(Qe(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateStyle.layer,`layers.${i}`,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}const a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new e.ErrorEvent(new Error(`Cannot add layer "${i}" before non-existing layer "${n}".`)));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){const e=this._removedLayers[i];delete this._removedLayers[i],e.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const r=this._order.indexOf(t);this._order.splice(r,1);const i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new e.ErrorEvent(new Error(`Cannot move layer "${t}" before non-existing layer "${n}".`))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new e.ErrorEvent(new Error(`Cannot remove non-existing layer "${t}".`)));n.setEventedParent(null);const r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}setLayerZoomRange(t,n,r){this._checkLoaded();const i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,n,r={}){this._checkLoaded();const o=this.getLayer(t);if(o){if(!i(o.filter,n))return null==n?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(e.validateStyle.filter,`layers.${o.id}.filter`,n,null,r)||(o.filter=e.clone$1(n),this._updateLayer(o)))}else this.fire(new e.ErrorEvent(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return e.clone$1(this.getLayer(t).filter)}setLayoutProperty(t,n,r,o={}){this._checkLoaded();const a=this.getLayer(t);a?i(a.getLayoutProperty(n),r)||(a.setLayoutProperty(n,r,o),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,n){const r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,n,r,o={}){this._checkLoaded();const a=this.getLayer(t);a?i(a.getPaintProperty(n),r)||(a.setPaintProperty(n,r,o)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(t,n){this._checkLoaded();const r=t.source,i=t.sourceLayer,o=this.sourceCaches[r];if(void 0===o)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const a=o.getSource().type;"geojson"===a&&i?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(i,t.id,n)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,n){this._checkLoaded();const r=t.source,i=this.sourceCaches[r];if(void 0===i)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const o=i.getSource().type,a="vector"===o?t.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(a,t.id,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();const n=t.source,r=t.sourceLayer,i=this.sourceCaches[n];if(void 0!==i)return"vector"!==i.getSource().type||r?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(r,t.id)):void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new e.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,e=>e.serialize()),layers:this._serializeLayers(this._order)},e=>void 0!==e)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,n={},r=[];for(let i=this._order.length-1;i>=0;i--){const o=this._order[i];if(t(o)){n[o]=i;for(const t of e){const e=t[o];if(e)for(const t of e)r.push(t)}}}r.sort((e,t)=>t.intersectionZ-e.intersectionZ);const i=[];for(let o=this._order.length-1;o>=0;o--){const a=this._order[o];if(t(a))for(let e=r.length-1;e>=0;e--){const t=r[e].feature;if(n[t.layer.id]{const r=n.featureSortOrder;if(r){const n=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-n}return t.featureIndex-e.featureIndex});for(const e of i)t.push(e)}}for(const t in s)s[t].forEach(r=>{const i=r.feature,o=n[e[t].source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o});return s}(this._layers,this._serializedLayers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);const r=this.sourceCaches[t];return r?function(e,t){const n=e.getRenderableIds().map(t=>e.getTileByID(t)),r=[],i={};for(let e=0;ee.getTileByID(t)).sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}const r=this.crossTileSymbolIndex.addLayer(n,u[n.source],t.center.lng);a=a||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((o=o||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new qe(t,this._order,o,n,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,u[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}_releaseSymbolFadeTiles(){for(const e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();const r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,t.icons)}getGlyphs(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}getResource(t,n,r){return e.makeRequest(n,r)}}tt.getSourceType=function(e){return O[e]},tt.setSourceType=function(e,t){O[e]=t},tt.registerForPluginStateChange=e.registerForPluginStateChange;var nt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),rt={prelude:it("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),background:it("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:it("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:it("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:it("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:it("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),heatmapTexture:it("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:it("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:it("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:it("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),fill:it("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:it("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:it("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:it("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:it("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:it("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:it("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:it("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:it("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),lineGradient:it("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),linePattern:it("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:it("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:it("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:it("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),symbolSDF:it("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:it("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}")};function it(e,t){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:e=e.replace(n,(e,t,n,r,i)=>(s[i]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nvarying ${n} ${r} ${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = u_${i};\n#endif\n`)),vertexSource:t=t.replace(n,(e,t,n,r,i)=>{const o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nattribute ${n} ${o} a_${i};\nvarying ${n} ${r} ${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = a_${i};\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = unpack_mix_${a}(a_${i}, u_${i}_t);\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nattribute ${n} ${o} a_${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = a_${i};\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = unpack_mix_${a}(a_${i}, u_${i}_t);\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`}),staticAttributes:r,staticUniforms:a}}class ot{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,n,r,i,o,a,s){this.context=e;let u=this.boundPaintVertexBuffers.length!==r.length;for(let e=0;!u&&e>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}const ct=(t,n,r,i)=>{const o=n.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],u=function(){var t=new e.ARRAY_TYPE(9);return e.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}();"viewport"===o.properties.get("anchor")&&function(e,t){var n=Math.sin(t),r=Math.cos(t);e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1}(u,-n.transform.angle),function(e,t,n){var r=s[0],i=s[1],o=s[2];e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8]}(s,0,u);const c=o.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+r,u_opacity:i}},lt=(t,n,r,i,o,a,s)=>e.extend(ct(t,n,r,i),ut(a,n,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8}),dt=e=>({u_matrix:e}),pt=(t,n,r,i)=>e.extend(dt(t),ut(r,n,i)),ft=(e,t)=>({u_matrix:e,u_world:t}),ht=(t,n,r,i,o)=>e.extend(pt(t,n,r,i),{u_world:o}),mt=(e,t,n,r)=>{const i=e.transform;let o,a;if("map"===r.paint.get("circle-pitch-alignment")){const e=Ee(n,1,i.zoom);o=!0,a=[e,e]}else o=!1,a=i.pixelsToGLUnits;return{u_camera_to_center_distance:i.cameraToCenterDistance,u_scale_with_map:+("map"===r.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(t.posMatrix,n,r.paint.get("circle-translate"),r.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.pixelRatio,u_extrude_scale:a}},vt=(e,t,n)=>{const r=Ee(n,1,t.zoom),i=Math.pow(2,t.zoom-n.tileID.overscaledZ),o=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*i),t.pixelsToGLUnits[1]/(r*i)],u_overscale_factor:o}},gt=(e,t,n=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}),yt=e=>({u_matrix:e}),bt=(e,t,n,r)=>({u_matrix:e,u_extrude_scale:Ee(t,1,n),u_intensity:r});function wt(t,n){const r=Math.pow(2,n.canonical.z),i=n.canonical.y;return[new e.MercatorCoordinate(0,i/r).toLngLat().lat,new e.MercatorCoordinate(0,(i+1)/r).toLngLat().lat]}const _t=(e,t,n)=>{const r=e.transform;return{u_matrix:Mt(e,t,n),u_ratio:1/Ee(t,1,r.zoom),u_device_pixel_ratio:e.pixelRatio,u_units_to_pixels:[1/r.pixelsToGLUnits[0],1/r.pixelsToGLUnits[1]]}},St=(t,n,r,i)=>e.extend(_t(t,n,r),{u_image:0,u_image_height:i}),xt=(e,t,n,r)=>{const i=e.transform,o=Tt(t,i);return{u_matrix:Mt(e,t,n),u_texsize:t.imageAtlasTexture.size,u_ratio:1/Ee(t,1,i.zoom),u_device_pixel_ratio:e.pixelRatio,u_image:0,u_scale:[o,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Et=(t,n,r,i,o)=>{const a=t.lineAtlas,s=Tt(n,t.transform),u="round"===r.layout.get("line-cap"),c=a.getDash(i.from,u),l=a.getDash(i.to,u),d=c.width*o.fromScale,p=l.width*o.toScale;return e.extend(_t(t,n,r),{u_patternscale_a:[s/d,-c.height/2],u_patternscale_b:[s/p,-l.height/2],u_sdfgamma:a.width/(256*Math.min(d,p)*t.pixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:l.y,u_mix:o.t})};function Tt(e,t){return 1/Ee(e,1,t.tileZoom)}function Mt(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}const Ct=(e,t,n,r,i)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:function(e){e*=Math.PI/180;const t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}(i.paint.get("raster-hue-rotate"))};var o,a};const It=(e,t,n,r,i,o,a,s,u,c)=>{const l=i.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:l.cameraToCenterDistance,u_pitch:l.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:l.width/l.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+u,u_pitch_with_map:+r,u_texsize:c,u_texture:0}},Lt=(t,n,r,i,o,a,s,u,c,l,d)=>{const p=o.transform;return e.extend(It(t,n,r,i,o,a,s,u,c,l),{u_gamma_scale:i?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:o.pixelRatio,u_is_halo:+d})},kt=(t,n,r,i,o,a,s,u,c,l)=>e.extend(Lt(t,n,r,i,o,a,s,u,!0,c,!0),{u_texsize_icon:l,u_texture_icon:1}),zt=(e,t,n)=>({u_matrix:e,u_opacity:t,u_color:n}),At=(t,n,r,i,o,a)=>e.extend(function(e,t,n,r){const i=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),{width:a,height:s}=n.imageManager.getPixelSize(),u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,l=c*(r.tileID.canonical.x+r.tileID.wrap*u),d=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[a,s],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Ee(r,1,n.transform.tileZoom),u_pixel_coord_upper:[l>>16,d>>16],u_pixel_coord_lower:[65535&l,65535&d]}}(i,a,r,o),{u_matrix:t,u_opacity:n}),Pt={fillExtrusion:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}),fillExtrusionPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}),fill:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),fillPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}),fillOutline:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}),fillOutlinePattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}),circle:(t,n)=>({u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),collisionBox:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}),collisionCircle:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}),debug:(t,n)=>({u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}),clippingMask:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),heatmap:(t,n)=>({u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),heatmapTexture:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}),hillshade:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}),hillshadePrepare:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}),line:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}),lineGradient:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image),u_image_height:new e.Uniform1f(t,n.u_image_height)}),linePattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}),lineSDF:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}),raster:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}),symbolIcon:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}),symbolSDF:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}),symbolTextAndIcon:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}),background:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}),backgroundPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)})};class Ot{constructor(e,t,n){this.context=e;const r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Dt={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Nt{constructor(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;const i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n0){const n=e.create(),r=y;e.mul(n,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(n,n,g.placementViewportMatrix),d.push({circleArray:w,circleOffset:f,transform:r,invTransform:n}),f=p+=w.length/4}b&&l.draw(u,c.LINES,Sn.disabled,xn.disabled,t.colorModeForRenderPass(),En.disabled,vt(y,t.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,t.transform.zoom,null,null,b.collisionVertexBuffer)}if(!s||!d.length)return;const h=t.useProgram("collisionCircle"),m=new e.CollisionCircleLayoutArray;m.resize(4*p),m._trim();let v=0;for(const e of d)for(let t=0;t=0&&(h[m.associatedIconIndex]={shiftedAnchor:E,angle:T})}else we(m.numGlyphs,p)}if(l){f.clear();const n=t.icon.placedSymbolArray;for(let t=0;te.sortKey-t.sortKey);for(const e of E){const n=e.state;if(f.activeTexture.set(h.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,h.CLAMP_TO_EDGE),n.atlasTextureIcon&&(f.activeTexture.set(h.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,h.CLAMP_TO_EDGE)),n.isSDF){const i=n.uniformValues;n.hasHalo&&(i.u_is_halo=1,An(n.buffers,e.segments,r,t,n.program,S,d,p,i)),i.u_is_halo=0}An(n.buffers,e.segments,r,t,n.program,S,d,p,n.uniformValues)}}function An(e,t,n,r,i,o,a,s,u){const c=r.context;i.draw(c,c.gl.TRIANGLES,o,a,s,En.disabled,u,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Pn(e,t,n,r,i,o,a){const s=e.context.gl,u=n.paint.get("fill-pattern"),c=u&&u.constantOr(1),l=n.getCrossfadeParameters();let d,p,f,h,m;a?(p=c&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",d=s.LINES):(p=c?"fillPattern":"fill",d=s.TRIANGLES);for(const v of r){const r=t.getTile(v);if(c&&!r.patternsLoaded())continue;const g=r.getBucket(n);if(!g)continue;const y=g.programConfigurations.get(n.id),b=e.useProgram(p,y);c&&(e.context.activeTexture.set(s.TEXTURE0),r.imageAtlasTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),y.updatePaintBuffers(l));const w=u.constantOr(null);if(w&&r.imageAtlas){const e=r.imageAtlas,t=e.patternPositions[w.to.toString()],n=e.patternPositions[w.from.toString()];t&&n&&y.setConstantPatternPositions(t,n)}const _=e.translatePosMatrix(v.posMatrix,r,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){h=g.indexBuffer2,m=g.segments2;const t=[s.drawingBufferWidth,s.drawingBufferHeight];f="fillOutlinePattern"===p&&c?ht(_,e,l,r,t):ft(_,t)}else h=g.indexBuffer,m=g.segments,f=c?pt(_,e,l,r):dt(_);b.draw(e.context,d,i,e.stencilModeForClipping(v),o,En.disabled,f,n.id,g.layoutVertexBuffer,h,m,n.paint,e.transform.zoom,y)}}function On(e,t,n,r,i,o,a){const s=e.context,u=s.gl,c=n.paint.get("fill-extrusion-pattern"),l=c.constantOr(1),d=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity");for(const f of r){const r=t.getTile(f),h=r.getBucket(n);if(!h)continue;const m=h.programConfigurations.get(n.id),v=e.useProgram(l?"fillExtrusionPattern":"fillExtrusion",m);l&&(e.context.activeTexture.set(u.TEXTURE0),r.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),m.updatePaintBuffers(d));const g=c.constantOr(null);if(g&&r.imageAtlas){const e=r.imageAtlas,t=e.patternPositions[g.to.toString()],n=e.patternPositions[g.from.toString()];t&&n&&m.setConstantPatternPositions(t,n)}const y=e.translatePosMatrix(f.posMatrix,r,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),b=n.paint.get("fill-extrusion-vertical-gradient"),w=l?lt(y,e,b,p,f,d,r):ct(y,e,b,p);v.draw(s,s.gl.TRIANGLES,i,o,a,En.backCCW,w,n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,m)}}function Dn(e,t,n,r,i,o){const a=e.context,s=a.gl,u=t.fbo;if(!u)return;const c=e.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,u.colorAttachment.get());const l=((e,t,n)=>{const r=n.paint.get("hillshade-shadow-color"),i=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color");let a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=e.transform.angle);const s=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),s),u_image:0,u_latrange:wt(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:i,u_accent:o}})(e,t,n);c.draw(a,s.TRIANGLES,r,i,o,En.disabled,l,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}function Nn(t,n,r,i,o,a){const s=t.context,u=s.gl,c=n.dem;if(c&&c.data){const l=c.dim,p=c.stride,f=c.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(p),n.demTexture){const e=n.demTexture;e.update(f,{premultiply:!1}),e.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new d(s,f,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);let h=n.fbo;if(!h){const e=new d(s,{width:l,height:l,data:null},u.RGBA);e.bind(u.LINEAR,u.CLAMP_TO_EDGE),(h=n.fbo=s.createFramebuffer(l,l,!0)).colorAttachment.set(e.texture)}s.bindFramebuffer.set(h.framebuffer),s.viewport.set([0,0,l,l]),t.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,i,o,a,En.disabled,((t,n)=>{const r=n.stride,i=e.create();return e.ortho(i,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(i,i,[0,-e.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:n.getUnpackVector()}})(n.tileID,c),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function Rn(t,n,r,i,o){const a=i.paint.get("raster-fade-duration");if(a>0){const i=e.exported.now(),s=(i-t.timeAdded)/a,u=n?(i-n.timeAdded)/a:-1,c=r.getSource(),l=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-l)>Math.abs(t.tileID.overscaledZ-l),p=d&&t.refreshedUponExpiration?1:e.clamp(d?s:1-u,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}const jn=new e.Color(1,0,0,1),Fn=new e.Color(0,1,0,1),Bn=new e.Color(0,0,1,1),Hn=new e.Color(1,0,1,1),Vn=new e.Color(0,1,1,1);function $n(e,t,n,r){qn(e,0,t+n/2,e.transform.width,n,r)}function Un(e,t,n,r){qn(e,t-n/2,0,n,e.transform.height,r)}function qn(e,t,n,r,i,o){const a=e.context,s=a.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,n*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio),a.clear({color:o}),s.disable(s.SCISSOR_TEST)}function Yn(t,n,r){const i=t.context,o=i.gl,a=r.posMatrix,s=t.useProgram("debug"),u=Sn.disabled,c=xn.disabled,l=t.colorModeForRenderPass(),d="$debug";i.activeTexture.set(o.TEXTURE0),t.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,u,c,l,En.disabled,gt(a,e.Color.red),d,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);const p=n.getTileByID(r.key).latestRawTileData,f=Math.floor((p&&p.byteLength||0)/1024),h=n.getTile(r).tileSize,m=512/Math.min(h,512)*(r.overscaledZ/t.transform.zoom)*.5;let v=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(v+=` => ${r.overscaledZ}`),function(e,t){e.initDebugOverlayCanvas();const n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,`${v} ${f}kb`),s.draw(i,o.TRIANGLES,u,c,wn.alphaBlended,En.disabled,gt(a,e.Color.transparent,m),d,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}const Kn={symbol:function(t,n,r,i,o){if("translucent"!==t.renderPass)return;const a=xn.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){const u=n.transform,c="map"===o,l="map"===a;for(const o of t){const t=i.getTile(o),a=t.getBucket(r);if(!a||!a.text||!a.text.segments.get().length)continue;const d=e.evaluateSizeForZoom(a.textSizeData,u.zoom),p=Ee(t,1,n.transform.zoom),f=ue(o.posMatrix,l,c,n.transform,p),h="none"!==r.layout.get("icon-text-fit")&&a.hasIconData();if(d){const e=Math.pow(2,u.zoom-t.tileID.overscaledZ);Ln(a,c,l,s,u,f,o.posMatrix,e,d,h)}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&zn(t,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&zn(t,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,s),n.map.showCollisionBoxes&&(Mn(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Mn(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),u=!r.layout.get("circle-sort-key").isConstant();if(0===o.constantOr(1)&&(0===a.constantOr(1)||0===s.constantOr(1)))return;const c=t.context,l=c.gl,d=t.depthModeForSublayer(0,Sn.ReadOnly),p=xn.disabled,f=t.colorModeForRenderPass(),h=[];for(let o=0;oe.sortKey-t.sortKey);for(const e of h){const{programConfiguration:n,program:i,layoutVertexBuffer:o,indexBuffer:a,uniformValues:s}=e.state;i.draw(c,l.TRIANGLES,d,p,f,En.disabled,s,r.id,o,a,e.segments,r.paint,t.transform.zoom,n)}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,a=o.gl,s=xn.disabled,u=new wn([a.ONE,a.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){const r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let i=n.heatmapFbo;if(i)r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.framebuffer);else{const o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),function(e,t,n,r){const i=e.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t.width/4,t.height/4,0,i.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(e,t,o,i=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1))}}(o,t,r),o.clear({color:e.Color.transparent});for(let e=0;e{const o=e.create();e.ortho(o,0,t.width,t.height,0,0,1);const a=t.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}})(t,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}(t,r))},line:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0===o.constantOr(1)||0===a.constantOr(1))return;const s=t.depthModeForSublayer(0,Sn.ReadOnly),u=t.colorModeForRenderPass(),c=r.paint.get("line-dasharray"),l=r.paint.get("line-pattern"),p=l.constantOr(1),f=r.paint.get("line-gradient"),h=r.getCrossfadeParameters(),m=p?"linePattern":c?"lineSDF":f?"lineGradient":"line",v=t.context,g=v.gl;let y=!0;for(const o of i){const i=n.getTile(o);if(p&&!i.patternsLoaded())continue;const a=i.getBucket(r);if(!a)continue;const b=a.programConfigurations.get(r.id),w=t.context.program.get(),_=t.useProgram(m,b),S=y||_.program!==w,x=l.constantOr(null);if(x&&i.imageAtlas){const e=i.imageAtlas,t=e.patternPositions[x.to.toString()],n=e.patternPositions[x.from.toString()];t&&n&&b.setConstantPatternPositions(t,n)}const E=p?xt(t,i,r,h):c?Et(t,i,r,c,h):f?St(t,i,r,a.lineClipsArray.length):_t(t,i,r);if(p)v.activeTexture.set(g.TEXTURE0),i.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),b.updatePaintBuffers(h);else if(c&&(S||t.lineAtlas.dirty))v.activeTexture.set(g.TEXTURE0),t.lineAtlas.bind(v);else if(f){const i=a.gradients[r.id];let s=i.texture;if(r.gradientVersion!==i.version){let u=256;if(r.stepInterpolant){const r=n.getSource().maxzoom,i=o.canonical.z===r?Math.ceil(1<e.transformMat4([],n,t)).map(t=>e.scale$1([],t,1/t[3]/n*i)),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=function(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}([],function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],u=n[2];return e[0]=i*u-o*s,e[1]=o*a-r*u,e[2]=r*s-i*a,e}([],c([],o[e[0]],o[e[1]]),c([],o[e[2]],o[e[1]]))),n=-((r=t)[0]*(i=o[e[1]])[0]+r[1]*i[1]+r[2]*i[2]);var r,i;return t.concat(n)});return new Gn(o,a)}}class Jn{constructor(e,t){this.min=e,this.max=t,this.center=function(e,t,n){return e[0]=.5*t[0],e[1]=.5*t[1],e[2]=.5*t[2],e}([],function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}([],this.min,this.max))}quadrant(e){const t=[e%2==0,e<2],n=s(this.min),r=s(this.max);for(let e=0;e=0&&a++;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(let e=0;e<3;e++){let n=Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let i=0;ithis.max[e]-this.min[e])return 0}return 1}}class Wn{constructor(e=0,t=0,n=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r}interpolate(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this}getCenter(t,n){const r=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.pointGeometry(r,i)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new Wn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class Qn{constructor(t,n,r,i,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||!!o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Wn,this._posMatrixCache={},this._alignedPosMatrixCache={}}clone(){const e=new Qn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.pointGeometry(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){const n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=function(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}(),function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);e[0]=r*u+o*s,e[1]=i*u+a*s,e[2]=r*-s+o*u,e[3]=i*-s+a*u}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies){const r=this.pointCoordinate(new e.pointGeometry(0,0)),i=this.pointCoordinate(new e.pointGeometry(this.width,0)),o=this.pointCoordinate(new e.pointGeometry(this.width,this.height)),a=this.pointCoordinate(new e.pointGeometry(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),u=Math.floor(Math.max(r.x,i.x,o.x,a.x)),c=1;for(let r=s-c;r<=u+c;r++)0!==r&&n.push(new e.UnwrappedTileID(r,t))}return n}coveringTiles(t){let n=this.coveringZoomLevel(t);const r=n;if(void 0!==t.minzoom&&nt.maxzoom&&(n=t.maxzoom);const i=e.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=Gn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n);let u=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);const c=e=>({aabb:new Jn([e*o,0,0],[(e+1)*o,o,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}),d=[],p=[],f=n,h=t.reparseOverscaled?r:n;if(this._renderWorldCopies)for(let e=1;e<=3;e++)d.push(c(-e)),d.push(c(e));for(d.push(c(0));d.length>0;){const t=d.pop(),n=t.x,r=t.y;let i=t.fullyVisible;if(!i){const e=t.aabb.intersects(s);if(0===e)continue;i=2===e}const o=t.aabb.distanceX(a),c=t.aabb.distanceY(a),m=Math.max(Math.abs(o),Math.abs(c)),v=3+(1<v&&t.zoom>=u)p.push({tileID:new e.OverscaledTileID(t.zoom===f?h:t.zoom,t.wrap,t.zoom,n,r),distanceSq:l([a[0]-.5-n,a[1]-.5-r])});else for(let e=0;e<4;e++){const o=(n<<1)+e%2,a=(r<<1)+(e>>1);d.push({aabb:t.aabb.quadrant(e),zoom:t.zoom+1,x:o,y:a,wrap:t.wrap,fullyVisible:i})}}return p.sort((e,t)=>e.distanceSq-t.distanceSq).map(e=>e.tileID)}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.pointGeometry(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)}unproject(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}setLocationAtPoint(t,n){const r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),a=new e.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e){return this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}locationCoordinate(t){return e.MercatorCoordinate.fromLngLat(t)}coordinateLocation(e){return e.toLngLat()}pointCoordinate(t){const n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);const i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,u=n[2]/i,c=r[2]/o,l=u===c?0:(0-u)/(c-u);return new e.MercatorCoordinate(e.number(n[0]/i,r[0]/o,l)/this.worldSize,e.number(a,s,l)/this.worldSize)}coordinatePoint(t){const n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.pointGeometry(n[0]/n[3],n[1]/n[3])}getBounds(){return(new e.LngLatBounds).extend(this.pointLocation(new e.pointGeometry(0,0))).extend(this.pointLocation(new e.pointGeometry(this.width,0))).extend(this.pointLocation(new e.pointGeometry(this.width,this.height))).extend(this.pointLocation(new e.pointGeometry(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(t,n=!1){const r=t.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];const o=t.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*t.wrap,u=e.identity(new Float64Array(16));return e.translate(u,u,[s*a,o.y*a,0]),e.scale(u,u,[a/e.EXTENT,a/e.EXTENT,1]),e.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),i[r]=new Float32Array(u),i[r]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t,n,r,i,o=-90,a=90,s=-180,u=180;const c=this.size,l=this._unmodified;if(this.latRange){const n=this.latRange;o=e.mercatorYfromLat(n[1])*this.worldSize,t=(a=e.mercatorYfromLat(n[0])*this.worldSize)-oa&&(i=a-t)}if(this.lngRange){const e=d.x,t=c.x/2;e-tu&&(r=u-t)}void 0===r&&void 0===i||(this.center=this.unproject(new e.pointGeometry(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=l,this._constraining=!1}_calcMatrices(){if(!this.height)return;const t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;const n=Math.PI/2+this._pitch,r=this._fov*(.5+t.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50;let l=new Float64Array(16);e.perspective(l,this._fov,this.width/this.height,c,u),l[8]=2*-t.x/this.width,l[9]=2*t.y/this.height,e.scale(l,l,[1,-1,1]),e.translate(l,l,[0,0,-this.cameraToCenterDistance]),e.rotateX(l,l,this._pitch),e.rotateZ(l,l,this.angle),e.translate(l,l,[-a,-s,0]),this.mercatorMatrix=e.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),e.scale(l,l,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize]),this.projMatrix=l,this.invProjMatrix=e.invert([],this.projMatrix);const d=this.width%2/2,p=this.height%2/2,f=Math.cos(this.angle),h=Math.sin(this.angle),m=a-Math.round(a)+f*d+h*p,v=s-Math.round(s)+f*p+h*d,g=new Float64Array(l);if(e.translate(g,g,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=g,l=e.create(),e.scale(l,l,[this.width/2,-this.height/2,1]),e.translate(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=e.create(),e.scale(l,l,[1,-1,1]),e.translate(l,l,[-1,-1,0]),e.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(l=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const t=this.pointCoordinate(new e.pointGeometry(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.pointGeometry(0,t))}getCameraQueryGeometry(t){const n=this.getCameraPoint();if(1===t.length)return[t[0],n];{let r=n.x,i=n.y,o=n.x,a=n.y;for(const e of t)r=Math.min(r,e.x),i=Math.min(i,e.y),o=Math.max(o,e.x),a=Math.max(a,e.y);return[new e.pointGeometry(r,i),new e.pointGeometry(o,i),new e.pointGeometry(o,a),new e.pointGeometry(r,a),new e.pointGeometry(r,i)]}}}const Xn={linearity:.3,easing:e.bezier(0,0,.3,1)},Zn=e.extend({deceleration:2500,maxSpeed:1400},Xn),er=e.extend({deceleration:20,maxSpeed:1400},Xn),tr=e.extend({deceleration:1e3,maxSpeed:360},Xn),nr=e.extend({deceleration:1e3,maxSpeed:90},Xn);class rr{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=e.exported.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new e.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(n.pan.mag()){const o=or(n.pan.mag(),r,e.extend({},Zn,t||{}));i.offset=n.pan.mult(o.amount/n.pan.mag()),i.center=this._map.transform.center,ir(i,o)}if(n.zoom){const e=or(n.zoom,r,er);i.zoom=this._map.transform.zoom+e.amount,ir(i,e)}if(n.bearing){const t=or(n.bearing,r,tr);i.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),ir(i,t)}if(n.pitch){const e=or(n.pitch,r,nr);i.pitch=this._map.transform.pitch+e.amount,ir(i,e)}if(i.zoom||i.bearing){const e=void 0===n.pinchAround?n.around:n.pinchAround;i.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),e.extend(i,{noMoveStart:!0})}}function ir(e,t){(!e.duration||e.durationn.unproject(e)),u=a.reduce((e,t,n,r)=>e.add(t.div(r.length)),new e.pointGeometry(0,0));super(t,{points:a,point:u,lngLats:s,lngLat:n.unproject(u),originalEvent:r}),this._defaultPrevented=!1}preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}}class ur extends e.Event{constructor(e,t,n){super(e,{originalEvent:n}),this._defaultPrevented=!1}preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}}class cr{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new ur(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new ar(e.type,this._map,e))}mouseup(e){this._map.fire(new ar(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new ar(e.type,this._map,e))}dblclick(e){return this._firePreventable(new ar(e.type,this._map,e))}mouseover(e){this._map.fire(new ar(e.type,this._map,e))}mouseout(e){this._map.fire(new ar(e.type,this._map,e))}touchstart(e){return this._firePreventable(new sr(e.type,this._map,e))}touchmove(e){this._map.fire(new sr(e.type,this._map,e))}touchend(e){this._map.fire(new sr(e.type,this._map,e))}touchcancel(e){this._map.fire(new sr(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class lr{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent}mousemove(e){this._map.fire(new ar(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ar("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new ar(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class dr{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(o.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const n=t;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)e.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair","mapboxgl-crosshair"),this._box&&(o.remove(this._box),this._box=null),o.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))}}function pr(e,t){const n={};for(let r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){const n=new e.pointGeometry(0,0);for(const e of t)n._add(e);return n.div(t.length)}(n),this.touches=pr(r,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;const r=pr(n,t);for(const e in this.touches){const t=this.touches[e],n=r[e];(!n||n.dist(t)>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class hr{constructor(e){this.singleTap=new fr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){const r=this.singleTap.touchend(e,t,n);if(r){const t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(r)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class mr{constructor(){this._zoomIn=new hr({numTouches:1,numTaps:2}),this._zoomOut=new hr({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){const r=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n);return r?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(r)},{originalEvent:e})}):i?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const vr={0:1,2:2};class gr{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const n=o.mouseButton(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}mousemoveWindow(e,t){const n=this._lastPoint;if(n)if(e.preventDefault(),function(e,t){const n=vr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)0&&(this._active=!0);const i=pr(r,n),o=new e.pointGeometry(0,0),a=new e.pointGeometry(0,0);let s=0;for(const e in i){const t=i[e],n=this._touches[e];n&&(o._add(t),a._add(t.sub(n)),s++,i[e]=t)}if(this._touches=i,sMath.abs(e.x)}class Lr extends Sr{reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}_start(e){this._lastPoints=e,Ir(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,n){const r=e[0].sub(this._lastPoints[0]),i=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;const r=e.mag()>=2,i=t.mag()>=2;if(!r&&!i)return;if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Ir(e)&&Ir(t)&&o}}const kr={panStep:100,bearingStep:15,pitchStep:10};class zr{constructor(){const e=kr;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,r=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:a=>{const s=a.getZoom();a.easeTo({duration:300,easeId:"keyboardHandler",easing:Ar,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+n*this._bearingStep,pitch:a.getPitch()+r*this._pitchStep,offset:[-i*this._panStep,-o*this._panStep],center:a.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Ar(e){return e*(2-e)}const Pr=4.000244140625;class Or{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const r=e.exported.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%Pr==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const n=o.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Pr?this._wheelZoomRate:this._defaultZoomRate;let n=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==n&&(n=1/n);const r="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(r*n))),"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const n="number"==typeof this._targetZoom?this._targetZoom:t.zoom,r=this._startZoom,i=this._easing;let o,a=!1;if("wheel"===this._type&&r&&i){const t=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),s=i(t);o=e.number(r,n,s),t<1?this._frameId||(this._frameId=!0):a=!0}else o=n,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:o-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=e.ease;if(this._prevEase){const t=this._prevEase,r=(e.exported.now()-t.start)/t.duration,i=t.easing(r+.01)-t.easing(r),o=.27/Math.sqrt(i*i+1e-4)*.01,a=Math.sqrt(.0729-o*o);n=e.bezier(o,a,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:n},n}reset(){this._active=!1}}class Dr{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Nr{constructor(){this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Rr{constructor(){this._tap=new hr({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class jr{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fr{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Br{constructor(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Hr=e=>e.zoom||e.drag||e.pitch||e.rotate;class Vr extends e.Event{}function $r(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}const Ur={extend:(t,...n)=>e.extend(t,...n),run(e){e()},logToElement(e,t=!1,n="log"){const r=window.document.getElementById(n);r&&(t&&(r.innerHTML=""),r.innerHTML+=`
${e}`)}};class qr{constructor(t={}){this.options=t,e.bindAll(["_toggleAttribution","_updateData","_updateCompact","_updateCompactMinimize"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options&&this.options.compact,this._container=o.create("details","maplibregl-ctrl maplibregl-ctrl-attrib mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("summary","maplibregl-ctrl-attrib-button mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","maplibregl-ctrl-attrib-inner mapboxgl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const n=this._map._getUIString(`AttributionControl.${t}`);e.title=n,e.setAttribute("aria-label",n)}_toggleAttribution(){this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show")):(this._container.classList.add("maplibregl-compact-show","mapboxgl-compact-show"),this._container.removeAttribute("open")))}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||this._updateAttributions()}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(e=>"string"!=typeof e?"":e)):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style.sourceCaches;for(const n in t){const r=t[n];if(r.used){const t=r.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}(e=e.filter(e=>String(e).trim())).sort((e,t)=>e.length-t.length);const n=(e=e.filter((t,n)=>{for(let r=n+1;r=0)return!1;return!0})).join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("maplibregl-attrib-empty","mapboxgl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty","mapboxgl-attrib-empty"),this._updateCompact(),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","mapboxgl-compact","maplibregl-compact-show","mapboxgl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show","mapboxgl-compact","mapboxgl-compact-show"))}_updateCompactMinimize(){this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show")}}class Yr{constructor(t={}){this.options=t,e.bindAll(["_updateCompact"],this)}getDefaultPosition(){return"bottom-left"}onAdd(e){this._map=e,this._compact=this.options&&this.options.compact,this._container=o.create("div","maplibregl-ctrl mapboxgl-ctrl");const t=o.create("a","maplibregl-ctrl-logo mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){o.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&t.classList.add("maplibregl-compact","mapboxgl-compact"):t.classList.remove("maplibregl-compact","mapboxgl-compact")}}}const Kr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},Gr={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,fadeDuration:300,crossSourceCollisions:!0},Jr={showCompass:!0,showZoom:!0,visualizePitch:!1};class Wr{constructor(t,n,r=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new br({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,r&&(this.mousePitch=new wr({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),o.addEventListener(n,"mousedown",this.mousedown),o.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),o.addEventListener(n,"touchmove",this.touchmove),o.addEventListener(n,"touchend",this.touchend),o.addEventListener(n,"touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),o.disableDrag()}move(e,t){const n=this.map,r=this.mouseRotate.mousemoveWindow(e,t);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){const r=this.mousePitch.mousemoveWindow(e,t);r&&r.pitchDelta&&n.setPitch(n.getPitch()+r.pitchDelta)}}off(){const e=this.element;o.removeEventListener(e,"mousedown",this.mousedown),o.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),o.removeEventListener(e,"touchmove",this.touchmove),o.removeEventListener(e,"touchend",this.touchend),o.removeEventListener(e,"touchcancel",this.reset),this.offTemp()}offTemp(){o.enableDrag(),o.removeEventListener(window,"mousemove",this.mousemove),o.removeEventListener(window,"mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),o.mousePos(this.element,t)),o.addEventListener(window,"mousemove",this.mousemove),o.addEventListener(window,"mouseup",this.mouseup)}mousemove(e){this.move(e,o.mousePos(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)180;){const e=r.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}const Xr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Zr(e,t,n){const r=e.classList;for(const e in Xr)r.remove(`maplibregl-${n}-anchor-${e}`,`mapboxgl-${n}-anchor-${e}`);r.add(`maplibregl-${n}-anchor-${t}`,`mapboxgl-${n}-anchor-${t}`)}class ei extends e.Evented{constructor(t,n){if(super(),(t instanceof HTMLElement||n)&&(t=e.extend({element:t},n)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=e.pointGeometry.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");const n=o.createNS("http://www.w3.org/2000/svg","svg"),r=41,i=27;n.setAttributeNS(null,"display","block"),n.setAttributeNS(null,"height",`${r}px`),n.setAttributeNS(null,"width",`${i}px`),n.setAttributeNS(null,"viewBox",`0 0 ${i} ${r}`);const a=o.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");const s=o.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");const u=o.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"transform","translate(3.0, 29.0)"),u.setAttributeNS(null,"fill","#000000");const c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const e of c){const t=o.createNS("http://www.w3.org/2000/svg","ellipse");t.setAttributeNS(null,"opacity","0.04"),t.setAttributeNS(null,"cx","10.5"),t.setAttributeNS(null,"cy","5.80029008"),t.setAttributeNS(null,"rx",e.rx),t.setAttributeNS(null,"ry",e.ry),u.appendChild(t)}const l=o.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"fill",this._color);const d=o.createNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),l.appendChild(d);const p=o.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"opacity","0.25"),p.setAttributeNS(null,"fill","#000000");const f=o.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),p.appendChild(f);const h=o.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"transform","translate(6.0, 7.0)"),h.setAttributeNS(null,"fill","#FFFFFF");const m=o.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(8.0, 8.0)");const v=o.createNS("http://www.w3.org/2000/svg","circle");v.setAttributeNS(null,"fill","#000000"),v.setAttributeNS(null,"opacity","0.25"),v.setAttributeNS(null,"cx","5.5"),v.setAttributeNS(null,"cy","5.5"),v.setAttributeNS(null,"r","5.4999962");const g=o.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#FFFFFF"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962"),m.appendChild(v),m.appendChild(g),s.appendChild(u),s.appendChild(l),s.appendChild(p),s.appendChild(h),s.appendChild(m),n.appendChild(s),n.setAttributeNS(null,"height",r*this._scale+"px"),n.setAttributeNS(null,"width",i*this._scale+"px"),this._element.appendChild(n),this._offset=e.pointGeometry.convert(t&&t.offset||[0,-14])}this._element.classList.add("maplibregl-marker","mapboxgl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()}),Zr(this._element,this._anchor,"marker"),this._popup=null}addTo(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),o.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(t-n+r)],"bottom-right":[-r,-1*(t-n+r)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}_onKeyPress(e){const t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this}_update(e){if(!this._map)return;this._map.transform.renderWorldCopies&&(this._lngLat=Qr(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let t="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?t=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(t=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n=`rotateX(${this._map.getPitch()}deg)`),e&&"moveend"!==e.type||(this._pos=this._pos.round()),o.setTransform(this._element,`${Xr[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${n} ${t}`)}getOffset(){return this._offset}setOffset(t){return this._offset=e.pointGeometry.convert(t),this._update(),this}_onMove(t){if(!this._isDragging){const e=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const ti={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let ni,ri=0,ii=!1;const oi={maxWidth:100,unit:"metric"};function ai(e,t,n){const r=n&&n.maxWidth||100,i=e._container.clientHeight/2,o=e.unproject([0,i]),a=e.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){const n=3.2808*s;n>5280?si(t,r,n/5280,e._getUIString("ScaleControl.Miles")):si(t,r,n,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?si(t,r,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?si(t,r,s/1e3,e._getUIString("ScaleControl.Kilometers")):si(t,r,s,e._getUIString("ScaleControl.Meters"))}function si(e,t,n,r){const i=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n))}(n);e.style.width=t*(i/n)+"px",e.innerHTML=`${i} ${r}`}const ui={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ci=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function li(t){if(t){if("number"==typeof t){const n=Math.round(Math.sqrt(.5*Math.pow(t,2)));return{center:new e.pointGeometry(0,0),top:new e.pointGeometry(0,t),"top-left":new e.pointGeometry(n,n),"top-right":new e.pointGeometry(-n,n),bottom:new e.pointGeometry(0,-t),"bottom-left":new e.pointGeometry(n,-n),"bottom-right":new e.pointGeometry(-n,-n),left:new e.pointGeometry(t,0),right:new e.pointGeometry(-t,0)}}if(t instanceof e.pointGeometry||Array.isArray(t)){const n=e.pointGeometry.convert(t);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:e.pointGeometry.convert(t.center||[0,0]),top:e.pointGeometry.convert(t.top||[0,0]),"top-left":e.pointGeometry.convert(t["top-left"]||[0,0]),"top-right":e.pointGeometry.convert(t["top-right"]||[0,0]),bottom:e.pointGeometry.convert(t.bottom||[0,0]),"bottom-left":e.pointGeometry.convert(t["bottom-left"]||[0,0]),"bottom-right":e.pointGeometry.convert(t["bottom-right"]||[0,0]),left:e.pointGeometry.convert(t.left||[0,0]),right:e.pointGeometry.convert(t.right||[0,0])}}return li(new e.pointGeometry(0,0))}const di={supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends class extends e.Evented{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,n,r){return t=e.pointGeometry.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)}panTo(t,n,r){return this.easeTo(e.extend({center:t},n),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)}resetNorth(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(e,t){return Math.abs(this.getBearing()){if(this._zooming&&(r.zoom=e.number(i,u,t)),this._rotating&&(r.bearing=e.number(o,c,t)),this._pitching&&(r.pitch=e.number(a,l,t)),this._padding&&(r.interpolatePadding(s,d,t),f=r.centerPoint.add(p)),b)r.setLocationAtPoint(b,w);else{const e=r.zoomScale(r.zoom-i),n=u>i?Math.min(2,y):Math.max(.5,y),o=Math.pow(n,1-t),a=r.unproject(v.add(g.mult(t*o)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?a.wrap():a,f)}this._fireMoveEvents(n)},e=>{this._afterEase(n,e)},t),this}_prepareEase(t,n,r={}){this._moving=!0,n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId;const r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),i&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}flyTo(t,n){if(!t.essential&&e.exported.prefersReducedMotion){const r=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),u="zoom"in t?e.clamp(+t.zoom,r.minZoom,r.maxZoom):i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,l="pitch"in t?+t.pitch:a,d="padding"in t?t.padding:r.padding,p=r.zoomScale(u-i),f=e.pointGeometry.convert(t.offset);let h=r.centerPoint.add(f);const m=r.pointLocation(h),v=e.LngLat.convert(t.center||m);this._normalizeCenter(v);const g=r.project(m),y=r.project(v).sub(g);let b=t.curve;const w=Math.max(r.width,r.height),_=w/p,S=y.mag();if("minZoom"in t){const n=e.clamp(Math.min(t.minZoom,i,u),r.minZoom,r.maxZoom),o=w/r.zoomScale(n-i);b=Math.sqrt(o/S*2)}const x=b*b;function E(e){const t=(_*_-w*w+(e?-1:1)*x*x*S*S)/(2*(e?_:w)*x*S);return Math.log(Math.sqrt(t*t+1)-t)}function T(e){return(Math.exp(e)-Math.exp(-e))/2}function M(e){return(Math.exp(e)+Math.exp(-e))/2}const C=E(0);let I=function(e){return M(C)/M(C+b*e)},L=function(e){return w*((M(C)*(T(t=C+b*e)/M(t))-T(C))/x)/S;var t},k=(E(1)-C)/b;if(Math.abs(S)<1e-6||!isFinite(k)){if(Math.abs(w-_)<1e-6)return this.easeTo(t,n);const e=_t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=o!==c,this._pitching=l!==a,this._padding=!r.isPaddingEqual(d),this._prepareEase(n,!1),this._ease(t=>{const p=t*k,m=1/I(p);r.zoom=1===t?u:i+r.scaleZoom(m),this._rotating&&(r.bearing=e.number(o,c,t)),this._pitching&&(r.pitch=e.number(a,l,t)),this._padding&&(r.interpolatePadding(s,d,t),h=r.centerPoint.add(f));const b=1===t?v:r.unproject(g.add(y.mult(L(p))).mult(m));r.setLocationAtPoint(r.renderWorldCopies?b.wrap():b,h),this._fireMoveEvents(n)},()=>this._afterEase(n),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const e=this._onEaseEnd;delete this._onEaseEnd,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.exported.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=e.wrap(t,-180,180);const r=Math.abs(t-n);return Math.abs(t-360-n)180?-360:n<-180?360:0}}{constructor(t){var n;if(e.PerformanceUtils.mark(e.PerformanceMarkers.create),null!=(t=e.extend({},Gr,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Qn(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),{bearingSnap:t.bearingSnap}),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(const t of n)if(t.id===e)return void(t.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Kr,t.locale),this._clickTolerance=t.clickTolerance,this._pixelRatio=null!==(n=t.pixelRatio)&&void 0!==n?n:devicePixelRatio,this._requestManager=new class{constructor(e){this._transformRequestFn=e}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeSpriteURL(e,t,n){const r=function(e){const t=e.match(a);if(!t)throw new Error(`Unable to parse URL "${e}"`);return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}(e);return r.path+=`${t}${n}`,function(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}(r)}setTransformRequest(e){this._transformRequestFn=e}}(t.transformRequest),"string"==typeof t.container){if(this._container=document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),"undefined"!=typeof window&&(addEventListener("online",this._onWindowOnline,!1),addEventListener("resize",this._onWindowResize,!1),addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new class{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new rr(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),e.bindAll(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[window,"blur",void 0]];for(const[e,t,n]of this._listeners)o.addEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,n)}destroy(){for(const[e,t,n]of this._listeners)o.removeEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){const t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new cr(t,e));const r=t.boxZoom=new dr(t,e);this._add("boxZoom",r);const i=new mr,o=new Nr;t.doubleClickZoom=new Dr(o,i),this._add("tapZoom",i),this._add("clickZoom",o);const a=new Rr;this._add("tapDragZoom",a);const s=t.touchPitch=new Lr;this._add("touchPitch",s);const u=new br(e),c=new wr(e);t.dragRotate=new Fr(e,u,c),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const l=new yr(e),d=new _r(e);t.dragPan=new jr(n,l,d),this._add("mousePan",l),this._add("touchPan",d,["touchZoom","touchRotate"]);const p=new Cr,f=new Tr;t.touchZoomRotate=new Br(n,f,p,a),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]);const h=t.scrollZoom=new Or(t,this);this._add("scrollZoom",h,["mousePan"]);const m=t.keyboard=new zr;this._add("keyboard",m),this._add("blockableMapEvent",new lr(t));for(const n of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[n]&&t[n].enable(e[n])}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(Hr(this._eventsInProgress))||this.isZooming()}_blockedByActive(e,t,n){for(const r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const n of e)this._el.contains(n.target)&&t.push(n);return t}handleEvent(e,t){if("blur"===e.type)return void this.stop(!0);this._updatingCamera=!0;const n="renderFrame"===e.type?void 0:e,r={needsRenderFrame:!1},i={},a={},s=e.touches,u=s?this._getMapTouches(s):void 0,c=u?o.touchPos(this._el,u):o.mousePos(this._el,e);for(const{handlerName:o,handler:s,allowed:l}of this._handlers){if(!s.isEnabled())continue;let d;this._blockedByActive(a,l,o)?s.reset():s[t||e.type]&&(d=s[t||e.type](e,c,u),this.mergeHandlerResult(r,i,d,o,n),d&&d.needsRenderFrame&&this._triggerRenderFrame()),(d||s.isActive())&&(a[o]=s)}const l={};for(const e in this._previousActiveHandlers)a[e]||(l[e]=n);this._previousActiveHandlers=a,(Object.keys(l).length||$r(r))&&(this._changes.push([r,i,l]),this._triggerRenderFrame()),(Object.keys(a).length||$r(r))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:d}=r;d&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],d(this._map))}mergeHandlerResult(t,n,r,i,o){if(!r)return;e.extend(t,r);const a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}_applyChanges(){const t={},n={},r={};for(const[i,o,a]of this._changes)i.panDelta&&(t.panDelta=(t.panDelta||new e.pointGeometry(0,0))._add(i.panDelta)),i.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(t.around=i.around),void 0!==i.pinchAround&&(t.pinchAround=i.pinchAround),i.noInertia&&(t.noInertia=i.noInertia),e.extend(n,o),e.extend(r,a);this._updateMapTransform(t,n,r),this._changes=[]}_updateMapTransform(e,t,n){const r=this._map,i=r.transform;if(!$r(e))return this._fireEvents(t,n,!0);let{panDelta:o,zoomDelta:a,bearingDelta:s,pitchDelta:u,around:c,pinchAround:l}=e;void 0!==l&&(c=l),r._stop(!0),c=c||r.transform.centerPoint;const d=i.pointLocation(o?c.sub(o):c);s&&(i.bearing+=s),u&&(i.pitch+=u),a&&(i.zoom+=a),i.setLocationAtPoint(d,c),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)}_fireEvents(t,n,r){const i=Hr(this._eventsInProgress),o=Hr(t),a={};for(const e in t){const{originalEvent:n}=t[e];this._eventsInProgress[e]||(a[`${e}start`]=n),this._eventsInProgress[e]=t[e]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in a)this._fireEvent(e,a[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:n}=t[e];this._fireEvent(e,n)}const s={};let u;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],u=n[t]||r,s[`${e}end`]=u)}for(const e in s)this._fireEvent(e,s[e]);const c=Hr(this._eventsInProgress);if(r&&(i||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Vr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}(this,t),this._hash=t.hash&&new class{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(e,t){let n=!1,r=null;const i=()=>{r=null,n&&(e(),r=setTimeout(i,300),n=!1)};return()=>(n=!0,r||i(),r)}(this._updateHashUnthrottled.bind(this))}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(e){const t=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,r),o=Math.round(t.lng*i)/i,a=Math.round(t.lat*i)/i,s=this._map.getBearing(),u=this._map.getPitch();let c="";if(c+=e?`/${o}/${a}/${n}`:`${n}/${a}/${o}`,(s||u)&&(c+="/"+Math.round(10*s)/10),u&&(c+=`/${Math.round(u)}`),this._hashName){const e=this._hashName;let t=!1;const n=window.location.hash.slice(1).split("&").map(n=>{const r=n.split("=")[0];return r===e?(t=!0,`${r}=${c}`):n}).filter(e=>e);return t||n.push(`${e}=${c}`),`#${n.join("&")}`}return`#${c}`}_getCurrentHash(){const e=window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(e=>e.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const e=this._getCurrentHash();if(e.length>=3&&!e.some(e=>isNaN(e))){const t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1}_updateHashUnthrottled(){const e=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,e)}catch(e){}}}("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new qr({customAttribution:t.customAttribution})),t.maplibreLogo&&this.addControl(new Yr,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new e.Event(`${t.dataType}data`,t))}),this.on("dataloading",t=>{this.fire(new e.Event(`${t.dataType}dataloading`,t))}),this.on("dataabort",t=>{this.fire(new e.Event("sourcedataabort",t))})}_getMapId(){return this._mapId}addControl(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}resize(t){const n=this._containerDimensions(),r=n[0],i=n[1];this._resizeCanvas(r,i,this.getPixelRatio()),this.transform.resize(r,i),this.painter.resize(r,i,this.getPixelRatio());const o=!this._moving;return o&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),o&&this.fire(new e.Event("moveend",t)),this}getPixelRatio(){return this._pixelRatio}setPixelRatio(e){const[t,n]=this._containerDimensions();this._pixelRatio=e,this._resizeCanvas(t,n,e),this.painter.resize(t,n,e)}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}project(t){return this.transform.locationPoint(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation(e.pointGeometry.convert(t))}isMoving(){return this._moving||this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers.isRotating()}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let r=!1;return{layer:t,listener:n,delegates:{mousemove:i=>{const o=this.getLayer(t)?this.queryRenderedFeatures(i.point,{layers:[t]}):[];o.length?r||(r=!0,n.call(this,new ar(e,this,i.originalEvent,{features:o}))):r=!1},mouseout:()=>{r=!1}}}}if("mouseleave"===e||"mouseout"===e){let r=!1;return{layer:t,listener:n,delegates:{mousemove:i=>{(this.getLayer(t)?this.queryRenderedFeatures(i.point,{layers:[t]}):[]).length?r=!0:r&&(r=!1,n.call(this,new ar(e,this,i.originalEvent)))},mouseout:t=>{r&&(r=!1,n.call(this,new ar(e,this,t.originalEvent)))}}}}{const r=e=>{const r=this.getLayer(t)?this.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(this,e),delete e.features)};return{layer:t,listener:n,delegates:{[e]:r}}}}on(e,t,n){if(void 0===n)return super.on(e,t);const r=this._createDelegatedListener(e,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r);for(const e in r.delegates)this.on(e,r.delegates[e]);return this}once(e,t,n){if(void 0===n)return super.once(e,t);const r=this._createDelegatedListener(e,t,n);for(const e in r.delegates)this.once(e,r.delegates[e]);return this}off(e,t,n){return void 0===n?super.off(e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&(r=>{const i=this._delegatedListeners[e];for(let e=0;e{t?this.fire(new e.ErrorEvent(t)):r&&this._updateDiff(r,n)})}else"object"==typeof t&&this._updateDiff(t,n)}_updateDiff(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(t,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(t){const n=this.style&&this.style.sourceCaches[t];if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`)))}areTilesLoaded(){const e=this.style&&this.style.sourceCaches;for(const t in e){const n=e[t]._tiles;for(const e in n){const t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,n,{pixelRatio:r=1,sdf:i=!1,stretchX:o,stretchY:a,content:s}={}){if(this._lazyInitEmptyStyle(),n instanceof HTMLImageElement||e.isImageBitmap(n)){const{width:u,height:c,data:l}=e.exported.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:u,height:c},l),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:u,height:c,data:l}=n,d=n;this.style.addImage(t,{data:new e.RGBAImage({width:u,height:c},new Uint8Array(l)),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0,userImage:d}),d.onAdd&&d.onAdd(this,t)}}}updateImage(t,n){const r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=n instanceof HTMLImageElement||e.isImageBitmap(n)?e.exported.getImageData(n):n,{width:o,height:a,data:s}=i;if(void 0===o||void 0===a)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==r.data.width||a!==r.data.height)return this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));const u=!(n instanceof HTMLImageElement||e.isImageBitmap(n));r.data.replace(s,u),this.style.updateImage(t,r)}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t,n={}){return this.style.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n,r={}){return this.style.setPaintProperty(e,t,n,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n,r={}){return this.style.setLayoutProperty(e,t,n,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]}_setupContainer(){const e=this._container;e.classList.add("maplibregl-map","mapboxgl-map");const t=this._canvasContainer=o.create("div","maplibregl-canvas-container mapboxgl-canvas-container",e);this._interactive&&t.classList.add("maplibregl-interactive","mapboxgl-interactive"),this._canvas=o.create("canvas","maplibregl-canvas mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const n=this._containerDimensions();this._resizeCanvas(n[0],n[1],this.getPixelRatio());const r=this._controlContainer=o.create("div","maplibregl-control-container mapboxgl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(e=>{i[e]=o.create("div",`maplibregl-ctrl-${e} mapboxgl-ctrl-${e}`,r)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,t,n){this._canvas.width=n*e,this._canvas.height=n*t,this._canvas.style.width=`${e}px`,this._canvas.style.height=`${t}px`}_setupPainter(){const n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new class{constructor(e,t){this.context=new _n(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=H.maxUnderzooming+H.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new We,this.gpuTimers={}}resize(e,t,n){if(this.width=e*n,this.height=t*n,this.pixelRatio=n,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style._order)this.style._layers[e].resize()}setup(){const t=this.context,n=new e.PosArray;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,nt.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const r=new e.PosArray;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,nt.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const i=new e.RasterBoundsArray;i.emplaceBack(0,0,0,0),i.emplaceBack(e.EXTENT,0,e.EXTENT,0),i.emplaceBack(0,e.EXTENT,0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(i,k.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const o=new e.PosArray;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,nt.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const a=new e.LineStripIndexArray;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(a);const s=new e.TriangleIndexArray;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new d(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);const u=this.context.gl;this.stencilClearMode=new xn({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO)}clearStencil(){const t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,Sn.disabled,this.stencilClearMode,wn.disabled,En.disabled,yt(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(e,t){if(this.currentStencilSource===e.source||!e.isTileClipped()||!t||!t.length)return;this.currentStencilSource=e.source;const n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(wn.disabled),n.setDepthMode(Sn.disabled);const i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const e of t){const t=this._tileClippingMaskIDs[e.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,Sn.disabled,new xn({func:r.ALWAYS,mask:0},t,255,r.KEEP,r.KEEP,r.REPLACE),wn.disabled,En.disabled,yt(e.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,t=this.context.gl;return new xn({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){const t=this.context.gl;return new xn({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){const t=this.context.gl,n=e.sort((e,t)=>t.overscaledZ-e.overscaledZ),r=n[n.length-1].overscaledZ,i=n[0].overscaledZ-r+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();const e={};for(let n=0;n=0;this.currentLayer--){const e=this.style._layers[r[this.currentLayer]],t=i[e.source],n=o[e.source];this._renderTileClippingMasks(e,n),this.renderLayer(this,t,e,n)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer{n.source&&!n.isHidden(this.transform.zoom)&&(n.source!==(t&&t.id)&&(t=this.style.sourceCaches[n.source]),(!e||e.getSource().maxzoom0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n}useProgram(e,t){this.cache=this.cache||{};const n=`${e}${t?t.cacheKey:""}${this._showOverdrawInspector?"/overdraw":""}`;return this.cache[n]||(this.cache[n]=new st(this.context,e,rt[e],t,Pt[e],this._showOverdrawInspector)),this.cache[n]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new d(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}}(r,this.transform),e.exported$1.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(t){let n,r=0;const i=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n),r=e.exported.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let o=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=e.exported.now();this.style.zoomHistory.update(t,n);const r=new e.EvaluationParameters(t,{now:n,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),i=r.crossFadingFactor();1===i&&i===this._crossFadingFactor||(o=!0,this._crossFadingFactor=i),this.style.update(r)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,e.PerformanceUtils.mark(e.PerformanceMarkers.load),this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const t=e.exported.now()-r;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout(()=>{const r=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:r}))},50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout(()=>{const n=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:n}))},50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty;return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,e.PerformanceUtils.mark(e.PerformanceMarkers.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!=typeof window&&(removeEventListener("resize",this._onWindowResize,!1),removeEventListener("orientationchange",this._onWindowResize,!1),removeEventListener("online",this._onWindowOnline,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),o.remove(this._canvasContainer),o.remove(this._controlContainer),this._container.classList.remove("maplibregl-map","mapboxgl-map"),e.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=e.exported.frame(t=>{e.PerformanceUtils.frame(t),this._frame=null,this._render(t)}))}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}_setCacheLimits(t,n){e.setCacheLimits(t,n)}},NavigationControl:class{constructor(t){this.options=e.extend({},Jr,t),this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in mapboxgl-ctrl-zoom-in",e=>this._map.zoomIn({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out mapboxgl-ctrl-zoom-out",e=>this._map.zoomOut({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("maplibregl-ctrl-compass mapboxgl-ctrl-compass",e=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:e}):this._map.resetNorth({},{originalEvent:e})}),this._compassIcon=o.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map.getZoom(),t=e===this._map.getMaxZoom(),n=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())}_rotateCompassArrow(){const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=e}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Wr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){o.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){const n=o.create("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(e,t){const n=this._map._getUIString(`NavigationControl.${t}`);e.title=n,e.setAttribute("aria-label",n)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({},ti,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}onAdd(e){var t;return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),t=this._setupUI,void 0!==ni?t(ni):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(e=>{ni="denied"!==e.state,t(ni)}):(ni=!!window.navigator.geolocation,t(ni)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ri=0,ii=!1}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitudet.getEast()||n.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),o=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})}_updateMarker(t){if(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([1,e]),r=t.distanceTo(n),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=`${i}px`,this._circleElement.style.height=`${i}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&ii)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=o.create("button","maplibregl-ctrl-geolocate mapboxgl-ctrl-geolocate",this._container),o.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","maplibregl-user-location-dot mapboxgl-user-location-dot"),this._userLocationDotMarker=new ei(this._dotElement),this._circleElement=o.create("div","maplibregl-user-location-accuracy-circle mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ei({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))})}trigger(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ri--,ii=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++ri>1?(e={maximumAge:6e5,timeout:0},ii=!0):(e=this.options.positionOptions,ii=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:qr,LogoControl:Yr,ScaleControl:class{constructor(t){this.options=e.extend({},oi,t),e.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){ai(this._map,this._container,this.options)}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-scale mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}setUnit(e){this.options.unit=e,ai(this._map,this._container,this.options)}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){o.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=o.create("button","maplibregl-ctrl-fullscreen mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen&&window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(ui),t),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer","mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){const t=document.createDocumentFragment(),n=document.createElement("body");let r;for(n.innerHTML=e;r=n.firstChild;)t.appendChild(r);return this.setDOMContent(t)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","maplibregl-popup-content mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){this._container&&this._container.classList.add(e)}removeClassName(e){this._container&&this._container.classList.remove(e)}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}_createCloseButton(){this.options.closeButton&&(this._closeButton=o.create("button","maplibregl-popup-close-button mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(e){this._update(e.point)}_onMouseMove(e){this._update(e.point)}_onDrag(e){this._update(e.point)}_update(e){if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(this._container||(this._container=o.create("div","maplibregl-popup mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","maplibregl-popup-tip mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(e=>this._container.classList.add(e)),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Qr(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!e)return;const t=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat);let n=this.options.anchor;const r=li(this.options.offset);if(!n){const e=this._container.offsetWidth,i=this._container.offsetHeight;let o;o=t.y+r.bottom.ythis._map.transform.height-i?["bottom"]:[],t.xthis._map.transform.width-e/2&&o.push("right"),n=0===o.length?"bottom":o.join("-")}const i=t.add(r[n]).round();o.setTransform(this._container,`${Xr[n]} translate(${i.x}px,${i.y}px)`),Zr(this._container,n,"popup")}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(ci);e&&e.focus()}_onClose(){this.remove()}},Marker:ei,Style:tt,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.pointGeometry,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,AJAXError:e.AJAXError,config:e.config,CanvasSource:P,GeoJSONSource:L,ImageSource:z,RasterDEMTileSource:I,RasterTileSource:M,VectorTileSource:T,VideoSource:A,prewarm:function(){G().acquire(U)},clearPrewarmedResources:function(){const e=K;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(U),K=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get workerCount(){return q.workerCount},set workerCount(e){q.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",addProtocol(t,n){e.config.REGISTERED_PROTOCOLS[t]=n},removeProtocol(t){delete e.config.REGISTERED_PROTOCOLS[t]}};return Ur.extend(di,{isSafari:e.isSafari,getPerformanceMetrics:e.PerformanceUtils.getPerformanceMetrics}),di}),n},e.exports=r()},dmQx:function(e,t){e.exports=function(e,t){return e.has(t)}},dsdS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("iyRJ"),i=n("bN6y"),o=n("/f1d"),a=n("6AbY"),s=function(){function e(e){e?(this.operation=function(e){return new Promise(function(t,n){var r=(0,a.locateWindow)().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey completed without importing key."))},r.onerror=function(){n(new Error("ImportKey failed to import key."))}})}(e).then(function(e){return(0,a.locateWindow)().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,a.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then(function(n){return n.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(u(e)),n}),this.operation.catch(function(){}))},e.prototype.digest=function(){return this.operation.then(function(e){return new Promise(function(t,n){e.onerror=function(){n(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n(new Error("Error encountered finalizing hash"))},e.finish()})})},e}();function u(e){return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},duB3:function(e,t,n){var r=n("WxI4"),i=n("dFpP"),o=n("JBvZ"),a=n("2Hvv"),s=n("deUO");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=100?100:null])},week:{dow:1,doy:7}})})(n("PJh5"))},"eL+Z":function(e,t,n){"use strict";const r=n("cGSG"),i=n("cGSG").buildOptions,o=n("NhAe"),a=function(e,t,n){let i="{";const o=Object.keys(e.child);for(let n=0;n1){i+='"'+r+'" : [ ';for(let n in e.child[r])i+=a(e.child[r][n],t)+" , ";i=i.substr(0,i.length-1)+" ] "}else i+='"'+r+'" : '+a(e.child[r][0],t)+" ,"}return r.merge(i,e.attrsMap),r.isEmptyObject(i)?r.isExist(e.val)?e.val:"":(r.isExist(e.val)&&("string"!=typeof e.val||""!==e.val&&e.val!==t.cdataPositionChar)&&(i+='"'+t.textNodeName+'" : '+(!0!==(s=e.val)&&!1!==s&&isNaN(s)?'"'+s+'"':s)),","===i[i.length-1]&&(i=i.substr(0,i.length-2)),i+"}");var s};t.convertToJsonString=function(e,t){return(t=i(t,o.defaultOptions,o.props)).indentBy=t.indentBy||"",a(e,t,0)}},eVIm:function(e,t,n){var r=n("dCZQ"),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},evD5:function(e,t,n){var r=n("77Pl"),i=n("SfB7"),o=n("MmMw"),a=Object.defineProperty;t.f=n("+E39")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},exGp:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("//Fk"),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){return function(){var t=e.apply(this,arguments);return new o.default(function(e,n){return function r(i,a){try{var s=t[i](a),u=s.value}catch(e){return void n(e)}if(!s.done)return o.default.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)});e(u)}("next")})}}},exh5:function(e,t,n){var r=n("kM2E");r(r.S,"Object",{setPrototypeOf:n("ZaQb").set})},f4W3:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&n&&"godinu"===o?e+" godina":e+" "+o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n("PJh5"))},f8D2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,c.isNonNullType)(n)){var d=e(t,n.ofType);return d&&d.kind===u.Kind.NULL?null:d}if(null===t)return{kind:u.Kind.NULL};if((0,a.default)(t))return null;if((0,c.isListType)(n)){var h=n.ofType;if((0,r.isCollection)(t)){var m=[];return(0,r.forEach)(t,function(t){var n=e(t,h);n&&m.push(n)}),{kind:u.Kind.LIST,values:m}}return e(t,h)}if((0,c.isInputObjectType)(n)){if(null===t||"object"!==p(t))return null;var v=(0,s.default)(n.getFields()),g=[],y=!0,b=!1,w=void 0;try{for(var _,S=v[Symbol.iterator]();!(y=(_=S.next()).done);y=!0){var x=_.value,E=e(t[x.name],x.type);E&&g.push({kind:u.Kind.OBJECT_FIELD,name:{kind:u.Kind.NAME,value:x.name},value:E})}}catch(e){b=!0,w=e}finally{try{y||null==S.return||S.return()}finally{if(b)throw w}}return{kind:u.Kind.OBJECT,fields:g}}if((0,c.isScalarType)(n)||(0,c.isEnumType)(n)){var T=n.serialize(t);if((0,o.default)(T))return null;if("boolean"==typeof T)return{kind:u.Kind.BOOLEAN,value:T};if("number"==typeof T){var M=String(T);return f.test(M)?{kind:u.Kind.INT,value:M}:{kind:u.Kind.FLOAT,value:M}}if("string"==typeof T)return(0,c.isEnumType)(n)?{kind:u.Kind.ENUM,value:T}:n===l.GraphQLID&&f.test(T)?{kind:u.Kind.INT,value:T}:{kind:u.Kind.STRING,value:T};throw new TypeError("Cannot convert value to AST: ".concat((0,i.default)(T)))}throw new Error("Unknown type: ".concat(n,"."))};var r=n("viVm"),i=d(n("ieo+")),o=d(n("Yi9h")),a=d(n("cHk2")),s=d(n("hZYs")),u=n("Jko5"),c=n("AS5q"),l=n("EmyK");function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f=/^-?(0|[1-9][0-9]*)$/},f931:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},fJUb:function(e,t,n){var r=n("77Pl"),i=n("EqjI"),o=n("qARP");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},fMqj:function(e,t,n){var r=n("zGZ6"),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},"fS/q":function(e,t,n){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var r=function(e,t){return(r=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])})(e,t)};function i(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}r(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,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},Vt=n("LPDJ"),$t=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"AnalyzeDocumentCommand",inputFilterSensitiveLog:E.filterSensitiveLog,outputFilterSensitiveLog:R.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.AnalyzeDocument"},r=JSON.stringify(Ge(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ie(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=ct(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),Ut=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"DetectDocumentTextCommand",inputFilterSensitiveLog:K.filterSensitiveLog,outputFilterSensitiveLog:G.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.DetectDocumentText"},r=JSON.stringify(Je(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Le(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=pt(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),qt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"GetDocumentAnalysisCommand",inputFilterSensitiveLog:W.filterSensitiveLog,outputFilterSensitiveLog:Z.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.GetDocumentAnalysis"},r=JSON.stringify(Ze(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ke(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=gt(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),Yt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"GetDocumentTextDetectionCommand",inputFilterSensitiveLog:te.filterSensitiveLog,outputFilterSensitiveLog:ne.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.GetDocumentTextDetection"},r=JSON.stringify(et(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,ze(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=yt(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),Kt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"StartDocumentAnalysisCommand",inputFilterSensitiveLog:ue.filterSensitiveLog,outputFilterSensitiveLog:ce.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.StartDocumentAnalysis"},r=JSON.stringify(at(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ae(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=At(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),Gt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Vt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TextractClient",commandName:"StartDocumentTextDetectionCommand",inputFilterSensitiveLog:le.filterSensitiveLog,outputFilterSensitiveLog:de.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Textract.StartDocumentTextDetection"},r=JSON.stringify(st(e,t)),[2,Ft(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Pe(e,t)]:[4,Bt(e.body,t)];case 1:return n=a.sent(),r={},r=Pt(n,t),i=o({$metadata:Rt(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Te.b),Jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.analyzeDocument=function(e,t,n){var r=new $t(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectDocumentText=function(e,t,n){var r=new Ut(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getDocumentAnalysis=function(e,t,n){var r=new qt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getDocumentTextDetection=function(e,t,n){var r=new Yt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startDocumentAnalysis=function(e,t,n){var r=new Kt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startDocumentTextDetection=function(e,t,n){var r=new Gt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t}(Me);n.d(t,"c",function(){return Me}),n.d(t,!1,function(){return Jt}),n.d(t,"a",function(){return $t}),n.d(t,"b",function(){return Ut}),n.d(t,!1,function(){return qt}),n.d(t,!1,function(){return Yt}),n.d(t,!1,function(){return Kt}),n.d(t,!1,function(){return Gt}),n.d(t,!1,function(){return g}),n.d(t,!1,function(){return y}),n.d(t,!1,function(){return b}),n.d(t,!1,function(){return w}),n.d(t,!1,function(){return _}),n.d(t,!1,function(){return S}),n.d(t,!1,function(){return x}),n.d(t,!1,function(){return E}),n.d(t,!1,function(){return T}),n.d(t,!1,function(){return M}),n.d(t,!1,function(){return C}),n.d(t,!1,function(){return I}),n.d(t,!1,function(){return L}),n.d(t,!1,function(){return k}),n.d(t,!1,function(){return z}),n.d(t,!1,function(){return A}),n.d(t,!1,function(){return P}),n.d(t,!1,function(){return O}),n.d(t,!1,function(){return D}),n.d(t,!1,function(){return N}),n.d(t,!1,function(){return R}),n.d(t,!1,function(){return j}),n.d(t,!1,function(){return F}),n.d(t,!1,function(){return B}),n.d(t,!1,function(){return H}),n.d(t,!1,function(){return V}),n.d(t,!1,function(){return $}),n.d(t,!1,function(){return U}),n.d(t,!1,function(){return q}),n.d(t,!1,function(){return Y}),n.d(t,!1,function(){return K}),n.d(t,!1,function(){return G}),n.d(t,!1,function(){return J}),n.d(t,!1,function(){return W}),n.d(t,!1,function(){return Q}),n.d(t,!1,function(){return X}),n.d(t,!1,function(){return Z}),n.d(t,!1,function(){return ee}),n.d(t,!1,function(){return te}),n.d(t,!1,function(){return ne}),n.d(t,!1,function(){return re}),n.d(t,!1,function(){return ie}),n.d(t,!1,function(){return oe}),n.d(t,!1,function(){return ae}),n.d(t,!1,function(){return se}),n.d(t,!1,function(){return ue}),n.d(t,!1,function(){return ce}),n.d(t,!1,function(){return le}),n.d(t,!1,function(){return de})},fS6E:function(e,t,n){n("Kh5d"),e.exports=n("FeBl").Object.getPrototypeOf},fW1y:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})(n("PJh5"))},fWfb:function(e,t,n){"use strict";var r=n("7KvD"),i=n("D2L2"),o=n("+E39"),a=n("kM2E"),s=n("880/"),u=n("06OY").KEY,c=n("S82l"),l=n("e8AB"),d=n("e6n0"),p=n("3Eo+"),f=n("dSzd"),h=n("Kh4W"),m=n("crlp"),v=n("Xc4G"),g=n("7UMu"),y=n("77Pl"),b=n("EqjI"),w=n("sB3e"),_=n("TcQ7"),S=n("MmMw"),x=n("X8DO"),E=n("Yobk"),T=n("Rrel"),M=n("LKZe"),C=n("1kS7"),I=n("evD5"),L=n("lktj"),k=M.f,z=I.f,A=T.f,P=r.Symbol,O=r.JSON,D=O&&O.stringify,N=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,F=l("symbol-registry"),B=l("symbols"),H=l("op-symbols"),V=Object.prototype,$="function"==typeof P&&!!C.f,U=r.QObject,q=!U||!U.prototype||!U.prototype.findChild,Y=o&&c(function(){return 7!=E(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=k(V,t);r&&delete V[t],z(e,t,n),r&&e!==V&&z(V,t,r)}:z,K=function(e){var t=B[e]=E(P.prototype);return t._k=e,t},G=$&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},J=function(e,t,n){return e===V&&J(H,t,n),y(e),t=S(t,!0),y(n),i(B,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=E(n,{enumerable:x(0,!1)})):(i(e,N)||z(e,N,x(1,{})),e[N][t]=!0),Y(e,t,n)):z(e,t,n)},W=function(e,t){y(e);for(var n,r=v(t=_(t)),i=0,o=r.length;o>i;)J(e,n=r[i++],t[n]);return e},Q=function(e){var t=j.call(this,e=S(e,!0));return!(this===V&&i(B,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,N)&&this[N][e])||t)},X=function(e,t){if(e=_(e),t=S(t,!0),e!==V||!i(B,t)||i(H,t)){var n=k(e,t);return!n||!i(B,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=A(_(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==N||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===V,r=A(n?H:_(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(V,t)||o.push(B[t]);return o};$||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),Y(this,e,x(1,n))};return o&&q&&Y(V,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",function(){return this._k}),M.f=X,I.f=J,n("n0T6").f=T.f=Z,n("NpIQ").f=Q,C.f=ee,o&&!n("O4g8")&&s(V,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!$,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=L(f.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!$,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=P(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!$,"Object",{create:function(e,t){return void 0===t?E(e):W(E(e),t)},defineProperty:J,defineProperties:W,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=c(function(){C.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return C.f(w(e))}}),O&&a(a.S+a.F*(!$||c(function(){var e=P();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,D.apply(O,r)}}),P.prototype[R]||n("hJx8")(P.prototype,R,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},fZjL:function(e,t,n){e.exports={default:n("jFbC"),__esModule:!0}},fkB2:function(e,t,n){var r=n("UuGF"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},fmow:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},foce:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e,t,n,r,i,o,a){var u=arguments;return new Promise(function(c){return c(1===u.length?s(e.schema,e.source,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):s(e,t,n,r,i,o,a))})},t.graphqlSync=function(e,t,n,r,i,o,a){var u=1===arguments.length?s(e.schema,e.source,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):s(e,t,n,r,i,o,a);if(u.then)throw new Error("GraphQL execution failed to complete synchronously.");return u};var r=n("7b7P"),i=n("6u75"),o=n("Wffn"),a=n("ElpU");function s(e,t,n,s,u,c,l){var d,p=(0,r.validateSchema)(e);if(p.length>0)return{errors:p};try{d=(0,i.parse)(t)}catch(e){return{errors:[e]}}var f=(0,o.validate)(e,d);return f.length>0?{errors:f}:(0,a.execute)(e,d,n,s,u,c,l)}},forS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("TToO");r.__exportStar(n("kErC"),t),r.__exportStar(n("a7is"),t),r.__exportStar(n("PY8R"),t),r.__exportStar(n("I3UY"),t),r.__exportStar(n("88GK"),t)},fsCm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("hLpN")),i=s(n("11VZ")),o=n("zk+s"),a=s(n("MsCo"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=20?"ste":"de")},week:{dow:1,doy:4}})})(n("PJh5"))},g8Ux:function(e,t,n){var r=n("77Pl"),i=n("3fs2");e.exports=n("FeBl").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},gEQe:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})})(n("PJh5"))},gEU3:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},gFtY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n("TToO").__exportStar)(n("IyM2"),t);var r=n("dsdS");Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var i=n("INHo");Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},gGqR:function(e,t,n){var r=n("aCM0"),i=n("yCNF"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},gHOb:function(e,t,n){var r=n("d4US"),i=n("POb3"),o=n("bO0Y"),a=n("5N57"),s=n("bIbi"),u=n("aCM0"),c=n("Ai/T"),l=c(r),d=c(i),p=c(o),f=c(a),h=c(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},gJZj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}},gKN8:function(e,t,n){"use strict";const r=n("JQu4"),i=n("NhAe"),o=n("NhAe"),a=n("cGSG").buildOptions,s=n("C2Vs");t.parse=function(e,t={},n){if(n){!0===n&&(n={});const t=s.validate(e,n);if(!0!==t)throw Error(t.err.msg)}t.parseTrueNumberOnly&&!1!==t.parseNodeValue&&!t.numParseOptions&&(t.numParseOptions={leadingZeros:!1});let u=a(t,o.defaultOptions,o.props);const c=i.getTraversalObj(e,u);return r.convertToJson(c,u)},t.convertTonimn=n("i99H").convert2nimn,t.getTraversalObj=i.getTraversalObj,t.convertToJson=r.convertToJson,t.convertToJsonString=n("eL+Z").convertToJsonString,t.validate=s.validate,t.j2xParser=n("Phbz"),t.parseToNimn=function(e,n,r){return t.convertTonimn(t.getTraversalObj(e,r),n,r)}},gSvA:function(e,t,n){var r=n("kM2E"),i=n("mbce")(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},gUgh:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n("PJh5"))},gbpe:function(e,t,n){"use strict";var r=n("7Flx"),i={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new r.r).getStorage()};function o(e){var t=0;t=e.length;for(var n=e.length;n>=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function a(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var u,c={},l=function(){function e(){}return e.clear=function(){c={}},e.getItem=function(e){return c[e]||null},e.setItem=function(e,t){c[e]=t},e.removeItem=function(e){delete c[e]},e}(),d=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){return function(e){this.key=e||"",this.prevNode=null,this.nextNode=null}}(),f=function(){function e(){this.head=new p,this.tail=new p,this.hashtable={},this.length=0,this.head.nextNode=this.tail,this.tail.prevNode=this.head}return e.prototype.insertNodeToHead=function(e){var t=this.head.nextNode;this.head.nextNode=e,e.nextNode=t,e.prevNode=this.head,t.prevNode=e,this.length=this.length+1},e.prototype.removeNode=function(e){e.prevNode.nextNode=e.nextNode,e.nextNode.prevNode=e.prevNode,e.prevNode=null,e.nextNode=null,this.length=this.length-1},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.refresh=function(e){var t=this.hashtable[e];this.removeNode(t),this.insertNodeToHead(t)},e.prototype.insertItem=function(e){var t=new p(e);this.hashtable[e]=t,this.insertNodeToHead(t)},e.prototype.getLastItem=function(){return this.tail.prevNode.key},e.prototype.removeItem=function(e){var t=this.hashtable[e];this.removeNode(t),delete this.hashtable[e]},e.prototype.getSize=function(){return this.length},e.prototype.containsKey=function(e){return e in this.hashtable},e.prototype.clearList=function(){var e,t;try{for(var n=d(Object.keys(this.hashtable)),r=n.next();!r.done;r=n.next()){var i=r.value;this.hashtable.hasOwnProperty(i)&&delete this.hashtable[i]}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.head.nextNode=this.tail,this.tail.prevNode=this.head,this.length=0},e.prototype.getKeys=function(){return Object.keys(this.hashtable)},e.prototype.isHeadNode=function(e){return this.hashtable[e].prevNode===this.head},e.prototype.isTailNode=function(e){return this.hashtable[e].nextNode===this.tail},e}(),h=new r.c("StorageCache"),m=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){s(this.config.capacityInBytes)||(h.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes),s(this.config.itemMaxSize)||(h.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),s(this.config.defaultTTL)||(h.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=i.defaultTTL),s(this.config.defaultPriority)||(h.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=i.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(h.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(h.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(h.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(h.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:a(),visitedTime:a(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=o(JSON.stringify(r)),r.byteSize=o(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&h.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),v=this&&this.__extends||(u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=new r.c("Cache"),y=new(function(e){function t(t){var n=this,r=t?Object.assign({},i,t):i;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return v(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=a(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return a()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(e){this._decreaseCurSizeInBytes(t.byteSize),g.error("Failed to set item "+e)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)g.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)g.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(r);if(s&&this._removeItem(r,JSON.parse(s).byteSize),this._isCacheFull(o.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var c=this._sizeToPop(o.byteSize);this._popOutItems(u,c)}}this._setItem(r,o)}catch(e){g.warn("setItem failed! "+e)}}}else g.warn("The value of item should not be undefined!");else g.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){g.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return g.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(e){return g.warn("getItem failed! "+e),null}},t.prototype.removeItem=function(e){g.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(e){g.warn("removeItem failed! "+e)}},t.prototype.clear=function(){g.log("Clear Cache");for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=new r.c("InMemoryCache"),S=new(function(e){function t(t){var n=this,r=t?Object.assign({},i,t):i;n=e.call(this,r)||this,_.debug("now we start!"),n.cacheList=[],n.curSizeInBytes=0,n.maxPriority=5,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n);for(var o=0;o=n.expires},t.prototype._removeItem=function(e,t){this.cacheList[t].removeItem(e),this._decreaseCurSizeInBytes(JSON.parse(l.getItem(e)).byteSize),l.removeItem(e)},t.prototype._setItem=function(e,t,n){this.cacheList[n].insertItem(e),this._increaseCurSizeInBytes(t.byteSize),l.setItem(e,JSON.stringify(t))},t.prototype._isCacheFull=function(e){return this.curSizeInBytes+e>this.config.capacityInBytes},t.prototype.containsKey=function(e){for(var t=this.config.keyPrefix+e,n=0;n5)_.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)_.warn("Item with key: "+e+" you are trying to put into is too big!");else{var s=this.containsKey(e);-1!==s&&this._removeItem(r,s-1);for(var u=this.maxPriority-1;this._isCacheFull(o.byteSize)&&u>=0;)if(this.cacheList[u].isEmpty())u-=1;else{var c=this.cacheList[u].getLastItem();this._removeItem(c,u)}this._setItem(r,o,Number(o.priority)-1)}}}else _.warn("The value of item should not be undefined!");else _.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return _.warn("Invalid key: should not be empty or 'CurSize'"),null;var i=this.containsKey(e);if(-1!==i){if(!this._isExpired(r)){n=l.getItem(r);var o=JSON.parse(n);return this.cacheList[o.priority-1].refresh(r),o.data}this._removeItem(r,i-1)}if(t&&void 0!==t.callback){var a=t.callback();return null!==a&&this.setItem(e,a,t),a}return null},t.prototype.removeItem=function(e){var t=this.config.keyPrefix+e,n=this.containsKey(e);-1!==n&&this._removeItem(t,n-1)},t.prototype.clear=function(){for(var e,t,n=0;n0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=s,(0,i.default)(s)},h65t:function(e,t,n){var r=n("UuGF"),i=n("52gC");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},hIPy:function(e,t,n){var r=n("NGEn"),i=n("6MiT"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},hJx8:function(e,t,n){var r=n("evD5"),i=n("X8DO");e.exports=n("+E39")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},hLpN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e||(e={});!function(e){["on","trigger","off"].forEach(function(t){if(t in e)throw new Error("Cannot eventify object that has `"+t+"()` method on it")})}(e);var t=new Map;return e.on=function(e,n){var r=t.get(e);r||(r=new Set,t.set(e,r)),r.add(n)},e.off=function(n,r){if(!r)return t.delete(n),e;var i=t.get(n);return i?(i.delete(r),e):e},e.trigger=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i>>8^a[255&(this.checksum^s)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var a=(0,i.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]),s=n("TqtY");Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},i99H:function(e,t,n){"use strict";const r=function(e){return String.fromCharCode(e)},i={nilChar:r(176),missingChar:r(201),nilPremitive:r(175),missingPremitive:r(200),emptyChar:r(178),emptyValue:r(177),boundryChar:r(179),objStart:r(198),arrStart:r(204),arrayEnd:r(185)},o=[i.nilChar,i.nilPremitive,i.missingChar,i.missingPremitive,i.boundryChar,i.emptyChar,i.emptyValue,i.arrayEnd,i.objStart,i.arrStart],a=function(e,t,n){if("string"==typeof t)return e&&e[0]&&void 0!==e[0].val?s(e[0].val,t):s(e,t);{const o=void 0===(r=e)?i.missingChar:null===r?i.nilChar:!(r.child&&0===Object.keys(r.child).length&&(!r.attrsMap||0===Object.keys(r.attrsMap).length))||i.emptyChar;if(!0===o){let r="";if(Array.isArray(t)){r+=i.arrStart;const o=t[0],c=e.length;if("string"==typeof o)for(let t=0;t11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},iTMC:function(e,t,n){"use strict";var r=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,i)},i=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()},o=function(e){return e.split("/").map(r).join("/")};n.d(t,"a",function(){return r}),n.d(t,!1,function(){return o})},iUbK:function(e,t,n){var r=n("7KvD").navigator;e.exports=r&&r.userAgent||""},iZss:function(e,t,n){"use strict";var r=n("TToO"),i=function(e){return function(t,n){return function(i){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var o;return Object(r.__generator)(this,function(a){return(null===(o=null===e||void 0===e?void 0:e.retryStrategy)||void 0===o?void 0:o.mode)&&(n.userAgent=Object(r.__spread)(n.userAgent||[],[["cfg/retry-mode",e.retryStrategy.mode]])),[2,e.retryStrategy.retry(t,i)]})})}}},o={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},a=function(e){return{applyToStack:function(t){t.add(i(e),o)}}},s=n("i8+n"),u=500,c=function(){return function(e){return function(t){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var n;return Object(r.__generator)(this,function(r){return n=t.request,s.a.isInstance(n)&&(delete n.headers["amz-sdk-invocation-id"],delete n.headers["amz-sdk-request"]),[2,e(t)]})})}}},l={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},d=function(e){return{applyToStack:function(e){e.addRelativeTo(c(),l)}}},p=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],f=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],h=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],m=[500,502,503,504],v=function(e){var t,n;return 429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||f.includes(e.name)||1==(null===(n=e.$retryable)||void 0===n?void 0:n.throttling)},g=n("iFGU"),y=function(e){var t=e,n=e,r=function(e){return"TimeoutError"===e.name?10:5},i=function(e){return r(e)<=n};return Object.freeze({hasRetryTokens:i,retrieveRetryTokens:function(e){if(!i(e))throw new Error("No retry token available");var t=r(e);return n-=t,t},releaseRetryTokens:function(e){n+=null!==e&&void 0!==e?e:1,n=Math.min(n,t)}})},b=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},w=function(e){return!!e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return p.includes(e.name)}(e)||v(e)||function(e){var t;return h.includes(e.name)||m.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}(e))},_="standard",S=function(){function e(e,t){var n,r,i;this.maxAttemptsProvider=e,this.mode=_,this.retryDecider=null!==(n=null===t||void 0===t?void 0:t.retryDecider)&&void 0!==n?n:w,this.delayDecider=null!==(r=null===t||void 0===t?void 0:t.delayDecider)&&void 0!==r?r:b,this.retryQuota=null!==(i=null===t||void 0===t?void 0:t.retryQuota)&&void 0!==i?i:y(u)}return e.prototype.shouldRetry=function(e,t,n){return t1&&(i-=1)),[360*i,100*o,100*c]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var r=t[e];if(r)return r;var i,o,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=n[u],l=(o=e,a=c,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},i.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,c=e[1]/100,l=e[2]/100,d=c+l;switch(d>1&&(c/=d,l/=d),n=1-l,r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*(n-c),t){default:case 6:case 0:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];t=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),c=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,[360*(n%=1),100*u,100*t]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}(t={exports:{}},t.exports),t.exports);r.rgb,r.hsl,r.hsv,r.hwb,r.cmyk,r.xyz,r.lab,r.lch,r.hex,r.keyword,r.ansi16,r.ansi256,r.hcg,r.apple,r.gray;function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var u=s,c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},l={getRgba:d,getHsla:p,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=p(e);return t&&t.slice(0,3)},getHwb:f,getAlpha:function(e){var t=d(e);if(t)return t[3];if(t=p(e))return t[3];if(t=f(e))return t[3]},hexString:function(e,t){var t=void 0!==t&&3===e.length?t:e[3];return"#"+y(e[0])+y(e[1])+y(e[2])+(t>=0&&t<1?y(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return h(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:h,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:m,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return v(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:v,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return b[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;on?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new _,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],"[object Array]"===(t={}.toString.call(e))?i[o]=e.slice(0):"[object Number]"===t?i[o]=e:console.error("unexpected color value:",e));return n}},_.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},_.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},_.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;i--)t.call(n,e[i],i);else for(i=0;i=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-M.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},C={effects:M};T.easingEffects=M;var I=Math.PI,L=I/180,k=2*I,z=I/2,A=I/4,P=2*I/3,O={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=t+a,u=n+a,c=t+r-a,l=n+i-a;e.moveTo(t,u),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,o=0;o=n?(V.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},Z=V.options.resolve,ee=["push","pop","shift","splice","unshift"];function te(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(ee.forEach(function(t){delete e[t]}),delete e._chartjs)}}var ne=function(e,t){this.initialize(e,t)};V.extend(ne.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,r=this.getDataset(),i=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(e=0,t=r.length;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;ni?(o=i/t.innerRadius,e.arc(a,s,t.innerRadius-i,r+o,n-o,!0)):e.arc(a,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var i,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+ie,oe(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=ie,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+ie,n.startAngle,!0),i=0;is;)i-=ie;for(;i=a&&i<=s,c=o>=n.innerRadius&&o<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ie)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+ie,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;ee.x&&(t=ye(t,"left","right")):e.basen?n:r,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>n?n:o,l:u.left||a<0?0:a>t?t:a}}function we(e,t,n){var r=null===t,i=null===n,o=!(!e||r&&i)&&ge(e);return o&&(r||t>=o.left&&t<=o.right)&&(i||n>=o.top&&n<=o.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}});var _e={},Se=se,xe=le,Ee=he,Te=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ge(e),n=t.right-t.left,r=t.bottom-t.top,i=be(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return we(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return ve(n)?we(n,e,null):we(n,null,t)},inXRange:function(e){return we(this._view,e,null)},inYRange:function(e){return we(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return ve(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return ve(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}});_e.Arc=Se,_e.Line=xe,_e.Point=Ee,_e.Rectangle=Te;var Me=V._deprecated,Ce=V.valueOrDefault;function Ie(e,t,n){var r,i,o=n.barThickness,a=t.stackCount,s=t.pixels[e],u=V.isNullOrUndef(o)?function(e,t){var n,r,i,o,a=e._length;for(i=1,o=t.length;i0?Math.min(a,Math.abs(r-n)):a,n=r;return a}(t.scale,t.pixels):-1;return V.isNullOrUndef(o)?(r=u*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Le=re.extend({dataElementType:_e.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;re.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Me("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Me("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Me("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Me("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Me("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,_=h.length;if(g||void 0===g&&void 0!==y)for(r=0;r<_&&(i=h[r]).index!==e;++r)i.stack===y&&(o=void 0===(c=d._parseValue(f[i.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(b+=o));return a=d.getPixelForValue(b),u=(s=d.getPixelForValue(b+w))-a,void 0!==v&&Math.abs(u)=0&&!p||w<0&&p?a-v:a+v),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(e,t,n,r){var i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e=Oe?-De:y<-Oe?De:0)+v,w=Math.cos(y),_=Math.sin(y),S=Math.cos(b),x=Math.sin(b),E=y<=0&&b>=0||b>=De,T=y<=Ne&&b>=Ne||b>=De+Ne,M=y<=-Ne&&b>=-Ne||b>=Oe+Ne,C=y===-Oe||b>=Oe?-1:Math.min(w,w*m,S,S*m),I=M?-1:Math.min(_,_*m,x,x*m),L=E?1:Math.max(w,w*m,S,S*m),k=T?1:Math.max(_,_*m,x,x*m);c=(L-C)/2,l=(k-I)/2,d=-(L+C)/2,p=-(k+I)/2}for(r=0,i=h.length;r0&&!isNaN(e)?De*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,o,a,s,u,c=0,l=this.chart;if(!e)for(t=0,n=l.data.datasets.length;t(c=s>c?s:c)?u:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=V.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Pe(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Pe(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Pe(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&He(u[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return tt(e,t,{intersect:!1})},point:function(e,t){return Xe(e,We(t,e))},nearest:function(e,t,n){var r=We(t,e);n.axis=n.axis||"xy";var i=et(n.axis);return Ze(e,r,n.intersect,i)},x:function(e,t,n){var r=We(t,e),i=[],o=!1;return Qe(e,function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(i=[]),i},y:function(e,t,n){var r=We(t,e),i=[],o=!1;return Qe(e,function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(i=[]),i}}},rt=V.extend;function it(e,t){return V.where(e,function(e){return e.pos===t})}function ot(e,t){return e.sort(function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function at(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function st(e,t,n){var r,i,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=t.outerWidth-at(a,e,"left","right"),i=t.outerHeight-at(a,e,"top","bottom"),r!==e.w||i!==e.h)return e.w=r,e.h=i,n.horizontal?r!==e.w:i!==e.h}function ut(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function ct(e,t,n){var r,i,o,a,s,u,c=[];for(r=0,i=e.length;r div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&dt.default||dt,ht="$chartjs",mt="chartjs-size-monitor",vt="chartjs-render-monitor",gt="chartjs-render-animation",yt=["animationstart","webkitAnimationStart"],bt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function wt(e,t){var n=V.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var _t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function St(e,t,n){e.addEventListener(t,n,_t)}function xt(e,t,n){e.removeEventListener(t,n,_t)}function Et(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Tt(e){var t=document.createElement("div");return t.className=e||"",t}function Mt(e,t,n){var r,i,o,a,s=e[ht]||(e[ht]={}),u=s.resizer=function(e){var t=Tt(mt),n=Tt(mt+"-expand"),r=Tt(mt+"-shrink");n.appendChild(Tt()),r.appendChild(Tt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){t._reset(),e()};return St(n,"scroll",i.bind(n,"expand")),St(r,"scroll",i.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,i=r?r.clientWidth:0;t(Et("resize",n)),r&&r.clientWidth0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index-1?e.split("\n"):e}function jt(e){var t=R.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Pt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Pt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Pt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Pt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Pt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Pt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Pt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Pt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Pt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Ft(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Bt(e){return Nt([],Rt(e))}var Ht=J.extend({initialize:function(){this._model=jt(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),r=e.afterTitle.apply(this,arguments),i=[];return i=Nt(i=Nt(i=Nt(i,Rt(t)),Rt(n)),Rt(r))},getBeforeBody:function(){return Bt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return V.each(e,function(e){var o={before:[],lines:[],after:[]};Nt(o.before,Rt(r.beforeLabel.call(n,e,t))),Nt(o.lines,r.label.call(n,e,t)),Nt(o.after,Rt(r.afterLabel.call(n,e,t))),i.push(o)}),i},getAfterBody:function(){return Bt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),r=e.afterFooter.apply(this,arguments),i=[];return i=Nt(i=Nt(i=Nt(i,Rt(t)),Rt(n)),Rt(r))},update:function(e){var t,n,r,i,o,a,s,u,c,l,d=this,p=d._options,f=d._model,h=d._model=jt(p),m=d._active,v=d._data,g={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},w={x:f.caretX,y:f.caretY};if(m.length){h.opacity=1;var _=[],S=[];w=Dt[p.position].call(d,m,d._eventPosition);var x=[];for(t=0,n=m.length;tr.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===l?o+=d:o-="bottom"===l?t.height+d:t.height/2,"center"===l?"left"===c?i+=d:"right"===c&&(i-=d):"left"===c?i-=p:"right"===c&&(i+=p),{x:i,y:o}}(h,b=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,u=t.footer.length,c=t.titleFontSize,l=t.bodyFontSize,d=t.footerFontSize;r+=s*c,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=a*l,r+=a?(a-1)*t.bodySpacing:0,r+=u?t.footerMarginTop:0,r+=u*d,r+=u?(u-1)*t.footerSpacing:0;var p=0,f=function(e){i=Math.max(i,n.measureText(e).width+p)};return n.font=V.fontString(c,t._titleFontStyle,t._titleFontFamily),V.each(t.title,f),n.font=V.fontString(l,t._bodyFontStyle,t._bodyFontFamily),V.each(t.beforeBody.concat(t.afterBody),f),p=t.displayColors?l+2:0,V.each(o,function(e){V.each(e.before,f),V.each(e.lines,f),V.each(e.after,f)}),p=0,n.font=V.fontString(d,t._footerFontStyle,t._footerFontFamily),V.each(t.footer,f),{width:i+=2*t.xPadding,height:r}}(this,h),g=function(e,t){var n,r,i,o,a,s=e._model,u=e._chart,c=e._chart.chartArea,l="center",d="center";s.yu.height-t.height&&(d="bottom");var p=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=p},r=function(e){return e>p}):(n=function(e){return e<=t.width/2},r=function(e){return e>=u.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>u.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(l="left",i(s.x)&&(l="center",d=a(s.y))):r(s.x)&&(l="right",o(s.x)&&(l="center",d=a(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:l,yAlign:h.yAlign?h.yAlign:d}}(this,b),d._chart)}else h.opacity=0;return h.xAlign=g.xAlign,h.yAlign=g.yAlign,h.x=y.x,h.y=y.y,h.width=b.width,h.height=b.height,h.caretX=w.x,h.caretY=w.y,d._model=h,e&&p.custom&&p.custom.call(d,h),d},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,o,a,s,u,c=n.caretSize,l=n.cornerRadius,d=n.xAlign,p=n.yAlign,f=e.x,h=e.y,m=t.width,v=t.height;if("center"===p)s=h+v/2,"left"===d?(i=(r=f)-c,o=r,a=s+c,u=s-c):(i=(r=f+m)+c,o=r,a=s-c,u=s+c);else if("left"===d?(r=(i=f+l+c)-c,o=i+c):"right"===d?(r=(i=f+m-l-c)-c,o=i+c):(r=(i=n.caretX)-c,o=i+c),"top"===p)s=(a=h)-c,u=a;else{s=(a=h+v)+c,u=a;var g=o;o=r,r=g}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(e,t,n){var r,i,o,a=t.title,s=a.length;if(s){var u=Ot(t.rtl,t.x,t.width);for(e.x=Ft(t,t._titleAlign),n.textAlign=u.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=V.fontString(r,t._titleFontStyle,t._titleFontFamily),o=0;o0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,V.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),V.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&n._active.reverse()),(t=!V.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Vt=Dt,$t=Ht;$t.positioners=Vt;var Ut=V.valueOrDefault;function qt(){return V.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,o,a,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?V.merge(t[e][i],[At.getScaleDefaults(o),a]):V.merge(t[e][i],a)}else V._merger(e,t,n,r)}})}function Yt(){return V.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||{},o=n[e];"scales"===e?t[e]=qt(i,o):"scale"===e?t[e]=V.merge(i,[At.getScaleDefaults(o.type),o]):V._merger(e,t,n,r)}})}function Kt(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(V.findIndex(e,i)>=0);return r}function Gt(e){return"top"===e||"bottom"===e}function Jt(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Wt=function(e,t){return this.construct(e,t),this};V.extend(Wt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Yt(R.global,R[e.type],e.options||{}),e}(t);var r=kt.acquireContext(e,t),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=V.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Wt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return zt.notify(e,"beforeInit"),V.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),zt.notify(e,"afterInit"),e},clear:function(){return V.canvas.clear(this),this},stop:function(){return X.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(V.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:V.getMaximumHeight(r)));if((t.width!==o||t.height!==a)&&(r.width=t.width=o,r.height=t.height=a,r.style.width=o+"px",r.style.height=a+"px",V.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};zt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;V.each(t.xAxes,function(e,n){e.id||(e.id=Kt(t.xAxes,"x-axis-",n))}),V.each(t.yAxes,function(e,n){e.id||(e.id=Kt(t.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),V.each(r,function(t){var r=t.options,o=r.id,a=Ut(r.type,t.dtype);Gt(r.position)!==Gt(t.dposition)&&(r.position=t.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var u=At.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),V.each(i,function(e,t){e||delete n[t]}),e.scales=n,At.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e=0;--n)this.drawDataset(t[n],e);zt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==zt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),zt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==zt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),zt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return nt.modes.single(this,e)},getElementsAtEvent:function(e){return nt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return nt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=nt.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return nt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=V.log10(Math.abs(r)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=V.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(i);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var u=-1*Math.floor(i);u=Math.max(Math.min(u,20),0),o=e.toFixed(u)}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(V.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},nn=V.isArray,rn=V.isNullOrUndef,on=V.valueOrDefault,an=V.valueAtIndexOrDefault;function sn(e,t,n){var r,i=e.getTicks().length,o=Math.min(t,i-1),a=e.getPixelForTick(o),s=e._startPixel,u=e._endPixel;if(!(n&&(r=1===i?Math.max(a-s,u-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=ou+1e-6)))return a}function un(e,t,n,r){var i,o,a,s,u,c,l,d,p,f,h,m,v,g=n.length,y=[],b=[],w=[];for(i=0;it){for(n=0;n=p||l<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=u.offset?s.maxWidth/l:r/(l-1))&&(i=r/(l-(u.offset?.5:1)),o=s.maxHeight-cn(u.gridLines)-c.padding-ln(u.scaleLabel),a=Math.sqrt(t*t+n*n),f=V.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(p,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=e._isVisible(),u="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=cn(a)+ln(o)),c?s&&(t.height=cn(a)+ln(o)):t.height=e.maxHeight,i.display&&s){var l=pn(i),d=e._getLabelSizes(),p=d.first,f=d.last,h=d.widest,m=d.highest,v=.4*l.minor.lineHeight,g=i.padding;if(c){var y=0!==e.labelRotation,b=V.toRadians(e.labelRotation),w=Math.cos(b),_=Math.sin(b),S=_*h.width+w*(m.height-(y?m.offset:0))+(y?0:v);t.height=Math.min(e.maxHeight,t.height+S+g);var x,E,T=e.getPixelForTick(0)-e.left,M=e.right-e.getPixelForTick(e.getTicks().length-1);y?(x=u?w*p.width+_*p.offset:_*(p.height-p.offset),E=u?_*(f.height-f.offset):w*f.width+_*f.offset):(x=p.width/2,E=f.width/2),e.paddingLeft=Math.max((x-T)*e.width/(e.width-T),0)+3,e.paddingRight=Math.max((E-M)*e.width/(e.width-M),0)+3}else{var C=i.mirror?0:h.width+g+v;t.width=Math.min(e.maxWidth,t.width+C),e.paddingTop=p.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){V.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(rn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map(function(e){return e.value}),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;nn-1?null:this.getPixelForDecimal(e*r+(t?r/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,i,o=this.options.ticks,a=this._length,s=o.maxTicksLimit||a/this._tickSize()+1,u=o.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;ts)return function(e,t,n){var r,i,o=0,a=t[0];for(n=Math.ceil(n),r=0;rc)return o;return Math.max(c,1)}(u,e,0,s),c>0){for(t=0,n=c-1;t1?(d-l)/(c-1):null,hn(e,r,V.isNullOrUndef(i)?0:l-i,l),hn(e,r,d,V.isNullOrUndef(i)?e.length:d+i),fn(e)}return hn(e,r),fn(e)},_tickSize:function(){var e=this.options.ticks,t=V.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;vn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,o,a=this;return gn(t)||gn(n)||(e=a.chart.data.datasets[n].data[t]),gn(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=V.valueOrDefault(r,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),bn={position:"bottom"};yn._defaults=bn;var wn=V.noop,_n=V.isNullOrUndef;var Sn=vn.extend({getRightValue:function(e){return"string"==typeof e?+e:vn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=V.sign(e.min),r=V.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==o&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:V.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var n,r,i,o,a=[],s=e.stepSize,u=s||1,c=e.maxTicks-1,l=e.min,d=e.max,p=e.precision,f=t.min,h=t.max,m=V.niceNum((h-f)/c/u)*u;if(m<1e-14&&_n(l)&&_n(d))return[f,h];(o=Math.ceil(h/m)-Math.floor(f/m))>c&&(m=V.niceNum(o*m/c/u)*u),s||_n(p)?n=Math.pow(10,V._decimalPlaces(m)):(n=Math.pow(10,p),m=Math.ceil(m*n)/n),r=Math.floor(f/m)*m,i=Math.ceil(h/m)*m,s&&(!_n(l)&&V.almostWhole(l/m,m/1e3)&&(r=l),!_n(d)&&V.almostWhole(d/m,m/1e3)&&(i=d)),o=(i-r)/m,o=V.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(_n(l)?r:l);for(var v=1;vt.length-1?null:this.getPixelForValue(t[e])}}),Cn=xn;Mn._defaults=Cn;var In=V.valueOrDefault,Ln=V.math.log10;var kn={position:"left",ticks:{callback:tn.formatters.logarithmic}};function zn(e,t){return V.isFinite(e)&&e>=0?e:t}var An=vn.extend({determineDataLimits:function(){var e,t,n,r,i,o,a=this,s=a.options,u=a.chart,c=u.data.datasets,l=a.isHorizontal();function d(e){return l?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var p=s.stacked;if(void 0===p)for(e=0;e0){var t=V.min(e),n=V.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}})}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Ln(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:zn(t.min),max:zn(t.max)},i=e.ticks=function(e,t){var n,r,i=[],o=In(e.min,Math.pow(10,Math.floor(Ln(t.min)))),a=Math.floor(Ln(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Ln(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(Ln(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10==++r&&(r=1,u=++n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(nt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Ln(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;vn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=In(e.options.ticks.fontSize,R.global.defaultFontSize)/e._length),e._startValue=Ln(t),e._valueOffset=n,e._valueRange=(Ln(e.max)-Ln(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Ln(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Pn=kn;An._defaults=Pn;var On=V.valueOrDefault,Dn=V.valueAtIndexOrDefault,Nn=V.options.resolve,Rn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function jn(e){var t=e.ticks;return t.display&&e.display?On(t.fontSize,R.global.defaultFontSize)+2*t.backdropPaddingY:0}function Fn(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function Bn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Hn(e,t,n,r){var i,o,a=n.y+r/2;if(V.isArray(t))for(i=0,o=t.length;i270||e<90)&&(n.y-=t.h)}function $n(e){return V.isNumber(e)?e:0}var Un=Sn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=jn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;V.each(t.data.datasets,function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);V.each(i.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/jn(this.options))},convertTicksToLabels:function(){var e=this;Sn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=V.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,i=V.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,u,c,l=e.chart.data.labels.length;for(t=0;to.r&&(o.r=f.end,a.r=d),h.starto.b&&(o.b=h.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=$n(i),o=$n(o),a=$n(a),s=$n(s),r.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,u=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(V.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,u=On(s.lineWidth,a.lineWidth),c=On(s.color,a.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=jn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=V.options._parseFont(r);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,c=e.getPointPosition(s,o+u+5),l=Dn(r.fontColor,s,R.global.defaultFontColor);t.fillStyle=l;var d=e.getIndexAngle(s),p=V.toDegrees(d);t.textAlign=Bn(p),Vn(p,e._pointLabelSizes[s],c),Hn(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(r),a.display&&V.each(r.ticks,function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var i,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,u=Dn(t.color,r-1),c=Dn(t.lineWidth,r-1);if((a||s)&&u&&c){if(o.save(),o.strokeStyle=u,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var l=1;l=0;e--)t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,o=e.getIndexAngle(0),a=V.options._parseFont(n),s=On(n.fontColor,R.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",V.each(e.ticks,function(o,u){(0!==u||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),n.showLabelBackdrop&&(i=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-r))}),t.restore()}},_drawTitle:V.noop}),qn=Rn;Un._defaults=qn;var Yn=V._deprecated,Kn=V.options.resolve,Gn=V.valueOrDefault,Jn=Number.MIN_SAFE_INTEGER||-9007199254740991,Wn=Number.MAX_SAFE_INTEGER||9007199254740991,Qn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Xn=Object.keys(Qn);function Zn(e,t){return e-t}function er(e){return V.valueOrDefault(e.time.min,e.ticks.min)}function tr(e){return V.valueOrDefault(e.time.max,e.ticks.max)}function nr(e,t,n,r){var i=function(e,t,n){for(var r,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(r=a+s>>1)-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],u=s?(n-o[t])/s:0,c=(a[r]-o[r])*u;return o[r]+c}function rr(e,t){var n=e._adapter,r=e.options.time,i=r.parser,o=i||r.format,a=t;return"function"==typeof i&&(a=i(a)),V.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(t),V.isFinite(a)||(a=n.parse(a))),a)}function ir(e,t){if(V.isNullOrUndef(t))return null;var n=e.options.time,r=rr(e,e.getRightValue(t));return null===r?r:(n.round&&(r=+e._adapter.startOf(r,n.round)),r)}function or(e,t,n,r){var i,o,a,s=Xn.length;for(i=Xn.indexOf(e);i=0&&(t[o].major=!0);return t}(e,o,a,n):o}var sr=vn.extend({initialize:function(){this.mergeTicksOptions(),vn.prototype.initialize.call(this)},update:function(){var e=this.options,t=e.time||(e.time={}),n=this._adapter=new en._date(e.adapters.date);return Yn("time scale",t.format,"time.format","time.parser"),Yn("time scale",t.min,"time.min","ticks.min"),Yn("time scale",t.max,"time.max","ticks.max"),V.mergeIf(t.displayFormats,n.formats()),vn.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),vn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,o,a,s=this,u=s.chart,c=s._adapter,l=s.options,d=l.time.unit||"day",p=Wn,f=Jn,h=[],m=[],v=[],g=s._getLabels();for(e=0,n=g.length;e1?function(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+u;for(i=d;i=i&&n<=o&&l.push(n);return r.min=i,r.max=o,r._unit=u.unit||(s.autoSkip?or(u.minUnit,r.min,r.max,d):function(e,t,n,r,i){var o,a;for(o=Xn.length-1;o>=Xn.indexOf(n);o--)if(a=Xn[o],Qn[a].common&&e._adapter.diff(i,r,a)>=t-1)return a;return Xn[n?Xn.indexOf(n):0]}(r,l.length,u.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=Xn.indexOf(e)+1,n=Xn.length;tt&&s=0&&e0?s:1}}),ur={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};sr._defaults=ur;var cr={category:yn,linear:Mn,logarithmic:An,radialLinear:Un,time:sr},lr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};en._date.override("function"==typeof e?{_id:"moment",formats:function(){return lr},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var dr={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=i.length||0;return o?function(e,t){return t=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function fr(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,r,i,o,a=e.el._scale,s=a.options,u=a.chart.data.labels.length,c=e.fill,l=[];if(!u)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,t),i=0;i0;--o)V.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,u=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=i-1;o>0;--o)e.arc(a,s,u,n[o].angle,n[o-1].angle,!0)}}function yr(e,t,n,r,i,o){var a,s,u,c,l,d,p,f,h=t.length,m=r.spanGaps,v=[],g=[],y=0,b=0;for(e.beginPath(),a=0,s=h;a=0;--n)(t=u[n].$filler)&&t.visible&&(i=(r=t.el)._view,o=r._children||[],a=t.mapper,s=i.backgroundColor||R.global.defaultColor,a&&s&&o.length&&(V.canvas.clipArea(c,e.chartArea),yr(c,o,a,i,s,r._loop),V.canvas.unclipArea(c)))}},wr=V.rtl.getRtlAdapter,_r=V.noop,Sr=V.valueOrDefault;function xr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),o=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=o.length;tu.width)&&(d+=a+n.padding,l[l.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:a},l[l.length-1]+=r+n.padding}),u.height+=d}else{var p=n.padding,f=e.columnWidths=[],h=e.columnHeights=[],m=n.padding,v=0,g=0;V.each(e.legendItems,function(e,t){var r=xr(n,a)+a/2+i.measureText(e.text).width;t>0&&g+a+2*p>u.height&&(m+=v+n.padding,f.push(v),h.push(g),v=0,g=0),v=Math.max(v,r),g+=a+p,s[t]={left:0,top:0,width:r,height:a}}),m+=v,f.push(v),h.push(g),u.width+=m}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:_r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=R.global,i=r.defaultColor,o=r.elements.line,a=e.height,s=e.columnHeights,u=e.width,c=e.lineWidths;if(t.display){var l,d=wr(t.rtl,e.left,e.minSize.width),p=e.ctx,f=Sr(n.fontColor,r.defaultFontColor),h=V.options._parseFont(n),m=h.size;p.textAlign=d.textAlign("left"),p.textBaseline="middle",p.lineWidth=.5,p.strokeStyle=f,p.fillStyle=f,p.font=h.string;var v=xr(n,m),g=e.legendHitBoxes,y=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},b=e.isHorizontal();l=b?{x:e.left+y(u,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},V.rtl.overrideTextDirection(e.ctx,t.textDirection);var w=m+n.padding;V.each(e.legendItems,function(t,r){var f=p.measureText(t.text).width,h=v+m/2+f,_=l.x,S=l.y;d.setWidth(e.minSize.width),b?r>0&&_+h+n.padding>e.left+e.minSize.width&&(S=l.y+=w,l.line++,_=l.x=e.left+y(u,c[l.line])):r>0&&S+w>e.top+e.minSize.height&&(_=l.x=_+e.columnWidths[l.line]+n.padding,l.line++,S=l.y=e.top+y(a,s[l.line]));var x=d.x(_);!function(e,t,r){if(!(isNaN(v)||v<=0)){p.save();var a=Sr(r.lineWidth,o.borderWidth);if(p.fillStyle=Sr(r.fillStyle,i),p.lineCap=Sr(r.lineCap,o.borderCapStyle),p.lineDashOffset=Sr(r.lineDashOffset,o.borderDashOffset),p.lineJoin=Sr(r.lineJoin,o.borderJoinStyle),p.lineWidth=a,p.strokeStyle=Sr(r.strokeStyle,i),p.setLineDash&&p.setLineDash(Sr(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=v*Math.SQRT2/2,u=d.xPlus(e,v/2),c=t+m/2;V.canvas.drawPoint(p,r.pointStyle,s,u,c,r.rotation)}else p.fillRect(d.leftForLtr(e,v),t,v,m),0!==a&&p.strokeRect(d.leftForLtr(e,v),t,v,m);p.restore()}}(x,S,t),g[r].left=d.leftForLtr(x,g[r].width),g[r].top=S,function(e,t,n,r){var i=m/2,o=d.xPlus(e,v+i),a=t+i;p.fillText(n.text,o,a),n.hidden&&(p.beginPath(),p.lineWidth=2,p.moveTo(o,a),p.lineTo(d.xPlus(o,r),a),p.stroke())}(x,S,t,f),b?l.x+=h+n.padding:l.y+=w}),V.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(i=o.legendHitBoxes,n=0;n=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Tr(e,t){var n=new Er({ctx:e.ctx,options:t,chart:e});pt.configure(e,n,t),pt.addBox(e,n),e.legend=n}var Mr={id:"legend",_element:Er,beforeInit:function(e){var t=e.options.legend;t&&Tr(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(V.mergeIf(t,R.global.legend),n?(pt.configure(e,n,t),n.options=t):Tr(e,t)):n&&(pt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Cr=V.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ir=J.extend({initialize:function(e){V.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Cr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Cr,beforeSetDimensions:Cr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Cr,beforeBuildLabels:Cr,buildLabels:Cr,afterBuildLabels:Cr,beforeFit:Cr,fit:function(){var e,t=this,n=t.options,r=t.minSize={},i=t.isHorizontal();n.display?(e=(V.isArray(n.text)?n.text.length:1)*V.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=i?t.maxWidth:e,t.height=r.height=i?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Cr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,o,a=V.options._parseFont(n),s=a.lineHeight,u=s/2+n.padding,c=0,l=e.top,d=e.left,p=e.bottom,f=e.right;t.fillStyle=V.valueOrDefault(n.fontColor,R.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=d+(f-d)/2,o=l+u,r=f-d):(i="left"===n.position?d+u:f-u,o=l+(p-l)/2,r=p-l,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(V.isArray(h))for(var m=0,v=0;v=0;r--){var i=e[r];if(t(i))return i}},V.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},V.almostEquals=function(e,t,n){return Math.abs(e-t)=e},V.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},V.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},V.toRadians=function(e){return e*(Math.PI/180)},V.toDegrees=function(e){return e*(180/Math.PI)},V._decimalPlaces=function(e){if(V.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},V.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},V.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},V.aliasPixel=function(e){return e%2==0?0:.5},V._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},V.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+u),l=u/(s+u),d=r*(c=isNaN(c)?0:c),p=r*(l=isNaN(l)?0:l);return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(e){var t,n,r,i,o,a,s,u,c,l=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=l.length;for(t=0;t0?l[t-1]:null,(i=t0?l[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},V.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},V.niceNum=function(e,t){var n=Math.floor(V.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},V.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},V.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(V.getStyle(o,"padding-left")),c=parseFloat(V.getStyle(o,"padding-top")),l=parseFloat(V.getStyle(o,"padding-right")),d=parseFloat(V.getStyle(o,"padding-bottom")),p=a.right-a.left-u-l,f=a.bottom-a.top-c-d;return{x:n=Math.round((n-a.left-u)/p*o.width/t.currentDevicePixelRatio),y:r=Math.round((r-a.top-c)/f*o.height/t.currentDevicePixelRatio)}},V.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},V.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},V._calculatePadding=function(e,t,n){return(t=V.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},V._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},V.getMaximumWidth=function(e){var t=V._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-V._calculatePadding(t,"padding-left",n)-V._calculatePadding(t,"padding-right",n),i=V.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},V.getMaximumHeight=function(e){var t=V._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-V._calculatePadding(t,"padding-top",n)-V._calculatePadding(t,"padding-bottom",n),i=V.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},V.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},V.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},V.fontString=function(e,t,n){return t+" "+e+"px "+n},V.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var a,s,u,c,l,d=0,p=n.length;for(a=0;an.length){for(a=0;ar&&(r=o),r},V.numberOfLabelLines=function(e){var t=1;return V.each(e,function(e){V.isArray(e)&&e.length>t&&(t=e.length)}),t},V.color=x?function(e){return e instanceof CanvasGradient&&(e=R.global.defaultColor),x(e)}:function(e){return console.error("Color.js not found!"),e},V.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:V.color(e).saturate(.5).darken(.1).rgbString()}}(),Qt._adapters=en,Qt.Animation=Q,Qt.animationService=X,Qt.controllers=Je,Qt.DatasetController=re,Qt.defaults=R,Qt.Element=J,Qt.elements=_e,Qt.Interaction=nt,Qt.layouts=pt,Qt.platform=kt,Qt.plugins=zt,Qt.Scale=vn,Qt.scaleService=At,Qt.Ticks=tn,Qt.Tooltip=$t,Qt.helpers.each(cr,function(e,t){Qt.scaleService.registerScaleType(t,e,e._defaults)}),kr)kr.hasOwnProperty(Or)&&Qt.plugins.register(kr[Or]);Qt.platform.initialize();var Dr=Qt;return"undefined"!=typeof window&&(window.Chart=Qt),Qt.Chart=Qt,Qt.Legend=kr.legend._element,Qt.Title=kr.title._element,Qt.pluginService=Qt.plugins,Qt.PluginBase=Qt.Element.extend({}),Qt.canvasHelpers=Qt.helpers.canvas,Qt.layoutService=Qt.layouts,Qt.LinearScaleBase=Sn,Qt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Qt[e]=function(t,n){return new Qt(t,Qt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Dr},e.exports=r(function(){try{return n("PJh5")}catch(e){}}())},imBK:function(e,t,n){var r=n("22B7");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},ixoM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=void 0!==e&&e&&Object({NODE_ENV:"production",API_STAGE:"",API_ENDPOINT:"https://rxcc1xrj8f.execute-api.ap-northeast-1.amazonaws.com/",API_ENDPOINT_PREFIX:"https://webapp-api",API_ENDPOINT_SUFFIX:".muroran.honeycomb-pf.com",API_INT_STAGE:"",INTERNALAPI_ENDPOINT:"https://dhsh4t30u3.execute-api.ap-northeast-1.amazonaws.com/",INTERNALAPI_ENDPOINT_PREFIX:"https://internal-api",INTERNALAPI_ENDPOINT_SUFFIX:".muroran.honeycomb-pf.com",COGNITO_IDENTITYPOOLID:"ap-northeast-1:2c7611df-14ea-4d6c-ad17-af9aadd87e21",COGNITO_REGION:"ap-northeast-1",COGNITO_USERPOOLID:"ap-northeast-1_kMx36dxuo",COGNITO_USERPOOLWEBCLIENTID:"7rqdmb99256t3s6f6fmtcnt16d"})||{};return t?r[t]||n:r},i=function(){return r("BOOTSTRAP_VUE_NO_WARN")||"production"===r("NODE_ENV")}}).call(t,n("W2nU"))},iyRJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},"j+vx":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n("PJh5"))},j8cJ:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})(n("PJh5"))},jFbC:function(e,t,n){n("Cdx3"),e.exports=n("FeBl").Object.keys},"jKW+":function(e,t,n){"use strict";var r=n("kM2E"),i=n("qARP"),o=n("dNDb");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},jaxX:function(e,t,n){var r=n("AFCf"),i=n("3/cC");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},jsER:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},jxEH:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},"k+5o":function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})})(n("PJh5"))},kErC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},kI9l:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n("PJh5"))},kM2E:function(e,t,n){var r=n("7KvD"),i=n("FeBl"),o=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),u=function(e,t,n){var c,l,d,p=e&u.F,f=e&u.G,h=e&u.S,m=e&u.P,v=e&u.B,g=e&u.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,w=f?r:h?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(l=!p&&w&&void 0!==w[c])&&s(y,c)||(d=l?w[c]:n[c],y[c]=f&&"function"!=typeof w[c]?n[c]:v&&l?o(d,r):g&&w[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&u.R&&b&&!b[c]&&a(b,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},kMPS:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(d=m.substr(0,v),p=m.substr(v+1)):(d=m,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),r(a,f)?i(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kctE:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r,i=n("Vaby"),o=n("ku4m"),a=n("rU+r"),s=n("/lLX"),u=n("7Flx"),c=n("pXdf"),l=n("XN3Q"),d=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},f=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i.Transcript.Results[0].Alternatives.length>0&&i.Transcript.Results[0].Alternatives[0].Transcript.length>0&&(!1===i.Transcript.Results[0].IsPartial?(n=i.Transcript.Results[0].Alternatives[0].Transcript+"\n",h.debug({decodedMessage:n})):h.debug({transcript:i.Transcript.Results[0].Alternatives[0]})),n},n.prototype.sendDataToTranscribe=function(t){var r=this,i=t.connection,o=t.raw;return new Promise(function(t,a){var s="";if(i.onmessage=function(e){try{var t=n.serializeDataFromTranscribe(e);t&&(s+=t+" ")}catch(e){h.debug(e),a(e.message)}},i.onerror=function(e){h.debug({errorEvent:e}),a("failed to transcribe, network error")},i.onclose=function(e){return h.debug({closeEvent:e}),t(s.trim())},h.debug({raw:o}),Array.isArray(o))for(var u=0;u0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}Object.create;var p=n("XEVb"),f=n.n(p),h=n("gFtY"),m=n("OqwH"),v=n("X/+I"),g=n("iZss"),y=n("JVbd"),b=n("IhUy"),w=n("pK6L");var _,S,x,E,T,M,C,I,L,k,z,A,P,O,D,N,R,j,F,B,H,V,$,U,q,Y,K,G,J,W,Q,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,de,pe,fe,he,me,ve,ge,ye,be,we,_e,Se,xe,Ee,Te,Me,Ce=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"]),Ie=new Set(["cn-north-1","cn-northwest-1"]),Le=new Set(["us-iso-east-1"]),ke=new Set(["us-isob-east-1"]),ze=new Set(["us-gov-east-1","us-gov-west-1"]),Ae={apiVersion:"2017-07-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-east-1":n={hostname:"translate.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"translate.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"translate.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"translate.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"translate.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"translate.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"translate.ca-central-1.amazonaws.com",partition:"aws"};break;case"eu-central-1":n={hostname:"translate.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"translate.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"translate.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"translate.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"translate.eu-west-3.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"translate.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"translate-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"translate.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"translate-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-west-1":n={hostname:"translate.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"translate-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"translate.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-west-1":n={hostname:"translate.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"translate.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"translate-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:Ce.has(e)&&(n={hostname:"translate.{region}.amazonaws.com".replace("{region}",e),partition:"aws"}),Ie.has(e)&&(n={hostname:"translate.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),Le.has(e)&&(n={hostname:"translate.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),ke.has(e)&&(n={hostname:"translate.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),ze.has(e)&&(n={hostname:"translate.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:"translate.{region}.amazonaws.com".replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"translate"},n))},serviceId:"Translate",urlParser:n("40b9").a},Pe=o(o({},Ae),{runtime:"browser",base64Decoder:y.a,base64Encoder:y.b,bodyLengthChecker:b.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(w.a)({serviceId:Ae.serviceId,clientVersion:f.a.version}),maxAttempts:g.a,region:Object(v.a)("Region is missing"),requestHandler:new m.a,sha256:h.Sha256,streamCollector:m.b,utf8Decoder:function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},In=n("LPDJ"),Ln=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"CreateParallelDataCommand",inputFilterSensitiveLog:I.filterSensitiveLog,outputFilterSensitiveLog:k.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.CreateParallelData"},r=JSON.stringify(gt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ue(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Bt(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),kn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"DeleteParallelDataCommand",inputFilterSensitiveLog:R.filterSensitiveLog,outputFilterSensitiveLog:j.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.DeleteParallelData"},r=JSON.stringify(yt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,qe(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Ht(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),zn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"DeleteTerminologyCommand",inputFilterSensitiveLog:B.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.DeleteTerminology"},r=JSON.stringify(bt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[2,Ye(e,t)]:[4,En(e.body,t)];case 1:return r.sent(),n={$metadata:xn(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Be.b),An=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"DescribeTextTranslationJobCommand",inputFilterSensitiveLog:H.filterSensitiveLog,outputFilterSensitiveLog:K.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.DescribeTextTranslationJob"},r=JSON.stringify(wt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ke(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Vt(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Pn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"GetParallelDataCommand",inputFilterSensitiveLog:G.filterSensitiveLog,outputFilterSensitiveLog:Q.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.GetParallelData"},r=JSON.stringify(St(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ge(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=qt(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),On=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"GetTerminologyCommand",inputFilterSensitiveLog:Z.filterSensitiveLog,outputFilterSensitiveLog:ne.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.GetTerminology"},r=JSON.stringify(xt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Je(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Yt(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Dn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"ImportTerminologyCommand",inputFilterSensitiveLog:oe.filterSensitiveLog,outputFilterSensitiveLog:ae.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.ImportTerminology"},r=JSON.stringify(Et(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,We(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Kt(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Nn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"ListParallelDataCommand",inputFilterSensitiveLog:se.filterSensitiveLog,outputFilterSensitiveLog:ue.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.ListParallelData"},r=JSON.stringify(Tt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Qe(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=en(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Rn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"ListTerminologiesCommand",inputFilterSensitiveLog:ce.filterSensitiveLog,outputFilterSensitiveLog:le.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.ListTerminologies"},r=JSON.stringify(Mt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Xe(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=tn(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),jn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"ListTextTranslationJobsCommand",inputFilterSensitiveLog:fe.filterSensitiveLog,outputFilterSensitiveLog:he.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.ListTextTranslationJobs"},r=JSON.stringify(Ct(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ze(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=nn(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Fn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"StartTextTranslationJobCommand",inputFilterSensitiveLog:me.filterSensitiveLog,outputFilterSensitiveLog:ve.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.StartTextTranslationJob"},r=JSON.stringify(kt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,et(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=ln(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Bn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"StopTextTranslationJobCommand",inputFilterSensitiveLog:ye.filterSensitiveLog,outputFilterSensitiveLog:be.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.StopTextTranslationJob"},r=JSON.stringify(zt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,tt(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=dn(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Hn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"TranslateTextCommand",inputFilterSensitiveLog:xe.filterSensitiveLog,outputFilterSensitiveLog:Ee.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.TranslateText"},r=JSON.stringify(Dt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,nt(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=wn(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),Vn=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(In.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"TranslateClient",commandName:"UpdateParallelDataCommand",inputFilterSensitiveLog:Te.filterSensitiveLog,outputFilterSensitiveLog:Me.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSShineFrontendService_20170701.UpdateParallelData"},r=JSON.stringify(Nt(e,t)),[2,Tn(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return e.statusCode>=300?[2,rt(e,t)]:[4,Mn(e.body,t)];case 1:return n=a.sent(),r={},r=Sn(n,t),i=o({$metadata:xn(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Be.b),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createParallelData=function(e,t,n){var r=new Ln(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteParallelData=function(e,t,n){var r=new kn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteTerminology=function(e,t,n){var r=new zn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeTextTranslationJob=function(e,t,n){var r=new An(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getParallelData=function(e,t,n){var r=new Pn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getTerminology=function(e,t,n){var r=new On(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.importTerminology=function(e,t,n){var r=new Dn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listParallelData=function(e,t,n){var r=new Nn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTerminologies=function(e,t,n){var r=new Rn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTextTranslationJobs=function(e,t,n){var r=new jn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startTextTranslationJob=function(e,t,n){var r=new Fn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopTextTranslationJob=function(e,t,n){var r=new Bn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.translateText=function(e,t,n){var r=new Hn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateParallelData=function(e,t,n){var r=new Vn(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t}(He),Un=function(e,t){for(var n=[],r=2;r=0&&this.changeListeners.splice(t,1)},e}();t.a=a},lHK6:function(e,t,n){var r=n("/GnY"),i=n("gHOb"),o=n("1Yb9"),a=n("NGEn"),s=n("bGc4"),u=n("ggOT"),c=n("HT7L"),l=n("YsVG"),d="[object Map]",p="[object Set]",f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if(t==d||t==p)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},lOED:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})(n("PJh5"))},lOnJ:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},lb6C:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},P=new o.c("GraphQLAPI"),O=function(e,t){return void 0===t&&(t={}),{query:e,variables:t}},D=function(){function e(e){this._api=null,this.Auth=r.b,this.Cache=i.a,this.Credentials=o.e,this._options=e,P.debug("API Options",this._options)}return e.prototype.getModuleName=function(){return"GraphQLAPI"},e.prototype.configure=function(e){var t=e||{},n=t.API,r=void 0===n?{}:n,i=z(t,["API"]),o=I(I({},i),r);return P.debug("configure GraphQL API",{opt:o}),o.aws_project_region&&(o=Object.assign({},o,{region:o.aws_project_region,header:{}})),void 0!==o.graphql_headers&&"function"!=typeof o.graphql_headers&&(P.warn("graphql_headers should be a function"),o.graphql_headers=void 0),this._options=Object.assign({},this._options,o),this.createInstance(),this._options},e.prototype.createInstance=function(){return P.debug("create Rest instance"),this._options?(this._api=new h(this._options),this._api.Credentials=this.Credentials,!0):Promise.reject("API not configured")},e.prototype._headerBasedAuth=function(e){return L(this,void 0,void 0,function(){var t,n,o,a,s,u,c,l;return k(this,function(d){switch(d.label){case 0:switch(t=this._options,n=t.aws_appsync_authenticationType,o=t.aws_appsync_apiKey,a={},e||n||"AWS_IAM"){case"API_KEY":return[3,1];case"AWS_IAM":return[3,2];case"OPENID_CONNECT":return[3,4];case"AMAZON_COGNITO_USER_POOLS":return[3,11]}return[3,15];case 1:if(!o)throw new Error(x.NO_API_KEY);return a={Authorization:null,"X-Api-Key":o},[3,16];case 2:return[4,this._ensureCredentials()];case 3:if(!d.sent())throw new Error(x.NO_CREDENTIALS);return[3,16];case 4:return d.trys.push([4,9,,10]),s=void 0,[4,i.a.getItem("federatedInfo")];case 5:return(u=d.sent())?(s=u.token,[3,8]):[3,6];case 6:return[4,r.b.currentAuthenticatedUser()];case 7:(c=d.sent())&&(s=c.token),d.label=8;case 8:if(!s)throw new Error(x.NO_FEDERATED_JWT);return a={Authorization:s},[3,10];case 9:throw d.sent(),new Error(x.NO_CURRENT_USER);case 10:return[3,16];case 11:return d.trys.push([11,13,,14]),[4,this.Auth.currentSession()];case 12:return l=d.sent(),a={Authorization:l.getAccessToken().getJwtToken()},[3,14];case 13:throw d.sent(),new Error(x.NO_CURRENT_USER);case 14:return[3,16];case 15:return a={Authorization:null},[3,16];case 16:return[2,a]}})})},e.prototype.getGraphqlOperationType=function(e){var t=Object(M.parse)(e);return A(t.definitions,1)[0].operation},e.prototype.graphql=function(e,t){var n=e.query,r=e.variables,i=void 0===r?{}:r,o=e.authMode,a="string"==typeof n?Object(M.parse)(n):Object(M.parse)(Object(T.print)(n)),s=A(a.definitions.filter(function(e){return"OperationDefinition"===e.kind}),1)[0],u=(void 0===s?{}:s).operation;switch(u){case"query":case"mutation":var c=this._api.getCancellableToken(),l={cancellableToken:c},d=this._graphql({query:a,variables:i,authMode:o},t,l);return this._api.updateRequestToBeCancellable(d,c),d;case"subscription":return this._graphqlSubscribe({query:a,variables:i,authMode:o},t)}throw new Error("invalid operation type: "+u)},e.prototype._graphql=function(e,t,n){var r=e.query,i=e.variables,a=e.authMode;return void 0===t&&(t={}),void 0===n&&(n={}),L(this,void 0,void 0,function(){var e,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,M,C,L;return k(this,function(k){switch(k.label){case 0:return this._api?[3,2]:[4,this.createInstance()];case 1:k.sent(),k.label=2;case 2:return e=this._options,s=e.aws_appsync_region,u=e.aws_appsync_graphqlEndpoint,c=e.graphql_headers,l=void 0===c?function(){return{}}:c,d=e.graphql_endpoint,p=e.graphql_endpoint_iam_region,h=[{}],(m=!d)?[4,this._headerBasedAuth(a)]:[3,4];case 3:m=k.sent(),k.label=4;case 4:return v=[I.apply(void 0,h.concat([m]))],(g=d)?p?[4,this._headerBasedAuth(a)]:[3,6]:[3,8];case 5:return y=k.sent(),[3,7];case 6:y={Authorization:null},k.label=7;case 7:g=y,k.label=8;case 8:return b=[I.apply(void 0,v.concat([g]))],[4,l({query:r,variables:i})];case 9:if(f=I.apply(void 0,[I.apply(void 0,[I.apply(void 0,b.concat([k.sent()])),t]),!d&&(L={},L["x-amz-user-agent"]=o.d.userAgent,L)]),w={query:Object(T.print)(r),variables:i},_=Object.assign({headers:f,body:w,signerServiceInfo:{service:d?"execute-api":"appsync",region:d?p:s}},n),!(S=d||u))throw{data:{},errors:[new E.GraphQLError("No graphql endpoint provided.")]};k.label=10;case 10:return k.trys.push([10,12,,13]),[4,this._api.post(S,_)];case 11:return x=k.sent(),[3,13];case 12:if(M=k.sent(),this._api.isCancel(M))throw M;return x={data:{},errors:[new E.GraphQLError(M.message,null,null,null,null,M)]},[3,13];case 13:if((C=x.errors)&&C.length)throw x;return[2,x]}})})},e.prototype.isCancel=function(e){return this._api.isCancel(e)},e.prototype.cancel=function(e,t){return this._api.cancel(e,t)},e.prototype._graphqlSubscribe=function(e,t){var n=e.query,r=e.variables,i=e.authMode;void 0===t&&(t={});var a=this._options,s=a.aws_appsync_region,u=a.aws_appsync_graphqlEndpoint,c=a.aws_appsync_authenticationType,l=a.aws_appsync_apiKey,d=a.graphql_headers,p=void 0===d?function(){return{}}:d,f=i||c||"AWS_IAM";if(C.c&&"function"==typeof C.c.subscribe)return C.c.subscribe("",{provider:o.j,appSyncGraphqlEndpoint:u,authenticationType:f,apiKey:l,query:Object(T.print)(n),region:s,variables:r,graphql_headers:p,additionalHeaders:t});throw P.debug("No pubsub module applied for subscription"),new Error("No pubsub module applied for subscription")},e.prototype._ensureCredentials=function(){var e=this;return this.Credentials.get().then(function(t){if(!t)return!1;var n=e.Credentials.shear(t);return P.debug("set credentials for api",n),!0}).catch(function(e){return P.warn("ensure credentials error",e),!1})},e}(),N=new D(null);o.a.register(N);var R=this&&this.__assign||function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&(o+=t[n]+"vatlh");r>0&&(o+=(""!==o?" ":"")+t[r]+"maH");i>0&&(o+=(""!==o?" ":"")+t[i]);return""===o?"pagh":o}(e);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},mCXM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n("Hw4J"),i=n("Jko5"),o=n("nSZy");function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(e){u(this,"_ast",void 0),u(this,"_errors",void 0),this._ast=e,this._errors=[]}var t=e.prototype;return t.reportError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},t.getDocument=function(){return this._ast},e}();t.ASTValidationContext=c;var l=function(e){function t(t,n){var r;return u(s(s(r=e.call(this,t)||this)),"_schema",void 0),r._schema=n,r}return a(t,e),t.prototype.getSchema=function(){return this._schema},t}(c);t.SDLValidationContext=l;var d=function(e){function t(t,n,r){var i;return u(s(s(i=e.call(this,n)||this)),"_schema",void 0),u(s(s(i)),"_typeInfo",void 0),u(s(s(i)),"_fragments",void 0),u(s(s(i)),"_fragmentSpreads",void 0),u(s(s(i)),"_recursivelyReferencedFragments",void 0),u(s(s(i)),"_variableUsages",void 0),u(s(s(i)),"_recursiveVariableUsages",void 0),i._schema=t,i._typeInfo=r,i._fragmentSpreads=new Map,i._recursivelyReferencedFragments=new Map,i._variableUsages=new Map,i._recursiveVariableUsages=new Map,i}a(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===i.Kind.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},n.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=n.pop(),o=0;o0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=new i.c("SumerianProvider"),S=function(e){function t(t){return void 0===t&&(t={}),e.call(this,t)||this}return v(t,e),t.prototype.getProviderName=function(){return"SumerianProvider"},t.prototype.loadScript=function(e){return y(this,void 0,void 0,function(){return b(this,function(t){return[2,new Promise(function(t,n){var r=document.createElement("script");r.src=e,r.addEventListener("load",function(e){t()}),r.addEventListener("error",function(t){n(new Error("Failed to load script: "+e))}),document.head.appendChild(r)})]})})},t.prototype.loadScene=function(e,t,n){return y(this,void 0,void 0,function(){var r,o,a,s,u,c,l,d,p,m,v,y,S,x,E,T,M,C,I,L,k,z,A,P,O,D,N;return b(this,function(b){switch(b.label){case 0:if(!e)throw c="No scene name passed into loadScene",_.error(c),new h(c);if(!t)throw c="No dom element id passed into loadScene",_.error(c),new f(c);if(!(r=document.getElementById(t)))throw c="DOM element id, "+t+" not found",_.error(c),new f(c);if(!(o=this.getScene(e)).sceneConfig)throw c="No scene config configured for scene: "+e,_.error(c),new h(c);if(a=o.sceneConfig.url,s=o.sceneConfig.sceneId,o.sceneConfig.hasOwnProperty("region"))u=o.sceneConfig.region;else{if(!this.options.hasOwnProperty("region"))throw c="No region configured for scene: "+e,_.error(c),new h(c);u=this.options.region}l={region:u,customUserAgent:i.d.userAgent+"-SumerianScene"},d={headers:{"X-Amz-User-Agent":i.d.userAgent}},p=a,b.label=1;case 1:return b.trys.push([1,3,,4]),[4,i.e.get()];case 2:return m=b.sent(),l.credentials=m,v={secret_key:m.secretAccessKey,access_key:m.accessKeyId,session_token:m.sessionToken},y={region:u,service:"sumerian"},S=i.q.sign({method:"GET",url:a},v,y),d.headers=g(g({},d.headers),S.headers),p=S.url,[3,4];case 3:return b.sent(),_.debug("No credentials available, the request will be unsigned"),[3,4];case 4:return[4,fetch(p,d)];case 5:return[4,(x=b.sent()).json()];case 6:if(E=b.sent(),403===x.status)throw E.message?(_.error("Failure to authenticate user: "+E.message),new h("Failure to authenticate user: "+E.message)):(_.error("Failure to authenticate user"),new h("Failure to authenticate user"));return T=E.bundleData[s],[4,fetch(T.url,{headers:T.headers})];case 7:return[4,b.sent().json()];case 8:M=b.sent(),b.label=9;case 9:return b.trys.push([9,11,,12]),[4,this.loadScript(M[s].bootstrapperUrl)];case 10:return b.sent(),[3,12];case 11:throw C=b.sent(),_.error(C),new h(C);case 12:return I=n.progressCallback?n.progressCallback:void 0,L=o.publishParamOverrides?o.publishParamOverrides:void 0,k={element:r,sceneId:s,sceneBundle:M,apiResponse:E,progressCallback:I,publishParamOverrides:L,awsSDKConfigOverride:l},[4,window.SumerianBootstrapper.loadScene(k)];case 13:z=b.sent(),o.sceneController=z,o.isLoaded=!0;try{for(A=w(z.sceneLoadWarnings),P=A.next();!P.done;P=A.next())O=P.value,_.warn("loadScene warning: "+O)}catch(e){D={error:e}}finally{try{P&&!P.done&&(N=A.return)&&N.call(A)}finally{if(D)throw D.error}}return[2]}})})},t.prototype.isSceneLoaded=function(e){return this.getScene(e).isLoaded||!1},t.prototype.getScene=function(e){if(!this.options.scenes){var t="No scenes were defined in the configuration";throw _.error(t),new l(t)}if(!e){t="No scene name was passed";throw _.error(t),new d(t)}if(!this.options.scenes[e]){t="Scene '"+e+"' is not configured";throw _.error(t),new d(t)}return this.options.scenes[e]},t.prototype.getSceneController=function(e){if(!this.options.scenes){var t="No scenes were defined in the configuration";throw _.error(t),new l(t)}var n=this.options.scenes[e];if(!n){t="Scene '"+e+"' is not configured";throw _.error(t),new d(t)}var r=n.sceneController;if(!r){t="Scene controller for '"+e+"' has not been loaded";throw _.error(t),new p(t)}return r},t.prototype.isVRCapable=function(e){return this.getSceneController(e).vrCapable},t.prototype.isVRPresentationActive=function(e){return this.getSceneController(e).vrPresentationActive},t.prototype.start=function(e){this.getSceneController(e).start()},t.prototype.enterVR=function(e){this.getSceneController(e).enterVR()},t.prototype.exitVR=function(e){this.getSceneController(e).exitVR()},t.prototype.isMuted=function(e){return this.getSceneController(e).muted},t.prototype.setMuted=function(e,t){this.getSceneController(e).muted=t},t.prototype.onSceneEvent=function(e,t,n){this.getSceneController(e).on(t,n)},t.prototype.enableAudio=function(e){this.getSceneController(e).enableAudio()},t}(s),x=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},E=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},M=new i.c("XR"),C="SumerianProvider",I=new(function(){function e(e){this._options=e,M.debug("XR Options",this._options),this._defaultProvider=C,this._pluggables={},this.addPluggable(new S)}return e.prototype.configure=function(e){var t=this,n=e?e.XR||e:{};return M.debug("configure XR",{opt:n}),this._options=Object.assign({},this._options,n),Object.entries(this._pluggables).map(function(e){var r=T(e,2),i=r[0],o=r[1];i!==t._defaultProvider||n[t._defaultProvider]?o.configure(t._options[i]):o.configure(t._options)}),this._options},e.prototype.addPluggable=function(e){return x(this,void 0,void 0,function(){return E(this,function(t){return e&&"XR"===e.getCategory()?(this._pluggables[e.getProviderName()]=e,[2,e.configure(this._options)]):[2]})})},e.prototype.loadScene=function(e,t,n,r){return void 0===n&&(n={}),void 0===r&&(r=this._defaultProvider),x(this,void 0,void 0,function(){return E(this,function(i){switch(i.label){case 0:if(!this._pluggables[r])throw new m("Provider '"+r+"' not configured");return[4,this._pluggables[r].loadScene(e,t,n)];case 1:return[2,i.sent()]}})})},e.prototype.isSceneLoaded=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].isSceneLoaded(e)},e.prototype.getSceneController=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].getSceneController(e)},e.prototype.isVRCapable=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].isVRCapable(e)},e.prototype.isVRPresentationActive=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].isVRPresentationActive(e)},e.prototype.start=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].start(e)},e.prototype.enterVR=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].enterVR(e)},e.prototype.exitVR=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].exitVR(e)},e.prototype.isMuted=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].isMuted(e)},e.prototype.setMuted=function(e,t,n){if(void 0===n&&(n=this._defaultProvider),!this._pluggables[n])throw new m("Provider '"+n+"' not configured");return this._pluggables[n].setMuted(e,t)},e.prototype.onSceneEvent=function(e,t,n,r){if(void 0===r&&(r=this._defaultProvider),!this._pluggables[r])throw new m("Provider '"+r+"' not configured");return this._pluggables[r].onSceneEvent(e,t,n)},e.prototype.enableAudio=function(e,t){if(void 0===t&&(t=this._defaultProvider),!this._pluggables[t])throw new m("Provider '"+t+"' not configured");return this._pluggables[t].enableAudio(e)},e}())(null);i.a.register(I),n.d(t,"a",function(){return I}),n.d(t,!1,function(){return S}),n.d(t,!1,function(){return c}),n.d(t,!1,function(){return l}),n.d(t,!1,function(){return d}),n.d(t,!1,function(){return p}),n.d(t,!1,function(){return f}),n.d(t,!1,function(){return h}),n.d(t,!1,function(){return m})},mO9k:function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),t.f=function(e){return e&&(e.hasOwnProperty("collection")||e.hasOwnProperty("collectionId"))},t.d=function(e){return e&&e.hasOwnProperty("celebrityDetection")},t.m=function(e){return e&&e.hasOwnProperty("translateText")},t.l=function(e){return e&&e.hasOwnProperty("textToSpeech")},t.j=function(e){return e&&e.hasOwnProperty("transcription")},t.k=function(e){return e&&e.hasOwnProperty("key")},t.c=function(e){return e&&e.hasOwnProperty("file")},t.b=function(e){return e&&e.hasOwnProperty("bytes")},t.h=function(e){return e&&e.hasOwnProperty("text")},t.g=function(e){return e&&e.hasOwnProperty("labels")},t.e=function(e){return e&&e.hasOwnProperty("entities")},t.i=function(e){return e&&e.hasOwnProperty("text")},function(e){e.ALL="ALL",e.LANGUAGE="LANGUAGE",e.ENTITIES="ENTITIES",e.SENTIMENT="SENTIMENT",e.SYNTAX="SYNTAX",e.KEY_PHRASES="KEY_PHRASES"}(r||(r={}))},mP1F:function(e,t,n){var r;r=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var h=c[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=c[f-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[f]=m+c[f-7]+g+c[f-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+u[f]+c[f];p=d,d=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256},e.exports=r(n("02Hb"))},mTAn:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},mXEf:function(e,t,n){"use strict";var r,i;function o(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function a(e){return void 0!==e.redirectSignIn}!function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(r||(r={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default"}(i||(i={}));var s=n("7Flx"),u=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=r,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),c=n("EuP9"),l=n("02Hb"),d=n.n(l),p=(n("6qVS"),n("mP1F")),f=n.n(p),h=n("6WbS"),m=n.n(h),v=n("9eUC"); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */var g,y=function(){function e(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),b=w;function w(e,t){null!=e&&this.fromString(e,t)}function _(){return new w(null)}var S="undefined"!=typeof navigator;S&&"Microsoft Internet Explorer"==navigator.appName?(w.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},g=30):S&&"Netscape"!=navigator.appName?(w.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},g=26):(w.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},g=28),w.prototype.DB=g,w.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function z(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},z.prototype.revert=function(e){var t=_();return e.copyTo(t),this.reduce(t),t},z.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},z.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},z.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},w.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},w.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},w.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=I(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&w.ZERO.subTo(this,this)},w.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},w.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},w.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},w.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},w.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},w.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var d=l*(1<1?o[c-2]>>this.F2:0),p=this.FV/d,f=(1<=0&&(n[n.t++]=1,n.subTo(g,n)),w.ONE.dlShiftTo(c,g),g.subTo(o,o);o.t=0;){var y=n[--m]==l?this.DM:Math.floor(n[m]*p+(n[m-1]+h)*f);if((n[m]+=o.am(0,y,n,v,0,c))0&&n.rShiftTo(u,n),a<0&&w.ZERO.subTo(n,n)}}},w.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},w.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},w.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=C(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=C(n));return i?o:"0"},w.prototype.negate=function(){var e=_();return w.ZERO.subTo(this,e),e},w.prototype.abs=function(){return this.s<0?this.negate():this},w.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},w.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)},w.prototype.mod=function(e){var t=_();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(w.ZERO)>0&&e.subTo(t,t),t},w.prototype.equals=function(e){return 0==this.compareTo(e)},w.prototype.add=function(e){var t=_();return this.addTo(e,t),t},w.prototype.subtract=function(e){var t=_();return this.subTo(e,t),t},w.prototype.multiply=function(e){var t=_();return this.multiplyTo(e,t),t},w.prototype.divide=function(e){var t=_();return this.divRemTo(e,t,null),t},w.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=L(1),a=new z(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var d=_();for(a.sqrTo(s[1],d);u<=l;)s[u]=_(),a.mulTo(d,s[u-2],s[u]),u+=2}var p,f,h=e.t-1,m=!0,v=_();for(i=k(e[h])-1;h>=0;){for(i>=c?p=e[h]>>i-c&l:(p=(e[h]&(1<0&&(p|=e[h-1]>>this.DB+i-c)),u=r;0==(1&p);)p>>=1,--u;if((i-=u)<0&&(i+=this.DB,--h),m)s[p].copyTo(o),m=!1;else{for(;u>1;)a.sqrTo(o,v),a.sqrTo(v,o),u-=2;u>0?a.sqrTo(o,v):(f=o,o=v,v=f),a.mulTo(v,s[p],o)}for(;h>=0&&0==(e[h]&1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},be="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",we=function(e,t,n){s.g.dispatch("auth",{event:e,data:t,message:n},"Auth",be)},_e=new s.c("OAuth"),Se=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||he,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every(function(e){return"string"==typeof e})},e.prototype.oauthSignIn=function(e,t,n,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=r.Cognito);var u=this._generateState(32),c=a?u+"-"+Object(s.z)(a):u;!function(e){window.sessionStorage.setItem("oauth_state",e)}(c);var l,d=this._generateRandom(128);l=d,window.sessionStorage.setItem("ouath_pkce_key",l);var p=this._generateChallenge(d),f=this._scopes.join(" "),h="https://"+t+"/oauth2/authorize?"+Object.entries(me(me({redirect_uri:n,response_type:e,client_id:i,identity_provider:o,scope:f,state:c},"code"===e?{code_challenge:p}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map(function(e){var t=ye(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&");_e.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return ve(this,void 0,void 0,function(){var t,n,r,i,o,s,u,c,l,d,p,f,h,m;return ge(this,function(v){switch(v.label){case 0:return t=(Object(fe.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=ye(t,2),i=r[0],o=r[1];return me(me({},e),((n={})[i]=o,n))},{code:void 0}).code,n=Object(fe.parse)(e).pathname||"/",r=Object(fe.parse)(this._config.redirectSignIn).pathname||"/",t&&n===r?(i="https://"+this._config.domain+"/oauth2/token",we("codeFlow",{},"Retrieving tokens from "+i),o=a(this._config)?this._cognitoClientId:this._config.clientID,s=a(this._config)?this._config.redirectSignIn:this._config.redirectUri,g=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),c=me({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:s},(u=g)?{code_verifier:u}:{}),_e.debug("Calling token endpoint: "+i+" with",c),l=Object.entries(c).map(function(e){var t=ye(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l})]):[2];case 1:return[4,v.sent().json()];case 2:if(d=v.sent(),p=d.access_token,f=d.refresh_token,h=d.id_token,m=d.error)throw new Error(m);return[2,{accessToken:p,refreshToken:f,idToken:h}]}var g})})},e.prototype._handleImplicitFlow=function(e){return ve(this,void 0,void 0,function(){var t,n,r;return ge(this,function(i){return t=(Object(fe.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=ye(t,2),i=r[0],o=r[1];return me(me({},e),((n={})[i]=o,n))},{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,we("implicitFlow",{},"Got tokens from "+e),_e.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(e){return ve(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return ge(this,function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?me(me({},(Object(fe.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=ye(t,2),r=n[0],i=n[1];return e[r]=i,e},{})),(Object(fe.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=ye(t,2),r=n[0],i=n[1];return e[r]=i,e},{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),_e.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,me.apply(void 0,[me.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,me.apply(void 0,[me.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),_e.error("Error handling auth response.",s),s;case 6:return[2]}})})},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return ve(this,void 0,void 0,function(){var e,t,n;return ge(this,function(r){return e="https://"+this._config.domain+"/logout?",t=a(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=a(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map(function(e){var t=ye(e,2);return t[0]+"="+t[1]}).join("&"),we("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),_e.debug("Signing out from "+e),[2,this._urlOpener(e)]})})},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(f()(e))},e.prototype._base64URL=function(e){return e.toString($.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Pe=new s.c("AuthClass"),Oe="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",De=function(e,t,n){s.g.dispatch("auth",{event:e,data:t,message:n},"Auth",Oe)},Ne=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=s.e,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?De("tokenRefresh",void 0,"New token retrieved"):De("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),s.g.listen("auth",function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};Pe.debug("configure Auth");var n=Object.assign({},this._config,s.n.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,i=r.userPoolId,o=r.userPoolWebClientId,u=r.cookieStorage,c=r.oauth,l=r.region,d=r.identityPoolId,p=r.mandatorySignIn,f=r.refreshHandlers,h=r.identityPoolRegion,m=r.clientMetadata,v=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Pe.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=u?new pe(u):e.ssr?new s.t:(new s.r).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var g={UserPoolId:i,ClientId:o,endpoint:v};g.Storage=this._storage,this.userPool=new le(g,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:p,region:h||l,userPoolId:i,identityPoolId:d,refreshHandlers:f,storage:this._storage});var y=c?a(this._config.oauth)?c:c.awsCognito:void 0;if(y){var b=Object.assign({cognitoClientId:o,UserPoolId:i,domain:y.domain,scopes:y.scope,redirectSignIn:y.redirectSignIn,redirectSignOut:y.redirectSignOut,responseType:y.responseType,Storage:this._storage,urlOpener:y.urlOpener,clientMetadata:m},y.options);this._oAuthHandler=new Se({scopes:b.scopes,config:b,cognitoClientId:b.cognitoClientId});var w={};!function(e){if(s.k.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!s.k.browserOrNode().isNode)throw new Error("Not supported")}(function(e){var n=e.url;w[n]||(w[n]=!0,t._handleAuthResponse(n))})}return De("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;rl;)n=u[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},mexH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSchema=function(e){return(0,c.default)(e,m)},t.GraphQLSchema=void 0;var r=n("AS5q"),i=n("uWn1"),o=p(n("ieo+")),a=n("94xs"),s=p(n("hSN0")),u=p(n("ankS")),c=p(n("IpNb")),l=p(n("JiIc")),d=p(n("hZYs"));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(){function e(e){h(this,"astNode",void 0),h(this,"extensionASTNodes",void 0),h(this,"_queryType",void 0),h(this,"_mutationType",void 0),h(this,"_subscriptionType",void 0),h(this,"_directives",void 0),h(this,"_typeMap",void 0),h(this,"_implementations",void 0),h(this,"_possibleTypeMap",void 0),h(this,"__validationErrors",void 0),h(this,"__allowedLegacyNames",void 0),e&&e.assumeValid?this.__validationErrors=[]:("object"!==f(e)&&(0,l.default)(0,"Must provide configuration object."),e.types&&!Array.isArray(e.types)&&(0,l.default)(0,'"types" must be Array if provided but got: '.concat((0,o.default)(e.types),".")),e.directives&&!Array.isArray(e.directives)&&(0,l.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,o.default)(e.directives),".")),e.allowedLegacyNames&&!Array.isArray(e.allowedLegacyNames)&&(0,l.default)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat((0,o.default)(e.allowedLegacyNames),"."))),this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||i.specifiedDirectives,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes;var t=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),a.__Schema],n=e.types;n&&(t=t.concat(n));var s=Object.create(null);s=t.reduce(v,s),s=this._directives.reduce(g,s),this._typeMap=s,this._implementations=Object.create(null);for(var u=Object.keys(this._typeMap),c=0;cn)return t;var i=e*Math.pow(2,r-1);return a(e,i)}(o,s,f,d),Date.now()+1e3*h>p?[2,{state:r.TIMEOUT}]:[4,(g=h,new Promise(function(e){return setTimeout(e,1e3*g)}))]);case 3:return i.sent(),[4,n(l,t)];case 4:return(m=i.sent().state)!==r.RETRY?[2,{state:m}]:(d+=1,[3,2]);case 5:return[2]}var g})})},u=function(e,t,n){return Object(i.__awaiter)(void 0,void 0,void 0,function(){var a,u;return Object(i.__generator)(this,function(c){var l;return function(e){if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error("WaiterConfiguration.maxWaitTime ["+e.maxWaitTime+"] must be greater than WaiterConfiguration.minDelay ["+e.minDelay+"] for this waiter");if(e.maxDelay0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:var n=(0,o.getNamedType)(this.getType());this._parentTypeStack.push((0,o.isCompositeType)(n)?n:void 0);break;case i.Kind.FIELD:var r,a,c=this.getParentType();c&&(r=this._getFieldDef(t,c,e))&&(a=r.type),this._fieldDefStack.push(r),this._typeStack.push((0,o.isOutputType)(a)?a:void 0);break;case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:var l;"query"===e.operation?l=t.getQueryType():"mutation"===e.operation?l=t.getMutationType():"subscription"===e.operation&&(l=t.getSubscriptionType()),this._typeStack.push((0,o.isObjectType)(l)?l:void 0);break;case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:var d=e.typeCondition,p=d?(0,s.typeFromAST)(t,d):(0,o.getNamedType)(this.getType());this._typeStack.push((0,o.isOutputType)(p)?p:void 0);break;case i.Kind.VARIABLE_DEFINITION:var f=(0,s.typeFromAST)(t,e.type);this._inputTypeStack.push((0,o.isInputType)(f)?f:void 0);break;case i.Kind.ARGUMENT:var h,m,v=this.getDirective()||this.getFieldDef();v&&(h=(0,u.default)(v.args,function(t){return t.name===e.name.value}))&&(m=h.type),this._argument=h,this._defaultValueStack.push(h?h.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(m)?m:void 0);break;case i.Kind.LIST:var g=(0,o.getNullableType)(this.getInputType()),y=(0,o.isListType)(g)?g.ofType:g;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,o.isInputType)(y)?y:void 0);break;case i.Kind.OBJECT_FIELD:var b,w,_=(0,o.getNamedType)(this.getInputType());(0,o.isInputObjectType)(_)&&(w=_.getFields()[e.name.value])&&(b=w.type),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(b)?b:void 0);break;case i.Kind.ENUM:var S,x=(0,o.getNamedType)(this.getInputType());(0,o.isEnumType)(x)&&(S=x.getValue(e.value)),this._enumValue=S}},t.leave=function(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}},e}();function d(e,t,n){var r=n.name.value;return r===a.SchemaMetaFieldDef.name&&e.getQueryType()===t?a.SchemaMetaFieldDef:r===a.TypeMetaFieldDef.name&&e.getQueryType()===t?a.TypeMetaFieldDef:r===a.TypeNameMetaFieldDef.name&&(0,o.isCompositeType)(t)?a.TypeNameMetaFieldDef:(0,o.isObjectType)(t)||(0,o.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=l},ntHu:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})(n("PJh5"))},o2mx:function(e,t,n){var r=n("NkRn"),i=n("Hxdr"),o=n("NGEn"),a=n("6MiT"),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},oCzW:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n("PJh5"))},oJlt:function(e,t,n){"use strict";var r=n("cGG2"),i=["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,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},oM7Q:function(e,t,n){n("sF+V");var r=n("FeBl").Object;e.exports=function(e,t){return r.create(e,t)}},octw:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},oo1B:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})(n("PJh5"))},ooba:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})(n("PJh5"))},"p/MK":function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},p1b6:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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(){}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pFYg:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n("Zzip")),i=a(n("5QVw")),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},pK6L:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("TToO"),i=n("YFfX"),o=n.n(i),a=function(e){var t=e.serviceId,n=e.clientVersion;return function(){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var e,i,a,s,u,c,l,d,p;return Object(r.__generator)(this,function(r){return e=(null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.userAgent)?o.a.parse(window.navigator.userAgent):void 0,i=[["aws-sdk-js",n],["os/"+((null===(s=null===e||void 0===e?void 0:e.os)||void 0===s?void 0:s.name)||"other"),null===(u=null===e||void 0===e?void 0:e.os)||void 0===u?void 0:u.version],["lang/js"],["md/browser",(null!==(l=null===(c=null===e||void 0===e?void 0:e.browser)||void 0===c?void 0:c.name)&&void 0!==l?l:"unknown")+"_"+(null!==(p=null===(d=null===e||void 0===e?void 0:e.browser)||void 0===d?void 0:d.version)&&void 0!==p?p:"unknown")]],t&&i.push(["api/"+t,n]),[2,i]})})}}},pTUa:function(e,t,n){var r=n("/I3N");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},pXdf:function(e,t,n){"use strict";var r=n("i8qg"),i=n("TToO"),o=n("FQv3"),a=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");for(var n=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&s(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(Object(o.b)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var u,c=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,o,a=[];try{for(var s=Object(i.__values)(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=this.fromUtf8(c);a.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(e[c]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var d=new Uint8Array(a.reduce(function(e,t){return e+t.byteLength},0)),p=0;try{for(var f=Object(i.__values)(a),h=f.next();!h.done;h=f.next()){var m=h.value;d.set(m,p),p+=m.byteLength}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}return d},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 r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var s=new Uint8Array(i.buffer);return s.set(e.value,3),s;case"string":var u=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+u.byteLength));c.setUint8(0,7),c.setUint16(1,u.byteLength,!1);var l=new Uint8Array(c.buffer);return l.set(u,3),l;case"timestamp":var d=new Uint8Array(9);return d[0]=8,d.set(a.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!b.test(e.value))throw new Error("Invalid UUID received: "+e.value);var p=new Uint8Array(17);return p[0]=9,p.set(Object(o.a)(e.value.replace(/\-/g,"")),1),p}},e.prototype.parse=function(e){for(var t={},n=0;n>>((3&t)<<3)&255;return i}}},pfs9:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})(n("PJh5"))},pmDB:function(e,t,n){"use strict";t.b=function(e){return e},n.d(t,"a",function(){return a});var r=n("TToO"),i=n("i8+n");var o={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},a=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(r.__awaiter)(void 0,void 0,void 0,function(){var o,a;return Object(r.__generator)(this,function(r){return i.a.isInstance(n.request)?(o=n.request,(void 0===(a=(e.requestHandler.metadata||{}).handlerProtocol)?"":a).indexOf("h2")>=0&&!o.headers[":authority"]?(delete o.headers.host,o.headers[":authority"]=""):o.headers.host||(o.headers.host=o.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),o)}}}},pvCj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedVarMessage=i,t.NoUndefinedVariables=function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var o=e.getRecursiveVariableUsages(n),a=!0,s=!1,u=void 0;try{for(var c,l=o[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var d=c.value,p=d.node,f=p.name.value;!0!==t[f]&&e.reportError(new r.GraphQLError(i(f,n.name&&n.name.value),[p,n]))}}catch(e){s=!0,u=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}};var r=n("QmgZ");function i(e,t){return t?'Variable "$'.concat(e,'" is not defined by operation "').concat(t,'".'):'Variable "$'.concat(e,'" is not defined.')}},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"pxZ/":function(e,t,n){"use strict";var r=n("7Flx"),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]i.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var r=0;ru;)r.f(e,n=a[u++],t[n]);return e}},qkKv:function(e,t,n){var r=n("FeBl"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},quu5:function(e,t,n){n("CHlY"),e.exports=n("FeBl").Number.parseFloat},qwTf:function(e,t,n){var r=n("TQ3y").Uint8Array;e.exports=r},rIuo:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})})(n("PJh5"))},rMbQ:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})(n("PJh5"))},"rU+r":function(e,t,n){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var r=function(e,t){return(r=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])})(e,t)};function i(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}r(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,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}Object.create;var p=n("e1+R"),f=n.n(p),h=n("gFtY"),m=n("OqwH"),v=n("X/+I"),g=n("iZss"),y=n("JVbd"),b=n("IhUy"),w=n("pK6L");var _,S,x,E,T,M,C,I,L,k,z,A,P,O,D,N,R,j,F,B,H,V,$,U,q,Y,K,G,J,W,Q,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,de,pe,fe,he,me,ve=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"]),ge=new Set(["cn-north-1","cn-northwest-1"]),ye=new Set(["us-iso-east-1"]),be=new Set(["us-isob-east-1"]),we=new Set(["us-gov-east-1","us-gov-west-1"]),_e={apiVersion:"2016-06-10",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-east-1":n={hostname:"polly.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"polly.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"polly.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"polly.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"polly.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"polly.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"polly.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-northwest-1":n={hostname:"polly.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"polly.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"polly.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"polly.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"polly.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"polly.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"polly-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"polly-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"polly-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-1":n={hostname:"polly-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"fips-us-west-2":n={hostname:"polly-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"me-south-1":n={hostname:"polly.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"polly.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"polly.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"polly.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"polly.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"polly.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"polly.us-west-2.amazonaws.com",partition:"aws"};break;default:ve.has(e)&&(n={hostname:"polly.{region}.amazonaws.com".replace("{region}",e),partition:"aws"}),ge.has(e)&&(n={hostname:"polly.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),ye.has(e)&&(n={hostname:"polly.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),be.has(e)&&(n={hostname:"polly.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),we.has(e)&&(n={hostname:"polly.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:"polly.{region}.amazonaws.com".replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"polly"},n))},serviceId:"Polly",urlParser:n("40b9").a},Se=o(o({},_e),{runtime:"browser",base64Decoder:y.a,base64Encoder:y.b,bodyLengthChecker:b.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(w.a)({serviceId:_e.serviceId,clientVersion:f.a.version}),maxAttempts:g.a,region:Object(v.a)("Region is missing"),requestHandler:new m.a,sha256:h.Sha256,streamCollector:m.b,utf8Decoder:function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},wt=n("LPDJ"),_t=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"DeleteLexiconCommand",inputFilterSensitiveLog:_.filterSensitiveLog,outputFilterSensitiveLog:S.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,o,a,u,c,l;return s(this,function(s){switch(s.label){case 0:if(n={},r="/v1/lexicons/{Name}",void 0===e.Name)throw new Error("No value provided for input HTTP label: Name.");if((i=e.Name).length<=0)throw new Error("Empty value provided for input HTTP label: Name.");return r=r.replace("{Name}",Object(Le.f)(i)),[4,t.endpoint()];case 1:return o=s.sent(),a=o.hostname,u=o.protocol,c=void 0===u?"https":u,l=o.port,[2,new ze.a({protocol:c,hostname:a,port:l,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ae(e,t)]:(n={$metadata:vt(e)},[4,gt(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),St=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"DescribeVoicesCommand",inputFilterSensitiveLog:M.filterSensitiveLog,outputFilterSensitiveLog:I.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d;return s(this,function(s){switch(s.label){case 0:return n={},r="/v1/voices",i=o(o(o(o({},void 0!==e.Engine&&{Engine:e.Engine}),void 0!==e.LanguageCode&&{LanguageCode:e.LanguageCode}),void 0!==e.IncludeAdditionalLanguageCodes&&{IncludeAdditionalLanguageCodes:e.IncludeAdditionalLanguageCodes.toString()}),void 0!==e.NextToken&&{NextToken:e.NextToken}),[4,t.endpoint()];case 1:return a=s.sent(),u=a.hostname,c=a.protocol,l=void 0===c?"https":c,d=a.port,[2,new ze.a({protocol:l,hostname:u,port:d,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Pe(e,t)]:(n={$metadata:vt(e),NextToken:void 0,Voices:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).NextToken&&null!==r.NextToken&&(n.NextToken=r.NextToken),void 0!==r.Voices&&null!==r.Voices&&(n.Voices=mt(r.Voices,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),xt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"GetLexiconCommand",inputFilterSensitiveLog:z.filterSensitiveLog,outputFilterSensitiveLog:O.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,o,a,u,c,l;return s(this,function(s){switch(s.label){case 0:if(n={},r="/v1/lexicons/{Name}",void 0===e.Name)throw new Error("No value provided for input HTTP label: Name.");if((i=e.Name).length<=0)throw new Error("Empty value provided for input HTTP label: Name.");return r=r.replace("{Name}",Object(Le.f)(i)),[4,t.endpoint()];case 1:return o=s.sent(),a=o.hostname,u=o.protocol,c=void 0===u?"https":u,l=o.port,[2,new ze.a({protocol:c,hostname:a,port:l,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Oe(e,t)]:(n={$metadata:vt(e),Lexicon:void 0,LexiconAttributes:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).Lexicon&&null!==r.Lexicon&&(n.Lexicon=lt(r.Lexicon,t)),void 0!==r.LexiconAttributes&&null!==r.LexiconAttributes&&(n.LexiconAttributes=dt(r.LexiconAttributes,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),Et=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"GetSpeechSynthesisTaskCommand",inputFilterSensitiveLog:D.filterSensitiveLog,outputFilterSensitiveLog:H.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,o,a,u,c,l;return s(this,function(s){switch(s.label){case 0:if(n={},r="/v1/synthesisTasks/{TaskId}",void 0===e.TaskId)throw new Error("No value provided for input HTTP label: TaskId.");if((i=e.TaskId).length<=0)throw new Error("Empty value provided for input HTTP label: TaskId.");return r=r.replace("{TaskId}",Object(Le.f)(i)),[4,t.endpoint()];case 1:return o=s.sent(),a=o.hostname,u=o.protocol,c=void 0===u?"https":u,l=o.port,[2,new ze.a({protocol:c,hostname:a,port:l,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,De(e,t)]:(n={$metadata:vt(e),SynthesisTask:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).SynthesisTask&&null!==r.SynthesisTask&&(n.SynthesisTask=ft(r.SynthesisTask,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),Tt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"ListLexiconsCommand",inputFilterSensitiveLog:Z.filterSensitiveLog,outputFilterSensitiveLog:ee.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d;return s(this,function(s){switch(s.label){case 0:return n={},r="/v1/lexicons",i=o({},void 0!==e.NextToken&&{NextToken:e.NextToken}),[4,t.endpoint()];case 1:return a=s.sent(),u=a.hostname,c=a.protocol,l=void 0===c?"https":c,d=a.port,[2,new ze.a({protocol:l,hostname:u,port:d,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ne(e,t)]:(n={$metadata:vt(e),Lexicons:void 0,NextToken:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).Lexicons&&null!==r.Lexicons&&(n.Lexicons=pt(r.Lexicons,t)),void 0!==r.NextToken&&null!==r.NextToken&&(n.NextToken=r.NextToken),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),Mt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"ListSpeechSynthesisTasksCommand",inputFilterSensitiveLog:te.filterSensitiveLog,outputFilterSensitiveLog:ne.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d;return s(this,function(s){switch(s.label){case 0:return n={},r="/v1/synthesisTasks",i=o(o(o({},void 0!==e.MaxResults&&{MaxResults:e.MaxResults.toString()}),void 0!==e.NextToken&&{NextToken:e.NextToken}),void 0!==e.Status&&{Status:e.Status}),[4,t.endpoint()];case 1:return a=s.sent(),u=a.hostname,c=a.protocol,l=void 0===c?"https":c,d=a.port,[2,new ze.a({protocol:l,hostname:u,port:d,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Re(e,t)]:(n={$metadata:vt(e),NextToken:void 0,SynthesisTasks:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).NextToken&&null!==r.NextToken&&(n.NextToken=r.NextToken),void 0!==r.SynthesisTasks&&null!==r.SynthesisTasks&&(n.SynthesisTasks=ht(r.SynthesisTasks,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),Ct=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"PutLexiconCommand",inputFilterSensitiveLog:ae.filterSensitiveLog,outputFilterSensitiveLog:se.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d,p;return s(this,function(s){switch(s.label){case 0:if(n={"content-type":"application/json"},r="/v1/lexicons/{Name}",void 0===e.Name)throw new Error("No value provided for input HTTP label: Name.");if((i=e.Name).length<=0)throw new Error("Empty value provided for input HTTP label: Name.");return r=r.replace("{Name}",Object(Le.f)(i)),a=JSON.stringify(o({},void 0!==e.Content&&null!==e.Content&&{Content:e.Content})),[4,t.endpoint()];case 1:return u=s.sent(),c=u.hostname,l=u.protocol,d=void 0===l?"https":l,p=u.port,[2,new ze.a({protocol:d,hostname:c,port:p,method:"PUT",headers:n,path:r,body:a})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,je(e,t)]:(n={$metadata:vt(e)},[4,gt(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),It=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"StartSpeechSynthesisTaskCommand",inputFilterSensitiveLog:de.filterSensitiveLog,outputFilterSensitiveLog:pe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d;return s(this,function(s){switch(s.label){case 0:return n={"content-type":"application/json"},r="/v1/synthesisTasks",i=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o({},void 0!==e.Engine&&null!==e.Engine&&{Engine:e.Engine}),void 0!==e.LanguageCode&&null!==e.LanguageCode&&{LanguageCode:e.LanguageCode}),void 0!==e.LexiconNames&&null!==e.LexiconNames&&{LexiconNames:ut(e.LexiconNames,t)}),void 0!==e.OutputFormat&&null!==e.OutputFormat&&{OutputFormat:e.OutputFormat}),void 0!==e.OutputS3BucketName&&null!==e.OutputS3BucketName&&{OutputS3BucketName:e.OutputS3BucketName}),void 0!==e.OutputS3KeyPrefix&&null!==e.OutputS3KeyPrefix&&{OutputS3KeyPrefix:e.OutputS3KeyPrefix}),void 0!==e.SampleRate&&null!==e.SampleRate&&{SampleRate:e.SampleRate}),void 0!==e.SnsTopicArn&&null!==e.SnsTopicArn&&{SnsTopicArn:e.SnsTopicArn}),void 0!==e.SpeechMarkTypes&&null!==e.SpeechMarkTypes&&{SpeechMarkTypes:ct(e.SpeechMarkTypes,t)}),void 0!==e.Text&&null!==e.Text&&{Text:e.Text}),void 0!==e.TextType&&null!==e.TextType&&{TextType:e.TextType}),void 0!==e.VoiceId&&null!==e.VoiceId&&{VoiceId:e.VoiceId})),[4,t.endpoint()];case 1:return a=s.sent(),u=a.hostname,c=a.protocol,l=void 0===c?"https":c,d=a.port,[2,new ze.a({protocol:l,hostname:u,port:d,method:"POST",headers:n,path:r,body:i})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Fe(e,t)]:(n={$metadata:vt(e),SynthesisTask:void 0},[4,yt(e.body,t)]);case 1:return void 0!==(r=i.sent()).SynthesisTask&&null!==r.SynthesisTask&&(n.SynthesisTask=ft(r.SynthesisTask,t)),[2,Promise.resolve(n)]}})})}(e,t)},t}(Le.b),Lt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return i(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(wt.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PollyClient",commandName:"SynthesizeSpeechCommand",inputFilterSensitiveLog:he.filterSensitiveLog,outputFilterSensitiveLog:me.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r,i,a,u,c,l,d;return s(this,function(s){switch(s.label){case 0:return n={"content-type":"application/json"},r="/v1/speech",i=JSON.stringify(o(o(o(o(o(o(o(o(o({},void 0!==e.Engine&&null!==e.Engine&&{Engine:e.Engine}),void 0!==e.LanguageCode&&null!==e.LanguageCode&&{LanguageCode:e.LanguageCode}),void 0!==e.LexiconNames&&null!==e.LexiconNames&&{LexiconNames:ut(e.LexiconNames,t)}),void 0!==e.OutputFormat&&null!==e.OutputFormat&&{OutputFormat:e.OutputFormat}),void 0!==e.SampleRate&&null!==e.SampleRate&&{SampleRate:e.SampleRate}),void 0!==e.SpeechMarkTypes&&null!==e.SpeechMarkTypes&&{SpeechMarkTypes:ct(e.SpeechMarkTypes,t)}),void 0!==e.Text&&null!==e.Text&&{Text:e.Text}),void 0!==e.TextType&&null!==e.TextType&&{TextType:e.TextType}),void 0!==e.VoiceId&&null!==e.VoiceId&&{VoiceId:e.VoiceId})),[4,t.endpoint()];case 1:return a=s.sent(),u=a.hostname,c=a.protocol,l=void 0===c?"https":c,d=a.port,[2,new ze.a({protocol:l,hostname:u,port:d,method:"POST",headers:n,path:r,body:i})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return a(void 0,void 0,void 0,function(){var n,r;return s(this,function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,Be(e,t)]:(n={$metadata:vt(e),AudioStream:void 0,ContentType:void 0,RequestCharacters:void 0},void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers["x-amzn-requestcharacters"]&&(n.RequestCharacters=parseInt(e.headers["x-amzn-requestcharacters"],10)),r=e.body,n.AudioStream=r,[2,Promise.resolve(n)])})})}(e,t)},t}(Le.b),kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.deleteLexicon=function(e,t,n){var r=new _t(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeVoices=function(e,t,n){var r=new St(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getLexicon=function(e,t,n){var r=new xt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSpeechSynthesisTask=function(e,t,n){var r=new Et(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listLexicons=function(e,t,n){var r=new Tt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listSpeechSynthesisTasks=function(e,t,n){var r=new Mt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putLexicon=function(e,t,n){var r=new Ct(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startSpeechSynthesisTask=function(e,t,n){var r=new It(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.synthesizeSpeech=function(e,t,n){var r=new Lt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t}(ke),zt=function(e,t){for(var n=[],r=2;rn.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i1&&r>1&&o[n-1]===a[r-2]&&o[n-2]===a[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+c))}return i[s][u]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=Object.create(null),i=t.length,o=e.length/2,a=0;a=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})})(n("PJh5"))},sB3e:function(e,t,n){var r=n("52gC");e.exports=function(e){return Object(r(e))}},"sF+V":function(e,t,n){var r=n("kM2E");r(r.S,"Object",{create:n("Yobk")})},sN2Z:function(e,t,n){"use strict";function r(e,t){if(e){var n={};return(t||Object.keys(e)).forEach(function(t){var r;if(e.hasOwnProperty(t)){var i=t.charAt(0).toLowerCase()+t.substr(1);Object.assign(n,((r={})[i]=e[t],r))}}),n}}t.b=r,t.c=function(e,t){return e?e.map(function(e){return r(e,t)}):void 0},t.a=function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(r.result)},r.onerror=function(e){n(e)};try{r.readAsArrayBuffer(e)}catch(e){n(e)}})}},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},sU9v:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,u){if(!t)return;if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,u)}if(t.kind===a.Kind.NULL)return null;if(t.kind===a.Kind.VARIABLE){var l=t.name.value;if(!u||(0,i.default)(u[l]))return;var d=u[l];if(null===d&&(0,s.isNonNullType)(n))return;return d}if((0,s.isListType)(n)){var p=n.ofType;if(t.kind===a.Kind.LIST){for(var f=[],h=t.values,m=0;m0){var r=e.chart.canvas,o=i.dispatcher.bind(e);i.collapseHoverEvents(n).forEach(function(n){t.addEvent(r,n,o),e.annotation.onDestroy.push(function(){t.removeEvent(r,n,o)})})}},destroy:function(e){for(var t=e.annotation.onDestroy;t.length>0;)t.pop()()}}}},sp77:function(e,t,n){"use strict"; /*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},o=e.split(";"),s=i.decode||r,u=0;u1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},svD2:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n("PJh5"))},szM5:function(e,t,n){"use strict";var r,i=n("BarH"),o=n("7Flx"),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=r;if("+"!==a&&a!==s)return!1}return r===i.length}var y,b,w,_=function(){function e(){this.promises=new Map}return e.prototype.get=function(e,t){return f(this,void 0,void 0,function(){var n;return h(this,function(r){return(n=this.promises.get(e))?[2,n]:(n=t(e),this.promises.set(e,n),[2,n])})})},Object.defineProperty(e.prototype,"allClients",{get:function(){return Array.from(this.promises.keys())},enumerable:!0,configurable:!0}),e.prototype.remove=function(e){this.promises.delete(e)},e}(),S="undefined"!=typeof Symbol?Symbol("topic"):"@@topic",x=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,p(p({},t),{clientId:t.clientId||Object(l.v4)()}))||this;return n._clientsQueue=new _,n._topicObservers=new Map,n._clientIdObservers=new Map,n}return d(t,e),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.options.clientId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endpoint",{get:function(){return this.options.aws_pubsub_endpoint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientsQueue",{get:function(){return this._clientsQueue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),t.prototype.getTopicForValue=function(e){return"object"==typeof e&&e[S]},t.prototype.getProviderName=function(){return"MqttOverWSProvider"},t.prototype.onDisconnect=function(e){var t=this,n=e.clientId,r=e.errorCode,i=m(e,["clientId","errorCode"]);if(0!==r){v.warn(n,JSON.stringify(p({errorCode:r},i),null,2));var o=[],a=this._clientIdObservers.get(n);if(!a)return;a.forEach(function(e){e.error("Disconnected, error code: "+r),t._topicObservers.forEach(function(t,n){t.delete(e),0===t.size&&o.push(n)})}),this._clientIdObservers.delete(n),o.forEach(function(e){t._topicObservers.delete(e)})}},t.prototype.newClient=function(e){var t=e.url,n=e.clientId;return f(this,void 0,void 0,function(){var e,r=this;return h(this,function(i){switch(i.label){case 0:return v.debug("Creating new MQTT client",n),(e=new c.Client(t,n)).onMessageArrived=function(e){var t=e.destinationName,n=e.payloadString;r._onMessage(t,n)},e.onConnectionLost=function(e){var t=e.errorCode,i=m(e,["errorCode"]);r.onDisconnect(p({clientId:n,errorCode:t},i))},[4,new Promise(function(t,n){e.connect({useSSL:r.isSSLEnabled,mqttVersion:3,onSuccess:function(){return t(e)},onFailure:n})})];case 1:return i.sent(),[2,e]}})})},t.prototype.connect=function(e,t){return void 0===t&&(t={}),f(this,void 0,void 0,function(){var n=this;return h(this,function(r){switch(r.label){case 0:return[4,this.clientsQueue.get(e,function(e){return n.newClient(p(p({},t),{clientId:e}))})];case 1:return[2,r.sent()]}})})},t.prototype.disconnect=function(e){return f(this,void 0,void 0,function(){var t;return h(this,function(n){switch(n.label){case 0:return[4,this.clientsQueue.get(e,function(){return null})];case 1:return(t=n.sent())&&t.isConnected()&&t.disconnect(),this.clientsQueue.remove(e),[2]}})})},t.prototype.publish=function(e,t){return f(this,void 0,void 0,function(){var n,r,i,o;return h(this,function(a){switch(a.label){case 0:return n=[].concat(e),r=JSON.stringify(t),[4,this.endpoint];case 1:return i=a.sent(),[4,this.connect(this.clientId,{url:i})];case 2:return o=a.sent(),v.debug("Publishing to topic(s)",n.join(","),r),n.forEach(function(e){return o.send(e,r)}),[2]}})})},t.prototype._onMessage=function(e,t){try{var n=[];this._topicObservers.forEach(function(t,r){g(r,e)&&n.push(t)});var r=JSON.parse(t);"object"==typeof r&&(r[S]=e),n.forEach(function(e){e.forEach(function(e){return e.next(r)})})}catch(e){v.warn("Error handling message",e,t)}},t.prototype.subscribe=function(e,t){var n=this;void 0===t&&(t={});var r=[].concat(e);return v.debug("Subscribing to topic(s)",r.join(",")),new i.a(function(e){var i;r.forEach(function(t){var r=n._topicObservers.get(t);r||(r=new Set,n._topicObservers.set(t,r)),r.add(e)});var o=t.clientId,a=void 0===o?n.clientId:o,s=n._clientIdObservers.get(a);return s||(s=new Set),s.add(e),n._clientIdObservers.set(a,s),f(n,void 0,void 0,function(){var n,o,s,u;return h(this,function(c){switch(c.label){case 0:return void 0!==(n=t.url)?[3,2]:[4,this.endpoint];case 1:return s=c.sent(),[3,3];case 2:s=n,c.label=3;case 3:o=s,c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.connect(a,{url:o})];case 5:return i=c.sent(),r.forEach(function(e){i.subscribe(e)}),[3,7];case 6:return u=c.sent(),e.error(u),[3,7];case 7:return[2]}})}),function(){return v.debug("Unsubscribing from topic(s)",r.join(",")),i&&(n._clientIdObservers.get(a).delete(e),0===n._clientIdObservers.get(a).size&&(n.disconnect(a),n._clientIdObservers.delete(a)),r.forEach(function(t){var r=n._topicObservers.get(t)||new Set;r.delete(e),0===r.size&&(n._topicObservers.delete(t),i.isConnected()&&i.unsubscribe(t))})),null}})},t}(u),E=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},M=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},L=this&&this.__spread||function(){for(var e=[],t=0;t-1});if(r){var i=r.client,o=r.url;e[i]||(e[i]={url:o,topics:new Set}),e[i].topics.add(t)}return e},{})),[4,Promise.all(s.map(function(e){var t=I(e,2),n=t[0],i=t[1],o=i.url,a=i.topics;return T(u,void 0,void 0,function(){var e,t,i=this;return M(this,function(s){switch(s.label){case 0:e=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.connect(n,{clientId:n,url:o})];case 2:return e=s.sent(),[3,4];case 3:return t=s.sent(),r.error({message:"Failed to connect",error:t}),r.complete(),[2,void 0];case 4:return a.forEach(function(t){e.isConnected()&&(e.subscribe(t),i._topicClient.set(t,e))}),[2,e]}})})}))];case 1:return c.sent(),[2]}})}),function(){k.debug("Unsubscribing from topic(s)",i.join(",")),i.forEach(function(e){var t=n._topicClient.get(e);t&&t.isConnected()&&(t.unsubscribe(e),n._topicClient.delete(e),Array.from(n._topicClient.values()).some(function(e){return e===t})||n.disconnect(t.clientId)),n._topicObservers.delete(e)})}});return i.a.from(r).map(function(e){var t=n.getTopicForValue(e),r=n._topicAlias.get(t);return e.data=Object.entries(e.data).reduce(function(e,t){var n=I(t,2),i=n[0],o=n[1];return e[r||i]=o,e},{}),e})},t}(x),A=n("s8Fo"),P=n("UZ5h"),O=n("EuP9"),D=n("gbpe"),N=n("mXEf"),R=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=this&&this.__assign||function(){return(j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},V=new o.l("AWSAppSyncRealTimeProvider"),$="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",U=[400,401,403];!function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error"}(y||(y={})),function(e){e[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED"}(b||(b={})),function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(w||(w={}));var q,Y={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},K=15e3,G=3e5,J=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.socketStatus=w.CLOSED,t.keepAliveTimeout=G,t.subscriptionObserverMap=new Map,t.promiseArray=[],t}return R(t,e),t.prototype.getProviderName=function(){return"AWSAppSyncRealTimeProvider"},t.prototype.newClient=function(){throw new Error("Not used here")},t.prototype.publish=function(e,t,n){return F(this,void 0,void 0,function(){return B(this,function(e){throw new Error("Operation not supported")})})},t.prototype.subscribe=function(e,t){var n=this,r=t.appSyncGraphqlEndpoint;return new i.a(function(e){if(r){var i=Object(l.v4)();return n._startSubscriptionWithAWSAppSyncRealTime({options:t,observer:e,subscriptionId:i}).catch(function(t){e.error({errors:[j({},new A.a(q.REALTIME_SUBSCRIPTION_INIT_ERROR+": "+t))]}),e.complete()}),function(){return F(n,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),[4,this._waitForSubscriptionToBeConnected(i)];case 1:if(n.sent(),!(e=(this.subscriptionObserverMap.get(i)||{}).subscriptionState))return[2];if(e!==b.CONNECTED)throw new Error("Subscription never connected");return this._sendUnsubscriptionMessage(i),[3,4];case 2:return t=n.sent(),V.debug("Error while unsubscribing "+t),[3,4];case 3:return this._removeSubscriptionObserver(i),[7];case 4:return[2]}})})}}e.error({errors:[j({},new A.a("Subscribe only available for AWS AppSync endpoint"))]}),e.complete()})},Object.defineProperty(t.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),t.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,n=e.observer,r=e.subscriptionId;return F(this,void 0,void 0,function(){var e,i,a,s,u,c,l,d,p,f,h,m,v,g,w,_,S,x,E,T,M,C,I,L,k,z,P=this;return B(this,function(O){switch(O.label){case 0:return e=t.appSyncGraphqlEndpoint,i=t.authenticationType,a=t.query,s=t.variables,u=t.apiKey,c=t.region,l=t.graphql_headers,d=void 0===l?function(){return{}}:l,p=t.additionalHeaders,f=void 0===p?{}:p,h=b.PENDING,m={query:a,variables:s},this.subscriptionObserverMap.set(r,{observer:n,query:a,variables:s,subscriptionState:h,startAckTimeoutId:null}),v=JSON.stringify(m),w=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:u,appSyncGraphqlEndpoint:e,authenticationType:i,payload:v,canonicalUri:"",region:c})];case 1:return _=[j.apply(void 0,w.concat([O.sent()]))],[4,d()];case 2:g=j.apply(void 0,[j.apply(void 0,[j.apply(void 0,_.concat([O.sent()])),f]),(z={},z[o.s]=o.d.userAgent,z)]),S={id:r,payload:{data:v,extensions:{authorization:j({},g)}},type:y.GQL_START},x=JSON.stringify(S),O.label=3;case 3:return O.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:u,appSyncGraphqlEndpoint:e,authenticationType:i,region:c})];case 4:return O.sent(),[3,6];case 5:return E=O.sent(),V.debug({err:E}),T=E.message,M=void 0===T?"":T,n.error({errors:[j({},new A.a(q.CONNECTION_FAILED+": "+M))]}),n.complete(),"function"==typeof(C=(this.subscriptionObserverMap.get(r)||{}).subscriptionFailedCallback)&&C(),[2];case 6:return I=this.subscriptionObserverMap.get(r),L=I.subscriptionFailedCallback,k=I.subscriptionReadyCallback,this.subscriptionObserverMap.set(r,{observer:n,subscriptionState:h,variables:s,query:a,subscriptionReadyCallback:k,subscriptionFailedCallback:L,startAckTimeoutId:setTimeout(function(){P._timeoutStartSubscriptionAck.call(P,r)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(x),[2]}})})},t.prototype._waitForSubscriptionToBeConnected=function(e){return F(this,void 0,void 0,function(){var t=this;return B(this,function(n){return this.subscriptionObserverMap.get(e).subscriptionState===b.PENDING?[2,new Promise(function(n,r){var i=t.subscriptionObserverMap.get(e),o=i.observer,a=i.subscriptionState,s=i.variables,u=i.query;t.subscriptionObserverMap.set(e,{observer:o,subscriptionState:a,variables:s,query:u,subscriptionReadyCallback:n,subscriptionFailedCallback:r})})]:[2]})})},t.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===w.READY){var t={id:e,type:y.GQL_STOP},n=JSON.stringify(t);this.awsRealTimeSocket.send(n)}}catch(e){V.debug({err:e})}},t.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),setTimeout(this._closeSocketIfRequired.bind(this),1e3)},t.prototype._closeSocketIfRequired=function(){if(!(this.subscriptionObserverMap.size>0))if(this.awsRealTimeSocket)if(this.awsRealTimeSocket.bufferedAmount>0)setTimeout(this._closeSocketIfRequired.bind(this),1e3);else{V.debug("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId);var e=this.awsRealTimeSocket;e.onclose=void 0,e.onerror=void 0,e.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=w.CLOSED}else this.socketStatus=w.CLOSED},t.prototype._handleIncomingSubscriptionMessage=function(e){V.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),n=t.id,r=void 0===n?"":n,i=t.payload,a=t.type,s=this.subscriptionObserverMap.get(r)||{},u=s.observer,c=void 0===u?null:u,l=s.query,d=void 0===l?"":l,p=s.variables,f=void 0===p?{}:p,h=s.startAckTimeoutId,m=s.subscriptionReadyCallback,v=s.subscriptionFailedCallback;if(V.debug({id:r,observer:c,query:d,variables:f}),a===y.GQL_DATA&&i&&i.data)c?c.next(i):V.debug("observer not found for id: "+r);else if(a!==y.GQL_START_ACK){if(a===y.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,q.TIMEOUT_DISCONNECT),this.keepAliveTimeout));if(a===y.GQL_ERROR){g=b.FAILED;this.subscriptionObserverMap.set(r,{observer:c,query:d,variables:f,startAckTimeoutId:h,subscriptionReadyCallback:m,subscriptionFailedCallback:v,subscriptionState:g}),c.error({errors:[j({},new A.a(q.CONNECTION_FAILED+": "+JSON.stringify(i)))]}),clearTimeout(h),c.complete(),"function"==typeof v&&v()}}else{V.debug("subscription ready for "+JSON.stringify({query:d,variables:f})),"function"==typeof m&&m(),clearTimeout(h),function(e,t,n){o.g.dispatch("api",{event:e,data:t,message:n},"PubSub",$)}(q.SUBSCRIPTION_ACK,{query:d,variables:f},"Connection established for subscription");var g=b.CONNECTED;this.subscriptionObserverMap.set(r,{observer:c,query:d,variables:f,startAckTimeoutId:null,subscriptionState:g,subscriptionReadyCallback:m,subscriptionFailedCallback:v})}},t.prototype._errorDisconnect=function(e){V.debug("Disconnect error: "+e),this.subscriptionObserverMap.forEach(function(t){var n=t.observer;n&&!n.closed&&n.error({errors:[j({},new A.a(e))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=w.CLOSED},t.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},n=t.observer,r=t.query,i=t.variables;n&&(this.subscriptionObserverMap.set(e,{observer:n,query:r,variables:i,subscriptionState:b.FAILED}),n&&!n.closed&&(n.error({errors:[j({},new A.a("Subscription timeout "+JSON.stringify({query:r,variables:i})))]}),n.complete()),V.debug("timeoutStartSubscription",JSON.stringify({query:r,variables:i})))},t.prototype._initializeWebSocketConnection=function(e){var t=this,n=e.appSyncGraphqlEndpoint,r=e.authenticationType,i=e.apiKey,o=e.region;if(this.socketStatus!==w.READY)return new Promise(function(e,a){return F(t,void 0,void 0,function(){var t,s,u,c,l,d,p,f,h,m;return B(this,function(v){switch(v.label){case 0:if(this.promiseArray.push({res:e,rej:a}),this.socketStatus!==w.CLOSED)return[3,5];v.label=1;case 1:return v.trys.push([1,4,,5]),this.socketStatus=w.CONNECTING,t=this.isSSLEnabled?"wss://":"ws://",s=n.replace("https://",t).replace("http://",t).replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),u="{}",d=(l=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:r,payload:u,canonicalUri:"/connect",apiKey:i,appSyncGraphqlEndpoint:n,region:o})];case 2:return c=d.apply(l,[v.sent()]),p=O.Buffer.from(c).toString("base64"),f=O.Buffer.from(u).toString("base64"),h=s+"?header="+p+"&payload="+f,[4,this._initializeRetryableHandshake({awsRealTimeUrl:h})];case 3:return v.sent(),this.promiseArray.forEach(function(e){var t=e.res;V.debug("Notifying connection successful"),t()}),this.socketStatus=w.READY,this.promiseArray=[],[3,5];case 4:return m=v.sent(),this.promiseArray.forEach(function(e){return(0,e.rej)(m)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=w.CLOSED,[3,5];case 5:return[2]}})})})},t.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return F(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return V.debug("Initializaling retryable Handshake"),[4,Object(o.x)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}})})},t.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return F(this,void 0,void 0,function(){var e,n,r,i=this;return B(this,function(a){switch(a.label){case 0:V.debug("Initializing handshake "+t),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,new Promise(function(e,n){var r=new WebSocket(t,"graphql-ws");r.onerror=function(){V.debug("WebSocket connection error")},r.onclose=function(){n(new Error("Connection handshake error"))},r.onopen=function(){return i.awsRealTimeSocket=r,e()}})];case 2:return a.sent(),[4,new Promise(function(e,t){var n=!1;i.awsRealTimeSocket.onerror=function(e){V.debug("WebSocket error "+JSON.stringify(e))},i.awsRealTimeSocket.onclose=function(e){V.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},i.awsRealTimeSocket.onmessage=function(r){V.debug("subscription message from AWS AppSyncRealTime: "+r.data+" ");var o=JSON.parse(r.data),a=o.type,s=o.payload,u=(void 0===s?{}:s).connectionTimeoutMs,c=void 0===u?G:u;if(a===y.GQL_CONNECTION_ACK)return n=!0,i.keepAliveTimeout=c,i.awsRealTimeSocket.onmessage=i._handleIncomingSubscriptionMessage.bind(i),i.awsRealTimeSocket.onerror=function(e){V.debug(e),i._errorDisconnect(q.CONNECTION_CLOSED)},i.awsRealTimeSocket.onclose=function(e){V.debug("WebSocket closed "+e.reason),i._errorDisconnect(q.CONNECTION_CLOSED)},void e("Cool, connected to AWS AppSyncRealTime");if(a===y.GQL_CONNECTION_ERROR){var l=o.payload,d=(void 0===l?{}:l).errors,p=H(void 0===d?[]:d,1)[0],f=void 0===p?{}:p,h=f.errorType,m=void 0===h?"":h,v=f.errorCode;t({errorType:m,errorCode:void 0===v?0:v})}};var r={type:y.GQL_CONNECTION_INIT};i.awsRealTimeSocket.send(JSON.stringify(r)),setTimeout(function(){n||t(new Error("Connection timeout: ack from AWSRealTime was not received on "+K+" ms"))}.bind(i),K)})];case 3:return a.sent(),[3,5];case 4:throw e=a.sent(),n=e.errorType,r=e.errorCode,U.includes(r)?new o.m(n):n?new Error(n):e;case 5:return[2]}})})},t.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,n=e.payload,r=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.apiKey,a=e.region;return F(this,void 0,void 0,function(){var e,s,u;return B(this,function(c){switch(c.label){case 0:return e={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this)},"function"!=typeof(s=e[t])?(V.debug("Authentication type "+t+" not supported"),[2,""]):(u=P.parse(i).host,[4,s({payload:n,canonicalUri:r,appSyncGraphqlEndpoint:i,apiKey:o,region:a,host:u})]);case 1:return[2,c.sent()]}})})},t.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return F(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,N.b.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}})})},t.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return F(this,void 0,void 0,function(){var e,n,r;return B(this,function(i){switch(i.label){case 0:return[4,D.a.getItem("federatedInfo")];case 1:return(n=i.sent())?(e=n.token,[3,4]):[3,2];case 2:return[4,N.b.currentAuthenticatedUser()];case 3:(r=i.sent())&&(e=r.token),i.label=4;case 4:if(!e)throw new Error("No federated jwt");return[2,{Authorization:e,host:t}]}})})},t.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,n=e.host;return F(this,void 0,void 0,function(){var e,r;return B(this,function(i){return e=new Date,r=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:n,"x-amz-date":r,"x-api-key":t}]})})},t.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,n=e.canonicalUri,r=e.appSyncGraphqlEndpoint,i=e.region;return F(this,void 0,void 0,function(){var e,a,s;return B(this,function(u){switch(u.label){case 0:return e={region:i,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!u.sent())throw new Error("No credentials");return[4,o.e.get().then(function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}})];case 2:return a=u.sent(),s={url:""+r+n,data:t,method:"POST",headers:j({},Y)},[2,o.q.sign(s,a,e).headers]}})})},t.prototype._ensureCredentials=function(){return o.e.get().then(function(e){if(!e)return!1;var t=o.e.shear(e);return V.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0}).catch(function(e){return V.warn("ensure credentials error",e),!1})},t}(u),W=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},X=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,i,o,a){var s=t(r),u=n[e][t(r)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})})(n("PJh5"))},tzHd:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})(n("PJh5"))},u7NE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("7Flx"),i=n("mXEf"),o=n("gbpe"),a=n("uX3P");n.d(t,"Analytics",function(){return a.e}),n.d(t,"AWSPinpointProvider",function(){return a.c}),n.d(t,"AWSKinesisProvider",function(){return a.b}),n.d(t,"AWSKinesisFirehoseProvider",function(){return a.a}),n.d(t,"AmazonPersonalizeProvider",function(){return a.d}),n.d(t,"Auth",function(){return i.a});var s=n("baaq");n.d(t,"Storage",function(){return s.a}),n.d(t,"StorageClass",function(){return s.b});var u=n("lzcj");n.d(t,"API",function(){return u.a}),n.d(t,"APIClass",function(){return u.b}),n.d(t,"graphqlOperation",function(){return u.c});var c=n("szM5");n.d(t,"PubSub",function(){return c.b}),n.d(t,"Cache",function(){return o.a});var l=n("pxZ/");n.d(t,"Interactions",function(){return l.a});var d=n("PNBz");n.n(d);for(var p in d)["Analytics","AWSPinpointProvider","AWSKinesisProvider","AWSKinesisFirehoseProvider","AmazonPersonalizeProvider","Auth","Storage","StorageClass","API","APIClass","graphqlOperation","PubSub","Cache","Interactions","XR","Predictions","Logger","Hub","JS","ClientDevice","Signer","I18n","ServiceWorker","Amplify","default"].indexOf(p)<0&&function(e){n.d(t,e,function(){return d[e]})}(p);var f=n("mNIK");n.d(t,"XR",function(){return f.a});var h=n("uLaG");n.d(t,"Predictions",function(){return h.a}),n.d(t,"Logger",function(){return r.c}),n.d(t,"Hub",function(){return r.g}),n.d(t,"JS",function(){return r.k}),n.d(t,"ClientDevice",function(){return r.b}),n.d(t,"Signer",function(){return r.q}),n.d(t,"I18n",function(){return r.h}),n.d(t,"ServiceWorker",function(){return r.p}),n.d(t,"Amplify",function(){return r.a}),r.a.Auth=i.a,r.a.Cache=o.a,r.a.ServiceWorker=r.p,t.default=r.a},uCi2:function(e,t,n){var r=n("bIjD"),i=n("Ubhr");e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64},e.exports=r(n("02Hb"))},uIr7:function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t",e),null):t},e.prototype.removePluggable=function(e){this._convertPluggables=this._convertPluggables.filter(function(t){return t.getProviderName()!==e}),this._identifyPluggables=this._identifyPluggables.filter(function(t){return t.getProviderName()!==e}),this._interpretPluggables=this._interpretPluggables.filter(function(t){return t.getProviderName()!==e})},e.prototype.configure=function(e){var t=this,n=e?e.predictions||e:{};n=i(i({},n),e),this._options=Object.assign({},this._options,n),s.debug("configure Predictions",this._options),this.getAllProviders().forEach(function(e){return t.configurePluggable(e)})},e.prototype.interpret=function(e,t){return this.getPluggableToExecute(this._interpretPluggables,t).interpret(e)},e.prototype.convert=function(e,t){return this.getPluggableToExecute(this._convertPluggables,t).convert(e)},e.prototype.identify=function(e,t){return this.getPluggableToExecute(this._identifyPluggables,t).identify(e)},e.prototype.getPluggableToExecute=function(e,t){if(t&&t.providerName)return a(e).find(function(e){return e.getProviderName()===t.providerName});if(1===e.length)return e[0];throw new Error("More than one or no providers are configured, Either specify a provider name or configure exactly one provider")},e.prototype.getAllProviders=function(){return a(this._convertPluggables,this._identifyPluggables,this._interpretPluggables)},e.prototype.configurePluggable=function(e){var t=Object.assign({},this._options.predictions,this._options[e.getCategory().toLowerCase()]);e.configure(t)},e.prototype.implementsConvertPluggable=function(e){return e&&"function"==typeof e.convert},e.prototype.implementsIdentifyPluggable=function(e){return e&&"function"==typeof e.identify},e.prototype.implementsInterpretPluggable=function(e){return e&&"function"==typeof e.interpret},e}())({});r.a.register(u);var c=n("kctE"),l=n("1v5Y"),d=n("9cRb"),p=n("/lLX"),f=function(e,t){return(f=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])})(e,t)};function h(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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},Yu=n("LPDJ"),Ku=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"BatchDetectDominantLanguageCommand",inputFilterSensitiveLog:I.filterSensitiveLog,outputFilterSensitiveLog:A.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.BatchDetectDominantLanguage"},r=JSON.stringify(so(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,jr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=La(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Gu=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"BatchDetectEntitiesCommand",inputFilterSensitiveLog:F.filterSensitiveLog,outputFilterSensitiveLog:$.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.BatchDetectEntities"},r=JSON.stringify(uo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Fr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ka(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Ju=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"BatchDetectKeyPhrasesCommand",inputFilterSensitiveLog:q.filterSensitiveLog,outputFilterSensitiveLog:G.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.BatchDetectKeyPhrases"},r=JSON.stringify(co(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Br(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=za(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Wu=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"BatchDetectSentimentCommand",inputFilterSensitiveLog:J.filterSensitiveLog,outputFilterSensitiveLog:Z.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.BatchDetectSentiment"},r=JSON.stringify(lo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Hr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Aa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Qu=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"BatchDetectSyntaxCommand",inputFilterSensitiveLog:te.filterSensitiveLog,outputFilterSensitiveLog:ae.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.BatchDetectSyntax"},r=JSON.stringify(po(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Vr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Pa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Xu=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ClassifyDocumentCommand",inputFilterSensitiveLog:ce.filterSensitiveLog,outputFilterSensitiveLog:pe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ClassifyDocument"},r=JSON.stringify(fo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,$r(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Na(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Zu=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"CreateDocumentClassifierCommand",inputFilterSensitiveLog:we.filterSensitiveLog,outputFilterSensitiveLog:_e.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.CreateDocumentClassifier"},r=JSON.stringify(ho(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ur(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ja(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),ec=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"CreateEndpointCommand",inputFilterSensitiveLog:Ce.filterSensitiveLog,outputFilterSensitiveLog:Ie.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.CreateEndpoint"},r=JSON.stringify(mo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,qr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Fa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),tc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"CreateEntityRecognizerCommand",inputFilterSensitiveLog:Ne.filterSensitiveLog,outputFilterSensitiveLog:Re.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.CreateEntityRecognizer"},r=JSON.stringify(vo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Yr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ba(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),nc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DeleteDocumentClassifierCommand",inputFilterSensitiveLog:je.filterSensitiveLog,outputFilterSensitiveLog:Fe.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DeleteDocumentClassifier"},r=JSON.stringify(yo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Kr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ha(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),rc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DeleteEndpointCommand",inputFilterSensitiveLog:Be.filterSensitiveLog,outputFilterSensitiveLog:He.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DeleteEndpoint"},r=JSON.stringify(bo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Gr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Va(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),ic=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DeleteEntityRecognizerCommand",inputFilterSensitiveLog:Ve.filterSensitiveLog,outputFilterSensitiveLog:$e.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DeleteEntityRecognizer"},r=JSON.stringify(wo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Jr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=$a(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),oc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeDocumentClassificationJobCommand",inputFilterSensitiveLog:Ue.filterSensitiveLog,outputFilterSensitiveLog:We.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeDocumentClassificationJob"},r=JSON.stringify(_o(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Wr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ua(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),ac=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeDocumentClassifierCommand",inputFilterSensitiveLog:Xe.filterSensitiveLog,outputFilterSensitiveLog:tt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeDocumentClassifier"},r=JSON.stringify(So(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Qr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=qa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),sc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeDominantLanguageDetectionJobCommand",inputFilterSensitiveLog:nt.filterSensitiveLog,outputFilterSensitiveLog:it.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeDominantLanguageDetectionJob"},r=JSON.stringify(xo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Xr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ya(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),uc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeEndpointCommand",inputFilterSensitiveLog:ot.filterSensitiveLog,outputFilterSensitiveLog:ut.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeEndpoint"},r=JSON.stringify(Eo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Zr(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ka(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),cc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeEntitiesDetectionJobCommand",inputFilterSensitiveLog:ct.filterSensitiveLog,outputFilterSensitiveLog:dt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeEntitiesDetectionJob"},r=JSON.stringify(To(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ei(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ga(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),lc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeEntityRecognizerCommand",inputFilterSensitiveLog:pt.filterSensitiveLog,outputFilterSensitiveLog:yt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeEntityRecognizer"},r=JSON.stringify(Mo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ti(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ja(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),dc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeEventsDetectionJobCommand",inputFilterSensitiveLog:bt.filterSensitiveLog,outputFilterSensitiveLog:_t.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeEventsDetectionJob"},r=JSON.stringify(Co(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ni(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Wa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),pc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeKeyPhrasesDetectionJobCommand",inputFilterSensitiveLog:St.filterSensitiveLog,outputFilterSensitiveLog:Et.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeKeyPhrasesDetectionJob"},r=JSON.stringify(Io(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ri(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Qa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),fc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribePiiEntitiesDetectionJobCommand",inputFilterSensitiveLog:Tt.filterSensitiveLog,outputFilterSensitiveLog:At.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribePiiEntitiesDetectionJob"},r=JSON.stringify(Lo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ii(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Xa(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),hc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeSentimentDetectionJobCommand",inputFilterSensitiveLog:Pt.filterSensitiveLog,outputFilterSensitiveLog:Dt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeSentimentDetectionJob"},r=JSON.stringify(ko(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,oi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Za(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),mc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DescribeTopicsDetectionJobCommand",inputFilterSensitiveLog:Nt.filterSensitiveLog,outputFilterSensitiveLog:jt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DescribeTopicsDetectionJob"},r=JSON.stringify(zo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ai(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=es(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),vc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectDominantLanguageCommand",inputFilterSensitiveLog:Ft.filterSensitiveLog,outputFilterSensitiveLog:Bt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectDominantLanguage"},r=JSON.stringify(Ao(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,si(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ts(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),gc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectEntitiesCommand",inputFilterSensitiveLog:Ht.filterSensitiveLog,outputFilterSensitiveLog:Vt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectEntities"},r=JSON.stringify(Po(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ui(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ns(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),yc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectKeyPhrasesCommand",inputFilterSensitiveLog:$t.filterSensitiveLog,outputFilterSensitiveLog:Ut.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectKeyPhrases"},r=JSON.stringify(Oo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ci(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=rs(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),bc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectPiiEntitiesCommand",inputFilterSensitiveLog:qt.filterSensitiveLog,outputFilterSensitiveLog:Kt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectPiiEntities"},r=JSON.stringify(Do(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,li(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=is(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),wc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectSentimentCommand",inputFilterSensitiveLog:Gt.filterSensitiveLog,outputFilterSensitiveLog:Jt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectSentiment"},r=JSON.stringify(No(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,di(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=os(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),_c=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"DetectSyntaxCommand",inputFilterSensitiveLog:Wt.filterSensitiveLog,outputFilterSensitiveLog:Qt.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.DetectSyntax"},r=JSON.stringify(Ro(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,pi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=as(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Sc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListDocumentClassificationJobsCommand",inputFilterSensitiveLog:en.filterSensitiveLog,outputFilterSensitiveLog:tn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListDocumentClassificationJobs"},r=JSON.stringify(Uo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,fi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Is(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),xc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListDocumentClassifiersCommand",inputFilterSensitiveLog:rn.filterSensitiveLog,outputFilterSensitiveLog:on.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListDocumentClassifiers"},r=JSON.stringify(qo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,hi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ls(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Ec=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListDominantLanguageDetectionJobsCommand",inputFilterSensitiveLog:sn.filterSensitiveLog,outputFilterSensitiveLog:un.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListDominantLanguageDetectionJobs"},r=JSON.stringify(Yo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,mi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ks(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Tc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListEndpointsCommand",inputFilterSensitiveLog:ln.filterSensitiveLog,outputFilterSensitiveLog:dn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListEndpoints"},r=JSON.stringify(Ko(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,vi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=zs(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Mc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListEntitiesDetectionJobsCommand",inputFilterSensitiveLog:fn.filterSensitiveLog,outputFilterSensitiveLog:hn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListEntitiesDetectionJobs"},r=JSON.stringify(Go(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,gi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=As(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Cc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListEntityRecognizersCommand",inputFilterSensitiveLog:vn.filterSensitiveLog,outputFilterSensitiveLog:gn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListEntityRecognizers"},r=JSON.stringify(Jo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,yi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ps(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Ic=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListEventsDetectionJobsCommand",inputFilterSensitiveLog:bn.filterSensitiveLog,outputFilterSensitiveLog:wn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListEventsDetectionJobs"},r=JSON.stringify(Wo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,bi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Os(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Lc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListKeyPhrasesDetectionJobsCommand",inputFilterSensitiveLog:Sn.filterSensitiveLog,outputFilterSensitiveLog:xn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListKeyPhrasesDetectionJobs"},r=JSON.stringify(Qo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,wi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ds(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),kc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListPiiEntitiesDetectionJobsCommand",inputFilterSensitiveLog:Tn.filterSensitiveLog,outputFilterSensitiveLog:Mn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListPiiEntitiesDetectionJobs"},r=JSON.stringify(Xo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,_i(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Gs(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),zc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListSentimentDetectionJobsCommand",inputFilterSensitiveLog:In.filterSensitiveLog,outputFilterSensitiveLog:Ln.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListSentimentDetectionJobs"},r=JSON.stringify(Zo(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Si(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Js(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Ac=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListTagsForResourceCommand",inputFilterSensitiveLog:kn.filterSensitiveLog,outputFilterSensitiveLog:zn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListTagsForResource"},r=JSON.stringify(ea(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,xi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Ws(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Pc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"ListTopicsDetectionJobsCommand",inputFilterSensitiveLog:Pn.filterSensitiveLog,outputFilterSensitiveLog:On.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.ListTopicsDetectionJobs"},r=JSON.stringify(ta(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ei(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Qs(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Oc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartDocumentClassificationJobCommand",inputFilterSensitiveLog:Dn.filterSensitiveLog,outputFilterSensitiveLog:Nn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartDocumentClassificationJob"},r=JSON.stringify(oa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ti(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=du(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Dc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartDominantLanguageDetectionJobCommand",inputFilterSensitiveLog:Rn.filterSensitiveLog,outputFilterSensitiveLog:jn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartDominantLanguageDetectionJob"},r=JSON.stringify(aa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Mi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=pu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Nc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartEntitiesDetectionJobCommand",inputFilterSensitiveLog:Fn.filterSensitiveLog,outputFilterSensitiveLog:Bn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartEntitiesDetectionJob"},r=JSON.stringify(sa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ci(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=fu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Rc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartEventsDetectionJobCommand",inputFilterSensitiveLog:Hn.filterSensitiveLog,outputFilterSensitiveLog:Vn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartEventsDetectionJob"},r=JSON.stringify(ua(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ii(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=hu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),jc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartKeyPhrasesDetectionJobCommand",inputFilterSensitiveLog:$n.filterSensitiveLog,outputFilterSensitiveLog:Un.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartKeyPhrasesDetectionJob"},r=JSON.stringify(ca(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Li(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=mu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Fc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartPiiEntitiesDetectionJobCommand",inputFilterSensitiveLog:qn.filterSensitiveLog,outputFilterSensitiveLog:Yn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartPiiEntitiesDetectionJob"},r=JSON.stringify(la(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ki(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=vu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Bc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartSentimentDetectionJobCommand",inputFilterSensitiveLog:Kn.filterSensitiveLog,outputFilterSensitiveLog:Gn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartSentimentDetectionJob"},r=JSON.stringify(da(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,zi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=gu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Hc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StartTopicsDetectionJobCommand",inputFilterSensitiveLog:Jn.filterSensitiveLog,outputFilterSensitiveLog:Wn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StartTopicsDetectionJob"},r=JSON.stringify(pa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ai(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=yu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Vc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopDominantLanguageDetectionJobCommand",inputFilterSensitiveLog:Qn.filterSensitiveLog,outputFilterSensitiveLog:Xn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopDominantLanguageDetectionJob"},r=JSON.stringify(fa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Pi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=bu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),$c=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopEntitiesDetectionJobCommand",inputFilterSensitiveLog:Zn.filterSensitiveLog,outputFilterSensitiveLog:er.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopEntitiesDetectionJob"},r=JSON.stringify(ha(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Oi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=wu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Uc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopEventsDetectionJobCommand",inputFilterSensitiveLog:tr.filterSensitiveLog,outputFilterSensitiveLog:nr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopEventsDetectionJob"},r=JSON.stringify(ma(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Di(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=_u(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),qc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopKeyPhrasesDetectionJobCommand",inputFilterSensitiveLog:rr.filterSensitiveLog,outputFilterSensitiveLog:ir.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopKeyPhrasesDetectionJob"},r=JSON.stringify(va(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ni(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Su(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Yc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopPiiEntitiesDetectionJobCommand",inputFilterSensitiveLog:or.filterSensitiveLog,outputFilterSensitiveLog:ar.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopPiiEntitiesDetectionJob"},r=JSON.stringify(ga(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Ri(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=xu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Kc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopSentimentDetectionJobCommand",inputFilterSensitiveLog:sr.filterSensitiveLog,outputFilterSensitiveLog:ur.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopSentimentDetectionJob"},r=JSON.stringify(ya(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,ji(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Eu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Gc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopTrainingDocumentClassifierCommand",inputFilterSensitiveLog:cr.filterSensitiveLog,outputFilterSensitiveLog:lr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopTrainingDocumentClassifier"},r=JSON.stringify(ba(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Fi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Tu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Jc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"StopTrainingEntityRecognizerCommand",inputFilterSensitiveLog:dr.filterSensitiveLog,outputFilterSensitiveLog:pr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.StopTrainingEntityRecognizer"},r=JSON.stringify(wa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Bi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Mu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Wc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:hr.filterSensitiveLog,outputFilterSensitiveLog:mr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.TagResource"},r=JSON.stringify(Sa(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Hi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Lu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Qc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:gr.filterSensitiveLog,outputFilterSensitiveLog:yr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.UntagResource"},r=JSON.stringify(Ta(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Vi(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=ju(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b),Xc=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return h(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Yu.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"ComprehendClient",commandName:"UpdateEndpointCommand",inputFilterSensitiveLog:br.filterSensitiveLog,outputFilterSensitiveLog:wr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r;return g(this,function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"Comprehend_20171127.UpdateEndpoint"},r=JSON.stringify(Ma(e,t)),[2,$u(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return v(void 0,void 0,void 0,function(){var n,r,i;return g(this,function(o){switch(o.label){case 0:return e.statusCode>=300?[2,$i(e,t)]:[4,Uu(e.body,t)];case 1:return n=o.sent(),r={},r=Fu(n,t),i=m({$metadata:Hu(e)},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Or.b);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}h(t,e),t.prototype.batchDetectDominantLanguage=function(e,t,n){var r=new Ku(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.batchDetectEntities=function(e,t,n){var r=new Gu(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.batchDetectKeyPhrases=function(e,t,n){var r=new Ju(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.batchDetectSentiment=function(e,t,n){var r=new Wu(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.batchDetectSyntax=function(e,t,n){var r=new Qu(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.classifyDocument=function(e,t,n){var r=new Xu(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createDocumentClassifier=function(e,t,n){var r=new Zu(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createEndpoint=function(e,t,n){var r=new ec(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createEntityRecognizer=function(e,t,n){var r=new tc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteDocumentClassifier=function(e,t,n){var r=new nc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEndpoint=function(e,t,n){var r=new rc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEntityRecognizer=function(e,t,n){var r=new ic(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeDocumentClassificationJob=function(e,t,n){var r=new oc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeDocumentClassifier=function(e,t,n){var r=new ac(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeDominantLanguageDetectionJob=function(e,t,n){var r=new sc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeEndpoint=function(e,t,n){var r=new uc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeEntitiesDetectionJob=function(e,t,n){var r=new cc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeEntityRecognizer=function(e,t,n){var r=new lc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeEventsDetectionJob=function(e,t,n){var r=new dc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeKeyPhrasesDetectionJob=function(e,t,n){var r=new pc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describePiiEntitiesDetectionJob=function(e,t,n){var r=new fc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeSentimentDetectionJob=function(e,t,n){var r=new hc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeTopicsDetectionJob=function(e,t,n){var r=new mc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectDominantLanguage=function(e,t,n){var r=new vc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectEntities=function(e,t,n){var r=new gc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectKeyPhrases=function(e,t,n){var r=new yc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectPiiEntities=function(e,t,n){var r=new bc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectSentiment=function(e,t,n){var r=new wc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.detectSyntax=function(e,t,n){var r=new _c(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listDocumentClassificationJobs=function(e,t,n){var r=new Sc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listDocumentClassifiers=function(e,t,n){var r=new xc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listDominantLanguageDetectionJobs=function(e,t,n){var r=new Ec(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listEndpoints=function(e,t,n){var r=new Tc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listEntitiesDetectionJobs=function(e,t,n){var r=new Mc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listEntityRecognizers=function(e,t,n){var r=new Cc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listEventsDetectionJobs=function(e,t,n){var r=new Ic(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listKeyPhrasesDetectionJobs=function(e,t,n){var r=new Lc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listPiiEntitiesDetectionJobs=function(e,t,n){var r=new kc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listSentimentDetectionJobs=function(e,t,n){var r=new zc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForResource=function(e,t,n){var r=new Ac(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTopicsDetectionJobs=function(e,t,n){var r=new Pc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startDocumentClassificationJob=function(e,t,n){var r=new Oc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startDominantLanguageDetectionJob=function(e,t,n){var r=new Dc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startEntitiesDetectionJob=function(e,t,n){var r=new Nc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startEventsDetectionJob=function(e,t,n){var r=new Rc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startKeyPhrasesDetectionJob=function(e,t,n){var r=new jc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startPiiEntitiesDetectionJob=function(e,t,n){var r=new Fc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startSentimentDetectionJob=function(e,t,n){var r=new Bc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startTopicsDetectionJob=function(e,t,n){var r=new Hc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopDominantLanguageDetectionJob=function(e,t,n){var r=new Vc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopEntitiesDetectionJob=function(e,t,n){var r=new $c(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopEventsDetectionJob=function(e,t,n){var r=new Uc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopKeyPhrasesDetectionJob=function(e,t,n){var r=new qc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopPiiEntitiesDetectionJob=function(e,t,n){var r=new Yc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopSentimentDetectionJob=function(e,t,n){var r=new Kc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopTrainingDocumentClassifier=function(e,t,n){var r=new Gc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopTrainingEntityRecognizer=function(e,t,n){var r=new Jc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagResource=function(e,t,n){var r=new Wc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagResource=function(e,t,n){var r=new Qc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateEndpoint=function(e,t,n){var r=new Xc(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(Dr);var Zc=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},tl=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},rl=function(e){function t(){return e.call(this)||this}return Zc(t,e),t.prototype.getProviderName=function(){return"AmazonAIInterpretPredictionsProvider"},t.prototype.interpretText=function(e){var t=this;return new Promise(function(n,i){return el(t,void 0,void 0,function(){var t,o,a,s,u,c,l,d,f,h,m,v,g,y,b,w,_,S,x,E,T,M,C,I,L,k,z,A,P,O,D,N,R,j,F,B,H,V;return tl(this,function($){switch($.label){case 0:return[4,r.e.get()];case 1:return(t=$.sent())?(o=this._config.interpretText,s=(a=void 0===o?{}:o).region,u=void 0===s?"":s,c=a.defaults,l=(void 0===c?{}:c).type,d=void 0===l?"":l,f=e.text,m=(h=void 0===f?{}:f).source,v=(void 0===m?{}:m).text,g=void 0===v?"":v,y=h.type,b=void 0===y?d:y,w=e.text,_=(void 0===w?{}:w).source,S=(void 0===_?{}:_).language,x=void 0===S?void 0:S,E=new Dr({credentials:t,region:u,customUserAgent:Object(r.v)()}),((T=b===p.a.ALL)||b===p.a.LANGUAGE)&&(C={Text:g},M=this.detectLanguage(C,E)),T||b===p.a.ENTITIES?(L=x)?[3,3]:[4,M]:[3,4]):[2,i("No credentials")];case 2:L=$.sent(),$.label=3;case 3:if(!(j=L))return[2,i("language code is required on source for this selection")];k={Text:g,LanguageCode:j},I=this.detectEntities(k,E),$.label=4;case 4:return T||b===p.a.SENTIMENT?(A=x)?[3,6]:[4,M]:[3,7];case 5:A=$.sent(),$.label=6;case 6:if(!(j=A))return[2,i("language code is required on source for this selection")];P={Text:g,LanguageCode:j},z=this.detectSentiment(P,E),$.label=7;case 7:return T||b===p.a.SYNTAX?(D=x)?[3,9]:[4,M]:[3,10];case 8:D=$.sent(),$.label=9;case 9:if(!(j=D))return[2,i("language code is required on source for this selection")];N={Text:g,LanguageCode:j},O=this.detectSyntax(N,E),$.label=10;case 10:return T||b===p.a.KEY_PHRASES?(F=x)?[3,12]:[4,M]:[3,13];case 11:F=$.sent(),$.label=12;case 12:if(!(j=F))return[2,i("language code is required on source for this selection")];B={Text:g,LanguageCode:j},R=this.detectKeyPhrases(B,E),$.label=13;case 13:return $.trys.push([13,15,,16]),[4,Promise.all([M,I,z,O,R])];case 14:return H=$.sent(),n({textInterpretation:{keyPhrases:H[4]||[],language:H[0]||"",sentiment:H[2],syntax:H[3]||[],textEntities:H[1]||[]}}),[3,16];case 15:return V=$.sent(),i(V),[3,16];case 16:return[2]}})})})},t.prototype.detectKeyPhrases=function(e,t){return el(this,void 0,void 0,function(){var n,r,i,o;return tl(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=new yc(e),[4,t.send(n)];case 1:return r=a.sent(),i=(r||{}).KeyPhrases,[2,(void 0===i?[]:i).map(function(e){return{text:e.Text}})];case 2:return"AccessDeniedException"===(o=a.sent()).code?Promise.reject("Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: amplify predictions add"):Promise.reject(o.message),[3,3];case 3:return[2]}})})},t.prototype.detectSyntax=function(e,t){return el(this,void 0,void 0,function(){var n,r,i,o,a;return tl(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),n=new _c(e),[4,t.send(n)];case 1:return r=s.sent(),i=(r||{}).SyntaxTokens,o=void 0===i?[]:i,[2,this.serializeSyntaxFromComprehend(o)];case 2:return"AccessDeniedException"===(a=s.sent()).code?Promise.reject("Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: amplify predictions add"):Promise.reject(a.message),[3,3];case 3:return[2]}})})},t.prototype.serializeSyntaxFromComprehend=function(e){var t=[];return e&&Array.isArray(e)&&(t=e.map(function(e){var t=e.Text,n=void 0===t?"":t,r=e.PartOfSpeech,i=(void 0===r?{}:r).Tag;return{text:n,syntax:void 0===i?"":i}})),t},t.prototype.detectSentiment=function(e,t){return el(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v;return tl(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),n=new wc(e),[4,t.send(n)];case 1:return r=g.sent(),o=(i=r).Sentiment,a=void 0===o?"":o,s=i.SentimentScore,c=(u=void 0===s?{}:s).Positive,l=void 0===c?0:c,d=u.Negative,p=void 0===d?0:d,f=u.Neutral,h=void 0===f?0:f,m=u.Mixed,[2,{predominant:a,positive:l,negative:p,neutral:h,mixed:void 0===m?0:m}];case 2:return"AccessDeniedException"===(v=g.sent()).code?Promise.reject("Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: amplify predictions add"):Promise.reject(v.message),[3,3];case 3:return[2]}})})},t.prototype.detectEntities=function(e,t){return el(this,void 0,void 0,function(){var n,r,i,o,a;return tl(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),n=new gc(e),[4,t.send(n)];case 1:return r=s.sent(),i=(r||{}).Entities,o=void 0===i?[]:i,[2,this.serializeEntitiesFromComprehend(o)];case 2:return"AccessDeniedException"===(a=s.sent()).code?Promise.reject("Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: amplify predictions add"):Promise.reject(a.message),[3,3];case 3:return[2]}})})},t.prototype.serializeEntitiesFromComprehend=function(e){var t=[];return e&&Array.isArray(e)&&(t=e.map(function(e){return{type:e.Type,text:e.Text}})),t},t.prototype.detectLanguage=function(e,t){return el(this,void 0,void 0,function(){var n,r,i,o,a;return tl(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),n=new vc(e),[4,t.send(n)];case 1:return r=s.sent(),i=(r||{}).Languages,o=nl(void 0===i?[""]:i,1),o[0].LanguageCode||Promise.reject("Language not detected"),[2,r.Languages[0].LanguageCode];case 2:return"AccessDeniedException"===(a=s.sent()).code?Promise.reject("Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: amplify predictions add"):Promise.reject(a.message),[3,3];case 3:return[2]}})})},t}(d.b),il=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ol=function(e){function t(){var t=e.call(this)||this;return t.convertProvider=new c.a,t.identifyProvider=new l.a,t.interpretProvider=new rl,t}return il(t,e),t.prototype.getCategory=function(){return"Predictions"},t.prototype.getProviderName=function(){return"AmazonAIPredictionsProvider"},t.prototype.configure=function(e){return this.convertProvider.configure(e.convert),this.identifyProvider.configure(e.identify),this.interpretProvider.configure(e.interpret),e},t.prototype.interpret=function(e){return this.interpretProvider.interpret(e)},t.prototype.convert=function(e){return this.convertProvider.convert(e)},t.prototype.identify=function(e){return this.identifyProvider.identify(e)},t}(d.c);n.d(t,!1,function(){return p.a}),n.d(t,!1,function(){return p.e}),n.d(t,!1,function(){return p.d}),n.d(t,!1,function(){}),n.d(t,!1,function(){}),n.d(t,!1,function(){}),n.d(t,!1,function(){return p.f}),n.d(t,!1,function(){return p.c}),n.d(t,!1,function(){return p.b}),n.d(t,!1,function(){}),n.d(t,!1,function(){}),n.d(t,!1,function(){}),n.d(t,!1,function(){}),n.d(t,"a",function(){return u}),n.d(t,!1,function(){return l.a}),n.d(t,!1,function(){return c.a}),n.d(t,!1,function(){return ol}),n.d(t,!1,function(){return rl})},uLhX:function(e,t,n){var r=n("NkRn"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},uSe8:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})(n("PJh5"))},uUYp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonExecutableDefinitionMessage=a,t.ExecutableDefinitions=function(e){return{Document:function(t){var n=!0,s=!1,u=void 0;try{for(var c,l=t.definitions[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var d=c.value;(0,o.isExecutableDefinitionNode)(d)||e.reportError(new r.GraphQLError(a(d.kind===i.Kind.SCHEMA_DEFINITION||d.kind===i.Kind.SCHEMA_EXTENSION?"schema":d.name.value),[d]))}}catch(e){s=!0,u=e}finally{try{n||null==l.return||l.return()}finally{if(s)throw u}}return!1}}};var r=n("QmgZ"),i=n("Jko5"),o=n("anwo");function a(e){return"The ".concat(e," definition is not executable.")}},uWn1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDirective=function(e){return(0,s.default)(e,p)},t.isSpecifiedDirective=function(e){return v.some(function(t){return t.name===e.name})},t.specifiedDirectives=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=void 0;var r=n("AS5q"),i=n("EmyK"),o=l(n("hSN0")),a=l(n("YxBq")),s=l(n("IpNb")),u=l(n("JiIc")),c=n("nC2W");function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){function e(e){d(this,"name",void 0),d(this,"description",void 0),d(this,"locations",void 0),d(this,"args",void 0),d(this,"astNode",void 0),this.name=e.name,this.description=e.description,this.locations=e.locations,this.astNode=e.astNode,e.name||(0,u.default)(0,"Directive must be named."),Array.isArray(e.locations)||(0,u.default)(0,"Must provide locations for directive.");var t=e.args;t?(Array.isArray(t)&&(0,u.default)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object.keys(t).map(function(e){var n=t[e];return{name:e,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,astNode:n.astNode}})):this.args=[]}return e.prototype.toString=function(){return"@"+this.name},e}();t.GraphQLDirective=p,(0,o.default)(p),(0,a.default)(p);var f=new p({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,r.GraphQLNonNull)(i.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=f;var h=new p({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,r.GraphQLNonNull)(i.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=h;t.DEFAULT_DEPRECATION_REASON="No longer supported";var m=new p({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:i.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}});t.GraphQLDeprecatedDirective=m;var v=[f,h,m];t.specifiedDirectives=v},uX3P:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t=o[i]){var a=console.log.bind(console);"ERROR"===t&&console.error&&(a=console.error.bind(console)),"WARN"===t&&console.warn&&(a=console.warn.bind(console));var s="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"==typeof n[0])a(s+" - "+n[0]);else if(1===n.length)a(s,n[0]);else if("string"==typeof n[0]){var u=n.slice(1);1===u.length&&(u=u[0]),a(s+" - "+n[0],u)}else a(s,n)}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},u=new a("Amplify"),c=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=a,this.ServiceWorker=null}return e.prototype.register=function(e){u.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):u.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),u.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(e){var n=s(e,2),r=(n[0],n[1]);Object.keys(r).forEach(function(e){t._modules[e]&&(r[e]=t._modules[e])})}),this._components.map(function(e){e.configure(t._config)}),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e}()),l={userAgent:"aws-amplify/3.8.2 js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(l.product=navigator.product||"",l.navigator=navigator||null,navigator.product){case"ReactNative":l.userAgent="aws-amplify/3.8.2 react-native",l.isReactNative=!0;break;default:l.userAgent="aws-amplify/3.8.2 js",l.isReactNative=!1}var d=function(){return l.userAgent},p=new a("ClientDevice_Browser");function f(){return"undefined"==typeof window?{}:function(){if("undefined"==typeof window)return p.warn("No window object available to get browser client info"),{};var e=window.navigator;if(!e)return p.warn("No navigator object available to get browser client info"),{};var t=e.platform,n=e.product,r=e.vendor,i=e.userAgent,o=e.language,a=function(e){var t=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);if(t)return{type:t[1],version:t[2]};var n=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(e);if(n)return{type:n[1],version:n[2]};var r=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(e);if(r)return{type:r[1],version:r[2]};var i=/.+(Safari)\/([0-9\.]+).*/i.exec(e);if(i)return{type:i[1],version:i[2]};var o=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(e);if(o)return{type:o[1],version:o[2]};var a=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(e);if(a)return{type:a[1],version:a[2]};return{type:"",version:""}}(i),s=(u=/\(([A-Za-z\s].*)\)/.exec((new Date).toString()),u&&u[1]||"");var u;return{platform:t,make:n||r,model:a.type,version:a.version,appVersion:[a.type,a.version].join("/"),language:o,timezone:s}}()}var h=function(){function e(){}return e.clientInfo=function(){return f()},e.dimension=function(){return"undefined"==typeof window?(p.warn("No window object available to get browser client info"),{width:320,height:320}):{width:window.innerWidth,height:window.innerHeight}},e}();var m=this&&this.__assign||function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},g=this&&this.__spread||function(){for(var e=[],t=0;t-1)&&(r===b||y.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:m({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(e){y.error(e)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))y.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach(function(r){y.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(e){y.error(e)}}),this.patterns.length>0){if(!n.message)return void y.warn("Cannot perform pattern matching without a message key");var i=n.message;this.patterns.forEach(function(t){var n=i.match(t.pattern);if(n){var r=v(n).slice(1),o=m(m({},e),{patternInfo:r});try{t.callback(o)}catch(e){y.error(e)}}})}},e}())("__default__"),_=new a("I18n"),S=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!=typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),_.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!this._lang)return void 0!==t?t:e;var n=this._lang,r=this.getByLanguage(e,n);return r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||(void 0!==t?t:e))},e.prototype.getByLanguage=function(e,t,n){if(void 0===n&&(n=null),!t)return n;var r=this._dict[t];return r?r[e]:n},e.prototype.putVocabulariesForLanguage=function(e,t){var n=this._dict[e];n||(n=this._dict[e]={}),Object.assign(n,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map(function(n){t.putVocabulariesForLanguage(n,e[n])})},e}(),x=new a("I18n"),E=null,T=null,M=function(){function e(){}return e.configure=function(t){return x.debug("configure I18n"),t?(E=Object.assign({},E,t.I18n||t),e.createInstance(),E):E},e.getModuleName=function(){return"I18n"},e.createInstance=function(){x.debug("create I18n instance"),T||(T=new S(E))},e.setLanguage=function(t){return e.checkConfig(),T.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?T.get(t,n):void 0===n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),T.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),T.putVocabularies(t)},e.checkConfig=function(){return T||(T=new S(E)),!0},e}();c.register(M);for(var C=n("47UH"),I=n("BZdP"),L={},k={},z=0;z<256;z++){var A=z.toString(16).toLowerCase();1===A.length&&(A="0"+A),L[z]=A,k[A]=z}function P(e){for(var t="",n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},F=this&&this.__spread||function(){for(var e=[],t=0;te)&&n}}(n))},U=(function(){function e(){this._queue=[],this._pending=!1}e.prototype.isLocked=function(){return this._pending},e.prototype.acquire=function(){var e=this,t=new Promise(function(t){return e._queue.push(t)});return this._pending||this._dispatchNext(),t},e.prototype.runExclusive=function(e){return this.acquire().then(function(t){var n;try{n=e()}catch(e){throw t(),e}return Promise.resolve(n).then(function(e){return t(),e},function(e){throw t(),e})})},e.prototype._dispatchNext=function(){this._queue.length>0?(this._pending=!0,this._queue.shift()(this._dispatchNext.bind(this))):this._pending=!1}}(),n("BarH")),q=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=(function(){function e(){}e.prototype.networkMonitor=function(t){if(Object(C.b)().isNode)return U.a.from([{online:!0}]);var n=Object(C.c)()?self:window;return new U.a(function(t){t.next({online:n.navigator.onLine});var r=function(){return t.next({online:!0})},i=function(){return t.next({online:!1})};return n.addEventListener("online",r),n.addEventListener("offline",i),e._observers.push(t),function(){n.removeEventListener("online",r),n.removeEventListener("offline",i),e._observers=e._observers.filter(function(e){return e!==t})}})},e._observerOverride=function(t){var n,r,i=function(n){if(n.closed)return e._observers=e._observers.filter(function(e){return e!==n}),"continue";n.next(t)};try{for(var o=q(e._observers),a=o.next();!a.done;a=o.next()){i(a.value)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e._observers=[]}(),this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}),K={clockOffset:0,getDateWithClockOffset:function(){return K.clockOffset?new Date((new Date).getTime()+K.clockOffset):new Date},getClockOffset:function(){return K.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=K.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=Y(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6];return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(o),Number(a),Number(s)))},isClockSkewed:function(e){return Math.abs(e.getTime()-K.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean("BadRequestException"===t["x-amzn-errortype"]&&(t.date||t.Date))},setClockOffset:function(e){K.clockOffset=e}}; /*! * The MIT License (MIT) * * Copyright (c) 2016 Christian Speckner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var G=this&&this.__assign||function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;var Ae=n("FhMR"),Pe=n("gFtY"),Oe=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(),De=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(Object(Te.__assign)(Object(Te.__assign)({},this),{headers:Object(Te.__assign)({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce(function(e,n){var r,i=t[n];return Object(Te.__assign)(Object(Te.__assign)({},e),((r={})[n]=Array.isArray(i)?Object(Te.__spread)(i):i,r))},{}))),n},e}();function Ne(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,Re)}function Re(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}for(var je=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null===t||void 0===t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var o=e.path;if(e.query){var a=function(e){var t,n,r=[];try{for(var i=Object(Te.__values)(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=Ne(a),Array.isArray(s))for(var u=0,c=s.length;u>=Ye;var c=i/4*3;o>>=a%Ke;for(var l=Math.floor(a/Ke),d=0;d>p)}}return new Uint8Array(n)}var We={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high"},Qe=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(Te.__awaiter)(void 0,void 0,void 0,function(){return Object(Te.__generator)(this,function(r){return[2,e.retryStrategy.retry(t,n)]})})}}}(e),We)}}},Xe=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Ze=["Throttling","ThrottlingException","ThrottledException","RequestThrottledException","TooManyRequestsException","ProvisionedThroughputExceededException","TransactionInProgressException","RequestLimitExceeded","BandwidthLimitExceeded","LimitExceededException","RequestThrottled","SlowDown","PriorRequestNotComplete","EC2ThrottledException"],et=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],tt=[500,502,503,504],nt=function(e){var t;return Ze.includes(e.name)||1==(null===(t=e.$retryable)||void 0===t?void 0:t.throttling)},rt=n("Ixeu"),it=500,ot=function(e){var t=e,n=e,r=function(e){return"TimeoutError"===e.name?10:5},i=function(e){return r(e)<=n};return Object.freeze({hasRetryTokens:i,retrieveRetryTokens:function(e){if(!i(e))throw new Error("No retry token available");var t=r(e);return n-=t,t},releaseRetryTokens:function(e){n+=null!==e&&void 0!==e?e:1,n=Math.min(n,t)}})},at=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},st=function(e){return!!e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return Xe.includes(e.name)}(e)||nt(e)||function(e){var t;return et.includes(e.name)||tt.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}(e))},ut=function(){function e(e,t){var n,r,i;this.maxAttemptsProvider=e,this.retryDecider=null!==(n=null===t||void 0===t?void 0:t.retryDecider)&&void 0!==n?n:st,this.delayDecider=null!==(r=null===t||void 0===t?void 0:t.delayDecider)&&void 0!==r?r:at,this.retryQuota=null!==(i=null===t||void 0===t?void 0:t.retryQuota)&&void 0!==i?i:ot(it)}return e.prototype.shouldRetry=function(e,t,n){return t>c]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:function(){},defaultUserAgent:(ft=Ae.name,ht=Ae.version,"aws-sdk-js-v3-"+ft+"/"+ht+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")),maxAttempts:3,region:(pt="Region is missing",function(){throw new Error(pt)}),requestHandler:new je,sha256:Pe.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return Object(Te.__awaiter)(this,void 0,void 0,function(){var t,n;return Object(Te.__generator)(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=Je(t),[2,new Uint8Array(n)]}})})}(e):function(e){return Object(Te.__awaiter)(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return Object(Te.__generator)(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=u.sent(),o=i.done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=o,[3,1];case 3:return[2,t]}})})}(e)},urlParser:dt,utf8Decoder:mt.fromUtf8,utf8Encoder:mt.toUtf8}),xt=function(e){var t;return Object(Te.__assign)(Object(Te.__assign)({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?Et(e):function(){return Tt(e)}})},Et=function(e){var t=e.endpoint,n=e.urlParser;if("string"==typeof t){var r=Promise.resolve(n(t));return function(){return r}}if("object"==typeof t){var i=Promise.resolve(t);return function(){return i}}return t},Tt=function(e){return Object(Te.__awaiter)(void 0,void 0,void 0,function(){var t,n,r,i,o;return Object(Te.__generator)(this,function(a){switch(a.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=a.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(r)];case 2:if(!(i=(null!==(o=a.sent())&&void 0!==o?o:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+i)]}})})},Mt=function(e){if(!e.region)throw new Error("Region is missing");return Object(Te.__assign)(Object(Te.__assign)({},e),{region:Ct(e.region)})},Ct=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},It="content-length";var Lt={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},kt=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(Te.__awaiter)(t,void 0,void 0,function(){var t,i,o,a,s;return Object(Te.__generator)(this,function(u){return t=r.request,De.isInstance(t)&&(i=t.body,o=t.headers,i&&-1===Object.keys(o).map(function(e){return e.toLowerCase()}).indexOf(It)&&void 0!==(a=e(i))&&(t.headers=Object(Te.__assign)(Object(Te.__assign)({},t.headers),((s={})[It]=String(a),s)))),[2,n(Object(Te.__assign)(Object(Te.__assign)({},r),{request:t}))]})})}}}(e.bodyLengthChecker),Lt)}}};var zt={name:"hostHeaderMiddleware",step:"build",tags:["HOST"]},At=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(Te.__awaiter)(void 0,void 0,void 0,function(){var r,i;return Object(Te.__generator)(this,function(o){return De.isInstance(n.request)?(r=n.request,(void 0===(i=(e.requestHandler.metadata||{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),zt)}}},Pt=function(e){return e},Ot={name:"loggerMiddleware",tags:["LOGGER"],step:"finalizeRequest"},Dt=function(e){return{applyToStack:function(e){e.add(function(e,t){return function(n){return Object(Te.__awaiter)(void 0,void 0,void 0,function(){var r,i,o,a,s,u,c;return Object(Te.__generator)(this,function(l){switch(l.label){case 0:return r=t.logger,i=t.inputFilterSensitiveLog,o=t.outputFilterSensitiveLog,[4,e(n)];case 1:return a=l.sent(),r?(s=a.output,u=s.$metadata,c=Object(Te.__rest)(s,["$metadata"]),"function"==typeof r.debug&&(r.debug({httpRequest:n.request}),r.debug({httpResponse:a.response})),"function"==typeof r.info&&r.info({$metadata:u,input:i(n.input),output:o(c)}),[2,a]):[2,a]}})})}},Ot)}}},Nt="X-Amz-Date".toLowerCase(),Rt=["authorization",Nt,"date"],jt="X-Amz-Signature".toLowerCase(),Ft="x-amz-content-sha256",Bt="X-Amz-Security-Token".toLowerCase(),Ht={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Vt=/^proxy-/,$t=/^sec-/,Ut="AWS4-HMAC-SHA256-PAYLOAD",qt="UNSIGNED-PAYLOAD",Yt=50,Kt="aws4_request",Gt={},Jt=[];function Wt(e,t,n){return e+"/"+t+"/"+n+"/"+Kt}function Qt(e,t,n){var r,i,o=e.headers,a={};try{for(var s=Object(Te.__values)(Object.keys(o).sort()),u=s.next();!u.done;u=s.next()){var c=u.value,l=c.toLowerCase();(l in Ht||(null===t||void 0===t?void 0:t.has(l))||Vt.test(l)||$t.test(l))&&(!n||n&&!n.has(l))||(a[l]=o[c].trim().replace(/\s+/g," "))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}function Xt(e,t){var n=e.headers,r=e.body;return Object(Te.__awaiter)(this,void 0,void 0,function(){var e,i,o,a,s,u,c;return Object(Te.__generator)(this,function(l){switch(l.label){case 0:try{for(e=Object(Te.__values)(Object.keys(n)),i=e.next();!i.done;i=e.next())if((o=i.value).toLowerCase()===Ft)return[2,n[o]]}catch(e){u={error:e}}finally{try{i&&!i.done&&(c=e.return)&&c.call(e)}finally{if(u)throw u.error}}return void 0!=r?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof r||ArrayBuffer.isView(r)||(d=r,"function"==typeof ArrayBuffer&&d instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(d))?((a=new t).update(r),s=P,[4,a.digest()]):[3,3];case 2:return[2,s.apply(void 0,[l.sent()])];case 3:return[2,qt]}var d})})}function Zt(e){var t=e.headers,n=e.query,r=Object(Te.__rest)(e,["headers","query"]);return Object(Te.__assign)(Object(Te.__assign)({},r),{headers:Object(Te.__assign)({},t),query:n?function(e){return Object.keys(e).reduce(function(t,n){var r,i=e[n];return Object(Te.__assign)(Object(Te.__assign)({},t),((r={})[n]=Array.isArray(i)?Object(Te.__spread)(i):i,r))},{})}(n):void 0})}function en(e){var t,n;e="function"==typeof e.clone?e.clone():Zt(e);try{for(var r=Object(Te.__values)(Object.keys(e.headers)),i=r.next();!i.done;i=r.next()){var o=i.value;Rt.indexOf(o.toLowerCase())>-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function tn(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var nn=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=an(r),this.credentialProvider=sn(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(Te.__awaiter)(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E;return Object(Te.__generator)(this,function(T){switch(T.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,i=t.expiresIn,o=void 0===i?3600:i,a=t.unsignableHeaders,s=t.signableHeaders,u=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return l=T.sent(),null===u||void 0===u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=T.sent(),T.label=4;case 4:return d=p,f=rn(r),h=f.longDate,m=f.shortDate,o>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=Wt(m,d,null!==c&&void 0!==c?c:this.service),g=function(e){var t,n,r="function"==typeof e.clone?e.clone():Zt(e),i=r.headers,o=r.query,a=void 0===o?{}:o;try{for(var s=Object(Te.__values)(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"x-amz-"===c.toLowerCase().substr(0,6)&&(a[c]=i[c],delete i[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return Object(Te.__assign)(Object(Te.__assign)({},e),{headers:i,query:a})}(en(e)),l.sessionToken&&(g.query["X-Amz-Security-Token"]=l.sessionToken),g.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",g.query["X-Amz-Credential"]=l.accessKeyId+"/"+v,g.query["X-Amz-Date"]=h,g.query["X-Amz-Expires"]=o.toString(10),y=Qt(g,a,s),g.query["X-Amz-SignedHeaders"]=on(y),b=g.query,w="X-Amz-Signature",_=this.getSignature,S=[h,v,this.getSigningKey(l,d,m,c)],x=this.createCanonicalRequest,E=[g,y],[4,Xt(e,this.sha256)]);case 5:return[4,_.apply(this,S.concat([x.apply(this,E.concat([T.sent()]))]))];case 6:return b[w]=T.sent(),[2,g]}})})},e.prototype.sign=function(e,t){return Object(Te.__awaiter)(this,void 0,void 0,function(){return Object(Te.__generator)(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return Object(Te.__awaiter)(this,void 0,void 0,function(){var e,t,i,c,l,d,p,f,h,m,v;return Object(Te.__generator)(this,function(g){switch(g.label){case 0:return null===s||void 0===s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,i=rn(o),c=i.shortDate,l=i.longDate,d=Wt(c,e,null!==u&&void 0!==u?u:this.service),[4,Xt({headers:{},body:r},this.sha256)];case 4:return p=g.sent(),(f=new this.sha256).update(n),m=P,[4,f.digest()];case 5:return h=m.apply(void 0,[g.sent()]),v=[Ut,l,d,a,h,p].join("\n"),[2,this.signString(v,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signingRegion,a=n.signingService;return Object(Te.__awaiter)(this,void 0,void 0,function(){var t,n,r,s,u,c,l,d;return Object(Te.__generator)(this,function(p){switch(p.label){case 0:return[4,this.credentialProvider()];case 1:return t=p.sent(),null===o||void 0===o?[3,2]:(r=o,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=p.sent(),p.label=4;case 4:return n=r,s=rn(i).shortDate,l=(c=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(l.apply(c,[void 0,p.sent()]))).update(e),d=P,[4,u.digest()];case 6:return[2,d.apply(void 0,[p.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return Object(Te.__awaiter)(this,void 0,void 0,function(){var t,n,r,c,l,d,p,f,h,m,v;return Object(Te.__generator)(this,function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,c=en(e),l=rn(i),d=l.longDate,p=l.shortDate,f=Wt(p,n,null!==u&&void 0!==u?u:this.service),c.headers[Nt]=d,t.sessionToken&&(c.headers[Bt]=t.sessionToken),[4,Xt(c,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=Object(Te.__values)(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(Ft,c.headers)&&this.applyChecksum&&(c.headers[Ft]=h),m=Qt(c,a,o),[4,this.getSignature(d,f,this.getSigningKey(t,n,p,u),this.createCanonicalRequest(c,m,h))];case 6:return v=g.sent(),c.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+on(m)+", Signature="+v,[2,c]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],a={},s=function(e){if(e.toLowerCase()===jt)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=Ne(e)+"="+Ne(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([Ne(e)+"="+Ne(n)])},[]).join("&"))};try{for(var u=Object(Te.__values)(Object.keys(i).sort()),c=u.next();!c.done;c=u.next())s(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+r.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(Te.__awaiter)(this,void 0,void 0,function(){var r,i;return Object(Te.__generator)(this,function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+P(i)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Object(Te.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u;return Object(Te.__generator)(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=c.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(o=new(s.apply(a,[void 0,c.sent()]))).update(i),u=P,[4,o.digest()];case 3:return[2,u.apply(void 0,[c.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,i){var o=n+":"+r+":"+i+":"+t.accessKeyId+":"+t.sessionToken;if(o in Gt)return Gt[o];for(Jt.push(o);Jt.length>Yt;)delete Gt[Jt.shift()];return Gt[o]=new Promise(function(a,s){var u,c,l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then(function(n){return r=t,(i=new e(n)).update(r),i.digest();var r,i})).catch(function(){})};try{for(var p=Object(Te.__values)([n,r,i,Kt]),f=p.next();!f.done;f=p.next())d(f.value)}catch(e){u={error:e}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}l.then(a,function(e){delete Gt[o],s(e)})})}(this.sha256,e,n,t,r||this.service)},e}(),rn=function(e){var t=tn(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},on=function(e){return Object.keys(e).sort().join(";")},an=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},sn=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function un(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var cn=function(e,t){return Math.abs(ln(t).getTime()-e)>=3e5},ln=function(e){return new Date(Date.now()+e)};var dn={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},pn=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(r){return Object(Te.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return Object(Te.__generator)(this,function(f){switch(f.label){case 0:return De.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return i=o,s=t,u=[Object(Te.__assign)({},r)],p={},[4,i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,s.apply(void 0,[Te.__assign.apply(void 0,u.concat([(p.request=f.sent(),p)]))])];case 5:return a=f.sent(),c=a.response.headers,(l=c&&(c.date||c.Date))&&(d=Date.parse(l),cn(d,e.systemClockOffset)&&(e.systemClockOffset=d-Date.now())),[2,a]}})})}}}(e),dn)}}};var fn={name:"getUserAgentMiddleware",step:"build",tags:["SET_USER_AGENT","USER_AGENT"]},hn=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e){return function(t){var r=t.request;if(!De.isInstance(r))return e(t);var i=r.headers,o="node"===n.runtime?"user-agent":"x-amz-user-agent";return i[o]?i[o]+=" "+n.defaultUserAgent:i[o]=""+n.defaultUserAgent,n.customUserAgent&&(i[o]+=" "+n.customUserAgent),e(Object(Te.__assign)(Object(Te.__assign)({},t),{request:r}))}}),fn)}}},mn=function(){var e=[],t=[],n=new Set,r=function(n){return e.forEach(function(e){n.add(e.middleware,Object(Te.__assign)({},e))}),t.forEach(function(e){n.addRelativeTo(e.middleware,Object(Te.__assign)({},e))}),n},i=function(e){var t=[];return e.before.forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(Te.__spread)(i(e)))}),t.push(e),e.after.reverse().forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(Te.__spread)(i(e)))}),t},o=function(){var n,r=[],o=[],a={};return e.forEach(function(e){var t=Object(Te.__assign)(Object(Te.__assign)({},e),{before:[],after:[]});t.name&&(a[t.name]=t),r.push(t)}),t.forEach(function(e){var t=Object(Te.__assign)(Object(Te.__assign)({},e),{before:[],after:[]});t.name&&(a[t.name]=t),o.push(t)}),o.forEach(function(e){if(e.toMiddleware){var t=a[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),(n=r,n.sort(function(e,t){return vn[t.step]-vn[e.step]||gn[t.priority||"normal"]-gn[e.priority||"normal"]})).map(i).reduce(function(e,t){return e.push.apply(e,Object(Te.__spread)(t)),e},[]).map(function(e){return e.middleware})},a={add:function(t,r){void 0===r&&(r={});var i=r.name,o=Object(Te.__assign)({step:"initialize",priority:"normal",middleware:t},r);if(i){if(n.has(i))throw new Error("Duplicate middleware name '"+i+"'");n.add(i)}e.push(o)},addRelativeTo:function(e,r){var i=r.name,o=Object(Te.__assign)({middleware:e},r);if(i){if(n.has(i))throw new Error("Duplicated middleware name '"+i+"'");n.add(i)}t.push(o)},clone:function(){return r(mn())},use:function(e){e.applyToStack(a)},remove:function(r){return"string"==typeof r?function(r){var i=!1,o=function(e){return!e.name||e.name!==r||(i=!0,n.delete(r),!1)};return e=e.filter(o),t=t.filter(o),i}(r):function(r){var i=!1,o=function(e){return e.middleware!==r||(i=!0,e.name&&n.delete(e.name),!1)};return e=e.filter(o),t=t.filter(o),i}(r)},removeByTag:function(r){var i=!1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(r)||(o&&n.delete(o),i=!0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var t=r(mn());return t.use(e),t},applyToStack:r,resolve:function(e,t){var n,r;try{for(var i=Object(Te.__values)(o().reverse()),a=i.next();!a.done;a=i.next()){e=(0,a.value)(e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e}};return a},vn={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},gn={high:3,normal:2,low:1},yn=function(){function e(e){this.middlewareStack=mn(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,i="function"==typeof t?t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return o(e).then(function(e){return e.output});o(e).then(function(e){return i(null,e.output)},function(e){return i(e)}).catch(function(){})},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),bn=function(){return function(){this.middlewareStack=mn()}}();function wn(e){for(var t=[],n=1;n-1||"name"in e&&t.indexOf(e.name)>-1)}var _n=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,Object(Te.__spread)([null],arguments)));return Object.setPrototypeOf(t,e.prototype),t};_n.prototype=Object.create(String.prototype,{constructor:{value:_n,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(_n,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(Te.__extends)(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:e instanceof String||"string"==typeof e?new t(e):new t(JSON.stringify(e))}}(_n);var Sn,xn,En,Tn,Mn,Cn,In,Ln,kn,zn,An,Pn,On,Dn,Nn,Rn,jn,Fn,Bn,Hn,Vn,$n,Un,qn,Yn,Kn,Gn,Jn,Wn,Qn,Xn,Zn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,dr,pr,fr,hr,mr,vr,gr,yr,br,wr,_r,Sr,xr,Er,Tr,Mr,Cr,Ir,Lr,kr,zr,Ar,Pr,Or,Dr,Nr,Rr,jr,Fr,Br,Hr,Vr,$r,Ur,qr,Yr,Kr,Gr,Jr,Wr,Qr,Xr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,di,pi,fi,hi,mi,vi,gi,yi,bi,wi,_i,Si,xi,Ei=function(e){function t(t){var n=this,r=Ie(Ie({},St),t),i=Mt(r),o=function(e){var t,n=this,r=un(e.credentials||e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||i,a=e.systemClockOffset,s=void 0===a?e.systemClockOffset||0:a,u=e.sha256;return t=e.signer?un(e.signer):function(){return un(e.region)().then(function(t){return Object(Te.__awaiter)(n,void 0,void 0,function(){return Object(Te.__generator)(this,function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}})})}).then(function(t){var n=Object(Te.__read)(t,2),i=n[0],a=n[1],s=i.signingRegion,c=void 0===s?e.signingRegion:s,l=i.signingService,d=void 0===l?e.signingName:l;return e.signingRegion=e.signingRegion||c||a,e.signingName=e.signingName||d,new nn({credentials:r,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:o})})},Object(Te.__assign)(Object(Te.__assign)({},e),{systemClockOffset:s,signingEscapePath:o,credentials:r,signer:t})}(xt(i)),a=ct(o),s=function(e){return e}(a),u=Pt(s);return(n=e.call(this,u)||this).config=u,n.middlewareStack.use(Qe(n.config)),n.middlewareStack.use(hn(n.config)),n.middlewareStack.use(kt(n.config)),n.middlewareStack.use(At(n.config)),n.middlewareStack.use(Dt(n.config)),n}return Ce(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(yn);!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(Sn||(Sn={})),(En=xn||(xn={})).filterSensitiveLog=function(e){return Ie({},e)},En.isa=function(e){return wn(e,"CognitoIdentityProvider")},(Mn=Tn||(Tn={})).filterSensitiveLog=function(e){return Ie({},e)},Mn.isa=function(e){return wn(e,"ConcurrentModificationException")},(In=Cn||(Cn={})).filterSensitiveLog=function(e){return Ie({},e)},In.isa=function(e){return wn(e,"CreateIdentityPoolInput")},(kn=Ln||(Ln={})).filterSensitiveLog=function(e){return Ie({},e)},kn.isa=function(e){return wn(e,"Credentials")},(An=zn||(zn={})).filterSensitiveLog=function(e){return Ie({},e)},An.isa=function(e){return wn(e,"DeleteIdentitiesInput")},(On=Pn||(Pn={})).filterSensitiveLog=function(e){return Ie({},e)},On.isa=function(e){return wn(e,"DeleteIdentitiesResponse")},(Nn=Dn||(Dn={})).filterSensitiveLog=function(e){return Ie({},e)},Nn.isa=function(e){return wn(e,"DeleteIdentityPoolInput")},(jn=Rn||(Rn={})).filterSensitiveLog=function(e){return Ie({},e)},jn.isa=function(e){return wn(e,"DescribeIdentityInput")},(Bn=Fn||(Fn={})).filterSensitiveLog=function(e){return Ie({},e)},Bn.isa=function(e){return wn(e,"DescribeIdentityPoolInput")},(Vn=Hn||(Hn={})).filterSensitiveLog=function(e){return Ie({},e)},Vn.isa=function(e){return wn(e,"DeveloperUserAlreadyRegisteredException")},function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}($n||($n={})),(qn=Un||(Un={})).filterSensitiveLog=function(e){return Ie({},e)},qn.isa=function(e){return wn(e,"ExternalServiceException")},(Kn=Yn||(Yn={})).filterSensitiveLog=function(e){return Ie({},e)},Kn.isa=function(e){return wn(e,"GetCredentialsForIdentityInput")},(Jn=Gn||(Gn={})).filterSensitiveLog=function(e){return Ie({},e)},Jn.isa=function(e){return wn(e,"GetCredentialsForIdentityResponse")},(Qn=Wn||(Wn={})).filterSensitiveLog=function(e){return Ie({},e)},Qn.isa=function(e){return wn(e,"GetIdentityPoolRolesInput")},(Zn=Xn||(Xn={})).filterSensitiveLog=function(e){return Ie({},e)},Zn.isa=function(e){return wn(e,"GetIdentityPoolRolesResponse")},(tr=er||(er={})).filterSensitiveLog=function(e){return Ie({},e)},tr.isa=function(e){return wn(e,"GetIdInput")},(rr=nr||(nr={})).filterSensitiveLog=function(e){return Ie({},e)},rr.isa=function(e){return wn(e,"GetIdResponse")},(or=ir||(ir={})).filterSensitiveLog=function(e){return Ie({},e)},or.isa=function(e){return wn(e,"GetOpenIdTokenForDeveloperIdentityInput")},(sr=ar||(ar={})).filterSensitiveLog=function(e){return Ie({},e)},sr.isa=function(e){return wn(e,"GetOpenIdTokenForDeveloperIdentityResponse")},(cr=ur||(ur={})).filterSensitiveLog=function(e){return Ie({},e)},cr.isa=function(e){return wn(e,"GetOpenIdTokenInput")},(dr=lr||(lr={})).filterSensitiveLog=function(e){return Ie({},e)},dr.isa=function(e){return wn(e,"GetOpenIdTokenResponse")},(fr=pr||(pr={})).filterSensitiveLog=function(e){return Ie({},e)},fr.isa=function(e){return wn(e,"IdentityDescription")},(mr=hr||(hr={})).filterSensitiveLog=function(e){return Ie({},e)},mr.isa=function(e){return wn(e,"IdentityPool")},(gr=vr||(vr={})).filterSensitiveLog=function(e){return Ie({},e)},gr.isa=function(e){return wn(e,"IdentityPoolShortDescription")},(br=yr||(yr={})).filterSensitiveLog=function(e){return Ie({},e)},br.isa=function(e){return wn(e,"InternalErrorException")},(_r=wr||(wr={})).filterSensitiveLog=function(e){return Ie({},e)},_r.isa=function(e){return wn(e,"InvalidIdentityPoolConfigurationException")},(xr=Sr||(Sr={})).filterSensitiveLog=function(e){return Ie({},e)},xr.isa=function(e){return wn(e,"InvalidParameterException")},(Tr=Er||(Er={})).filterSensitiveLog=function(e){return Ie({},e)},Tr.isa=function(e){return wn(e,"LimitExceededException")},(Cr=Mr||(Mr={})).filterSensitiveLog=function(e){return Ie({},e)},Cr.isa=function(e){return wn(e,"ListIdentitiesInput")},(Lr=Ir||(Ir={})).filterSensitiveLog=function(e){return Ie({},e)},Lr.isa=function(e){return wn(e,"ListIdentitiesResponse")},(zr=kr||(kr={})).filterSensitiveLog=function(e){return Ie({},e)},zr.isa=function(e){return wn(e,"ListIdentityPoolsInput")},(Pr=Ar||(Ar={})).filterSensitiveLog=function(e){return Ie({},e)},Pr.isa=function(e){return wn(e,"ListIdentityPoolsResponse")},(Dr=Or||(Or={})).filterSensitiveLog=function(e){return Ie({},e)},Dr.isa=function(e){return wn(e,"ListTagsForResourceInput")},(Rr=Nr||(Nr={})).filterSensitiveLog=function(e){return Ie({},e)},Rr.isa=function(e){return wn(e,"ListTagsForResourceResponse")},(Fr=jr||(jr={})).filterSensitiveLog=function(e){return Ie({},e)},Fr.isa=function(e){return wn(e,"LookupDeveloperIdentityInput")},(Hr=Br||(Br={})).filterSensitiveLog=function(e){return Ie({},e)},Hr.isa=function(e){return wn(e,"LookupDeveloperIdentityResponse")},($r=Vr||(Vr={})).filterSensitiveLog=function(e){return Ie({},e)},$r.isa=function(e){return wn(e,"MappingRule")},function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(Ur||(Ur={})),(Yr=qr||(qr={})).filterSensitiveLog=function(e){return Ie({},e)},Yr.isa=function(e){return wn(e,"MergeDeveloperIdentitiesInput")},(Gr=Kr||(Kr={})).filterSensitiveLog=function(e){return Ie({},e)},Gr.isa=function(e){return wn(e,"MergeDeveloperIdentitiesResponse")},(Wr=Jr||(Jr={})).filterSensitiveLog=function(e){return Ie({},e)},Wr.isa=function(e){return wn(e,"NotAuthorizedException")},(Xr=Qr||(Qr={})).filterSensitiveLog=function(e){return Ie({},e)},Xr.isa=function(e){return wn(e,"ResourceConflictException")},(ei=Zr||(Zr={})).filterSensitiveLog=function(e){return Ie({},e)},ei.isa=function(e){return wn(e,"ResourceNotFoundException")},(ni=ti||(ti={})).filterSensitiveLog=function(e){return Ie({},e)},ni.isa=function(e){return wn(e,"RoleMapping")},function(e){e.RULES="Rules",e.TOKEN="Token"}(ri||(ri={})),(oi=ii||(ii={})).filterSensitiveLog=function(e){return Ie({},e)},oi.isa=function(e){return wn(e,"RulesConfigurationType")},(si=ai||(ai={})).filterSensitiveLog=function(e){return Ie({},e)},si.isa=function(e){return wn(e,"SetIdentityPoolRolesInput")},(ci=ui||(ui={})).filterSensitiveLog=function(e){return Ie({},e)},ci.isa=function(e){return wn(e,"TagResourceInput")},(di=li||(li={})).filterSensitiveLog=function(e){return Ie({},e)},di.isa=function(e){return wn(e,"TagResourceResponse")},(fi=pi||(pi={})).filterSensitiveLog=function(e){return Ie({},e)},fi.isa=function(e){return wn(e,"TooManyRequestsException")},(mi=hi||(hi={})).filterSensitiveLog=function(e){return Ie({},e)},mi.isa=function(e){return wn(e,"UnlinkDeveloperIdentityInput")},(gi=vi||(vi={})).filterSensitiveLog=function(e){return Ie({},e)},gi.isa=function(e){return wn(e,"UnlinkIdentityInput")},(bi=yi||(yi={})).filterSensitiveLog=function(e){return Ie({},e)},bi.isa=function(e){return wn(e,"UnprocessedIdentityId")},(_i=wi||(wi={})).filterSensitiveLog=function(e){return Ie({},e)},_i.isa=function(e){return wn(e,"UntagResourceInput")},(xi=Si||(Si={})).filterSensitiveLog=function(e){return Ie({},e)},xi.isa=function(e){return wn(e,"UntagResourceResponse")};var Ti=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m;return ke(this,function(v){switch(v.label){case 0:return r=[Ie({},e)],m={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(m.body=v.sent(),m)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 6:return c=[{}],[4,Xi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 8:return l=[{}],[4,Zi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 10:return d=[{}],[4,eo(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 12:return p=[{}],[4,no(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 14:f=n.body,o=f.code||f.Code||o,i=Ie(Ie({},f),{name:""+o,message:f.message||f.Message||o,$fault:"client",$metadata:va(e)}),v.label=15;case 15:return h=i.message||i.Message||o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new Error(h),i))]}})})},Mi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p;return ke(this,function(f){switch(f.label){case 0:return r=[Ie({},e)],p={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(p.body=f.sent(),p)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,6]}return[3,8];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([f.sent()])),{name:o,$metadata:va(e)}]),[3,9];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([f.sent()])),{name:o,$metadata:va(e)}]),[3,9];case 6:return c=[{}],[4,no(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([f.sent()])),{name:o,$metadata:va(e)}]),[3,9];case 8:l=n.body,o=l.code||l.Code||o,i=Ie(Ie({},l),{name:""+o,message:l.message||l.Message||o,$fault:"client",$metadata:va(e)}),f.label=9;case 9:return d=i.message||i.Message||o,i.message=d,delete i.Message,[2,Promise.reject(Object.assign(new Error(d),i))]}})})},Ci=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},Ii=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},Li=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},ki=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g;return ke(this,function(y){switch(y.label){case 0:return r=[Ie({},e)],g={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(g.body=y.sent(),g)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,Gi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 6:return c=[{}],[4,Wi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 8:return l=[{}],[4,Qi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 10:return d=[{}],[4,Zi(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 12:return p=[{}],[4,eo(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 14:return f=[{}],[4,to(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 16:return h=[{}],[4,no(n,t)];case 17:return i=Ie.apply(void 0,[Ie.apply(void 0,h.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 18:m=n.body,o=m.code||m.Code||o,i=Ie(Ie({},m),{name:""+o,message:m.message||m.Message||o,$fault:"client",$metadata:va(e)}),y.label=19;case 19:return v=i.message||i.Message||o,i.message=v,delete i.Message,[2,Promise.reject(Object.assign(new Error(v),i))]}})})},zi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g;return ke(this,function(y){switch(y.label){case 0:return r=[Ie({},e)],g={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(g.body=y.sent(),g)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,Gi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 8:return l=[{}],[4,Xi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 10:return d=[{}],[4,Zi(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 12:return p=[{}],[4,eo(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 14:return f=[{}],[4,to(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 16:return h=[{}],[4,no(n,t)];case 17:return i=Ie.apply(void 0,[Ie.apply(void 0,h.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 18:m=n.body,o=m.code||m.Code||o,i=Ie(Ie({},m),{name:""+o,message:m.message||m.Message||o,$fault:"client",$metadata:va(e)}),y.label=19;case 19:return v=i.message||i.Message||o,i.message=v,delete i.Message,[2,Promise.reject(Object.assign(new Error(v),i))]}})})},Ai=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m;return ke(this,function(v){switch(v.label){case 0:return r=[Ie({},e)],m={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(m.body=v.sent(),m)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 8:return l=[{}],[4,eo(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 10:return d=[{}],[4,to(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 12:return p=[{}],[4,no(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 14:f=n.body,o=f.code||f.Code||o,i=Ie(Ie({},f),{name:""+o,message:f.message||f.Message||o,$fault:"client",$metadata:va(e)}),v.label=15;case 15:return h=i.message||i.Message||o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new Error(h),i))]}})})},Pi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v;return ke(this,function(g){switch(g.label){case 0:return r=[Ie({},e)],v={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(v.body=g.sent(),v)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return s=[{}],[4,Gi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 8:return l=[{}],[4,Zi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 10:return d=[{}],[4,eo(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 12:return p=[{}],[4,to(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 14:return f=[{}],[4,no(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 16:h=n.body,o=h.code||h.Code||o,i=Ie(Ie({},h),{name:""+o,message:h.message||h.Message||o,$fault:"client",$metadata:va(e)}),g.label=17;case 17:return m=i.message||i.Message||o,i.message=m,delete i.Message,[2,Promise.reject(Object.assign(new Error(m),i))]}})})},Oi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v;return ke(this,function(g){switch(g.label){case 0:return r=[Ie({},e)],v={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(v.body=g.sent(),v)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"DeveloperUserAlreadyRegisteredException":case"com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return s=[{}],[4,Ki(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 8:return l=[{}],[4,Zi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 10:return d=[{}],[4,eo(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 12:return p=[{}],[4,to(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 14:return f=[{}],[4,no(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 16:h=n.body,o=h.code||h.Code||o,i=Ie(Ie({},h),{name:""+o,message:h.message||h.Message||o,$fault:"client",$metadata:va(e)}),g.label=17;case 17:return m=i.message||i.Message||o,i.message=m,delete i.Message,[2,Promise.reject(Object.assign(new Error(m),i))]}})})},Di=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},Ni=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},Ri=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},ji=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m;return ke(this,function(v){switch(v.label){case 0:return r=[Ie({},e)],m={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(m.body=v.sent(),m)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 8:return l=[{}],[4,eo(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 10:return d=[{}],[4,to(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 12:return p=[{}],[4,no(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 14:f=n.body,o=f.code||f.Code||o,i=Ie(Ie({},f),{name:""+o,message:f.message||f.Message||o,$fault:"client",$metadata:va(e)}),v.label=15;case 15:return h=i.message||i.Message||o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new Error(h),i))]}})})},Fi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m;return ke(this,function(v){switch(v.label){case 0:return r=[Ie({},e)],m={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(m.body=v.sent(),m)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 8:return l=[{}],[4,eo(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 10:return d=[{}],[4,to(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 12:return p=[{}],[4,no(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 14:f=n.body,o=f.code||f.Code||o,i=Ie(Ie({},f),{name:""+o,message:f.message||f.Message||o,$fault:"client",$metadata:va(e)}),v.label=15;case 15:return h=i.message||i.Message||o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new Error(h),i))]}})})},Bi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v;return ke(this,function(g){switch(g.label){case 0:return r=[Ie({},e)],v={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(v.body=g.sent(),v)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return s=[{}],[4,Yi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 8:return l=[{}],[4,Zi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 10:return d=[{}],[4,eo(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 12:return p=[{}],[4,to(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 14:return f=[{}],[4,no(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 16:h=n.body,o=h.code||h.Code||o,i=Ie(Ie({},h),{name:""+o,message:h.message||h.Message||o,$fault:"client",$metadata:va(e)}),g.label=17;case 17:return m=i.message||i.Message||o,i.message=m,delete i.Message,[2,Promise.reject(Object.assign(new Error(m),i))]}})})},Hi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},Vi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m;return ke(this,function(v){switch(v.label){case 0:return r=[Ie({},e)],m={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(m.body=v.sent(),m)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 8:return l=[{}],[4,eo(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 10:return d=[{}],[4,to(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 12:return p=[{}],[4,no(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([v.sent()])),{name:o,$metadata:va(e)}]),[3,15];case 14:f=n.body,o=f.code||f.Code||o,i=Ie(Ie({},f),{name:""+o,message:f.message||f.Message||o,$fault:"client",$metadata:va(e)}),v.label=15;case 15:return h=i.message||i.Message||o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new Error(h),i))]}})})},$i=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v;return ke(this,function(g){switch(g.label){case 0:return r=[Ie({},e)],v={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(v.body=g.sent(),v)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return s=[{}],[4,Gi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 8:return l=[{}],[4,Zi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 10:return d=[{}],[4,eo(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 12:return p=[{}],[4,to(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 14:return f=[{}],[4,no(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([g.sent()])),{name:o,$metadata:va(e)}]),[3,17];case 16:h=n.body,o=h.code||h.Code||o,i=Ie(Ie({},h),{name:""+o,message:h.message||h.Message||o,$fault:"client",$metadata:va(e)}),g.label=17;case 17:return m=i.message||i.Message||o,i.message=m,delete i.Message,[2,Promise.reject(Object.assign(new Error(m),i))]}})})},Ui=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h;return ke(this,function(m){switch(m.label){case 0:return r=[Ie({},e)],h={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(h.body=m.sent(),h)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return s=[{}],[4,Ji(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 4:return u=[{}],[4,Qi(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 6:return c=[{}],[4,Zi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 8:return l=[{}],[4,to(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 10:return d=[{}],[4,no(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:va(e)}]),[3,13];case 12:p=n.body,o=p.code||p.Code||o,i=Ie(Ie({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:va(e)}),m.label=13;case 13:return f=i.message||i.Message||o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new Error(f),i))]}})})},qi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g;return ke(this,function(y){switch(y.label){case 0:return r=[Ie({},e)],g={},[4,ba(e.body,t)];case 1:switch(n=Ie.apply(void 0,r.concat([(g.body=y.sent(),g)])),o="UnknownError",a=n.body.__type.split("#"),o=void 0===a[1]?a[0]:a[1],o){case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,Yi(n,t)];case 3:return i=Ie.apply(void 0,[Ie.apply(void 0,s.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 4:return u=[{}],[4,Ji(n,t)];case 5:return i=Ie.apply(void 0,[Ie.apply(void 0,u.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 6:return c=[{}],[4,Qi(n,t)];case 7:return i=Ie.apply(void 0,[Ie.apply(void 0,c.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 8:return l=[{}],[4,Xi(n,t)];case 9:return i=Ie.apply(void 0,[Ie.apply(void 0,l.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 10:return d=[{}],[4,Zi(n,t)];case 11:return i=Ie.apply(void 0,[Ie.apply(void 0,d.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 12:return p=[{}],[4,eo(n,t)];case 13:return i=Ie.apply(void 0,[Ie.apply(void 0,p.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 14:return f=[{}],[4,to(n,t)];case 15:return i=Ie.apply(void 0,[Ie.apply(void 0,f.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 16:return h=[{}],[4,no(n,t)];case 17:return i=Ie.apply(void 0,[Ie.apply(void 0,h.concat([y.sent()])),{name:o,$metadata:va(e)}]),[3,19];case 18:m=n.body,o=m.code||m.Code||o,i=Ie(Ie({},m),{name:""+o,message:m.message||m.Message||o,$fault:"client",$metadata:va(e)}),y.label=19;case 19:return v=i.message||i.Message||o,i.message=v,delete i.Message,[2,Promise.reject(Object.assign(new Error(v),i))]}})})},Yi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Do(n,t),[2,Ie({name:"ConcurrentModificationException",$fault:"client",$metadata:va(e)},r)]})})},Ki=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Ro(n,t),[2,Ie({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",$metadata:va(e)},r)]})})},Gi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=jo(n,t),[2,Ie({name:"ExternalServiceException",$fault:"client",$metadata:va(e)},r)]})})},Ji=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Go(n,t),[2,Ie({name:"InternalErrorException",$fault:"server",$metadata:va(e)},r)]})})},Wi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Jo(n,t),[2,Ie({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:va(e)},r)]})})},Qi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Wo(n,t),[2,Ie({name:"InvalidParameterException",$fault:"client",$metadata:va(e)},r)]})})},Xi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=Qo(n,t),[2,Ie({name:"LimitExceededException",$fault:"client",$metadata:va(e)},r)]})})},Zi=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=ia(n,t),[2,Ie({name:"NotAuthorizedException",$fault:"client",$metadata:va(e)},r)]})})},eo=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=aa(n,t),[2,Ie({name:"ResourceConflictException",$fault:"client",$metadata:va(e)},r)]})})},to=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=sa(n,t),[2,Ie({name:"ResourceNotFoundException",$fault:"client",$metadata:va(e)},r)]})})},no=function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n=e.body,r=fa(n,t),[2,Ie({name:"TooManyRequestsException",$fault:"client",$metadata:va(e)},r)]})})},ro=function(e,t){return e.map(function(e){return Ie(Ie(Ie({},void 0!==(t=e).ClientId&&{ClientId:t.ClientId}),void 0!==t.ProviderName&&{ProviderName:t.ProviderName}),void 0!==t.ServerSideTokenCheck&&{ServerSideTokenCheck:t.ServerSideTokenCheck});var t})},io=function(e,t){return Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie({},void 0!==e.AllowClassicFlow&&{AllowClassicFlow:e.AllowClassicFlow}),void 0!==e.AllowUnauthenticatedIdentities&&{AllowUnauthenticatedIdentities:e.AllowUnauthenticatedIdentities}),void 0!==e.CognitoIdentityProviders&&{CognitoIdentityProviders:ro(e.CognitoIdentityProviders)}),void 0!==e.DeveloperProviderName&&{DeveloperProviderName:e.DeveloperProviderName}),void 0!==e.IdentityPoolName&&{IdentityPoolName:e.IdentityPoolName}),void 0!==e.IdentityPoolTags&&{IdentityPoolTags:go(e.IdentityPoolTags,t)}),void 0!==e.OpenIdConnectProviderARNs&&{OpenIdConnectProviderARNs:Mo(e.OpenIdConnectProviderARNs,t)}),void 0!==e.SamlProviderARNs&&{SamlProviderARNs:Lo(e.SamlProviderARNs,t)}),void 0!==e.SupportedLoginProviders&&{SupportedLoginProviders:yo(e.SupportedLoginProviders,t)})},oo=function(e,t){return Ie({},void 0!==e.IdentityIdsToDelete&&{IdentityIdsToDelete:mo(e.IdentityIdsToDelete,t)})},ao=function(e,t){return Ie({},void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId})},so=function(e,t){return Ie({},void 0!==e.IdentityId&&{IdentityId:e.IdentityId})},uo=function(e,t){return Ie({},void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId})},co=function(e,t){return Ie(Ie(Ie({},void 0!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&{Logins:So(e.Logins,t)})},lo=function(e,t){return Ie({},void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId})},po=function(e,t){return Ie(Ie(Ie({},void 0!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&{Logins:So(e.Logins,t)})},fo=function(e,t){return Ie(Ie(Ie(Ie({},void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&{Logins:So(e.Logins,t)}),void 0!==e.TokenDuration&&{TokenDuration:e.TokenDuration})},ho=function(e,t){return Ie(Ie({},void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&{Logins:So(e.Logins,t)})},mo=function(e,t){return e.map(function(e){return e})},vo=function(e,t){return Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie({},void 0!==e.AllowClassicFlow&&{AllowClassicFlow:e.AllowClassicFlow}),void 0!==e.AllowUnauthenticatedIdentities&&{AllowUnauthenticatedIdentities:e.AllowUnauthenticatedIdentities}),void 0!==e.CognitoIdentityProviders&&{CognitoIdentityProviders:ro(e.CognitoIdentityProviders)}),void 0!==e.DeveloperProviderName&&{DeveloperProviderName:e.DeveloperProviderName}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.IdentityPoolName&&{IdentityPoolName:e.IdentityPoolName}),void 0!==e.IdentityPoolTags&&{IdentityPoolTags:go(e.IdentityPoolTags,t)}),void 0!==e.OpenIdConnectProviderARNs&&{OpenIdConnectProviderARNs:Mo(e.OpenIdConnectProviderARNs,t)}),void 0!==e.SamlProviderARNs&&{SamlProviderARNs:Lo(e.SamlProviderARNs,t)}),void 0!==e.SupportedLoginProviders&&{SupportedLoginProviders:yo(e.SupportedLoginProviders,t)})},go=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},yo=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},bo=function(e,t){return Ie(Ie(Ie(Ie({},void 0!==e.HideDisabled&&{HideDisabled:e.HideDisabled}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.MaxResults&&{MaxResults:e.MaxResults}),void 0!==e.NextToken&&{NextToken:e.NextToken})},wo=function(e,t){return Ie(Ie({},void 0!==e.MaxResults&&{MaxResults:e.MaxResults}),void 0!==e.NextToken&&{NextToken:e.NextToken})},_o=function(e,t){return Ie({},void 0!==e.ResourceArn&&{ResourceArn:e.ResourceArn})},So=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},xo=function(e,t){return Ie(Ie(Ie(Ie(Ie({},void 0!==e.DeveloperUserIdentifier&&{DeveloperUserIdentifier:e.DeveloperUserIdentifier}),void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.MaxResults&&{MaxResults:e.MaxResults}),void 0!==e.NextToken&&{NextToken:e.NextToken})},Eo=function(e,t){return e.map(function(e){return Ie(Ie(Ie(Ie({},void 0!==(t=e).Claim&&{Claim:t.Claim}),void 0!==t.MatchType&&{MatchType:t.MatchType}),void 0!==t.RoleARN&&{RoleARN:t.RoleARN}),void 0!==t.Value&&{Value:t.Value});var t})},To=function(e,t){return Ie(Ie(Ie(Ie({},void 0!==e.DestinationUserIdentifier&&{DestinationUserIdentifier:e.DestinationUserIdentifier}),void 0!==e.DeveloperProviderName&&{DeveloperProviderName:e.DeveloperProviderName}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.SourceUserIdentifier&&{SourceUserIdentifier:e.SourceUserIdentifier})},Mo=function(e,t){return e.map(function(e){return e})},Co=function(e,t){return Object.entries(e).reduce(function(e,n){var r,i=ze(n,2),o=i[0],a=i[1];return Ie(Ie({},e),((r={})[o]=function(e,t){return Ie(Ie(Ie({},void 0!==e.AmbiguousRoleResolution&&{AmbiguousRoleResolution:e.AmbiguousRoleResolution}),void 0!==e.RulesConfiguration&&{RulesConfiguration:Io(e.RulesConfiguration,t)}),void 0!==e.Type&&{Type:e.Type})}(a,t),r))},{})},Io=function(e,t){return Ie({},void 0!==e.Rules&&{Rules:Eo(e.Rules)})},Lo=function(e,t){return e.map(function(e){return e})},ko=function(e,t){return Ie(Ie(Ie({},void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.RoleMappings&&{RoleMappings:Co(e.RoleMappings,t)}),void 0!==e.Roles&&{Roles:function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})}(e.Roles)})},zo=function(e,t){return Ie(Ie({},void 0!==e.ResourceArn&&{ResourceArn:e.ResourceArn}),void 0!==e.Tags&&{Tags:go(e.Tags,t)})},Ao=function(e,t){return Ie(Ie(Ie(Ie({},void 0!==e.DeveloperProviderName&&{DeveloperProviderName:e.DeveloperProviderName}),void 0!==e.DeveloperUserIdentifier&&{DeveloperUserIdentifier:e.DeveloperUserIdentifier}),void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId})},Po=function(e,t){return Ie(Ie(Ie({},void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&{Logins:So(e.Logins,t)}),void 0!==e.LoginsToRemove&&{LoginsToRemove:function(e,t){return e.map(function(e){return e})}(e.LoginsToRemove)})},Oo=function(e,t){return Ie(Ie({},void 0!==e.ResourceArn&&{ResourceArn:e.ResourceArn}),void 0!==e.TagKeys&&{TagKeys:function(e,t){return e.map(function(e){return e})}(e.TagKeys)})},Do=function(e,t){return{__type:"ConcurrentModificationException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},No=function(e,t){return{__type:"DeleteIdentitiesResponse",UnprocessedIdentityIds:void 0!==e.UnprocessedIdentityIds&&null!==e.UnprocessedIdentityIds?ha(e.UnprocessedIdentityIds,t):void 0}},Ro=function(e,t){return{__type:"DeveloperUserAlreadyRegisteredException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},jo=function(e,t){return{__type:"ExternalServiceException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},Fo=function(e,t){return{__type:"GetCredentialsForIdentityResponse",Credentials:void 0!==e.Credentials&&null!==e.Credentials?function(e,t){return{__type:"Credentials",AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}}(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},Bo=function(e,t){return{__type:"GetIdentityPoolRolesResponse",IdentityPoolId:void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId?e.IdentityPoolId:void 0,RoleMappings:void 0!==e.RoleMappings&&null!==e.RoleMappings?ua(e.RoleMappings,t):void 0,Roles:void 0!==e.Roles&&null!==e.Roles?ca(e.Roles,t):void 0}},Ho=function(e,t){return{__type:"GetIdResponse",IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},Vo=function(e,t){return{__type:"GetOpenIdTokenForDeveloperIdentityResponse",IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0,Token:void 0!==e.Token&&null!==e.Token?e.Token:void 0}},$o=function(e,t){return{__type:"GetOpenIdTokenResponse",IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0,Token:void 0!==e.Token&&null!==e.Token?e.Token:void 0}},Uo=function(e,t){return{__type:"IdentityDescription",CreationDate:void 0!==e.CreationDate&&null!==e.CreationDate?new Date(Math.round(1e3*e.CreationDate)):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0,LastModifiedDate:void 0!==e.LastModifiedDate&&null!==e.LastModifiedDate?new Date(Math.round(1e3*e.LastModifiedDate)):void 0,Logins:void 0!==e.Logins&&null!==e.Logins?ta(e.Logins,t):void 0}},qo=function(e,t){return{__type:"IdentityPool",AllowClassicFlow:void 0!==e.AllowClassicFlow&&null!==e.AllowClassicFlow?e.AllowClassicFlow:void 0,AllowUnauthenticatedIdentities:void 0!==e.AllowUnauthenticatedIdentities&&null!==e.AllowUnauthenticatedIdentities?e.AllowUnauthenticatedIdentities:void 0,CognitoIdentityProviders:void 0!==e.CognitoIdentityProviders&&null!==e.CognitoIdentityProviders?function(e,t){return(e||[]).map(function(e){return{__type:"CognitoIdentityProvider",ClientId:void 0!==(t=e).ClientId&&null!==t.ClientId?t.ClientId:void 0,ProviderName:void 0!==t.ProviderName&&null!==t.ProviderName?t.ProviderName:void 0,ServerSideTokenCheck:void 0!==t.ServerSideTokenCheck&&null!==t.ServerSideTokenCheck?t.ServerSideTokenCheck:void 0};var t})}(e.CognitoIdentityProviders):void 0,DeveloperProviderName:void 0!==e.DeveloperProviderName&&null!==e.DeveloperProviderName?e.DeveloperProviderName:void 0,IdentityPoolId:void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId?e.IdentityPoolId:void 0,IdentityPoolName:void 0!==e.IdentityPoolName&&null!==e.IdentityPoolName?e.IdentityPoolName:void 0,IdentityPoolTags:void 0!==e.IdentityPoolTags&&null!==e.IdentityPoolTags?Yo(e.IdentityPoolTags,t):void 0,OpenIdConnectProviderARNs:void 0!==e.OpenIdConnectProviderARNs&&null!==e.OpenIdConnectProviderARNs?oa(e.OpenIdConnectProviderARNs,t):void 0,SamlProviderARNs:void 0!==e.SamlProviderARNs&&null!==e.SamlProviderARNs?da(e.SamlProviderARNs,t):void 0,SupportedLoginProviders:void 0!==e.SupportedLoginProviders&&null!==e.SupportedLoginProviders?Ko(e.SupportedLoginProviders,t):void 0}},Yo=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},Ko=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},Go=function(e,t){return{__type:"InternalErrorException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},Jo=function(e,t){return{__type:"InvalidIdentityPoolConfigurationException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},Wo=function(e,t){return{__type:"InvalidParameterException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},Qo=function(e,t){return{__type:"LimitExceededException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},Xo=function(e,t){return{__type:"ListIdentitiesResponse",Identities:void 0!==e.Identities&&null!==e.Identities?function(e,t){return(e||[]).map(function(e){return Uo(e,t)})}(e.Identities,t):void 0,IdentityPoolId:void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId?e.IdentityPoolId:void 0,NextToken:void 0!==e.NextToken&&null!==e.NextToken?e.NextToken:void 0}},Zo=function(e,t){return{__type:"ListIdentityPoolsResponse",IdentityPools:void 0!==e.IdentityPools&&null!==e.IdentityPools?function(e,t){return(e||[]).map(function(e){return{__type:"IdentityPoolShortDescription",IdentityPoolId:void 0!==(t=e).IdentityPoolId&&null!==t.IdentityPoolId?t.IdentityPoolId:void 0,IdentityPoolName:void 0!==t.IdentityPoolName&&null!==t.IdentityPoolName?t.IdentityPoolName:void 0};var t})}(e.IdentityPools):void 0,NextToken:void 0!==e.NextToken&&null!==e.NextToken?e.NextToken:void 0}},ea=function(e,t){return{__type:"ListTagsForResourceResponse",Tags:void 0!==e.Tags&&null!==e.Tags?Yo(e.Tags,t):void 0}},ta=function(e,t){return(e||[]).map(function(e){return e})},na=function(e,t){return{__type:"LookupDeveloperIdentityResponse",DeveloperUserIdentifierList:void 0!==e.DeveloperUserIdentifierList&&null!==e.DeveloperUserIdentifierList?function(e,t){return(e||[]).map(function(e){return e})}(e.DeveloperUserIdentifierList):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0,NextToken:void 0!==e.NextToken&&null!==e.NextToken?e.NextToken:void 0}},ra=function(e,t){return{__type:"MergeDeveloperIdentitiesResponse",IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},ia=function(e,t){return{__type:"NotAuthorizedException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},oa=function(e,t){return(e||[]).map(function(e){return e})},aa=function(e,t){return{__type:"ResourceConflictException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},sa=function(e,t){return{__type:"ResourceNotFoundException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},ua=function(e,t){return Object.entries(e).reduce(function(e,n){var r,i=ze(n,2),o=i[0],a=i[1];return Ie(Ie({},e),((r={})[o]=function(e,t){return{__type:"RoleMapping",AmbiguousRoleResolution:void 0!==e.AmbiguousRoleResolution&&null!==e.AmbiguousRoleResolution?e.AmbiguousRoleResolution:void 0,RulesConfiguration:void 0!==e.RulesConfiguration&&null!==e.RulesConfiguration?la(e.RulesConfiguration,t):void 0,Type:void 0!==e.Type&&null!==e.Type?e.Type:void 0}}(a,t),r))},{})},ca=function(e,t){return Object.entries(e).reduce(function(e,t){var n,r=ze(t,2),i=r[0],o=r[1];return Ie(Ie({},e),((n={})[i]=o,n))},{})},la=function(e,t){return{__type:"RulesConfigurationType",Rules:void 0!==e.Rules&&null!==e.Rules?function(e,t){return(e||[]).map(function(e){return{__type:"MappingRule",Claim:void 0!==(t=e).Claim&&null!==t.Claim?t.Claim:void 0,MatchType:void 0!==t.MatchType&&null!==t.MatchType?t.MatchType:void 0,RoleARN:void 0!==t.RoleARN&&null!==t.RoleARN?t.RoleARN:void 0,Value:void 0!==t.Value&&null!==t.Value?t.Value:void 0};var t})}(e.Rules):void 0}},da=function(e,t){return(e||[]).map(function(e){return e})},pa=function(e,t){return{__type:"TagResourceResponse"}},fa=function(e,t){return{__type:"TooManyRequestsException",message:void 0!==e.message&&null!==e.message?e.message:void 0}},ha=function(e,t){return(e||[]).map(function(e){return{__type:"UnprocessedIdentityId",ErrorCode:void 0!==(t=e).ErrorCode&&null!==t.ErrorCode?t.ErrorCode:void 0,IdentityId:void 0!==t.IdentityId&&null!==t.IdentityId?t.IdentityId:void 0};var t})},ma=function(e,t){return{__type:"UntagResourceResponse"}},va=function(e){return{httpStatusCode:e.statusCode,httpHeaders:e.headers,requestId:e.headers["x-amzn-requestid"]}},ga=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},ya=function(e,t,n,r,i){return Le(void 0,void 0,void 0,function(){var o,a,s,u,c,l;return ke(this,function(d){switch(d.label){case 0:return[4,e.endpoint()];case 1:return o=d.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,l={protocol:u,hostname:a,port:c,method:"POST",path:n,headers:t},void 0!==r&&(l.hostname=r),void 0!==i&&(l.body=i),[2,new De(l)]}})})},ba=function(e,t){return function(e,t){return ga(e,t).then(function(e){return t.utf8Encoder(e)})}(e,t).then(function(e){return e.length?JSON.parse(e):{}})};var wa={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},_a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function Sa(e,t,n){return{applyToStack:function(r){r.add(function(e,t){var n=this;return function(r){return function(i){return Object(Te.__awaiter)(n,void 0,void 0,function(){var n,o;return Object(Te.__generator)(this,function(a){switch(a.label){case 0:return[4,r(i)];case 1:return n=a.sent().response,[4,t(n,e)];case 2:return o=a.sent(),[2,{response:n,output:o}]}})})}}}(e,n),wa),r.add(function(e,t){var n=this;return function(r){return function(i){return Object(Te.__awaiter)(n,void 0,void 0,function(){var n;return Object(Te.__generator)(this,function(o){switch(o.label){case 0:return[4,t(i.input,e)];case 1:return n=o.sent(),[2,r(Object(Te.__assign)(Object(Te.__assign)({},i),{request:n}))]}})})}}}(e,t),_a)}}}var xa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Cn.filterSensitiveLog,outputFilterSensitiveLog:hr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.CreateIdentityPool"},r=JSON.stringify(io(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ti(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=qo(n,t),i=Ie({$metadata:va(e),__type:"IdentityPool"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ea=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:zn.filterSensitiveLog,outputFilterSensitiveLog:Pn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DeleteIdentities"},r=JSON.stringify(oo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Mi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=No(n,t),i=Ie({$metadata:va(e),__type:"DeleteIdentitiesResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ta=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Dn.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DeleteIdentityPool"},r=JSON.stringify(ao(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n;return ke(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,Ci(e,t)]:[4,ga(e.body,t)];case 1:return r.sent(),n={$metadata:va(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(bn),Ma=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Rn.filterSensitiveLog,outputFilterSensitiveLog:pr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DescribeIdentity"},r=JSON.stringify(so(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ii(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Uo(n,t),i=Ie({$metadata:va(e),__type:"IdentityDescription"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ca=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Fn.filterSensitiveLog,outputFilterSensitiveLog:hr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DescribeIdentityPool"},r=JSON.stringify(uo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Li(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=qo(n,t),i=Ie({$metadata:va(e),__type:"IdentityPool"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ia=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Yn.filterSensitiveLog,outputFilterSensitiveLog:Gn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(co(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,ki(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Fo(n,t),i=Ie({$metadata:va(e),__type:"GetCredentialsForIdentityResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),La=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:er.filterSensitiveLog,outputFilterSensitiveLog:nr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(po(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,zi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Ho(n,t),i=Ie({$metadata:va(e),__type:"GetIdResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),ka=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Wn.filterSensitiveLog,outputFilterSensitiveLog:Xn.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetIdentityPoolRoles"},r=JSON.stringify(lo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ai(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Bo(n,t),i=Ie({$metadata:va(e),__type:"GetIdentityPoolRolesResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),za=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ur.filterSensitiveLog,outputFilterSensitiveLog:lr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetOpenIdToken"},r=JSON.stringify(ho(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Pi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=$o(n,t),i=Ie({$metadata:va(e),__type:"GetOpenIdTokenResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Aa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ir.filterSensitiveLog,outputFilterSensitiveLog:ar.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity"},r=JSON.stringify(fo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Oi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Vo(n,t),i=Ie({$metadata:va(e),__type:"GetOpenIdTokenForDeveloperIdentityResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Pa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Mr.filterSensitiveLog,outputFilterSensitiveLog:Ir.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListIdentities"},r=JSON.stringify(bo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Di(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Xo(n,t),i=Ie({$metadata:va(e),__type:"ListIdentitiesResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Oa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:kr.filterSensitiveLog,outputFilterSensitiveLog:Ar.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListIdentityPools"},r=JSON.stringify(wo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ni(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=Zo(n,t),i=Ie({$metadata:va(e),__type:"ListIdentityPoolsResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Da=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Or.filterSensitiveLog,outputFilterSensitiveLog:Nr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListTagsForResource"},r=JSON.stringify(_o(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ri(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=ea(n,t),i=Ie({$metadata:va(e),__type:"ListTagsForResourceResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Na=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:jr.filterSensitiveLog,outputFilterSensitiveLog:Br.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.LookupDeveloperIdentity"},r=JSON.stringify(xo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,ji(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=na(n,t),i=Ie({$metadata:va(e),__type:"LookupDeveloperIdentityResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ra=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:qr.filterSensitiveLog,outputFilterSensitiveLog:Kr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.MergeDeveloperIdentities"},r=JSON.stringify(To(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Fi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=ra(n,t),i=Ie({$metadata:va(e),__type:"MergeDeveloperIdentitiesResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),ja=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ai.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.SetIdentityPoolRoles"},r=JSON.stringify(ko(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n;return ke(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,Bi(e,t)]:[4,ga(e.body,t)];case 1:return r.sent(),n={$metadata:va(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(bn),Fa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ui.filterSensitiveLog,outputFilterSensitiveLog:li.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.TagResource"},r=JSON.stringify(zo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Hi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=pa(n,t),i=Ie({$metadata:va(e),__type:"TagResourceResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ba=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:hi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UnlinkDeveloperIdentity"},r=JSON.stringify(Ao(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n;return ke(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,Vi(e,t)]:[4,ga(e.body,t)];case 1:return r.sent(),n={$metadata:va(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(bn),Ha=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vi.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UnlinkIdentity"},r=JSON.stringify(Po(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n;return ke(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,$i(e,t)]:[4,ga(e.body,t)];case 1:return r.sent(),n={$metadata:va(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(bn),Va=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:wi.filterSensitiveLog,outputFilterSensitiveLog:Si.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UntagResource"},r=JSON.stringify(Oo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,Ui(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=ma(n,t),i=Ie({$metadata:va(e),__type:"UntagResourceResponse"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),$a=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Ce(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Sa(t,this.serialize,this.deserialize)),this.middlewareStack.use(pn(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:hr.filterSensitiveLog,outputFilterSensitiveLog:hr.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r;return ke(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UpdateIdentityPool"},r=JSON.stringify(vo(e,t)),[2,ya(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Le(void 0,void 0,void 0,function(){var n,r,i;return ke(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,qi(e,t)]:[4,ba(e.body,t)];case 1:return n=o.sent(),r={},r=qo(n,t),i=Ie({$metadata:va(e),__type:"IdentityPool"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(bn),Ua=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Ce(t,e),t.prototype.createIdentityPool=function(e,t,n){var r=new xa(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentities=function(e,t,n){var r=new Ea(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentityPool=function(e,t,n){var r=new Ta(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentity=function(e,t,n){var r=new Ma(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentityPool=function(e,t,n){var r=new Ca(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCredentialsForIdentity=function(e,t,n){var r=new Ia(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getId=function(e,t,n){var r=new La(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getIdentityPoolRoles=function(e,t,n){var r=new ka(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdToken=function(e,t,n){var r=new za(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdTokenForDeveloperIdentity=function(e,t,n){var r=new Aa(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentities=function(e,t,n){var r=new Pa(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentityPools=function(e,t,n){var r=new Oa(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForResource=function(e,t,n){var r=new Da(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.lookupDeveloperIdentity=function(e,t,n){var r=new Na(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.mergeDeveloperIdentities=function(e,t,n){var r=new Ra(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.setIdentityPoolRoles=function(e,t,n){var r=new ja(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagResource=function(e,t,n){var r=new Fa(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkDeveloperIdentity=function(e,t,n){var r=new Ba(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkIdentity=function(e,t,n){var r=new Ha(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagResource=function(e,t,n){var r=new Va(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateIdentityPool=function(e,t,n){var r=new $a(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(Ei),function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return Object(Te.__extends)(t,e),t}(Error));function qa(e){return Promise.all(Object.keys(e).reduce(function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then(function(e){return[n,e]})),t},[])).then(function(e){return e.reduce(function(e,t){var n=Object(Te.__read)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})})}function Ya(e){var t=this;return function(){return Object(Te.__awaiter)(t,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,l,d,p,f;return Object(Te.__generator)(this,function(h){switch(h.label){case 0:return l=(c=e.client).send,d=Ia.bind,f={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,qa(e.logins)]:[3,2];case 1:return p=h.sent(),[3,3];case 2:p=void 0,h.label=3;case 3:return[4,l.apply(c,[new(d.apply(Ia,[void 0,(f.Logins=p,f)]))])];case 4:return t=h.sent().Credentials,n=void 0===t?function(){throw new Ua("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,i=void 0===r?function(){throw new Ua("Response from Amazon Cognito contained no access key ID")}():r,o=n.Expiration,a=n.SecretKey,s=void 0===a?function(){throw new Ua("Response from Amazon Cognito contained no secret key")}():a,u=n.SessionToken,[2,{accessKeyId:i,secretAccessKey:s,sessionToken:u,expiration:o}]}})})}}var Ka=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",function(t){var n=t.get(e);return new Promise(function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}})}).catch(function(){return null})},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",function(t){var n=t.delete(e);return new Promise(function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}})})},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",function(n){var r=n.put({id:e,value:t});return new Promise(function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}})})},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}})},e.prototype.withObjectStore=function(e,t){return this.getDb().then(function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise(function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))}).catch(function(e){throw n.close(),e})})},e}(),Ga=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function Ja(e){var t=this,n=e.accountId,r=e.cache,i=void 0===r?"object"==typeof self&&self.indexedDB?new Ka:"object"==typeof window&&window.localStorage?window.localStorage:Ga:r,o=e.client,a=e.customRoleArn,s=e.identityPoolId,u=e.logins,c=e.userIdentifier,l=void 0===c?u&&0!==Object.keys(u).length?void 0:"ANONYMOUS":c,d=l?"aws:cognito-identity-credentials:"+s+":"+l:void 0,p=function(){return Object(Te.__awaiter)(t,void 0,void 0,function(){var e,t,r,c,l,f,h,m,v;return Object(Te.__generator)(this,function(g){switch(g.label){case 0:return(t=d)?[4,i.getItem(d)]:[3,2];case 1:t=g.sent(),g.label=2;case 2:return(e=t)?[3,7]:(f=(l=o).send,h=La.bind,v={AccountId:n,IdentityPoolId:s},u?[4,qa(u)]:[3,4]);case 3:return m=g.sent(),[3,5];case 4:m=void 0,g.label=5;case 5:return[4,f.apply(l,[new(h.apply(La,[void 0,(v.Logins=m,v)]))])];case 6:r=g.sent().IdentityId,c=void 0===r?function(){throw new Ua("Response from Amazon Cognito contained no identity ID")}():r,e=c,d&&Promise.resolve(i.setItem(d,e)).catch(function(){}),g.label=7;case 7:return[2,(p=Ya({client:o,customRoleArn:a,logins:u,identityId:e}))()]}})})};return function(){return p().catch(function(e){return Object(Te.__awaiter)(t,void 0,void 0,function(){return Object(Te.__generator)(this,function(t){throw d&&Promise.resolve(i.removeItem(d)).catch(function(){}),e})})})}}var Wa=this&&this.__assign||function(){return(Wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(Za.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(Za.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(Za.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,i=e.user;return $(n,[],1e4).then(function(e){return Za.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})}).catch(function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),Za.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return Za.debug("no credentials for expiration check"),!0;Za.debug("are these credentials expired?",e);var t=Date.now();return!(e.expiration.getTime()>t+6e5&&t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;var ls=n("/f4w");function ds(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function ps(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var hs=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var ms=function(){return(ms=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var gs=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(ms(ms({},this),{headers:ms({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce(function(e,n){var r,i=t[n];return ms(ms({},e),((r={})[n]=Array.isArray(i)?function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bs(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,ws)}function ws(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */for(var _s=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null===t||void 0===t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var o=e.path;if(e.query){var a=function(e){var t,n,r=[];try{for(var i=ys(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=bs(a),Array.isArray(s))for(var u=0,c=s.length;u>=Ls;var c=i/4*3;o>>=a%ks;for(var l=Math.floor(a/ks),d=0;d>p)}}return new Uint8Array(n)}var Ps=function(e){return function(){throw new Error(e)}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Os=function(){return(Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>c]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:Ps("Credential is missing"),defaultUserAgent:function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}(ls.name,ls.version),maxAttempts:3,region:Ps("Region is missing"),requestHandler:new _s,sha256:Pe.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return ds(this,void 0,void 0,function(){var t,n;return ps(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=As(t),[2,new Uint8Array(n)]}})})}(e):function(e){return ds(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return ps(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=u.sent(),o=i.done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=o,[3,1];case 3:return[2,t]}})})}(e)},urlParser:dt,utf8Decoder:mt.fromUtf8,utf8Encoder:mt.toUtf8});var iu=function(){return(iu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),wu)}}},Su=function(e){return e};function xu(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function Eu(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Au=function(){return(Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nu(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Ru="X-Amz-Date".toLowerCase(),ju=["authorization",Ru,"date"],Fu="X-Amz-Signature".toLowerCase(),Bu="x-amz-content-sha256",Hu="X-Amz-Security-Token".toLowerCase(),Vu={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},$u=/^proxy-/,Uu=/^sec-/,qu="AWS4-HMAC-SHA256-PAYLOAD",Yu="UNSIGNED-PAYLOAD",Ku=50,Gu="aws4_request",Ju={},Wu=[];function Qu(e,t,n){return e+"/"+t+"/"+n+"/"+Gu}for(var Xu={},Zu={},ec=0;ec<256;ec++){var tc=ec.toString(16).toLowerCase();1===tc.length&&(tc="0"+tc),Xu[ec]=tc,Zu[tc]=ec}function nc(e){for(var t="",n=0;n-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function sc(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var uc=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=dc(r),this.credentialProvider=pc(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Pu(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E;return Ou(this,function(T){switch(T.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,i=t.expiresIn,o=void 0===i?3600:i,a=t.unsignableHeaders,s=t.signableHeaders,u=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return l=T.sent(),null===u||void 0===u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=T.sent(),T.label=4;case 4:return d=p,f=cc(r),h=f.longDate,m=f.shortDate,o>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=Qu(m,d,null!==c&&void 0!==c?c:this.service),g=function(e){var t,n,r="function"==typeof e.clone?e.clone():oc(e),i=r.headers,o=r.query,a=void 0===o?{}:o;try{for(var s=Du(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"x-amz-"===c.toLowerCase().substr(0,6)&&(a[c]=i[c],delete i[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return Au(Au({},e),{headers:i,query:a})}(ac(e)),l.sessionToken&&(g.query["X-Amz-Security-Token"]=l.sessionToken),g.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",g.query["X-Amz-Credential"]=l.accessKeyId+"/"+v,g.query["X-Amz-Date"]=h,g.query["X-Amz-Expires"]=o.toString(10),y=rc(g,a,s),g.query["X-Amz-SignedHeaders"]=lc(y),b=g.query,w="X-Amz-Signature",_=this.getSignature,S=[h,v,this.getSigningKey(l,d,m,c)],x=this.createCanonicalRequest,E=[g,y],[4,ic(e,this.sha256)]);case 5:return[4,_.apply(this,S.concat([x.apply(this,E.concat([T.sent()]))]))];case 6:return b[w]=T.sent(),[2,g]}})})},e.prototype.sign=function(e,t){return Pu(this,void 0,void 0,function(){return Ou(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return Pu(this,void 0,void 0,function(){var e,t,i,c,l,d,p,f,h,m,v;return Ou(this,function(g){switch(g.label){case 0:return null===s||void 0===s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,i=cc(o),c=i.shortDate,l=i.longDate,d=Qu(c,e,null!==u&&void 0!==u?u:this.service),[4,ic({headers:{},body:r},this.sha256)];case 4:return p=g.sent(),(f=new this.sha256).update(n),m=nc,[4,f.digest()];case 5:return h=m.apply(void 0,[g.sent()]),v=[qu,l,d,a,h,p].join("\n"),[2,this.signString(v,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signingRegion,a=n.signingService;return Pu(this,void 0,void 0,function(){var t,n,r,s,u,c,l,d;return Ou(this,function(p){switch(p.label){case 0:return[4,this.credentialProvider()];case 1:return t=p.sent(),null===o||void 0===o?[3,2]:(r=o,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=p.sent(),p.label=4;case 4:return n=r,s=cc(i).shortDate,l=(c=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(l.apply(c,[void 0,p.sent()]))).update(e),d=nc,[4,u.digest()];case 6:return[2,d.apply(void 0,[p.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return Pu(this,void 0,void 0,function(){var t,n,r,c,l,d,p,f,h,m,v;return Ou(this,function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,c=ac(e),l=cc(i),d=l.longDate,p=l.shortDate,f=Qu(p,n,null!==u&&void 0!==u?u:this.service),c.headers[Ru]=d,t.sessionToken&&(c.headers[Hu]=t.sessionToken),[4,ic(c,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=Du(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(Bu,c.headers)&&this.applyChecksum&&(c.headers[Bu]=h),m=rc(c,a,o),[4,this.getSignature(d,f,this.getSigningKey(t,n,p,u),this.createCanonicalRequest(c,m,h))];case 6:return v=g.sent(),c.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+lc(m)+", Signature="+v,[2,c]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],a={},s=function(e){if(e.toLowerCase()===Fu)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=bs(e)+"="+bs(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([bs(e)+"="+bs(n)])},[]).join("&"))};try{for(var u=Du(Object.keys(i).sort()),c=u.next();!c.done;c=u.next())s(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+r.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Pu(this,void 0,void 0,function(){var r,i;return Ou(this,function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+nc(i)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Pu(this,void 0,void 0,function(){var i,o,a,s,u;return Ou(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=c.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(o=new(s.apply(a,[void 0,c.sent()]))).update(i),u=nc,[4,o.digest()];case 3:return[2,u.apply(void 0,[c.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,i){var o=n+":"+r+":"+i+":"+t.accessKeyId+":"+t.sessionToken;if(o in Ju)return Ju[o];for(Wu.push(o);Wu.length>Ku;)delete Ju[Wu.shift()];return Ju[o]=new Promise(function(a,s){var u,c,l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then(function(n){return r=t,(i=new e(n)).update(r),i.digest();var r,i})).catch(function(){})};try{for(var p=Du([n,r,i,Gu]),f=p.next();!f.done;f=p.next())d(f.value)}catch(e){u={error:e}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}l.then(a,function(e){delete Ju[o],s(e)})})}(this.sha256,e,n,t,r||this.service)},e}(),cc=function(e){var t=sc(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},lc=function(e){return Object.keys(e).sort().join(";")},dc=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},pc=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function fc(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var hc=function(e,t){return Math.abs(mc(t).getTime()-e)>=3e5},mc=function(e){return new Date(Date.now()+e)};var vc={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},gc=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(r){return Lu(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return ku(this,function(f){switch(f.label){case 0:return gs.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return i=o,s=t,u=[Iu({},r)],p={},[4,i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,s.apply(void 0,[Iu.apply(void 0,u.concat([(p.request=f.sent(),p)]))])];case 5:return a=f.sent(),c=a.response.headers,(l=c&&(c.date||c.Date))&&(d=Date.parse(l),hc(d,e.systemClockOffset)&&(e.systemClockOffset=d-Date.now())),[2,a]}})})}}}(e),vc)}}};var yc=function(){return(yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ec(){for(var e=[],t=0;t-1||"name"in e&&t.indexOf(e.name)>-1)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ac=function(e,t){return(Ac=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Pc(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Oc=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,function(){for(var e=[],t=0;t=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""};var wz=function(){return(wz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=400?[2,oT(e,t)]:(n={$metadata:vz(e),__type:"CreateAppResponse",ApplicationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationResponse=hL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Cz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ed.filterSensitiveLog,outputFilterSensitiveLog:Md.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/campaigns",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteCampaignRequest&&(o=tL(e.WriteCampaignRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,aT(e,t)]:(n={$metadata:vz(e),__type:"CreateCampaignResponse",CampaignResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignResponse=xL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Iz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Id.filterSensitiveLog,outputFilterSensitiveLog:kd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/email",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),void 0!==e.EmailTemplateRequest&&(o=OC(e.EmailTemplateRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,sT(e,t)]:(n={$metadata:vz(e),__type:"CreateEmailTemplateResponse",CreateTemplateMessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CreateTemplateMessageBody=IL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Lz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ad.filterSensitiveLog,outputFilterSensitiveLog:Od.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/jobs/export",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.ExportJobRequest&&(o=VC(e.ExportJobRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,uT(e,t)]:(n={$metadata:vz(e),__type:"CreateExportJobResponse",ExportJobResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ExportJobResponse=BL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),kz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Nd.filterSensitiveLog,outputFilterSensitiveLog:jd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/jobs/import",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.ImportJobRequest&&(o=KC(e.ImportJobRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,cT(e,t)]:(n={$metadata:vz(e),__type:"CreateImportJobResponse",ImportJobResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ImportJobResponse=UL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),zz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Bd.filterSensitiveLog,outputFilterSensitiveLog:Vd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/journeys",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteJourneyRequest&&(o=rL(e.WriteJourneyRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,lT(e,t)]:(n={$metadata:vz(e),__type:"CreateJourneyResponse",JourneyResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyResponse=QL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Az=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ud.filterSensitiveLog,outputFilterSensitiveLog:Yd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/push",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),void 0!==e.PushNotificationTemplateRequest&&(o=wI(e.PushNotificationTemplateRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,dT(e,t)]:(n={$metadata:vz(e),__type:"CreatePushTemplateResponse",CreateTemplateMessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CreateTemplateMessageBody=IL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Pz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Gd.filterSensitiveLog,outputFilterSensitiveLog:Wd.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:return n={"Content-Type":"application/json"},r="/v1/recommenders",void 0!==e.CreateRecommenderConfiguration&&(i=CC(e.CreateRecommenderConfiguration,t)),void 0===i&&(i={}),i=JSON.stringify(i),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"POST",headers:n,path:r,body:i})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,pT(e,t)]:(n={$metadata:vz(e),__type:"CreateRecommenderConfigurationResponse",RecommenderConfigurationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.RecommenderConfigurationResponse=jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Oz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ep.filterSensitiveLog,outputFilterSensitiveLog:np.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/segments",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteSegmentRequest&&(o=iL(e.WriteSegmentRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,fT(e,t)]:(n={$metadata:vz(e),__type:"CreateSegmentResponse",SegmentResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentResponse=Jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Dz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ip.filterSensitiveLog,outputFilterSensitiveLog:ap.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/sms",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),void 0!==e.SMSTemplateRequest&&(o=VI(e.SMSTemplateRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,hT(e,t)]:(n={$metadata:vz(e),__type:"CreateSmsTemplateResponse",CreateTemplateMessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CreateTemplateMessageBody=IL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Nz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:lp.filterSensitiveLog,outputFilterSensitiveLog:pp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/voice",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),void 0!==e.VoiceTemplateRequest&&(o=QI(e.VoiceTemplateRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 201!==e.statusCode&&e.statusCode>=400?[2,mT(e,t)]:(n={$metadata:vz(e),__type:"CreateVoiceTemplateResponse",CreateTemplateMessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CreateTemplateMessageBody=IL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Rz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ep.filterSensitiveLog,outputFilterSensitiveLog:Mp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/adm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,vT(e,t)]:(n={$metadata:vz(e),__type:"DeleteAdmChannelResponse",ADMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ADMChannelResponse=sL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),jz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ip.filterSensitiveLog,outputFilterSensitiveLog:kp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,gT(e,t)]:(n={$metadata:vz(e),__type:"DeleteApnsChannelResponse",APNSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSChannelResponse=cL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Fz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ap.filterSensitiveLog,outputFilterSensitiveLog:Op.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,yT(e,t)]:(n={$metadata:vz(e),__type:"DeleteApnsSandboxChannelResponse",APNSSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSSandboxChannelResponse=lL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Bz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Np.filterSensitiveLog,outputFilterSensitiveLog:jp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_voip",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,bT(e,t)]:(n={$metadata:vz(e),__type:"DeleteApnsVoipChannelResponse",APNSVoipChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipChannelResponse=dL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Hz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Bp.filterSensitiveLog,outputFilterSensitiveLog:Vp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_voip_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,wT(e,t)]:(n={$metadata:vz(e),__type:"DeleteApnsVoipSandboxChannelResponse",APNSVoipSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipSandboxChannelResponse=pL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Vz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Up.filterSensitiveLog,outputFilterSensitiveLog:Yp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,_T(e,t)]:(n={$metadata:vz(e),__type:"DeleteAppResponse",ApplicationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationResponse=hL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),$z=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Gp.filterSensitiveLog,outputFilterSensitiveLog:Wp.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/baidu",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,ST(e,t)]:(n={$metadata:vz(e),__type:"DeleteBaiduChannelResponse",BaiduChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.BaiduChannelResponse=yL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Uz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Xp.filterSensitiveLog,outputFilterSensitiveLog:ef.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}",void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");if(r=r.replace("{CampaignId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,xT(e,t)]:(n={$metadata:vz(e),__type:"DeleteCampaignResponse",CampaignResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignResponse=xL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),qz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:nf.filterSensitiveLog,outputFilterSensitiveLog:of.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/email",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,ET(e,t)]:(n={$metadata:vz(e),__type:"DeleteEmailChannelResponse",EmailChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EmailChannelResponse=zL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Yz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:sf.filterSensitiveLog,outputFilterSensitiveLog:cf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/email",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,TT(e,t)]:(n={$metadata:vz(e),__type:"DeleteEmailTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Kz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:df.filterSensitiveLog,outputFilterSensitiveLog:ff.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/endpoints/{EndpointId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.EndpointId)throw new Error("No value provided for input HTTP label: EndpointId.");if((i=e.EndpointId).length<=0)throw new Error("Empty value provided for input HTTP label: EndpointId.");return r=r.replace("{EndpointId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,MT(e,t)]:(n={$metadata:vz(e),__type:"DeleteEndpointResponse",EndpointResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EndpointResponse=OL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Gz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:mf.filterSensitiveLog,outputFilterSensitiveLog:gf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/eventstream",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,CT(e,t)]:(n={$metadata:vz(e),__type:"DeleteEventStreamResponse",EventStream:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EventStream=FL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Jz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:bf.filterSensitiveLog,outputFilterSensitiveLog:_f.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/gcm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,IT(e,t)]:(n={$metadata:vz(e),__type:"DeleteGcmChannelResponse",GCMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.GCMChannelResponse=VL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Wz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:xf.filterSensitiveLog,outputFilterSensitiveLog:Tf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,LT(e,t)]:(n={$metadata:vz(e),__type:"DeleteJourneyResponse",JourneyResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyResponse=QL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Qz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Cf.filterSensitiveLog,outputFilterSensitiveLog:Lf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/push",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,kT(e,t)]:(n={$metadata:vz(e),__type:"DeletePushTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Xz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:zf.filterSensitiveLog,outputFilterSensitiveLog:Pf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/recommenders/{RecommenderId}",void 0===e.RecommenderId)throw new Error("No value provided for input HTTP label: RecommenderId.");if((i=e.RecommenderId).length<=0)throw new Error("Empty value provided for input HTTP label: RecommenderId.");return r=r.replace("{RecommenderId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,zT(e,t)]:(n={$metadata:vz(e),__type:"DeleteRecommenderConfigurationResponse",RecommenderConfigurationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.RecommenderConfigurationResponse=jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),Zz=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Df.filterSensitiveLog,outputFilterSensitiveLog:Rf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");return r=r.replace("{SegmentId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,AT(e,t)]:(n={$metadata:vz(e),__type:"DeleteSegmentResponse",SegmentResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentResponse=Jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),eA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ff.filterSensitiveLog,outputFilterSensitiveLog:Hf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/sms",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,PT(e,t)]:(n={$metadata:vz(e),__type:"DeleteSmsChannelResponse",SMSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SMSChannelResponse=ez(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),tA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:$f.filterSensitiveLog,outputFilterSensitiveLog:qf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/sms",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,OT(e,t)]:(n={$metadata:vz(e),__type:"DeleteSmsTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),nA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Kf.filterSensitiveLog,outputFilterSensitiveLog:Jf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/users/{UserId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.UserId)throw new Error("No value provided for input HTTP label: UserId.");if((i=e.UserId).length<=0)throw new Error("Empty value provided for input HTTP label: UserId.");return r=r.replace("{UserId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,DT(e,t)]:(n={$metadata:vz(e),__type:"DeleteUserEndpointsResponse",EndpointsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EndpointsResponse=DL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),rA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Qf.filterSensitiveLog,outputFilterSensitiveLog:Zf.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/voice",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"DELETE",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,NT(e,t)]:(n={$metadata:vz(e),__type:"DeleteVoiceChannelResponse",VoiceChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.VoiceChannelResponse=pz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),iA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:th.filterSensitiveLog,outputFilterSensitiveLog:rh.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/voice",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,RT(e,t)]:(n={$metadata:vz(e),__type:"DeleteVoiceTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),oA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Tm.filterSensitiveLog,outputFilterSensitiveLog:Cm.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/adm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,jT(e,t)]:(n={$metadata:vz(e),__type:"GetAdmChannelResponse",ADMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ADMChannelResponse=sL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),aA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Lm.filterSensitiveLog,outputFilterSensitiveLog:zm.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,FT(e,t)]:(n={$metadata:vz(e),__type:"GetApnsChannelResponse",APNSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSChannelResponse=cL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),sA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Pm.filterSensitiveLog,outputFilterSensitiveLog:Dm.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,BT(e,t)]:(n={$metadata:vz(e),__type:"GetApnsSandboxChannelResponse",APNSSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSSandboxChannelResponse=lL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),uA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Rm.filterSensitiveLog,outputFilterSensitiveLog:Fm.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_voip",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,HT(e,t)]:(n={$metadata:vz(e),__type:"GetApnsVoipChannelResponse",APNSVoipChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipChannelResponse=dL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),cA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Hm.filterSensitiveLog,outputFilterSensitiveLog:$m.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/apns_voip_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,VT(e,t)]:(n={$metadata:vz(e),__type:"GetApnsVoipSandboxChannelResponse",APNSVoipSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipSandboxChannelResponse=pL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),lA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Zm.filterSensitiveLog,outputFilterSensitiveLog:tv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,$T(e,t)]:(n={$metadata:vz(e),__type:"GetAppResponse",ApplicationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationResponse=hL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),dA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:qm.filterSensitiveLog,outputFilterSensitiveLog:Km.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}",void 0===e.KpiName)throw new Error("No value provided for input HTTP label: KpiName.");if((i=e.KpiName).length<=0)throw new Error("Empty value provided for input HTTP label: KpiName.");if(r=r.replace("{KpiName}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as(as(as({},void 0!==e.StartTime&&{"start-time":(e.StartTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.EndTime&&{"end-time":(e.EndTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.NextToken&&{"next-token":e.NextToken}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,UT(e,t)]:(n={$metadata:vz(e),__type:"GetApplicationDateRangeKpiResponse",ApplicationDateRangeKpiResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationDateRangeKpiResponse=fL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),pA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Jm.filterSensitiveLog,outputFilterSensitiveLog:Qm.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/settings",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,qT(e,t)]:(n={$metadata:vz(e),__type:"GetApplicationSettingsResponse",ApplicationSettingsResource:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationSettingsResource=mL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),fA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:rv.filterSensitiveLog,outputFilterSensitiveLog:ov.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:return n={"Content-Type":""},r="/v1/apps",i=as(as({},void 0!==e.Token&&{token:e.Token}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,YT(e,t)]:(n={$metadata:vz(e),__type:"GetAppsResponse",ApplicationsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationsResponse=vL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),hA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:sv.filterSensitiveLog,outputFilterSensitiveLog:cv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/baidu",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,KT(e,t)]:(n={$metadata:vz(e),__type:"GetBaiduChannelResponse",BaiduChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.BaiduChannelResponse=yL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),mA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:dv.filterSensitiveLog,outputFilterSensitiveLog:fv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");return r=r.replace("{CampaignId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,JT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignActivitiesResponse",ActivitiesResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ActivitiesResponse=aL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),vA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:bv.filterSensitiveLog,outputFilterSensitiveLog:_v.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");return r=r.replace("{CampaignId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,GT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignResponse",CampaignResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignResponse=xL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),gA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:mv.filterSensitiveLog,outputFilterSensitiveLog:gv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}",void 0===e.KpiName)throw new Error("No value provided for input HTTP label: KpiName.");if((i=e.KpiName).length<=0)throw new Error("Empty value provided for input HTTP label: KpiName.");if(r=r.replace("{KpiName}",kc(i)),void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");if(r=r.replace("{CampaignId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as(as(as({},void 0!==e.NextToken&&{"next-token":e.NextToken}),void 0!==e.StartTime&&{"start-time":(e.StartTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.EndTime&&{"end-time":(e.EndTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,WT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignDateRangeKpiResponse",CampaignDateRangeKpiResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignDateRangeKpiResponse=wL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),yA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Cv.filterSensitiveLog,outputFilterSensitiveLog:Lv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.Version)throw new Error("No value provided for input HTTP label: Version.");if((i=e.Version).length<=0)throw new Error("Empty value provided for input HTTP label: Version.");if(r=r.replace("{Version}",kc(i)),void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");return r=r.replace("{CampaignId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,XT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignVersionResponse",CampaignResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignResponse=xL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),bA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:zv.filterSensitiveLog,outputFilterSensitiveLog:Pv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions",void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");if(r=r.replace("{CampaignId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,ZT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignVersionsResponse",CampaignsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignsResponse=EL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),wA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:xv.filterSensitiveLog,outputFilterSensitiveLog:Tv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/campaigns",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.Token&&{token:e.Token}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,QT(e,t)]:(n={$metadata:vz(e),__type:"GetCampaignsResponse",CampaignsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignsResponse=EL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),_A=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Dv.filterSensitiveLog,outputFilterSensitiveLog:Rv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,eM(e,t)]:(n={$metadata:vz(e),__type:"GetChannelsResponse",ChannelsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ChannelsResponse=ML(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),SA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Fv.filterSensitiveLog,outputFilterSensitiveLog:Hv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/email",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,tM(e,t)]:(n={$metadata:vz(e),__type:"GetEmailChannelResponse",EmailChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EmailChannelResponse=zL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),xA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:$v.filterSensitiveLog,outputFilterSensitiveLog:qv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/email",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,nM(e,t)]:(n={$metadata:vz(e),__type:"GetEmailTemplateResponse",EmailTemplateResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EmailTemplateResponse=PL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),EA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Kv.filterSensitiveLog,outputFilterSensitiveLog:Jv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/endpoints/{EndpointId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.EndpointId)throw new Error("No value provided for input HTTP label: EndpointId.");if((i=e.EndpointId).length<=0)throw new Error("Empty value provided for input HTTP label: EndpointId.");return r=r.replace("{EndpointId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,rM(e,t)]:(n={$metadata:vz(e),__type:"GetEndpointResponse",EndpointResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EndpointResponse=OL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),TA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Qv.filterSensitiveLog,outputFilterSensitiveLog:Zv.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/eventstream",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,iM(e,t)]:(n={$metadata:vz(e),__type:"GetEventStreamResponse",EventStream:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EventStream=FL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),MA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:tg.filterSensitiveLog,outputFilterSensitiveLog:rg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/jobs/export/{JobId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.JobId)throw new Error("No value provided for input HTTP label: JobId.");if((i=e.JobId).length<=0)throw new Error("Empty value provided for input HTTP label: JobId.");return r=r.replace("{JobId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,oM(e,t)]:(n={$metadata:vz(e),__type:"GetExportJobResponse",ExportJobResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ExportJobResponse=BL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),CA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:og.filterSensitiveLog,outputFilterSensitiveLog:sg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/jobs/export",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,aM(e,t)]:(n={$metadata:vz(e),__type:"GetExportJobsResponse",ExportJobsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ExportJobsResponse=HL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),IA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:cg.filterSensitiveLog,outputFilterSensitiveLog:dg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/gcm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,sM(e,t)]:(n={$metadata:vz(e),__type:"GetGcmChannelResponse",GCMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.GCMChannelResponse=VL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),LA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:fg.filterSensitiveLog,outputFilterSensitiveLog:mg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/jobs/import/{JobId}",void 0===e.JobId)throw new Error("No value provided for input HTTP label: JobId.");if((i=e.JobId).length<=0)throw new Error("Empty value provided for input HTTP label: JobId.");if(r=r.replace("{JobId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,uM(e,t)]:(n={$metadata:vz(e),__type:"GetImportJobResponse",ImportJobResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ImportJobResponse=UL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),kA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:gg.filterSensitiveLog,outputFilterSensitiveLog:bg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/jobs/import",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.Token&&{token:e.Token}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,cM(e,t)]:(n={$metadata:vz(e),__type:"GetImportJobsResponse",ImportJobsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ImportJobsResponse=qL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),zA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Pg.filterSensitiveLog,outputFilterSensitiveLog:Dg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,lM(e,t)]:(n={$metadata:vz(e),__type:"GetJourneyResponse",JourneyResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyResponse=QL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),AA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:_g.filterSensitiveLog,outputFilterSensitiveLog:xg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.KpiName)throw new Error("No value provided for input HTTP label: KpiName.");if((i=e.KpiName).length<=0)throw new Error("Empty value provided for input HTTP label: KpiName.");return r=r.replace("{KpiName}",kc(i)),o=as(as(as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.EndTime&&{"end-time":(e.EndTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.StartTime&&{"start-time":(e.StartTime.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.NextToken&&{"next-token":e.NextToken}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,dM(e,t)]:(n={$metadata:vz(e),__type:"GetJourneyDateRangeKpiResponse",JourneyDateRangeKpiResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyDateRangeKpiResponse=KL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),PA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Tg.filterSensitiveLog,outputFilterSensitiveLog:Cg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.JourneyActivityId)throw new Error("No value provided for input HTTP label: JourneyActivityId.");if((i=e.JourneyActivityId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyActivityId.");if(r=r.replace("{JourneyActivityId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.NextToken&&{"next-token":e.NextToken}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,pM(e,t)]:(n={$metadata:vz(e),__type:"GetJourneyExecutionActivityMetricsResponse",JourneyExecutionActivityMetricsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyExecutionActivityMetricsResponse=JL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),OA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Lg.filterSensitiveLog,outputFilterSensitiveLog:zg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.NextToken&&{"next-token":e.NextToken}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,fM(e,t)]:(n={$metadata:vz(e),__type:"GetJourneyExecutionMetricsResponse",JourneyExecutionMetricsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyExecutionMetricsResponse=WL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),DA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Rg.filterSensitiveLog,outputFilterSensitiveLog:Fg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/push",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,hM(e,t)]:(n={$metadata:vz(e),__type:"GetPushTemplateResponse",PushNotificationTemplateResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.PushNotificationTemplateResponse=Ok(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),NA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Hg.filterSensitiveLog,outputFilterSensitiveLog:$g.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/recommenders/{RecommenderId}",void 0===e.RecommenderId)throw new Error("No value provided for input HTTP label: RecommenderId.");if((i=e.RecommenderId).length<=0)throw new Error("Empty value provided for input HTTP label: RecommenderId.");return r=r.replace("{RecommenderId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,mM(e,t)]:(n={$metadata:vz(e),__type:"GetRecommenderConfigurationResponse",RecommenderConfigurationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.RecommenderConfigurationResponse=jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),RA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:qg.filterSensitiveLog,outputFilterSensitiveLog:Kg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:return n={"Content-Type":""},r="/v1/recommenders",i=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,vM(e,t)]:(n={$metadata:vz(e),__type:"GetRecommenderConfigurationsResponse",ListRecommenderConfigurationsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ListRecommenderConfigurationsResponse=fk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),jA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ry.filterSensitiveLog,outputFilterSensitiveLog:oy.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}",void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");if(r=r.replace("{SegmentId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,gM(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentResponse",SegmentResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentResponse=Jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),FA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Jg.filterSensitiveLog,outputFilterSensitiveLog:Qg.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");return r=r.replace("{SegmentId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,yM(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentExportJobsResponse",ExportJobsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ExportJobsResponse=HL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),BA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Zg.filterSensitiveLog,outputFilterSensitiveLog:ty.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import",void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");if(r=r.replace("{SegmentId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,bM(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentImportJobsResponse",ImportJobsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ImportJobsResponse=qL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),HA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:dy.filterSensitiveLog,outputFilterSensitiveLog:fy.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");if(r=r.replace("{SegmentId}",kc(i)),void 0===e.Version)throw new Error("No value provided for input HTTP label: Version.");if((i=e.Version).length<=0)throw new Error("Empty value provided for input HTTP label: Version.");return r=r.replace("{Version}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,_M(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentVersionResponse",SegmentResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentResponse=Jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),VA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:my.filterSensitiveLog,outputFilterSensitiveLog:gy.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments/{SegmentId}/versions",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");return r=r.replace("{SegmentId}",kc(i)),o=as(as({},void 0!==e.Token&&{token:e.Token}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,SM(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentVersionsResponse",SegmentsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentsResponse=Wk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),$A=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:sy.filterSensitiveLog,outputFilterSensitiveLog:cy.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/segments",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,wM(e,t)]:(n={$metadata:vz(e),__type:"GetSegmentsResponse",SegmentsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentsResponse=Wk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),UA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:by.filterSensitiveLog,outputFilterSensitiveLog:_y.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/sms",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,xM(e,t)]:(n={$metadata:vz(e),__type:"GetSmsChannelResponse",SMSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SMSChannelResponse=ez(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),qA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:xy.filterSensitiveLog,outputFilterSensitiveLog:Ty.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/sms",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,EM(e,t)]:(n={$metadata:vz(e),__type:"GetSmsTemplateResponse",SMSTemplateResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SMSTemplateResponse=nz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),YA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Cy.filterSensitiveLog,outputFilterSensitiveLog:Ly.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/users/{UserId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.UserId)throw new Error("No value provided for input HTTP label: UserId.");if((i=e.UserId).length<=0)throw new Error("Empty value provided for input HTTP label: UserId.");return r=r.replace("{UserId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,TM(e,t)]:(n={$metadata:vz(e),__type:"GetUserEndpointsResponse",EndpointsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EndpointsResponse=DL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),KA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:zy.filterSensitiveLog,outputFilterSensitiveLog:Py.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/channels/voice",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,MM(e,t)]:(n={$metadata:vz(e),__type:"GetVoiceChannelResponse",VoiceChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.VoiceChannelResponse=pz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),GA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Dy.filterSensitiveLog,outputFilterSensitiveLog:Ry.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/voice",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as({},void 0!==e.Version&&{version:e.Version}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,CM(e,t)]:(n={$metadata:vz(e),__type:"GetVoiceTemplateResponse",VoiceTemplateResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.VoiceTemplateResponse=fz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),JA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Lb.filterSensitiveLog,outputFilterSensitiveLog:zb.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/apps/{ApplicationId}/journeys",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),o=as(as({},void 0!==e.PageSize&&{"page-size":e.PageSize}),void 0!==e.Token&&{token:e.Token}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,IM(e,t)]:(n={$metadata:vz(e),__type:"ListJourneysResponse",JourneysResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneysResponse=ZL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),WA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Db.filterSensitiveLog,outputFilterSensitiveLog:Rb.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:if(n={"Content-Type":""},r="/v1/tags/{ResourceArn}",void 0===e.ResourceArn)throw new Error("No value provided for input HTTP label: ResourceArn.");if((i=e.ResourceArn).length<=0)throw new Error("Empty value provided for input HTTP label: ResourceArn.");return r=r.replace("{ResourceArn}",kc(i)),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,LM(e,t)]:(n={$metadata:vz(e),__type:"ListTagsForResourceResponse",TagsModel:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.TagsModel=iz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),QA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Vb.filterSensitiveLog,outputFilterSensitiveLog:Ub.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/templates/{TemplateName}/{TemplateType}/versions",void 0===e.TemplateType)throw new Error("No value provided for input HTTP label: TemplateType.");if((i=e.TemplateType).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateType.");if(r=r.replace("{TemplateType}",kc(i)),void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as(as({},void 0!==e.NextToken&&{"next-token":e.NextToken}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,zM(e,t)]:(n={$metadata:vz(e),__type:"ListTemplateVersionsResponse",TemplateVersionsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.TemplateVersionsResponse=lz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),XA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:jb.filterSensitiveLog,outputFilterSensitiveLog:Bb.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:return n={"Content-Type":""},r="/v1/templates",i=as(as(as(as({},void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.NextToken&&{"next-token":e.NextToken}),void 0!==e.TemplateType&&{"template-type":e.TemplateType}),void 0!==e.PageSize&&{"page-size":e.PageSize}),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"GET",headers:n,path:r,query:i,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,kM(e,t)]:(n={$metadata:vz(e),__type:"ListTemplatesResponse",TemplatesResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.TemplatesResponse=uz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),ZA=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:xw.filterSensitiveLog,outputFilterSensitiveLog:Tw.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return us(this,function(l){switch(l.label){case 0:return n={"Content-Type":"application/json"},r="/v1/phone/number/validate",void 0!==e.NumberValidateRequest&&(i=gI(e.NumberValidateRequest,t)),void 0===i&&(i={}),i=JSON.stringify(i),[4,t.endpoint()];case 1:return o=l.sent(),a=o.hostname,s=o.protocol,u=void 0===s?"https":s,c=o.port,[2,new gs({protocol:u,hostname:a,port:c,method:"POST",headers:n,path:r,body:i})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,AM(e,t)]:(n={$metadata:vz(e),__type:"PhoneNumberValidateResponse",NumberValidateResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.NumberValidateResponse=Ak(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),eP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Fw.filterSensitiveLog,outputFilterSensitiveLog:Hw.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/eventstream",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteEventStream&&(o=nL(e.WriteEventStream,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,OM(e,t)]:(n={$metadata:vz(e),__type:"PutEventStreamResponse",EventStream:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EventStream=FL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),tP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Dw.filterSensitiveLog,outputFilterSensitiveLog:Rw.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/events",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.EventsRequest&&(o=HC(e.EventsRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,PM(e,t)]:(n={$metadata:vz(e),__type:"PutEventsResponse",EventsResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EventsResponse=jL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),nP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:n_.filterSensitiveLog,outputFilterSensitiveLog:i_.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/attributes/{AttributeType}",void 0===e.AttributeType)throw new Error("No value provided for input HTTP label: AttributeType.");if((i=e.AttributeType).length<=0)throw new Error("Empty value provided for input HTTP label: AttributeType.");if(r=r.replace("{AttributeType}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.UpdateAttributesRequest&&(o=KI(e.UpdateAttributesRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,DM(e,t)]:(n={$metadata:vz(e),__type:"RemoveAttributesResponse",AttributesResource:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.AttributesResource=gL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),rP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:D_.filterSensitiveLog,outputFilterSensitiveLog:R_.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/messages",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.MessageRequest&&(o=fI(e.MessageRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,NM(e,t)]:(n={$metadata:vz(e),__type:"SendMessagesResponse",MessageResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageResponse=Ck(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),iP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:$_.filterSensitiveLog,outputFilterSensitiveLog:q_.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/users-messages",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.SendUsersMessageRequest&&(o=PI(e.SendUsersMessageRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,RM(e,t)]:(n={$metadata:vz(e),__type:"SendUsersMessagesResponse",SendUsersMessageResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SendUsersMessageResponse=Qk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),oP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:bS.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/tags/{ResourceArn}",void 0===e.ResourceArn)throw new Error("No value provided for input HTTP label: ResourceArn.");if((i=e.ResourceArn).length<=0)throw new Error("Empty value provided for input HTTP label: ResourceArn.");return r=r.replace("{ResourceArn}",kc(i)),void 0!==e.TagsModel&&(o=$I(e.TagsModel,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n;return us(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=400?[2,jM(e,t)]:(n={$metadata:vz(e)},[4,gz(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),aP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:VS.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":""},r="/v1/tags/{ResourceArn}",void 0===e.ResourceArn)throw new Error("No value provided for input HTTP label: ResourceArn.");if((i=e.ResourceArn).length<=0)throw new Error("Empty value provided for input HTTP label: ResourceArn.");return r=r.replace("{ResourceArn}",kc(i)),o=as({},void 0!==e.TagKeys&&{tagKeys:(e.TagKeys||[]).map(function(e){return e})}),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n;return us(this,function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=400?[2,FM(e,t)]:(n={$metadata:vz(e)},[4,gz(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),sP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:US.filterSensitiveLog,outputFilterSensitiveLog:YS.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/adm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.ADMChannelRequest&&(o=vC(e.ADMChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,BM(e,t)]:(n={$metadata:vz(e),__type:"UpdateAdmChannelResponse",ADMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ADMChannelResponse=sL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),uP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:GS.filterSensitiveLog,outputFilterSensitiveLog:WS.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/apns",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.APNSChannelRequest&&(o=yC(e.APNSChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,HM(e,t)]:(n={$metadata:vz(e),__type:"UpdateApnsChannelResponse",APNSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSChannelResponse=cL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),cP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:XS.filterSensitiveLog,outputFilterSensitiveLog:ex.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/apns_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.APNSSandboxChannelRequest&&(o=bC(e.APNSSandboxChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,VM(e,t)]:(n={$metadata:vz(e),__type:"UpdateApnsSandboxChannelResponse",APNSSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSSandboxChannelResponse=lL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),lP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:nx.filterSensitiveLog,outputFilterSensitiveLog:ix.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/apns_voip",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.APNSVoipChannelRequest&&(o=wC(e.APNSVoipChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,$M(e,t)]:(n={$metadata:vz(e),__type:"UpdateApnsVoipChannelResponse",APNSVoipChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipChannelResponse=dL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),dP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ax.filterSensitiveLog,outputFilterSensitiveLog:ux.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/apns_voip_sandbox",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.APNSVoipSandboxChannelRequest&&(o=_C(e.APNSVoipSandboxChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,UM(e,t)]:(n={$metadata:vz(e),__type:"UpdateApnsVoipSandboxChannelResponse",APNSVoipSandboxChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.APNSVoipSandboxChannelResponse=pL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),pP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:lx.filterSensitiveLog,outputFilterSensitiveLog:px.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/settings",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteApplicationSettingsRequest&&(o=eL(e.WriteApplicationSettingsRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,qM(e,t)]:(n={$metadata:vz(e),__type:"UpdateApplicationSettingsResponse",ApplicationSettingsResource:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.ApplicationSettingsResource=mL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),fP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vx.filterSensitiveLog,outputFilterSensitiveLog:yx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/baidu",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.BaiduChannelRequest&&(o=SC(e.BaiduChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,YM(e,t)]:(n={$metadata:vz(e),__type:"UpdateBaiduChannelResponse",BaiduChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.BaiduChannelResponse=yL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),hP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:wx.filterSensitiveLog,outputFilterSensitiveLog:Sx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/campaigns/{CampaignId}",void 0===e.CampaignId)throw new Error("No value provided for input HTTP label: CampaignId.");if((i=e.CampaignId).length<=0)throw new Error("Empty value provided for input HTTP label: CampaignId.");if(r=r.replace("{CampaignId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteCampaignRequest&&(o=tL(e.WriteCampaignRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,KM(e,t)]:(n={$metadata:vz(e),__type:"UpdateCampaignResponse",CampaignResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.CampaignResponse=xL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),mP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ex.filterSensitiveLog,outputFilterSensitiveLog:Mx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/email",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.EmailChannelRequest&&(o=zC(e.EmailChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,GM(e,t)]:(n={$metadata:vz(e),__type:"UpdateEmailChannelResponse",EmailChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.EmailChannelResponse=zL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),vP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ix.filterSensitiveLog,outputFilterSensitiveLog:kx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d;return us(this,function(p){switch(p.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/email",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as(as({},void 0!==e.CreateNewVersion&&{"create-new-version":e.CreateNewVersion.toString()}),void 0!==e.Version&&{version:e.Version}),void 0!==e.EmailTemplateRequest&&(a=OC(e.EmailTemplateRequest,t)),void 0===a&&(a={}),a=JSON.stringify(a),[4,t.endpoint()];case 1:return s=p.sent(),u=s.hostname,c=s.protocol,l=void 0===c?"https":c,d=s.port,[2,new gs({protocol:l,hostname:u,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,JM(e,t)]:(n={$metadata:vz(e),__type:"UpdateEmailTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),gP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ax.filterSensitiveLog,outputFilterSensitiveLog:Ox.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/endpoints/{EndpointId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.EndpointId)throw new Error("No value provided for input HTTP label: EndpointId.");if((i=e.EndpointId).length<=0)throw new Error("Empty value provided for input HTTP label: EndpointId.");return r=r.replace("{EndpointId}",kc(i)),void 0!==e.EndpointRequest&&(o=jC(e.EndpointRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,WM(e,t)]:(n={$metadata:vz(e),__type:"UpdateEndpointResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),yP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Nx.filterSensitiveLog,outputFilterSensitiveLog:jx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/endpoints",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.EndpointBatchRequest&&(o=DC(e.EndpointBatchRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,QM(e,t)]:(n={$metadata:vz(e),__type:"UpdateEndpointsBatchResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),bP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Bx.filterSensitiveLog,outputFilterSensitiveLog:Vx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/gcm",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.GCMChannelRequest&&(o=$C(e.GCMChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,XM(e,t)]:(n={$metadata:vz(e),__type:"UpdateGcmChannelResponse",GCMChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.GCMChannelResponse=VL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),wP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Ux.filterSensitiveLog,outputFilterSensitiveLog:Yx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(r=r.replace("{ApplicationId}",kc(i)),void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");return r=r.replace("{JourneyId}",kc(i)),void 0!==e.WriteJourneyRequest&&(o=rL(e.WriteJourneyRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,ZM(e,t)]:(n={$metadata:vz(e),__type:"UpdateJourneyResponse",JourneyResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyResponse=QL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),_P=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Gx.filterSensitiveLog,outputFilterSensitiveLog:Wx.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/journeys/{JourneyId}/state",void 0===e.JourneyId)throw new Error("No value provided for input HTTP label: JourneyId.");if((i=e.JourneyId).length<=0)throw new Error("Empty value provided for input HTTP label: JourneyId.");if(r=r.replace("{JourneyId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.JourneyStateRequest&&(o=WC(e.JourneyStateRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,eC(e,t)]:(n={$metadata:vz(e),__type:"UpdateJourneyStateResponse",JourneyResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.JourneyResponse=QL(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),SP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Xx.filterSensitiveLog,outputFilterSensitiveLog:eE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d;return us(this,function(p){switch(p.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/push",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as(as({},void 0!==e.Version&&{version:e.Version}),void 0!==e.CreateNewVersion&&{"create-new-version":e.CreateNewVersion.toString()}),void 0!==e.PushNotificationTemplateRequest&&(a=wI(e.PushNotificationTemplateRequest,t)),void 0===a&&(a={}),a=JSON.stringify(a),[4,t.endpoint()];case 1:return s=p.sent(),u=s.hostname,c=s.protocol,l=void 0===c?"https":c,d=s.port,[2,new gs({protocol:l,hostname:u,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,tC(e,t)]:(n={$metadata:vz(e),__type:"UpdatePushTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),xP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:nE.filterSensitiveLog,outputFilterSensitiveLog:iE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/recommenders/{RecommenderId}",void 0===e.RecommenderId)throw new Error("No value provided for input HTTP label: RecommenderId.");if((i=e.RecommenderId).length<=0)throw new Error("Empty value provided for input HTTP label: RecommenderId.");return r=r.replace("{RecommenderId}",kc(i)),void 0!==e.UpdateRecommenderConfiguration&&(o=GI(e.UpdateRecommenderConfiguration,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,nC(e,t)]:(n={$metadata:vz(e),__type:"UpdateRecommenderConfigurationResponse",RecommenderConfigurationResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.RecommenderConfigurationResponse=jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),EP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:uE.filterSensitiveLog,outputFilterSensitiveLog:lE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/segments/{SegmentId}",void 0===e.SegmentId)throw new Error("No value provided for input HTTP label: SegmentId.");if((i=e.SegmentId).length<=0)throw new Error("Empty value provided for input HTTP label: SegmentId.");if(r=r.replace("{SegmentId}",kc(i)),void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.WriteSegmentRequest&&(o=iL(e.WriteSegmentRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,rC(e,t)]:(n={$metadata:vz(e),__type:"UpdateSegmentResponse",SegmentResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SegmentResponse=Jk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),TP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:pE.filterSensitiveLog,outputFilterSensitiveLog:hE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/sms",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.SMSChannelRequest&&(o=FI(e.SMSChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,iC(e,t)]:(n={$metadata:vz(e),__type:"UpdateSmsChannelResponse",SMSChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.SMSChannelResponse=ez(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),MP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vE.filterSensitiveLog,outputFilterSensitiveLog:yE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d;return us(this,function(p){switch(p.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/sms",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as(as({},void 0!==e.CreateNewVersion&&{"create-new-version":e.CreateNewVersion.toString()}),void 0!==e.Version&&{version:e.Version}),void 0!==e.SMSTemplateRequest&&(a=VI(e.SMSTemplateRequest,t)),void 0===a&&(a={}),a=JSON.stringify(a),[4,t.endpoint()];case 1:return s=p.sent(),u=s.hostname,c=s.protocol,l=void 0===c?"https":c,d=s.port,[2,new gs({protocol:l,hostname:u,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,oC(e,t)]:(n={$metadata:vz(e),__type:"UpdateSmsTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),CP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:wE.filterSensitiveLog,outputFilterSensitiveLog:SE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/{TemplateType}/active-version",void 0===e.TemplateType)throw new Error("No value provided for input HTTP label: TemplateType.");if((i=e.TemplateType).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateType.");if(r=r.replace("{TemplateType}",kc(i)),void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),void 0!==e.TemplateActiveVersionRequest&&(o=qI(e.TemplateActiveVersionRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,aC(e,t)]:(n={$metadata:vz(e),__type:"UpdateTemplateActiveVersionResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),IP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:EE.filterSensitiveLog,outputFilterSensitiveLog:ME.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return us(this,function(d){switch(d.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/apps/{ApplicationId}/channels/voice",void 0===e.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((i=e.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return r=r.replace("{ApplicationId}",kc(i)),void 0!==e.VoiceChannelRequest&&(o=JI(e.VoiceChannelRequest,t)),void 0===o&&(o={}),o=JSON.stringify(o),[4,t.endpoint()];case 1:return a=d.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new gs({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,body:o})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=400?[2,sC(e,t)]:(n={$metadata:vz(e),__type:"UpdateVoiceChannelResponse",VoiceChannelResponse:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.VoiceChannelResponse=pz(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),LP=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return os(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Tz(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:IE.filterSensitiveLog,outputFilterSensitiveLog:kE.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d;return us(this,function(p){switch(p.label){case 0:if(n={"Content-Type":"application/json"},r="/v1/templates/{TemplateName}/voice",void 0===e.TemplateName)throw new Error("No value provided for input HTTP label: TemplateName.");if((i=e.TemplateName).length<=0)throw new Error("Empty value provided for input HTTP label: TemplateName.");return r=r.replace("{TemplateName}",kc(i)),o=as(as({},void 0!==e.CreateNewVersion&&{"create-new-version":e.CreateNewVersion.toString()}),void 0!==e.Version&&{version:e.Version}),void 0!==e.VoiceTemplateRequest&&(a=QI(e.VoiceTemplateRequest,t)),void 0===a&&(a={}),a=JSON.stringify(a),[4,t.endpoint()];case 1:return s=p.sent(),u=s.hostname,c=s.protocol,l=void 0===c?"https":c,d=s.port,[2,new gs({protocol:l,hostname:u,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ss(void 0,void 0,void 0,function(){var n,r;return us(this,function(i){switch(i.label){case 0:return 202!==e.statusCode&&e.statusCode>=400?[2,uC(e,t)]:(n={$metadata:vz(e),__type:"UpdateVoiceTemplateResponse",MessageBody:void 0},[4,yz(e.body,t)]);case 1:return r=i.sent(),n.MessageBody=Tk(r,t),[2,Promise.resolve(n)]}})})}(e,t)},t}(Lc),kP=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}os(t,e),t.prototype.createApp=function(e,t,n){var r=new Mz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createCampaign=function(e,t,n){var r=new Cz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createEmailTemplate=function(e,t,n){var r=new Iz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createExportJob=function(e,t,n){var r=new Lz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createImportJob=function(e,t,n){var r=new kz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createJourney=function(e,t,n){var r=new zz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createPushTemplate=function(e,t,n){var r=new Az(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createRecommenderConfiguration=function(e,t,n){var r=new Pz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createSegment=function(e,t,n){var r=new Oz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createSmsTemplate=function(e,t,n){var r=new Dz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createVoiceTemplate=function(e,t,n){var r=new Nz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteAdmChannel=function(e,t,n){var r=new Rz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteApnsChannel=function(e,t,n){var r=new jz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteApnsSandboxChannel=function(e,t,n){var r=new Fz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteApnsVoipChannel=function(e,t,n){var r=new Bz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteApnsVoipSandboxChannel=function(e,t,n){var r=new Hz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteApp=function(e,t,n){var r=new Vz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteBaiduChannel=function(e,t,n){var r=new $z(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteCampaign=function(e,t,n){var r=new Uz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEmailChannel=function(e,t,n){var r=new qz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEmailTemplate=function(e,t,n){var r=new Yz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEndpoint=function(e,t,n){var r=new Kz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteEventStream=function(e,t,n){var r=new Gz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteGcmChannel=function(e,t,n){var r=new Jz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteJourney=function(e,t,n){var r=new Wz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deletePushTemplate=function(e,t,n){var r=new Qz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteRecommenderConfiguration=function(e,t,n){var r=new Xz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteSegment=function(e,t,n){var r=new Zz(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteSmsChannel=function(e,t,n){var r=new eA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteSmsTemplate=function(e,t,n){var r=new tA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteUserEndpoints=function(e,t,n){var r=new nA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteVoiceChannel=function(e,t,n){var r=new rA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteVoiceTemplate=function(e,t,n){var r=new iA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getAdmChannel=function(e,t,n){var r=new oA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApnsChannel=function(e,t,n){var r=new aA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApnsSandboxChannel=function(e,t,n){var r=new sA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApnsVoipChannel=function(e,t,n){var r=new uA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApnsVoipSandboxChannel=function(e,t,n){var r=new cA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApp=function(e,t,n){var r=new lA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApplicationDateRangeKpi=function(e,t,n){var r=new dA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApplicationSettings=function(e,t,n){var r=new pA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getApps=function(e,t,n){var r=new fA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getBaiduChannel=function(e,t,n){var r=new hA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaign=function(e,t,n){var r=new vA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaignActivities=function(e,t,n){var r=new mA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaignDateRangeKpi=function(e,t,n){var r=new gA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaigns=function(e,t,n){var r=new wA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaignVersion=function(e,t,n){var r=new yA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCampaignVersions=function(e,t,n){var r=new bA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getChannels=function(e,t,n){var r=new _A(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getEmailChannel=function(e,t,n){var r=new SA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getEmailTemplate=function(e,t,n){var r=new xA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getEndpoint=function(e,t,n){var r=new EA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getEventStream=function(e,t,n){var r=new TA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getExportJob=function(e,t,n){var r=new MA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getExportJobs=function(e,t,n){var r=new CA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getGcmChannel=function(e,t,n){var r=new IA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getImportJob=function(e,t,n){var r=new LA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getImportJobs=function(e,t,n){var r=new kA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getJourney=function(e,t,n){var r=new zA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getJourneyDateRangeKpi=function(e,t,n){var r=new AA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getJourneyExecutionActivityMetrics=function(e,t,n){var r=new PA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getJourneyExecutionMetrics=function(e,t,n){var r=new OA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getPushTemplate=function(e,t,n){var r=new DA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getRecommenderConfiguration=function(e,t,n){var r=new NA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getRecommenderConfigurations=function(e,t,n){var r=new RA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegment=function(e,t,n){var r=new jA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegmentExportJobs=function(e,t,n){var r=new FA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegmentImportJobs=function(e,t,n){var r=new BA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegments=function(e,t,n){var r=new $A(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegmentVersion=function(e,t,n){var r=new HA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSegmentVersions=function(e,t,n){var r=new VA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSmsChannel=function(e,t,n){var r=new UA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getSmsTemplate=function(e,t,n){var r=new qA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getUserEndpoints=function(e,t,n){var r=new YA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getVoiceChannel=function(e,t,n){var r=new KA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getVoiceTemplate=function(e,t,n){var r=new GA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listJourneys=function(e,t,n){var r=new JA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForResource=function(e,t,n){var r=new WA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTemplates=function(e,t,n){var r=new XA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTemplateVersions=function(e,t,n){var r=new QA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.phoneNumberValidate=function(e,t,n){var r=new ZA(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putEvents=function(e,t,n){var r=new tP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putEventStream=function(e,t,n){var r=new eP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.removeAttributes=function(e,t,n){var r=new nP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.sendMessages=function(e,t,n){var r=new rP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.sendUsersMessages=function(e,t,n){var r=new iP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagResource=function(e,t,n){var r=new oP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagResource=function(e,t,n){var r=new aP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateAdmChannel=function(e,t,n){var r=new sP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateApnsChannel=function(e,t,n){var r=new uP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateApnsSandboxChannel=function(e,t,n){var r=new cP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateApnsVoipChannel=function(e,t,n){var r=new lP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateApnsVoipSandboxChannel=function(e,t,n){var r=new dP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateApplicationSettings=function(e,t,n){var r=new pP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateBaiduChannel=function(e,t,n){var r=new fP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateCampaign=function(e,t,n){var r=new hP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateEmailChannel=function(e,t,n){var r=new mP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateEmailTemplate=function(e,t,n){var r=new vP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateEndpoint=function(e,t,n){var r=new gP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateEndpointsBatch=function(e,t,n){var r=new yP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateGcmChannel=function(e,t,n){var r=new bP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateJourney=function(e,t,n){var r=new wP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateJourneyState=function(e,t,n){var r=new _P(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updatePushTemplate=function(e,t,n){var r=new SP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateRecommenderConfiguration=function(e,t,n){var r=new xP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateSegment=function(e,t,n){var r=new EP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateSmsChannel=function(e,t,n){var r=new TP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateSmsTemplate=function(e,t,n){var r=new MP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateTemplateActiveVersion=function(e,t,n){var r=new CP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateVoiceChannel=function(e,t,n){var r=new IP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateVoiceTemplate=function(e,t,n){var r=new LP(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(iT),{keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new Ee).getStorage()});function zP(e){var t=0;t=e.length;for(var n=e.length;n>=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function AP(){return(new Date).getTime()}function PP(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var OP={},DP=function(){function e(){}return e.clear=function(){OP={}},e.getItem=function(e){return OP[e]||null},e.setItem=function(e,t){OP[e]=t},e.removeItem=function(e){delete OP[e]},e}(),NP=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RP=function(){return function(e){this.key=e||"",this.prevNode=null,this.nextNode=null}}(),jP=function(){function e(){this.head=new RP,this.tail=new RP,this.hashtable={},this.length=0,this.head.nextNode=this.tail,this.tail.prevNode=this.head}return e.prototype.insertNodeToHead=function(e){var t=this.head.nextNode;this.head.nextNode=e,e.nextNode=t,e.prevNode=this.head,t.prevNode=e,this.length=this.length+1},e.prototype.removeNode=function(e){e.prevNode.nextNode=e.nextNode,e.nextNode.prevNode=e.prevNode,e.prevNode=null,e.nextNode=null,this.length=this.length-1},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.refresh=function(e){var t=this.hashtable[e];this.removeNode(t),this.insertNodeToHead(t)},e.prototype.insertItem=function(e){var t=new RP(e);this.hashtable[e]=t,this.insertNodeToHead(t)},e.prototype.getLastItem=function(){return this.tail.prevNode.key},e.prototype.removeItem=function(e){var t=this.hashtable[e];this.removeNode(t),delete this.hashtable[e]},e.prototype.getSize=function(){return this.length},e.prototype.containsKey=function(e){return e in this.hashtable},e.prototype.clearList=function(){var e,t;try{for(var n=NP(Object.keys(this.hashtable)),r=n.next();!r.done;r=n.next()){var i=r.value;this.hashtable.hasOwnProperty(i)&&delete this.hashtable[i]}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.head.nextNode=this.tail,this.tail.prevNode=this.head,this.length=0},e.prototype.getKeys=function(){return Object.keys(this.hashtable)},e.prototype.isHeadNode=function(e){return this.hashtable[e].prevNode===this.head},e.prototype.isTailNode=function(e){return this.hashtable[e].nextNode===this.tail},e}(),FP=new a("StorageCache"),BP=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){PP(this.config.capacityInBytes)||(FP.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=kP.capacityInBytes),PP(this.config.itemMaxSize)||(FP.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=kP.itemMaxSize),PP(this.config.defaultTTL)||(FP.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=kP.defaultTTL),PP(this.config.defaultPriority)||(FP.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=kP.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(FP.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=kP.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(FP.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=kP.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(FP.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=kP.warningThreshold);this.config.capacityInBytes>5242880&&(FP.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=kP.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:AP(),visitedTime:AP(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=zP(JSON.stringify(r)),r.byteSize=zP(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&FP.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),HP=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VP=new a("Cache"),$P=new(function(e){function t(t){var n=this,r=t?Object.assign({},kP,t):kP;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return HP(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=AP(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return AP()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(e){this._decreaseCurSizeInBytes(t.byteSize),VP.error("Failed to set item "+e)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)VP.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)VP.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var a=this.config.storage.getItem(r);if(a&&this._removeItem(r,JSON.parse(a).byteSize),this._isCacheFull(o.byteSize)){var s=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var u=this._sizeToPop(o.byteSize);this._popOutItems(s,u)}}this._setItem(r,o)}catch(e){VP.warn("setItem failed! "+e)}}}else VP.warn("The value of item should not be undefined!");else VP.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){VP.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return VP.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(e){return VP.warn("getItem failed! "+e),null}},t.prototype.removeItem=function(e){VP.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(e){VP.warn("removeItem failed! "+e)}},t.prototype.clear=function(){VP.log("Clear Cache");for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},YP=new a("InMemoryCache"),KP=(new(function(e){function t(t){var n=this,r=t?Object.assign({},kP,t):kP;n=e.call(this,r)||this,YP.debug("now we start!"),n.cacheList=[],n.curSizeInBytes=0,n.maxPriority=5,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n);for(var i=0;i=n.expires},t.prototype._removeItem=function(e,t){this.cacheList[t].removeItem(e),this._decreaseCurSizeInBytes(JSON.parse(DP.getItem(e)).byteSize),DP.removeItem(e)},t.prototype._setItem=function(e,t,n){this.cacheList[n].insertItem(e),this._increaseCurSizeInBytes(t.byteSize),DP.setItem(e,JSON.stringify(t))},t.prototype._isCacheFull=function(e){return this.curSizeInBytes+e>this.config.capacityInBytes},t.prototype.containsKey=function(e){for(var t=this.config.keyPrefix+e,n=0;n5)YP.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)YP.warn("Item with key: "+e+" you are trying to put into is too big!");else{var a=this.containsKey(e);-1!==a&&this._removeItem(r,a-1);for(var s=this.maxPriority-1;this._isCacheFull(o.byteSize)&&s>=0;)if(this.cacheList[s].isEmpty())s-=1;else{var u=this.cacheList[s].getLastItem();this._removeItem(u,s)}this._setItem(r,o,Number(o.priority)-1)}}}else YP.warn("The value of item should not be undefined!");else YP.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return YP.warn("Invalid key: should not be empty or 'CurSize'"),null;var i=this.containsKey(e);if(-1!==i){if(!this._isExpired(r)){n=DP.getItem(r);var o=JSON.parse(n);return this.cacheList[o.priority-1].refresh(r),o.data}this._removeItem(r,i-1)}if(t&&void 0!==t.callback){var a=t.callback();return null!==a&&this.setItem(e,a,t),a}return null},t.prototype.removeItem=function(e){var t=this.config.keyPrefix+e,n=this.containsKey(e);-1!==n&&this._removeItem(t,n-1)},t.prototype.clear=function(){for(var e,t,n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},QP=this&&this.__spread||function(){for(var e=[],t=0;tthis._config.bufferSize)return XP.debug("Exceeded analytics events buffer size"),e.handlers.reject(new Error("Exceeded the size of analytics events buffer"));var n=((t={})[e.params.event.eventId]=e,t);this._buffer.push(n)},e.prototype.pause=function(){this._pause=!0},e.prototype.resume=function(){this._pause=!1},e.prototype.updateClient=function(e){this._client=e},e.prototype.flush=function(){this._flush=!0},e.prototype._startLoop=function(){this._interval&&clearInterval(this._interval);var e=this._config.flushInterval;this._interval=setInterval(this._sendBatch,e)},e.prototype._sendBatch=function(){var e=this._buffer.length;if(this._flush&&!e&&clearInterval(this._interval),!this._pause&&e){var t=this._config.flushSize,n=Math.min(t,e),r=this._buffer.splice(0,n);this._putEvents(r)}},e.prototype._putEvents=function(e){return GP(this,void 0,void 0,function(){var t,n,r,i,o;return JP(this,function(a){switch(a.label){case 0:t=this._bufferToMap(e),n=this._generateBatchEventParams(t),a.label=1;case 1:return a.trys.push([1,3,,4]),r=new tP(n),[4,this._client.send(r)];case 2:return i=a.sent(),this._processPutEventsSuccessResponse(i,t),[3,4];case 3:return o=a.sent(),[2,this._handlePutEventsFailure(o,t)];case 4:return[2]}})})},e.prototype._generateBatchEventParams=function(e){var t={ApplicationId:"",EventsRequest:{BatchItem:{}}};return Object.values(e).forEach(function(e){var n=e.params,r=n.event,i=n.timestamp,o=n.config,a=r.name,s=r.attributes,u=r.metrics,c=r.eventId,l=r.session,d=o.appId,p=o.endpointId,f=t.EventsRequest.BatchItem;t.ApplicationId=t.ApplicationId||d,f[p]||(f[p]={Endpoint:{},Events:{}}),f[p].Events[c]={EventType:a,Timestamp:new Date(i).toISOString(),Attributes:s,Metrics:u,Session:l}}),t},e.prototype._handlePutEventsFailure=function(e,t){XP.debug("_putEvents Failed: ",e);var n=e.$metadata&&e.$metadata.httpStatusCode;if(ZP.includes(n)){var r=Object.values(t);this._retry(r)}else;},e.prototype._processPutEventsSuccessResponse=function(e,t){var n=e.EventsResponse.Results,r=[];Object.entries(n).forEach(function(e){var n=WP(e,2),i=n[0],o=n[1].EventsItemResponse;Object.entries(o).forEach(function(e){var n,o,a=WP(e,2),s=a[0],u=a[1],c=u.StatusCode,l=u.Message,d=t[s],p={EventsResponse:{Results:(n={},n[i]={EventsItemResponse:(o={},o[s]={StatusCode:c,Message:l},o)},n)}};if(eO.includes(c))d.handlers.resolve(p);else{if(!ZP.includes(c)){var f=d.params.event.name;return XP.error("event "+s+" : "+f+" failed with error: "+l),d.handlers.reject(p)}r.push(d)}})}),r.length&&this._retry(r)},e.prototype._retry=function(e){var t,n=[];e.forEach(function(e){var t,r=e.params,i=r.event,o=i.eventId,a=i.name;if(r.resendLimit-- >0)return XP.debug("resending event "+o+" : "+a+" with "+r.resendLimit+" retry attempts remaining"),void n.push((t={},t[o]=e,t));XP.debug("no retry attempts remaining for event "+o+" : "+a)}),(t=this._buffer).unshift.apply(t,QP(n))},e.prototype._bufferToMap=function(e){return e.reduce(function(e,t){var n=WP(Object.entries(t),1),r=WP(n[0],2),i=r[0],o=r[1];return e[i]=o,e},{})},e}(),nO=this&&this.__assign||function(){return(nO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?(uO.debug("resending event "+e.eventName+" with "+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):uO.debug("retry times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e){return rO(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,l,d,p;return iO(this,function(f){switch(f.label){case 0:t=e.params,n=e.handlers,r=t.config,i=t.event,o=r.appId,a=r.endpointId,s=this._endpointRequest(r,C.a.transferKeyToLowerCase(i,[],["attributes","userAttributes","Attributes","UserAttributes"])),u={ApplicationId:o,EndpointId:a,EndpointRequest:s},f.label=1;case 1:return f.trys.push([1,3,,4]),c=new gP(u),[4,this.pinpointClient.send(c)];case 2:return l=f.sent(),uO.debug("updateEndpoint success",l),this._endpointGenerating=!1,this._resumeBuffer(),n.resolve(l),[2];case 3:return d=f.sent(),p={err:d,update_params:u,endpointObject:e},[2,this._handleEndpointUpdateFailure(p)];case 4:return[2]}})})},e.prototype._handleEndpointUpdateFailure=function(e){return rO(this,void 0,void 0,function(){var t,n,r,i;return iO(this,function(o){switch(t=e.err,n=e.endpointObject,r=t.$metadata&&t.$metadata.httpStatusCode,uO.debug("updateEndpoint failed",t),r){case 400:return[2,this._handleEndpointUpdateBadRequest(e)];case 403:return[2,this._handleEndpointUpdateForbidden(e)];default:if(cO.includes(r))return i=!0,[2,this._retryEndpointUpdate(n,i)];n.handlers.reject(t)}return[2]})})},e.prototype._handleEndpointUpdateBadRequest=function(e){return rO(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return iO(this,function(u){switch(u.label){case 0:if(t=e.err,n=e.update_params,r=e.endpointObject,i=t.message,o=n.ApplicationId,a=n.EndpointRequest,!String(i).startsWith("Exceeded maximum endpoint per user count"))return[2,r.handlers.reject(t)];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._removeUnusedEndpoints(o,a.User.UserId)];case 2:return u.sent(),uO.debug("Removed unused endpoints successfully"),this._retryEndpointUpdate(r),[3,4];case 3:return s=u.sent(),uO.warn("Failed to remove unused endpoints with error: "+s),uO.warn('Please ensure you have updated your Pinpoint IAM Policy with the Action: "mobiletargeting:GetUserEndpoints" in order to get endpoints info of the user'),[2,r.handlers.reject(s)];case 4:return[2]}})})},e.prototype._handleEndpointUpdateForbidden=function(e){var t=e.err,n=e.endpointObject,r=t.code,i=t.retryable;if("ExpiredTokenException"!==r&&!i)return n.handlers.reject(t);this._retryEndpointUpdate(n)},e.prototype._retryEndpointUpdate=function(e,t){void 0===t&&(t=!1),uO.debug("_retryEndpointUpdate",e);var n=e.params,r=n.config.resendLimit;if(n.resendLimit="number"==typeof n.resendLimit?n.resendLimit:r,n.resendLimit-- >0)return uO.debug("resending endpoint update "+n.event.eventId+" with "+n.resendLimit+" retry attempts remaining"),void(this._endpointBuffer.length?this._endpointBuffer.unshift(e):this._updateEndpoint(e));uO.warn("resending endpoint update "+n.event.eventId+" failed after "+n.config.resendLimit+" attempts"),this._endpointGenerating&&uO.error("Initial endpoint update failed. ")},e.prototype._removeUnusedEndpoints=function(e,t){return rO(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f;return iO(this,function(h){switch(h.label){case 0:return h.trys.push([0,6,,7]),n=new YA({ApplicationId:e,UserId:t}),[4,this.pinpointClient.send(n)];case 1:for(r=h.sent(),i=r.EndpointsResponse.Item,uO.debug("get endpoints associated with the userId: "+t+" with data",i),o=i[0],a=1;a0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},yO=this&&this.__spread||function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;for(var mD=n("Cohg"),vD=n("i8qg"),gD={},yD={},bD=0;bD<256;bD++){var wD=bD.toString(16).toLowerCase();1===wD.length&&(wD="0"+wD),gD[bD]=wD,yD[wD]=bD}function _D(e){for(var t="",n=0;n0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&xD(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&xD(e),parseInt(_D(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function xD(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var ED,TD=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,i,o=[];try{for(var a=Object(Te.__values)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var l=new Uint8Array(o.reduce(function(e,t){return e+t.byteLength},0)),d=0;try{for(var p=Object(Te.__values)(o),f=p.next();!f.done;f=p.next()){var h=f.value;l.set(h,d),d+=h.byteLength}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}return l},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 r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(SD.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!DD.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;n0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&KD(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&KD(e),parseInt(qD(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function KD(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var GD,JD=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,i,o=[];try{for(var a=Object(Te.__values)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var l=new Uint8Array(o.reduce(function(e,t){return e+t.byteLength},0)),d=0;try{for(var p=Object(Te.__values)(o),f=p.next();!f.done;f=p.next()){var h=f.value;l.set(h,d),d+=h.byteLength}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}return l},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 r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(YD.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!oN.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var yN=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var bN=function(){return(bN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var _N=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(bN(bN({},this),{headers:bN({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce(function(e,n){var r,i=t[n];return bN(bN({},e),((r={})[n]=Array.isArray(i)?function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xN(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,EN)}function EN(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */for(var TN=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null===t||void 0===t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var o=e.path;if(e.query){var a=function(e){var t,n,r=[];try{for(var i=SN(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=xN(a),Array.isArray(s))for(var u=0,c=s.length;u>=PN;var c=i/4*3;o>>=a%ON;for(var l=Math.floor(a/ON),d=0;d>p)}}return new Uint8Array(n)}var RN=function(e){return function(){throw new Error(e)}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var jN=function(){return(jN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>c]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:RN("Credential is missing"),defaultUserAgent:function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}(mD.name,mD.version),eventStreamSerdeProvider:function(e){return new fN(e)},maxAttempts:3,region:RN("Region is missing"),requestHandler:new TN,sha256:Pe.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return mN(this,void 0,void 0,function(){var t,n;return vN(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=NN(t),[2,new Uint8Array(n)]}})})}(e):function(e){return mN(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return vN(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=u.sent(),o=i.done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=o,[3,1];case 3:return[2,t]}})})}(e)},urlParser:dt,utf8Decoder:mt.fromUtf8,utf8Encoder:mt.toUtf8});var uR=function(){return(uR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),TR)}}},CR=function(e){return e};function IR(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function LR(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var RR=function(){return(RR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function HR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var VR="X-Amz-Date".toLowerCase(),$R=["authorization",VR,"date"],UR="X-Amz-Signature".toLowerCase(),qR="x-amz-content-sha256",YR="X-Amz-Security-Token".toLowerCase(),KR={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},GR=/^proxy-/,JR=/^sec-/,WR="AWS4-HMAC-SHA256-PAYLOAD",QR="UNSIGNED-PAYLOAD",XR=50,ZR="aws4_request",ej={},tj=[];function nj(e,t,n){return e+"/"+t+"/"+n+"/"+ZR}for(var rj={},ij={},oj=0;oj<256;oj++){var aj=oj.toString(16).toLowerCase();1===aj.length&&(aj="0"+aj),rj[oj]=aj,ij[aj]=oj}function sj(e){for(var t="",n=0;n-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function pj(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var fj=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=vj(r),this.credentialProvider=gj(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),jR(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E;return FR(this,function(T){switch(T.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,i=t.expiresIn,o=void 0===i?3600:i,a=t.unsignableHeaders,s=t.signableHeaders,u=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return l=T.sent(),null===u||void 0===u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=T.sent(),T.label=4;case 4:return d=p,f=hj(r),h=f.longDate,m=f.shortDate,o>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=nj(m,d,null!==c&&void 0!==c?c:this.service),g=function(e){var t,n,r="function"==typeof e.clone?e.clone():lj(e),i=r.headers,o=r.query,a=void 0===o?{}:o;try{for(var s=BR(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"x-amz-"===c.toLowerCase().substr(0,6)&&(a[c]=i[c],delete i[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return RR(RR({},e),{headers:i,query:a})}(dj(e)),l.sessionToken&&(g.query["X-Amz-Security-Token"]=l.sessionToken),g.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",g.query["X-Amz-Credential"]=l.accessKeyId+"/"+v,g.query["X-Amz-Date"]=h,g.query["X-Amz-Expires"]=o.toString(10),y=uj(g,a,s),g.query["X-Amz-SignedHeaders"]=mj(y),b=g.query,w="X-Amz-Signature",_=this.getSignature,S=[h,v,this.getSigningKey(l,d,m,c)],x=this.createCanonicalRequest,E=[g,y],[4,cj(e,this.sha256)]);case 5:return[4,_.apply(this,S.concat([x.apply(this,E.concat([T.sent()]))]))];case 6:return b[w]=T.sent(),[2,g]}})})},e.prototype.sign=function(e,t){return jR(this,void 0,void 0,function(){return FR(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return jR(this,void 0,void 0,function(){var e,t,i,c,l,d,p,f,h,m,v;return FR(this,function(g){switch(g.label){case 0:return null===s||void 0===s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,i=hj(o),c=i.shortDate,l=i.longDate,d=nj(c,e,null!==u&&void 0!==u?u:this.service),[4,cj({headers:{},body:r},this.sha256)];case 4:return p=g.sent(),(f=new this.sha256).update(n),m=sj,[4,f.digest()];case 5:return h=m.apply(void 0,[g.sent()]),v=[WR,l,d,a,h,p].join("\n"),[2,this.signString(v,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signingRegion,a=n.signingService;return jR(this,void 0,void 0,function(){var t,n,r,s,u,c,l,d;return FR(this,function(p){switch(p.label){case 0:return[4,this.credentialProvider()];case 1:return t=p.sent(),null===o||void 0===o?[3,2]:(r=o,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=p.sent(),p.label=4;case 4:return n=r,s=hj(i).shortDate,l=(c=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(l.apply(c,[void 0,p.sent()]))).update(e),d=sj,[4,u.digest()];case 6:return[2,d.apply(void 0,[p.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return jR(this,void 0,void 0,function(){var t,n,r,c,l,d,p,f,h,m,v;return FR(this,function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,c=dj(e),l=hj(i),d=l.longDate,p=l.shortDate,f=nj(p,n,null!==u&&void 0!==u?u:this.service),c.headers[VR]=d,t.sessionToken&&(c.headers[YR]=t.sessionToken),[4,cj(c,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=BR(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(qR,c.headers)&&this.applyChecksum&&(c.headers[qR]=h),m=uj(c,a,o),[4,this.getSignature(d,f,this.getSigningKey(t,n,p,u),this.createCanonicalRequest(c,m,h))];case 6:return v=g.sent(),c.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+mj(m)+", Signature="+v,[2,c]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],a={},s=function(e){if(e.toLowerCase()===UR)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=xN(e)+"="+xN(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([xN(e)+"="+xN(n)])},[]).join("&"))};try{for(var u=BR(Object.keys(i).sort()),c=u.next();!c.done;c=u.next())s(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+r.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return jR(this,void 0,void 0,function(){var r,i;return FR(this,function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+sj(i)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return jR(this,void 0,void 0,function(){var i,o,a,s,u;return FR(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=c.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(o=new(s.apply(a,[void 0,c.sent()]))).update(i),u=sj,[4,o.digest()];case 3:return[2,u.apply(void 0,[c.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,i){var o=n+":"+r+":"+i+":"+t.accessKeyId+":"+t.sessionToken;if(o in ej)return ej[o];for(tj.push(o);tj.length>XR;)delete ej[tj.shift()];return ej[o]=new Promise(function(a,s){var u,c,l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then(function(n){return r=t,(i=new e(n)).update(r),i.digest();var r,i})).catch(function(){})};try{for(var p=BR([n,r,i,ZR]),f=p.next();!f.done;f=p.next())d(f.value)}catch(e){u={error:e}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}l.then(a,function(e){delete ej[o],s(e)})})}(this.sha256,e,n,t,r||this.service)},e}(),hj=function(e){var t=pj(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},mj=function(e){return Object.keys(e).sort().join(";")},vj=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},gj=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function yj(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var bj=function(e,t){return Math.abs(wj(t).getTime()-e)>=3e5},wj=function(e){return new Date(Date.now()+e)};var _j={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},Sj=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(r){return OR(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return DR(this,function(f){switch(f.label){case 0:return _N.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return i=o,s=t,u=[PR({},r)],p={},[4,i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,s.apply(void 0,[PR.apply(void 0,u.concat([(p.request=f.sent(),p)]))])];case 5:return a=f.sent(),c=a.response.headers,(l=c&&(c.date||c.Date))&&(d=Date.parse(l),bj(d,e.systemClockOffset)&&(e.systemClockOffset=d-Date.now())),[2,a]}})})}}}(e),_j)}}};var xj=function(){return(xj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ij(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Lj(){for(var e=[],t=0;t-1||"name"in e&&t.indexOf(e.name)>-1)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Nj=function(e,t){return(Nj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Rj(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var jj=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=400?[2,CH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),$$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Yj.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.CreateStream"},r=JSON.stringify(mV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,IH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),U$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Gj.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DecreaseStreamRetentionPeriod"},r=JSON.stringify(vV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,LH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),q$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Wj.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DeleteStream"},r=JSON.stringify(gV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,kH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),Y$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:Xj.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DeregisterStreamConsumer"},r=JSON.stringify(yV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,zH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),K$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:eF.filterSensitiveLog,outputFilterSensitiveLog:nF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DescribeLimits"},r=JSON.stringify(bV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,AH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=KV(n,t),i=dD({$metadata:A$(e),__type:"DescribeLimitsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),G$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:uF.filterSensitiveLog,outputFilterSensitiveLog:lF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DescribeStream"},r=JSON.stringify(_V(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,PH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=JV(n,t),i=dD({$metadata:A$(e),__type:"DescribeStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),J$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:iF.filterSensitiveLog,outputFilterSensitiveLog:aF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DescribeStreamConsumer"},r=JSON.stringify(wV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,OH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=GV(n,t),i=dD({$metadata:A$(e),__type:"DescribeStreamConsumerOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),W$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:pF.filterSensitiveLog,outputFilterSensitiveLog:hF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DescribeStreamSummary"},r=JSON.stringify(SV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,DH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=WV(n,t),i=dD({$metadata:A$(e),__type:"DescribeStreamSummaryOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),Q$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vF.filterSensitiveLog,outputFilterSensitiveLog:xF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.DisableEnhancedMonitoring"},r=JSON.stringify(xV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,NH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=XV(n,t),i=dD({$metadata:A$(e),__type:"EnhancedMonitoringOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),X$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:yF.filterSensitiveLog,outputFilterSensitiveLog:xF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.EnableEnhancedMonitoring"},r=JSON.stringify(EV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,RH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=XV(n,t),i=dD({$metadata:A$(e),__type:"EnhancedMonitoringOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),Z$=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:LF.filterSensitiveLog,outputFilterSensitiveLog:zF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.GetRecords"},r=JSON.stringify(TV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,jH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=t$(n,t),i=dD({$metadata:A$(e),__type:"GetRecordsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),eU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:PF.filterSensitiveLog,outputFilterSensitiveLog:DF.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.GetShardIterator"},r=JSON.stringify(MV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,FH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=n$(n,t),i=dD({$metadata:A$(e),__type:"GetShardIteratorOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),tU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:FF.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.IncreaseStreamRetentionPeriod"},r=JSON.stringify(CV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,BH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),nU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:iB.filterSensitiveLog,outputFilterSensitiveLog:aB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.ListShards"},r=JSON.stringify(IV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,HH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=d$(n,t),i=dD({$metadata:A$(e),__type:"ListShardsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),rU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:uB.filterSensitiveLog,outputFilterSensitiveLog:lB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.ListStreamConsumers"},r=JSON.stringify(LV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,VH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=p$(n,t),i=dD({$metadata:A$(e),__type:"ListStreamConsumersOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),iU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:pB.filterSensitiveLog,outputFilterSensitiveLog:hB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.ListStreams"},r=JSON.stringify(kV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,$H(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=f$(n,t),i=dD({$metadata:A$(e),__type:"ListStreamsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),oU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vB.filterSensitiveLog,outputFilterSensitiveLog:yB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.ListTagsForStream"},r=JSON.stringify(zV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,UH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=h$(n,t),i=dD({$metadata:A$(e),__type:"ListTagsForStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),aU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:wB.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.MergeShards"},r=JSON.stringify(AV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,qH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),sU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:TB.filterSensitiveLog,outputFilterSensitiveLog:CB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.PutRecord"},r=JSON.stringify(OV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,YH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=g$(n,t),i=dD({$metadata:A$(e),__type:"PutRecordOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),uU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:LB.filterSensitiveLog,outputFilterSensitiveLog:zB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.PutRecords"},r=JSON.stringify(DV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,KH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=y$(n,t),i=dD({$metadata:A$(e),__type:"PutRecordsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),cU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:FB.filterSensitiveLog,outputFilterSensitiveLog:HB.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.RegisterStreamConsumer"},r=JSON.stringify(RV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,GH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=_$(n,t),i=dD({$metadata:A$(e),__type:"RegisterStreamConsumerOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),lU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:$B.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.RemoveTagsFromStream"},r=JSON.stringify(jV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,JH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),dU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:eH.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.SplitShard"},r=JSON.stringify(FV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,WH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),pU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:iH.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.StartStreamEncryption"},r=JSON.stringify(BV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,QH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),fU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:aH.filterSensitiveLog,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.StopStreamEncryption"},r=JSON.stringify(HV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n;return fD(this,function(r){switch(r.label){case 0:return e.statusCode>=400?[2,XH(e,t)]:[4,P$(e.body,t)];case 1:return r.sent(),n={$metadata:A$(e)},[2,Promise.resolve(n)]}})})}(e,t)},t}(Oj),hU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:vH.filterSensitiveLog,outputFilterSensitiveLog:yH.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.SubscribeToShard"},r=JSON.stringify(VV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,ZH(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=L$(n,t),i=dD({$metadata:A$(e),__type:"SubscribeToShardOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj),mU=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return lD(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(H$(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:SH.filterSensitiveLog,outputFilterSensitiveLog:EH.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r;return fD(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Kinesis_20131202.UpdateShardCount"},r=JSON.stringify(qV(e,t)),[2,O$(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return pD(void 0,void 0,void 0,function(){var n,r,i;return fD(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,eV(e,t)]:[4,D$(e.body,t)];case 1:return n=o.sent(),r={},r=z$(n,t),i=dD({$metadata:A$(e),__type:"UpdateShardCountOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(Oj);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}lD(t,e),t.prototype.addTagsToStream=function(e,t,n){var r=new V$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.createStream=function(e,t,n){var r=new $$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.decreaseStreamRetentionPeriod=function(e,t,n){var r=new U$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteStream=function(e,t,n){var r=new q$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deregisterStreamConsumer=function(e,t,n){var r=new Y$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeLimits=function(e,t,n){var r=new K$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeStream=function(e,t,n){var r=new G$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeStreamConsumer=function(e,t,n){var r=new J$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeStreamSummary=function(e,t,n){var r=new W$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.disableEnhancedMonitoring=function(e,t,n){var r=new Q$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.enableEnhancedMonitoring=function(e,t,n){var r=new X$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getRecords=function(e,t,n){var r=new Z$(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getShardIterator=function(e,t,n){var r=new eU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.increaseStreamRetentionPeriod=function(e,t,n){var r=new tU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listShards=function(e,t,n){var r=new nU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listStreamConsumers=function(e,t,n){var r=new rU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listStreams=function(e,t,n){var r=new iU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForStream=function(e,t,n){var r=new oU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.mergeShards=function(e,t,n){var r=new aU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putRecord=function(e,t,n){var r=new sU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putRecords=function(e,t,n){var r=new uU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.registerStreamConsumer=function(e,t,n){var r=new cU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.removeTagsFromStream=function(e,t,n){var r=new lU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.splitShard=function(e,t,n){var r=new dU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startStreamEncryption=function(e,t,n){var r=new pU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopStreamEncryption=function(e,t,n){var r=new fU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.subscribeToShard=function(e,t,n){var r=new hU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateShardCount=function(e,t,n){var r=new mU(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(MH);var vU=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},gU=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;var kU=n("G/hq");function zU(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function AU(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var OU=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var DU=function(){return(DU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var RU=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(DU(DU({},this),{headers:DU({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce(function(e,n){var r,i=t[n];return DU(DU({},e),((r={})[n]=Array.isArray(i)?function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function FU(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,BU)}function BU(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */for(var HU=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null===t||void 0===t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var o=e.path;if(e.query){var a=function(e){var t,n,r=[];try{for(var i=jU(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=FU(a),Array.isArray(s))for(var u=0,c=s.length;u>=JU;var c=i/4*3;o>>=a%WU;for(var l=Math.floor(a/WU),d=0;d>p)}}return new Uint8Array(n)}var ZU=function(e){return function(){throw new Error(e)}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var eq=function(){return(eq=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>c]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:ZU("Credential is missing"),defaultUserAgent:function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}(kU.name,kU.version),maxAttempts:3,region:ZU("Region is missing"),requestHandler:new HU,sha256:Pe.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return zU(this,void 0,void 0,function(){var t,n;return AU(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=XU(t),[2,new Uint8Array(n)]}})})}(e):function(e){return zU(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return AU(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=u.sent(),o=i.done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=o,[3,1];case 3:return[2,t]}})})}(e)},urlParser:dt,utf8Decoder:mt.fromUtf8,utf8Encoder:mt.toUtf8});var Eq=function(){return(Eq=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),Bq)}}},Vq=function(e){return e};function $q(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function Uq(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Xq=function(){return(Xq=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nY(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var rY="X-Amz-Date".toLowerCase(),iY=["authorization",rY,"date"],oY="X-Amz-Signature".toLowerCase(),aY="x-amz-content-sha256",sY="X-Amz-Security-Token".toLowerCase(),uY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},cY=/^proxy-/,lY=/^sec-/,dY="AWS4-HMAC-SHA256-PAYLOAD",pY="UNSIGNED-PAYLOAD",fY=50,hY="aws4_request",mY={},vY=[];function gY(e,t,n){return e+"/"+t+"/"+n+"/"+hY}for(var yY={},bY={},wY=0;wY<256;wY++){var _Y=wY.toString(16).toLowerCase();1===_Y.length&&(_Y="0"+_Y),yY[wY]=_Y,bY[_Y]=wY}function SY(e){for(var t="",n=0;n-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function CY(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var IY=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=zY(r),this.credentialProvider=AY(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Zq(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E;return eY(this,function(T){switch(T.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,i=t.expiresIn,o=void 0===i?3600:i,a=t.unsignableHeaders,s=t.signableHeaders,u=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return l=T.sent(),null===u||void 0===u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=T.sent(),T.label=4;case 4:return d=p,f=LY(r),h=f.longDate,m=f.shortDate,o>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=gY(m,d,null!==c&&void 0!==c?c:this.service),g=function(e){var t,n,r="function"==typeof e.clone?e.clone():TY(e),i=r.headers,o=r.query,a=void 0===o?{}:o;try{for(var s=tY(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"x-amz-"===c.toLowerCase().substr(0,6)&&(a[c]=i[c],delete i[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return Xq(Xq({},e),{headers:i,query:a})}(MY(e)),l.sessionToken&&(g.query["X-Amz-Security-Token"]=l.sessionToken),g.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",g.query["X-Amz-Credential"]=l.accessKeyId+"/"+v,g.query["X-Amz-Date"]=h,g.query["X-Amz-Expires"]=o.toString(10),y=xY(g,a,s),g.query["X-Amz-SignedHeaders"]=kY(y),b=g.query,w="X-Amz-Signature",_=this.getSignature,S=[h,v,this.getSigningKey(l,d,m,c)],x=this.createCanonicalRequest,E=[g,y],[4,EY(e,this.sha256)]);case 5:return[4,_.apply(this,S.concat([x.apply(this,E.concat([T.sent()]))]))];case 6:return b[w]=T.sent(),[2,g]}})})},e.prototype.sign=function(e,t){return Zq(this,void 0,void 0,function(){return eY(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return Zq(this,void 0,void 0,function(){var e,t,i,c,l,d,p,f,h,m,v;return eY(this,function(g){switch(g.label){case 0:return null===s||void 0===s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,i=LY(o),c=i.shortDate,l=i.longDate,d=gY(c,e,null!==u&&void 0!==u?u:this.service),[4,EY({headers:{},body:r},this.sha256)];case 4:return p=g.sent(),(f=new this.sha256).update(n),m=SY,[4,f.digest()];case 5:return h=m.apply(void 0,[g.sent()]),v=[dY,l,d,a,h,p].join("\n"),[2,this.signString(v,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signingRegion,a=n.signingService;return Zq(this,void 0,void 0,function(){var t,n,r,s,u,c,l,d;return eY(this,function(p){switch(p.label){case 0:return[4,this.credentialProvider()];case 1:return t=p.sent(),null===o||void 0===o?[3,2]:(r=o,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=p.sent(),p.label=4;case 4:return n=r,s=LY(i).shortDate,l=(c=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(l.apply(c,[void 0,p.sent()]))).update(e),d=SY,[4,u.digest()];case 6:return[2,d.apply(void 0,[p.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return Zq(this,void 0,void 0,function(){var t,n,r,c,l,d,p,f,h,m,v;return eY(this,function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,c=MY(e),l=LY(i),d=l.longDate,p=l.shortDate,f=gY(p,n,null!==u&&void 0!==u?u:this.service),c.headers[rY]=d,t.sessionToken&&(c.headers[sY]=t.sessionToken),[4,EY(c,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=tY(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(aY,c.headers)&&this.applyChecksum&&(c.headers[aY]=h),m=xY(c,a,o),[4,this.getSignature(d,f,this.getSigningKey(t,n,p,u),this.createCanonicalRequest(c,m,h))];case 6:return v=g.sent(),c.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+kY(m)+", Signature="+v,[2,c]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],a={},s=function(e){if(e.toLowerCase()===oY)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=FU(e)+"="+FU(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([FU(e)+"="+FU(n)])},[]).join("&"))};try{for(var u=tY(Object.keys(i).sort()),c=u.next();!c.done;c=u.next())s(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+r.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Zq(this,void 0,void 0,function(){var r,i;return eY(this,function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+SY(i)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Zq(this,void 0,void 0,function(){var i,o,a,s,u;return eY(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=c.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(o=new(s.apply(a,[void 0,c.sent()]))).update(i),u=SY,[4,o.digest()];case 3:return[2,u.apply(void 0,[c.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,i){var o=n+":"+r+":"+i+":"+t.accessKeyId+":"+t.sessionToken;if(o in mY)return mY[o];for(vY.push(o);vY.length>fY;)delete mY[vY.shift()];return mY[o]=new Promise(function(a,s){var u,c,l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then(function(n){return r=t,(i=new e(n)).update(r),i.digest();var r,i})).catch(function(){})};try{for(var p=tY([n,r,i,hY]),f=p.next();!f.done;f=p.next())d(f.value)}catch(e){u={error:e}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}l.then(a,function(e){delete mY[o],s(e)})})}(this.sha256,e,n,t,r||this.service)},e}(),LY=function(e){var t=CY(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},kY=function(e){return Object.keys(e).sort().join(";")},zY=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},AY=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function PY(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var OY=function(e,t){return Math.abs(DY(t).getTime()-e)>=3e5},DY=function(e){return new Date(Date.now()+e)};var NY={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},RY=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(r){return Jq(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return Wq(this,function(f){switch(f.label){case 0:return RU.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return i=o,s=t,u=[Gq({},r)],p={},[4,i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,s.apply(void 0,[Gq.apply(void 0,u.concat([(p.request=f.sent(),p)]))])];case 5:return a=f.sent(),c=a.response.headers,(l=c&&(c.date||c.Date))&&(d=Date.parse(l),OY(d,e.systemClockOffset)&&(e.systemClockOffset=d-Date.now())),[2,a]}})})}}}(e),NY)}}};var jY=function(){return(jY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $Y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function UY(){for(var e=[],t=0;t-1||"name"in e&&t.indexOf(e.name)>-1)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var QY=function(e,t){return(QY=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function XY(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var ZY=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=400?[2,_W(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=FQ(n,t),i=MU({$metadata:OX(e),__type:"CreateDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),qX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:mK.filterSensitiveLog,outputFilterSensitiveLog:gK.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.DeleteDeliveryStream"},r=JSON.stringify(qW(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,SW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=BQ(n,t),i=MU({$metadata:OX(e),__type:"DeleteDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),YX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:IK.filterSensitiveLog,outputFilterSensitiveLog:kK.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.DescribeDeliveryStream"},r=JSON.stringify(KW(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,xW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=VQ(n,t),i=MU({$metadata:OX(e),__type:"DescribeDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),KX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:DG.filterSensitiveLog,outputFilterSensitiveLog:RG.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.ListDeliveryStreams"},r=JSON.stringify(cQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,EW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=iX(n,t),i=MU({$metadata:OX(e),__type:"ListDeliveryStreamsOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),GX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:FG.filterSensitiveLog,outputFilterSensitiveLog:HG.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.ListTagsForDeliveryStream"},r=JSON.stringify(dQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,TW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=aX(n,t),i=MU({$metadata:OX(e),__type:"ListTagsForDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),JX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:uJ.filterSensitiveLog,outputFilterSensitiveLog:lJ.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.PutRecordBatch"},r=JSON.stringify(gQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,CW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=fX(n,t),i=MU({$metadata:OX(e),__type:"PutRecordBatchOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),WX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:hJ.filterSensitiveLog,outputFilterSensitiveLog:mJ.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.PutRecord"},r=JSON.stringify(bQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,MW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=mX(n,t),i=MU({$metadata:OX(e),__type:"PutRecordOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),QX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:JJ.filterSensitiveLog,outputFilterSensitiveLog:QJ.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.StartDeliveryStreamEncryption"},r=JSON.stringify(LQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,IW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=CX(n,t),i=MU({$metadata:OX(e),__type:"StartDeliveryStreamEncryptionOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),XX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:ZJ.filterSensitiveLog,outputFilterSensitiveLog:tW.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.StopDeliveryStreamEncryption"},r=JSON.stringify(kQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,LW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=IX(n,t),i=MU({$metadata:OX(e),__type:"StopDeliveryStreamEncryptionOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),ZX=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:iW.filterSensitiveLog,outputFilterSensitiveLog:aW.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.TagDeliveryStream"},r=JSON.stringify(zQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,kW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=kX(n,t),i=MU({$metadata:OX(e),__type:"TagDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),eZ=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:uW.filterSensitiveLog,outputFilterSensitiveLog:lW.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.UntagDeliveryStream"},r=JSON.stringify(PQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,zW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=zX(n,t),i=MU({$metadata:OX(e),__type:"UntagDeliveryStreamOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),tZ=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return TU(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use($X(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,inputFilterSensitiveLog:pW.filterSensitiveLog,outputFilterSensitiveLog:hW.filterSensitiveLog},o=t.requestHandler;return r.resolve(function(e){return o.handle(e.request,n||{})},i)},t.prototype.serialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r;return IU(this,function(i){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"Firehose_20150804.UpdateDestination"},r=JSON.stringify(OQ(e,t)),[2,NX(t,n,"/",void 0,r)]})})}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return CU(void 0,void 0,void 0,function(){var n,r,i;return IU(this,function(o){switch(o.label){case 0:return e.statusCode>=400?[2,AW(e,t)]:[4,RX(e.body,t)];case 1:return n=o.sent(),r={},r=AX(n,t),i=MU({$metadata:OX(e),__type:"UpdateDestinationOutput"},r),[2,Promise.resolve(i)]}})})}(e,t)},t}(JY),nZ=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}TU(t,e),t.prototype.createDeliveryStream=function(e,t,n){var r=new UX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteDeliveryStream=function(e,t,n){var r=new qX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeDeliveryStream=function(e,t,n){var r=new YX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listDeliveryStreams=function(e,t,n){var r=new KX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForDeliveryStream=function(e,t,n){var r=new GX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putRecord=function(e,t,n){var r=new WX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.putRecordBatch=function(e,t,n){var r=new JX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.startDeliveryStreamEncryption=function(e,t,n){var r=new QX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.stopDeliveryStreamEncryption=function(e,t,n){var r=new XX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagDeliveryStream=function(e,t,n){var r=new ZX(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagDeliveryStream=function(e,t,n){var r=new eZ(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateDestination=function(e,t,n){var r=new tZ(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(wW),this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),rZ=new a("AWSKineisFirehoseProvider"),iZ=function(e){function t(t){return e.call(this,t)||this}return nZ(t,e),t.prototype.getProviderName=function(){return"AWSKinesisFirehose"},t.prototype._sendEvents=function(e){var t=this;if(0!==e.length){var n=e[0],r=n.config,i=n.credentials;if(!this._init(r,i))return!1;var o={};e.map(function(e){var t=e.event,n=t.streamName,r=t.data;void 0===o[n]&&(o[n]=[]);var i=r&&"string"!=typeof r?JSON.stringify(r):r,a={Data:Object(mt.fromUtf8)(i)};o[n].push(a)}),Object.keys(o).map(function(e){rZ.debug("putting records to kinesis",e,"with records",o[e]),t._kinesisFirehose.send(new JX({Records:o[e],DeliveryStreamName:e})).then(function(t){return rZ.debug("Upload records to stream",e)}).catch(function(e){return rZ.debug("Failed to upload records to Kinesis",e)})})}},t.prototype._init=function(e,t){if(rZ.debug("init clients"),this._kinesisFirehose&&this._config.credentials&&this._config.credentials.sessionToken===t.sessionToken&&this._config.credentials.identityId===t.identityId)return rZ.debug("no change for analytics config, directly return from init"),!0;this._config.credentials=t;var n=e.region;return this._initFirehose(n,t)},t.prototype._initFirehose=function(e,t){return rZ.debug("initialize kinesis firehose with credentials",t),this._kinesisFirehose=new wW({apiVersion:"2015-08-04",region:e,credentials:t}),!0},t}(xU),oZ=function(e,t){return(oZ=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])})(e,t)};function aZ(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}oZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sZ=function(){return(sZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var hZ=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var mZ=function(){return(mZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var gZ=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(mZ(mZ({},this),{headers:mZ({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce(function(e,n){var r,i=t[n];return mZ(mZ({},e),((r={})[n]=Array.isArray(i)?function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bZ(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,wZ)}function wZ(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */for(var _Z=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null===t||void 0===t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var o=e.path;if(e.query){var a=function(e){var t,n,r=[];try{for(var i=yZ(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=bZ(a),Array.isArray(s))for(var u=0,c=s.length;u>=LZ;var c=i/4*3;o>>=a%kZ;for(var l=Math.floor(a/kZ),d=0;d>p)}}return new Uint8Array(n)}var PZ=function(e){return function(){throw new Error(e)}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var OZ=function(){return(OZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>c]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:PZ("Credential is missing"),defaultUserAgent:function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}(lZ.name,lZ.version),maxAttempts:3,region:PZ("Region is missing"),requestHandler:new _Z,sha256:Pe.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return dZ(this,void 0,void 0,function(){var t,n;return pZ(this,function(r){switch(r.label){case 0:return[4,function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)})}(e)];case 1:return t=r.sent(),n=AZ(t),[2,new Uint8Array(n)]}})})}(e):function(e){return dZ(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return pZ(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=u.sent(),o=i.done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=o,[3,1];case 3:return[2,t]}})})}(e)},urlParser:dt,utf8Decoder:mt.fromUtf8,utf8Encoder:mt.toUtf8});var i0=function(){return(i0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]})})}}}(e),w0)}}},S0=function(e){return e};function x0(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function E0(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var A0=function(){return(A0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N0(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var R0="X-Amz-Date".toLowerCase(),j0=["authorization",R0,"date"],F0="X-Amz-Signature".toLowerCase(),B0="x-amz-content-sha256",H0="X-Amz-Security-Token".toLowerCase(),V0={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},$0=/^proxy-/,U0=/^sec-/,q0="AWS4-HMAC-SHA256-PAYLOAD",Y0="UNSIGNED-PAYLOAD",K0=50,G0="aws4_request",J0={},W0=[];function Q0(e,t,n){return e+"/"+t+"/"+n+"/"+G0}for(var X0={},Z0={},e1=0;e1<256;e1++){var t1=e1.toString(16).toLowerCase();1===t1.length&&(t1="0"+t1),X0[e1]=t1,Z0[t1]=e1}function n1(e){for(var t="",n=0;n-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function s1(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var u1=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=d1(r),this.credentialProvider=p1(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),P0(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,d,p,f,h,m,v,g,y,b,w,_,S,x,E;return O0(this,function(T){switch(T.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,i=t.expiresIn,o=void 0===i?3600:i,a=t.unsignableHeaders,s=t.signableHeaders,u=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return l=T.sent(),null===u||void 0===u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=T.sent(),T.label=4;case 4:return d=p,f=c1(r),h=f.longDate,m=f.shortDate,o>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=Q0(m,d,null!==c&&void 0!==c?c:this.service),g=function(e){var t,n,r="function"==typeof e.clone?e.clone():o1(e),i=r.headers,o=r.query,a=void 0===o?{}:o;try{for(var s=D0(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"x-amz-"===c.toLowerCase().substr(0,6)&&(a[c]=i[c],delete i[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return A0(A0({},e),{headers:i,query:a})}(a1(e)),l.sessionToken&&(g.query["X-Amz-Security-Token"]=l.sessionToken),g.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",g.query["X-Amz-Credential"]=l.accessKeyId+"/"+v,g.query["X-Amz-Date"]=h,g.query["X-Amz-Expires"]=o.toString(10),y=r1(g,a,s),g.query["X-Amz-SignedHeaders"]=l1(y),b=g.query,w="X-Amz-Signature",_=this.getSignature,S=[h,v,this.getSigningKey(l,d,m,c)],x=this.createCanonicalRequest,E=[g,y],[4,i1(e,this.sha256)]);case 5:return[4,_.apply(this,S.concat([x.apply(this,E.concat([T.sent()]))]))];case 6:return b[w]=T.sent(),[2,g]}})})},e.prototype.sign=function(e,t){return P0(this,void 0,void 0,function(){return O0(this,function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return P0(this,void 0,void 0,function(){var e,t,i,c,l,d,p,f,h,m,v;return O0(this,function(g){switch(g.label){case 0:return null===s||void 0===s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,i=c1(o),c=i.shortDate,l=i.longDate,d=Q0(c,e,null!==u&&void 0!==u?u:this.service),[4,i1({headers:{},body:r},this.sha256)];case 4:return p=g.sent(),(f=new this.sha256).update(n),m=n1,[4,f.digest()];case 5:return h=m.apply(void 0,[g.sent()]),v=[q0,l,d,a,h,p].join("\n"),[2,this.signString(v,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signingRegion,a=n.signingService;return P0(this,void 0,void 0,function(){var t,n,r,s,u,c,l,d;return O0(this,function(p){switch(p.label){case 0:return[4,this.credentialProvider()];case 1:return t=p.sent(),null===o||void 0===o?[3,2]:(r=o,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=p.sent(),p.label=4;case 4:return n=r,s=c1(i).shortDate,l=(c=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(l.apply(c,[void 0,p.sent()]))).update(e),d=n1,[4,u.digest()];case 6:return[2,d.apply(void 0,[p.sent()])]}})})},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new Date:r,o=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return P0(this,void 0,void 0,function(){var t,n,r,c,l,d,p,f,h,m,v;return O0(this,function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,c=a1(e),l=c1(i),d=l.longDate,p=l.shortDate,f=Q0(p,n,null!==u&&void 0!==u?u:this.service),c.headers[R0]=d,t.sessionToken&&(c.headers[H0]=t.sessionToken),[4,i1(c,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=D0(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(B0,c.headers)&&this.applyChecksum&&(c.headers[B0]=h),m=r1(c,a,o),[4,this.getSignature(d,f,this.getSigningKey(t,n,p,u),this.createCanonicalRequest(c,m,h))];case 6:return v=g.sent(),c.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+l1(m)+", Signature="+v,[2,c]}})})},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],a={},s=function(e){if(e.toLowerCase()===F0)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=bZ(e)+"="+bZ(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,n){return t.concat([bZ(e)+"="+bZ(n)])},[]).join("&"))};try{for(var u=D0(Object.keys(i).sort()),c=u.next();!c.done;c=u.next())s(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+r.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return P0(this,void 0,void 0,function(){var r,i;return O0(this,function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+n1(i)]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return P0(this,void 0,void 0,function(){var i,o,a,s,u;return O0(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=c.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(o=new(s.apply(a,[void 0,c.sent()]))).update(i),u=n1,[4,o.digest()];case 3:return[2,u.apply(void 0,[c.sent()])]}})})},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,i){var o=n+":"+r+":"+i+":"+t.accessKeyId+":"+t.sessionToken;if(o in J0)return J0[o];for(W0.push(o);W0.length>K0;)delete J0[W0.shift()];return J0[o]=new Promise(function(a,s){var u,c,l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then(function(n){return r=t,(i=new e(n)).update(r),i.digest();var r,i})).catch(function(){})};try{for(var p=D0([n,r,i,G0]),f=p.next();!f.done;f=p.next())d(f.value)}catch(e){u={error:e}}finally{try{f&&!f.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}l.then(a,function(e){delete J0[o],s(e)})})}(this.sha256,e,n,t,r||this.service)},e}(),c1=function(e){var t=s1(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},l1=function(e){return Object.keys(e).sort().join(";")},d1=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},p1=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function f1(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var h1=function(e,t){return Math.abs(m1(t).getTime()-e)>=3e5},m1=function(e){return new Date(Date.now()+e)};var v1={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},g1=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(r){return L0(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,p;return k0(this,function(f){switch(f.label){case 0:return gZ.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return i=o,s=t,u=[I0({},r)],p={},[4,i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,s.apply(void 0,[I0.apply(void 0,u.concat([(p.request=f.sent(),p)]))])];case 5:return a=f.sent(),c=a.response.headers,(l=c&&(c.date||c.Date))&&(d=Date.parse(l),h1(d,e.systemClockOffset)&&(e.systemClockOffset=d-Date.now())),[2,a]}})})}}}(e),v1)}}};var y1=function(){return(y1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function x1(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function E1(){for(var e=[],t=0;t-1||"name"in e&&t.indexOf(e.name)>-1)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var z1=function(e,t){return(z1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function A1(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var P1=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,function(){for(var e=[],t=0;t=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find(function(e){return e.toLowerCase()===r.toLowerCase()}));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""};var K1=function(){return(K1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=400?[2,B1(e,t)]:(n={$metadata:$1(e)},[4,U1(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}})})}(e,t)},t}(L1),r5=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}aZ(t,e),t.prototype.putEvents=function(e,t,n){var r=new n5(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}}}(F1),n("lHK6")),i5=n.n(r5),o5=n("hygk"),a5=n.n(o5),s5=(new a("AmazonPersonalizeProvider"),function(){function e(e){void 0===e&&(e=""),this._isBrowser=C.a.browserOrNode().isBrowser,this._timerKey=Object(rt.v1)().substr(0,15),this._refreshTimer()}return e.prototype._refreshTimer=function(){this._timer&&clearInterval(this._timer);var e=this;this._timer=setInterval(function(){e._timerKey=Object(rt.v1)().substr(0,15)},3e4)},e.prototype.storeValue=function(e,t){var n=new Date,r=new Date;r.setTime(n.getTime()+6048e5),KP.setItem(this._getCachePrefix(e),t,{expires:r.getTime()})},e.prototype.retrieveValue=function(e){return KP.getItem(this._getCachePrefix(e))},e.prototype._getCachePrefix=function(e){return this._isBrowser?e+"."+window.location.host:"peronslize"},e.prototype.getTimerKey=function(){return this._timerKey},e.prototype.updateSessionInfo=function(e,t){var n=t.userId,r=t.sessionId;if(this._isRequireNewSession(e,n,r)){var i=Object(rt.v1)();this.storeValue("_awsct_uid",e),this.storeValue("_awsct_sid",i),t.sessionId=i}else this._isRequireUpdateSessionInfo(e,n,r)&&this.storeValue("_awsct_uid",e);t.userId=e},e.prototype._isRequireUpdateSessionInfo=function(e,t,n){return!i5()(n)&&i5()(t)&&!i5()(e)},e.prototype.retrieveSessionInfo=function(e){var t={};return t.trackingId=e,t.sessionId=this.retrieveValue("_awsct_sid"),t.userId=this.retrieveValue("_awsct_uid"),i5()(t.sessionId)&&(t.sessionId=Object(rt.v1)(),this.storeValue("_awsct_sid",t.sessionId)),this.storeValue("_awsct",e),t},e.prototype._isRequireNewSession=function(e,t,n){var r=i5()(n),i=i5()(e)&&!i5()(t),o=!i5()(e)&&!i5()(t)&&!a5()(e,t);return r||i||o},e}());!function(e){e.PLAY="play",e.PAUSE="pause",e.ENDED="Ended"}(Z1||(Z1={})),function(e){e.IFRAME="IFRAME",e.VIDEO="VIDEO",e.AUDIO="AUDIO"}(e5||(e5={})),function(e){e.PLAY="Play",e.ENDED="Ended",e.PAUSE="Pause",e.TIME_WATCHED="TimeWatched"}(t5||(t5={}));var u5=function(){function e(e,t){var n;this.eventActionMapping=((n={})[t5.ENDED]=this.endedEventAction.bind(this),n[t5.PLAY]=this.playEventAction.bind(this),n[t5.PAUSE]=this.pauseEventAction.bind(this),n);var r=e.eventData;this._params=e,this._mediaElement=document.getElementById(r.properties.domElementId),this._started=!1,this._provider=t,{IFRAME:this._iframeMediaTracker,VIDEO:this._html5MediaTracker,AUDIO:this._html5MediaTracker}[this._mediaElement.tagName].bind(this)(),this._initYoutubeFrame()}return e.prototype._initYoutubeFrame=function(){this._youTubeIframeLoader={src:"https://www.youtube.com/iframe_api",loading:!1,loaded:!1,listeners:[],load:function(e){var t=this;if(this.listeners.push(e),this.loaded)setTimeout(function(){t.done()});else if(!this.loading){this.loading=!0,window.onYouTubeIframeAPIReady=function(){t.loaded=!0,t.done()};var n=document.createElement("script");n.type="text/javascript",n.src=this.src,document.body.appendChild(n)}},done:function(){for(delete window.onYouTubeIframeAPIReady;this.listeners.length;)this.listeners.pop()(window.YT)}}},e.prototype._iframeMediaTracker=function(){var e=this;setInterval(function(){e._started&&e.recordEvent(e5.IFRAME,t5.TIME_WATCHED)},3e3),this._youTubeIframeLoader.load(function(t){e._iframePlayer=new t.Player(e._mediaElement.id,{events:{onStateChange:e._onPlayerStateChange.bind(e)}})})},e.prototype._onPlayerStateChange=function(e){var t={0:t5.ENDED,1:t5.PLAY,2:t5.PAUSE}[e.data];t&&this.eventActionMapping[t](e5.IFRAME)},e.prototype._html5MediaTracker=function(){var e=this;setInterval(function(){e._started&&e.recordEvent(e5.VIDEO,t5.TIME_WATCHED)},3e3),this._mediaElement.addEventListener(Z1.PLAY,function(){e.eventActionMapping[t5.PLAY](e5.VIDEO)},!1),this._mediaElement.addEventListener(Z1.PAUSE,function(){e.eventActionMapping[t5.PAUSE](e5.VIDEO)},!1),this._mediaElement.addEventListener(Z1.ENDED,function(){e.eventActionMapping[t5.ENDED](e5.VIDEO)},!1)},e.prototype.playEventAction=function(e){this._started=!0,this.recordEvent(e,t5.PLAY)},e.prototype.pauseEventAction=function(e){this._started=!1,this.recordEvent(e,t5.PAUSE)},e.prototype.endedEventAction=function(e){this._started=!1,this.recordEvent(e,t5.ENDED)},e.prototype.recordEvent=function(e,t){var n=Object.assign({},this._params),r=n.eventData;r.eventType=t,e===e5.VIDEO?(r.properties.timestamp=this._mediaElement.currentTime,r.properties.duration=this._mediaElement.duration):(r.properties.timestamp=this._financial(this._iframePlayer.getCurrentTime()),r.properties.duration=this._financial(this._iframePlayer.getDuration()));var i=parseFloat(r.properties.timestamp)/parseFloat(r.properties.duration);r.properties.eventValue=Number(i.toFixed(4)),delete r.properties.domElementId,this._provider.putToBuffer(n)},e.prototype._financial=function(e){return Number.parseFloat(e).toFixed(4)},e}(),c5=n("Q7hp"),l5=n.n(c5),d5=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},p5=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&this._config.flushSize<=m5?this._config.flushSize:h5,this._config.flushInterval=this._config.flushInterval||v5,this._sessionManager=new s5,i5()(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._isBrowser=C.a.browserOrNode().isBrowser,this._setupTimer()}return e.prototype._setupTimer=function(){this._timer&&clearInterval(this._timer);var e=this._config.flushInterval,t=this;this._timer=setInterval(function(){t._sendFromBuffer()},e)},e.prototype.record=function(e){return d5(this,void 0,void 0,function(){var t,n,r,i,o;return p5(this,function(a){switch(a.label){case 0:return[4,this._getCredentials()];case 1:return(t=a.sent())?(Object.assign(e,{config:this._config,credentials:t,sentAt:new Date}),n=e.event,r=n.eventType,i=n.properties,"Identify"===r?(this._sessionManager.updateSessionInfo(i&&i.userId?i.userId:"",this._sessionInfo),[2]):(i5()(e.event.userId)||this._sessionManager.updateSessionInfo(e.event.userId,this._sessionInfo),o=this.generateRequestParams(e,this._sessionInfo),"MediaAutoTrack"!==r?[3,7]:this._isBrowser?i5()(l5()(o,"eventData.properties.domElementId",null))?[3,3]:[4,this.isElementFullyLoaded(this.loadElement,o.eventData.properties.domElementId,500,5)]:[3,5])):[2,Promise.resolve(!1)];case 2:return a.sent()?new u5(o,this):f5.debug("Cannot find the media element."),[3,4];case 3:f5.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type."),a.label=4;case 4:return[3,6];case 5:f5.debug("MediaAutoTrack only for browser"),a.label=6;case 6:return[2];case 7:return[2,this.putToBuffer(o)]}})})},e.prototype.loadElement=function(e){return new Promise(function(t,n){return document.getElementById(e)&&document.getElementById(e).clientHeight?t(!0):n(!0)})},e.prototype.isElementFullyLoaded=function(e,t,n,r){var i=this;return new Promise(function(o,a){return e(t).then(o).catch(function(s){return r-1>0?(u=n,new Promise(function(e){return setTimeout(e,u)})).then(i.isElementFullyLoaded.bind(null,e,t,n,r-1)).then(o).catch(a):a(s);var u})})},e.prototype.getCategory=function(){return"Analytics"},e.prototype.getProviderName=function(){return"AmazonPersonalize"},e.prototype.configure=function(e){f5.debug("configure Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),i5()(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._setupTimer(),this._config},e.prototype.generateRequestParams=function(e,t){var n={},r=e.event,i=r.eventType,o=r.properties;return n.eventData={eventType:i,properties:o},n.sessionInfo=t,n.sentAt=e.sentAt,n.credentials=e.credentials,n.config=e.config,n},e.prototype._sendEvents=function(e){var t=e.length;if(0!==t){var n=e[0],r=n.config,i=n.credentials,o=n.sessionInfo;if(!this._init(r,i))return!1;if(t>0){for(var a=[],s=0;s */ t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?p/u:p*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},ulq9:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})(n("PJh5"))},upln:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},uqUo:function(e,t,n){var r=n("kM2E"),i=n("FeBl"),o=n("S82l");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"us/S":function(e,t,n){e.exports={default:n("Xd32"),__esModule:!0}},v7Lh:function(e,t,n){e.exports=function(e){var t=e.helpers,r=n("wXZ4")(e);function i(e){var t=!1,n=e.filter(function(e){switch(e){case"mouseenter":case"mouseover":case"mouseout":case"mouseleave":return t=!0,!1;default:return!0}});return t&&-1===n.indexOf("mousemove")&&n.push("mousemove"),n}return{dispatcher:function(e){var n=this.annotation,o=r.elements(this),a=t.getRelativePosition(e,this.chart),s=r.getNearestItems(o,a),u=i(n.options.events),c=n.options.dblClickSpeed,l=[],d=r.getEventHandlerName(e.type),p=(s||{}).options;if("mousemove"===e.type&&(s&&!s.hovering?["mouseenter","mouseover"].forEach(function(t){var n=r.getEventHandlerName(t),i=r.createMouseEvent(t,e);s.hovering=!0,"function"==typeof p[n]&&l.push([p[n],i,s])}):s||o.forEach(function(t){if(t.hovering){t.hovering=!1;var n=t.options;["mouseout","mouseleave"].forEach(function(i){var o=r.getEventHandlerName(i),a=r.createMouseEvent(i,e);"function"==typeof n[o]&&l.push([n[o],a,t])})}})),s&&u.indexOf("dblclick")>-1&&"function"==typeof p.onDblclick){if("click"===e.type&&"function"==typeof p.onClick)return clearTimeout(s.clickTimeout),s.clickTimeout=setTimeout(function(){delete s.clickTimeout,p.onClick.call(s,e)},c),e.stopImmediatePropagation(),void e.preventDefault();"dblclick"===e.type&&s.clickTimeout&&(clearTimeout(s.clickTimeout),delete s.clickTimeout)}s&&"function"==typeof p[d]&&0===l.length&&l.push([p[d],e,s]),l.length>0&&(e.stopImmediatePropagation(),e.preventDefault(),l.forEach(function(e){e[0].call(e[2],e[1])}))},collapseHoverEvents:i}}},v8Dt:function(e,t,n){var r=n("pTUa");e.exports=function(e){return r(this,e).get(e)}},"vFc/":function(e,t,n){var r=n("TcQ7"),i=n("QRG4"),o=n("fkB2");e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},"vIB/":function(e,t,n){"use strict";var r=n("O4g8"),i=n("kM2E"),o=n("880/"),a=n("hJx8"),s=n("/bQp"),u=n("94VQ"),c=n("e6n0"),l=n("PzxK"),d=n("dSzd")("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,h,m,v,g){u(n,t,h);var y,b,w,_=function(e){if(!p&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",x="values"==m,E=!1,T=e.prototype,M=T[d]||T["@@iterator"]||m&&T[m],C=M||_(m),I=m?x?_("entries"):C:void 0,L="Array"==t&&T.entries||M;if(L&&(w=l(L.call(new e)))!==Object.prototype&&w.next&&(c(w,S,!0),r||"function"==typeof w[d]||a(w,d,f)),x&&M&&"values"!==M.name&&(E=!0,C=function(){return M.call(this)}),r&&!g||!p&&!E&&T[d]||a(T,d,C),s[t]=C,s[S]=f,m)if(y={values:x?C:_("values"),keys:v?C:_("keys"),entries:I},g)for(b in y)b in T||o(T,b,y[b]);else i(i.P+i.F*(p||E),t,y);return y}},vJOk:function(e,t,n){var r=n("Ekz1"),i=n("VZcw");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},vOy4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return u.validateSchema}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return u.assertValidSchema}});var r=n("mexH"),i=n("AS5q"),o=n("uWn1"),a=n("EmyK"),s=n("94xs"),u=n("7b7P")},vPSl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=void 0;var r=n("uUYp"),i=n("+HF9"),o=n("Lf7X"),a=n("5IOP"),s=n("dZ4Z"),u=n("uani"),c=n("3yaZ"),l=n("XrST"),d=n("wUdp"),p=n("Bl0V"),f=n("EqjL"),h=n("b7bf"),m=n("HesH"),v=n("6QL3"),g=n("8i8s"),y=n("pvCj"),b=n("MS6H"),w=n("Ei90"),_=n("GJB4"),S=n("IzbH"),x=n("MWXf"),E=n("t9z5"),T=n("Qdvv"),M=n("giQx"),C=n("CFfv"),I=n("Yks8"),L=n("4/nl"),k=[r.ExecutableDefinitions,i.UniqueOperationNames,o.LoneAnonymousOperation,a.SingleFieldSubscriptions,s.KnownTypeNames,u.FragmentsOnCompositeTypes,c.VariablesAreInputTypes,l.ScalarLeafs,d.FieldsOnCorrectType,p.UniqueFragmentNames,f.KnownFragmentNames,h.NoUnusedFragments,m.PossibleFragmentSpreads,v.NoFragmentCycles,g.UniqueVariableNames,y.NoUndefinedVariables,b.NoUnusedVariables,w.KnownDirectives,_.UniqueDirectivesPerLocation,S.KnownArgumentNames,x.UniqueArgumentNames,E.ValuesOfCorrectType,T.ProvidedRequiredArguments,M.VariablesInAllowedPosition,C.OverlappingFieldsCanBeMerged,I.UniqueInputFieldNames];t.specifiedRules=k;var z=[L.LoneSchemaDefinition,w.KnownDirectives,_.UniqueDirectivesPerLocation,S.KnownArgumentNamesOnDirectives,x.UniqueArgumentNames,I.UniqueInputFieldNames,T.ProvidedRequiredArgumentsOnDirectives];t.specifiedSDLRules=z},vzCy:function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(c(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),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=function(){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)}.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},w2Hs:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})(n("PJh5"))},wEtr:function(e,t,n){n("gSvA"),e.exports=n("FeBl").Object.entries},wIgY:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})(n("PJh5"))},wPpW:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n("PJh5"))},wT5f:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})(n("PJh5"))},wUdp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=u,t.FieldsOnCorrectType=function(e){return{Field:function(t){var n=e.getParentType();if(n){var o=e.getFieldDef();if(!o){var s=e.getSchema(),c=t.name.value,l=function(e,t,n){if((0,a.isAbstractType)(t)){var r=[],i=Object.create(null),o=!0,s=!1,u=void 0;try{for(var c,l=e.getPossibleTypes(t)[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var d=c.value;if(d.getFields()[n]){r.push(d.name);var p=!0,f=!1,h=void 0;try{for(var m,v=d.getInterfaces()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;g.getFields()[n]&&(i[g.name]=(i[g.name]||0)+1)}}catch(e){f=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(f)throw h}}}}}catch(e){s=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}var y=Object.keys(i).sort(function(e,t){return i[t]-i[e]});return y.concat(r)}return[]}(s,n,c),d=0!==l.length?[]:function(e,t,n){if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){var r=Object.keys(t.getFields());return(0,i.default)(n,r)}return[]}(0,n,c);e.reportError(new r.GraphQLError(u(c,n.name,l,d),[t]))}}}}};var r=n("QmgZ"),i=s(n("rpV3")),o=s(n("xeWQ")),a=n("AS5q");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r){var i='Cannot query field "'.concat(e,'" on type "').concat(t,'".');if(0!==n.length){var a=(0,o.default)(n);i+=" Did you mean to use an inline fragment on ".concat(a,"?")}else 0!==r.length&&(i+=" Did you mean ".concat((0,o.default)(r),"?"));return i}},wUuN:function(e,t,n){var r=n("5g+7"),i=n("yHWW"),o=i;o.v1=r,o.v4=i,e.exports=o},wVmq:function(e,t,n){var r,i,o=n("AFCf"),a=n("3/cC"),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=h/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=d[b];return t||a(l)}},wXZ4:function(e,t){function n(){}function r(e){var t=e.annotation.elements;return Object.keys(t).map(function(e){return t[e]})}function i(){return Math.random().toString(36).substr(2,6)}function o(e){return null!==e&&void 0!==e&&("number"==typeof e?isFinite(e):!!e)}function a(e,t,n){e["$"+t]||(e[t]?(e["$"+t]=e[t].bind(e),e[t]=function(){var r=[e["$"+t]].concat(Array.prototype.slice.call(arguments));return n.apply(e,r)}):e[t]=function(){var t=[void 0].concat(Array.prototype.slice.call(arguments));return n.apply(e,t)})}function s(e,t){e.forEach(function(e){(t?e[t]:e)()})}function u(e){return"on"+e[0].toUpperCase()+e.substring(1)}function c(e,t){try{return new MouseEvent(e,t)}catch(i){try{var n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.canBubble,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n}catch(n){var r=document.createEvent("Event");return r.initEvent(e,t.canBubble,t.cancelable),r}}}e.exports=function(e){var t=e.helpers;return{initConfig:function(n){return n=t.configMerge(e.Annotation.defaults,n),t.isArray(n.annotations)&&n.annotations.forEach(function(n){n.label=t.configMerge(e.Annotation.labelDefaults,n.label)}),n},elements:r,callEach:s,noop:n,objectId:i,isValid:o,decorate:a,adjustScaleRange:function(e){var t,n,i,o,a,s=(t=e.id,n=r(e.chart),i=e.min,o=e.max,{min:(a=n.filter(function(e){return!!e._model.ranges[t]}).map(function(e){return e._model.ranges[t]})).map(function(e){return Number(e.min)}).reduce(function(e,t){return isFinite(t)&&!isNaN(t)&&te?t:e},o)});void 0===e.options.ticks.min&&void 0===e.options.ticks.suggestedMin&&(e.min=s.min),void 0===e.options.ticks.max&&void 0===e.options.ticks.suggestedMax&&(e.max=s.max),e.handleTickRangeOptions&&e.handleTickRangeOptions()},getNearestItems:function(e,n){var r=Number.POSITIVE_INFINITY;return e.filter(function(e){return e.inRange(n.x,n.y)}).reduce(function(e,i){var o=i.getCenterPoint(),a=t.distanceBetweenPoints(n,o);return ar||nr.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],d=0;d>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[d]=(f+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(r.KEY[d]+this.temp[d]|0)|0)|0,v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;l=c,c=u,u=s,s=a+m|0,a=o,o=i,i=n,n=m+v|0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=i},xC4e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n("Hw4J");var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return a(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",a(e.variableDefinitions,", "),")"),i=a(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?a([t,a([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",a(i," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return a([u("",t,": ")+n+u("(",a(r,", "),")"),a(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",a(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return a(["...",u("on ",t),a(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",a(r,", "),")")," ")+"on ".concat(n," ").concat(u("",a(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'.concat(t?n:c(n),'\n"""'):'"""'.concat(n.replace(/"$/,'"\n'),'"""')}(n,"description"===t):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+a(e.values,", ")+"]"},ObjectValue:function(e){return"{"+a(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",a(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return a(["schema",a(t," "),s(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:o(function(e){return a(["scalar",e.name,a(e.directives," ")]," ")}),ObjectTypeDefinition:o(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["type",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")}),FieldDefinition:o(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(n.every(function(e){return-1===e.indexOf("\n")})?u("(",a(n,", "),")"):u("(\n",c(a(n,"\n")),"\n)"))+": "+r+u(" ",a(i," "))}),InputValueDefinition:o(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return a([t+": "+n,u("= ",r),a(i," ")]," ")}),InterfaceTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.fields;return a(["interface",t,a(n," "),s(r)]," ")}),UnionTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.types;return a(["union",t,a(n," "),r&&0!==r.length?"= "+a(r," | "):""]," ")}),EnumTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.values;return a(["enum",t,a(n," "),s(r)]," ")}),EnumValueDefinition:o(function(e){return a([e.name,a(e.directives," ")]," ")}),InputObjectTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.fields;return a(["input",t,a(n," "),s(r)]," ")}),DirectiveDefinition:o(function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+(n.every(function(e){return-1===e.indexOf("\n")})?u("(",a(n,", "),")"):u("(\n",c(a(n,"\n")),"\n)"))+" on "+a(r," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return a(["extend schema",a(t," "),s(n)]," ")},ScalarTypeExtension:function(e){return a(["extend scalar",e.name,a(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["extend type",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return a(["extend interface",t,a(n," "),s(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return a(["extend union",t,a(n," "),r&&0!==r.length?"= "+a(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return a(["extend enum",t,a(n," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return a(["extend input",t,a(n," "),s(r)]," ")}};function o(e){return function(t){return a([t.description,e(t)],"\n")}}function a(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function s(e){return e&&0!==e.length?"{\n"+c(a(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function c(e){return e&&" "+e.replace(/\n/g,"\n ")}},xGkn:function(e,t,n){"use strict";var r=n("4mcu"),i=n("EGZi"),o=n("/bQp"),a=n("TcQ7");e.exports=n("vIB/")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"xH/j":function(e,t,n){var r=n("hJx8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},xLtR:function(e,t,n){"use strict";var r=n("cGG2"),i=n("TNV1"),o=n("pBtG"),a=n("KCLY");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},xUw9:function(e,t,n){var r=n("wVmq"),i=n("jaxX"),o=i;o.v1=r,o.v4=i,e.exports=o},xaZU:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})})(n("PJh5"))},yRnX:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},yVKS:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("TToO"),i=n("i8+n"),o="content-length";var a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},s=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(a){return Object(r.__awaiter)(t,void 0,void 0,function(){var t,s,u,c,l;return Object(r.__generator)(this,function(d){return t=a.request,i.a.isInstance(t)&&(s=t.body,u=t.headers,s&&-1===Object.keys(u).map(function(e){return e.toLowerCase()}).indexOf(o)&&void 0!==(c=e(s))&&(t.headers=Object(r.__assign)(Object(r.__assign)({},t.headers),((l={})[o]=String(c),l)))),[2,n(Object(r.__assign)(Object(r.__assign)({},a),{request:t}))]})})}}}(e.bodyLengthChecker),a)}}}},yc6H:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},yyay:function(e,t,n){var r=n("VyNF"),i=n("C0yR");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},z3hR:function(e,t,n){(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},z4hc:function(e,t,n){var r=n("aCM0"),i=n("Rh28"),o=n("UnEC"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},zDYc:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="1c25")}({"0ed3":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i0&&(this.defaultSignUpFields=this.defaultSignUpFields.filter(function(t){return!e.signUpConfig.hiddenDefaults.includes(t.key)})),this.signUpConfig&&this.signUpConfig.hideAllDefaults&&(this.defaultSignUpFields=[]),this.signUpConfig&&this.signUpConfig.signUpFields&&this.signUpConfig.signUpFields.length>0&&(this.signUpConfig.hideAllDefaults||this.signUpConfig.hideDefaults||this.defaultSignUpFields.forEach(function(t,n){-1===e.signUpConfig.signUpFields.findIndex(function(e){return e.key===t.key})&&e.signUpConfig.signUpFields.push(t)}),this.signUpConfig.signUpFields.sort(function(e,t){return e.displayOrder&&t.displayOrder?e.displayOrdert.displayOrder?1:e.key0&&this.setError("The following fields must be completed: ".concat(e.join(", "))),e.length<1},signIn:function(){p.a.$emit("authState","signIn")},clear:function(e){e&&e.invalid&&e.value&&o.a.set(e,"invalid",!1)},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},needPrefix:function(e){var t=this.options.signUpFields.find(function(t){return t.key===e});return 0!==e.indexOf("custom:")?t.custom:(0===e.indexOf("custom:")&&!1===t.custom&&this.logger.warn("Custom prefix prepended to key but custom field flag is set to false"),null)},getUsernameLabel:function(){return m[this.usernameAttributes]||this.usernameAttributes},phoneNumberChanged:function(e){var t=this.options.signUpFields.filter(function(e){return"phone_number"===e.key})[0];this.clear(t),t.value=v(e.countryCode,e.local_phone_number)}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.signUp.section}},[n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.signUp.headerSection}},[e._v(e._s(this.options.header))]),n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.signUp.bodySection}},e._l(this.orderedSignUpFields,function(t){return n("div",{key:t.key,class:e.amplifyUI.formField,attrs:{signUpField:t.key}},["phone_number"!==t.key?n("div",[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get(t.label))+" "+e._s(t.required?"*":""))]),"checkbox"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"signUpField.value"}],class:[e.amplifyUI.input,t.invalid?"invalid":""],attrs:{placeholder:e.$Amplify.I18n.get(t.label),"data-test":e.auth.signUp.nonPhoneNumberInput,type:"checkbox"},domProps:{checked:Array.isArray(t.value)?e._i(t.value,null)>-1:t.value},on:{change:[function(n){var r=t.value,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e._i(r,null);i.checked?a<0&&e.$set(t,"value",r.concat([null])):a>-1&&e.$set(t,"value",r.slice(0,a).concat(r.slice(a+1)))}else e.$set(t,"value",o)},function(n){return e.clear(t)}]}}):"radio"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"signUpField.value"}],class:[e.amplifyUI.input,t.invalid?"invalid":""],attrs:{placeholder:e.$Amplify.I18n.get(t.label),"data-test":e.auth.signUp.nonPhoneNumberInput,type:"radio"},domProps:{checked:e._q(t.value,null)},on:{change:[function(n){return e.$set(t,"value",null)},function(n){return e.clear(t)}]}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"signUpField.value"}],class:[e.amplifyUI.input,t.invalid?"invalid":""],attrs:{placeholder:e.$Amplify.I18n.get(t.label),"data-test":e.auth.signUp.nonPhoneNumberInput,type:t.type},domProps:{value:t.value},on:{change:function(n){return e.clear(t)},input:function(n){n.target.composing||e.$set(t,"value",n.target.value)}}})]):e._e(),"phone_number"===t.key?n("div",[n("amplify-phone-field",{attrs:{required:t.required,invalid:t.invalid,placeholder:t.placeholder,defaultCountryCode:e.options.defaultCountryCode},on:{"phone-number-changed":e.phoneNumberChanged}})],1):e._e()])}),0),n("div",{class:e.amplifyUI.sectionFooter,attrs:{"data-test":e.auth.signUp.footerSection}},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[n("button",{class:e.amplifyUI.button,attrs:{"data-test":e.auth.signUp.createAccountButton},on:{click:e.signUp}},[e._v(e._s(e.$Amplify.I18n.get("Create Account")))])]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[e._v("\n "+e._s(e.$Amplify.I18n.get("Have an account? "))+"\n "),n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.signUp.signInLink},on:{click:e.signIn}},[e._v(e._s(e.$Amplify.I18n.get("Sign in")))])])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports;n("b90c");function k(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var z=l({name:"SignOut",props:["signOutConfig"],data:function(){return{error:"",show:!1,amplifyUI:f,auth:y,logger:{}}},computed:{options:function(){var e={msg:null,signOutButton:this.$Amplify.I18n.get("Sign Out")};return Object.assign(e,this.signOutConfig||{})}},mounted:function(){var e,t=(e=s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.logger=new this.$Amplify.Logger(this.$options.name);case 1:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){k(o,r,i,a,s,"next",e)}function s(e){k(o,r,i,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),methods:{signOut:function(e){var t=this;this.$Amplify.Auth.signOut().then(function(){return t.logger.info("signout success"),p.a.$emit("authState","signedOut")}).catch(function(e){return t.setError(e)})},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{"data-test":e.auth.signOut.section}},[n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.options.msg))]),n("button",{class:e.amplifyUI.button,attrs:{"data-test":e.auth.signOut.button},on:{click:e.signOut}},[e._v(e._s(e.options.signOutButton))])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports,A=l({name:"ConfirmSignUp",props:["confirmSignUpConfig","usernameAttributes"],data:function(){return{code:"",error:"",logger:{},amplifyUI:f,auth:y}},computed:{options:function(){var e={username:"",header:this.$Amplify.I18n.get("Confirm Sign Up")};return Object.assign(e,this.confirmSignUpConfig||{})}},mounted:function(){if(this.logger=new this.$Amplify.Logger(this.$options.name),!this.options.username)return this.setError("Valid username not received.")},methods:{confirm:function(){var e=this;this.$Amplify.Auth.confirmSignUp(this.options.username,this.code).then(function(){e.logger.info("confirmSignUp success"),p.a.$emit("authState","signIn")}).catch(function(t){return e.setError(t)})},resend:function(){var e=this;this.$Amplify.Auth.resendSignUp(this.options.username).then(function(){e.logger.info("resendSignUp success")}).catch(function(t){return e.setError(t)})},signIn:function(){p.a.$emit("authState","signIn")},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},getUsernameLabel:function(){return m[this.usernameAttributes]||this.usernameAttributes}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.confirmSignUp.section}},[n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.confirmSignUp.headerSection}},[e._v(e._s(e.options.header))]),n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.confirmSignUp.bodySection}},[n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get(e.getUsernameLabel()))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.options.username,expression:"options.username"}],class:e.amplifyUI.input,attrs:{name:"username",placeholder:e.$Amplify.I18n.get(e.getUsernameLabel()),autofocus:"","data-test":e.auth.confirmSignUp.usernameInput},domProps:{value:e.options.username},on:{input:function(t){t.target.composing||e.$set(e.options,"username",t.target.value)}}})]),n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("Confirmation Code"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],class:e.amplifyUI.input,attrs:{name:"code",placeholder:e.$Amplify.I18n.get("Confirmation Code"),"data-test":e.auth.confirmSignUp.confirmationCodeInput},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}}),n("div",{class:e.amplifyUI.hint},[e._v("\n "+e._s(e.$Amplify.I18n.get("Lost your code? "))+"\n "),n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.confirmSignUp.resendCodeLink},on:{click:e.resend}},[e._v(e._s(e.$Amplify.I18n.get("Resend Code")))])])])]),n("div",{class:e.amplifyUI.sectionFooter},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[n("button",{class:e.amplifyUI.button,attrs:{"data-test":e.auth.confirmSignUp.confirmButton},on:{click:e.confirm}},[e._v(e._s(e.$Amplify.I18n.get("Confirm")))])]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[e._v("\n "+e._s(e.$Amplify.I18n.get("Have an account? "))+"\n "),n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.confirmSignUp.backToSignInLink},on:{click:e.signIn}},[e._v(e._s(e.$Amplify.I18n.get("Back to Sign In")))])])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports,P=l({name:"ConfirmSignIn",props:["confirmSignInConfig"],data:function(){return{verifyAttr:"",code:"",error:"",logger:{},amplifyUI:f,auth:y}},computed:{options:function(){var e={header:this.$Amplify.I18n.get("Confirm Sign In"),user:{}};return Object.assign(e,this.confirmSignInConfig||{})}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name),0===Object.keys(this.options.user).length&&this.setError("Valid user not received.")},methods:{submit:function(){var e=this;this.$Amplify.Auth.confirmSignIn(this.options.user,this.code,this.options.user.challengeName).then(function(){e.logger.info("confirmSignIn successs"),p.a.$emit("authState","signedIn")}).catch(function(t){return e.setError(t)})},signIn:function(){p.a.$emit("authState","signIn")},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.confirmSignIn.section}},[n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.confirmSignIn.headerSection}},[e._v(e._s(e.options.header))]),n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.confirmSignIn.bodySection}},[n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("Code"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],class:e.amplifyUI.input,attrs:{placeholder:e.$Amplify.I18n.get("Code"),"data-test":e.auth.confirmSignIn.codeInput},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})])]),n("div",{class:e.amplifyUI.sectionFooter},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[n("button",{class:e.amplifyUI.button,attrs:{disabled:!e.code,"data-test":e.auth.confirmSignIn.confirmButton},on:{click:e.submit}},[e._v(e._s(e.$Amplify.I18n.get("Confirm")))])]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.confirmSignIn.backToSignInLink},on:{click:e.signIn}},[e._v(e._s(e.$Amplify.I18n.get("Back to Sign In")))])])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports;o.a.component("amplify-username-field",w);var O=l({name:"ForgotPassword",props:["forgotPasswordConfig","usernameAttributes"],data:function(){return{code:"",password:"",error:"",sent:!1,logger:{},amplifyUI:f,forgotPwUsername:"",auth:y}},computed:{options:function(){var e={header:this.$Amplify.I18n.get("Reset your password")};return Object.assign(e,this.forgotPasswordConfig||{})}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name)},methods:{submit:function(){var e=this;this.$Amplify.Auth.forgotPassword(this.forgotPwUsername).then(function(){e.sent=!0,e.logger.info("forgotPassword success")}).catch(function(t){return e.setError(t)})},verify:function(){var e=this;this.$Amplify.Auth.forgotPasswordSubmit(this.forgotPwUsername,this.code,this.password).then(function(){e.logger.info("forgotPasswordSubmit success"),p.a.$emit("authState","signIn")}).catch(function(t){return e.setError(t)})},signIn:function(){p.a.$emit("authState","signIn")},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},usernameFieldChanged:function(e){var t=e.usernameField,n=e.username,r=e.email,i=e.phoneNumber;switch(t){case"username":this.forgotPwUsername=n;break;case"email":this.forgotPwUsername=r;break;case"phone_number":this.forgotPwUsername=i}}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.forgotPassword.section}},[n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.forgotPassword.headerSection}},[e._v(e._s(e.options.header))]),n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.forgotPassword.bodySection}},[n("amplify-username-field",{attrs:{usernameAttributes:e.usernameAttributes},on:{"username-field-changed":e.usernameFieldChanged}}),e.sent?n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("Code"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],class:e.amplifyUI.input,attrs:{placeholder:e.$Amplify.I18n.get("Code"),autofocus:"","data-test":e.auth.forgotPassword.codeInput},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]):e._e(),e.sent?n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("New Password"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],class:e.amplifyUI.input,attrs:{type:"password",placeholder:e.$Amplify.I18n.get("New Password"),autofocus:"","data-test":e.auth.forgotPassword.newPasswordInput},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]):e._e()],1),n("div",{class:e.amplifyUI.sectionFooter},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[e.sent?e._e():n("button",{class:e.amplifyUI.button,attrs:{disabled:!e.forgotPwUsername,"data-test":e.auth.forgotPassword.sendCodeButton},on:{click:e.submit}},[e._v(e._s(e.$Amplify.I18n.get("Send Code")))]),e.sent?n("button",{class:e.amplifyUI.button,attrs:{disabled:!e.forgotPwUsername,"data-test":e.auth.forgotPassword.submitButton},on:{click:e.verify}},[e._v(e._s(e.$Amplify.I18n.get("Submit")))]):e._e()]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[e.sent?e._e():n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.forgotPassword.backToSignInLink},on:{click:e.signIn}},[e._v(e._s(e.$Amplify.I18n.get("Back to Sign In")))]),e.sent?n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.forgotPassword.resentCodeLink},on:{click:e.submit}},[e._v(e._s(e.$Amplify.I18n.get("Resend Code")))]):e._e()])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports;var D=function(e){return e.Auth.currentAuthenticatedUser().then(function(e){return e||null}).catch(function(e){return new Error(e)})};function N(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var R=l({name:"Authenticator",props:["authConfig"],data:function(){return{user:{username:null},displayMap:{},error:"",logger:{}}},computed:{options:function(){return Object.assign({signInConfig:{},signUpConfig:{},confirmSignUpConfig:{},confirmSignInConfig:{},forgotPasswordConfig:{},mfaConfig:{},requireNewPasswordConfig:{},usernameAttributes:"username"},this.authConfig||{})}},mounted:function(){var e,t=(e=s.a.mark(function e(){var t=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.logger=new this.$Amplify.Logger(this.$options.name),p.a.$on("localUser",function(e){t.user=e,t.options.signInConfig.username=t.user.username,t.options.confirmSignInConfig.user=t.user,t.options.confirmSignUpConfig.username=t.user.username,t.options.requireNewPasswordConfig.user=t.user}),p.a.$on("authState",function(e){t.displayMap=t.updateDisplayMap(e)}),D(this.$Amplify).then(function(e){return e instanceof Error?t.displayMap=t.updateDisplayMap("signedOut"):(t.user=e,t.displayMap=t.updateDisplayMap("signedIn"))}).catch(function(e){return t.setError(e)});case 4:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){N(o,r,i,a,s,"next",e)}function s(e){N(o,r,i,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),methods:{updateDisplayMap:function(e){return{showSignIn:"signedOut"===e||"signIn"===e,showSignUp:"signUp"===e,showConfirmSignUp:"confirmSignUp"===e,showConfirmSignIn:"confirmSignIn"===e,showForgotPassword:"forgotPassword"===e,showSignOut:"signedIn"===e,showMfa:"setMfa"===e,requireNewPassword:"requireNewPassword"===e}},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.displayMap.showSignIn?n("amplify-sign-in",{attrs:{signInConfig:e.options.signInConfig,usernameAttributes:e.options.usernameAttributes}}):e._e(),e.displayMap.showSignUp?n("amplify-sign-up",{attrs:{signUpConfig:e.options.signUpConfig,usernameAttributes:e.options.usernameAttributes}}):e._e(),e.displayMap.showConfirmSignUp?n("amplify-confirm-sign-up",{attrs:{confirmSignUpConfig:e.options.confirmSignUpConfig,usernameAttributes:e.options.usernameAttributes}}):e._e(),e.displayMap.showConfirmSignIn?n("amplify-confirm-sign-in",{attrs:{confirmSignInConfig:e.options.confirmSignInConfig}}):e._e(),e.displayMap.showForgotPassword?n("amplify-forgot-password",{attrs:{forgotPasswordConfig:e.options.forgotPasswordConfig,usernameAttributes:e.options.usernameAttributes}}):e._e(),e.displayMap.requireNewPassword?n("amplify-require-new-password",{attrs:{requireNewPasswordConfig:e.options.requireNewPasswordConfig}}):e._e(),e.displayMap.showMfa?n("amplify-set-mfa",{attrs:{mfaConfig:e.options.mfaConfig}}):e._e()],1)},[],!1,null,null,null).exports,j={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8};function F(e){this.mode=j.MODE_8BIT_BYTE,this.data=e}F.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};for(var q=U,Y={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Y.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Y.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},K=0;K<8;K++)Y.EXP_TABLE[K]=1<=0;)t^=oe.G15<=0;)t^=oe.G18<>>=1;return t},getPatternPosition:function(e){return oe.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Q:return(t+n)%2==0;case X:return t%2==0;case Z:return n%3==0;case ee:return(t+n)%3==0;case te:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case ne:return t*n%2+t*n%3==0;case re:return(t*n%2+t*n%3)%2==0;case ie:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new W([1],0),n=0;n5&&(n+=3+o-5)}for(r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=se.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},ue.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},ue.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=ae.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},ue.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},ue.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=ae.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&1==(r>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},ue.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[r][a-s]){var u=!1;o>>i&1)),ae.getMask(t,r,a-s)&&(u=!u),this.modules[r][a-s]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},se.PAD0=236,se.PAD1=17,se.createData=function(e,t,n){for(var r=$.getRSBlocks(e,t),i=new q,o=0;o8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s||(i.put(se.PAD0,8),i.getLengthInBits()>=8*s));)i.put(se.PAD1,8);return se.createBytes(i,r)},se.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s=0?p.get(f):0}}var h=0;for(l=0;l-1}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}},data:function(){return{numCells:0,fgPath:""}},updated:function(){this.render()},mounted:function(){this.render()},methods:{render:function(){var e=this.value,t=this.size,n=this.level,r=this.background,i=this.foreground,o=this.renderAs,a=t>>>0,s=new ce(-1,H[n]);s.addData(function(e){for(var t="",n=0;n>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}(e)),s.make();var u=s.modules,c=a/u.length,l=a/u.length,d=window.devicePixelRatio||1;if("svg"===o)this.numCells=u.length,this.fgPath=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach(function(e,r){var i=null;e.forEach(function(o,a){if(!o&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(a-i,"v1H").concat(i+t,"z")),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(a+1-i,"v1H").concat(i+t,"z"))}})}),n.join("")}(u);else{var p=this.$refs["qrcode-vue"],f=p.getContext("2d");p.height=p.width=a*d,f.scale(d,d),u.forEach(function(e,t){e.forEach(function(e,n){f.fillStyle=e?i:r;var o=Math.ceil((n+1)*c)-Math.floor(n*c),a=Math.ceil((t+1)*l)-Math.floor(t*l);f.fillRect(Math.round(n*c),Math.round(t*l),o,a)})})}}},render:function(e){var t=this.className,n=this.value,r=this.level,i=this.background,o=this.foreground,a=this.size,s=this.renderAs,u=this.numCells,c=this.fgPath;return e("div",{class:this.class||t,attrs:{value:n,level:r,background:i,foreground:o}},["svg"===s?e("svg",{attrs:{height:a,width:a,shapeRendering:"crispEdges",viewBox:"0 0 ".concat(u," ").concat(u)},style:{width:a+"px",height:a+"px"}},[e("path",{attrs:{fill:i,d:"M0,0 h".concat(u,"v").concat(u,"H0z")}}),e("path",{attrs:{fill:o,d:c}})]):e("canvas",{attrs:{height:a,width:a},style:{width:a+"px",height:a+"px"},ref:"qrcode-vue"},[])])}}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name),this.setUser()},computed:{options:function(){return Object.assign({header:"Multifactor Authentication Preference",mfaDescription:"AWS Multi-Factor Authentication (MFA) adds an extra layer of protection on top of your user name and password.",tokenInstructions:"Scan the QR Code with your phone camera or authentication app to get the MFA code.",smsDescription:"SMS text messaging (receive a code on your mobile device)",totpDescription:"One-time password (use a QR code and MFA app to save a token on your mobile device)",noMfaDescription:"Do not enable MFA",mfaTypes:[]},this.mfaConfig||{})}},watch:{mfaPreference:function(e){"TOTP"===e&&this.setup()}},methods:{setup:function(){var e=this;this.$Amplify.Auth.setupTOTP(this.user).then(function(t){e.logger.info("setTOTP success"),e.token="otpauth://totp/AWSCognito:"+e.user.username+"?secret="+t+"&issuer=AWSCognito"}).catch(function(t){return e.setError(t)})},setUser:function(){var e,t=(e=s.a.mark(function e(){var t=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$Amplify.Auth.currentAuthenticatedUser().then(function(e){return t.logger.info("currentAuthenticatedUser success"),t.user=e||null,t.user}).catch(function(e){return t.user=null,t.setError(e),t.user});case 2:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){le(o,r,i,a,s,"next",e)}function s(e){le(o,r,i,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),setMFA:function(){var e=this;this.$Amplify.Auth.setPreferredMFA(this.user,this.mfaPreference).then(function(t){p.a.$emit("authState","signedIn"),e.$destroy()}).catch(function(t){if(t.message="User has not verified software token mfa")return e.displayTotpSetup=!0;e.setError(t)})},verifyTotpToken:function(){var e=this;this.$Amplify.Auth.verifyTotpToken(this.user,this.code).then(function(){e.logger.info("verifyTotpToken success"),e.setMFA()}).catch(function(t){return e.setError(t)})},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},cancel:function(){return this.options.cancelHandler?this.options.cancelHandler():null}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.setMFAComp.section}},[e.displayTotpSetup?e._e():n("div",{class:e.amplifyUI.sectionHeader},[e._v(e._s(e.options.header)+"\n "),n("div",{staticStyle:{"font-size":"16px",color:"#828282","margin-top":"10px"}},[e._v("\n "+e._s(e.options.mfaDescription)+"\n ")])]),e.displayTotpSetup?n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.setMFAComp.headerSection}},[e._v(e._s(e.$Amplify.I18n.get("Verify Authentication Token"))+"\n "),n("div",{staticStyle:{"font-size":"16px",color:"#828282","margin-top":"10px"}},[e._v("\n "+e._s(e.options.tokenInstructions)+"\n ")])]):e._e(),e.displayTotpSetup?e._e():n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.setMFAComp.bodySection}},[e.options.mfaTypes.includes("SMS")?n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.mfaPreference,expression:"mfaPreference"}],class:e.amplifyUI.radio,attrs:{type:"radio",name:"mfaPreference",value:"SMS","data-test":e.auth.setMFAComp.smsInput},domProps:{checked:e._q(e.mfaPreference,"SMS")},on:{change:function(t){e.mfaPreference="SMS"}}}),e._v("\n "+e._s(e.options.smsDescription)+"\n ")])]):e._e(),e.options.mfaTypes.includes("TOTP")?n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.mfaPreference,expression:"mfaPreference"}],class:e.amplifyUI.radio,attrs:{type:"radio",name:"mfaPreference",value:"TOTP","data-test":e.auth.setMFAComp.totpInput},domProps:{checked:e._q(e.mfaPreference,"TOTP")},on:{change:function(t){e.mfaPreference="TOTP"}}}),e._v(" \n "+e._s(e.options.totpDescription)+"\n ")])]):e._e(),e.options.mfaTypes.includes("None")?n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.mfaPreference,expression:"mfaPreference"}],class:e.amplifyUI.radio,attrs:{type:"radio",name:"mfaPreference",value:"NOMFA","data-test":e.auth.setMFAComp.noMfaInput},domProps:{checked:e._q(e.mfaPreference,"NOMFA")},on:{change:function(t){e.mfaPreference="NOMFA"}}}),e._v(" \n "+e._s(e.options.noMfaDescription)+"\n ")])]):e._e()]),e.displayTotpSetup?n("div",{class:e.amplifyUI.sectionBody},[n("qrcode-vue",{class:e.amplifyUI.totpQrcode,attrs:{value:e.token,size:300,level:"H"}}),n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("Verification Code"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],class:e.amplifyUI.input,attrs:{placeholder:e.$Amplify.I18n.get("Verification Code"),autofocus:"","data-test":e.auth.setMFAComp.verificationCodeInput},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})])],1):e._e(),n("div",{class:e.amplifyUI.sectionFooter},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[e.displayTotpSetup?e._e():n("button",{class:e.amplifyUI.button,attrs:{id:"setMfa","data-test":e.auth.setMFAComp.setMfaButton},on:{click:e.setMFA}},[e._v(e._s(e.$Amplify.I18n.get("Set MFA")))]),e.displayTotpSetup?n("button",{class:e.amplifyUI.button,attrs:{id:"verify","data-test":e.auth.setMFAComp.verifyTotpTokenButton},on:{click:e.verifyTotpToken}},[e._v(e._s(e.$Amplify.I18n.get("Verify Token")))]):e._e()]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.setMFAComp.cancelButton},on:{click:e.cancel}},[e._v(e._s(e.$Amplify.I18n.get("Cancel")))])])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports,pe=l({name:"RequireNewPassword",props:["requireNewPasswordConfig"],data:function(){return{user:"",error:"",password:"",logger:{},requiredAttributes:{},amplifyUI:f,auth:y}},computed:{options:function(){var e={header:this.$Amplify.I18n.get("Enter new password"),user:{challengeParam:{requiredAttributes:[]}}};return Object.assign(e,this.requireNewPasswordConfig||{})}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name)},methods:{setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},checkContact:function(e){var t=this;this.$Amplify.Auth.verifiedContact(e).then(function(e){p.a.$emit("localUser",t.user),p.a.$emit("authState","signedIn")}).catch(function(e){return t.setError(e)})},change:function(){var e=this;this.$Amplify.Auth.completeNewPassword(this.options.user,this.password,this.requiredAttributes).then(function(t){"SMS_MFA"===e.options.user.challengeName?(p.a.$emit("localUser",e.options.user),p.a.$emit("authState","confirmSignIn")):"MFA_SETUP"===e.options.user.challengeName?(p.a.$emit("localUser",e.options.user),p.a.$emit("authState","setMfa")):e.checkContact(e.options.user)}).catch(function(t){return e.setError(t)})},signIn:function(){p.a.$emit("authState","signIn")}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,attrs:{"data-test":e.auth.requireNewPassword.section}},[n("div",{class:e.amplifyUI.sectionHeader,attrs:{"data-test":e.auth.requireNewPassword.headerSection}},[e._v(e._s(e.options.header))]),n("div",{class:e.amplifyUI.sectionBody,attrs:{"data-test":e.auth.requireNewPassword.bodySection}},[n("div",{class:e.amplifyUI.formField},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(e.$Amplify.I18n.get("New Password"))+" *")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],class:e.amplifyUI.input,attrs:{type:"password",placeholder:e.$Amplify.I18n.get("New Password"),autofocus:"","data-test":e.auth.requireNewPassword.newPasswordInput},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})])]),e._l(e.options.user.challengeParam.requiredAttributes,function(t){return n("div",{key:t,class:e.amplifyUI.formField,attrs:{attribute:t}},[n("div",{class:e.amplifyUI.inputLabel},[e._v(e._s(t.charAt(0).toUpperCase()+t.slice(1)))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.requiredAttributes[t],expression:"requiredAttributes[attribute]"}],class:e.amplifyUI.input,attrs:{placeholder:t.charAt(0).toUpperCase()+t.slice(1)},domProps:{value:e.requiredAttributes[t]},on:{input:function(n){n.target.composing||e.$set(e.requiredAttributes,t,n.target.value)}}})])}),n("div",{class:e.amplifyUI.sectionFooter,attrs:{"data-test":e.auth.requireNewPassword.footerSection}},[n("span",{class:e.amplifyUI.sectionFooterPrimaryContent},[n("button",{class:e.amplifyUI.button,attrs:{disabled:!e.password,"data-test":e.auth.requireNewPassword.submitButton},on:{click:e.change}},[e._v(e._s(e.$Amplify.I18n.get("Submit")))])]),n("span",{class:e.amplifyUI.sectionFooterSecondaryContent},[n("a",{class:e.amplifyUI.a,attrs:{"data-test":e.auth.requireNewPassword.backToSignInLink},on:{click:e.signIn}},[e._v(e._s(e.$Amplify.I18n.get("Back to Sign In")))])])]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()],2)},[],!1,null,null,null).exports;o.a.component("amplify-authenticator",R),o.a.component("amplify-sign-in",_),o.a.component("amplify-sign-up",L),o.a.component("amplify-sign-out",z),o.a.component("amplify-confirm-sign-up",A),o.a.component("amplify-confirm-sign-in",P),o.a.component("amplify-forgot-password",O),o.a.component("amplify-set-mfa",de),o.a.component("amplify-require-new-password",pe);var fe=l({name:"PhotoPicker",props:["photoPickerConfig"],data:function(){return{logger:{},file:null,s3ImagePath:"",photoUrl:"",error:"",amplifyUI:f}},computed:{options:function(){var e={header:this.$Amplify.I18n.get("File Upload"),title:this.$Amplify.I18n.get("Upload"),accept:"*/*",storageOptions:{}};return Object.assign(e,this.photoPickerConfig||{})}},mounted:function(){if(this.logger=new this.$Amplify.Logger(this.$options.name),!this.options.path)return this.setError("File path not provided.");"/"!==this.options.path.substr(this.options.path.length-1)&&(this.options.path=this.options.path+"/")},methods:{upload:function(){var e=this;this.$Amplify.Storage.put(this.s3ImagePath,this.file,this.options.storageOptions).then(function(t){e.completeFileUpload(t.key)}).catch(function(t){return e.setError(t)})},pick:function(e){if(this.file=e.target.files[0],this.file){this.options.storageOptions.contentType||(this.options.storageOptions.contentType=this.file.type);var t=this.options.defaultName?this.options.defaultName:this.file.name;this.s3ImagePath="".concat(this.options.path).concat(t);var n=this,r=new FileReader;r.onload=function(e){var t=e.target.result;n.photoUrl=t},r.readAsDataURL(this.file)}},completeFileUpload:function(e){this.file=null,this.s3ImageFile=null,this.$refs.file_input.value=null,p.a.$emit("fileUpload",e)},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.formSection,staticStyle:{width:"380px"}},[n("div",{class:e.amplifyUI.sectionHeader},[e._v(e._s(e.options.header))]),n("div",{class:e.amplifyUI.sectionBody},[e.file?n("img",{staticStyle:{"max-width":"100%"},attrs:{src:e.photoUrl}}):e._e(),e.file?e._e():n("div",{class:e.amplifyUI.photoPlaceholder},[e.file?e._e():n("div",{class:e.amplifyUI.photoPlaceholderIcon},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24"}},[n("circle",{attrs:{cx:"12",cy:"12",r:"3.2"}}),n("path",{attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])]),n("input",{ref:"file_input",attrs:{type:"file",accept:e.options.accept},on:{change:e.pick}})]),e.file?n("button",{class:[e.amplifyUI.photoPickerButton,e.amplifyUI.button],attrs:{disabled:!e.file},on:{click:e.upload}},[e._v(e._s(e.options.title))]):e._e(),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,null,null).exports,he={name:"S3Album",props:["s3AlbumConfig","path"],data:function(){return{logger:{},error:"",items:[]}},computed:{options:function(){return Object.assign({},this.s3AlbumConfig||{})}},mounted:function(){var e=this;this.logger=new this.$Amplify.Logger(this.$options.name),this.getImages(),p.a.$on("fileUpload",function(t){e.pushImage(t)})},methods:{getImages:function(){var e=this;if(this.path){var t=this;this.$Amplify.Storage.list(this.path,this.options).then(function(e){t.items=e.map(function(e){return{path:e.key}})}).catch(function(t){return e.setError(t)})}else this.setError("Album path not provided")},pushImage:function(e){e?this.items.push({key:123,path:e}):this.setError("Image path not provided")},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},me=(n("f68e"),l(he,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"amplify-album"},[n("div",{staticClass:"amplify-album-container"},e._l(e.items,function(t){return n("amplify-s3-image",{key:t.key,staticClass:"amplify-image-container",attrs:{imagePath:t.path,s3ImageConfig:e.s3AlbumConfig}})}),1)]),e.error?n("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()])},[],!1,null,"77a314c9",null).exports),ve={name:"S3Image",props:["imagePath","s3ImageConfig"],data:function(){return{url:null,error:"",logger:{}}},computed:{options:function(){return Object.assign({},this.s3ImageConfig||{})}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name),this.getImage()},methods:{getImage:function(){var e=this;if(!this.imagePath)return this.setError("Image path not provided.");this.$Amplify.Storage.get(this.imagePath,this.options).then(function(t){e.url=t}).catch(function(t){return e.setError(t)})},blowUp:function(e){window.open(e)},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)}}},ge=(n("cc58"),l(ve,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("img",{staticClass:"amplify-image",attrs:{src:e.url},on:{click:function(t){return e.blowUp(e.url)}}})])},[],!1,null,"bd7c1ee0",null).exports);o.a.component("amplify-photo-picker",fe),o.a.component("amplify-s3-album",me),o.a.component("amplify-s3-image",ge);var ye=n("b93e").a,be=(n("6aba"),l(ye,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"amplify-interactions"},[n("div",{staticClass:"amplify-interactions-container"},[n("div",{staticClass:"amplify-form-container"},[n("div",{staticClass:"amplify-form-row"},[n("div",{staticClass:"amplify-interactions-conversation"},e._l(e.messages,function(t){return n("div",{key:t.meSentTime},[n("div",{staticClass:"amplify-interactions-input"},[e._v(e._s(t.me))]),n("div",{staticClass:"amplify-interactions-input-timestamp"},[e._v(e._s(t.meSentTime))]),n("div",{staticClass:"amplify-interactions-response"},[e._v(e._s(t.bot))]),n("div",{staticClass:"amplify-interactions-response-timestamp"},[e._v(e._s(t.botSentTime))])])}),0)]),n("div",{staticClass:"amplify-interactions-actions"},[e.options.textEnabled?n("input",{directives:[{name:"model",rawName:"v-model",value:e.inputText,expression:"inputText"}],staticClass:"amplify-form-input",attrs:{type:"text",placeholder:e.currentVoiceState,disabled:e.inputDisabled},domProps:{value:e.inputText},on:{keyup:e.keymonitor,input:function(t){t.target.composing||(e.inputText=t.target.value)}}}):e._e(),e.options.textEnabled?e._e():n("input",{staticClass:"amplify-form-input",attrs:{type:"text",placeholder:e.currentVoiceState,disabled:!e.options.textEnabled}}),e.options.voiceEnabled?n("button",{staticClass:"amplify-mic-button",attrs:{disabled:e.micButtonDisabled},on:{click:function(t){return e.micButtonHandler()}}},[e._v(e._s(this.micText))]):e._e(),e.options.textEnabled?n("button",{staticClass:"amplify-interactions-button",attrs:{id:"interactions-submit-button",disabled:e.inputDisabled},on:{click:function(t){return e.onSubmit(e.inputText)}}}):e._e()])])]),e.error?n("div",{staticClass:"error"},[e._v(e._s(e.error))]):e._e()])},[],!1,null,"28f9686f",null).exports);o.a.component("amplify-chatbot",be);function we(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _e(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){we(o,r,i,a,s,"next",e)}function s(e){we(o,r,i,a,s,"throw",e)}a(void 0)})}}var Se=l({name:"SumerianScene",props:["sceneName"],data:function(){return{loading:!1,loadPercentage:0,isFullscreen:!1,muted:!1,showEnableAudio:!1,isVRCapable:!1,amplifyUI:f,sumerianScene:g,sceneError:null,isVRPresentationActive:!1}},created:function(){this.SCENE_CONTAINER_DOM_ID="scene-container-dom-id",this.SCENE_DOM_ID="scene-dom-id"},mounted:function(){document.addEventListener("fullscreenchange",this.onFullscreenChange.bind(this)),document.addEventListener("webkitfullscreenchange",this.onFullscreenChange.bind(this)),document.addEventListener("mozfullscreenchange",this.onFullscreenChange.bind(this)),document.addEventListener("MSFullscreenChange",this.onFullscreenChange.bind(this)),this.loadAndStartScene()},destroyed:function(){document.removeEventListener("fullscreenchange",this.onFullscreenChange.bind(this)),document.removeEventListener("webkitfullscreenchange",this.onFullscreenChange.bind(this)),document.removeEventListener("mozfullscreenchange",this.onFullscreenChange.bind(this)),document.removeEventListener("MSFullscreenChange",this.onFullscreenChange.bind(this))},methods:{progressCallback:function(e){var t=100*e;this.loadPercentage=t},loadAndStartScene:function(){var e=_e(s.a.mark(function e(){var t,n=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,t={progressCallback:this.progressCallback},e.prev=2,e.next=5,this.$Amplify.XR.loadScene(this.sceneName,this.SCENE_DOM_ID,t);case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),this.sceneError="Failed to load scene",e.abrupt("return");case 11:this.$Amplify.XR.start(this.sceneName),this.loading=!1,this.muted=this.$Amplify.XR.isMuted(this.sceneName),this.isVRCapable=this.$Amplify.XR.isVRCapable(this.sceneName),this.isVRPresentationActive=this.$Amplify.XR.isVRPresentationActive(this.sceneName),this.$Amplify.XR.onSceneEvent(this.sceneName,"AudioEnabled",function(){return n.showEnableAudio=!1}),this.$Amplify.XR.onSceneEvent(this.sceneName,"AudioDisabled",function(){return n.showEnableAudio=!0});case 18:case"end":return e.stop()}},e,this,[[2,7]])}));return function(){return e.apply(this,arguments)}}(),setMuted:function(e){this.muted=e,this.$Amplify.XR.setMuted(this.sceneName,e),this.showEnableAudio&&(this.$Amplify.XR.enableAudio(this.sceneName),this.showEnableAudio=!1)},toggleVRPresentation:function(){try{this.isVRPresentationActive?this.$Amplify.XR.exitVR(this.sceneName):this.$Amplify.XR.enterVR(this.sceneName)}catch(e){return void logger.error("Unable to start/stop WebVR System: "+e.message)}this.isVRPresentationActive=!this.isVRPresentationActive},onFullscreenChange:function(){var e=document;this.isFullscreen=null!==e.fullscreenElement},maximize:function(){var e=_e(s.a.mark(function e(){var t;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=document.getElementById(this.SCENE_CONTAINER_DOM_ID),(t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen).call(t);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),minimize:function(){var e=_e(s.a.mark(function e(){var t;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=document).exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen();case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.amplifyUI.sumerianSceneContainer,attrs:{id:e.SCENE_CONTAINER_DOM_ID,"data-test":e.sumerianScene.container}},[n("div",{class:e.amplifyUI.sumerianScene,attrs:{id:e.SCENE_DOM_ID,"data-test":e.sumerianScene.sumerianScene}},[e.loading?n("div",{class:e.amplifyUI.loadingOverlay,attrs:{"data-test":e.sumerianScene.loading}},[n("div",{class:e.amplifyUI.loadingContainer},[n("div",{class:e.amplifyUI.loadingLogo,attrs:{"data-test":e.sumerianScene.loadingLogo}},[n("svg",{staticStyle:{"enable-background":"new 0 0 2000 1195"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2000 1195","xml:space":"preserve"}},[n("g",[n("path",{staticClass:"st0",attrs:{d:"M1026.8,146.2c-0.7,2.3-1.2,3.7-1.6,5.1C991.8,291,958.5,430.6,925,570.3c-1.6,6.7-3.8,13.3-6.2,19.7\n c-3.9,10.4-12,16.3-22.8,16.5c-26.3,0.5-52.6,0.5-78.9,0c-9.5-0.2-17.3-5.3-21.2-14.2c-4.1-9.2-7.6-18.7-10.6-28.3\n c-51-167.3-101.9-334.6-152.7-502c-2.5-8.4-4.7-16.9-6.2-25.5c-2-11.7,3.8-18.9,15.5-19c24.6-0.2,49.2,0.1,73.8,0.4\n c12,0.2,21.1,5.9,24.8,17.3c5.4,16.3,10.1,32.8,14.4,49.4c33.9,133.3,67.7,266.6,101.5,399.9c0.3,1.3,0.8,2.6,1.5,5\n c0.7-2,1.3-3,1.5-4.1c19.9-84.2,39.7-168.4,59.6-252.7c14.5-61.3,28.9-122.6,43.4-183.8c0.9-3.6,2.1-7.1,3.2-10.6\n c4-13.2,13.5-19.8,26.6-20.1c24.1-0.6,48.2-0.5,72.3,0c12.6,0.2,21.5,7.2,25.1,19.2c3.9,12.9,7.1,26,10.1,39.1\n c32.5,137.8,65,275.6,97.5,413.4c0.3,1.4,0.8,2.8,1.7,5.7c1.7-6.1,3-10.7,4.2-15.3c36.8-142.6,73.6-285.2,110.5-427.8\n c1.4-5.5,3.7-10.8,5.7-16.2c4.5-12,13.8-17.8,26.1-18.1c21.7-0.6,43.5-0.5,65.2-0.7c2.2,0,4.4,0,6.6,0.3c9.9,1,14.9,5.9,14.3,15.9\n c-0.4,7.5-1.8,15.1-4.1,22.3c-33.5,107.9-67.2,215.6-100.9,323.5c-20.5,65.7-41,131.4-61.6,197.1c-1.3,4-2.8,7.9-4.3,11.9\n c-4.9,12.9-14.9,19.1-28.1,19.4c-23.9,0.5-47.9,0.4-71.8,0c-13.6-0.2-23.3-7.1-27.2-20.2c-4.5-15.5-8.3-31.2-12.1-46.9\n c-31.2-129.6-62.3-259.3-93.4-388.9C1028,150.1,1027.5,148.7,1026.8,146.2z"}}),n("path",{staticClass:"st0",attrs:{d:"M995.7,1194.2c-23.1,0-46.2,0.8-69.3-0.2c-25.4-1.1-50.7-3.5-76-5.7c-77.9-7-154.6-20.9-230.3-40.5\n c-68.1-17.6-134.6-40.1-199.4-67.3C330.7,1042.5,245.3,996,164.5,941c-53.7-36.6-104.7-76.7-153-120.1c-3.5-3.1-6.6-6.8-9-10.8\n c-3.5-5.8-3.4-12.1,0.8-17.5c4.3-5.6,10.5-7.4,17.2-5.7c4.5,1.2,8.8,3.3,12.9,5.5c42.2,22.1,83.9,45.3,126.7,66.4\n c63.2,31.2,128.6,57.4,195.1,80.8c68.4,24,137.7,44.8,208.4,60.6c48.4,10.8,97.2,19.9,146,28.7c29.8,5.3,59.9,8.8,89.9,12.3\n c23.4,2.7,46.9,4.6,70.3,6.3c22.8,1.7,45.7,3.3,68.5,4c39.8,1.1,79.5,2.1,119.3,1.8c29.9-0.2,59.9-2,89.8-4\n c26.2-1.7,52.4-3.7,78.4-7.1c46.8-6.2,93.6-12.7,140.1-20.9c99-17.3,196-42.9,290.8-76.1c40.7-14.3,80.6-30.6,120.8-46.1\n c12-4.6,23.6-5.4,34.7,2c11.5,7.7,15.3,22.7,7.6,34.2c-4,6-9.6,11.4-15.4,15.7c-81,59.3-169.6,104.7-262.8,141.3\n c-77,30.2-156,53.6-237,70.3c-37.9,7.8-76.1,13.8-114.3,19.6c-24.7,3.7-49.7,6-74.7,8.2c-22.1,1.9-44.3,3.3-66.5,4.1\n c-17.8,0.7-35.7,0.1-53.6,0.1C995.7,1194.3,995.7,1194.2,995.7,1194.2z"}}),n("path",{staticClass:"st0",attrs:{d:"M1714.8,0c39.2,0.9,85.7,8.5,130.2,26.1c9.3,3.7,17.9,9.3,26.1,15.1c9,6.4,13.3,15.9,13.4,27.1\n c0,12,0.1,23.9,0,35.9c0,2.5-0.4,5.1-1,7.5c-2.1,8.7-7.4,12.7-16.2,11.4c-5.7-0.9-11.6-2.6-16.8-5c-46.6-21.8-95.9-30.1-147-28.3\n c-21.5,0.8-42.6,3.5-62.7,11.9c-37.6,15.6-54.4,54.2-39.7,91c7.1,17.8,21.1,28.8,37.3,37.7c21.4,11.8,44.5,19.1,67.6,26.5\n c31.6,10,63.3,19.7,94.6,30.6c28.5,9.9,55.1,24,76.4,46.1c23.3,24.1,36.4,53.2,39.9,86.5c9.1,86.7-40.5,150.8-109.3,180.7\n c-38.9,16.8-79.7,24.4-122,24.6c-56.9,0.2-112-9.7-164.9-30.7c-9.4-3.8-18.3-9.3-26.9-14.8c-9.7-6.2-13.6-16.1-13.9-27.3\n c-0.4-13-0.3-26-0.1-38.9c0.3-14.9,8.1-21.1,22.5-17.3c8.2,2.2,16.2,5.6,24.1,9c52.7,22.5,107.7,31.7,164.8,29.6\n c24.9-0.9,49.4-4.7,72-16c29.7-14.9,45.7-38.5,44.5-72.4c-0.9-23.7-11.9-41.7-31.7-54.4c-17.2-10.9-36.1-18-55.4-24.1\n c-36.4-11.5-73.1-22.4-109.3-34.6c-30.8-10.4-58.7-26.2-81.4-50.2c-43.4-45.8-56.3-116.8-30.6-172.5c18.1-39.3,48.5-66.6,86.9-85.5\n C1624,6.4,1664.5,0,1714.8,0z"}}),n("path",{staticClass:"st0",attrs:{d:"M1860.6,746.5c33.3,0.4,66.3,2.8,98.5,11.6c8.4,2.3,16.5,5.8,24.6,9.1c7.5,3.1,11.9,9.2,13.5,17.2\n c2.5,12.2,3.1,24.5,2.5,37.1c-1.2,24-5,47.5-10.5,70.8c-12.3,51.3-31.6,99.8-60.1,144.4c-16.5,25.9-36,49.3-59.4,69.2\n c-5.2,4.4-10.7,8.3-17.9,8.4c-6.8,0-10.7-3.5-10.3-10.2c0.2-4.1,1.3-8.3,2.9-12.1c17-42.7,33.7-85.6,47-129.7\n c7.6-25.2,14.3-50.6,16.5-76.9c0.7-8.8,0.1-17.9-1.1-26.7c-1.6-12-9.3-19.8-20.2-24.6c-12.5-5.4-25.8-8.2-39.2-9.1\n c-18.6-1.3-37.4-2.3-56-2c-20.7,0.4-41.3,2.1-62,3.7c-18.8,1.4-37.5,3.3-56.3,5.2c-9.9,1-19.7,2.4-29.5,3.6c-1,0.1-2,0.4-3,0.3\n c-4.8-0.2-9.7-0.8-12.4-5.4c-2.7-4.6-1.8-9.7,1.5-13.2c5.1-5.5,10.6-10.8,16.9-14.9c36.4-24,76.8-38.4,119.4-46.2\n c22.1-4,44.6-5.9,67-8.3C1842.1,746.9,1851.4,746.9,1860.6,746.5z"}}),n("path",{staticClass:"st0",attrs:{d:"M591.6,541.4c-21.4-36.5-29.7-76.2-29.7-117.9c-0.1-70.3,0.1-140.6-0.1-211c-0.1-29.6-3.8-58.8-13-87.1\n c-15.6-48-45.4-83.2-92.4-102.9C424.8,9.3,391.7,3.9,357.9,2c-63.7-3.6-125.3,6.4-184.7,29.3c-11.7,4.5-23,10.3-34.3,16\n c-11.6,5.8-17.3,15.4-17.1,28.6c0.2,12.6-0.1,25.3,0,37.9c0,2.9,0.1,5.8,0.7,8.5c2,9.5,7.9,13.7,17.3,11.2c8.4-2.2,16.8-5,24.9-8.2\n c40.4-15.9,81.7-28.9,125.3-32.1c29.7-2.2,59.3-1.4,88.3,6.5c24.2,6.6,44.8,18.5,57.2,41.5c10.1,18.6,15.1,38.7,16.1,59.5\n c1.3,24.7,1,49.5,1.4,74.3c0,0.8-0.2,1.6-0.3,2.8c-16.1-3.3-31.5-6.6-47.1-9.5c-46.9-8.6-94.1-13.2-141.8-7.7\n c-33.5,3.9-65.4,12.9-94.4,30.5c-37.4,22.6-64.8,53.5-78.2,95.7c-10.9,34.3-11.9,69.4-4.4,104.4c12,56.1,44.4,96,97.9,117.4\n c41.8,16.6,85.2,17.2,128.9,9.5c57.4-10.1,104-39.3,142.3-82.5c1.3-1.5,2.7-2.9,4.3-4.8c1.7,3.4,3.1,6.2,4.5,9\n c10.4,21.4,22.2,42,38.5,59.7c11.2,12.1,24,14.5,37.5,5.8c14.5-9.3,28.8-18.8,42.9-28.6C597.7,567,600.3,556.1,591.6,541.4z\n M448.3,436.2c-7.1,29.5-25.4,50.8-49.1,68.2c-22,16.2-47.4,23.8-73.8,28.5c-20.7,3.6-41.6,4.4-62.3-0.2\n c-35.6-8-59.6-35.5-63.5-72.3c-2.3-21.9-1.9-43.5,7-64.1c11.9-27.6,34-43.2,61.9-51.5c21.4-6.4,43.4-7.9,63.7-7.5\n c41.1,0.2,79.8,5.3,117.9,14.4c1.6,0.4,4.1,2.4,4.1,3.7C454.7,382.5,454.7,409.6,448.3,436.2z"}})])])]),n("div",{class:e.amplifyUI.loadingSceneName,attrs:{"data-test":e.sumerianScene.sceneName}},[e._v(e._s(e.sceneName))]),e.sceneError?n("div",{class:e.amplifyUI.sceneErrorText,attrs:{"data-test":e.sumerianScene.sceneError}},[e._v(e._s(e.sceneError))]):e._e(),e.sceneError?e._e():n("div",{class:e.amplifyUI.loadingBar,attrs:{"data-test":e.sumerianScene.loadingBar}},[n("div",{class:e.amplifyUI.loadingBarFill,style:{width:e.loadPercentage+"%"}})])])]):e._e()]),e.loading?e._e():n("div",{class:e.amplifyUI.sceneBar,attrs:{"data-test":e.sumerianScene.bar}},[n("span",{class:e.amplifyUI.sceneActions,attrs:{"data-test":e.sumerianScene.actions}},[n("div",{class:[e.amplifyUI.tooltip,e.showEnableAudio?e.amplifyUI.autoShowTooltip:""],attrs:{"data-text":e.showEnableAudio?"The scene is muted. Click to unmute.":e.muted?"Unmute":"Mute"},on:{click:function(t){e.muted?e.setMuted(!1):e.setMuted(!0)}}},[n("button",{class:e.amplifyUI.actionButton},[e.muted?n("svg",{attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"icons/minis/volumeOff",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M3.48026899,12.9630494 C3.63825091,12.9630494 3.79237961,13.0108921 3.92264322,13.1003479 L8.77467683,16.8113609 C9.29423971,17.1679383 10,16.7950396 10,16.1637406 L10,3.78619489 C10,3.15489596 9.29423971,2.78199725 8.77467683,3.13857463 L3.92264322,6.84545211 C3.79237961,6.93490793 3.63825091,6.9827506 3.48026899,6.9827506 L1.78294894,6.9827506 C1.3505185,6.9827506 1,7.33409518 1,7.76754476 L1,12.1781306 C1,12.6117048 1.3505185,12.9630494 1.78294894,12.9630494 L3.48026899,12.9630494 Z M17.2118156,7 L15.0918385,9.11997713 L12.9718614,7 L12,7.97174685 L14.1200917,10.091724 L12,12.2118156 L12.9718614,13.1835625 L15.0918385,11.0635854 L17.2118156,13.1835625 L18.1835625,12.2118156 L16.0635854,10.091724 L18.1835625,7.97174685 L17.2118156,7 Z",id:"Fill-2",fill:"#FFFFFF"}})])]):e._e(),e.muted?e._e():n("svg",{attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"icons/minis/volumeOn",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M3.48026899,12.9630494 L1.78294894,12.9630494 C1.3505185,12.9630494 1,12.6117048 1,12.1781306 L1,7.76754476 C1,7.33409518 1.3505185,6.9827506 1.78294894,6.9827506 L3.48026899,6.9827506 C3.63825091,6.9827506 3.79237961,6.93490793 3.92264322,6.84545211 L8.77467683,3.13857463 C9.29423971,2.78199725 10,3.15489596 10,3.78619489 L10,16.1637406 C10,16.7950396 9.29423971,17.1679383 8.77467683,16.8113609 L3.92264322,13.1003479 C3.79237961,13.0108921 3.63825091,12.9630494 3.48026899,12.9630494 Z M14.9270376,3.03232286 C15.1729267,3.03232286 15.4040399,3.12815658 15.5777627,3.3022351 C17.3699891,5.09889099 18.3570052,7.48235058 18.3570052,10.0135053 C18.3570052,12.54466 17.3699891,14.9281196 15.5777627,16.7247755 C15.4041045,16.898854 15.1729914,16.9947524 14.9270052,16.9947524 C14.6820861,16.9947524 14.4515549,16.899436 14.2777674,16.7263598 C13.9192316,16.3684383 13.9185203,15.7852882 14.2762477,15.4264291 C15.7222893,13.9769926 16.5186727,12.0545954 16.5186727,10.0135053 C16.5186727,7.97241524 15.7222893,6.05001801 14.2762154,4.60058152 C13.9184879,4.24175473 13.9191992,3.65857229 14.277832,3.30065081 C14.4514256,3.1275746 14.6819567,3.03232286 14.9270376,3.03232286 Z M13.5730665,6.11570485 C14.6133991,7.15574642 15.1862998,8.54003279 15.1862998,10.0134924 C15.1862998,11.4892799 14.6113945,12.8741159 13.5675376,13.9128965 C13.3942351,14.0855848 13.1639626,14.1806425 12.9191727,14.1806425 C12.6727016,14.1806425 12.4412975,14.0844531 12.2677039,13.9097926 C12.0944984,13.7358111 11.9994406,13.5047303 11.9999903,13.2592291 C12.0005723,13.0136956 12.096794,12.7831644 12.2708079,12.6100882 C12.9654406,11.9185917 13.3479995,10.996467 13.3479995,10.0134924 C13.3479995,9.03119677 12.966346,8.1086194 12.2733298,7.4157649 C11.9150203,7.05745543 11.9149233,6.47436998 12.2731358,6.11589885 C12.4467617,5.94224065 12.6775838,5.84666559 12.923085,5.84666559 C13.1685538,5.84666559 13.3993436,5.94220831 13.5730665,6.11570485 Z",id:"Fill-2",fill:"#FFFFFF"}})])])])]),e.isVRCapable&&!e.isVRPresentationActive?n("div",{class:e.amplifyUI.tooltip,attrs:{"data-text":"Enter VR"},on:{click:function(t){return e.toggleVRPresentation()}}},[n("button",{class:e.amplifyUI.actionButton},[n("svg",{attrs:{width:"19",height:"19",viewBox:"0 0 17 10",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{id:"Page-1",fill:"none",fillRule:"evenodd"}},[n("g",{attrs:{id:"VRon",fill:"#FFF",fillRule:"nonzero"}},[n("path",{attrs:{d:"M15.7856977,0.02395184 L15.8915734,0.02395184 C16.5037405,0.02395184 17,0.520211324 17,1.13237842 L17,1.54663675 L17,8.8915038 C17,9.5034193 16.4560011,10 15.7856977,10 L12.0095825,10 C9.98324439,7.1593807 8.80676009,5.741338 8.48012959,5.74587199 C8.16206045,5.75028714 7.01003321,7.1683298 5.02404785,10 L1.21426911,10 C0.543965735,10 3.32031236e-05,9.5034193 3.32031236e-05,8.8915038 L3.32031236e-05,1.54663675 L3.32031236e-05,1.13237842 L3.32031236e-05,1.13237842 C3.32031236e-05,0.520211324 0.496292687,0.02395184 1.10845978,0.02395184 L1.21426911,0.02395184 L15.7856977,0.02395184 Z M4.5,6 C5.32842712,6 6,5.32842712 6,4.5 C6,3.67157288 5.32842712,3 4.5,3 C3.67157288,3 3,3.67157288 3,4.5 C3,5.32842712 3.67157288,6 4.5,6 Z M12.5,6 C13.3284271,6 14,5.32842712 14,4.5 C14,3.67157288 13.3284271,3 12.5,3 C11.6715729,3 11,3.67157288 11,4.5 C11,5.32842712 11.6715729,6 12.5,6 Z",id:"Fill-1"}})])])])])]):e._e(),e.isVRCapable&&e.isVRPresentationActive?n("div",{class:e.amplifyUI.tooltip,attrs:{"data-text":"Exit VR"},on:{click:function(t){return e.toggleVRPresentation()}}},[n("button",{class:e.amplifyUI.actionButton},[n("svg",{attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"icons/minis/VRon-Copy",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"Group-7-Copy",transform:"translate(1.000000, 3.000000)",fill:"#FFFFFF"}},[n("path",{attrs:{d:"M15.7856977,3.02395184 L17,3.02395184 L17,4.13237842 L17,4.54663675 L17,11.8915038 C17,12.5034193 16.4560011,13 15.7856977,13 L12.0095825,13 C9.98324439,10.1593807 8.80676009,8.741338 8.48012959,8.74587199 C8.16206045,8.75028714 7.01003321,10.1683298 5.02404785,13 L1.21426911,13 C0.543965735,13 3.32031236e-05,12.5034193 3.32031236e-05,11.8915038 L3.32031236e-05,4.54663675 L3.32031236e-05,4.13237842 L3.32031236e-05,3.02395184 L1.21426911,3.02395184 L15.7856977,3.02395184 Z M4.5,9 C5.32842712,9 6,8.32842712 6,7.5 C6,6.67157288 5.32842712,6 4.5,6 C3.67157288,6 3,6.67157288 3,7.5 C3,8.32842712 3.67157288,9 4.5,9 Z M12.5,9 C13.3284271,9 14,8.32842712 14,7.5 C14,6.67157288 13.3284271,6 12.5,6 C11.6715729,6 11,6.67157288 11,7.5 C11,8.32842712 11.6715729,9 12.5,9 Z M2.5486669,0 L14.420089,0 C14.7977406,0 15.1613805,0.149260956 15.4374308,0.417695511 L16.9999668,2.00634766 L0,2.00634766 L1.58537972,0.395493117 C1.84682061,0.141306827 2.19106994,0 2.5486669,0 Z",id:"Fill-1"}})])])])])]):e._e(),e.isFullscreen?e._e():n("div",{class:e.amplifyUI.tooltip,attrs:{"data-text":"Fullscreen"}},[n("button",{class:e.amplifyUI.actionButton,on:{click:function(t){return e.maximize()}}},[n("svg",{attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"icons/minis/screenfull",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M2.04162598,3 L2.04162598,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z M3,4 L16,4 L16,15 L3,15 L3,4 Z",id:"Rectangle-Copy",fill:"#FFFFFF","fill-rule":"nonzero"}})])])])]),e.isFullscreen?n("div",{class:e.amplifyUI.tooltip,attrs:{"data-text":"Exit Fullscreen"}},[n("button",{class:e.amplifyUI.actionButton,on:{click:function(t){return e.minimize()}}},[n("svg",{attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"icons/minis/screensmall",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M11,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 L2.04162598,10 L11,10 L11,16 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z",id:"Rectangle",fill:"#FFFFFF","fill-rule":"nonzero"}})])])])]):e._e()])])])},[],!1,null,null,null).exports;o.a.component("amplify-sumerian-scene",Se);var xe=["Auth","I18n","Logger"],Ee={name:"amplify",components:{Authenticator:R,SignIn:_,SignUp:L,SignOut:z,ConfirmSignUp:A,ConfirmSignIn:P,ForgotPassword:O,SetMfa:de,Chatbot:be,PhotoPicker:fe,S3Album:me,S3Image:ge,SumerianScene:Se,RequireNewPassword:pe,Connect:d},AmplifyPlugin:{install:function(e,t){var n=[];if(xe.forEach(function(e){Object.keys(t).includes(e)||n.push(e)}),n.length>0)return new Error("AmplifyPlugin installation method did not receive required modules: ".concat(n.join(", "),"."));e.prototype.$Amplify=t}},AmplifyEventBus:p.a},Te=(n("8e85"),n("9745"),l(Ee,function(){var e=this.$createElement;return(this._self._c||e)("div")},[],!1,null,null,null).exports);t.default=Te},"1c45":function(e,t,n){(e.exports=n("443a")(!1)).push([e.i,".invalid{border-color:red}",""])},"2d2d":function(e,t,n){var r=n("f29f");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("0ed3").default)("6949bcdb",r,!0,{sourceMap:!1,shadowMode:!1})},"2de2":function(e,t,n){var r=n("1c45");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("0ed3").default)("cae298ea",r,!0,{sourceMap:!1,shadowMode:!1})},"3f83":function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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";n.r(t);var r={};n.r(r),n.d(r,"capitalize",function(){return f}),n.d(r,"uppercase",function(){return h}),n.d(r,"lowercase",function(){return m}),n.d(r,"placeholder",function(){return v}),n.d(r,"truncate",function(){return g});var i={};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0&&t<=d},l.isObject=function(e){var t=a(e);return"function"===t||"object"===t&&!!e},l.each=function(e,t){var n,r;if(l.isArray(e))for(n=0,r=e.length;n-1}var b=function(e,t){if(e=p.convertArray(e),null==t)return e;if("function"==typeof t)return e.filter(t);t=(""+t).toLowerCase();for(var n,r,i,o,a=Array.prototype.concat.apply([],p.toArray(arguments,2)),s=[],u=0,c=e.length;u0?h.slice(0,m)+(h.length>3?i:""):"",g=n?f.slice(-1-n):"";return t=a?o?t+" ":" "+t:t,t=o?t+v+h.slice(m).replace(u,"$1"+i)+g:v+h.slice(m).replace(u,"$1"+i)+g+t,(e<0?"-":"")+t};var _=function(e,t,n){var r=this&&this.pluralize?this.pluralize:{},i="";return!0===(null!=(n=n||r).includeNumber&&n.includeNumber)&&(i+=e+" "),!e&&0!==e||!t?i:(Array.isArray(t)?i+=t[e-1]||t[t.length-1]:i+=t+(1===e?"":"s"),i)};var S=function(e,t){var n=this&&this.ordinal?this.ordinal:{},r="";!0===(null!=(t=t||n).includeNumber&&t.includeNumber)&&(r+=e);var i=e%10,o=e%100;return r+=1==i&&11!=o?"st":2==i&&12!=o?"nd":3==i&&13!=o?"rd":"th"},x={install:function(e,t){p.each(r,function(n,r){e.filter(r,n.bind(t))}),p.each(i,function(n,r){e.filter(r,n.bind(t))})},mixin:{methods:{limitBy:function(e,t,n){return e=p.isArray(e)?e:p.convertRangeToArray(e),n=n?parseInt(n,10):0,"number"==typeof(t=p.toNumber(t))?e.slice(n,n+t):e},filterBy:b,orderBy:function(e){var t,n=null;e=p.convertArray(e);var r=p.toArray(arguments,1),i=r[r.length-1];"number"==typeof i?(i=i<0?-1:1,r=r.length>1?r.slice(0,-1):r):i=1;var o=r[0];if(!o)return e;function a(e,n,r){var o=t[r];return o&&("$key"!==o&&(p.isObject(e)&&"$value"in e&&(e=e.$value),p.isObject(n)&&"$value"in n&&(n=n.$value)),e=p.isObject(e)?p.getPath(e,o):e,n=p.isObject(n)?p.getPath(n,o):n,e="string"==typeof e?e.toLowerCase():e,n="string"==typeof n?n.toLowerCase():n),e===n?0:e>n?i:-i}return"function"==typeof o?n=function(e,t){return o(e,t)*i}:(t=Array.prototype.concat.apply([],r),n=function(e,r,i){return(i=i||0)>=t.length-1?a(e,r,i):a(e,r,i)||n(e,r,i+1)}),e.slice().sort(n)},find:function(e,t){var n=b.apply(this,arguments);return n.splice(1),n}}}};t.default=x;"undefined"!=typeof window&&window.Vue&&(window.Vue.use(x),window.Vue2Filters=x)}])},e.exports=r()},4141:function(e,t){!function(e){var t=e.getElementsByTagName("script");"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(r){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})}(document)},"443a":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i.Button__signInButtonIcon___341B9{background-color:var(--white);border-radius:4px 0 0 4px;height:28px;width:28px;padding:12px}#Button__auth0SignInButton___n_PKO{background-color:#eb5424;font-family:Roboto;border:1px solid #e14615;color:#fff}#Button__auth0SignInButton___n_PKO>.Button__signInButtonIcon___341B9{border-radius:4px 0 0 4px;height:28px;width:28px;padding:12px;fill:#fff}#Button__facebookSignInButton___1-zMC{background-color:#4267b2;border-color:#4267b2;font-family:Helvetica Neue;color:var(--white)}#Button__facebookSignInButton___1-zMC>.Button__signInButtonIcon___341B9{height:33px;width:18px;padding:10px 14px}#Button__amazonSignInButton___TmhOE{background-color:var(--amazonOrange);border:none;color:var(--white);font-family:Amazon Ember}#Button__amazonSignInButton___TmhOE>.Button__signInButtonIcon___341B9{padding:10px;height:32px;width:32px}#Button__oAuthSignInButton___hREZG{background-color:var(--white);color:var(--deepSquidInk)}.Button__signInButtonIcon___341B9{position:absolute;left:0}.Button__signInButtonContent___2GM4s{display:block;padding:18px 0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.Form__formContainer___cu04J{text-align:center;margin-top:20px;margin:5% auto 50px}.Form__formSection___3tqxz{position:relative;margin-bottom:20px;background-color:var(--form-color);padding:35px 40px;text-align:left;display:inline-block;min-width:460px;border-radius:6px;-webkit-box-shadow:1px 1px 4px 0 rgba(0,0,0,.15);box-shadow:1px 1px 4px 0 rgba(0,0,0,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.Form__formField___2DWhT{margin-bottom:22px}.Form__formRow___23vw6{margin-bottom:12px}@media only screen and (max-width:599px){.Form__formContainer___cu04J{margin:0}.Form__formSection___3tqxz{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:35px 25px;-webkit-box-shadow:none;box-shadow:none;border-radius:0}}.Hint__hint___3Hrww{color:var(--grey);font-size:12px}.Input__input___2Sh1s{display:block;width:100%;padding:16px;font-size:14px;color:var(--input-color);background-color:var(--input-background-color);background-image:none;border:1px solid var(--lightGrey);border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:10px}.Input__input___2Sh1s:disabled{color:#545454;background-color:var(--silver)}.Input__inputLabel___nQolz{color:var(--input-color);font-size:14px;margin-bottom:8px}.Input__radio___1oPWf{margin-right:18px;vertical-align:bottom}.Nav__navBar___3UdSD{position:relative;border:1px solid transparent;border-color:#e7e7e7;background-color:#fff}.Nav__navRight___2cUrh{text-align:right}.Nav__nav___17Pxn{padding:10px}.Nav__navItem___VnHJi{display:inline-block;padding:10px 5px;line-height:20px;margin-right:12px}.PhotoPicker__photoPickerButton___A0pJW{width:100%}.PhotoPicker__photoPlaceholder___1YUHz{border:2px dotted var(--grey);padding:64px 0 64px}.PhotoPicker__photoPlaceholderIcon___1eBTV{text-align:center;opacity:.2}.Section__container___1Gue_{font-weight:400}.Section__actionRow___1hCHZ{margin-bottom:15px}.Section__sectionHeader___13iO4{color:var(--deepSquidInk);margin-bottom:24px;font-size:18px;font-weight:500}.Section__sectionHeaderHint___16N_e{color:var(--grey);font-size:16px;font-weight:400;margin-top:4px}.Section__sectionBody___3DCrX{margin-bottom:30px}.Section__sectionFooter___1QlDn{font-size:14px;color:var(--grey);display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:row-reverse;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;flex-direction:row-reverse;-ms-flex-align:start;-webkit-box-align:start;align-items:flex-start}.Section__sectionFooterPrimaryContent___36Gb1{margin-left:auto}.Section__sectionFooterSecondaryContent___3cjOa{margin-right:auto;-ms-flex-item-align:center;align-self:center}@media only screen and (max-width:599px){.Section__sectionFooter___1QlDn{-ms-flex-wrap:wrap;flex-wrap:wrap}.Section__sectionFooterPrimaryContent___36Gb1{width:100%;margin-bottom:32px}.Section__sectionFooterPrimaryContent___36Gb1>button{width:100%}.Section__sectionFooterSecondaryContent___3cjOa{text-align:center;-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%}}.SelectInput__selectInput___1I_W8{display:-ms-flexbox;display:-webkit-box;display:flex}.SelectInput__selectInput___1I_W8>input{-ms-flex:1;-webkit-box-flex:1;flex:1;border-radius:0 3px 3px 0!important}.SelectInput__selectInput___1I_W8>select{padding:16px;font-size:14px;color:var(--deepSquidInk);background-color:#fff;background-image:none;border:1px solid var(--lightGrey);border-right:none;border-radius:3px 0 0 3px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-preferred-size:22%;flex-basis:22%;width:1%;background-image:linear-gradient(45deg,transparent 50%,grey 0),linear-gradient(135deg,grey 50%,transparent 0),linear-gradient(90deg,#ccc,#ccc);background-position:calc(100% - 20px) calc(1em + 8px),calc(100% - 15px) calc(1em + 8px),calc(100% - 2.5em) .5em;background-size:6px 5px,6px 5px,0 1.5em;background-repeat:no-repeat}.Strike__strike___28OW3{width:100%;text-align:center;border-bottom:1px solid var(--lightGrey);line-height:.1em;margin:32px 0;color:var(--grey)}.Strike__strikeContent___1hd4F{background:var(--form-color);padding:0 25px;font-size:14px;font-weight:500}.Toast__toast___2YWKB{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-pack:justify;-webkit-box-pack:justify;justify-content:space-between;position:absolute;top:0;left:0;width:100%;z-index:99;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.3);box-shadow:0 0 5px 0 rgba(0,0,0,.3);padding:16px;background-color:var(--lightSquidInk);font-size:14px;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.Toast__toast___2YWKB>span{margin-right:10px}.Toast__toastClose___2DQXs{margin-left:auto;-ms-flex-item-align:center;align-self:center;position:relative;width:18px;height:18px;overflow:hidden;cursor:pointer}.Toast__toastClose___2DQXs:after,.Toast__toastClose___2DQXs:before{content:"";position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:var(--lightGrey)}.Toast__toastClose___2DQXs:hover:after,.Toast__toastClose___2DQXs:hover:before{background:var(--red)}.Toast__toastClose___2DQXs:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.Toast__toastClose___2DQXs:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.Totp__totpQrcode___3OH-m{text-align:center;margin-bottom:30px}.XR__sumerianSceneContainer___11I4t{width:100%;height:100%;position:relative}.XR__sumerianScene___3n6Vz{width:100%;height:100%}.XR__loadingOverlay___1c9lj{width:100%;height:100%;background-color:var(--lightSquidInk)}.XR__loadingContainer___3C0lC,.XR__loadingOverlay___1c9lj{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.XR__loadingContainer___3C0lC{-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.XR__loadingLogo___3mETr{margin-bottom:20px;width:80px;fill:var(--white)}.XR__loadingSceneName___3JbEs{color:var(--white);margin:0 2px 20px 2px;font-size:18px;font-family:Amazon Ember}.XR__loadingBar___QeOtl{height:2px;width:100%;border-radius:2px;background-color:var(--deepSquidInk)}.XR__loadingBarFill___2Ej9-{background-color:var(--light-blue);height:100%;border-radius:2px}.XR__sceneErrorText___2PGJM{color:var(--red);font-size:14px;font-family:Amazon Ember}.XR__sceneBar___2jB64{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;font-size:100%;position:absolute;bottom:0;width:100%}.XR__sceneName___3J8bY{color:var(--white);margin:0 1.5em;font-size:1em}.XR__sceneActions___2a04n{margin-left:auto;margin-right:16px;margin-bottom:16px}.XR__actionButton___7icN8{position:relative;padding:0;background:none;height:54px;width:54px;cursor:pointer;outline:none;text-decoration:none;border:none;border-radius:30px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;color:var(--white);fill:currentColor}.XR__actionButton___7icN8:hover{background-color:var(--deepSquidInk);-webkit-box-shadow:.3px .3px .3px rgba(0,0,0,.3);box-shadow:.3px .3px .3px rgba(0,0,0,.3)}.XR__actionButton___7icN8:hover>.XR__tooltip___3wuzm{display:block}.XR__actionButton___7icN8:hover>svg{-webkit-filter:none;filter:none}.XR__actionButton___7icN8:focus{outline:none}.XR__actionButton___7icN8>svg{width:1.8em;height:1.8em;-webkit-filter:drop-shadow(1px 1px 1px var(--grey));filter:drop-shadow(1px 1px 1px var(--grey))}.XR__actionIcon___RjOmI{fill:var(--white)}.XR__tooltip___3wuzm{display:inline;position:relative;font-size:12px;font-family:Amazon Ember;margin:0 0 0 16px}.XR__autoShowTooltip___3QI-_ .XR__actionButton___7icN8{background-color:var(--deepSquidInk)}.XR__tooltip___3wuzm:after{background-color:var(--deepSquidInk);border-radius:2px;bottom:46px;color:var(--white);content:attr(data-text);text-decoration:none;padding:10px;white-space:nowrap}.XR__tooltip___3wuzm:after,.XR__tooltip___3wuzm:before{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);position:absolute;opacity:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.XR__tooltip___3wuzm:before{border:solid;border-color:var(--deepSquidInk) transparent transparent transparent;border-width:5px;bottom:36px;content:"";font-size:14px}.XR__autoShowTooltip___3QI-_:after,.XR__autoShowTooltip___3QI-_:before,.XR__tooltip___3wuzm:hover:after,.XR__tooltip___3wuzm:hover:before{opacity:1;-webkit-transition-delay:1s;transition-delay:1s}',""])},"762e":function(e,t,n){var r=n("d43e");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("0ed3").default)("7592f451",r,!0,{sourceMap:!1,shadowMode:!1})},"7d15":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"8bbf":function(e,t){e.exports=n("7+uW")},"8e85":function(e,t,n){"use strict";n("d8ca")},9053:function(e,t,n){var r=n("bef2");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("0ed3").default)("61e66506",r,!0,{sourceMap:!1,shadowMode:!1})},9745:function(e,t,n){"use strict";n("2de2")},b600:function(e,t,n){"use strict";var r=n("8bbf"),i=new(n.n(r).a);t.a=i},b90c:function(e,t){},b93e:function(e,t,n){"use strict";(function(e){var r,i=n("56d4"),o=n.n(i),a=n("b600");function s(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,u,"next",e)}function u(e){s(o,r,i,a,u,"throw",e)}a(void 0)})}}var c={INITIAL:{MESSAGE:"Type your message or click 🎤",ICON:"🎤"},LISTENING:{MESSAGE:"Listening... click 🔴 again to cancel",ICON:"🔴"},SENDING:{MESSAGE:"Please wait...",ICON:"🔊"},SPEAKING:{MESSAGE:"Speaking...",ICON:"..."}},l={silenceDetectionConfig:{time:2e3,amplitude:.2}};t.a={name:"Chatbot",props:["chatbotConfig"],STATES:c,defaultVoiceConfig:l,audioControl:r,data:function(){return{inputText:"",error:"",messages:[],logger:{},currentVoiceState:c.INITIAL.MESSAGE,inputDisabled:!1,micText:c.INITIAL.ICON,continueConversation:!1,micButtonDisabled:!1}},computed:{options:function(){var e={clearComplete:!0,botTitle:"Chatbot",conversationModeOn:!1,voiceConfig:l,voiceEnabled:!1,textEnabled:!0};return Object.assign(e,this.chatbotConfig||{})}},mounted:function(){this.logger=new this.$Amplify.Logger(this.$options.name),this.options.bot||this.setError("Bot not provided."),this.options.voiceEnabled&&(n("f39c"),r=new e.LexAudio.audioControl),!this.options.textEnabled&&this.options.voiceEnabled&&(c.INITIAL.MESSAGE="Click the mic button",this.currentVoiceState=c.INITIAL.MESSAGE),this.options.textEnabled&&!this.options.voiceEnabled&&(c.INITIAL.MESSAGE="Type a message",this.currentVoiceState=c.INITIAL.MESSAGE),this.$Amplify.Interactions.onComplete(this.options.bot,this.performOnComplete)},methods:{performOnComplete:function(e){a.a.$emit("chatComplete",this.options.botTitle),this.options.clearComplete&&(this.messages=[])},keymonitor:function(e){"enter"==e.key.toLowerCase()&&this.onSubmit(this.inputText)},onSubmit:function(e){var t=this;if(this.inputText){var n={me:this.inputText,meSentTime:(new Date).toLocaleTimeString(),bot:"",botSentTime:""};this.$Amplify.Interactions.send(this.options.bot,this.inputText).then(function(e){a.a.$emit("chatResponse",e),t.inputText="",e.message&&(n.bot=e.message,n.botSentTime=(new Date).toLocaleTimeString(),t.messages.push(n))}).catch(function(e){return t.setError(e)})}},setError:function(e){this.error=this.$Amplify.I18n.get(e.message||e),this.logger.error(this.error)},micButtonHandler:function(){var e=u(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.continueConversation?this.reset():(this.inputDisabled=!0,this.continueConversation=!0,this.currentVoiceState=c.LISTENING.MESSAGE,this.micText=c.LISTENING.ICON,this.micButtonDisabled=!1,r.startRecording(this.onSilenceHandler,null,this.options.voiceConfig.silenceDetectionConfig));case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),onSilenceHandler:function(){var e=this;r.stopRecording(),this.continueConversation&&r.exportWAV(function(t){e.currentVoiceState=c.SENDING.MESSAGE,e.audioInput=t,e.micText=c.SENDING.ICON,e.micButtonDisabled=!0,e.lexResponseHandler()})},lexResponseHandler:function(){var e=u(o.a.mark(function e(){var t,n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.continueConversation){e.next=2;break}return e.abrupt("return");case 2:return t={content:this.audioInput,options:{messageType:"voice"}},e.next=5,this.$Amplify.Interactions.send(this.options.bot,t);case 5:n=e.sent,this.lexResponse=n,this.currentVoiceState=c.SPEAKING.MESSAGE,this.micText=c.SPEAKING.ICON,this.micButtonDisabled=!0,r={me:this.lexResponse.inputTranscript,meSentTime:(new Date).toLocaleTimeString(),bot:"",botSentTime:""},this.inputText="",n.message&&(r.bot=n.message,r.botSentTime=(new Date).toLocaleTimeString(),this.messages.push(r)),this.inputText="",this.doneSpeakingHandler();case 15:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),doneSpeakingHandler:function(){var e=this;this.continueConversation&&("audio/mpeg"===this.lexResponse.contentType?r.play(this.lexResponse.audioStream,function(){"ReadyForFulfillment"!==e.lexResponse.dialogState&&"Fulfilled"!==e.lexResponse.dialogState&&"Failed"!==e.lexResponse.dialogState&&e.options.conversationModeOn?(e.currentVoiceState=c.LISTENING.MESSAGE,e.micText=c.LISTENING.ICON,e.micButtonDisabled=!1,r.startRecording(e.onSilenceHandler,null,e.options.voiceConfig.silenceDetectionConfig)):(e.inputDisabled=!1,e.currentVoiceState=c.INITIAL.MESSAGE,e.micText=c.INITIAL.ICON,e.micButtonDisabled=!1,e.continueConversation=!1)}):(this.inputDisabled=!1,this.currentVoiceState=c.INITIAL.MESSAGE,this.micText=c.INITIAL.ICON,this.micButtonDisabled=!1,this.continueConversation=!1))},reset:function(){r.clear(),this.inputText="",this.currentVoiceState=c.INITIAL.MESSAGE,this.inputDisabled=!1,this.micText=c.INITIAL.ICON,this.continueConversation=!1,this.micButtonDisabled=!1}}}}).call(this,n("7d15"))},bd89:function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";function r(e,t){var n=t({},e);return delete n.default,n}function i(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r-1},Me.prototype.set=function(e,t){var n=this.__data__,r=ze(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Te,map:new(pe||Me),string:new Te}},Ce.prototype.delete=function(e){return Ye(this,e).delete(e)},Ce.prototype.get=function(e){return Ye(this,e).get(e)},Ce.prototype.has=function(e){return Ye(this,e).has(e)},Ce.prototype.set=function(e,t){return Ye(this,e).set(e,t),this},Ie.prototype.add=Ie.prototype.push=function(e){return this.__data__.set(e,o),this},Ie.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.clear=function(){this.__data__=new Me},Le.prototype.delete=function(e){return this.__data__.delete(e)},Le.prototype.get=function(e){return this.__data__.get(e)},Le.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Me){var i=n.__data__;if(!pe||i.length=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function $e(e){return ot(e)?e:Ze(e)}function Ue(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=dt(e),a=void 0!==t,s=null===t,u=t==t,c=dt(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&ec))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var p=-1,f=!0,h=i&a?new Ie:void 0;for(o.set(e,t),o.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=c}function ct(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function lt(e){return!!e&&"object"==typeof e}function dt(e){return"symbol"==typeof e||lt(e)&&ie.call(e)==x}var pt=H?U(H):function(e){return lt(e)&&ut(e.length)&&!!P[ie.call(e)]};function ft(e){return at(e)?ke(e):He(e)}function ht(e){return e}n.exports=function(e,t,n,r){return null==e?[]:(ot(t)||(t=null==t?[]:[t]),ot(n=r?void 0:n)||(n=null==n?[]:[n]),Ve(e,t,n))}}).call(this,n("7d15"),n("6984")(e))},cc58:function(e,t,n){"use strict";n("9053")},d43e:function(e,t,n){(e.exports=n("443a")(!1)).push([e.i,'.amplify-interactions[data-v-28f9686f]{width:var(--component-width-desktop);margin:1em auto;border-radius:6px;background-color:var(--color-white);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.amplify-interactions-container[data-v-28f9686f]{width:400px;margin:0 auto;padding:1em}.amplify-interactions-button[data-v-28f9686f]{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAYAAABHomvIAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAG2SURBVFiF7dfPKwRhHMfx9+xqhaItIg5KikgOlER2TzhQ4i+QwtndQe4O4uhCSQ57sC6SkotfR1uK2nWgrGJr8yvsjsO2bWtb+8w+88zOYT6nmWfmeebV95lfj6bruo6N4yo1oFAcoGwcoGwcoGwcoGxsDyyz5CqxawhtwPsTNA1C5wxobqGumvJv8d0+HM5B4jvT1jICw1tC3dVO8ds9VNaD25PdHj6A6LnQEOqAkSBs90HsBsZ2wVOVfTweFhpGDTAShMPZ1LQeL+QiNQ1qu0sETOOSidS+ruciu6bB2yE0nLkPyV9c1pU08K9AQx9Ut4AmVhvzKvgfDlKVfDyFmlZhHJgFLIQDaJ+CoVXDQ8sDRXG+dUOVS0cOqBgHMkARXJscDooFiuL8cjgoBmghDoy+B+MR2BmA5I8lODBSQT0JiU/oX8x/jsk4MAJ8CcHeBDQNwcCSJTgwAoxewkcMgpO5SEU4MHIPHs3DbSC1XeGF8QA8nMDzFfjWlODAyC9/9Cyz/fUKF8swvAkuT/4+JkQc2DwKVY3Q0At1PeAuV8jKRP2aRDK2X3Y6QNk4QNk4QNnYHvgLzPueuQw6nCEAAAAASUVORK5CYII=") 50% no-repeat var(--color-white)}.amplify-interactions-button[data-v-28f9686f],.amplify-mic-button[data-v-28f9686f]{border:none;cursor:pointer;width:32px}.amplify-form-input[data-v-28f9686f]{width:100%}.amplify-interactions-actions[data-v-28f9686f]{display:-webkit-box;display:-ms-flexbox;display:flex;border-top:var(--input-border);margin-bottom:-1em;margin-left:-1.9em;margin-right:-1.9em}.amplify-interactions-actions>input[type=text][data-v-28f9686f]{border:none;margin-top:0;margin-bottom:0;margin-left:0}.amplify-interactions-actions>input[type=text][data-v-28f9686f]:focus{border:0 solid var(--color-white)!important}.amplify-interactions-conversation[data-v-28f9686f]{margin:1em}.amplify-interactions-input[data-v-28f9686f]{padding:1em;margin:1em;width:75%;margin-left:5em;border-radius:20px 20px 0 20px;background-color:#009ecf;-webkit-box-shadow:1px 2px 4px 0 rgba(0,0,0,.1);box-shadow:1px 2px 4px 0 rgba(0,0,0,.1);color:var(--color-white);font-size:13px;line-height:16px}.amplify-interactions-input-timestamp[data-v-28f9686f]{color:#828282;font-size:10px;letter-spacing:.5px;line-height:16px;text-align:right}.amplify-interactions-response-timestamp[data-v-28f9686f]{color:#828282;font-size:10px;letter-spacing:.5px;line-height:16px;margin-left:1.5em}.amplify-interactions-response[data-v-28f9686f]{padding:1em;margin:1em;width:75%;border-radius:20px 20px 20px 0;background-color:#dbdbdb;-webkit-box-shadow:1px 2px 4px 0 rgba(0,0,0,.1);box-shadow:1px 2px 4px 0 rgba(0,0,0,.1);font-size:13px;line-height:16px;color:#4a4a4a}@media (min-width:320px) and (max-width:480px){.amplify-interactions[data-v-28f9686f]{width:var(--component-width-mobile)}.amplify-interactions-container[data-v-28f9686f]{width:85%}}',""])},d8ca:function(e,t,n){var r=n("7441");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n("0ed3").default)("23bbab51",r,!0,{sourceMap:!1,shadowMode:!1})},df26:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={};function v(){}function g(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(L([])));_&&_!==n&&r.call(_,o)&&(b=_);var S=y.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){var n;this._invoke=function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}(i,o,n,a)})}return n=n?n.then(a,a):a()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function L(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},f29f:function(e,t,n){(e.exports=n("443a")(!1)).push([e.i,".amplify-album[data-v-77a314c9]{width:var(--component-width-desktop);margin:1em auto;border-radius:6px;background-color:var(--color-white);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.amplify-album-container[data-v-77a314c9]{width:400px;margin:0 auto;padding:1em}.amplify-image-container[data-v-77a314c9]{display:inline}",""])},f39c:function(e,t,n){(function(e){var t;!function e(n,r,i){function o(s,u){if(!r[s]){if(!n[s]){if(!u&&("function"==typeof t&&t))return t(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};n[s][0].call(l.exports,function(e){var t=n[s][1][e];return o(t||e)},l,l.exports,e,n,r,i)}return r[s].exports}for(var a="function"==typeof t&&t,s=0;si||c<-1*i)&&(r=Date.now())}Date.now()-r>s&&o()}())};var l=e.context.createAnalyser();return l.minDecibels=-90,l.maxDecibels=-10,l.smoothingTimeConstant=.85,e.connect(l),l.connect(u),u.connect(e.context.destination),{record:function(e,t){o=e,a=t,r=Date.now(),s=!0},stop:c,clear:function(){c(),i.postMessage({command:"clear"})},exportWAV:function(e,t){n=e,i.postMessage({command:"export",sampleRate:t})}}};n.audioRecorder=function(){return{requestDevice:function(){return void 0===t&&(window.AudioContext=window.AudioContext||window.webkitAudioContext,t=new AudioContext),navigator.mediaDevices.getUserMedia({audio:!0}).then(function(e){r=e})},createRecorder:function(e){return o(t.createMediaStreamSource(r),e)},audioContext:function(){return t}}}}()},{"./worker.js":6,webworkify:4}],6:[function(e,t,n){t.exports=function(e){"use strict";var t,n=0,r=[];function i(e,t,n){for(var r=0;r=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},zSos:function(e,t,n){e.exports=n("UjR9").Observable},zZmH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=function(e){e||(0,i.default)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,r=e.path,o=e.extensions;return o?{message:t,locations:n,path:r,extensions:o}:{message:t,locations:n,path:r}};var r,i=(r=n("JiIc"))&&r.__esModule?r:{default:r}},"zk+s":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OUT_GOING_POST_MESSAGE_EVENT_NAMES=t.IN_COMING_POST_MESSAGE_EVENT_NAMES=t.DEFAULT_EMBEDDING_VISUAL_TYPE_OPTIONS=t.DASHBOARD_SIZE_OPTIONS=t.CLIENT_FACING_EVENT_NAMES=void 0;t.OUT_GOING_POST_MESSAGE_EVENT_NAMES={ESTABLISH_MESSAGE_CHANNEL:"establishMessageChannel",UPDATE_PARAMETER_VALUES:"updateParameterValues",DEFAULT_EMBEDDING_VISUAL_TYPE_OPTIONS:"updateDefaultEmbeddingVisualType",NAVIGATE_TO_DASHBOARD:"navigateToDashboard",GET_ACTIVE_PARAMETER_VALUES:"getActiveParameterValues",NAVIGATE_TO_SHEET:"navigateToSheet",GET_SHEETS:"getSheets",PRINT:"initiatePrint",HIDE_Q_BAR:"hideQSearchBar",SET_Q_BAR_QUESTION:"setQBarQuestion"};t.IN_COMING_POST_MESSAGE_EVENT_NAMES={LOAD:"load",ERROR:"error",RESIZE_EVENT:"RESIZE_EVENT",SHOW_MODAL_EVENT:"SHOW_MODAL_EVENT"};t.CLIENT_FACING_EVENT_NAMES={load:"load",error:"error",parametersChange:"parametersChange",selectedSheetChange:"selectedSheetChange",RESIZE_EVENT:"resize",SHOW_MODAL_EVENT:"SHOW_MODAL_EVENT",GET_ACTIVE_PARAMETER_VALUES:"GET_ACTIVE_PARAMETER_VALUES",GET_SHEETS:"GET_SHEETS",SHOW_Q_BAR:"showQSearchBar",HIDE_Q_BAR:"hideQSearchBar",RESIZE_Q_BAR:"resizeQSearchBar"};t.DASHBOARD_SIZE_OPTIONS={AUTO_FIT:"AutoFit"};t.DEFAULT_EMBEDDING_VISUAL_TYPE_OPTIONS={AUTO_GRAPH:"AUTO_GRAPH",TABLE:"TABLE"}},zpVT:function(e,t,n){var r=n("duB3"),i=n("POb3"),o=n("YeCl"),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length