@bitblit/ratchet-aws 4.0.127-alpha → 4.0.128-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -1,11 +1,2 @@
1
- import e from"util";import t,{Buffer as r}from"buffer";import n,{Readable as a}from"stream";import i from"crypto";import s from"url";import o from"http";import d from"punycode";import l from"https";import u from"zlib";import p,{EventEmitter as c}from"events";import m from"fs";import h from"path";class f extends Error{}class g extends f{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class y extends f{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class v extends f{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class w extends f{}class b extends f{constructor(e){super(`Invalid unit ${e}`)}}class S extends f{}class E extends f{constructor(){super("Zone is an abstract class")}}const _="numeric",x="short",C="long",N={year:_,month:_,day:_},k={year:_,month:x,day:_},T={year:_,month:x,day:_,weekday:x},A={year:_,month:C,day:_},P={year:_,month:C,day:_,weekday:C},I={hour:_,minute:_},O={hour:_,minute:_,second:_},D={hour:_,minute:_,second:_,timeZoneName:x},R={hour:_,minute:_,second:_,timeZoneName:C},M={hour:_,minute:_,hourCycle:"h23"},L={hour:_,minute:_,second:_,hourCycle:"h23"},F={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:x},j={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:C},U={year:_,month:_,day:_,hour:_,minute:_},V={year:_,month:_,day:_,hour:_,minute:_,second:_},B={year:_,month:x,day:_,hour:_,minute:_},$={year:_,month:x,day:_,hour:_,minute:_,second:_},z={year:_,month:x,day:_,weekday:x,hour:_,minute:_},q={year:_,month:C,day:_,hour:_,minute:_,timeZoneName:x},H={year:_,month:C,day:_,hour:_,minute:_,second:_,timeZoneName:x},K={year:_,month:C,day:_,weekday:C,hour:_,minute:_,timeZoneName:C},G={year:_,month:C,day:_,weekday:C,hour:_,minute:_,second:_,timeZoneName:C};class W{get type(){throw new E}get name(){throw new E}get ianaName(){return this.name}get isUniversal(){throw new E}offsetName(e,t){throw new E}formatOffset(e,t){throw new E}offset(e){throw new E}equals(e){throw new E}get isValid(){throw new E}}let Z=null;class J extends W{static get instance(){return null===Z&&(Z=new J),Z}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return $e(e,t,r)}formatOffset(e,t){return Ke(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Y={};const X={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Q={};class ee extends W{static create(e){return Q[e]||(Q[e]=new ee(e)),Q[e]}static resetCache(){Q={},Y={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=ee.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return $e(e,t,r,this.name)}formatOffset(e,t){return Ke(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,Y[n]||(Y[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Y[n]);var n;let[a,i,s,o,d,l,u]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:a}=r[e],i=X[t];"era"===t?n[i]=a:xe(i)||(n[i]=parseInt(a,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,s,o,d,l,u]=n;return[s,a,i,o,d,l,u]}(r,t);"BC"===o&&(a=1-Math.abs(a));let p=+t;const c=p%1e3;return p-=c>=0?c:1e3+c,(Ue({year:a,month:i,day:s,hour:24===d?0:d,minute:l,second:u,millisecond:0})-p)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let te={};let re={};function ne(e,t={}){const r=JSON.stringify([e,t]);let n=re[r];return n||(n=new Intl.DateTimeFormat(e,t),re[r]=n),n}let ae={};let ie={};let se=null;function oe(e,t,r,n,a){const i=e.listingMode(r);return"error"===i?null:"en"===i?n(t):a(t)}class de{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:a,...i}=r;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=ae[r];return n||(n=new Intl.NumberFormat(e,t),ae[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ie(this.floor?Math.floor(e):Me(e,3),this.padTo)}}class le{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&ee.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const a={...this.opts};a.timeZone=a.timeZone||n,this.dtf=ne(t,a)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ue{constructor(e,t,r){this.opts={style:"long",...r},!t&&ke()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,a=JSON.stringify([e,n]);let i=ie[a];return i||(i=new Intl.RelativeTimeFormat(e,t),ie[a]=i),i}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${a[e][0]}`;case-1:return r?"yesterday":`last ${a[e][0]}`;case 0:return r?"today":`this ${a[e][0]}`}}const s=Object.is(t,-0)||t<0,o=Math.abs(t),d=1===o,l=a[e],u=n?d?l[1]:l[2]||l[1]:d?a[e][0]:e;return s?`${o} ${u} ago`:`in ${o} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class pe{static fromOpts(e){return pe.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,r,n=!1){const a=e||_e.defaultLocale,i=a||(n?"en-US":se||(se=(new Intl.DateTimeFormat).resolvedOptions().locale,se)),s=t||_e.defaultNumberingSystem,o=r||_e.defaultOutputCalendar;return new pe(i,s,o,a)}static resetCache(){se=null,re={},ae={},ie={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r}={}){return pe.create(e,t,r)}constructor(e,t,r,n){const[a,i,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=ne(e).resolvedOptions(),n=e}catch(a){const i=e.substring(0,r);t=ne(i).resolvedOptions(),n=i}const{numberingSystem:a,calendar:i}=t;return[n,a,i]}}(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=r||s||null,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?pe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,r=!0){return oe(this,e,r,Ye,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=mn.utc(2016,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1,r=!0){return oe(this,e,r,tt,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=mn.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(e=!0){return oe(this,void 0,e,(()=>rt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mn.utc(2016,11,13,9),mn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return oe(this,e,t,st,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[mn.utc(-40,1,1),mn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new de(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new le(e,this.intl,t)}relFormatter(e={}){return new ue(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=te[r];return n||(n=new Intl.ListFormat(e,t),te[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ce=null;class me extends W{static get utcInstance(){return null===ce&&(ce=new me(0)),ce}static instance(e){return 0===e?me.utcInstance:new me(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new me(ze(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ke(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ke(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class he extends W{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function fe(e,t){if(xe(e)||null===e)return t;if(e instanceof W)return e;if(function(e){return"string"==typeof e}(e)){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?J.instance:"utc"===r||"gmt"===r?me.utcInstance:me.parseSpecifier(r)||ee.create(e)}return Ce(e)?me.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new he(e)}let ge,ye=()=>Date.now(),ve="system",we=null,be=null,Se=null,Ee=60;class _e{static get now(){return ye}static set now(e){ye=e}static set defaultZone(e){ve=e}static get defaultZone(){return fe(ve,J.instance)}static get defaultLocale(){return we}static set defaultLocale(e){we=e}static get defaultNumberingSystem(){return be}static set defaultNumberingSystem(e){be=e}static get defaultOutputCalendar(){return Se}static set defaultOutputCalendar(e){Se=e}static get twoDigitCutoffYear(){return Ee}static set twoDigitCutoffYear(e){Ee=e%100}static get throwOnInvalid(){return ge}static set throwOnInvalid(e){ge=e}static resetCaches(){pe.resetCache(),ee.resetCache()}}function xe(e){return void 0===e}function Ce(e){return"number"==typeof e}function Ne(e){return"number"==typeof e&&e%1==0}function ke(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Te(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const a=[t(n),n];return e&&r(e[0],a[0])===e[0]?e:a}),null)[1]}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pe(e,t,r){return Ne(e)&&e>=t&&e<=r}function Ie(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function Oe(e){return xe(e)||null===e||""===e?void 0:parseInt(e,10)}function De(e){return xe(e)||null===e||""===e?void 0:parseFloat(e)}function Re(e){if(!xe(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Me(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Le(e){return e%4==0&&(e%100!=0||e%400==0)}function Fe(e){return Le(e)?366:365}function je(e,t){const r=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===r?Le(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ue(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ve(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function Be(e){return e>99?e:e>_e.twoDigitCutoffYear?1900+e:2e3+e}function $e(e,t,r,n=null){const a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(r,s).formatToParts(a).find((e=>"timezonename"===e.type.toLowerCase()));return o?o.value:null}function ze(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function qe(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new S(`Invalid unit value ${e}`);return t}function He(e,t){const r={};for(const n in e)if(Ae(e,n)){const a=e[n];if(null==a)continue;r[t(n)]=qe(a)}return r}function Ke(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${Ie(r,2)}:${Ie(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${Ie(r,2)}${Ie(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ge(e){return function(e,t){return t.reduce(((t,r)=>(t[r]=e[r],t)),{})}(e,["hour","minute","second","millisecond"])}const We=["January","February","March","April","May","June","July","August","September","October","November","December"],Ze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Je=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ye(e){switch(e){case"narrow":return[...Je];case"short":return[...Ze];case"long":return[...We];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Xe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Qe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],et=["M","T","W","T","F","S","S"];function tt(e){switch(e){case"narrow":return[...et];case"short":return[...Qe];case"long":return[...Xe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const rt=["AM","PM"],nt=["Before Christ","Anno Domini"],at=["BC","AD"],it=["B","A"];function st(e){switch(e){case"narrow":return[...it];case"short":return[...at];case"long":return[...nt];default:return null}}function ot(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const dt={D:N,DD:k,DDD:A,DDDD:P,t:I,tt:O,ttt:D,tttt:R,T:M,TT:L,TTT:F,TTTT:j,f:U,ff:B,fff:q,ffff:K,F:V,FF:$,FFF:H,FFFF:G};class lt{static create(e,t={}){return new lt(e,t)}static parseFormat(e){let t=null,r="",n=!1;const a=[];for(let i=0;i<e.length;i++){const s=e.charAt(i);"'"===s?(r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,t=s)}return r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(e){return dt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ie(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=(t,r)=>this.loc.extract(e,t,r),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",s=()=>r?function(e){return rt[e.hour<12?0:1]}(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(t,n)=>r?function(e,t){return Ye(t)[e.month-1]}(e,t):a(n?{month:t}:{month:t,day:"numeric"},"month"),d=(t,n)=>r?function(e,t){return tt(t)[e.weekday-1]}(e,t):a(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const r=lt.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},u=t=>r?function(e,t){return st(t)[e.year<0?0:1]}(e,t):a({era:t},"era");return ot(lt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return n?a({day:"numeric"},"day"):this.num(e.day);case"dd":return n?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return n?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return n?a({month:"numeric"},"month"):this.num(e.month);case"MM":return n?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return n?a({year:"numeric"},"year"):this.num(e.year);case"yy":return n?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=lt.parseFormat(t),a=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),i=e.shiftTo(...a.map(r).filter((e=>e)));return ot(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(i))}}class ut{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const pt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ct(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function mt(...e){return t=>e.reduce((([e,r,n],a)=>{const[i,s,o]=a(t,n);return[{...e,...i},s||r,o]}),[{},null,1]).slice(0,2)}function ht(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function ft(...e){return(t,r)=>{const n={};let a;for(a=0;a<e.length;a++)n[e[a]]=Oe(t[r+a]);return[n,null,r+a]}}const gt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,vt=RegExp(`${yt.source}${`(?:${gt.source}?(?:\\[(${pt.source})\\])?)?`}`),wt=RegExp(`(?:T${vt.source})?`),bt=ft("weekYear","weekNumber","weekDay"),St=ft("year","ordinal"),Et=RegExp(`${yt.source} ?(?:${gt.source}|(${pt.source}))?`),_t=RegExp(`(?: ${Et.source})?`);function xt(e,t,r){const n=e[t];return xe(n)?r:Oe(n)}function Ct(e,t){return[{hours:xt(e,t,0),minutes:xt(e,t+1,0),seconds:xt(e,t+2,0),milliseconds:Re(e[t+3])},null,t+4]}function Nt(e,t){const r=!e[t]&&!e[t+1],n=ze(e[t+1],e[t+2]);return[{},r?null:me.instance(n),t+3]}function kt(e,t){return[{},e[t]?ee.create(e[t]):null,t+1]}const Tt=RegExp(`^T?${yt.source}$`),At=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Pt(e){const[t,r,n,a,i,s,o,d,l]=e,u="-"===t[0],p=d&&"-"===d[0],c=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:c(De(r)),months:c(De(n)),weeks:c(De(a)),days:c(De(i)),hours:c(De(s)),minutes:c(De(o)),seconds:c(De(d),"-0"===d),milliseconds:c(Re(l),p)}]}const It={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ot(e,t,r,n,a,i,s){const o={year:2===t.length?Be(Oe(t)):Oe(t),month:Ze.indexOf(r)+1,day:Oe(n),hour:Oe(a),minute:Oe(i)};return s&&(o.second=Oe(s)),e&&(o.weekday=e.length>3?Xe.indexOf(e)+1:Qe.indexOf(e)+1),o}const Dt=/^(?:(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\d)(\d\d)))$/;function Rt(e){const[,t,r,n,a,i,s,o,d,l,u,p]=e,c=Ot(t,a,n,r,i,s,o);let m;return m=d?It[d]:l?0:ze(u,p),[c,new me(m)]}const Mt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jt(e){const[,t,r,n,a,i,s,o]=e;return[Ot(t,a,n,r,i,s,o),me.utcInstance]}function Ut(e){const[,t,r,n,a,i,s,o]=e;return[Ot(t,o,r,n,a,i,s),me.utcInstance]}const Vt=ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Bt=ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),$t=ct(/(\d{4})-?(\d{3})/,wt),zt=ct(vt),qt=mt((function(e,t){return[{year:xt(e,t),month:xt(e,t+1,1),day:xt(e,t+2,1)},null,t+3]}),Ct,Nt,kt),Ht=mt(bt,Ct,Nt,kt),Kt=mt(St,Ct,Nt,kt),Gt=mt(Ct,Nt,kt);const Wt=mt(Ct);const Zt=ct(/(\d{4})-(\d\d)-(\d\d)/,_t),Jt=ct(Et),Yt=mt(Ct,Nt,kt);const Xt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qt={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Xt},er=365.2425,tr=30.436875,rr={years:{quarters:4,months:12,weeks:52.1775,days:er,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:tr,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Xt},nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ar=nr.slice(0).reverse();function ir(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new or(n)}function sr(e,t,r,n,a){const i=e[a][r],s=t[r]/i,o=!(Math.sign(s)===Math.sign(n[a]))&&0!==n[a]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[a]+=o,t[r]-=o*i}class or{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?rr:Qt;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||pe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return or.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new S("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new or({values:He(e,or.normalizeUnit),loc:pe.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ce(e))return or.fromMillis(e);if(or.isDuration(e))return e;if("object"==typeof e)return or.fromObject(e);throw new S(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return ht(e,[At,Pt])}(e);return r?or.fromObject(r,t):or.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return ht(e,[Tt,Wt])}(e);return r?or.fromObject(r,t):or.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new S("need to specify a reason the Duration is invalid");const r=e instanceof ut?e:new ut(e,t);if(_e.throwOnInvalid)throw new v(r);return new or({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new b(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?lt.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=nr.map((t=>{const r=this.values[t];return xe(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Me(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));let a=r.toFormat(n);return e.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=or.fromDurationLike(e),r={};for(const e of nr)(Ae(t.values,e)||Ae(this.values,e))&&(r[e]=t.get(e)+this.get(e));return ir(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=or.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=qe(e(this.values[r],r));return ir(this,{values:t},!0)}get(e){return this[or.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return ir(this,{values:{...this.values,...He(e,or.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return ir(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){ar.reduce(((r,n)=>xe(t[n])?r:(r&&sr(e,t,r,t,n),n)),null)}(this.matrix,e),ir(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return ir(this,{values:function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>or.normalizeUnit(e)));const t={},r={},n=this.toObject();let a;for(const i of nr)if(e.indexOf(i)>=0){a=i;let e=0;for(const t in r)e+=this.matrix[t][i]*r[t],r[t]=0;Ce(n[i])&&(e+=n[i]);const s=Math.trunc(e);t[i]=s,r[i]=(1e3*e-1e3*s)/1e3;for(const e in n)nr.indexOf(e)>nr.indexOf(i)&&sr(this.matrix,n,e,t,i)}else Ce(n[i])&&(r[i]=n[i]);for(const e in r)0!==r[e]&&(t[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return ir(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return ir(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of nr)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const dr="Invalid Interval";class lr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new S("need to specify a reason the Interval is invalid");const r=e instanceof ut?e:new ut(e,t);if(_e.throwOnInvalid)throw new y(r);return new lr({invalid:r})}static fromDateTimes(e,t){const r=hn(e),n=hn(t),a=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?lr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:lr.invalid("missing or invalid end"):lr.invalid("missing or invalid start")}(r,n);return null==a?new lr({start:r,end:n}):a}static after(e,t){const r=or.fromDurationLike(t),n=hn(e);return lr.fromDateTimes(n,n.plus(r))}static before(e,t){const r=or.fromDurationLike(t),n=hn(e);return lr.fromDateTimes(n.minus(r),n)}static fromISO(e,t){const[r,n]=(e||"").split("/",2);if(r&&n){let e,a,i,s;try{e=mn.fromISO(r,t),a=e.isValid}catch(n){a=!1}try{i=mn.fromISO(n,t),s=i.isValid}catch(n){s=!1}if(a&&s)return lr.fromDateTimes(e,i);if(a){const r=or.fromISO(n,t);if(r.isValid)return lr.after(e,r)}else if(s){const e=or.fromISO(r,t);if(e.isValid)return lr.before(i,e)}}return lr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?lr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(hn).filter((e=>this.contains(e))).sort(),r=[];let{s:n}=this,a=0;for(;n<this.e;){const e=t[a]||this.e,i=+e>+this.e?this.e:e;r.push(lr.fromDateTimes(n,i)),n=i,a+=1}return r}splitBy(e){const t=or.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,a=1;const i=[];for(;n<this.e;){const e=this.start.plus(t.mapUnits((e=>e*a)));r=+e>+this.e?this.e:e,i.push(lr.fromDateTimes(n,r)),n=r,a+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:lr.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return lr.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],a=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),i=Array.prototype.concat(...a).sort(((e,t)=>e.time-t.time));for(const e of i)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(lr.fromDateTimes(t,e.time)),t=null);return lr.merge(n)}difference(...e){return lr.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:dr}toLocaleString(e=N,t={}){return this.isValid?lt.create(this.s.loc.clone(t),e).formatInterval(this):dr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:dr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:dr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:dr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:dr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):or.invalid(this.invalidReason)}mapEndpoints(e){return lr.fromDateTimes(e(this.s),e(this.e))}}class ur{static hasDST(e=_e.defaultZone){const t=mn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ee.isValidZone(e)}static normalizeZone(e){return fe(e,_e.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:a="gregory"}={}){return(n||pe.create(t,r,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:a="gregory"}={}){return(n||pe.create(t,r,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||pe.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||pe.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pe.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return pe.create(t,null,"gregory").eras(e)}static features(){return{relative:ke()}}}function pr(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(or.fromMillis(n).as("days"))}function cr(e,t,r,n){let[a,i,s,o]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=pr(e,t);return(r-r%7)/7}],["days",pr]],a={},i=e;let s,o;for(const[d,l]of n)r.indexOf(d)>=0&&(s=d,a[d]=l(e,t),o=i.plus(a),o>t?(a[d]--,e=i.plus(a)):e=o);return[e,a,o,s]}(e,t,r);const d=t-a,l=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(s<t&&(s=a.plus({[o]:1})),s!==a&&(i[o]=(i[o]||0)+d/(s-a)));const u=or.fromObject(i,n);return l.length>0?or.fromMillis(d,n).shiftTo(...l).plus(u):u}const mr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},hr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fr=mr.hanidec.replace(/[\[|\]]/g,"").split("");function gr({numberingSystem:e},t=""){return new RegExp(`${mr[e||"latn"]}${t}`)}const yr="missing Intl.DateTimeFormat.formatToParts support";function vr(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(-1!==e[r].search(mr.hanidec))t+=fr.indexOf(e[r]);else for(const e in hr){const[r,a]=hr[e];n>=r&&n<=a&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const wr=`[ ${String.fromCharCode(160)}]`,br=new RegExp(wr,"g");function Sr(e){return e.replace(/\./g,"\\.?").replace(br,wr)}function Er(e){return e.replace(/\./g,"").replace(br," ").toLowerCase()}function _r(e,t){return null===e?null:{regex:RegExp(e.map(Sr).join("|")),deser:([r])=>e.findIndex((e=>Er(r)===Er(e)))+t}}function xr(e,t){return{regex:e,deser:([,e,t])=>ze(e,t),groups:t}}function Cr(e){return{regex:e,deser:([e])=>e}}const Nr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let kr=null;function Tr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=Pr(lt.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function Ar(e,t,r){const n=Tr(lt.parseFormat(r),e),a=n.map((t=>function(e,t){const r=gr(t),n=gr(t,"{2}"),a=gr(t,"{3}"),i=gr(t,"{4}"),s=gr(t,"{6}"),o=gr(t,"{1,2}"),d=gr(t,"{1,3}"),l=gr(t,"{1,6}"),u=gr(t,"{1,9}"),p=gr(t,"{2,4}"),c=gr(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},h=(h=>{if(e.literal)return m(h);switch(h.val){case"G":return _r(t.eras("short",!1),0);case"GG":return _r(t.eras("long",!1),0);case"y":return vr(l);case"yy":case"kk":return vr(p,Be);case"yyyy":case"kkkk":return vr(i);case"yyyyy":return vr(c);case"yyyyyy":return vr(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return vr(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return vr(n);case"MMM":return _r(t.months("short",!0,!1),1);case"MMMM":return _r(t.months("long",!0,!1),1);case"LLL":return _r(t.months("short",!1,!1),1);case"LLLL":return _r(t.months("long",!1,!1),1);case"o":case"S":return vr(d);case"ooo":case"SSS":return vr(a);case"u":return Cr(u);case"uu":return Cr(o);case"uuu":case"E":case"c":return vr(r);case"a":return _r(t.meridiems(),0);case"EEE":return _r(t.weekdays("short",!1,!1),1);case"EEEE":return _r(t.weekdays("long",!1,!1),1);case"ccc":return _r(t.weekdays("short",!0,!1),1);case"cccc":return _r(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xr(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return xr(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return Cr(/[a-z_+-/]{1,256}?/i);case" ":return Cr(/[^\S\n\r]/);default:return m(h)}})(e)||{invalidReason:yr};return h.token=e,h}(t,e))),i=a.find((e=>e.invalidReason));if(i)return{input:t,tokens:n,invalidReason:i.invalidReason};{const[e,r]=function(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}(a),i=RegExp(e,"i"),[s,o]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const a in r)if(Ae(r,a)){const i=r[a],s=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(n.slice(t,t+s))),t+=s}return[n,e]}return[n,{}]}(t,i,r),[d,l,u]=o?function(e){let t,r=null;xe(e.z)||(r=ee.create(e.z)),xe(e.Z)||(r||(r=new me(e.Z)),t=e.Z),xe(e.q)||(e.M=3*(e.q-1)+1),xe(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),xe(e.u)||(e.S=Re(e.u));const n=Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{});return[n,r,t]}(o):[null,null,void 0];if(Ae(o,"a")&&Ae(o,"H"))throw new w("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:i,rawMatches:s,matches:o,result:d,zone:l,specificOffset:u}}}function Pr(e,t){if(!e)return null;return lt.create(t,e).formatDateTimeParts((kr||(kr=mn.fromMillis(1555555555555)),kr)).map((t=>function(e,t){const{type:r,value:n}=e;if("literal"===r){const e=/^\s+$/.test(n);return{literal:!e,val:e?" ":n}}const a=t[r];let i=Nr[r];if("object"==typeof i&&(i=i[a]),i)return{literal:!1,val:i}}(t,e)))}const Ir=[0,31,59,90,120,151,181,212,243,273,304,334],Or=[0,31,60,91,121,152,182,213,244,274,305,335];function Dr(e,t){return new ut("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Rr(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return 0===a?7:a}function Mr(e,t,r){return r+(Le(e)?Or:Ir)[t-1]}function Lr(e,t){const r=Le(e)?Or:Ir,n=r.findIndex((e=>e<t));return{month:n+1,day:t-r[n]}}function Fr(e){const{year:t,month:r,day:n}=e,a=Mr(t,r,n),i=Rr(t,r,n);let s,o=Math.floor((a-i+10)/7);return o<1?(s=t-1,o=Ve(s)):o>Ve(t)?(s=t+1,o=1):s=t,{weekYear:s,weekNumber:o,weekday:i,...Ge(e)}}function jr(e){const{weekYear:t,weekNumber:r,weekday:n}=e,a=Rr(t,1,4),i=Fe(t);let s,o=7*r+n-a-3;o<1?(s=t-1,o+=Fe(s)):o>i?(s=t+1,o-=Fe(t)):s=t;const{month:d,day:l}=Lr(s,o);return{year:s,month:d,day:l,...Ge(e)}}function Ur(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:Mr(t,r,n),...Ge(e)}}function Vr(e){const{year:t,ordinal:r}=e,{month:n,day:a}=Lr(t,r);return{year:t,month:n,day:a,...Ge(e)}}function Br(e){const t=Ne(e.year),r=Pe(e.month,1,12),n=Pe(e.day,1,je(e.year,e.month));return t?r?!n&&Dr("day",e.day):Dr("month",e.month):Dr("year",e.year)}function $r(e){const{hour:t,minute:r,second:n,millisecond:a}=e,i=Pe(t,0,23)||24===t&&0===r&&0===n&&0===a,s=Pe(r,0,59),o=Pe(n,0,59),d=Pe(a,0,999);return i?s?o?!d&&Dr("millisecond",a):Dr("second",n):Dr("minute",r):Dr("hour",t)}const zr="Invalid DateTime",qr=864e13;function Hr(e){return new ut("unsupported zone",`the zone "${e.name}" is not supported`)}function Kr(e){return null===e.weekData&&(e.weekData=Fr(e.c)),e.weekData}function Gr(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new mn({...r,...t,old:r})}function Wr(e,t,r){let n=e-60*t*1e3;const a=r.offset(n);if(t===a)return[n,t];n-=60*(a-t)*1e3;const i=r.offset(n);return a===i?[n,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}function Zr(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Jr(e,t,r){return Wr(Ue(e),t,r)}function Yr(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:n,month:a,day:Math.min(e.c.day,je(n,a))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=or.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Ue(i);let[d,l]=Wr(o,r,e.zone);return 0!==s&&(d+=s,l=e.zone.offset(d)),{ts:d,o:l}}function Xr(e,t,r,n,a,i){const{setZone:s,zone:o}=r;if(e&&0!==Object.keys(e).length||t){const n=t||o,a=mn.fromObject(e,{...r,zone:n,specificOffset:i});return s?a:a.setZone(o)}return mn.invalid(new ut("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Qr(e,t,r=!0){return e.isValid?lt.create(pe.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function en(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=Ie(e.c.year,r?6:4),t?(n+="-",n+=Ie(e.c.month),n+="-",n+=Ie(e.c.day)):(n+=Ie(e.c.month),n+=Ie(e.c.day)),n}function tn(e,t,r,n,a,i){let s=Ie(e.c.hour);return t?(s+=":",s+=Ie(e.c.minute),0===e.c.second&&r||(s+=":")):s+=Ie(e.c.minute),0===e.c.second&&r||(s+=Ie(e.c.second),0===e.c.millisecond&&n||(s+=".",s+=Ie(e.c.millisecond,3))),a&&(e.isOffsetFixed&&0===e.offset&&!i?s+="Z":e.o<0?(s+="-",s+=Ie(Math.trunc(-e.o/60)),s+=":",s+=Ie(Math.trunc(-e.o%60))):(s+="+",s+=Ie(Math.trunc(e.o/60)),s+=":",s+=Ie(Math.trunc(e.o%60)))),i&&(s+="["+e.zone.ianaName+"]"),s}const rn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},an={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sn=["year","month","day","hour","minute","second","millisecond"],on=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],dn=["year","ordinal","hour","minute","second","millisecond"];function ln(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new b(e);return t}function un(e,t){const r=fe(t.zone,_e.defaultZone),n=pe.fromObject(t),a=_e.now();let i,s;if(xe(e.year))i=a;else{for(const t of sn)xe(e[t])&&(e[t]=rn[t]);const t=Br(e)||$r(e);if(t)return mn.invalid(t);const n=r.offset(a);[i,s]=Jr(e,n,r)}return new mn({ts:i,zone:r,loc:n,o:s})}function pn(e,t,r){const n=!!xe(r.round)||r.round,a=(e,a)=>{e=Me(e,n||r.calendary?0:2,!0);return t.loc.clone(r).relFormatter(r).format(e,a)},i=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return a(i(r.unit),r.unit);for(const e of r.units){const t=i(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,r.units[r.units.length-1])}function cn(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class mn{constructor(e){const t=e.zone||_e.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ut("invalid input"):null)||(t.isValid?null:Hr(t));this.ts=xe(e.ts)?_e.now():e.ts;let n=null,a=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,a]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=Zr(this.ts,e),r=Number.isNaN(n.year)?new ut("invalid input"):null,n=r?null:n,a=r?null:e}}this._zone=t,this.loc=e.loc||pe.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=a,this.isLuxonDateTime=!0}static now(){return new mn({})}static local(){const[e,t]=cn(arguments),[r,n,a,i,s,o,d]=t;return un({year:r,month:n,day:a,hour:i,minute:s,second:o,millisecond:d},e)}static utc(){const[e,t]=cn(arguments),[r,n,a,i,s,o,d]=t;return e.zone=me.utcInstance,un({year:r,month:n,day:a,hour:i,minute:s,second:o,millisecond:d},e)}static fromJSDate(e,t={}){const r=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(r))return mn.invalid("invalid input");const n=fe(t.zone,_e.defaultZone);return n.isValid?new mn({ts:r,zone:n,loc:pe.fromObject(t)}):mn.invalid(Hr(n))}static fromMillis(e,t={}){if(Ce(e))return e<-qr||e>qr?mn.invalid("Timestamp out of range"):new mn({ts:e,zone:fe(t.zone,_e.defaultZone),loc:pe.fromObject(t)});throw new S(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ce(e))return new mn({ts:1e3*e,zone:fe(t.zone,_e.defaultZone),loc:pe.fromObject(t)});throw new S("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=fe(t.zone,_e.defaultZone);if(!r.isValid)return mn.invalid(Hr(r));const n=_e.now(),a=xe(t.specificOffset)?r.offset(n):t.specificOffset,i=He(e,ln),s=!xe(i.ordinal),o=!xe(i.year),d=!xe(i.month)||!xe(i.day),l=o||d,u=i.weekYear||i.weekNumber,p=pe.fromObject(t);if((l||s)&&u)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new w("Can't mix ordinal dates with month/day");const c=u||i.weekday&&!l;let m,h,f=Zr(n,a);c?(m=on,h=nn,f=Fr(f)):s?(m=dn,h=an,f=Ur(f)):(m=sn,h=rn);let g=!1;for(const e of m){xe(i[e])?i[e]=g?h[e]:f[e]:g=!0}const y=c?function(e){const t=Ne(e.weekYear),r=Pe(e.weekNumber,1,Ve(e.weekYear)),n=Pe(e.weekday,1,7);return t?r?!n&&Dr("weekday",e.weekday):Dr("week",e.week):Dr("weekYear",e.weekYear)}(i):s?function(e){const t=Ne(e.year),r=Pe(e.ordinal,1,Fe(e.year));return t?!r&&Dr("ordinal",e.ordinal):Dr("year",e.year)}(i):Br(i),v=y||$r(i);if(v)return mn.invalid(v);const b=c?jr(i):s?Vr(i):i,[S,E]=Jr(b,a,r),_=new mn({ts:S,zone:r,o:E,loc:p});return i.weekday&&l&&e.weekday!==_.weekday?mn.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${_.toISO()}`):_}static fromISO(e,t={}){const[r,n]=function(e){return ht(e,[Vt,qt],[Bt,Ht],[$t,Kt],[zt,Gt])}(e);return Xr(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return ht(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Dt,Rt])}(e);return Xr(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return ht(e,[Mt,jt],[Lt,jt],[Ft,Ut])}(e);return Xr(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(xe(e)||xe(t))throw new S("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:a=null}=r,i=pe.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0}),[s,o,d,l]=function(e,t,r){const{result:n,zone:a,specificOffset:i,invalidReason:s}=Ar(e,t,r);return[n,a,i,s]}(i,e,t);return l?mn.invalid(l):Xr(s,o,r,`format ${t}`,e,d)}static fromString(e,t,r={}){return mn.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return ht(e,[Zt,qt],[Jt,Yt])}(e);return Xr(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new S("need to specify a reason the DateTime is invalid");const r=e instanceof ut?e:new ut(e,t);if(_e.throwOnInvalid)throw new g(r);return new mn({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Pr(e,pe.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Tr(lt.parseFormat(e),pe.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Kr(this).weekYear:NaN}get weekNumber(){return this.isValid?Kr(this).weekNumber:NaN}get weekday(){return this.isValid?Kr(this).weekday:NaN}get ordinal(){return this.isValid?Ur(this.c).ordinal:NaN}get monthShort(){return this.isValid?ur.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ur.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ur.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ur.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return Le(this.year)}get daysInMonth(){return je(this.year,this.month)}get daysInYear(){return this.isValid?Fe(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ve(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=lt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(me.instance(e),t)}toLocal(){return this.setZone(_e.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=fe(e,_e.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=Jr(r,t,e)}return Gr(this,{ts:n,zone:e})}return mn.invalid(Hr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return Gr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=He(e,ln),r=!xe(t.weekYear)||!xe(t.weekNumber)||!xe(t.weekday),n=!xe(t.ordinal),a=!xe(t.year),i=!xe(t.month)||!xe(t.day),s=a||i,o=t.weekYear||t.weekNumber;if((s||n)&&o)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&n)throw new w("Can't mix ordinal dates with month/day");let d;r?d=jr({...Fr(this.c),...t}):xe(t.ordinal)?(d={...this.toObject(),...t},xe(t.day)&&(d.day=Math.min(je(d.year,d.month),d.day))):d=Vr({...Ur(this.c),...t});const[l,u]=Jr(d,this.o,this.zone);return Gr(this,{ts:l,o:u})}plus(e){if(!this.isValid)return this;return Gr(this,Yr(this,or.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Gr(this,Yr(this,or.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},r=or.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?lt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):zr}toLocaleString(e=N,t={}){return this.isValid?lt.create(this.loc.clone(t),e).formatDateTime(this):zr}toLocaleParts(e={}){return this.isValid?lt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const i="extended"===e;let s=en(this,i);return s+="T",s+=tn(this,i,t,r,n,a),s}toISODate({format:e="extended"}={}){return this.isValid?en(this,"extended"===e):null}toISOWeekDate(){return Qr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:a=!1,format:i="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+tn(this,"extended"===i,t,e,r,a)}toRFC2822(){return Qr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Qr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?en(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),Qr(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():zr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return or.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=(o=t,Array.isArray(o)?o:[o]).map(or.normalizeUnit),i=e.valueOf()>this.valueOf(),s=cr(i?this:e,i?e:this,a,n);var o;return i?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(mn.now(),e,t)}until(e){return this.isValid?lr.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||mn.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(n=e.unit,a=void 0),pn(t,this.plus(r),{...e,numeric:"always",units:n,unit:a})}toRelativeCalendar(e={}){return this.isValid?pn(e.base||mn.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(mn.isDateTime))throw new S("min requires all arguments be DateTimes");return Te(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(mn.isDateTime))throw new S("max requires all arguments be DateTimes");return Te(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:a=null}=r;return Ar(pe.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return mn.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return N}static get DATE_MED(){return k}static get DATE_MED_WITH_WEEKDAY(){return T}static get DATE_FULL(){return A}static get DATE_HUGE(){return P}static get TIME_SIMPLE(){return I}static get TIME_WITH_SECONDS(){return O}static get TIME_WITH_SHORT_OFFSET(){return D}static get TIME_WITH_LONG_OFFSET(){return R}static get TIME_24_SIMPLE(){return M}static get TIME_24_WITH_SECONDS(){return L}static get TIME_24_WITH_SHORT_OFFSET(){return F}static get TIME_24_WITH_LONG_OFFSET(){return j}static get DATETIME_SHORT(){return U}static get DATETIME_SHORT_WITH_SECONDS(){return V}static get DATETIME_MED(){return B}static get DATETIME_MED_WITH_SECONDS(){return $}static get DATETIME_MED_WITH_WEEKDAY(){return z}static get DATETIME_FULL(){return q}static get DATETIME_FULL_WITH_SECONDS(){return H}static get DATETIME_HUGE(){return K}static get DATETIME_HUGE_WITH_SECONDS(){return G}}function hn(e){if(mn.isDateTime(e))return e;if(e&&e.valueOf&&Ce(e.valueOf()))return mn.fromJSDate(e);if(e&&"object"==typeof e)return mn.fromObject(e);throw new S(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var fn,gn,yn,vn;!function(e){e.error="error",e.warn="warn",e.info="info",e.verbose="verbose",e.debug="debug",e.silly="silly"}(fn||(fn={}));let wn=class{_lastLogMessage={messageSource:"No message yet",timestamp:(new Date).getTime(),lvl:fn.info};_buffer=[];_bufferIdx=0;_lastSnapshotIdx=0;_bufferSize;constructor(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e}get currentIndex(){return this._bufferIdx}get lastSnapshotIdx(){return this._lastSnapshotIdx}set bufferSize(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e,this.clearRingBuffer()}getMessages(e=null,t=!1,r=!1){let n=null;if(this._bufferIdx<this._bufferSize){const t=null==e?0:e;n=this._buffer.slice(t,this._bufferIdx)}else{n=[];const t=this._bufferIdx-this._bufferSize;for(let r=e?Math.max(e,t):t;r<this._bufferIdx;r++)n.push(this._buffer[r%this._bufferSize])}return t&&this.clearRingBuffer(),r&&(n=n.reverse()),n}takeSnapshot(){const e=Math.max(0,this._bufferIdx-this._bufferSize),t={messages:this.getMessages(this._lastSnapshotIdx),logMessagesTruncated:Math.max(0,e-this._lastSnapshotIdx)};return this._lastSnapshotIdx=this._bufferIdx,t}getLastLogMessage(){return Object.assign({},this._lastLogMessage)}clearRingBuffer(){this._buffer=[],this._bufferIdx=0,this._lastSnapshotIdx=0}addToRingBuffer(e){this._lastLogMessage=e,this._buffer[this._bufferIdx%this._bufferSize]=e,this._bufferIdx++}};!function(e){e.Console="Console",e.ConsoleNoDebug="ConsoleNoDebug",e.StdOut="StdOut"}(gn||(gn={}));let bn=class e{static LOG_LEVELS_IN_ORDER=[fn.error,fn.warn,fn.info,fn.verbose,fn.debug,fn.silly];static handlerFunctionMap(e=gn.Console){const t=new Map;if(e===gn.StdOut){if(!process?.stdout?.write)throw new Error("Cannot use standard out - process.stdout.write not found");const e=(e,t)=>process.stdout.write(e,"utf-8",t);t.set(fn.error,e),t.set(fn.warn,e),t.set(fn.info,e),t.set(fn.verbose,e),t.set(fn.debug,e),t.set(fn.silly,e)}else t.set(fn.error,console.error),t.set(fn.warn,console.warn),t.set(fn.info,console.info),t.set(fn.verbose,e===gn.ConsoleNoDebug?console.log:console.debug),t.set(fn.debug,e===gn.ConsoleNoDebug?console.log:console.debug),t.set(fn.silly,e===gn.ConsoleNoDebug?console.log:console.debug);return t}static defaultHandlerFunction(){return console.info}static levelIsEnabled(t,r){const n=e.LOG_LEVELS_IN_ORDER.indexOf(t),a=e.LOG_LEVELS_IN_ORDER.indexOf(r);return n>-1&&a>-1&&a>=n}};!function(e){e.ClassicSingleLine="ClassicSingleLine",e.StructuredJson="StructuredJson",e.None="None"}(yn||(yn={}));let Sn=class e{static isNullOrUndefined(e){return null==e}static notNullOrUndefined(t,r="object"){if(e.isNullOrUndefined(t))throw new Error(r+" may not be null or undefined")}static notNullUndefinedOrOnlyWhitespaceString(t,r="string"){if(e.isNullOrUndefined(t)||""===t.trim())throw new Error(r+" may not be null or undefined or only whitespace string")}static notNullUndefinedOrEmptyArray(t,r="string"){if(e.isNullOrUndefined(t)||0===t.length)throw new Error(r+" may not be null or undefined or an empty array")}static equal(e,t,r="Values must be equal"){if(e!==t)throw new Error(r)}static true(t,r="Value must be true"){e.equal(t,!0,r)}static noNullOrUndefinedValuesInArray(t,r=null,n=null){if(e.notNullOrUndefined(t,"Source array may not be null"),null!==r&&t.length!==r)throw new Error(`Expected array of length ${r} but was ${t.length} ${n}`);for(let r=0;r<t.length;r++)if(e.isNullOrUndefined(t[r]))throw new Error(`Array index ${r} was null or undefined ${n}`)}static noNullOrUndefinedValuesInRestArgs(t,...r){if(e.notNullOrUndefined(r,"Source array may not be null"),null!==t&&r.length!==t)throw new Error(`Expected array of length ${t} but was ${r.length}`);for(let t=0;t<r.length;t++)if(e.isNullOrUndefined(r[t]))throw new Error(`Array index ${t} was null or undefined`)}static constructorArgumentsMatchLengthAndAreNonNull(){const t=Array.from(arguments),r=this.constructor.length;return e.noNullOrUndefinedValuesInArray(t,r)}},En=class e{static RFC_3986_RESERVED=["!","*","'","(",")",";",":","@","&","=","+","$",",","/","?","#","[","]","%"];static stringToUint8Array(e){return e?(new TextEncoder).encode(e):null}static uint8ArrayToString(e){return e?(new TextDecoder).decode(e):null}static attemptJsonParse(t){let r=null;if(e.trimToNull(t))try{r=JSON.parse(t)}catch(t){r=null}return r}static canParseAsJson(t){return!!e.attemptJsonParse(t)}static allUnique(e){let t=!0;if(e){const r=new Set;for(let n=0;n<e.length&&t;n++){const a=e.charAt(n);t=!r.has(a),r.add(a)}}return t}static allPermutationsOfLength(t,r){const n=[];if(t>0&&r&&r.length>0){Sn.true(e.allUnique(r),"Alphabet must be unique");const a=1===t?[""]:e.allPermutationsOfLength(t-1,r);for(let e=0;e<r.length;e++)a.forEach((t=>n.push(r.charAt(e)+t)))}return n}static createType4Guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}static createRandomHexString(e=10){let t="";for(let r=0;r<e;r++)t+=Math.floor(16*Math.random()).toString(16);return t}static canonicalize(t){let r=t?t.toLowerCase():"";return r=r.replace(" ","-"),e.RFC_3986_RESERVED.forEach((e=>{r=r.replace(e,"")})),r}static formatBytes(e,t=2){if(0==e)return"0 Bytes";const r=t||2,n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(r))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}static safeString(e){let t=null;return null!=e&&(t="string"==typeof e?e:String(e)),t}static stringContainsOnlyNumbers(e){return/^[0-9]+$/.test(e)}static stringContainsOnlyAlphanumeric(e){return/^[0-9a-zA-Z]+$/.test(e)}static stringContainsOnlyHex(e){return/^[0-9a-fA-F]+$/.test(e)}static stringContainsOnly(e,t){const r=e||"",n=t||"";let a=!0;for(let e=0;e<r.length&&a;e++)a=n.indexOf(r.charAt(e))>=0;return a}static obscure(e,t=2,r=2){if(!e)return e;const n=e.length;let a=t,i=r;for(;n>0&&n<a+i+1;)a=Math.max(0,a-1),i=Math.max(0,i-1);const s=n-(a+i);let o="";o+=e.substring(0,a);for(let e=0;e<s;e++)o+="*";return o+=e.substring(n-i),o}static leadingZeros(e,t){let r=!1,n=String(e);if(n.startsWith("-")&&(r=!0,n=n.substring(1)),t>50)throw new Error("Cannot format number that large");let a=("00000000000000000000000000000000000000000000000000"+n).slice(-1*t);return r&&(a="-"+a),a}static trimToEmpty(t){return(t?e.safeString(t):"").trim()}static trimToNull(t){const r=e.trimToEmpty(t);return r.length>0?r:null}static trimAllStringPropertiesToNullInPlace(t){return e.trimAllStringPropertiesInPlace(t,!1)}static trimAllStringPropertiesToEmptyInPlace(t){return e.trimAllStringPropertiesInPlace(t,!0)}static trimAllStringPropertiesInPlace(t,r){return Object.keys(t).forEach((n=>{const a=t[n];null!=a&&"string"==typeof a&&(t[n]=r?e.trimToEmpty(t[n]):e.trimToNull(t[n]))})),t}static stripNonNumeric(t){let r=t;if(null!=t&&!e.stringContainsOnlyNumbers(t)){r="";for(let n=0;n<t.length;n++){const a=t.charAt(n);(e.stringContainsOnlyNumbers(a)||0===n&&"-"===a)&&(r+=a)}}return r}static csvSafe(t){let r=e.trimToEmpty(e.safeString(t));return r.split('"').join('\\"'),-1===r.indexOf(",")&&-1===r.indexOf('"')&&-1===r.indexOf("'")||(r='"'+r+'"'),r}static stripNonAscii(e){return[...e].reduce(((e,t)=>t.charCodeAt(0)>127?e:e+t))}},_n=class t{static LOGGER_INSTANCES=new Map;static DEFAULT_OPTIONS={initialLevel:fn.info,formatType:yn.ClassicSingleLine,trace:null,globalVars:{},outputFunction:gn.Console,ringBufferSize:0,preProcessors:[]};static applyDefaultsToOptions(e){const r=e||{};return r.initialLevel=r.initialLevel??t.DEFAULT_OPTIONS.initialLevel,r.formatType=r.formatType??t.DEFAULT_OPTIONS.formatType,r.trace=r.trace??t.DEFAULT_OPTIONS.trace,r.globalVars=r.globalVars??t.DEFAULT_OPTIONS.globalVars,r.outputFunction=r.outputFunction??t.DEFAULT_OPTIONS.outputFunction,r.ringBufferSize=r.ringBufferSize??t.DEFAULT_OPTIONS.ringBufferSize,r}static changeDefaultOptions(e,r){if(!e||!e.initialLevel||!e.formatType)throw new Error("Default options must be non-null, and provide initial level and format type");t.DEFAULT_OPTIONS=Object.assign({},e),r&&Array.from(t.LOGGER_INSTANCES.values()).forEach((t=>t.options=e))}static getLogger(r="default",n){let a=t.LOGGER_INSTANCES.get(r);if(!a){const i=t.applyDefaultsToOptions(n);a=new class{loggerInstanceName;_loggerMeta;_ringBuffer;_formatter;_level;_handlerFunctionMap;_options;constructor(e="default",t){this.loggerInstanceName=e,this.options=t}addPreProcessor(e){return e&&(this._options.preProcessors=this._options.preProcessors||[],this._options.preProcessors.push(e)),Object.assign([],this._options.preProcessors)}get ringBuffer(){return this._ringBuffer}dumpConfigurationIntoLog(){this.error("ERROR enabled"),this.warn("WARN enabled"),this.info("INFO enabled"),this.verbose("VERBOSE enabled"),this.debug("DEBUG enabled"),this.silly("SILLY enabled")}dumpOptionsIntoLog(){if(this.info("Options: %j",this.options),this?.options?.preProcessors?.length){const e=this.options.preProcessors.map((e=>En.trimToNull(e.label())||"Unlabelled"));this.info("Preprocessors: %j",e)}}changeRingBufferSize(e){this._ringBuffer=null,e&&(this._ringBuffer=new wn(e),this._options.ringBufferSize=e)}updateTracePrefix(e){this._options.trace=e}get options(){return Object.assign({},this._options)}set options(t){switch(this._options=Object.assign({},t),this._options.ringBufferSize&&(this._ringBuffer=new wn(this._options.ringBufferSize)),this._options.formatType){case yn.None:this._formatter=new class{formatMessage(e,t){return null}};break;case yn.StructuredJson:this._formatter=new class{formatMessage(t,r){let n=null;if(t){const a=Object.assign({},r.options.globalVars||{},t.params||{});a.msg=e.format(t.messageSource,...t.subsVars),a.utcDateTime=new Date(t.timestamp).toISOString(),a.logLevel=t.lvl,r.options.trace&&(a.trace=r.options.trace),a.logName=r.loggerInstanceName,a.logId=r.loggerInstanceId,n=JSON.stringify(a)+"\n"}return n}};break;default:this._formatter=new class{formatMessage(t,r){let n=null;return t&&(n="",n+=r.options.trace?r.options.trace+" ":"",n+="["+t.lvl+"] ",n+=e.format(t.messageSource,...t.subsVars)),n}}}this._level=this._options.initialLevel,this._handlerFunctionMap=bn.handlerFunctionMap(this._options.outputFunction);const r=this._loggerMeta?this._loggerMeta.loggerInstanceId:null;this._loggerMeta={options:this._options,loggerInstanceName:this.loggerInstanceName,loggerInstanceId:r||En.createRandomHexString(8)}}get level(){return this._level}set level(e){if(!e)throw new Error("Cannot set level to null/undefined");this._level=e}consoleLogPassThru(e,...t){if(bn.levelIsEnabled(e,this._level)){let r=this._options.trace||"";r+="["+e+"] ",t.unshift(r),(this._handlerFunctionMap.get(e)||bn.defaultHandlerFunction)(...t)}}createLogMessage(e,t,r,...n){return{lvl:e,timestamp:Date.now(),messageSource:r,subsVars:n,params:t}}formatMessage(e){return e?this._formatter.formatMessage(e,this._loggerMeta):null}formatMessages(e){return(e||[]).map((e=>this.formatMessage(e))).filter((e=>!!e))}recordMessageBuilder(e){return this.recordMessage(e.toMessage())}recordMessage(e){let t=null;if(bn.levelIsEnabled(e.lvl,this._level)){let r=Object.assign({},e);if(this._options.preProcessors?.length)for(let e=0;e<this._options.preProcessors.length;e++)r=this._options.preProcessors[e].process(r);t=this.formatMessage(r),t&&((this._handlerFunctionMap.get(r.lvl)||bn.defaultHandlerFunction)(t),this._ringBuffer&&this._ringBuffer.addToRingBuffer(r))}return t}error(e,...t){const r=this.createLogMessage(fn.error,{},e,...t);return this.recordMessage(r)}errorP(...e){this.consoleLogPassThru(fn.error,...e)}warn(e,...t){const r=this.createLogMessage(fn.warn,{},e,...t);return this.recordMessage(r)}warnP(...e){this.consoleLogPassThru(fn.warn,...e)}info(e,...t){const r=this.createLogMessage(fn.info,{},e,...t);return this.recordMessage(r)}infoP(...e){this.consoleLogPassThru(fn.info,...e)}verbose(e,...t){const r=this.createLogMessage(fn.verbose,{},e,...t);return this.recordMessage(r)}verboseP(...e){this.consoleLogPassThru(fn.verbose,...e)}debug(e,...t){const r=this.createLogMessage(fn.debug,{},e,...t);return this.recordMessage(r)}debugP(...e){this.consoleLogPassThru(fn.debug,...e)}silly(e,...t){const r=this.createLogMessage(fn.silly,{},e,...t);return this.recordMessage(r)}sillyP(...e){this.consoleLogPassThru(fn.silly,...e)}logByLevel(e,t,...r){const n=this.createLogMessage(e,{},t,...r);this.recordMessage(n)}importMessages(e,t="",r=!0){const n=t||"";e&&e.length>0&&(this.silly("Received import data : %d msgs",e.length),e.forEach((e=>{if(e.messageSource){let t=n;r&&(t+=" ("+String(new Date).substring(15,24)+") : ",t+=e.messageSource),this.logByLevel(e.lvl,t)}})))}}(r,i),t.LOGGER_INSTANCES.set(r,a)}return a}static recordMessageBuilder(e){return t.getLogger().recordMessageBuilder(e)}static recordMessage(e){return t.getLogger().recordMessage(e)}static formatMessages(e){return t.getLogger().formatMessages(e)}static updateTracePrefix(e){return t.getLogger().updateTracePrefix(e)}static changeRingBufferSize(e){return t.getLogger().changeRingBufferSize(e)}static getRingBuffer(){return t.getLogger().ringBuffer}static dumpConfigurationIntoLog(){return t.getLogger().dumpConfigurationIntoLog()}static dumpOptionsIntoLog(){return t.getLogger().dumpOptionsIntoLog()}static getLevel(){return t.getLogger().level}static setLevel(e){t.getLogger().level=e}static getOptions(){return t.getLogger().options}static getMessages(e=null,r=!1,n=!1){const a=t.getLogger().ringBuffer;return a?a.getMessages(e,r,n):null}static consoleLogPassThru(e,...r){return t.getLogger().consoleLogPassThru(e,...r)}static error(e,...r){return t.getLogger().error(e,...r)}static errorP(...e){return t.getLogger().errorP(...e)}static warn(e,...r){return t.getLogger().warn(e,...r)}static warnP(...e){return t.getLogger().warnP(...e)}static info(e,...r){return t.getLogger().info(e,...r)}static infoP(...e){return t.getLogger().infoP(...e)}static verbose(e,...r){return t.getLogger().verbose(e,...r)}static verboseP(...e){return t.getLogger().verboseP(...e)}static debug(e,...r){return t.getLogger().debug(e,...r)}static debugP(...e){return t.getLogger().debugP(...e)}static silly(e,...r){return t.getLogger().silly(e,...r)}static sillyP(...e){return t.getLogger().sillyP(...e)}static takeSnapshot(){const e=t.getLogger().ringBuffer;return e?e.takeSnapshot():null}static logByLevel(e,r,...n){return t.getLogger().logByLevel(e,r,...n)}static importMessages(e,r="",n=!0){return t.getLogger().importMessages(e,r,n)}static getLastLogMessage(){const e=t.getLogger().ringBuffer;return e?e.getLastLogMessage():null}},xn=class e{static MAX_LEADING_ZEROS_FORMAT_LENGTH=1e3;static toFixedDecimalNumber(t,r){const n=e.safeNumber(t);return null==n?n:e.safeNumber(n.toFixed(r))}static leadingZeros(t,r){const n=String(t);if(n.length<r){let t="0000";if(r>e.MAX_LEADING_ZEROS_FORMAT_LENGTH)throw"Cannot format number that large (max length is "+e.MAX_LEADING_ZEROS_FORMAT_LENGTH+")";for(;t.length<r;)t+=t;return(t+n).slice(-1*r)}return n}static between(t,r,n){const a=e.safeNumber(t),i=e.safeNumber(r),s=e.safeNumber(n);return a>=i&&a<=s||a>=s&&a<=i}static safeNumber(e,t=null,r){let n;if(null!=e){const r=typeof e;"number"==r?n=e:"string"==r?n=0===e.trim().length?t:Number.parseFloat(e):(_n.warn("Value is of type %s, returning default",r),n=t),isNaN(n)&&(_n.debug("Parsed string to NaN - using NaN value from param"),n=t)}else n=r?t:e;return n}static numberCSVToList(t){let r=null;return t&&(r=t.split(",").map((t=>e.safeNumber(t.trim()))),r=r.filter((e=>"number"==typeof e&&!isNaN(e)))),r}static fitToWindow(e,t,r){let n=e;if(null===e||null===t||null===r||t<0||r<0||e<0)throw new Error("All values must be non-null and larger than 0");const a=Math.min(t,r),i=Math.max(t,r),s=i-a;if(i===a)n=i;else{for(;n<a;)n+=s;for(;n>i;)n-=s}return n}static groupNumbersIntoContiguousRanges(e,t=3){Sn.notNullOrUndefined(e);const r=Object.assign([],e);r.sort(((e,t)=>e-t));const n=[],a=[];let i=0;for(let e=1;e<r.length;e++)if(r[e]===r[e-1]+1);else{if(i===e-1)n.push(r[e-1]);else if(e-i<t)for(let t=i;t<e;t++)n.push(r[t]);else a.push({min:r[i],max:r[e-1]});i=e}return{singles:n,ranges:a}}static distributeItemsEvenly(e,t){Sn.notNullOrUndefined(e,"items"),Sn.notNullOrUndefined(t,"buckets"),Sn.true(e>0&&e===Math.floor(e),"Items integer larger than 0"),Sn.true(t>0&&t===Math.floor(t),"Buckets integer larger than 0");const r=t/e,n=[];for(let e=0;e<t;e++)n.push(0);let a=0,i=e;for(;i>0;)n[Math.floor(a)%t]++,i--,a+=r;return n}static createRange(e,t,r=1){const n=[];let a=e;for(;a<t;)n.push(a),a+=r;return n}};!function(e){e[e.RETURN_NULL=0]="RETURN_NULL",e[e.THROW_EXCEPTION=1]="THROW_EXCEPTION",e[e.ADD_FLAG=2]="ADD_FLAG"}(vn||(vn={}));var Cn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kn={exports:{}},Tn=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};(Tn.prototype=Object.create(Error.prototype)).constructor=Tn;var An=Tn,Pn=An,In=function(e,t){Pn.call(this,e),this.name="NotBeforeError",this.date=t};(In.prototype=Object.create(Pn.prototype)).constructor=In;var On=In,Dn=An,Rn=function(e,t){Dn.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};(Rn.prototype=Object.create(Dn.prototype)).constructor=Rn;var Mn=Rn,Ln={},Fn={exports:{}};
2
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */!function(e,r){var n=t,a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(a.prototype),i(a,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Fn,Fn.exports);var jn=Fn.exports,Un=jn.Buffer,Vn=n;function Bn(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=Un.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=Un.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,process.nextTick(function(){this.emit("end",e),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}e.inherits(Bn,Vn),Bn.prototype.write=function(e){this.buffer=Un.concat([this.buffer,Un.from(e)]),this.emit("data",e)},Bn.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1};var $n=Bn,zn=t.Buffer,qn=t.SlowBuffer,Hn=Kn;function Kn(e,t){if(!zn.isBuffer(e)||!zn.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}Kn.install=function(){zn.prototype.equal=qn.prototype.equal=function(e){return Kn(this,e)}};var Gn=zn.prototype.equal,Wn=qn.prototype.equal;function Zn(e){return(e/8|0)+(e%8==0?0:1)}Kn.restore=function(){zn.prototype.equal=Gn,qn.prototype.equal=Wn};var Jn={ES256:Zn(256),ES384:Zn(384),ES512:Zn(521)},Yn=jn.Buffer,Xn=function(e){var t=Jn[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')},Qn=128;function ea(e){if(Yn.isBuffer(e))return e;if("string"==typeof e)return Yn.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function ta(e,t,r){for(var n=0;t+n<r&&0===e[t+n];)++n;return e[t+n]>=Qn&&--n,n}var ra={derToJose:function(e,t){e=ea(e);var r=Xn(t),n=r+1,a=e.length,i=0;if(48!==e[i++])throw new Error('Could not find expected "seq"');var s=e[i++];if(129===s&&(s=e[i++]),a-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(a-i)+'" remaining');if(2!==e[i++])throw new Error('Could not find expected "int" for "r"');var o=e[i++];if(a-i-2<o)throw new Error('"r" specified length of "'+o+'", only "'+(a-i-2)+'" available');if(n<o)throw new Error('"r" specified length of "'+o+'", max of "'+n+'" is acceptable');var d=i;if(i+=o,2!==e[i++])throw new Error('Could not find expected "int" for "s"');var l=e[i++];if(a-i!==l)throw new Error('"s" specified length of "'+l+'", expected "'+(a-i)+'"');if(n<l)throw new Error('"s" specified length of "'+l+'", max of "'+n+'" is acceptable');var u=i;if((i+=l)!==a)throw new Error('Expected to consume entire buffer, but "'+(a-i)+'" bytes remain');var p=r-o,c=r-l,m=Yn.allocUnsafe(p+o+c+l);for(i=0;i<p;++i)m[i]=0;e.copy(m,i,d+Math.max(-p,0),d+o);for(var h=i=r;i<h+c;++i)m[i]=0;return e.copy(m,i,u+Math.max(-c,0),u+l),(m=m.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,t){e=ea(e);var r=Xn(t),n=e.length;if(n!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+n+'"');var a=ta(e,0,r),i=ta(e,r,e.length),s=r-a,o=r-i,d=2+s+1+1+o,l=d<Qn,u=Yn.allocUnsafe((l?2:3)+d),p=0;return u[p++]=48,l?u[p++]=d:(u[p++]=129,u[p++]=255&d),u[p++]=2,u[p++]=s,a<0?(u[p++]=0,p+=e.copy(u,p,0,r)):p+=e.copy(u,p,a,r),u[p++]=2,u[p++]=o,i<0?(u[p++]=0,e.copy(u,p,r)):e.copy(u,p,r+i),u}},na=Hn,aa=jn.Buffer,ia=i,sa=ra,oa=e,da="secret must be a string or buffer",la="key must be a string or a buffer",ua="key must be a string, a buffer or an object",pa="function"==typeof ia.createPublicKey;function ca(e){if(!aa.isBuffer(e)&&"string"!=typeof e){if(!pa)throw ga(la);if("object"!=typeof e)throw ga(la);if("string"!=typeof e.type)throw ga(la);if("string"!=typeof e.asymmetricKeyType)throw ga(la);if("function"!=typeof e.export)throw ga(la)}}function ma(e){if(!aa.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw ga(ua)}function ha(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function fa(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function ga(e){var t=[].slice.call(arguments,1),r=oa.format.bind(oa,e).apply(null,t);return new TypeError(r)}function ya(e){var t;return t=e,aa.isBuffer(t)||"string"==typeof t||(e=JSON.stringify(e)),e}function va(e){return function(t,r){!function(e){if(!aa.isBuffer(e)){if("string"==typeof e)return e;if(!pa)throw ga(da);if("object"!=typeof e)throw ga(da);if("secret"!==e.type)throw ga(da);if("function"!=typeof e.export)throw ga(da)}}(r),t=ya(t);var n=ia.createHmac("sha"+e,r);return ha((n.update(t),n.digest("base64")))}}function wa(e){return function(t,r,n){var a=va(e)(t,n);return na(aa.from(r),aa.from(a))}}function ba(e){return function(t,r){ma(r),t=ya(t);var n=ia.createSign("RSA-SHA"+e);return ha((n.update(t),n.sign(r,"base64")))}}function Sa(e){return function(t,r,n){ca(n),t=ya(t),r=fa(r);var a=ia.createVerify("RSA-SHA"+e);return a.update(t),a.verify(n,r,"base64")}}function Ea(e){return function(t,r){ma(r),t=ya(t);var n=ia.createSign("RSA-SHA"+e);return ha((n.update(t),n.sign({key:r,padding:ia.constants.RSA_PKCS1_PSS_PADDING,saltLength:ia.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function _a(e){return function(t,r,n){ca(n),t=ya(t),r=fa(r);var a=ia.createVerify("RSA-SHA"+e);return a.update(t),a.verify({key:n,padding:ia.constants.RSA_PKCS1_PSS_PADDING,saltLength:ia.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function xa(e){var t=ba(e);return function(){var r=t.apply(null,arguments);return sa.derToJose(r,"ES"+e)}}function Ca(e){var t=Sa(e);return function(r,n,a){return n=sa.joseToDer(n,"ES"+e).toString("base64"),t(r,n,a)}}function Na(){return function(){return""}}function ka(){return function(e,t){return""===t}}pa&&(la+=" or a KeyObject",da+="or a KeyObject");var Ta=function(e){var t={hs:va,rs:ba,ps:Ea,es:xa,none:Na},r={hs:wa,rs:Sa,ps:_a,es:Ca,none:ka},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw ga('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',e);var a=(n[1]||n[3]).toLowerCase(),i=n[2];return{sign:t[a](i),verify:r[a](i)}},Aa=t.Buffer,Pa=function(e){return"string"==typeof e?e:"number"==typeof e||Aa.isBuffer(e)?e.toString():JSON.stringify(e)},Ia=jn.Buffer,Oa=$n,Da=Ta,Ra=n,Ma=Pa,La=e;function Fa(e,t){return Ia.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ja(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,a=e.encoding,i=Da(t.alg),s=function(e,t,r){r=r||"utf8";var n=Fa(Ma(e),"binary"),a=Fa(Ma(t),r);return La.format("%s.%s",n,a)}(t,r,a),o=i.sign(s,n);return La.format("%s.%s",s,o)}function Ua(e){var t=e.secret||e.privateKey||e.key,r=new Oa(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new Oa(e.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}La.inherits(Ua,Ra),Ua.prototype.sign=function(){try{var e=ja({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},Ua.sign=ja;var Va=Ua,Ba=jn.Buffer,$a=$n,za=Ta,qa=n,Ha=Pa,Ka=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function Ga(e){var t=e.split(".",1)[0];return function(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(e){return}}(Ba.from(t,"base64").toString("binary"))}function Wa(e){return e.split(".")[2]}function Za(e){return Ka.test(e)&&!!Ga(e)}function Ja(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var a=Wa(e=Ha(e)),i=function(e){return e.split(".",2).join(".")}(e);return za(t).verify(i,a,r)}function Ya(e,t){if(t=t||{},!Za(e=Ha(e)))return null;var r=Ga(e);if(!r)return null;var n=function(e,t){t=t||"utf8";var r=e.split(".")[1];return Ba.from(r,"base64").toString(t)}(e);return("JWT"===r.typ||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:Wa(e)}}function Xa(e){var t=(e=e||{}).secret||e.publicKey||e.key,r=new $a(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new $a(e.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}e.inherits(Xa,qa),Xa.prototype.verify=function(){try{var e=Ja(this.signature.buffer,this.algorithm,this.key.buffer),t=Ya(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},Xa.decode=Ya,Xa.isValid=Za,Xa.verify=Ja;var Qa=Va,ei=Xa;Ln.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],Ln.sign=Qa.sign,Ln.verify=ei.verify,Ln.decode=ei.decode,Ln.isValid=ei.isValid,Ln.createSign=function(e){return new Qa(e)},Ln.createVerify=function(e){return new ei(e)};var ti=Ln,ri=function(e,t){t=t||{};var r=ti.decode(e,t);if(!r)return null;var n=r.payload;if("string"==typeof n)try{var a=JSON.parse(n);null!==a&&"object"==typeof a&&(n=a)}catch(e){}return!0===t.complete?{header:r.header,payload:n,signature:r.signature}:n},ni=1e3,ai=6e4,ii=60*ai,si=24*ii;function oi(e,t,r,n){var a=t>=1.5*r;return Math.round(e/r)+" "+n+(a?"s":"")}var di=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var n=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*si;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ii;case"minutes":case"minute":case"mins":case"min":case"m":return r*ai;case"seconds":case"second":case"secs":case"sec":case"s":return r*ni;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=si?oi(e,t,si,"day"):t>=ii?oi(e,t,ii,"hour"):t>=ai?oi(e,t,ai,"minute"):t>=ni?oi(e,t,ni,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=si?Math.round(e/si)+"d":t>=ii?Math.round(e/ii)+"h":t>=ai?Math.round(e/ai)+"m":t>=ni?Math.round(e/ni)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}(e);if(void 0===n)return;return Math.floor(r+n/1e3)}return"number"==typeof e?r+e:void 0},li={exports:{}},ui={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},pi="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=ui,n=pi,a=(t=e.exports={}).re=[],i=t.src=[],s=t.t={};let o=0;const d=(e,t,r)=>{const d=o++;n(e,d,t),s[e]=d,i[d]=t,a[d]=new RegExp(t,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","[0-9]+"),d("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),d("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER","[0-9A-Za-z-]+"),d("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),d("FULL",`^${i[s.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),d("LOOSE",`^${i[s.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),d("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),d("COERCERTL",i[s.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(li,li.exports);var ci=li.exports;const mi=Object.freeze({loose:!0}),hi=Object.freeze({});var fi=e=>e?"object"!=typeof e?mi:e:hi;const gi=/^[0-9]+$/,yi=(e,t)=>{const r=gi.test(e),n=gi.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var vi={compareIdentifiers:yi,rcompareIdentifiers:(e,t)=>yi(t,e)};const wi=pi,{MAX_LENGTH:bi,MAX_SAFE_INTEGER:Si}=ui,{re:Ei,t:_i}=ci,xi=fi,{compareIdentifiers:Ci}=vi;var Ni=class t{constructor(r,n){if(n=xi(n),r instanceof t){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if("string"!=typeof r)throw new TypeError(`Invalid Version: ${e.inspect(r)}`);if(r.length>bi)throw new TypeError(`version is longer than ${bi} characters`);wi("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const a=r.trim().match(n.loose?Ei[_i.LOOSE]:Ei[_i.FULL]);if(!a)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>Si||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Si||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Si||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<Si)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(wi("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Ci(this.major,e.major)||Ci(this.minor,e.minor)||Ci(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{const t=this.prerelease[r],n=e.prerelease[r];if(wi("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return Ci(t,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{const t=this.build[r],n=e.build[r];if(wi("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return Ci(t,n)}while(++r)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===Ci(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};const ki=Ni;var Ti=(e,t,r)=>new ki(e,r).compare(new ki(t,r));const Ai=Ti;var Pi=(e,t,r)=>Ai(e,t,r)>0;const Ii=Ti;var Oi=(e,t,r)=>Ii(e,t,r)<0;const Di=Ti;var Ri=(e,t,r)=>0===Di(e,t,r);const Mi=Ti;var Li=(e,t,r)=>0!==Mi(e,t,r);const Fi=Ti;var ji=(e,t,r)=>Fi(e,t,r)>=0;const Ui=Ti;var Vi=(e,t,r)=>Ui(e,t,r)<=0;const Bi=Ri,$i=Li,zi=Pi,qi=ji,Hi=Oi,Ki=Vi;var Gi=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return Bi(e,r,n);case"!=":return $i(e,r,n);case">":return zi(e,r,n);case">=":return qi(e,r,n);case"<":return Hi(e,r,n);case"<=":return Ki(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const{re:Wi,t:Zi}=ci;var Ji,Yi,Xi,Qi,es,ts,rs,ns,as,is;function ss(){if(ns)return rs;ns=1;class e{constructor(t,r){if(r=n(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=((this.options.includePrerelease&&c)|(this.options.loose&&m))+":"+e,n=r.get(t);if(n)return n;const s=this.options.loose,f=s?o[d.HYPHENRANGELOOSE]:o[d.HYPHENRANGE];e=e.replace(f,k(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(o[d.COMPARATORTRIM],l),i("comparator trim",e);let g=(e=(e=(e=e.replace(o[d.TILDETRIM],u)).replace(o[d.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));s&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(o[d.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,w=g.map((e=>new a(e,this.options)));for(const e of w){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const b=[...v.values()];return r.set(t,b),b}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,r)&&t.set.some((t=>g(t,r)&&e.every((e=>t.every((t=>e.intersects(t,r)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}rs=e;const t=function(){if(ts)return es;ts=1;const e=function(){if(Qi)return Xi;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n<a;n++)r.push(arguments[n]);return r}function t(e,t,r){var n=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function r(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function n(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,n){if(!(this instanceof a))return new a(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}Qi=1,Xi=e,e.Node=a,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},e.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},e.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var n=new e,a=this.head;null!==a;)n.push(t.call(r,a.value,this)),a=a.next;return n},e.prototype.mapReverse=function(t,r){r=r||this;for(var n=new e,a=this.tail;null!==a;)n.push(t.call(r,a.value,this)),a=a.prev;return n},e.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var a=0;null!==n;a++)r=e(r,n.value,a),n=n.next;return r},e.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var a=this.length-1;null!==n;a--)r=e(r,n.value,a),n=n.prev;return r},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var a=0,i=this.head;null!==i&&a<t;a++)i=i.next;for(;null!==i&&a<r;a++,i=i.next)n.push(i.value);return n},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var a=this.length,i=this.tail;null!==i&&a>r;a--)i=i.prev;for(;null!==i&&a>t;a--,i=i.prev)n.push(i.value);return n},e.prototype.splice=function(e,r,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var a=0,i=this.head;null!==i&&a<e;a++)i=i.next;var s=[];for(a=0;i&&a<r;a++)s.push(i.value),i=this.removeNode(i);for(null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),a=0;a<n.length;a++)i=t(this,i,n[a]);return s},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{(Yi?Ji:(Yi=1,Ji=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return Xi}(),t=Symbol("max"),r=Symbol("length"),n=Symbol("lengthCalculator"),a=Symbol("allowStale"),i=Symbol("maxAge"),s=Symbol("dispose"),o=Symbol("noDisposeOnSet"),d=Symbol("lruList"),l=Symbol("cache"),u=Symbol("updateAgeOnGet"),p=()=>1,c=(e,t,r)=>{const n=e[l].get(t);if(n){const t=n.value;if(m(e,t)){if(f(e,n),!e[a])return}else r&&(e[u]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[i])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[i]&&r>e[i]},h=e=>{if(e[r]>e[t])for(let n=e[d].tail;e[r]>e[t]&&null!==n;){const t=n.prev;f(e,n),n=t}},f=(e,t)=>{if(t){const n=t.value;e[s]&&e[s](n.key,n.value),e[r]-=n.length,e[l].delete(n.key),e[d].removeNode(t)}};class g{constructor(e,t,r,n,a){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=a||0}}const y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(f(e,r),e[a]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};return es=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const r=e.length||p;if(this[n]="function"!=typeof r?p:r,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[i]=e.maxAge||0,this[s]=e.dispose,this[o]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,h(this)}get max(){return this[t]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[i]=e,h(this)}get maxAge(){return this[i]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[n]&&(this[n]=e,this[r]=0,this[d].forEach((e=>{e.length=this[n](e.value,e.key),this[r]+=e.length}))),h(this)}get lengthCalculator(){return this[n]}get length(){return this[r]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;y(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;y(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[s]&&this[d]&&this[d].length&&this[d].forEach((e=>this[s](e.key,e.value))),this[l]=new Map,this[d]=new e,this[r]=0}dump(){return this[d].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,a,u){if((u=u||this[i])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const p=u?Date.now():0,c=this[n](a,e);if(this[l].has(e)){if(c>this[t])return f(this,this[l].get(e)),!1;const n=this[l].get(e).value;return this[s]&&(this[o]||this[s](e,n.value)),n.now=p,n.maxAge=u,n.value=a,this[r]+=c-n.length,n.length=c,this.get(e),h(this),!0}const m=new g(e,a,c,p,u);return m.length>this[t]?(this[s]&&this[s](e,a),!1):(this[r]+=m.length,this[d].unshift(m),this[l].set(e,this[d].head),h(this),!0)}has(e){if(!this[l].has(e))return!1;const t=this[l].get(e).value;return!m(this,t)}get(e){return c(this,e,!0)}peek(e){return c(this,e,!1)}pop(){const e=this[d].tail;return e?(f(this,e),e.value):null}del(e){f(this,this[l].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],a=n.e||0;if(0===a)this.set(n.k,n.v);else{const e=a-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[l].forEach(((e,t)=>c(this,t,!1)))}},es}(),r=new t({max:1e3}),n=fi,a=os(),i=pi,s=Ni,{re:o,t:d,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:p}=ci,{FLAG_INCLUDE_PRERELEASE:c,FLAG_LOOSE:m}=ui,h=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let a=n.pop();for(;r&&n.length;)r=n.every((e=>a.intersects(e,t))),a=n.pop();return r},y=(e,t)=>(i("comp",e,t),e=S(e,t),i("caret",e),e=w(e,t),i("tildes",e),e=_(e,t),i("xrange",e),e=C(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const r=t.loose?o[d.TILDELOOSE]:o[d.TILDE];return e.replace(r,((t,r,n,a,s)=>{let o;return i("tilde",e,t,r,n,a,s),v(r)?o="":v(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:v(a)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(i("replaceTilde pr",s),o=`>=${r}.${n}.${a}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${a} <${r}.${+n+1}.0-0`,i("tilde return",o),o}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const r=t.loose?o[d.CARETLOOSE]:o[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,a,s,o)=>{let d;return i("caret",e,t,r,a,s,o),v(r)?d="":v(a)?d=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(s)?d="0"===r?`>=${r}.${a}.0${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${n} <${+r+1}.0.0-0`:o?(i("replaceCaret pr",o),d="0"===r?"0"===a?`>=${r}.${a}.${s}-${o} <${r}.${a}.${+s+1}-0`:`>=${r}.${a}.${s}-${o} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${s}-${o} <${+r+1}.0.0-0`):(i("no pr"),d="0"===r?"0"===a?`>=${r}.${a}.${s}${n} <${r}.${a}.${+s+1}-0`:`>=${r}.${a}.${s}${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${s} <${+r+1}.0.0-0`),i("caret return",d),d}))},_=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>x(e,t))).join(" ")),x=(e,t)=>{e=e.trim();const r=t.loose?o[d.XRANGELOOSE]:o[d.XRANGE];return e.replace(r,((r,n,a,s,o,d)=>{i("xRange",e,r,n,a,s,o,d);const l=v(a),u=l||v(s),p=u||v(o),c=p;return"="===n&&c&&(n=""),d=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&c?(u&&(s=0),o=0,">"===n?(n=">=",u?(a=+a+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",u?a=+a+1:s=+s+1),"<"===n&&(d="-0"),r=`${n+a}.${s}.${o}${d}`):u?r=`>=${a}.0.0${d} <${+a+1}.0.0-0`:p&&(r=`>=${a}.${s}.0${d} <${a}.${+s+1}.0-0`),i("xRange return",r),r}))},C=(e,t)=>(i("replaceStars",e,t),e.trim().replace(o[d.STAR],"")),N=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(o[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),k=e=>(t,r,n,a,i,s,o,d,l,u,p,c,m)=>`${r=v(n)?"":v(a)?`>=${n}.0.0${e?"-0":""}`:v(i)?`>=${n}.${a}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${d=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(p)?`<${l}.${+u+1}.0-0`:c?`<=${l}.${u}.${p}-${c}`:e?`<${l}.${u}.${+p+1}-0`:`<=${d}`}`.trim(),T=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(i(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0};return rs}function os(){if(is)return as;is=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(n,a){if(a=r(a),n instanceof t){if(n.loose===!!a.loose)return n;n=n.value}s("comparator",n,a),this.options=a,this.loose=!!a.loose,this.parse(n),this.semver===e?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(t){const r=this.options.loose?n[a.COMPARATORLOOSE]:n[a.COMPARATOR],i=t.match(r);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new o(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(s("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new o(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,n).test(this.value):""===e.operator?""===e.value||new d(this.value,n).test(e.semver):!((n=r(n)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}as=t;const r=fi,{re:n,t:a}=ci,i=Gi,s=pi,o=Ni,d=ss();return as}const ds=ss();var ls=(e,t,r)=>{try{t=new ds(t,r)}catch(e){return!1}return t.test(e)};ss();ss();ss();ss();ss();const us=os(),{ANY:ps}=us;ss();ss();ss();const cs=os(),{ANY:ms}=cs;new cs(">=0.0.0-0"),new cs(">=0.0.0");const hs=ci,fs=ui;os(),ss();var gs=ls,ys=(hs.re,hs.src,hs.t,fs.SEMVER_SPEC_VERSION,fs.RELEASE_TYPES,gs(process.version,">=15.7.0")),vs=gs(process.version,">=16.9.0");const ws=ys,bs=vs,Ss={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},Es={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};var _s=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const n=Ss[r];if(!n)throw new Error(`Unknown key type "${r}".`);if(!n.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${n.join(", ")}.`);if(ws)switch(r){case"ec":const r=t.asymmetricKeyDetails.namedCurve,n=Es[e];if(r!==n)throw new Error(`"alg" parameter "${e}" requires curve "${n}".`);break;case"rsa-pss":if(bs){const r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:a,saltLength:i}=t.asymmetricKeyDetails;if(n!==`sha${r}`||a!==n)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==i&&i>r>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}},xs=gs(process.version,"^6.12.0 || >=8.0.0");const Cs=An,Ns=On,ks=Mn,Ts=ri,As=di,Ps=_s,Is=xs,Os=Ln,{KeyObject:Ds,createSecretKey:Rs,createPublicKey:Ms}=i,Ls=["RS256","RS384","RS512"],Fs=["ES256","ES384","ES512"],js=["RS256","RS384","RS512"],Us=["HS256","HS384","HS512"];Is&&(Ls.splice(Ls.length,0,"PS256","PS384","PS512"),js.splice(js.length,0,"PS256","PS384","PS512"));var Vs,Bs,$s=function(e,t,r,n){let a;if("function"!=typeof r||n||(n=r,r={}),r||(r={}),r=Object.assign({},r),a=n||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return a(new Cs("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return a(new Cs("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return a(new Cs("allowInvalidAsymmetricKeyTypes must be a boolean"));const i=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return a(new Cs("jwt must be provided"));if("string"!=typeof e)return a(new Cs("jwt must be a string"));const s=e.split(".");if(3!==s.length)return a(new Cs("jwt malformed"));let o;try{o=Ts(e,{complete:!0})}catch(e){return a(e)}if(!o)return a(new Cs("invalid token"));const d=o.header;let l;if("function"==typeof t){if(!n)return a(new Cs("verify must be called asynchronous if secret or public key is provided as a callback"));l=t}else l=function(e,r){return r(null,t)};return l(d,(function(t,n){if(t)return a(new Cs("error in secret or public key callback: "+t.message));const l=""!==s[2].trim();if(!l&&n)return a(new Cs("jwt signature is required"));if(l&&!n)return a(new Cs("secret or public key must be provided"));if(!l&&!r.algorithms)return a(new Cs('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=n&&!(n instanceof Ds))try{n=Ms(n)}catch(e){try{n=Rs("string"==typeof n?Buffer.from(n):n)}catch(e){return a(new Cs("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===n.type?r.algorithms=Us:["rsa","rsa-pss"].includes(n.asymmetricKeyType)?r.algorithms=js:"ec"===n.asymmetricKeyType?r.algorithms=Fs:r.algorithms=Ls),-1===r.algorithms.indexOf(o.header.alg))return a(new Cs("invalid algorithm"));if(d.alg.startsWith("HS")&&"secret"!==n.type)return a(new Cs(`secretOrPublicKey must be a symmetric key when using ${d.alg}`));if(/^(?:RS|PS|ES)/.test(d.alg)&&"public"!==n.type)return a(new Cs(`secretOrPublicKey must be an asymmetric key when using ${d.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{Ps(d.alg,n)}catch(e){return a(e)}let u;try{u=Os.verify(e,o.header.alg,n)}catch(e){return a(e)}if(!u)return a(new Cs("invalid signature"));const p=o.payload;if(void 0!==p.nbf&&!r.ignoreNotBefore){if("number"!=typeof p.nbf)return a(new Cs("invalid nbf value"));if(p.nbf>i+(r.clockTolerance||0))return a(new Ns("jwt not active",new Date(1e3*p.nbf)))}if(void 0!==p.exp&&!r.ignoreExpiration){if("number"!=typeof p.exp)return a(new Cs("invalid exp value"));if(i>=p.exp+(r.clockTolerance||0))return a(new ks("jwt expired",new Date(1e3*p.exp)))}if(r.audience){const e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(p.aud)?p.aud:[p.aud]).some((function(t){return e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))})))return a(new Cs("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&p.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(p.iss)))return a(new Cs("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&p.sub!==r.subject)return a(new Cs("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&p.jti!==r.jwtid)return a(new Cs("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&p.nonce!==r.nonce)return a(new Cs("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof p.iat)return a(new Cs("iat required when maxAge is specified"));const e=As(r.maxAge,p.iat);if(void 0===e)return a(new Cs('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(i>=e+(r.clockTolerance||0))return a(new ks("maxAge exceeded",new Date(1e3*e)))}if(!0===r.complete){const e=o.signature;return a(null,{header:d,payload:p,signature:e})}return a(null,p)}))},zs={exports:{}};Vs=zs,Bs=zs.exports,function(){var e,t="Expected a function",r="__lodash_hash_undefined__",n="__lodash_placeholder__",a=32,i=128,s=1/0,o=9007199254740991,d=NaN,l=4294967295,u=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],p="[object Arguments]",c="[object Array]",m="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",y="[object GeneratorFunction]",v="[object Map]",w="[object Number]",b="[object Object]",S="[object Promise]",E="[object RegExp]",_="[object Set]",x="[object String]",C="[object Symbol]",N="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",P="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",R="[object Uint8Array]",M="[object Uint8ClampedArray]",L="[object Uint16Array]",F="[object Uint32Array]",j=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,z=RegExp(B.source),q=RegExp($.source),H=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source),Q=/^\s+/,ee=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,ne=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ie=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,le=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,he=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fe=/($^)/,ge=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",ve="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",be="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",_e="\\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",xe="["+ye+"]",Ce="["+_e+"]",Ne="["+ve+"]",ke="\\d+",Te="["+we+"]",Ae="["+be+"]",Pe="[^"+ye+_e+ke+we+be+Se+"]",Ie="\\ud83c[\\udffb-\\udfff]",Oe="[^"+ye+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+Se+"]",Le="\\u200d",Fe="(?:"+Ae+"|"+Pe+")",je="(?:"+Me+"|"+Pe+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Ne+"|"+Ie+")?",$e="["+Ee+"]?",ze=$e+Be+"(?:"+Le+"(?:"+[Oe,De,Re].join("|")+")"+$e+Be+")*",qe="(?:"+[Te,De,Re].join("|")+")"+ze,He="(?:"+[Oe+Ne+"?",Ne,De,Re,xe].join("|")+")",Ke=RegExp("['’]","g"),Ge=RegExp(Ne,"g"),We=RegExp(Ie+"(?="+Ie+")|"+He+ze,"g"),Ze=RegExp([Me+"?"+Ae+"+"+Ue+"(?="+[Ce,Me,"$"].join("|")+")",je+"+"+Ve+"(?="+[Ce,Me+Fe,"$"].join("|")+")",Me+"?"+Fe+"+"+Ue,Me+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,qe].join("|"),"g"),Je=RegExp("["+Le+ye+ve+Ee+"]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["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"],Qe=-1,et={};et[A]=et[P]=et[I]=et[O]=et[D]=et[R]=et[M]=et[L]=et[F]=!0,et[p]=et[c]=et[k]=et[m]=et[T]=et[h]=et[f]=et[g]=et[v]=et[w]=et[b]=et[E]=et[_]=et[x]=et[N]=!1;var tt={};tt[p]=tt[c]=tt[k]=tt[T]=tt[m]=tt[h]=tt[A]=tt[P]=tt[I]=tt[O]=tt[D]=tt[v]=tt[w]=tt[b]=tt[E]=tt[_]=tt[x]=tt[C]=tt[R]=tt[M]=tt[L]=tt[F]=!0,tt[f]=tt[g]=tt[N]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,at=parseInt,it="object"==typeof Cn&&Cn&&Cn.Object===Object&&Cn,st="object"==typeof self&&self&&self.Object===Object&&self,ot=it||st||Function("return this")(),dt=Bs&&!Bs.nodeType&&Bs,lt=dt&&Vs&&!Vs.nodeType&&Vs,ut=lt&&lt.exports===dt,pt=ut&&it.process,ct=function(){try{return lt&&lt.require&&lt.require("util").types||pt&&pt.binding&&pt.binding("util")}catch(e){}}(),mt=ct&&ct.isArrayBuffer,ht=ct&&ct.isDate,ft=ct&&ct.isMap,gt=ct&&ct.isRegExp,yt=ct&&ct.isSet,vt=ct&&ct.isTypedArray;function wt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function bt(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a<i;){var s=e[a];t(n,s,r(s),e)}return n}function St(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Et(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function _t(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function xt(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}function Ct(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function Nt(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}function kt(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}function Tt(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function At(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function Pt(e,t,r,n){var a=null==e?0:e.length;for(n&&a&&(r=e[--a]);a--;)r=t(r,e[a],a,e);return r}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ot=Ut("length");function Dt(e,t,r){var n;return r(e,(function(e,r,a){if(t(e,r,a))return n=r,!1})),n}function Rt(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Mt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}(e,t,r):Rt(e,Ft,r)}function Lt(e,t,r,n){for(var a=r-1,i=e.length;++a<i;)if(n(e[a],t))return a;return-1}function Ft(e){return e!=e}function jt(e,t){var r=null==e?0:e.length;return r?$t(e,t)/r:d}function Ut(t){return function(r){return null==r?e:r[t]}}function Vt(t){return function(r){return null==t?e:t[r]}}function Bt(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r}function $t(t,r){for(var n,a=-1,i=t.length;++a<i;){var s=r(t[a]);s!==e&&(n=n===e?s:n+s)}return n}function zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function qt(e){return e?e.slice(0,sr(e)+1).replace(Q,""):e}function Ht(e){return function(t){return e(t)}}function Kt(e,t){return kt(t,(function(t){return e[t]}))}function Gt(e,t){return e.has(t)}function Wt(e,t){for(var r=-1,n=e.length;++r<n&&Mt(t,e[r],0)>-1;);return r}function Zt(e,t){for(var r=e.length;r--&&Mt(t,e[r],0)>-1;);return r}var Jt=Vt({"À":"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"}),Yt=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Xt(e){return"\\"+rt[e]}function Qt(e){return Je.test(e)}function er(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function tr(e,t){return function(r){return e(t(r))}}function rr(e,t){for(var r=-1,a=e.length,i=0,s=[];++r<a;){var o=e[r];o!==t&&o!==n||(e[r]=n,s[i++]=r)}return s}function nr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ar(e){return Qt(e)?function(e){for(var t=We.lastIndex=0;We.test(e);)++t;return t}(e):Ot(e)}function ir(e){return Qt(e)?function(e){return e.match(We)||[]}(e):function(e){return e.split("")}(e)}function sr(e){for(var t=e.length;t--&&ee.test(e.charAt(t)););return t}var or=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dr=function ee(ye){var ve,we=(ye=null==ye?ot:dr.defaults(ot.Object(),ye,dr.pick(ot,Xe))).Array,be=ye.Date,Se=ye.Error,Ee=ye.Function,_e=ye.Math,xe=ye.Object,Ce=ye.RegExp,Ne=ye.String,ke=ye.TypeError,Te=we.prototype,Ae=Ee.prototype,Pe=xe.prototype,Ie=ye["__core-js_shared__"],Oe=Ae.toString,De=Pe.hasOwnProperty,Re=0,Me=(ve=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"",Le=Pe.toString,Fe=Oe.call(xe),je=ot._,Ue=Ce("^"+Oe.call(De).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ut?ye.Buffer:e,Be=ye.Symbol,$e=ye.Uint8Array,ze=Ve?Ve.allocUnsafe:e,qe=tr(xe.getPrototypeOf,xe),He=xe.create,We=Pe.propertyIsEnumerable,Je=Te.splice,rt=Be?Be.isConcatSpreadable:e,it=Be?Be.iterator:e,st=Be?Be.toStringTag:e,dt=function(){try{var e=oi(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=ye.clearTimeout!==ot.clearTimeout&&ye.clearTimeout,pt=be&&be.now!==ot.Date.now&&be.now,ct=ye.setTimeout!==ot.setTimeout&&ye.setTimeout,Ot=_e.ceil,Vt=_e.floor,lr=xe.getOwnPropertySymbols,ur=Ve?Ve.isBuffer:e,pr=ye.isFinite,cr=Te.join,mr=tr(xe.keys,xe),hr=_e.max,fr=_e.min,gr=be.now,yr=ye.parseInt,vr=_e.random,wr=Te.reverse,br=oi(ye,"DataView"),Sr=oi(ye,"Map"),Er=oi(ye,"Promise"),_r=oi(ye,"Set"),xr=oi(ye,"WeakMap"),Cr=oi(xe,"create"),Nr=xr&&new xr,kr={},Tr=Di(br),Ar=Di(Sr),Pr=Di(Er),Ir=Di(_r),Or=Di(xr),Dr=Be?Be.prototype:e,Rr=Dr?Dr.valueOf:e,Mr=Dr?Dr.toString:e;function Lr(e){if(Js(e)&&!Us(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(De.call(e,"__wrapped__"))return Ri(e)}return new Ur(e)}var Fr=function(){function t(){}return function(r){if(!Zs(r))return{};if(He)return He(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function jr(){}function Ur(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=l,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new zr;++t<r;)this.add(e[t])}function Hr(e){var t=this.__data__=new $r(e);this.size=t.size}function Kr(e,t){var r=Us(e),n=!r&&js(e),a=!r&&!n&&zs(e),i=!r&&!n&&!a&&ao(e),s=r||n||a||i,o=s?zt(e.length,Ne):[],d=o.length;for(var l in e)!t&&!De.call(e,l)||s&&("length"==l||a&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||hi(l,d))||o.push(l);return o}function Gr(t){var r=t.length;return r?t[qn(0,r-1)]:e}function Wr(e,t){return Pi(Ca(e),nn(t,0,e.length))}function Zr(e){return Pi(Ca(e))}function Jr(t,r,n){(n!==e&&!Ms(t[r],n)||n===e&&!(r in t))&&tn(t,r,n)}function Yr(t,r,n){var a=t[r];De.call(t,r)&&Ms(a,n)&&(n!==e||r in t)||tn(t,r,n)}function Xr(e,t){for(var r=e.length;r--;)if(Ms(e[r][0],t))return r;return-1}function Qr(e,t,r,n){return ln(e,(function(e,a,i){t(n,e,r(e),i)})),n}function en(e,t){return e&&Na(t,ko(t),e)}function tn(e,t,r){"__proto__"==t&&dt?dt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rn(t,r){for(var n=-1,a=r.length,i=we(a),s=null==t;++n<a;)i[n]=s?e:Eo(t,r[n]);return i}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function an(t,r,n,a,i,s){var o,d=1&r,l=2&r,u=4&r;if(n&&(o=i?n(t,a,i,s):n(t)),o!==e)return o;if(!Zs(t))return t;var c=Us(t);if(c){if(o=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!d)return Ca(t,o)}else{var f=ui(t),S=f==g||f==y;if(zs(t))return wa(t,d);if(f==b||f==p||S&&!i){if(o=l||S?{}:ci(t),!d)return l?function(e,t){return Na(e,li(e),t)}(t,function(e,t){return e&&Na(t,To(t),e)}(o,t)):function(e,t){return Na(e,di(e),t)}(t,en(o,t))}else{if(!tt[f])return i?t:{};o=function(e,t,r){var n,a=e.constructor;switch(t){case k:return ba(e);case m:case h:return new a(+e);case T:return function(e,t){var r=t?ba(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case A:case P:case I:case O:case D:case R:case M:case L:case F:return Sa(e,r);case v:return new a;case w:case x:return new a(e);case E:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new a;case C:return n=e,Rr?xe(Rr.call(n)):{}}}(t,f,d)}}s||(s=new Hr);var N=s.get(t);if(N)return N;s.set(t,o),to(t)?t.forEach((function(e){o.add(an(e,r,n,e,t,s))})):Ys(t)&&t.forEach((function(e,a){o.set(a,an(e,r,n,a,t,s))}));var j=c?e:(u?l?ei:Qa:l?To:ko)(t);return St(j||t,(function(e,a){j&&(e=t[a=e]),Yr(o,a,an(e,r,n,a,t,s))})),o}function sn(t,r,n){var a=n.length;if(null==t)return!a;for(t=xe(t);a--;){var i=n[a],s=r[i],o=t[i];if(o===e&&!(i in t)||!s(o))return!1}return!0}function on(r,n,a){if("function"!=typeof r)throw new ke(t);return Ni((function(){r.apply(e,a)}),n)}function dn(e,t,r,n){var a=-1,i=Ct,s=!0,o=e.length,d=[],l=t.length;if(!o)return d;r&&(t=kt(t,Ht(r))),n?(i=Nt,s=!1):t.length>=200&&(i=Gt,s=!1,t=new qr(t));e:for(;++a<o;){var u=e[a],p=null==r?u:r(u);if(u=n||0!==u?u:0,s&&p==p){for(var c=l;c--;)if(t[c]===p)continue e;d.push(u)}else i(t,p,n)||d.push(u)}return d}Lr.templateSettings={escape:H,evaluate:K,interpolate:G,variable:"",imports:{_:Lr}},Lr.prototype=jr.prototype,Lr.prototype.constructor=Lr,Ur.prototype=Fr(jr.prototype),Ur.prototype.constructor=Ur,Vr.prototype=Fr(jr.prototype),Vr.prototype.constructor=Vr,Br.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Br.prototype.get=function(t){var n=this.__data__;if(Cr){var a=n[t];return a===r?e:a}return De.call(n,t)?n[t]:e},Br.prototype.has=function(t){var r=this.__data__;return Cr?r[t]!==e:De.call(r,t)},Br.prototype.set=function(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Cr&&n===e?r:n,this},$r.prototype.clear=function(){this.__data__=[],this.size=0},$r.prototype.delete=function(e){var t=this.__data__,r=Xr(t,e);return!(r<0||(r==t.length-1?t.pop():Je.call(t,r,1),--this.size,0))},$r.prototype.get=function(t){var r=this.__data__,n=Xr(r,t);return n<0?e:r[n][1]},$r.prototype.has=function(e){return Xr(this.__data__,e)>-1},$r.prototype.set=function(e,t){var r=this.__data__,n=Xr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(Sr||$r),string:new Br}},zr.prototype.delete=function(e){var t=ii(this,e).delete(e);return this.size-=t?1:0,t},zr.prototype.get=function(e){return ii(this,e).get(e)},zr.prototype.has=function(e){return ii(this,e).has(e)},zr.prototype.set=function(e,t){var r=ii(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(e){return this.__data__.set(e,r),this},qr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.clear=function(){this.__data__=new $r,this.size=0},Hr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Hr.prototype.get=function(e){return this.__data__.get(e)},Hr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!Sr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(e,t),this.size=r.size,this};var ln=Aa(yn),un=Aa(vn,!0);function pn(e,t){var r=!0;return ln(e,(function(e,n,a){return r=!!t(e,n,a)})),r}function cn(t,r,n){for(var a=-1,i=t.length;++a<i;){var s=t[a],o=r(s);if(null!=o&&(d===e?o==o&&!no(o):n(o,d)))var d=o,l=s}return l}function mn(e,t){var r=[];return ln(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function hn(e,t,r,n,a){var i=-1,s=e.length;for(r||(r=mi),a||(a=[]);++i<s;){var o=e[i];t>0&&r(o)?t>1?hn(o,t-1,r,n,a):Tt(a,o):n||(a[a.length]=o)}return a}var fn=Pa(),gn=Pa(!0);function yn(e,t){return e&&fn(e,t,ko)}function vn(e,t){return e&&gn(e,t,ko)}function wn(e,t){return xt(t,(function(t){return Ks(e[t])}))}function bn(t,r){for(var n=0,a=(r=fa(r,t)).length;null!=t&&n<a;)t=t[Oi(r[n++])];return n&&n==a?t:e}function Sn(e,t,r){var n=t(e);return Us(e)?n:Tt(n,r(e))}function En(t){return null==t?t===e?"[object Undefined]":"[object Null]":st&&st in xe(t)?function(t){var r=De.call(t,st),n=t[st];try{t[st]=e;var a=!0}catch(e){}var i=Le.call(t);return a&&(r?t[st]=n:delete t[st]),i}(t):function(e){return Le.call(e)}(t)}function _n(e,t){return e>t}function xn(e,t){return null!=e&&De.call(e,t)}function Cn(e,t){return null!=e&&t in xe(e)}function Nn(t,r,n){for(var a=n?Nt:Ct,i=t[0].length,s=t.length,o=s,d=we(s),l=1/0,u=[];o--;){var p=t[o];o&&r&&(p=kt(p,Ht(r))),l=fr(p.length,l),d[o]=!n&&(r||i>=120&&p.length>=120)?new qr(o&&p):e}p=t[0];var c=-1,m=d[0];e:for(;++c<i&&u.length<l;){var h=p[c],f=r?r(h):h;if(h=n||0!==h?h:0,!(m?Gt(m,f):a(u,f,n))){for(o=s;--o;){var g=d[o];if(!(g?Gt(g,f):a(t[o],f,n)))continue e}m&&m.push(f),u.push(h)}}return u}function kn(t,r,n){var a=null==(t=_i(t,r=fa(r,t)))?t:t[Oi(Hi(r))];return null==a?e:wt(a,t,n)}function Tn(e){return Js(e)&&En(e)==p}function An(t,r,n,a,i){return t===r||(null==t||null==r||!Js(t)&&!Js(r)?t!=t&&r!=r:function(t,r,n,a,i,s){var o=Us(t),d=Us(r),l=o?c:ui(t),u=d?c:ui(r),g=(l=l==p?b:l)==b,y=(u=u==p?b:u)==b,S=l==u;if(S&&zs(t)){if(!zs(r))return!1;o=!0,g=!1}if(S&&!g)return s||(s=new Hr),o||ao(t)?Ya(t,r,n,a,i,s):function(e,t,r,n,a,i,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!i(new $e(e),new $e(t)));case m:case h:case w:return Ms(+e,+t);case f:return e.name==t.name&&e.message==t.message;case E:case x:return e==t+"";case v:var o=er;case _:var d=1&n;if(o||(o=nr),e.size!=t.size&&!d)return!1;var l=s.get(e);if(l)return l==t;n|=2,s.set(e,t);var u=Ya(o(e),o(t),n,a,i,s);return s.delete(e),u;case C:if(Rr)return Rr.call(e)==Rr.call(t)}return!1}(t,r,l,n,a,i,s);if(!(1&n)){var N=g&&De.call(t,"__wrapped__"),A=y&&De.call(r,"__wrapped__");if(N||A){var P=N?t.value():t,I=A?r.value():r;return s||(s=new Hr),i(P,I,n,a,s)}}return!!S&&(s||(s=new Hr),function(t,r,n,a,i,s){var o=1&n,d=Qa(t),l=d.length;if(l!=Qa(r).length&&!o)return!1;for(var u=l;u--;){var p=d[u];if(!(o?p in r:De.call(r,p)))return!1}var c=s.get(t),m=s.get(r);if(c&&m)return c==r&&m==t;var h=!0;s.set(t,r),s.set(r,t);for(var f=o;++u<l;){var g=t[p=d[u]],y=r[p];if(a)var v=o?a(y,g,p,r,t,s):a(g,y,p,t,r,s);if(!(v===e?g===y||i(g,y,n,a,s):v)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var w=t.constructor,b=r.constructor;w==b||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(h=!1)}return s.delete(t),s.delete(r),h}(t,r,n,a,i,s))}(t,r,n,a,An,i))}function Pn(t,r,n,a){var i=n.length,s=i,o=!a;if(null==t)return!s;for(t=xe(t);i--;){var d=n[i];if(o&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++i<s;){var l=(d=n[i])[0],u=t[l],p=d[1];if(o&&d[2]){if(u===e&&!(l in t))return!1}else{var c=new Hr;if(a)var m=a(u,p,l,t,r,c);if(!(m===e?An(p,u,3,a,c):m))return!1}}return!0}function In(e){return!(!Zs(e)||(t=e,Me&&Me in t))&&(Ks(e)?Ue:pe).test(Di(e));var t}function On(e){return"function"==typeof e?e:null==e?Qo:"object"==typeof e?Us(e)?Fn(e[0],e[1]):Ln(e):dd(e)}function Dn(e){if(!wi(e))return mr(e);var t=[];for(var r in xe(e))De.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Rn(e,t){return e<t}function Mn(e,t){var r=-1,n=Bs(e)?we(e.length):[];return ln(e,(function(e,a,i){n[++r]=t(e,a,i)})),n}function Ln(e){var t=si(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(r){return r===e||Pn(r,e,t)}}function Fn(t,r){return gi(t)&&bi(r)?Si(Oi(t),r):function(n){var a=Eo(n,t);return a===e&&a===r?_o(n,t):An(r,a,3)}}function jn(t,r,n,a,i){t!==r&&fn(r,(function(s,o){if(i||(i=new Hr),Zs(s))!function(t,r,n,a,i,s,o){var d=xi(t,n),l=xi(r,n),u=o.get(l);if(u)Jr(t,n,u);else{var p=s?s(d,l,n+"",t,r,o):e,c=p===e;if(c){var m=Us(l),h=!m&&zs(l),f=!m&&!h&&ao(l);p=l,m||h||f?Us(d)?p=d:$s(d)?p=Ca(d):h?(c=!1,p=wa(l,!0)):f?(c=!1,p=Sa(l,!0)):p=[]:Qs(l)||js(l)?(p=d,js(d)?p=mo(d):Zs(d)&&!Ks(d)||(p=ci(l))):c=!1}c&&(o.set(l,p),i(p,l,a,s,o),o.delete(l)),Jr(t,n,p)}}(t,r,o,n,jn,a,i);else{var d=a?a(xi(t,o),s,o+"",t,r,i):e;d===e&&(d=s),Jr(t,o,d)}}),To)}function Un(t,r){var n=t.length;if(n)return hi(r+=r<0?n:0,n)?t[r]:e}function Vn(e,t,r){t=t.length?kt(t,(function(e){return Us(e)?function(t){return bn(t,1===e.length?e[0]:e)}:e})):[Qo];var n=-1;t=kt(t,Ht(ai()));var a=Mn(e,(function(e,r,a){var i=kt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(a,(function(e,t){return function(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,s=a.length,o=r.length;++n<s;){var d=Ea(a[n],i[n]);if(d)return n>=o?d:d*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Bn(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var s=t[n],o=bn(e,s);r(o,s)&&Zn(i,fa(s,e),o)}return i}function $n(e,t,r,n){var a=n?Lt:Mt,i=-1,s=t.length,o=e;for(e===t&&(t=Ca(t)),r&&(o=kt(e,Ht(r)));++i<s;)for(var d=0,l=t[i],u=r?r(l):l;(d=a(o,u,d,n))>-1;)o!==e&&Je.call(o,d,1),Je.call(e,d,1);return e}function zn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==i){var i=a;hi(a)?Je.call(e,a,1):oa(e,a)}}return e}function qn(e,t){return e+Vt(vr()*(t-e+1))}function Hn(e,t){var r="";if(!e||t<1||t>o)return r;do{t%2&&(r+=e),(t=Vt(t/2))&&(e+=e)}while(t);return r}function Kn(e,t){return ki(Ei(e,t,Qo),e+"")}function Gn(e){return Gr(Lo(e))}function Wn(e,t){var r=Lo(e);return Pi(r,nn(t,0,r.length))}function Zn(t,r,n,a){if(!Zs(t))return t;for(var i=-1,s=(r=fa(r,t)).length,o=s-1,d=t;null!=d&&++i<s;){var l=Oi(r[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=o){var p=d[l];(u=a?a(p,l,d):e)===e&&(u=Zs(p)?p:hi(r[i+1])?[]:{})}Yr(d,l,u),d=d[l]}return t}var Jn=Nr?function(e,t){return Nr.set(e,t),e}:Qo,Yn=dt?function(e,t){return dt(e,"toString",{configurable:!0,enumerable:!1,value:Jo(t),writable:!0})}:Qo;function Xn(e){return Pi(Lo(e))}function Qn(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=we(a);++n<a;)i[n]=e[n+t];return i}function ea(e,t){var r;return ln(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r}function ta(e,t,r){var n=0,a=null==e?n:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;n<a;){var i=n+a>>>1,s=e[i];null!==s&&!no(s)&&(r?s<=t:s<t)?n=i+1:a=i}return a}return ra(e,t,Qo,r)}function ra(t,r,n,a){var i=0,s=null==t?0:t.length;if(0===s)return 0;for(var o=(r=n(r))!=r,d=null===r,l=no(r),u=r===e;i<s;){var p=Vt((i+s)/2),c=n(t[p]),m=c!==e,h=null===c,f=c==c,g=no(c);if(o)var y=a||f;else y=u?f&&(a||m):d?f&&m&&(a||!h):l?f&&m&&!h&&(a||!g):!h&&!g&&(a?c<=r:c<r);y?i=p+1:s=p}return fr(s,4294967294)}function na(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var s=e[r],o=t?t(s):s;if(!r||!Ms(o,d)){var d=o;i[a++]=0===s?0:s}}return i}function aa(e){return"number"==typeof e?e:no(e)?d:+e}function ia(e){if("string"==typeof e)return e;if(Us(e))return kt(e,ia)+"";if(no(e))return Mr?Mr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function sa(e,t,r){var n=-1,a=Ct,i=e.length,s=!0,o=[],d=o;if(r)s=!1,a=Nt;else if(i>=200){var l=t?null:Ha(e);if(l)return nr(l);s=!1,a=Gt,d=new qr}else d=t?[]:o;e:for(;++n<i;){var u=e[n],p=t?t(u):u;if(u=r||0!==u?u:0,s&&p==p){for(var c=d.length;c--;)if(d[c]===p)continue e;t&&d.push(p),o.push(u)}else a(d,p,r)||(d!==o&&d.push(p),o.push(u))}return o}function oa(e,t){return null==(e=_i(e,t=fa(t,e)))||delete e[Oi(Hi(t))]}function da(e,t,r,n){return Zn(e,t,r(bn(e,t)),n)}function la(e,t,r,n){for(var a=e.length,i=n?a:-1;(n?i--:++i<a)&&t(e[i],i,e););return r?Qn(e,n?0:i,n?i+1:a):Qn(e,n?i+1:0,n?a:i)}function ua(e,t){var r=e;return r instanceof Vr&&(r=r.value()),At(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),r)}function pa(e,t,r){var n=e.length;if(n<2)return n?sa(e[0]):[];for(var a=-1,i=we(n);++a<n;)for(var s=e[a],o=-1;++o<n;)o!=a&&(i[a]=dn(i[a]||s,e[o],t,r));return sa(hn(i,1),t,r)}function ca(t,r,n){for(var a=-1,i=t.length,s=r.length,o={};++a<i;){var d=a<s?r[a]:e;n(o,t[a],d)}return o}function ma(e){return $s(e)?e:[]}function ha(e){return"function"==typeof e?e:Qo}function fa(e,t){return Us(e)?e:gi(e,t)?[e]:Ii(ho(e))}var ga=Kn;function ya(t,r,n){var a=t.length;return n=n===e?a:n,!r&&n>=a?t:Qn(t,r,n)}var va=lt||function(e){return ot.clearTimeout(e)};function wa(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function ba(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Sa(e,t){var r=t?ba(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ea(t,r){if(t!==r){var n=t!==e,a=null===t,i=t==t,s=no(t),o=r!==e,d=null===r,l=r==r,u=no(r);if(!d&&!u&&!s&&t>r||s&&o&&l&&!d&&!u||a&&o&&l||!n&&l||!i)return 1;if(!a&&!s&&!u&&t<r||u&&n&&i&&!a&&!s||d&&n&&i||!o&&i||!l)return-1}return 0}function _a(e,t,r,n){for(var a=-1,i=e.length,s=r.length,o=-1,d=t.length,l=hr(i-s,0),u=we(d+l),p=!n;++o<d;)u[o]=t[o];for(;++a<s;)(p||a<i)&&(u[r[a]]=e[a]);for(;l--;)u[o++]=e[a++];return u}function xa(e,t,r,n){for(var a=-1,i=e.length,s=-1,o=r.length,d=-1,l=t.length,u=hr(i-o,0),p=we(u+l),c=!n;++a<u;)p[a]=e[a];for(var m=a;++d<l;)p[m+d]=t[d];for(;++s<o;)(c||a<i)&&(p[m+r[s]]=e[a++]);return p}function Ca(e,t){var r=-1,n=e.length;for(t||(t=we(n));++r<n;)t[r]=e[r];return t}function Na(t,r,n,a){var i=!n;n||(n={});for(var s=-1,o=r.length;++s<o;){var d=r[s],l=a?a(n[d],t[d],d,n,t):e;l===e&&(l=t[d]),i?tn(n,d,l):Yr(n,d,l)}return n}function ka(e,t){return function(r,n){var a=Us(r)?bt:Qr,i=t?t():{};return a(r,e,ai(n,2),i)}}function Ta(t){return Kn((function(r,n){var a=-1,i=n.length,s=i>1?n[i-1]:e,o=i>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(i--,s):e,o&&fi(n[0],n[1],o)&&(s=i<3?e:s,i=1),r=xe(r);++a<i;){var d=n[a];d&&t(r,d,a,s)}return r}))}function Aa(e,t){return function(r,n){if(null==r)return r;if(!Bs(r))return e(r,n);for(var a=r.length,i=t?a:-1,s=xe(r);(t?i--:++i<a)&&!1!==n(s[i],i,s););return r}}function Pa(e){return function(t,r,n){for(var a=-1,i=xe(t),s=n(t),o=s.length;o--;){var d=s[e?o:++a];if(!1===r(i[d],d,i))break}return t}}function Ia(t){return function(r){var n=Qt(r=ho(r))?ir(r):e,a=n?n[0]:r.charAt(0),i=n?ya(n,1).join(""):r.slice(1);return a[t]()+i}}function Oa(e){return function(t){return At(Go(Uo(t).replace(Ke,"")),e,"")}}function Da(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fr(e.prototype),n=e.apply(r,t);return Zs(n)?n:r}}function Ra(t){return function(r,n,a){var i=xe(r);if(!Bs(r)){var s=ai(n,3);r=ko(r),n=function(e){return s(i[e],e,i)}}var o=t(r,n,a);return o>-1?i[s?r[o]:o]:e}}function Ma(r){return Xa((function(n){var a=n.length,i=a,s=Ur.prototype.thru;for(r&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new ke(t);if(s&&!d&&"wrapper"==ri(o))var d=new Ur([],!0)}for(i=d?i:a;++i<a;){var l=ri(o=n[i]),u="wrapper"==l?ti(o):e;d=u&&yi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?d[ri(u[0])].apply(d,u[3]):1==o.length&&yi(o)?d[l]():d.thru(o)}return function(){var e=arguments,t=e[0];if(d&&1==e.length&&Us(t))return d.plant(t).value();for(var r=0,i=a?n[r].apply(this,e):t;++r<a;)i=n[r].call(this,i);return i}}))}function La(t,r,n,a,s,o,d,l,u,p){var c=r&i,m=1&r,h=2&r,f=24&r,g=512&r,y=h?e:Da(t);return function i(){for(var v=arguments.length,w=we(v),b=v;b--;)w[b]=arguments[b];if(f)var S=ni(i),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,S);if(a&&(w=_a(w,a,s,f)),o&&(w=xa(w,o,d,f)),v-=E,f&&v<p){var _=rr(w,S);return za(t,r,La,i.placeholder,n,w,_,l,u,p-v)}var x=m?n:this,C=h?x[t]:t;return v=w.length,l?w=function(t,r){for(var n=t.length,a=fr(r.length,n),i=Ca(t);a--;){var s=r[a];t[a]=hi(s,n)?i[s]:e}return t}(w,l):g&&v>1&&w.reverse(),c&&u<v&&(w.length=u),this&&this!==ot&&this instanceof i&&(C=y||Da(C)),C.apply(x,w)}}function Fa(e,t){return function(r,n){return function(e,t,r,n){return yn(e,(function(e,a,i){t(n,r(e),a,i)})),n}(r,e,t(n),{})}}function ja(t,r){return function(n,a){var i;if(n===e&&a===e)return r;if(n!==e&&(i=n),a!==e){if(i===e)return a;"string"==typeof n||"string"==typeof a?(n=ia(n),a=ia(a)):(n=aa(n),a=aa(a)),i=t(n,a)}return i}}function Ua(e){return Xa((function(t){return t=kt(t,Ht(ai())),Kn((function(r){var n=this;return e(t,(function(e){return wt(e,n,r)}))}))}))}function Va(t,r){var n=(r=r===e?" ":ia(r)).length;if(n<2)return n?Hn(r,t):r;var a=Hn(r,Ot(t/ar(r)));return Qt(r)?ya(ir(a),0,t).join(""):a.slice(0,t)}function Ba(t){return function(r,n,a){return a&&"number"!=typeof a&&fi(r,n,a)&&(n=a=e),r=lo(r),n===e?(n=r,r=0):n=lo(n),function(e,t,r,n){for(var a=-1,i=hr(Ot((t-e)/(r||1)),0),s=we(i);i--;)s[n?i:++a]=e,e+=r;return s}(r,n,a=a===e?r<n?1:-1:lo(a),t)}}function $a(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=co(t),r=co(r)),e(t,r)}}function za(t,r,n,i,s,o,d,l,u,p){var c=8&r;r|=c?a:64,4&(r&=~(c?64:a))||(r&=-4);var m=[t,r,s,c?o:e,c?d:e,c?e:o,c?e:d,l,u,p],h=n.apply(e,m);return yi(t)&&Ci(h,m),h.placeholder=i,Ti(h,t,r)}function qa(e){var t=_e[e];return function(e,r){if(e=co(e),(r=null==r?0:fr(uo(r),292))&&pr(e)){var n=(ho(e)+"e").split("e");return+((n=(ho(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Ha=_r&&1/nr(new _r([,-0]))[1]==s?function(e){return new _r(e)}:ad;function Ka(e){return function(t){var r=ui(t);return r==v?er(t):r==_?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return kt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ga(r,s,o,d,l,u,p,c){var m=2&s;if(!m&&"function"!=typeof r)throw new ke(t);var h=d?d.length:0;if(h||(s&=-97,d=l=e),p=p===e?p:hr(uo(p),0),c=c===e?c:uo(c),h-=l?l.length:0,64&s){var f=d,g=l;d=l=e}var y=m?e:ti(r),v=[r,s,o,d,l,f,g,u,p,c];if(y&&function(e,t){var r=e[1],a=t[1],s=r|a,o=s<131,d=a==i&&8==r||a==i&&256==r&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==r;if(!o&&!d)return e;1&a&&(e[2]=t[2],s|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?_a(u,l,t[4]):l,e[4]=u?rr(e[3],n):t[4]}(l=t[5])&&(u=e[5],e[5]=u?xa(u,l,t[6]):l,e[6]=u?rr(e[5],n):t[6]),(l=t[7])&&(e[7]=l),a&i&&(e[8]=null==e[8]?t[8]:fr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(v,y),r=v[0],s=v[1],o=v[2],d=v[3],l=v[4],!(c=v[9]=v[9]===e?m?0:r.length:hr(v[9]-h,0))&&24&s&&(s&=-25),s&&1!=s)w=8==s||16==s?function(t,r,n){var a=Da(t);return function i(){for(var s=arguments.length,o=we(s),d=s,l=ni(i);d--;)o[d]=arguments[d];var u=s<3&&o[0]!==l&&o[s-1]!==l?[]:rr(o,l);return(s-=u.length)<n?za(t,r,La,i.placeholder,e,o,u,e,e,n-s):wt(this&&this!==ot&&this instanceof i?a:t,this,o)}}(r,s,c):s!=a&&33!=s||l.length?La.apply(e,v):function(e,t,r,n){var a=1&t,i=Da(e);return function t(){for(var s=-1,o=arguments.length,d=-1,l=n.length,u=we(l+o),p=this&&this!==ot&&this instanceof t?i:e;++d<l;)u[d]=n[d];for(;o--;)u[d++]=arguments[++s];return wt(p,a?r:this,u)}}(r,s,o,d);else var w=function(e,t,r){var n=1&t,a=Da(e);return function t(){return(this&&this!==ot&&this instanceof t?a:e).apply(n?r:this,arguments)}}(r,s,o);return Ti((y?Jn:Ci)(w,v),r,s)}function Wa(t,r,n,a){return t===e||Ms(t,Pe[n])&&!De.call(a,n)?r:t}function Za(t,r,n,a,i,s){return Zs(t)&&Zs(r)&&(s.set(r,t),jn(t,r,e,Za,s),s.delete(r)),t}function Ja(t){return Qs(t)?e:t}function Ya(t,r,n,a,i,s){var o=1&n,d=t.length,l=r.length;if(d!=l&&!(o&&l>d))return!1;var u=s.get(t),p=s.get(r);if(u&&p)return u==r&&p==t;var c=-1,m=!0,h=2&n?new qr:e;for(s.set(t,r),s.set(r,t);++c<d;){var f=t[c],g=r[c];if(a)var y=o?a(g,f,c,r,t,s):a(f,g,c,t,r,s);if(y!==e){if(y)continue;m=!1;break}if(h){if(!It(r,(function(e,t){if(!Gt(h,t)&&(f===e||i(f,e,n,a,s)))return h.push(t)}))){m=!1;break}}else if(f!==g&&!i(f,g,n,a,s)){m=!1;break}}return s.delete(t),s.delete(r),m}function Xa(t){return ki(Ei(t,e,Vi),t+"")}function Qa(e){return Sn(e,ko,di)}function ei(e){return Sn(e,To,li)}var ti=Nr?function(e){return Nr.get(e)}:ad;function ri(e){for(var t=e.name+"",r=kr[t],n=De.call(kr,t)?r.length:0;n--;){var a=r[n],i=a.func;if(null==i||i==e)return a.name}return t}function ni(e){return(De.call(Lr,"placeholder")?Lr:e).placeholder}function ai(){var e=Lr.iteratee||ed;return e=e===ed?On:e,arguments.length?e(arguments[0],arguments[1]):e}function ii(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function si(e){for(var t=ko(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,bi(a)]}return t}function oi(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return In(n)?n:e}var di=lr?function(e){return null==e?[]:(e=xe(e),xt(lr(e),(function(t){return We.call(e,t)})))}:pd,li=lr?function(e){for(var t=[];e;)Tt(t,di(e)),e=qe(e);return t}:pd,ui=En;function pi(e,t,r){for(var n=-1,a=(t=fa(t,e)).length,i=!1;++n<a;){var s=Oi(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Ws(a)&&hi(s,a)&&(Us(e)||js(e))}function ci(e){return"function"!=typeof e.constructor||wi(e)?{}:Fr(qe(e))}function mi(e){return Us(e)||js(e)||!!(rt&&e&&e[rt])}function hi(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&me.test(e))&&e>-1&&e%1==0&&e<t}function fi(e,t,r){if(!Zs(r))return!1;var n=typeof t;return!!("number"==n?Bs(r)&&hi(t,r.length):"string"==n&&t in r)&&Ms(r[t],e)}function gi(e,t){if(Us(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!no(e))||Z.test(e)||!W.test(e)||null!=t&&e in xe(t)}function yi(e){var t=ri(e),r=Lr[t];if("function"!=typeof r||!(t in Vr.prototype))return!1;if(e===r)return!0;var n=ti(r);return!!n&&e===n[0]}(br&&ui(new br(new ArrayBuffer(1)))!=T||Sr&&ui(new Sr)!=v||Er&&ui(Er.resolve())!=S||_r&&ui(new _r)!=_||xr&&ui(new xr)!=N)&&(ui=function(t){var r=En(t),n=r==b?t.constructor:e,a=n?Di(n):"";if(a)switch(a){case Tr:return T;case Ar:return v;case Pr:return S;case Ir:return _;case Or:return N}return r});var vi=Ie?Ks:cd;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function bi(e){return e==e&&!Zs(e)}function Si(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in xe(n))}}function Ei(t,r,n){return r=hr(r===e?t.length-1:r,0),function(){for(var e=arguments,a=-1,i=hr(e.length-r,0),s=we(i);++a<i;)s[a]=e[r+a];a=-1;for(var o=we(r+1);++a<r;)o[a]=e[a];return o[r]=n(s),wt(t,this,o)}}function _i(e,t){return t.length<2?e:bn(e,Qn(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ci=Ai(Jn),Ni=ct||function(e,t){return ot.setTimeout(e,t)},ki=Ai(Yn);function Ti(e,t,r){var n=t+"";return ki(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(te,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return St(u,(function(r){var n="_."+r[0];t&r[1]&&!Ct(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(re);return t?t[1].split(ne):[]}(n),r)))}function Ai(t){var r=0,n=0;return function(){var a=gr(),i=16-(a-n);if(n=a,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Pi(t,r){var n=-1,a=t.length,i=a-1;for(r=r===e?a:r;++n<r;){var s=qn(n,i),o=t[s];t[s]=t[n],t[n]=o}return t.length=r,t}var Ii=function(e){var t=As((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(J,(function(e,r,n,a){t.push(n?a.replace(se,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}();function Oi(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ri(e){if(e instanceof Vr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Ca(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Mi=Kn((function(e,t){return $s(e)?dn(e,hn(t,1,$s,!0)):[]})),Li=Kn((function(t,r){var n=Hi(r);return $s(n)&&(n=e),$s(t)?dn(t,hn(r,1,$s,!0),ai(n,2)):[]})),Fi=Kn((function(t,r){var n=Hi(r);return $s(n)&&(n=e),$s(t)?dn(t,hn(r,1,$s,!0),e,n):[]}));function ji(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:uo(r);return a<0&&(a=hr(n+a,0)),Rt(e,ai(t,3),a)}function Ui(t,r,n){var a=null==t?0:t.length;if(!a)return-1;var i=a-1;return n!==e&&(i=uo(n),i=n<0?hr(a+i,0):fr(i,a-1)),Rt(t,ai(r,3),i,!0)}function Vi(e){return null!=e&&e.length?hn(e,1):[]}function Bi(t){return t&&t.length?t[0]:e}var $i=Kn((function(e){var t=kt(e,ma);return t.length&&t[0]===e[0]?Nn(t):[]})),zi=Kn((function(t){var r=Hi(t),n=kt(t,ma);return r===Hi(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Nn(n,ai(r,2)):[]})),qi=Kn((function(t){var r=Hi(t),n=kt(t,ma);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Nn(n,e,r):[]}));function Hi(t){var r=null==t?0:t.length;return r?t[r-1]:e}var Ki=Kn(Gi);function Gi(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Wi=Xa((function(e,t){var r=null==e?0:e.length,n=rn(e,t);return zn(e,kt(t,(function(e){return hi(e,r)?+e:e})).sort(Ea)),n}));function Zi(e){return null==e?e:wr.call(e)}var Ji=Kn((function(e){return sa(hn(e,1,$s,!0))})),Yi=Kn((function(t){var r=Hi(t);return $s(r)&&(r=e),sa(hn(t,1,$s,!0),ai(r,2))})),Xi=Kn((function(t){var r=Hi(t);return r="function"==typeof r?r:e,sa(hn(t,1,$s,!0),e,r)}));function Qi(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if($s(e))return t=hr(e.length,t),!0})),zt(t,(function(t){return kt(e,Ut(t))}))}function es(t,r){if(!t||!t.length)return[];var n=Qi(t);return null==r?n:kt(n,(function(t){return wt(r,e,t)}))}var ts=Kn((function(e,t){return $s(e)?dn(e,t):[]})),rs=Kn((function(e){return pa(xt(e,$s))})),ns=Kn((function(t){var r=Hi(t);return $s(r)&&(r=e),pa(xt(t,$s),ai(r,2))})),as=Kn((function(t){var r=Hi(t);return r="function"==typeof r?r:e,pa(xt(t,$s),e,r)})),is=Kn(Qi),ss=Kn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function os(e){var t=Lr(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var ls=Xa((function(t){var r=t.length,n=r?t[0]:0,a=this.__wrapped__,i=function(e){return rn(e,t)};return!(r>1||this.__actions__.length)&&a instanceof Vr&&hi(n)?((a=a.slice(n,+n+(r?1:0))).__actions__.push({func:ds,args:[i],thisArg:e}),new Ur(a,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(i)})),us=ka((function(e,t,r){De.call(e,r)?++e[r]:tn(e,r,1)})),ps=Ra(ji),cs=Ra(Ui);function ms(e,t){return(Us(e)?St:ln)(e,ai(t,3))}function hs(e,t){return(Us(e)?Et:un)(e,ai(t,3))}var fs=ka((function(e,t,r){De.call(e,r)?e[r].push(t):tn(e,r,[t])})),gs=Kn((function(e,t,r){var n=-1,a="function"==typeof t,i=Bs(e)?we(e.length):[];return ln(e,(function(e){i[++n]=a?wt(t,e,r):kn(e,t,r)})),i})),ys=ka((function(e,t,r){tn(e,r,t)}));function vs(e,t){return(Us(e)?kt:Mn)(e,ai(t,3))}var ws=ka((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),bs=Kn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&fi(e,t[0],t[1])?t=[]:r>2&&fi(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,hn(t,1),[])})),Ss=pt||function(){return ot.Date.now()};function Es(t,r,n){return r=n?e:r,r=t&&null==r?t.length:r,Ga(t,i,e,e,e,e,r)}function _s(r,n){var a;if("function"!=typeof n)throw new ke(t);return r=uo(r),function(){return--r>0&&(a=n.apply(this,arguments)),r<=1&&(n=e),a}}var xs=Kn((function(e,t,r){var n=1;if(r.length){var i=rr(r,ni(xs));n|=a}return Ga(e,n,t,r,i)})),Cs=Kn((function(e,t,r){var n=3;if(r.length){var i=rr(r,ni(Cs));n|=a}return Ga(t,n,e,r,i)}));function Ns(r,n,a){var i,s,o,d,l,u,p=0,c=!1,m=!1,h=!0;if("function"!=typeof r)throw new ke(t);function f(t){var n=i,a=s;return i=s=e,p=t,d=r.apply(a,n)}function g(t){var r=t-u;return u===e||r>=n||r<0||m&&t-p>=o}function y(){var e=Ss();if(g(e))return v(e);l=Ni(y,function(e){var t=n-(e-u);return m?fr(t,o-(e-p)):t}(e))}function v(t){return l=e,h&&i?f(t):(i=s=e,d)}function w(){var t=Ss(),r=g(t);if(i=arguments,s=this,u=t,r){if(l===e)return function(e){return p=e,l=Ni(y,n),c?f(e):d}(u);if(m)return va(l),l=Ni(y,n),f(u)}return l===e&&(l=Ni(y,n)),d}return n=co(n)||0,Zs(a)&&(c=!!a.leading,o=(m="maxWait"in a)?hr(co(a.maxWait)||0,n):o,h="trailing"in a?!!a.trailing:h),w.cancel=function(){l!==e&&va(l),p=0,i=u=s=l=e},w.flush=function(){return l===e?d:v(Ss())},w}var ks=Kn((function(e,t){return on(e,1,t)})),Ts=Kn((function(e,t,r){return on(e,co(t)||0,r)}));function As(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new ke(t);var n=function(){var t=arguments,a=r?r.apply(this,t):t[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,t);return n.cache=i.set(a,s)||i,s};return n.cache=new(As.Cache||zr),n}function Ps(e){if("function"!=typeof e)throw new ke(t);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)}}As.Cache=zr;var Is=ga((function(e,t){var r=(t=1==t.length&&Us(t[0])?kt(t[0],Ht(ai())):kt(hn(t,1),Ht(ai()))).length;return Kn((function(n){for(var a=-1,i=fr(n.length,r);++a<i;)n[a]=t[a].call(this,n[a]);return wt(e,this,n)}))})),Os=Kn((function(t,r){var n=rr(r,ni(Os));return Ga(t,a,e,r,n)})),Ds=Kn((function(t,r){var n=rr(r,ni(Ds));return Ga(t,64,e,r,n)})),Rs=Xa((function(t,r){return Ga(t,256,e,e,e,r)}));function Ms(e,t){return e===t||e!=e&&t!=t}var Ls=$a(_n),Fs=$a((function(e,t){return e>=t})),js=Tn(function(){return arguments}())?Tn:function(e){return Js(e)&&De.call(e,"callee")&&!We.call(e,"callee")},Us=we.isArray,Vs=mt?Ht(mt):function(e){return Js(e)&&En(e)==k};function Bs(e){return null!=e&&Ws(e.length)&&!Ks(e)}function $s(e){return Js(e)&&Bs(e)}var zs=ur||cd,qs=ht?Ht(ht):function(e){return Js(e)&&En(e)==h};function Hs(e){if(!Js(e))return!1;var t=En(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Qs(e)}function Ks(e){if(!Zs(e))return!1;var t=En(e);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Gs(e){return"number"==typeof e&&e==uo(e)}function Ws(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Js(e){return null!=e&&"object"==typeof e}var Ys=ft?Ht(ft):function(e){return Js(e)&&ui(e)==v};function Xs(e){return"number"==typeof e||Js(e)&&En(e)==w}function Qs(e){if(!Js(e)||En(e)!=b)return!1;var t=qe(e);if(null===t)return!0;var r=De.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Oe.call(r)==Fe}var eo=gt?Ht(gt):function(e){return Js(e)&&En(e)==E},to=yt?Ht(yt):function(e){return Js(e)&&ui(e)==_};function ro(e){return"string"==typeof e||!Us(e)&&Js(e)&&En(e)==x}function no(e){return"symbol"==typeof e||Js(e)&&En(e)==C}var ao=vt?Ht(vt):function(e){return Js(e)&&Ws(e.length)&&!!et[En(e)]},io=$a(Rn),so=$a((function(e,t){return e<=t}));function oo(e){if(!e)return[];if(Bs(e))return ro(e)?ir(e):Ca(e);if(it&&e[it])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[it]());var t=ui(e);return(t==v?er:t==_?nr:Lo)(e)}function lo(e){return e?(e=co(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function uo(e){var t=lo(e),r=t%1;return t==t?r?t-r:t:0}function po(e){return e?nn(uo(e),0,l):0}function co(e){if("number"==typeof e)return e;if(no(e))return d;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var r=ue.test(e);return r||ce.test(e)?at(e.slice(2),r?2:8):le.test(e)?d:+e}function mo(e){return Na(e,To(e))}function ho(e){return null==e?"":ia(e)}var fo=Ta((function(e,t){if(wi(t)||Bs(t))Na(t,ko(t),e);else for(var r in t)De.call(t,r)&&Yr(e,r,t[r])})),go=Ta((function(e,t){Na(t,To(t),e)})),yo=Ta((function(e,t,r,n){Na(t,To(t),e,n)})),vo=Ta((function(e,t,r,n){Na(t,ko(t),e,n)})),wo=Xa(rn),bo=Kn((function(t,r){t=xe(t);var n=-1,a=r.length,i=a>2?r[2]:e;for(i&&fi(r[0],r[1],i)&&(a=1);++n<a;)for(var s=r[n],o=To(s),d=-1,l=o.length;++d<l;){var u=o[d],p=t[u];(p===e||Ms(p,Pe[u])&&!De.call(t,u))&&(t[u]=s[u])}return t})),So=Kn((function(t){return t.push(e,Za),wt(Po,e,t)}));function Eo(t,r,n){var a=null==t?e:bn(t,r);return a===e?n:a}function _o(e,t){return null!=e&&pi(e,t,Cn)}var xo=Fa((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=r}),Jo(Qo)),Co=Fa((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),De.call(e,t)?e[t].push(r):e[t]=[r]}),ai),No=Kn(kn);function ko(e){return Bs(e)?Kr(e):Dn(e)}function To(e){return Bs(e)?Kr(e,!0):function(e){if(!Zs(e))return function(e){var t=[];if(null!=e)for(var r in xe(e))t.push(r);return t}(e);var t=wi(e),r=[];for(var n in e)("constructor"!=n||!t&&De.call(e,n))&&r.push(n);return r}(e)}var Ao=Ta((function(e,t,r){jn(e,t,r)})),Po=Ta((function(e,t,r,n){jn(e,t,r,n)})),Io=Xa((function(e,t){var r={};if(null==e)return r;var n=!1;t=kt(t,(function(t){return t=fa(t,e),n||(n=t.length>1),t})),Na(e,ei(e),r),n&&(r=an(r,7,Ja));for(var a=t.length;a--;)oa(r,t[a]);return r})),Oo=Xa((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return _o(e,r)}))}(e,t)}));function Do(e,t){if(null==e)return{};var r=kt(ei(e),(function(e){return[e]}));return t=ai(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var Ro=Ka(ko),Mo=Ka(To);function Lo(e){return null==e?[]:Kt(e,ko(e))}var Fo=Oa((function(e,t,r){return t=t.toLowerCase(),e+(r?jo(t):t)}));function jo(e){return Ko(ho(e).toLowerCase())}function Uo(e){return(e=ho(e))&&e.replace(he,Jt).replace(Ge,"")}var Vo=Oa((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Bo=Oa((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),$o=Ia("toLowerCase"),zo=Oa((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),qo=Oa((function(e,t,r){return e+(r?" ":"")+Ko(t)})),Ho=Oa((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ko=Ia("toUpperCase");function Go(t,r,n){return t=ho(t),(r=n?e:r)===e?function(e){return Ye.test(e)}(t)?function(e){return e.match(Ze)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(r)||[]}var Wo=Kn((function(t,r){try{return wt(t,e,r)}catch(e){return Hs(e)?e:new Se(e)}})),Zo=Xa((function(e,t){return St(t,(function(t){t=Oi(t),tn(e,t,xs(e[t],e))})),e}));function Jo(e){return function(){return e}}var Yo=Ma(),Xo=Ma(!0);function Qo(e){return e}function ed(e){return On("function"==typeof e?e:an(e,1))}var td=Kn((function(e,t){return function(r){return kn(r,e,t)}})),rd=Kn((function(e,t){return function(r){return kn(e,r,t)}}));function nd(e,t,r){var n=ko(t),a=wn(t,n);null!=r||Zs(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=wn(t,ko(t)));var i=!(Zs(r)&&"chain"in r&&!r.chain),s=Ks(e);return St(a,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ca(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Tt([this.value()],arguments))})})),e}function ad(){}var id=Ua(kt),sd=Ua(_t),od=Ua(It);function dd(e){return gi(e)?Ut(Oi(e)):function(e){return function(t){return bn(t,e)}}(e)}var ld=Ba(),ud=Ba(!0);function pd(){return[]}function cd(){return!1}var md,hd=ja((function(e,t){return e+t}),0),fd=qa("ceil"),gd=ja((function(e,t){return e/t}),1),yd=qa("floor"),vd=ja((function(e,t){return e*t}),1),wd=qa("round"),bd=ja((function(e,t){return e-t}),0);return Lr.after=function(e,r){if("function"!=typeof r)throw new ke(t);return e=uo(e),function(){if(--e<1)return r.apply(this,arguments)}},Lr.ary=Es,Lr.assign=fo,Lr.assignIn=go,Lr.assignInWith=yo,Lr.assignWith=vo,Lr.at=wo,Lr.before=_s,Lr.bind=xs,Lr.bindAll=Zo,Lr.bindKey=Cs,Lr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},Lr.chain=os,Lr.chunk=function(t,r,n){r=(n?fi(t,r,n):r===e)?1:hr(uo(r),0);var a=null==t?0:t.length;if(!a||r<1)return[];for(var i=0,s=0,o=we(Ot(a/r));i<a;)o[s++]=Qn(t,i,i+=r);return o},Lr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,a=[];++t<r;){var i=e[t];i&&(a[n++]=i)}return a},Lr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=we(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Tt(Us(r)?Ca(r):[r],hn(t,1))},Lr.cond=function(e){var r=null==e?0:e.length,n=ai();return e=r?kt(e,(function(e){if("function"!=typeof e[1])throw new ke(t);return[n(e[0]),e[1]]})):[],Kn((function(t){for(var n=-1;++n<r;){var a=e[n];if(wt(a[0],this,t))return wt(a[1],this,t)}}))},Lr.conforms=function(e){return function(e){var t=ko(e);return function(r){return sn(r,e,t)}}(an(e,1))},Lr.constant=Jo,Lr.countBy=us,Lr.create=function(e,t){var r=Fr(e);return null==t?r:en(r,t)},Lr.curry=function t(r,n,a){var i=Ga(r,8,e,e,e,e,e,n=a?e:n);return i.placeholder=t.placeholder,i},Lr.curryRight=function t(r,n,a){var i=Ga(r,16,e,e,e,e,e,n=a?e:n);return i.placeholder=t.placeholder,i},Lr.debounce=Ns,Lr.defaults=bo,Lr.defaultsDeep=So,Lr.defer=ks,Lr.delay=Ts,Lr.difference=Mi,Lr.differenceBy=Li,Lr.differenceWith=Fi,Lr.drop=function(t,r,n){var a=null==t?0:t.length;return a?Qn(t,(r=n||r===e?1:uo(r))<0?0:r,a):[]},Lr.dropRight=function(t,r,n){var a=null==t?0:t.length;return a?Qn(t,0,(r=a-(r=n||r===e?1:uo(r)))<0?0:r):[]},Lr.dropRightWhile=function(e,t){return e&&e.length?la(e,ai(t,3),!0,!0):[]},Lr.dropWhile=function(e,t){return e&&e.length?la(e,ai(t,3),!0):[]},Lr.fill=function(t,r,n,a){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&fi(t,r,n)&&(n=0,a=i),function(t,r,n,a){var i=t.length;for((n=uo(n))<0&&(n=-n>i?0:i+n),(a=a===e||a>i?i:uo(a))<0&&(a+=i),a=n>a?0:po(a);n<a;)t[n++]=r;return t}(t,r,n,a)):[]},Lr.filter=function(e,t){return(Us(e)?xt:mn)(e,ai(t,3))},Lr.flatMap=function(e,t){return hn(vs(e,t),1)},Lr.flatMapDeep=function(e,t){return hn(vs(e,t),s)},Lr.flatMapDepth=function(t,r,n){return n=n===e?1:uo(n),hn(vs(t,r),n)},Lr.flatten=Vi,Lr.flattenDeep=function(e){return null!=e&&e.length?hn(e,s):[]},Lr.flattenDepth=function(t,r){return null!=t&&t.length?hn(t,r=r===e?1:uo(r)):[]},Lr.flip=function(e){return Ga(e,512)},Lr.flow=Yo,Lr.flowRight=Xo,Lr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n},Lr.functions=function(e){return null==e?[]:wn(e,ko(e))},Lr.functionsIn=function(e){return null==e?[]:wn(e,To(e))},Lr.groupBy=fs,Lr.initial=function(e){return null!=e&&e.length?Qn(e,0,-1):[]},Lr.intersection=$i,Lr.intersectionBy=zi,Lr.intersectionWith=qi,Lr.invert=xo,Lr.invertBy=Co,Lr.invokeMap=gs,Lr.iteratee=ed,Lr.keyBy=ys,Lr.keys=ko,Lr.keysIn=To,Lr.map=vs,Lr.mapKeys=function(e,t){var r={};return t=ai(t,3),yn(e,(function(e,n,a){tn(r,t(e,n,a),e)})),r},Lr.mapValues=function(e,t){var r={};return t=ai(t,3),yn(e,(function(e,n,a){tn(r,n,t(e,n,a))})),r},Lr.matches=function(e){return Ln(an(e,1))},Lr.matchesProperty=function(e,t){return Fn(e,an(t,1))},Lr.memoize=As,Lr.merge=Ao,Lr.mergeWith=Po,Lr.method=td,Lr.methodOf=rd,Lr.mixin=nd,Lr.negate=Ps,Lr.nthArg=function(e){return e=uo(e),Kn((function(t){return Un(t,e)}))},Lr.omit=Io,Lr.omitBy=function(e,t){return Do(e,Ps(ai(t)))},Lr.once=function(e){return _s(2,e)},Lr.orderBy=function(t,r,n,a){return null==t?[]:(Us(r)||(r=null==r?[]:[r]),Us(n=a?e:n)||(n=null==n?[]:[n]),Vn(t,r,n))},Lr.over=id,Lr.overArgs=Is,Lr.overEvery=sd,Lr.overSome=od,Lr.partial=Os,Lr.partialRight=Ds,Lr.partition=ws,Lr.pick=Oo,Lr.pickBy=Do,Lr.property=dd,Lr.propertyOf=function(t){return function(r){return null==t?e:bn(t,r)}},Lr.pull=Ki,Lr.pullAll=Gi,Lr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,ai(r,2)):e},Lr.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?$n(t,r,e,n):t},Lr.pullAt=Wi,Lr.range=ld,Lr.rangeRight=ud,Lr.rearg=Rs,Lr.reject=function(e,t){return(Us(e)?xt:mn)(e,Ps(ai(t,3)))},Lr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,a=[],i=e.length;for(t=ai(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),a.push(n))}return zn(e,a),r},Lr.rest=function(r,n){if("function"!=typeof r)throw new ke(t);return Kn(r,n=n===e?n:uo(n))},Lr.reverse=Zi,Lr.sampleSize=function(t,r,n){return r=(n?fi(t,r,n):r===e)?1:uo(r),(Us(t)?Wr:Wn)(t,r)},Lr.set=function(e,t,r){return null==e?e:Zn(e,t,r)},Lr.setWith=function(t,r,n,a){return a="function"==typeof a?a:e,null==t?t:Zn(t,r,n,a)},Lr.shuffle=function(e){return(Us(e)?Zr:Xn)(e)},Lr.slice=function(t,r,n){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&fi(t,r,n)?(r=0,n=a):(r=null==r?0:uo(r),n=n===e?a:uo(n)),Qn(t,r,n)):[]},Lr.sortBy=bs,Lr.sortedUniq=function(e){return e&&e.length?na(e):[]},Lr.sortedUniqBy=function(e,t){return e&&e.length?na(e,ai(t,2)):[]},Lr.split=function(t,r,n){return n&&"number"!=typeof n&&fi(t,r,n)&&(r=n=e),(n=n===e?l:n>>>0)?(t=ho(t))&&("string"==typeof r||null!=r&&!eo(r))&&!(r=ia(r))&&Qt(t)?ya(ir(t),0,n):t.split(r,n):[]},Lr.spread=function(e,r){if("function"!=typeof e)throw new ke(t);return r=null==r?0:hr(uo(r),0),Kn((function(t){var n=t[r],a=ya(t,0,r);return n&&Tt(a,n),wt(e,this,a)}))},Lr.tail=function(e){var t=null==e?0:e.length;return t?Qn(e,1,t):[]},Lr.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:uo(r))<0?0:r):[]},Lr.takeRight=function(t,r,n){var a=null==t?0:t.length;return a?Qn(t,(r=a-(r=n||r===e?1:uo(r)))<0?0:r,a):[]},Lr.takeRightWhile=function(e,t){return e&&e.length?la(e,ai(t,3),!1,!0):[]},Lr.takeWhile=function(e,t){return e&&e.length?la(e,ai(t,3)):[]},Lr.tap=function(e,t){return t(e),e},Lr.throttle=function(e,r,n){var a=!0,i=!0;if("function"!=typeof e)throw new ke(t);return Zs(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),Ns(e,r,{leading:a,maxWait:r,trailing:i})},Lr.thru=ds,Lr.toArray=oo,Lr.toPairs=Ro,Lr.toPairsIn=Mo,Lr.toPath=function(e){return Us(e)?kt(e,Oi):no(e)?[e]:Ca(Ii(ho(e)))},Lr.toPlainObject=mo,Lr.transform=function(e,t,r){var n=Us(e),a=n||zs(e)||ao(e);if(t=ai(t,4),null==r){var i=e&&e.constructor;r=a?n?new i:[]:Zs(e)&&Ks(i)?Fr(qe(e)):{}}return(a?St:yn)(e,(function(e,n,a){return t(r,e,n,a)})),r},Lr.unary=function(e){return Es(e,1)},Lr.union=Ji,Lr.unionBy=Yi,Lr.unionWith=Xi,Lr.uniq=function(e){return e&&e.length?sa(e):[]},Lr.uniqBy=function(e,t){return e&&e.length?sa(e,ai(t,2)):[]},Lr.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?sa(t,e,r):[]},Lr.unset=function(e,t){return null==e||oa(e,t)},Lr.unzip=Qi,Lr.unzipWith=es,Lr.update=function(e,t,r){return null==e?e:da(e,t,ha(r))},Lr.updateWith=function(t,r,n,a){return a="function"==typeof a?a:e,null==t?t:da(t,r,ha(n),a)},Lr.values=Lo,Lr.valuesIn=function(e){return null==e?[]:Kt(e,To(e))},Lr.without=ts,Lr.words=Go,Lr.wrap=function(e,t){return Os(ha(t),e)},Lr.xor=rs,Lr.xorBy=ns,Lr.xorWith=as,Lr.zip=is,Lr.zipObject=function(e,t){return ca(e||[],t||[],Yr)},Lr.zipObjectDeep=function(e,t){return ca(e||[],t||[],Zn)},Lr.zipWith=ss,Lr.entries=Ro,Lr.entriesIn=Mo,Lr.extend=go,Lr.extendWith=yo,nd(Lr,Lr),Lr.add=hd,Lr.attempt=Wo,Lr.camelCase=Fo,Lr.capitalize=jo,Lr.ceil=fd,Lr.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=co(n))==n?n:0),r!==e&&(r=(r=co(r))==r?r:0),nn(co(t),r,n)},Lr.clone=function(e){return an(e,4)},Lr.cloneDeep=function(e){return an(e,5)},Lr.cloneDeepWith=function(t,r){return an(t,5,r="function"==typeof r?r:e)},Lr.cloneWith=function(t,r){return an(t,4,r="function"==typeof r?r:e)},Lr.conformsTo=function(e,t){return null==t||sn(e,t,ko(t))},Lr.deburr=Uo,Lr.defaultTo=function(e,t){return null==e||e!=e?t:e},Lr.divide=gd,Lr.endsWith=function(t,r,n){t=ho(t),r=ia(r);var a=t.length,i=n=n===e?a:nn(uo(n),0,a);return(n-=r.length)>=0&&t.slice(n,i)==r},Lr.eq=Ms,Lr.escape=function(e){return(e=ho(e))&&q.test(e)?e.replace($,Yt):e},Lr.escapeRegExp=function(e){return(e=ho(e))&&X.test(e)?e.replace(Y,"\\$&"):e},Lr.every=function(t,r,n){var a=Us(t)?_t:pn;return n&&fi(t,r,n)&&(r=e),a(t,ai(r,3))},Lr.find=ps,Lr.findIndex=ji,Lr.findKey=function(e,t){return Dt(e,ai(t,3),yn)},Lr.findLast=cs,Lr.findLastIndex=Ui,Lr.findLastKey=function(e,t){return Dt(e,ai(t,3),vn)},Lr.floor=yd,Lr.forEach=ms,Lr.forEachRight=hs,Lr.forIn=function(e,t){return null==e?e:fn(e,ai(t,3),To)},Lr.forInRight=function(e,t){return null==e?e:gn(e,ai(t,3),To)},Lr.forOwn=function(e,t){return e&&yn(e,ai(t,3))},Lr.forOwnRight=function(e,t){return e&&vn(e,ai(t,3))},Lr.get=Eo,Lr.gt=Ls,Lr.gte=Fs,Lr.has=function(e,t){return null!=e&&pi(e,t,xn)},Lr.hasIn=_o,Lr.head=Bi,Lr.identity=Qo,Lr.includes=function(e,t,r,n){e=Bs(e)?e:Lo(e),r=r&&!n?uo(r):0;var a=e.length;return r<0&&(r=hr(a+r,0)),ro(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Mt(e,t,r)>-1},Lr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:uo(r);return a<0&&(a=hr(n+a,0)),Mt(e,t,a)},Lr.inRange=function(t,r,n){return r=lo(r),n===e?(n=r,r=0):n=lo(n),function(e,t,r){return e>=fr(t,r)&&e<hr(t,r)}(t=co(t),r,n)},Lr.invoke=No,Lr.isArguments=js,Lr.isArray=Us,Lr.isArrayBuffer=Vs,Lr.isArrayLike=Bs,Lr.isArrayLikeObject=$s,Lr.isBoolean=function(e){return!0===e||!1===e||Js(e)&&En(e)==m},Lr.isBuffer=zs,Lr.isDate=qs,Lr.isElement=function(e){return Js(e)&&1===e.nodeType&&!Qs(e)},Lr.isEmpty=function(e){if(null==e)return!0;if(Bs(e)&&(Us(e)||"string"==typeof e||"function"==typeof e.splice||zs(e)||ao(e)||js(e)))return!e.length;var t=ui(e);if(t==v||t==_)return!e.size;if(wi(e))return!Dn(e).length;for(var r in e)if(De.call(e,r))return!1;return!0},Lr.isEqual=function(e,t){return An(e,t)},Lr.isEqualWith=function(t,r,n){var a=(n="function"==typeof n?n:e)?n(t,r):e;return a===e?An(t,r,e,n):!!a},Lr.isError=Hs,Lr.isFinite=function(e){return"number"==typeof e&&pr(e)},Lr.isFunction=Ks,Lr.isInteger=Gs,Lr.isLength=Ws,Lr.isMap=Ys,Lr.isMatch=function(e,t){return e===t||Pn(e,t,si(t))},Lr.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,Pn(t,r,si(r),n)},Lr.isNaN=function(e){return Xs(e)&&e!=+e},Lr.isNative=function(e){if(vi(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return In(e)},Lr.isNil=function(e){return null==e},Lr.isNull=function(e){return null===e},Lr.isNumber=Xs,Lr.isObject=Zs,Lr.isObjectLike=Js,Lr.isPlainObject=Qs,Lr.isRegExp=eo,Lr.isSafeInteger=function(e){return Gs(e)&&e>=-9007199254740991&&e<=o},Lr.isSet=to,Lr.isString=ro,Lr.isSymbol=no,Lr.isTypedArray=ao,Lr.isUndefined=function(t){return t===e},Lr.isWeakMap=function(e){return Js(e)&&ui(e)==N},Lr.isWeakSet=function(e){return Js(e)&&"[object WeakSet]"==En(e)},Lr.join=function(e,t){return null==e?"":cr.call(e,t)},Lr.kebabCase=Vo,Lr.last=Hi,Lr.lastIndexOf=function(t,r,n){var a=null==t?0:t.length;if(!a)return-1;var i=a;return n!==e&&(i=(i=uo(n))<0?hr(a+i,0):fr(i,a-1)),r==r?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(t,r,i):Rt(t,Ft,i,!0)},Lr.lowerCase=Bo,Lr.lowerFirst=$o,Lr.lt=io,Lr.lte=so,Lr.max=function(t){return t&&t.length?cn(t,Qo,_n):e},Lr.maxBy=function(t,r){return t&&t.length?cn(t,ai(r,2),_n):e},Lr.mean=function(e){return jt(e,Qo)},Lr.meanBy=function(e,t){return jt(e,ai(t,2))},Lr.min=function(t){return t&&t.length?cn(t,Qo,Rn):e},Lr.minBy=function(t,r){return t&&t.length?cn(t,ai(r,2),Rn):e},Lr.stubArray=pd,Lr.stubFalse=cd,Lr.stubObject=function(){return{}},Lr.stubString=function(){return""},Lr.stubTrue=function(){return!0},Lr.multiply=vd,Lr.nth=function(t,r){return t&&t.length?Un(t,uo(r)):e},Lr.noConflict=function(){return ot._===this&&(ot._=je),this},Lr.noop=ad,Lr.now=Ss,Lr.pad=function(e,t,r){e=ho(e);var n=(t=uo(t))?ar(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return Va(Vt(a),r)+e+Va(Ot(a),r)},Lr.padEnd=function(e,t,r){e=ho(e);var n=(t=uo(t))?ar(e):0;return t&&n<t?e+Va(t-n,r):e},Lr.padStart=function(e,t,r){e=ho(e);var n=(t=uo(t))?ar(e):0;return t&&n<t?Va(t-n,r)+e:e},Lr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),yr(ho(e).replace(Q,""),t||0)},Lr.random=function(t,r,n){if(n&&"boolean"!=typeof n&&fi(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=lo(t),r===e?(r=t,t=0):r=lo(r)),t>r){var a=t;t=r,r=a}if(n||t%1||r%1){var i=vr();return fr(t+i*(r-t+nt("1e-"+((i+"").length-1))),r)}return qn(t,r)},Lr.reduce=function(e,t,r){var n=Us(e)?At:Bt,a=arguments.length<3;return n(e,ai(t,4),r,a,ln)},Lr.reduceRight=function(e,t,r){var n=Us(e)?Pt:Bt,a=arguments.length<3;return n(e,ai(t,4),r,a,un)},Lr.repeat=function(t,r,n){return r=(n?fi(t,r,n):r===e)?1:uo(r),Hn(ho(t),r)},Lr.replace=function(){var e=arguments,t=ho(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Lr.result=function(t,r,n){var a=-1,i=(r=fa(r,t)).length;for(i||(i=1,t=e);++a<i;){var s=null==t?e:t[Oi(r[a])];s===e&&(a=i,s=n),t=Ks(s)?s.call(t):s}return t},Lr.round=wd,Lr.runInContext=ee,Lr.sample=function(e){return(Us(e)?Gr:Gn)(e)},Lr.size=function(e){if(null==e)return 0;if(Bs(e))return ro(e)?ar(e):e.length;var t=ui(e);return t==v||t==_?e.size:Dn(e).length},Lr.snakeCase=zo,Lr.some=function(t,r,n){var a=Us(t)?It:ea;return n&&fi(t,r,n)&&(r=e),a(t,ai(r,3))},Lr.sortedIndex=function(e,t){return ta(e,t)},Lr.sortedIndexBy=function(e,t,r){return ra(e,t,ai(r,2))},Lr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ta(e,t);if(n<r&&Ms(e[n],t))return n}return-1},Lr.sortedLastIndex=function(e,t){return ta(e,t,!0)},Lr.sortedLastIndexBy=function(e,t,r){return ra(e,t,ai(r,2),!0)},Lr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ta(e,t,!0)-1;if(Ms(e[r],t))return r}return-1},Lr.startCase=qo,Lr.startsWith=function(e,t,r){return e=ho(e),r=null==r?0:nn(uo(r),0,e.length),t=ia(t),e.slice(r,r+t.length)==t},Lr.subtract=bd,Lr.sum=function(e){return e&&e.length?$t(e,Qo):0},Lr.sumBy=function(e,t){return e&&e.length?$t(e,ai(t,2)):0},Lr.template=function(t,r,n){var a=Lr.templateSettings;n&&fi(t,r,n)&&(r=e),t=ho(t),r=yo({},r,a,Wa);var i,s,o=yo({},r.imports,a.imports,Wa),d=ko(o),l=Kt(o,d),u=0,p=r.interpolate||fe,c="__p += '",m=Ce((r.escape||fe).source+"|"+p.source+"|"+(p===G?oe:fe).source+"|"+(r.evaluate||fe).source+"|$","g"),h="//# sourceURL="+(De.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qe+"]")+"\n";t.replace(m,(function(e,r,n,a,o,d){return n||(n=a),c+=t.slice(u,d).replace(ge,Xt),r&&(i=!0,c+="' +\n__e("+r+") +\n'"),o&&(s=!0,c+="';\n"+o+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=d+e.length,e})),c+="';\n";var f=De.call(r,"variable")&&r.variable;if(f){if(ie.test(f))throw new Se("Invalid `variable` option passed into `_.template`")}else c="with (obj) {\n"+c+"\n}\n";c=(s?c.replace(j,""):c).replace(U,"$1").replace(V,"$1;"),c="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+c+"return __p\n}";var g=Wo((function(){return Ee(d,h+"return "+c).apply(e,l)}));if(g.source=c,Hs(g))throw g;return g},Lr.times=function(e,t){if((e=uo(e))<1||e>o)return[];var r=l,n=fr(e,l);t=ai(t),e-=l;for(var a=zt(n,t);++r<e;)t(r);return a},Lr.toFinite=lo,Lr.toInteger=uo,Lr.toLength=po,Lr.toLower=function(e){return ho(e).toLowerCase()},Lr.toNumber=co,Lr.toSafeInteger=function(e){return e?nn(uo(e),-9007199254740991,o):0===e?e:0},Lr.toString=ho,Lr.toUpper=function(e){return ho(e).toUpperCase()},Lr.trim=function(t,r,n){if((t=ho(t))&&(n||r===e))return qt(t);if(!t||!(r=ia(r)))return t;var a=ir(t),i=ir(r);return ya(a,Wt(a,i),Zt(a,i)+1).join("")},Lr.trimEnd=function(t,r,n){if((t=ho(t))&&(n||r===e))return t.slice(0,sr(t)+1);if(!t||!(r=ia(r)))return t;var a=ir(t);return ya(a,0,Zt(a,ir(r))+1).join("")},Lr.trimStart=function(t,r,n){if((t=ho(t))&&(n||r===e))return t.replace(Q,"");if(!t||!(r=ia(r)))return t;var a=ir(t);return ya(a,Wt(a,ir(r))).join("")},Lr.truncate=function(t,r){var n=30,a="...";if(Zs(r)){var i="separator"in r?r.separator:i;n="length"in r?uo(r.length):n,a="omission"in r?ia(r.omission):a}var s=(t=ho(t)).length;if(Qt(t)){var o=ir(t);s=o.length}if(n>=s)return t;var d=n-ar(a);if(d<1)return a;var l=o?ya(o,0,d).join(""):t.slice(0,d);if(i===e)return l+a;if(o&&(d+=l.length-d),eo(i)){if(t.slice(d).search(i)){var u,p=l;for(i.global||(i=Ce(i.source,ho(de.exec(i))+"g")),i.lastIndex=0;u=i.exec(p);)var c=u.index;l=l.slice(0,c===e?d:c)}}else if(t.indexOf(ia(i),d)!=d){var m=l.lastIndexOf(i);m>-1&&(l=l.slice(0,m))}return l+a},Lr.unescape=function(e){return(e=ho(e))&&z.test(e)?e.replace(B,or):e},Lr.uniqueId=function(e){var t=++Re;return ho(e)+t},Lr.upperCase=Ho,Lr.upperFirst=Ko,Lr.each=ms,Lr.eachRight=hs,Lr.first=Bi,nd(Lr,(md={},yn(Lr,(function(e,t){De.call(Lr.prototype,t)||(md[t]=e)})),md),{chain:!1}),Lr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Lr[e].placeholder=Lr})),St(["drop","take"],(function(t,r){Vr.prototype[t]=function(n){n=n===e?1:hr(uo(n),0);var a=this.__filtered__&&!r?new Vr(this):this.clone();return a.__filtered__?a.__takeCount__=fr(n,a.__takeCount__):a.__views__.push({size:fr(n,l),type:t+(a.__dir__<0?"Right":"")}),a},Vr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),St(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(Qo)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Kn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return kn(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Ps(ai(e)))},Vr.prototype.slice=function(t,r){t=uo(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Vr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=uo(r))<0?n.dropRight(-r):n.take(r-t)),n)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(l)},yn(Vr.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),i=Lr[a?"take"+("last"==r?"Right":""):r],s=a||/^find/.test(r);i&&(Lr.prototype[r]=function(){var r=this.__wrapped__,o=a?[1]:arguments,d=r instanceof Vr,l=o[0],u=d||Us(r),p=function(e){var t=i.apply(Lr,Tt([e],o));return a&&c?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(d=u=!1);var c=this.__chain__,m=!!this.__actions__.length,h=s&&!c,f=d&&!m;if(!s&&u){r=f?r:new Vr(this);var g=t.apply(r,o);return g.__actions__.push({func:ds,args:[p],thisArg:e}),new Ur(g,c)}return h&&f?t.apply(this,o):(g=this.thru(p),h?a?g.value()[0]:g.value():g)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Lr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(Us(a)?a:[],e)}return this[r]((function(r){return t.apply(Us(r)?r:[],e)}))}})),yn(Vr.prototype,(function(e,t){var r=Lr[t];if(r){var n=r.name+"";De.call(kr,n)||(kr[n]=[]),kr[n].push({name:t,func:r})}})),kr[La(e,2).name]=[{name:"wrapper",func:e}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ca(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ca(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ca(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Us(e),n=t<0,a=r?e.length:0,i=function(e,t,r){for(var n=-1,a=r.length;++n<a;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=fr(t,e+s);break;case"takeRight":e=hr(e,t-s)}}return{start:e,end:t}}(0,a,this.__views__),s=i.start,o=i.end,d=o-s,l=n?o:s-1,u=this.__iteratees__,p=u.length,c=0,m=fr(d,this.__takeCount__);if(!r||!n&&a==d&&m==d)return ua(e,this.__actions__);var h=[];e:for(;d--&&c<m;){for(var f=-1,g=e[l+=t];++f<p;){var y=u[f],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue e;break e}}h[c++]=g}return h},Lr.prototype.at=ls,Lr.prototype.chain=function(){return os(this)},Lr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Lr.prototype.next=function(){this.__values__===e&&(this.__values__=oo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Lr.prototype.plant=function(t){for(var r,n=this;n instanceof jr;){var a=Ri(n);a.__index__=0,a.__values__=e,r?i.__wrapped__=a:r=a;var i=a;n=n.__wrapped__}return i.__wrapped__=t,r},Lr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Vr){var r=t;return this.__actions__.length&&(r=new Vr(this)),(r=r.reverse()).__actions__.push({func:ds,args:[Zi],thisArg:e}),new Ur(r,this.__chain__)}return this.thru(Zi)},Lr.prototype.toJSON=Lr.prototype.valueOf=Lr.prototype.value=function(){return ua(this.__wrapped__,this.__actions__)},Lr.prototype.first=Lr.prototype.head,it&&(Lr.prototype[it]=function(){return this}),Lr}();lt?((lt.exports=dr)._=dr,dt._=dr):ot._=dr}.call(Cn);var qs=zs.exports;const Hs=di,Ks=xs,Gs=_s,Ws=Ln,{includes:Zs,isBoolean:Js,isInteger:Ys,isNumber:Xs,isPlainObject:Qs,isString:eo,once:to}=qs,{KeyObject:ro,createSecretKey:no,createPrivateKey:ao}=i,io=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];Ks&&io.splice(3,0,"PS256","PS384","PS512");const so={expiresIn:{isValid:function(e){return Ys(e)||eo(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return Ys(e)||eo(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return eo(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:Zs.bind(null,io),message:'"algorithm" must be a valid string enum value'},header:{isValid:Qs,message:'"header" must be an object'},encoding:{isValid:eo,message:'"encoding" must be a string'},issuer:{isValid:eo,message:'"issuer" must be a string'},subject:{isValid:eo,message:'"subject" must be a string'},jwtid:{isValid:eo,message:'"jwtid" must be a string'},noTimestamp:{isValid:Js,message:'"noTimestamp" must be a boolean'},keyid:{isValid:eo,message:'"keyid" must be a string'},mutatePayload:{isValid:Js,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:Js,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:Js,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},oo={iat:{isValid:Xs,message:'"iat" should be a number of seconds'},exp:{isValid:Xs,message:'"exp" should be a number of seconds'},nbf:{isValid:Xs,message:'"nbf" should be a number of seconds'}};function lo(e,t,r,n){if(!Qs(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach((function(a){const i=e[a];if(i){if(!i.isValid(r[a]))throw new Error(i.message)}else if(!t)throw new Error('"'+a+'" is not allowed in "'+n+'"')}))}const uo={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},po=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];var co=function(e,t,r,n){"function"==typeof r?(n=r,r={}):r=r||{};const a="object"==typeof e&&!Buffer.isBuffer(e),i=Object.assign({alg:r.algorithm||"HS256",typ:a?"JWT":void 0,kid:r.keyid},r.header);function s(e){if(n)return n(e);throw e}if(!t&&"none"!==r.algorithm)return s(new Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof ro))try{t=ao(t)}catch(e){try{t=no("string"==typeof t?Buffer.from(t):t)}catch(e){return s(new Error("secretOrPrivateKey is not valid key material"))}}if(i.alg.startsWith("HS")&&"secret"!==t.type)return s(new Error(`secretOrPrivateKey must be a symmetric key when using ${i.alg}`));if(/^(?:RS|PS|ES)/.test(i.alg)){if("private"!==t.type)return s(new Error(`secretOrPrivateKey must be an asymmetric key when using ${i.alg}`));if(!r.allowInsecureKeySizes&&!i.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return s(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`))}if(void 0===e)return s(new Error("payload is required"));if(a){try{!function(e){lo(oo,!0,e,"payload")}(e)}catch(e){return s(e)}r.mutatePayload||(e=Object.assign({},e))}else{const t=po.filter((function(e){return void 0!==r[e]}));if(t.length>0)return s(new Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return s(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return s(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(e){lo(so,!1,e,"options")}(r)}catch(e){return s(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{Gs(i.alg,t)}catch(e){return s(e)}const o=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:a&&(e.iat=o),void 0!==r.notBefore){try{e.nbf=Hs(r.notBefore,o)}catch(e){return s(e)}if(void 0===e.nbf)return s(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=Hs(r.expiresIn,o)}catch(e){return s(e)}if(void 0===e.exp)return s(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(uo).forEach((function(t){const n=uo[t];if(void 0!==r[t]){if(void 0!==e[n])return s(new Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}}));const d=r.encoding||"utf8";if("function"!=typeof n){let n=Ws.sign({header:i,payload:e,secret:t,encoding:d});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&n.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`);return n}n=n&&to(n),Ws.createSign({header:i,privateKey:t,payload:e,encoding:d}).once("error",n).once("done",(function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&e.length<256)return n(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`));n(null,e)}))};!function(e){e.exports={verify:$s,sign:co,JsonWebTokenError:An,NotBeforeError:On,TokenExpiredError:Mn},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:ri})}(kn),Nn(kn.exports);class mo extends Error{}class ho extends mo{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class fo extends mo{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class go extends mo{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class yo extends mo{}class vo extends mo{constructor(e){super(`Invalid unit ${e}`)}}class wo extends mo{}class bo extends mo{constructor(){super("Zone is an abstract class")}}const So="numeric",Eo="short",_o="long",xo={year:So,month:So,day:So},Co={year:So,month:Eo,day:So},No={year:So,month:Eo,day:So,weekday:Eo},ko={year:So,month:_o,day:So},To={year:So,month:_o,day:So,weekday:_o},Ao={hour:So,minute:So},Po={hour:So,minute:So,second:So},Io={hour:So,minute:So,second:So,timeZoneName:Eo},Oo={hour:So,minute:So,second:So,timeZoneName:_o},Do={hour:So,minute:So,hourCycle:"h23"},Ro={hour:So,minute:So,second:So,hourCycle:"h23"},Mo={hour:So,minute:So,second:So,hourCycle:"h23",timeZoneName:Eo},Lo={hour:So,minute:So,second:So,hourCycle:"h23",timeZoneName:_o},Fo={year:So,month:So,day:So,hour:So,minute:So},jo={year:So,month:So,day:So,hour:So,minute:So,second:So},Uo={year:So,month:Eo,day:So,hour:So,minute:So},Vo={year:So,month:Eo,day:So,hour:So,minute:So,second:So},Bo={year:So,month:Eo,day:So,weekday:Eo,hour:So,minute:So},$o={year:So,month:_o,day:So,hour:So,minute:So,timeZoneName:Eo},zo={year:So,month:_o,day:So,hour:So,minute:So,second:So,timeZoneName:Eo},qo={year:So,month:_o,day:So,weekday:_o,hour:So,minute:So,timeZoneName:_o},Ho={year:So,month:_o,day:So,weekday:_o,hour:So,minute:So,second:So,timeZoneName:_o};class Ko{get type(){throw new bo}get name(){throw new bo}get ianaName(){return this.name}get isUniversal(){throw new bo}offsetName(e,t){throw new bo}formatOffset(e,t){throw new bo}offset(e){throw new bo}equals(e){throw new bo}get isValid(){throw new bo}}let Go=null;class Wo extends Ko{static get instance(){return null===Go&&(Go=new Wo),Go}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Vd(e,t,r)}formatOffset(e,t){return qd(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Zo={};const Jo={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Yo={};class Xo extends Ko{static create(e){return Yo[e]||(Yo[e]=new Xo(e)),Yo[e]}static resetCache(){Yo={},Zo={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Xo.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Vd(e,t,r,this.name)}formatOffset(e,t){return qd(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,Zo[n]||(Zo[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Zo[n]);var n;let[a,i,s,o,d,l,u]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:a}=r[e],i=Jo[t];"era"===t?n[i]=a:Ed(i)||(n[i]=parseInt(a,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,s,o,d,l,u]=n;return[s,a,i,o,d,l,u]}(r,t);"BC"===o&&(a=1-Math.abs(a));let p=+t;const c=p%1e3;return p-=c>=0?c:1e3+c,(Fd({year:a,month:i,day:s,hour:24===d?0:d,minute:l,second:u,millisecond:0})-p)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Qo={},ed={};function td(e,t={}){const r=JSON.stringify([e,t]);let n=ed[r];return n||(n=new Intl.DateTimeFormat(e,t),ed[r]=n),n}let rd={},nd={},ad=null;function id(e,t,r,n,a){const i=e.listingMode(r);return"error"===i?null:"en"===i?n(t):a(t)}class sd{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:a,...i}=r;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=rd[r];return n||(n=new Intl.NumberFormat(e,t),rd[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ad(this.floor?Math.floor(e):Dd(e,3),this.padTo)}}class od{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Xo.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const a={...this.opts};a.timeZone=a.timeZone||n,this.dtf=td(t,a)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class dd{constructor(e,t,r){this.opts={style:"long",...r},!t&&Cd()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,a=JSON.stringify([e,n]);let i=nd[a];return i||(i=new Intl.RelativeTimeFormat(e,t),nd[a]=i),i}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${a[e][0]}`;case-1:return r?"yesterday":`last ${a[e][0]}`;case 0:return r?"today":`this ${a[e][0]}`}}const s=Object.is(t,-0)||t<0,o=Math.abs(t),d=1===o,l=a[e],u=n?d?l[1]:l[2]||l[1]:d?a[e][0]:e;return s?`${o} ${u} ago`:`in ${o} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class ld{static fromOpts(e){return ld.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,r,n=!1){const a=e||Sd.defaultLocale,i=a||(n?"en-US":ad||(ad=(new Intl.DateTimeFormat).resolvedOptions().locale,ad)),s=t||Sd.defaultNumberingSystem,o=r||Sd.defaultOutputCalendar;return new ld(i,s,o,a)}static resetCache(){ad=null,ed={},rd={},nd={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r}={}){return ld.create(e,t,r)}constructor(e,t,r,n){const[a,i,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=td(e).resolvedOptions(),n=e}catch(a){const i=e.substring(0,r);t=td(i).resolvedOptions(),n=i}const{numberingSystem:a,calendar:i}=t;return[n,a,i]}}(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=r||s||null,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?ld.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,r=!0){return id(this,e,r,Zd,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=sp.utc(2016,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1,r=!0){return id(this,e,r,Qd,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=sp.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(e=!0){return id(this,void 0,e,(()=>el),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[sp.utc(2016,11,13,9),sp.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return id(this,e,t,al,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[sp.utc(-40,1,1),sp.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new sd(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new od(e,this.intl,t)}relFormatter(e={}){return new dd(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=Qo[r];return n||(n=new Intl.ListFormat(e,t),Qo[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ud=null;class pd extends Ko{static get utcInstance(){return null===ud&&(ud=new pd(0)),ud}static instance(e){return 0===e?pd.utcInstance:new pd(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new pd(Bd(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${qd(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${qd(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return qd(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class cd extends Ko{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function md(e,t){if(Ed(e)||null===e)return t;if(e instanceof Ko)return e;if("string"==typeof e){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?Wo.instance:"utc"===r||"gmt"===r?pd.utcInstance:pd.parseSpecifier(r)||Xo.create(e)}return _d(e)?pd.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new cd(e)}let hd,fd=()=>Date.now(),gd="system",yd=null,vd=null,wd=null,bd=60;class Sd{static get now(){return fd}static set now(e){fd=e}static set defaultZone(e){gd=e}static get defaultZone(){return md(gd,Wo.instance)}static get defaultLocale(){return yd}static set defaultLocale(e){yd=e}static get defaultNumberingSystem(){return vd}static set defaultNumberingSystem(e){vd=e}static get defaultOutputCalendar(){return wd}static set defaultOutputCalendar(e){wd=e}static get twoDigitCutoffYear(){return bd}static set twoDigitCutoffYear(e){bd=e%100}static get throwOnInvalid(){return hd}static set throwOnInvalid(e){hd=e}static resetCaches(){ld.resetCache(),Xo.resetCache()}}function Ed(e){return void 0===e}function _d(e){return"number"==typeof e}function xd(e){return"number"==typeof e&&e%1==0}function Cd(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Nd(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const a=[t(n),n];return e&&r(e[0],a[0])===e[0]?e:a}),null)[1]}function kd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Td(e,t,r){return xd(e)&&e>=t&&e<=r}function Ad(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function Pd(e){return Ed(e)||null===e||""===e?void 0:parseInt(e,10)}function Id(e){return Ed(e)||null===e||""===e?void 0:parseFloat(e)}function Od(e){if(!Ed(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Dd(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Rd(e){return e%4==0&&(e%100!=0||e%400==0)}function Md(e){return Rd(e)?366:365}function Ld(e,t){const r=function(e,t){return e-12*Math.floor(e/12)}(t-1)+1;return 2===r?Rd(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Fd(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function jd(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function Ud(e){return e>99?e:e>Sd.twoDigitCutoffYear?1900+e:2e3+e}function Vd(e,t,r,n=null){const a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(r,s).formatToParts(a).find((e=>"timezonename"===e.type.toLowerCase()));return o?o.value:null}function Bd(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function $d(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new wo(`Invalid unit value ${e}`);return t}function zd(e,t){const r={};for(const n in e)if(kd(e,n)){const a=e[n];if(null==a)continue;r[t(n)]=$d(a)}return r}function qd(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${Ad(r,2)}:${Ad(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${Ad(r,2)}${Ad(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Hd(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,r)=>(t[r]=e[r],t)),{})}(e)}const Kd=["January","February","March","April","May","June","July","August","September","October","November","December"],Gd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wd=["J","F","M","A","M","J","J","A","S","O","N","D"];function Zd(e){switch(e){case"narrow":return[...Wd];case"short":return[...Gd];case"long":return[...Kd];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Jd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Yd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Xd=["M","T","W","T","F","S","S"];function Qd(e){switch(e){case"narrow":return[...Xd];case"short":return[...Yd];case"long":return[...Jd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const el=["AM","PM"],tl=["Before Christ","Anno Domini"],rl=["BC","AD"],nl=["B","A"];function al(e){switch(e){case"narrow":return[...nl];case"short":return[...rl];case"long":return[...tl];default:return null}}function il(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const sl={D:xo,DD:Co,DDD:ko,DDDD:To,t:Ao,tt:Po,ttt:Io,tttt:Oo,T:Do,TT:Ro,TTT:Mo,TTTT:Lo,f:Fo,ff:Uo,fff:$o,ffff:qo,F:jo,FF:Vo,FFF:zo,FFFF:Ho};class ol{static create(e,t={}){return new ol(e,t)}static parseFormat(e){let t=null,r="",n=!1;const a=[];for(let i=0;i<e.length;i++){const s=e.charAt(i);"'"===s?(r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,t=s)}return r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(e){return sl[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ad(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=(t,r)=>this.loc.extract(e,t,r),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",s=(t,n)=>r?function(e,t){return Zd(t)[e.month-1]}(e,t):a(n?{month:t}:{month:t,day:"numeric"},"month"),o=(t,n)=>r?function(e,t){return Qd(t)[e.weekday-1]}(e,t):a(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),d=t=>{const r=ol.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},l=t=>r?function(e,t){return al(t)[e.year<0?0:1]}(e,t):a({era:t},"era");return il(ol.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r?function(e){return el[e.hour<12?0:1]}(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?a({day:"numeric"},"day"):this.num(e.day);case"dd":return n?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return n?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?a({month:"numeric"},"month"):this.num(e.month);case"MM":return n?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return n?a({year:"numeric"},"year"):this.num(e.year);case"yy":return n?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=ol.parseFormat(t),a=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return il(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(e.shiftTo(...a.map(r).filter((e=>e)))))}}class dl{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ll=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ul(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function pl(...e){return t=>e.reduce((([e,r,n],a)=>{const[i,s,o]=a(t,n);return[{...e,...i},s||r,o]}),[{},null,1]).slice(0,2)}function cl(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function ml(...e){return(t,r)=>{const n={};let a;for(a=0;a<e.length;a++)n[e[a]]=Pd(t[r+a]);return[n,null,r+a]}}const hl=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,fl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gl=RegExp(`${fl.source}(?:${hl.source}?(?:\\[(${ll.source})\\])?)?`),yl=RegExp(`(?:T${gl.source})?`),vl=ml("weekYear","weekNumber","weekDay"),wl=ml("year","ordinal"),bl=RegExp(`${fl.source} ?(?:${hl.source}|(${ll.source}))?`),Sl=RegExp(`(?: ${bl.source})?`);function El(e,t,r){const n=e[t];return Ed(n)?r:Pd(n)}function _l(e,t){return[{hours:El(e,t,0),minutes:El(e,t+1,0),seconds:El(e,t+2,0),milliseconds:Od(e[t+3])},null,t+4]}function xl(e,t){const r=!e[t]&&!e[t+1],n=Bd(e[t+1],e[t+2]);return[{},r?null:pd.instance(n),t+3]}function Cl(e,t){return[{},e[t]?Xo.create(e[t]):null,t+1]}const Nl=RegExp(`^T?${fl.source}$`),kl=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Tl(e){const[t,r,n,a,i,s,o,d,l]=e,u="-"===t[0],p=d&&"-"===d[0],c=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:c(Id(r)),months:c(Id(n)),weeks:c(Id(a)),days:c(Id(i)),hours:c(Id(s)),minutes:c(Id(o)),seconds:c(Id(d),"-0"===d),milliseconds:c(Od(l),p)}]}const Al={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pl(e,t,r,n,a,i,s){const o={year:2===t.length?Ud(Pd(t)):Pd(t),month:Gd.indexOf(r)+1,day:Pd(n),hour:Pd(a),minute:Pd(i)};return s&&(o.second=Pd(s)),e&&(o.weekday=e.length>3?Jd.indexOf(e)+1:Yd.indexOf(e)+1),o}const Il=/^(?:(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\d)(\d\d)))$/;function Ol(e){const[,t,r,n,a,i,s,o,d,l,u,p]=e,c=Pl(t,a,n,r,i,s,o);let m;return m=d?Al[d]:l?0:Bd(u,p),[c,new pd(m)]}const Dl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Rl=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ml=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ll(e){const[,t,r,n,a,i,s,o]=e;return[Pl(t,a,n,r,i,s,o),pd.utcInstance]}function Fl(e){const[,t,r,n,a,i,s,o]=e;return[Pl(t,o,r,n,a,i,s),pd.utcInstance]}const jl=ul(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yl),Ul=ul(/(\d{4})-?W(\d\d)(?:-?(\d))?/,yl),Vl=ul(/(\d{4})-?(\d{3})/,yl),Bl=ul(gl),$l=pl((function(e,t){return[{year:El(e,t),month:El(e,t+1,1),day:El(e,t+2,1)},null,t+3]}),_l,xl,Cl),zl=pl(vl,_l,xl,Cl),ql=pl(wl,_l,xl,Cl),Hl=pl(_l,xl,Cl),Kl=pl(_l),Gl=ul(/(\d{4})-(\d\d)-(\d\d)/,Sl),Wl=ul(bl),Zl=pl(_l,xl,Cl),Jl={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Yl={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Jl},Xl={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Jl},Ql=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],eu=Ql.slice(0).reverse();function tu(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new nu(n)}function ru(e,t,r,n,a){const i=e[a][r],s=t[r]/i,o=Math.sign(s)!==Math.sign(n[a])&&0!==n[a]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[a]+=o,t[r]-=o*i}class nu{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?Xl:Yl;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||ld.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return nu.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new wo("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new nu({values:zd(e,nu.normalizeUnit),loc:ld.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(_d(e))return nu.fromMillis(e);if(nu.isDuration(e))return e;if("object"==typeof e)return nu.fromObject(e);throw new wo(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return cl(e,[kl,Tl])}(e);return r?nu.fromObject(r,t):nu.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return cl(e,[Nl,Kl])}(e);return r?nu.fromObject(r,t):nu.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Duration is invalid");const r=e instanceof dl?e:new dl(e,t);if(Sd.throwOnInvalid)throw new go(r);return new nu({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new vo(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ol.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Ql.map((t=>{const r=this.values[t];return Ed(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Dd(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));let a=r.toFormat(n);return e.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=nu.fromDurationLike(e),r={};for(const e of Ql)(kd(t.values,e)||kd(this.values,e))&&(r[e]=t.get(e)+this.get(e));return tu(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=nu.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=$d(e(this.values[r],r));return tu(this,{values:t},!0)}get(e){return this[nu.normalizeUnit(e)]}set(e){return this.isValid?tu(this,{values:{...this.values,...zd(e,nu.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return tu(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){eu.reduce(((r,n)=>Ed(t[n])?r:(r&&ru(e,t,r,t,n),n)),null)}(this.matrix,e),tu(this,{values:e},!0)}rescale(){return this.isValid?tu(this,{values:function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>nu.normalizeUnit(e)));const t={},r={},n=this.toObject();let a;for(const i of Ql)if(e.indexOf(i)>=0){a=i;let e=0;for(const t in r)e+=this.matrix[t][i]*r[t],r[t]=0;_d(n[i])&&(e+=n[i]);const s=Math.trunc(e);t[i]=s,r[i]=(1e3*e-1e3*s)/1e3;for(const e in n)Ql.indexOf(e)>Ql.indexOf(i)&&ru(this.matrix,n,e,t,i)}else _d(n[i])&&(r[i]=n[i]);for(const e in r)0!==r[e]&&(t[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return tu(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return tu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of Ql)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const au="Invalid Interval";class iu{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Interval is invalid");const r=e instanceof dl?e:new dl(e,t);if(Sd.throwOnInvalid)throw new fo(r);return new iu({invalid:r})}static fromDateTimes(e,t){const r=op(e),n=op(t),a=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?iu.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:iu.invalid("missing or invalid end"):iu.invalid("missing or invalid start")}(r,n);return null==a?new iu({start:r,end:n}):a}static after(e,t){const r=nu.fromDurationLike(t),n=op(e);return iu.fromDateTimes(n,n.plus(r))}static before(e,t){const r=nu.fromDurationLike(t),n=op(e);return iu.fromDateTimes(n.minus(r),n)}static fromISO(e,t){const[r,n]=(e||"").split("/",2);if(r&&n){let e,a,i,s;try{e=sp.fromISO(r,t),a=e.isValid}catch(n){a=!1}try{i=sp.fromISO(n,t),s=i.isValid}catch(n){s=!1}if(a&&s)return iu.fromDateTimes(e,i);if(a){const r=nu.fromISO(n,t);if(r.isValid)return iu.after(e,r)}else if(s){const e=nu.fromISO(r,t);if(e.isValid)return iu.before(i,e)}}return iu.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?iu.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(op).filter((e=>this.contains(e))).sort(),r=[];let{s:n}=this,a=0;for(;n<this.e;){const e=t[a]||this.e,i=+e>+this.e?this.e:e;r.push(iu.fromDateTimes(n,i)),n=i,a+=1}return r}splitBy(e){const t=nu.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,a=1;const i=[];for(;n<this.e;){const e=this.start.plus(t.mapUnits((e=>e*a)));r=+e>+this.e?this.e:e,i.push(iu.fromDateTimes(n,r)),n=r,a+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:iu.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return iu.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],a=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),i=Array.prototype.concat(...a).sort(((e,t)=>e.time-t.time));for(const e of i)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(iu.fromDateTimes(t,e.time)),t=null);return iu.merge(n)}difference(...e){return iu.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:au}toLocaleString(e=xo,t={}){return this.isValid?ol.create(this.s.loc.clone(t),e).formatInterval(this):au}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:au}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:au}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:au}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:au}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):nu.invalid(this.invalidReason)}mapEndpoints(e){return iu.fromDateTimes(e(this.s),e(this.e))}}class su{static hasDST(e=Sd.defaultZone){const t=sp.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Xo.isValidZone(e)}static normalizeZone(e){return md(e,Sd.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:a="gregory"}={}){return(n||ld.create(t,r,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:a="gregory"}={}){return(n||ld.create(t,r,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ld.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ld.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ld.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ld.create(t,null,"gregory").eras(e)}static features(){return{relative:Cd()}}}function ou(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(nu.fromMillis(n).as("days"))}const du={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},lu={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},uu=du.hanidec.replace(/[\[|\]]/g,"").split("");function pu({numberingSystem:e},t=""){return new RegExp(`${du[e||"latn"]}${t}`)}function cu(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(-1!==e[r].search(du.hanidec))t+=uu.indexOf(e[r]);else for(const e in lu){const[r,a]=lu[e];n>=r&&n<=a&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const mu=`[ ${String.fromCharCode(160)}]`,hu=new RegExp(mu,"g");function fu(e){return e.replace(/\./g,"\\.?").replace(hu,mu)}function gu(e){return e.replace(/\./g,"").replace(hu," ").toLowerCase()}function yu(e,t){return null===e?null:{regex:RegExp(e.map(fu).join("|")),deser:([r])=>e.findIndex((e=>gu(r)===gu(e)))+t}}function vu(e,t){return{regex:e,deser:([,e,t])=>Bd(e,t),groups:t}}function wu(e){return{regex:e,deser:([e])=>e}}const bu={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Su=null;function Eu(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=xu(ol.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function _u(e,t,r){const n=Eu(ol.parseFormat(r),e),a=n.map((t=>function(e,t){const r=pu(t),n=pu(t,"{2}"),a=pu(t,"{3}"),i=pu(t,"{4}"),s=pu(t,"{6}"),o=pu(t,"{1,2}"),d=pu(t,"{1,3}"),l=pu(t,"{1,6}"),u=pu(t,"{1,9}"),p=pu(t,"{2,4}"),c=pu(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},h=(h=>{if(e.literal)return m(h);switch(h.val){case"G":return yu(t.eras("short",!1),0);case"GG":return yu(t.eras("long",!1),0);case"y":return cu(l);case"yy":case"kk":return cu(p,Ud);case"yyyy":case"kkkk":return cu(i);case"yyyyy":return cu(c);case"yyyyyy":return cu(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return cu(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return cu(n);case"MMM":return yu(t.months("short",!0,!1),1);case"MMMM":return yu(t.months("long",!0,!1),1);case"LLL":return yu(t.months("short",!1,!1),1);case"LLLL":return yu(t.months("long",!1,!1),1);case"o":case"S":return cu(d);case"ooo":case"SSS":return cu(a);case"u":return wu(u);case"uu":return wu(o);case"uuu":case"E":case"c":return cu(r);case"a":return yu(t.meridiems(),0);case"EEE":return yu(t.weekdays("short",!1,!1),1);case"EEEE":return yu(t.weekdays("long",!1,!1),1);case"ccc":return yu(t.weekdays("short",!0,!1),1);case"cccc":return yu(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return vu(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return vu(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return wu(/[a-z_+-/]{1,256}?/i);case" ":return wu(/[^\S\n\r]/);default:return m(h)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=e,h}(t,e))),i=a.find((e=>e.invalidReason));if(i)return{input:t,tokens:n,invalidReason:i.invalidReason};{const[e,r]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(a),i=RegExp(e,"i"),[s,o]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const a in r)if(kd(r,a)){const i=r[a],s=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(n.slice(t,t+s))),t+=s}return[n,e]}return[n,{}]}(t,i,r),[d,l,u]=o?function(e){let t,r=null;return Ed(e.z)||(r=Xo.create(e.z)),Ed(e.Z)||(r||(r=new pd(e.Z)),t=e.Z),Ed(e.q)||(e.M=3*(e.q-1)+1),Ed(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Ed(e.u)||(e.S=Od(e.u)),[Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{}),r,t]}(o):[null,null,void 0];if(kd(o,"a")&&kd(o,"H"))throw new yo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:i,rawMatches:s,matches:o,result:d,zone:l,specificOffset:u}}}function xu(e,t){return e?ol.create(t,e).formatDateTimeParts((Su||(Su=sp.fromMillis(1555555555555)),Su)).map((t=>function(e,t){const{type:r,value:n}=e;if("literal"===r){const e=/^\s+$/.test(n);return{literal:!e,val:e?" ":n}}const a=t[r];let i=bu[r];if("object"==typeof i&&(i=i[a]),i)return{literal:!1,val:i}}(t,e))):null}const Cu=[0,31,59,90,120,151,181,212,243,273,304,334],Nu=[0,31,60,91,121,152,182,213,244,274,305,335];function ku(e,t){return new dl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Tu(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return 0===a?7:a}function Au(e,t,r){return r+(Rd(e)?Nu:Cu)[t-1]}function Pu(e,t){const r=Rd(e)?Nu:Cu,n=r.findIndex((e=>e<t));return{month:n+1,day:t-r[n]}}function Iu(e){const{year:t,month:r,day:n}=e,a=Au(t,r,n),i=Tu(t,r,n);let s,o=Math.floor((a-i+10)/7);return o<1?(s=t-1,o=jd(s)):o>jd(t)?(s=t+1,o=1):s=t,{weekYear:s,weekNumber:o,weekday:i,...Hd(e)}}function Ou(e){const{weekYear:t,weekNumber:r,weekday:n}=e,a=Tu(t,1,4),i=Md(t);let s,o=7*r+n-a-3;o<1?(s=t-1,o+=Md(s)):o>i?(s=t+1,o-=Md(t)):s=t;const{month:d,day:l}=Pu(s,o);return{year:s,month:d,day:l,...Hd(e)}}function Du(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:Au(t,r,n),...Hd(e)}}function Ru(e){const{year:t,ordinal:r}=e,{month:n,day:a}=Pu(t,r);return{year:t,month:n,day:a,...Hd(e)}}function Mu(e){const t=xd(e.year),r=Td(e.month,1,12),n=Td(e.day,1,Ld(e.year,e.month));return t?r?!n&&ku("day",e.day):ku("month",e.month):ku("year",e.year)}function Lu(e){const{hour:t,minute:r,second:n,millisecond:a}=e,i=Td(t,0,23)||24===t&&0===r&&0===n&&0===a,s=Td(r,0,59),o=Td(n,0,59),d=Td(a,0,999);return i?s?o?!d&&ku("millisecond",a):ku("second",n):ku("minute",r):ku("hour",t)}const Fu="Invalid DateTime",ju=864e13;function Uu(e){return new dl("unsupported zone",`the zone "${e.name}" is not supported`)}function Vu(e){return null===e.weekData&&(e.weekData=Iu(e.c)),e.weekData}function Bu(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new sp({...r,...t,old:r})}function $u(e,t,r){let n=e-60*t*1e3;const a=r.offset(n);if(t===a)return[n,t];n-=60*(a-t)*1e3;const i=r.offset(n);return a===i?[n,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}function zu(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function qu(e,t,r){return $u(Fd(e),t,r)}function Hu(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:n,month:a,day:Math.min(e.c.day,Ld(n,a))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=nu.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Fd(i);let[d,l]=$u(o,r,e.zone);return 0!==s&&(d+=s,l=e.zone.offset(d)),{ts:d,o:l}}function Ku(e,t,r,n,a,i){const{setZone:s,zone:o}=r;if(e&&0!==Object.keys(e).length||t){const n=t||o,a=sp.fromObject(e,{...r,zone:n,specificOffset:i});return s?a:a.setZone(o)}return sp.invalid(new dl("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Gu(e,t,r=!0){return e.isValid?ol.create(ld.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Wu(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=Ad(e.c.year,r?6:4),t?(n+="-",n+=Ad(e.c.month),n+="-",n+=Ad(e.c.day)):(n+=Ad(e.c.month),n+=Ad(e.c.day)),n}function Zu(e,t,r,n,a,i){let s=Ad(e.c.hour);return t?(s+=":",s+=Ad(e.c.minute),0===e.c.second&&r||(s+=":")):s+=Ad(e.c.minute),0===e.c.second&&r||(s+=Ad(e.c.second),0===e.c.millisecond&&n||(s+=".",s+=Ad(e.c.millisecond,3))),a&&(e.isOffsetFixed&&0===e.offset&&!i?s+="Z":e.o<0?(s+="-",s+=Ad(Math.trunc(-e.o/60)),s+=":",s+=Ad(Math.trunc(-e.o%60))):(s+="+",s+=Ad(Math.trunc(e.o/60)),s+=":",s+=Ad(Math.trunc(e.o%60)))),i&&(s+="["+e.zone.ianaName+"]"),s}const Ju={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Yu={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xu={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qu=["year","month","day","hour","minute","second","millisecond"],ep=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],tp=["year","ordinal","hour","minute","second","millisecond"];function rp(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new vo(e);return t}function np(e,t){const r=md(t.zone,Sd.defaultZone),n=ld.fromObject(t),a=Sd.now();let i,s;if(Ed(e.year))i=a;else{for(const t of Qu)Ed(e[t])&&(e[t]=Ju[t]);const t=Mu(e)||Lu(e);if(t)return sp.invalid(t);const n=r.offset(a);[i,s]=qu(e,n,r)}return new sp({ts:i,zone:r,loc:n,o:s})}function ap(e,t,r){const n=!!Ed(r.round)||r.round,a=(e,a)=>(e=Dd(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,a)),i=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return a(i(r.unit),r.unit);for(const e of r.units){const t=i(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,r.units[r.units.length-1])}function ip(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class sp{constructor(e){const t=e.zone||Sd.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new dl("invalid input"):null)||(t.isValid?null:Uu(t));this.ts=Ed(e.ts)?Sd.now():e.ts;let n=null,a=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,a]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=zu(this.ts,e),r=Number.isNaN(n.year)?new dl("invalid input"):null,n=r?null:n,a=r?null:e}this._zone=t,this.loc=e.loc||ld.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=a,this.isLuxonDateTime=!0}static now(){return new sp({})}static local(){const[e,t]=ip(arguments),[r,n,a,i,s,o,d]=t;return np({year:r,month:n,day:a,hour:i,minute:s,second:o,millisecond:d},e)}static utc(){const[e,t]=ip(arguments),[r,n,a,i,s,o,d]=t;return e.zone=pd.utcInstance,np({year:r,month:n,day:a,hour:i,minute:s,second:o,millisecond:d},e)}static fromJSDate(e,t={}){const r=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(r))return sp.invalid("invalid input");const a=md(t.zone,Sd.defaultZone);return a.isValid?new sp({ts:r,zone:a,loc:ld.fromObject(t)}):sp.invalid(Uu(a))}static fromMillis(e,t={}){if(_d(e))return e<-ju||e>ju?sp.invalid("Timestamp out of range"):new sp({ts:e,zone:md(t.zone,Sd.defaultZone),loc:ld.fromObject(t)});throw new wo(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(_d(e))return new sp({ts:1e3*e,zone:md(t.zone,Sd.defaultZone),loc:ld.fromObject(t)});throw new wo("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=md(t.zone,Sd.defaultZone);if(!r.isValid)return sp.invalid(Uu(r));const n=Sd.now(),a=Ed(t.specificOffset)?r.offset(n):t.specificOffset,i=zd(e,rp),s=!Ed(i.ordinal),o=!Ed(i.year),d=!Ed(i.month)||!Ed(i.day),l=o||d,u=i.weekYear||i.weekNumber,p=ld.fromObject(t);if((l||s)&&u)throw new yo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new yo("Can't mix ordinal dates with month/day");const c=u||i.weekday&&!l;let m,h,f=zu(n,a);c?(m=ep,h=Yu,f=Iu(f)):s?(m=tp,h=Xu,f=Du(f)):(m=Qu,h=Ju);let g=!1;for(const e of m)Ed(i[e])?i[e]=g?h[e]:f[e]:g=!0;const y=c?function(e){const t=xd(e.weekYear),r=Td(e.weekNumber,1,jd(e.weekYear)),n=Td(e.weekday,1,7);return t?r?!n&&ku("weekday",e.weekday):ku("week",e.week):ku("weekYear",e.weekYear)}(i):s?function(e){const t=xd(e.year),r=Td(e.ordinal,1,Md(e.year));return t?!r&&ku("ordinal",e.ordinal):ku("year",e.year)}(i):Mu(i),v=y||Lu(i);if(v)return sp.invalid(v);const w=c?Ou(i):s?Ru(i):i,[b,S]=qu(w,a,r),E=new sp({ts:b,zone:r,o:S,loc:p});return i.weekday&&l&&e.weekday!==E.weekday?sp.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E}static fromISO(e,t={}){const[r,n]=function(e){return cl(e,[jl,$l],[Ul,zl],[Vl,ql],[Bl,Hl])}(e);return Ku(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return cl(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Il,Ol])}(e);return Ku(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return cl(e,[Dl,Ll],[Rl,Ll],[Ml,Fl])}(e);return Ku(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(Ed(e)||Ed(t))throw new wo("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:a=null}=r,i=ld.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0}),[s,o,d,l]=function(e,t,r){const{result:n,zone:a,specificOffset:i,invalidReason:s}=_u(e,t,r);return[n,a,i,s]}(i,e,t);return l?sp.invalid(l):Ku(s,o,r,`format ${t}`,e,d)}static fromString(e,t,r={}){return sp.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return cl(e,[Gl,$l],[Wl,Zl])}(e);return Ku(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the DateTime is invalid");const r=e instanceof dl?e:new dl(e,t);if(Sd.throwOnInvalid)throw new ho(r);return new sp({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=xu(e,ld.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Eu(ol.parseFormat(e),ld.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vu(this).weekYear:NaN}get weekNumber(){return this.isValid?Vu(this).weekNumber:NaN}get weekday(){return this.isValid?Vu(this).weekday:NaN}get ordinal(){return this.isValid?Du(this.c).ordinal:NaN}get monthShort(){return this.isValid?su.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?su.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?su.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?su.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return Rd(this.year)}get daysInMonth(){return Ld(this.year,this.month)}get daysInYear(){return this.isValid?Md(this.year):NaN}get weeksInWeekYear(){return this.isValid?jd(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=ol.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(pd.instance(e),t)}toLocal(){return this.setZone(Sd.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=md(e,Sd.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=qu(r,t,e)}return Bu(this,{ts:n,zone:e})}return sp.invalid(Uu(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return Bu(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=zd(e,rp),r=!Ed(t.weekYear)||!Ed(t.weekNumber)||!Ed(t.weekday),n=!Ed(t.ordinal),a=!Ed(t.year),i=!Ed(t.month)||!Ed(t.day),s=a||i,o=t.weekYear||t.weekNumber;if((s||n)&&o)throw new yo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&n)throw new yo("Can't mix ordinal dates with month/day");let d;r?d=Ou({...Iu(this.c),...t}):Ed(t.ordinal)?(d={...this.toObject(),...t},Ed(t.day)&&(d.day=Math.min(Ld(d.year,d.month),d.day))):d=Ru({...Du(this.c),...t});const[l,u]=qu(d,this.o,this.zone);return Bu(this,{ts:l,o:u})}plus(e){return this.isValid?Bu(this,Hu(this,nu.fromDurationLike(e))):this}minus(e){return this.isValid?Bu(this,Hu(this,nu.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;const t={},r=nu.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?ol.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Fu}toLocaleString(e=xo,t={}){return this.isValid?ol.create(this.loc.clone(t),e).formatDateTime(this):Fu}toLocaleParts(e={}){return this.isValid?ol.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const i="extended"===e;let s=Wu(this,i);return s+="T",s+=Zu(this,i,t,r,n,a),s}toISODate({format:e="extended"}={}){return this.isValid?Wu(this,"extended"===e):null}toISOWeekDate(){return Gu(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:a=!1,format:i="extended"}={}){return this.isValid?(n?"T":"")+Zu(this,"extended"===i,t,e,r,a):null}toRFC2822(){return Gu(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Gu(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Wu(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),Gu(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Fu}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return nu.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=(o=t,Array.isArray(o)?o:[o]).map(nu.normalizeUnit),i=e.valueOf()>this.valueOf(),s=function(e,t,r,n){let[a,i,s,o]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=ou(e,t);return(r-r%7)/7}],["days",ou]],a={},i=e;let s,o;for(const[d,l]of n)r.indexOf(d)>=0&&(s=d,a[d]=l(e,t),o=i.plus(a),o>t?(a[d]--,e=i.plus(a)):e=o);return[e,a,o,s]}(e,t,r);const d=t-a,l=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(s<t&&(s=a.plus({[o]:1})),s!==a&&(i[o]=(i[o]||0)+d/(s-a)));const u=nu.fromObject(i,n);return l.length>0?nu.fromMillis(d,n).shiftTo(...l).plus(u):u}(i?this:e,i?e:this,a,n);var o;return i?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(sp.now(),e,t)}until(e){return this.isValid?iu.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||sp.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(n=e.unit,a=void 0),ap(t,this.plus(r),{...e,numeric:"always",units:n,unit:a})}toRelativeCalendar(e={}){return this.isValid?ap(e.base||sp.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(sp.isDateTime))throw new wo("min requires all arguments be DateTimes");return Nd(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(sp.isDateTime))throw new wo("max requires all arguments be DateTimes");return Nd(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:a=null}=r;return _u(ld.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return sp.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return xo}static get DATE_MED(){return Co}static get DATE_MED_WITH_WEEKDAY(){return No}static get DATE_FULL(){return ko}static get DATE_HUGE(){return To}static get TIME_SIMPLE(){return Ao}static get TIME_WITH_SECONDS(){return Po}static get TIME_WITH_SHORT_OFFSET(){return Io}static get TIME_WITH_LONG_OFFSET(){return Oo}static get TIME_24_SIMPLE(){return Do}static get TIME_24_WITH_SECONDS(){return Ro}static get TIME_24_WITH_SHORT_OFFSET(){return Mo}static get TIME_24_WITH_LONG_OFFSET(){return Lo}static get DATETIME_SHORT(){return Fo}static get DATETIME_SHORT_WITH_SECONDS(){return jo}static get DATETIME_MED(){return Uo}static get DATETIME_MED_WITH_SECONDS(){return Vo}static get DATETIME_MED_WITH_WEEKDAY(){return Bo}static get DATETIME_FULL(){return $o}static get DATETIME_FULL_WITH_SECONDS(){return zo}static get DATETIME_HUGE(){return qo}static get DATETIME_HUGE_WITH_SECONDS(){return Ho}}function op(e){if(sp.isDateTime(e))return e;if(e&&e.valueOf&&_d(e.valueOf()))return sp.fromJSDate(e);if(e&&"object"==typeof e)return sp.fromObject(e);throw new wo(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class dp{static formatMsDuration(e,t=!1){const r=Math.floor(e%1e3),n=Math.floor(e/1e3)%60,a=Math.floor(e/6e4)%60,i=Math.floor(e/36e5)%24,s=Math.floor(e/864e5),o=xn.leadingZeros;let d=o(i,2)+"h"+o(a,2)+"m";return d+=t?o(n,2)+"."+o(r,3)+"s":o(n,2)+"s",s>0&&(d=s+"d"+d),d}static colonFormatMsDuration(e,t=!1){const r=e%1e3,n=Math.floor(e/1e3)%60,a=Math.floor(e/6e4)%60,i=Math.floor(e/36e5),s=xn.leadingZeros;let o=s(i,2)+":"+s(a,2)+":";return o+=t?s(n,2)+"."+s(r,3):s(n,2),o}static daysBetween(e,t){return sp.fromJSDate(e).diff(sp.fromJSDate(t)).days}static createSteps(e,t,r,n,a){let i=sp.fromMillis(e).setZone(r);const s=sp.fromMillis(t),o=[];for(;i<s;)o.push(i.toFormat(n)),i=i.plus(a);return o}}class lp{static safeStringifyErr(e,t=!0){let r="ERR WAS NULL";if(e)if(e.message)r=e.message;else try{r=JSON.stringify(e)}catch(t){_n.error("Failed to json stringify"),r=String(e)}return t&&_n.error("%s",r,e),r}static asErr(e){let t=null;return e&&(t=e instanceof Error?e:new Error("Force-Cast to error : "+String(e))),t}static fErr(t,...r){const n=e.format(t,...r);return new Error(n)}static throwFormattedErr(e,...t){throw lp.fErr(e,...t)}}var up="object"==typeof global&&global&&global.Object===Object&&global,pp="object"==typeof self&&self&&self.Object===Object&&self,cp=up||pp||Function("return this")(),mp=cp.Symbol,hp=Object.prototype,fp=hp.hasOwnProperty,gp=hp.toString,yp=mp?mp.toStringTag:void 0,vp=Object.prototype.toString,wp="[object Null]",bp="[object Undefined]",Sp=mp?mp.toStringTag:void 0;function Ep(e){return null==e?void 0===e?bp:wp:Sp&&Sp in Object(e)?function(e){var t=fp.call(e,yp),r=e[yp];try{e[yp]=void 0;var n=!0}catch(e){}var a=gp.call(e);return n&&(t?e[yp]=r:delete e[yp]),a}(e):function(e){return vp.call(e)}(e)}var _p="[object Symbol]";function xp(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&Ep(e)==_p}var Cp=Array.isArray,Np=1/0,kp=mp?mp.prototype:void 0,Tp=kp?kp.toString:void 0;function Ap(e){if("string"==typeof e)return e;if(Cp(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}(e,Ap)+"";if(xp(e))return Tp?Tp.call(e):"";var t=e+"";return"0"==t&&1/e==-Np?"-0":t}function Pp(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Ip,Op="[object AsyncFunction]",Dp="[object Function]",Rp="[object GeneratorFunction]",Mp="[object Proxy]",Lp=cp["__core-js_shared__"],Fp=(Ip=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||""))?"Symbol(src)_1."+Ip:"",jp=Function.prototype.toString,Up=/^\[object .+?Constructor\]$/,Vp=Function.prototype,Bp=Object.prototype,$p=Vp.toString,zp=Bp.hasOwnProperty,qp=RegExp("^"+$p.call(zp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hp(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!Pp(e)||Fp&&Fp in e)return!1;var t=function(e){if(!Pp(e))return!1;var t=Ep(e);return t==Dp||t==Rp||t==Op||t==Mp}(e)?qp:Up;return t.test(function(e){if(null!=e){try{return jp.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}var Kp=function(){try{var e=Hp(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gp=Kp,Wp=9007199254740991,Zp=/^(?:0|[1-9]\d*)$/;function Jp(e,t){var r=typeof e;return!!(t=null==t?Wp:t)&&("number"==r||"symbol"!=r&&Zp.test(e))&&e>-1&&e%1==0&&e<t}function Yp(e,t){return e===t||e!=e&&t!=t}var Xp=Object.prototype.hasOwnProperty;function Qp(e,t,r){var n=e[t];Xp.call(e,t)&&Yp(n,r)&&(void 0!==r||t in e)||function(e,t,r){"__proto__"==t&&Gp?Gp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}(e,t,r)}var ec=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tc=/^\w*$/,rc=Hp(Object,"create"),nc=Object.prototype.hasOwnProperty,ac=Object.prototype.hasOwnProperty;function ic(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function sc(e,t){for(var r=e.length;r--;)if(Yp(e[r][0],t))return r;return-1}ic.prototype.clear=function(){this.__data__=rc?rc(null):{},this.size=0},ic.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ic.prototype.get=function(e){var t=this.__data__;if(rc){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return nc.call(t,e)?t[e]:void 0},ic.prototype.has=function(e){var t=this.__data__;return rc?void 0!==t[e]:ac.call(t,e)},ic.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rc&&void 0===t?"__lodash_hash_undefined__":t,this};var oc=Array.prototype.splice;function dc(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}dc.prototype.clear=function(){this.__data__=[],this.size=0},dc.prototype.delete=function(e){var t=this.__data__,r=sc(t,e);return!(r<0||(r==t.length-1?t.pop():oc.call(t,r,1),--this.size,0))},dc.prototype.get=function(e){var t=this.__data__,r=sc(t,e);return r<0?void 0:t[r][1]},dc.prototype.has=function(e){return sc(this.__data__,e)>-1},dc.prototype.set=function(e,t){var r=this.__data__,n=sc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var lc=Hp(cp,"Map");function uc(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function pc(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pc.prototype.clear=function(){this.size=0,this.__data__={hash:new ic,map:new(lc||dc),string:new ic}},pc.prototype.delete=function(e){var t=uc(this,e).delete(e);return this.size-=t?1:0,t},pc.prototype.get=function(e){return uc(this,e).get(e)},pc.prototype.has=function(e){return uc(this,e).has(e)},pc.prototype.set=function(e,t){var r=uc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function cc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(cc.Cache||pc),r}cc.Cache=pc;var mc,hc,fc,gc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yc=/\\(\\)?/g,vc=(mc=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gc,(function(e,r,n,a){t.push(n?a.replace(yc,"$1"):r||e)})),t},hc=cc(mc,(function(e){return 500===fc.size&&fc.clear(),e})),fc=hc.cache,hc),wc=vc;var bc=1/0;function Sc(e){if("string"==typeof e||xp(e))return e;var t=e+"";return"0"==t&&1/e==-bc?"-0":t}function Ec(e,t,r){return null==e?e:function(e,t,r,n){if(!Pp(e))return e;for(var a=-1,i=(t=function(e,t){return Cp(e)?e:function(e,t){if(Cp(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!xp(e))||tc.test(e)||!ec.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:wc(function(e){return null==e?"":Ap(e)}(e))}(t,e)).length,s=i-1,o=e;null!=o&&++a<i;){var d=Sc(t[a]),l=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(a!=s){var u=o[d];void 0===(l=void 0)&&(l=Pp(u)?u:Jp(t[a+1])?[]:{})}Qp(o,d,l),o=o[d]}return e}(e,t,r)}class _c{static expandNestedKeys(e){const t={};return Object.keys(e).forEach((r=>{Ec(t,r,e[r])})),t}static mapByUniqueProperty(e,t){if(!e||!t)throw new Error("Neither input nor propName can be null");const r=new Map;return e.forEach((e=>{const n=e?e[t]:null;if(null==n)throw new Error("No value for "+t+" found in "+JSON.stringify(e));if(r.has(n))throw new Error("Multiple values found for "+n);r.set(n,e)})),r}static groupByProperty(e,t){if(!e||!t)throw new Error("Neither input nor propName can be null");const r=new Map;return e.forEach((e=>{const n=e?e[t]:null;if(null==n)throw lp.fErr("No value for %s found in %j",t,e);r.has(n)||r.set(n,[]),r.get(n).push(e)})),r}static findValue(e,t){return t&&0!=t.length?e?_c.findValue(e[t[0]],t.slice(1)):null:e}static findValueDotPath(e,t){return t&&0!=t.length?e?_c.findValue(e,t.split(".")):null:e}static simpleDeepCompare(e,t){return null==e&&null==t||null!=e&&null!=t&&JSON.stringify(e)==JSON.stringify(t)}static toKeyValueList(e){const t=[];for(const r of Object.keys(e))t.push({key:r,value:e[r]});return t}static fromKeyValueList(e){const t={};return e.forEach((e=>t[e.key]=e.value)),t}static cleanup(e,t=!1,r=!0,n=!0,a=!0){if(null==e||"object"!=typeof e)return e;const i=JSON.parse(JSON.stringify(e));return Object.keys(i).forEach((e=>{if(i[e]&&"object"==typeof i[e])if(Array.isArray(i[e]))for(let t=0;t<i[e].length;t++)i[e][t]=_c.cleanup(i[e][t]);else i[e]=_c.cleanup(i[e]);else void 0===i[e]&&n||null===i[e]&&r||""===i[e]&&a||0===i[e]&&t?delete i[e]:i[e]=i[e]})),i}static extractValueFromMapIgnoreCase(e,t){let r=null;if(e&&t){const n=t.toLowerCase();Object.keys(e).forEach((a=>{if(a.toLowerCase()===n){const n=e[a];r&&_n.warn("Multiple entries found for %s (replacing %s with %s",t,r,n),r=n}}))}return r}static safeCallFunction(e,t){let r=!1;if(e&&e[t]&&"function"==typeof e[t])try{e[t](),r=!0}catch(r){_n.warn("Error calling %s on %s : %s",t,e,r,r)}return r}static caseInsensitiveAccess(e,t){let r=null;if(e&&t&&(r=e[t],!r)){const n=Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));n&&(r=e[n])}return r}}class xc{static wrapElementsInArray(e){return e.map((e=>[e]))}static compareTwoArrays(e,t,r){e.sort(r),t.sort(r);let n=0,a=0;const i={matching:[],setOneOnly:[],setTwoOnly:[]};for(;n<e.length&&a<t.length;){const s=e[n],o=t[a],d=r(s,o);0===d?(i.matching.push(s),n++,a++):d<0?(i.setOneOnly.push(s),n++):(i.setTwoOnly.push(o),a++)}return n<e.length-1&&(i.setOneOnly=i.setOneOnly.concat(e.slice(n))),a<t.length-1&&(i.setTwoOnly=i.setTwoOnly.concat(t.slice(a))),i}static extractSubarrayFromSortedByNumberField(e,t,r,n){if(!e||0===e.length)return e;let a=null===r?0:xc.findSplit(e,t,r)||0;const i=null===n?e.length:xc.findSplit(e,t,n),s=_c.findValueDotPath(e[a],t);return a===e.length-1&&s<r?[]:(a<e.length&&a<i&&s<r&&a++,e.slice(a,i+1))}static findSplit(e,t,r){if(Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(t),Sn.notNullOrUndefined(r),0===e.length||_c.findValueDotPath(e[0],t)>r)return null;let n=0,a=e.length,i=null;for(;null===i;){const s=Math.floor((n+a)/2),o=_c.findValueDotPath(e[s],t);n===a||n===a-1?i=n:o<=r?n=s:a=s}return i}}class Cc{static safeObjectToBase64JSON(e){return e?Cc.generateBase64VersionOfString(JSON.stringify(e)):null}static safeBase64JSONParse(e){let t={};try{e&&(t=JSON.parse(Cc.base64StringToString(e)))}catch(r){_n.warn("Error parsing b64/json : %s as json, got %s",e,r,r),t={}}return t}static generateBase64VersionOfBlob(e){return new Promise((function(t,r){if(e&&0!=e.size){const r=new FileReader;r.onloadend=function(){t(r.result.toString())},r.readAsDataURL(e)}else r("Wont convert null or non-blob or empty blob")}))}static generateBase64VersionOfString(e){return Cc.generateBase64VersionOfBuffer(Buffer.from(e))}static generateBase64VersionOfBuffer(e){return e.toString("base64")}static base64StringToBuffer(e){return Buffer.from(e,"base64")}static base64StringToString(e,t="utf8"){return Buffer.from(e,"base64").toString(t)}}function Nc(e){return e!==String(parseFloat(e))}var kc=Object.getOwnPropertyNames?function(e){return Object.getOwnPropertyNames(e).filter((function(t){return e.propertyIsEnumerable(t)&&Nc(t)}))}:Object.keys?function(e){return Object.keys(e).filter(Nc)}:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&Nc(r)&&t.push(r);return t},Tc=function(){function e(e){this.enumObj=e,this.keysList=Object.freeze(kc(e));for(var t=this.keysList.length,r=new Array(t),n=new Map,a=0;a<t;++a){var i=this.keysList[a],s=e[i];r[a]=s,n.set(s,i),this[a]=Object.freeze([i,s])}this.valuesList=Object.freeze(r),this.keysByValueMap=n,this.size=this.length=t,Object.freeze(this)}return e.prototype.toString=function(){return"[object EnumWrapper]"},e.prototype.keys=function(){var e,t=this,r=0;return(e={next:function(){var e={done:r>=t.length,value:t.keysList[r]};return++r,e}})[Symbol.iterator]=function(){return this},e},e.prototype.values=function(){var e,t=this,r=0;return(e={next:function(){var e={done:r>=t.length,value:t.valuesList[r]};return++r,e}})[Symbol.iterator]=function(){return this},e},e.prototype.entries=function(){var e,t=this,r=0;return(e={next:function(){var e={done:r>=t.length,value:t[r]};return++r,e}})[Symbol.iterator]=function(){return this},e},e.prototype[Symbol.iterator]=function(){return this.entries()},e.prototype.forEach=function(e,t){for(var r=this.length,n=0;n<r;++n){var a=this[n];e.call(t,a[1],a[0],this,n)}},e.prototype.map=function(e,t){for(var r=this.length,n=new Array(r),a=0;a<r;++a){var i=this[a];n[a]=e.call(t,i[1],i[0],this,a)}return n},e.prototype.getKeys=function(){return this.keysList.slice()},e.prototype.getValues=function(){return this.valuesList.slice()},e.prototype.getEntries=function(){return Array.prototype.slice.call(this)},e.prototype.indexOfKey=function(e){return this.keysList.indexOf(e)},e.prototype.indexOfValue=function(e){return this.valuesList.indexOf(e)},e.prototype.isKey=function(e){return null!=e&&Nc(e)&&this.enumObj.hasOwnProperty(e)},e.prototype.asKeyOrThrow=function(e){if(this.isKey(e))return e;throw new Error("Unexpected key: "+e+". Expected one of: "+this.getValues())},e.prototype.asKeyOrDefault=function(e,t){return this.isKey(e)?e:t},e.prototype.isValue=function(e){return null!=e&&this.keysByValueMap.has(e)},e.prototype.asValueOrThrow=function(e){if(this.isValue(e))return e;throw new Error("Unexpected value: "+e+". Expected one of: "+this.getValues())},e.prototype.asValueOrDefault=function(e,t){return this.isValue(e)?e:t},e.prototype.getKeyOrThrow=function(e){var t=null!=e?this.keysByValueMap.get(e):void 0;if(null!=t)return t;throw new Error("Unexpected value: "+e+". Expected one of: "+this.getValues())},e.prototype.getKeyOrDefault=function(e,t){var r=null!=e?this.keysByValueMap.get(e):void 0;return null!=r?r:t},e.prototype.getValueOrThrow=function(e){return this.enumObj[this.asKeyOrThrow(e)]},e.prototype.getValueOrDefault=function(e,t){return this.isKey(e)?this.enumObj[e]:t},e}();Tc.prototype[Symbol.toStringTag]="EnumWrapper",new WeakMap;class Ac{title;timeoutMS;__timeoutTokenFlagField=!0;constructor(e,t){this.title=e,this.timeoutMS=t}writeToLog(e=fn.warn){_n.logByLevel(e,"Timed out after %d ms waiting for results of %s",this.timeoutMS,this.title)}static isTimeoutToken(e){return!!e&&!!e.__timeoutTokenFlagField}}class Pc{label;starts=new Map;ends=new Map;createTime=Date.now();constructor(e=En.createRandomHexString(4)){this.label=e}start(e){Sn.notNullUndefinedOrOnlyWhitespaceString(e,"name");const t=Date.now();return this.starts.set(En.trimToNull(e),t),t}stop(e){Sn.notNullUndefinedOrOnlyWhitespaceString(e,"name");const t=Date.now();return this.ends.set(En.trimToNull(e),t),t}reset(e){Sn.notNullUndefinedOrOnlyWhitespaceString(e,"name"),this.starts.delete(En.trimToNull(e)),this.ends.delete(En.trimToNull(e))}hasTimer(e){return Sn.notNullUndefinedOrOnlyWhitespaceString(e,"name"),this.starts.has(e)}log(e,t,r=fn.info){_n.logByLevel(r,this.dump(e,t))}logExpected(e,t,r,n=fn.info){_n.logByLevel(n,this.dumpExpected(e,t,r))}dump(e,t){let r=this.label+" ";const n=En.trimToNull(e);if(n&&!this.hasTimer(n))r+="No such timer : "+n;else{const a=e?this.starts.get(n):this.createTime,i=e?this.ends.get(n):Date.now();r+=(n||"Default")+" ",a&&i?r+="completed in "+dp.formatMsDuration(i-a,!t):a&&(r+="running for "+dp.formatMsDuration(Date.now()-a,!t))}return r}dumpExpected(e,t,r){let n=this.label+" ";const a=En.trimToNull(t);if(a&&!this.hasTimer(a))n+="No such timer : "+a;else if(!e||e<=0)n+="Cannot generate output for 0 percent complete";else if(e>1)n+="Cannot generate output for percent > 1";else{n+=(a||"Default")+" ";const i=t?this.starts.get(a):this.createTime,s=t?this.ends.get(a):Date.now();if(i&&s)n+="completed in "+dp.formatMsDuration(s-i,!r);else if(i){const t=Date.now()-i,a=t/e-t;n+="running for "+dp.formatMsDuration(t,!r)+" approx "+dp.formatMsDuration(a,!r)+" remaining"}}return n}elapsedMS(e){let t=null;const r=En.trimToNull(e);if(r&&!this.hasTimer(r))t=null;else{const n=e?this.starts.get(r):this.createTime,a=e?this.ends.get(r):Date.now();n&&a?t=a-n:n&&(t=Date.now()-n)}return t}}class Ic{static resolveOnEvent(e,t,r=[],n=null){return e&&t&&0!==t.length&&e.on||Promise.reject("Cannot continue - missing source object or name, or the object is not an event source"),new Promise(((a,i)=>{t.forEach((t=>{e.on(t,(()=>{a(n)}))})),r&&r.forEach((t=>{e.on(t,(e=>{i(e)}))}))}))}static timeout(e,t,r){return Promise.race([e,Ic.createTimeoutPromise(t,r)])}static createTimeoutPromise(e,t){return new Promise(((r,n)=>{const a=setTimeout((()=>{clearTimeout(a);const n=new Ac(e,t);r(n)}),t)}))}static async wait(e){await Ic.createTimeoutPromise("Wait "+e,e),_n.silly("Finished wait of %d ms",e)}static dumpResult(e,t=!1){_n.info("Success, result was : \n\n%s\n\n",JSON.stringify(e)),process.exit(0)}static dumpError(e,t=!1){_n.warn("Failure, err was : \n\n%s\n\n -- \n\n%s\n\n",JSON.stringify(e),String(e)),console.trace(),process.exit(1)}static logErrorAndReturnNull(e,t=!1){return _n.warn("Failure, err was : \n\n%s\n\n -- \n\n%s\n\n",JSON.stringify(e),String(e)),null}static runPromiseAndDump(e){e.then(Ic.dumpResult).catch(Ic.dumpError)}static async waitFor(e,t,r,n,a="waitFor",i=0){if(null==t||r<50||n<1||i<0||"function"!=typeof e)return _n.warn("%s: Invalid configuration for waitFor - exiting immediately",a),_n.warn("ExpectedValue : %s ; interval: %d ; maxCycles: %d ; test : %s",t,r,n,typeof e),!1;let s=null;try{s=e(i)}catch(e){return _n.warn("%s: Caught error while waiting, giving up",a),!1}return null===s?(_n.debug("%s:CurVal was null - aborting",a),!1):s==t?(_n.debug("%s:Found expected value",a),!0):i>n?(_n.debug("%s:Exceeded max cycles, giving up",a),!1):(_n.debug("%s : value not reached yet, waiting (count = %d of %d)",a,i,n),await Ic.wait(r),Ic.waitFor(e,t,r,n,a,i+1))}static async runBoundedParallel(e,t,r,n=1,a=fn.debug){const i=new Pc;let s=[],o=t;_n.logByLevel(a,"Processing %d total elements %d at a time",t.length,n);const d=r||this;let l=0;const u=o.length;for(;o.length>0;){const t=o.slice(0,Math.min(o.length,n));o=o.slice(t.length);const r=t.map((t=>e.apply(d,t))),p=await Promise.all(r);l+=r.length,s=s.concat(p);const c=l/u;_n.logByLevel(a,"%d elements remain : %s",o.length,i.dumpExpected(c))}return i.log(),s}static async runBoundedParallelSingleParam(e,t,r,n=1,a=fn.debug){const i=xc.wrapElementsInArray(t);return Ic.runBoundedParallel(e,i,r,n,a)}static async asyncForEachSerial(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}static async asyncForEachParallel(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n],n,e));await Promise.all(r)}constructor(){}}class Oc{static PACIFIC=new Oc("America/Los_Angeles");timezone;constructor(e){if(!e)throw"Timezone cannot be null";this.timezone=e}currentHour(){return sp.local().setZone(this.timezone).hour}toEpochSeconds(e){return Math.round(e.toMillis()/1e3)}startOfTodayEpochSeconds(){return this.toEpochSeconds(sp.local().setZone(this.timezone).set({hour:0,minute:0,second:0,millisecond:0}))}startOfMatchingDayEpochSeconds(e){return this.toEpochSeconds(sp.fromMillis(e).set({hour:0,minute:0,second:0,millisecond:0}))}startOfMatchingDayEpochMS(e){return 1e3*this.startOfMatchingDayEpochSeconds(e)}startOfCurrentHourEpochSeconds(){return this.toEpochSeconds(sp.local().setZone(this.timezone).set({minute:0,second:0,millisecond:0}))}startOfCurrentMinuteEpochSeconds(){return this.toEpochSeconds(sp.local().setZone(this.timezone).set({second:0,millisecond:0}))}startOfCurrentSecondEpochSeconds(){return this.toEpochSeconds(sp.local().setZone(this.timezone).set({millisecond:0}))}startOfTodayEpochMS(){return sp.local().setZone(this.timezone).set({hour:0,minute:0,second:0,millisecond:0}).toMillis()}dailySlotCount(e){return Math.ceil(864e5/e)}currentTimeSlotIdx(e){if(e<1)throw new Error("Cannot process with slot less than one ms wide");const t=this.startOfTodayEpochMS(),r=(new Date).getTime()-t;return Math.floor(r/e)}matchingTimeSlotIdx(e,t){if(t<1)throw new Error("Cannot process with slot less than one ms wide");const r=e-this.startOfMatchingDayEpochMS(e);return Math.floor(r/t)}startOfCurrentSlotEpochMS(e){return this.startOfTodayEpochMS()+this.currentTimeSlotIdx(e)*e}startOfMatchingSlotEpochMS(e,t){return this.startOfMatchingDayEpochMS(e)+this.matchingTimeSlotIdx(e,t)*t}}class Dc{constructor(){}static readableToBufferSync(e){const t=[];let r=e.read();for(;r;)t.push(r),r=e.read();return Buffer.concat(t)}static async webReadableStreamToBuffer(e){const t=[],r=new WritableStream({write:async(e,r)=>("string"==typeof e?En.stringToUint8Array(e):t.push(e),null),abort(e){lp.throwFormattedErr("StringWebWritableStream failure : %s",e)}},{highWaterMark:3,size:()=>1});return await e.pipeTo(r),Buffer.concat(t)}static async webReadableStreamToString(e){return(await Dc.webReadableStreamToBuffer(e)).toString()}static stringToReadable(e){return new a({read(){this.push(e),this.push(null)}})}static stringToWebReadableStream(e){return new ReadableStream({start:t=>(e&&t.enqueue(e),t.close(),null)},{highWaterMark:e?e.length:null})}static anyToStringReadable(e){return null==e?Dc.stringToReadable(null):Dc.stringToReadable(En.safeString(e))}}var Rc={exports:{}},Mc={},Lc={exports:{}},Fc={},jc=Fc;function Uc(e){return e<0?-1:1}function Vc(e,t){t.unsigned||--e;const r=t.unsigned?0:-Math.pow(2,e),n=Math.pow(2,e)-1,a=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),i=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,s){s||(s={});let o=+e;if(s.enforceRange){if(!Number.isFinite(o))throw new TypeError("Argument is not a finite number");if(o=Uc(o)*Math.floor(Math.abs(o)),o<r||o>n)throw new TypeError("Argument is not in byte range");return o}if(!isNaN(o)&&s.clamp)return o=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(o),o<r&&(o=r),o>n&&(o=n),o;if(!Number.isFinite(o)||0===o)return 0;if(o=Uc(o)*Math.floor(Math.abs(o)),o%=a,!t.unsigned&&o>=i)return o-a;if(t.unsigned)if(o<0)o+=a;else if(-0===o)return 0;return o}}Fc.void=function(){},Fc.boolean=function(e){return!!e},Fc.byte=Vc(8,{unsigned:!1}),Fc.octet=Vc(8,{unsigned:!0}),Fc.short=Vc(16,{unsigned:!1}),Fc["unsigned short"]=Vc(16,{unsigned:!0}),Fc.long=Vc(32,{unsigned:!1}),Fc["unsigned long"]=Vc(32,{unsigned:!0}),Fc["long long"]=Vc(32,{unsigned:!1,moduloBitLength:64}),Fc["unsigned long long"]=Vc(32,{unsigned:!0,moduloBitLength:64}),Fc.double=function(e){const t=+e;if(!Number.isFinite(t))throw new TypeError("Argument is not a finite floating-point value");return t},Fc["unrestricted double"]=function(e){const t=+e;if(isNaN(t))throw new TypeError("Argument is NaN");return t},Fc.float=Fc.double,Fc["unrestricted float"]=Fc["unrestricted double"],Fc.DOMString=function(e,t){return t||(t={}),t.treatNullAsEmptyString&&null===e?"":String(e)},Fc.ByteString=function(e,t){const r=String(e);let n;for(let e=0;void 0!==(n=r.codePointAt(e));++e)if(n>255)throw new TypeError("Argument is not a valid bytestring");return r},Fc.USVString=function(e){const t=String(e),r=t.length,n=[];for(let e=0;e<r;++e){const a=t.charCodeAt(e);if(a<55296||a>57343)n.push(String.fromCodePoint(a));else if(56320<=a&&a<=57343)n.push(String.fromCodePoint(65533));else if(e===r-1)n.push(String.fromCodePoint(65533));else{const r=t.charCodeAt(e+1);if(56320<=r&&r<=57343){const t=1023&a,i=1023&r;n.push(String.fromCodePoint(65536+1024*t+i)),++e}else n.push(String.fromCodePoint(65533))}}return n.join("")},Fc.Date=function(e,t){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Fc.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e};var Bc={exports:{}};!function(e){e.exports.mixin=function(e,t){const r=Object.getOwnPropertyNames(t);for(let n=0;n<r.length;++n)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]))},e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl"),e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]},e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}}(Bc);var $c=Bc.exports,zc={},qc={exports:{}},Hc={},Kc=d,Gc=[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1e3,1e3],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6e3],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8e3,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8e3]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9e3],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[3e4]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13e3,13e3],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43e3,43e3],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64e3,64e3],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66e3,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[12e4,12e4],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128e3,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23e3]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149e3]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32e3]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195e3,195e3],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[4e4]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918e3,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]],Wc={TRANSITIONAL:0,NONTRANSITIONAL:1};function Zc(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function Jc(e){for(var t=0,r=Gc.length-1;t<=r;){var n=Math.floor((t+r)/2),a=Gc[n];if(a[0][0]<=e&&a[0][1]>=e)return a;a[0][0]>e?r=n-1:t=n+1}return null}var Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function Xc(e){return e.replace(Yc,"_").length}var Qc=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function em(e,t){"xn--"===e.substr(0,4)&&(e=Kc.toUnicode(e),Wc.NONTRANSITIONAL);var r=!1;(Zc(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Qc))&&(r=!0);for(var n=Xc(e),a=0;a<n;++a){var i=Jc(e.codePointAt(a));if(tm===Wc.TRANSITIONAL&&"valid"!==i[1]||tm===Wc.NONTRANSITIONAL&&"valid"!==i[1]&&"deviation"!==i[1]){r=!0;break}}return{label:e,error:r}}function tm(e,t,r){var n=function(e,t,r){for(var n=!1,a="",i=Xc(e),s=0;s<i;++s){var o=e.codePointAt(s),d=Jc(o);switch(d[1]){case"disallowed":n=!0,a+=String.fromCodePoint(o);break;case"ignored":break;case"mapped":a+=String.fromCodePoint.apply(String,d[2]);break;case"deviation":r===Wc.TRANSITIONAL?a+=String.fromCodePoint.apply(String,d[2]):a+=String.fromCodePoint(o);break;case"valid":a+=String.fromCodePoint(o);break;case"disallowed_STD3_mapped":t?(n=!0,a+=String.fromCodePoint(o)):a+=String.fromCodePoint.apply(String,d[2]);break;case"disallowed_STD3_valid":t&&(n=!0),a+=String.fromCodePoint(o)}}return{string:a,error:n}}(e,t,r);n.string=Zc(n.string);for(var a=n.string.split("."),i=0;i<a.length;++i)try{var s=em(a[i]);a[i]=s.label,n.error=n.error||s.error}catch(e){n.error=!0}return{string:a.join("."),error:n.error}}Hc.toASCII=function(e,t,r,n){var a=tm(e,t,r),i=a.string.split(".");if(i=i.map((function(e){try{return Kc.toASCII(e)}catch(t){return a.error=!0,e}})),n){var s=i.slice(0,i.length-1).join(".").length;(s.length>253||0===s.length)&&(a.error=!0);for(var o=0;o<i.length;++o)if(i.length>63||0===i.length){a.error=!0;break}}return a.error?null:i.join(".")},Hc.toUnicode=function(e,t){var r=tm(e,t,Wc.NONTRANSITIONAL);return{domain:r.string,error:r.error}},Hc.PROCESSING_OPTIONS=Wc,function(e){const t=d,r=Hc,n={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},a=Symbol("failure");function i(e){return t.ucs2.decode(e).length}function s(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function o(e){return e>=48&&e<=57}function l(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){return o(e)||e>=65&&e<=70||e>=97&&e<=102}function p(e){return"."===e||"%2e"===e.toLowerCase()}function c(e){return 2===e.length&&l(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function m(e){return void 0!==n[e]}function h(e){return m(e.scheme)}function f(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function g(e){return e<=31||e>126}const y=new Set([32,34,35,60,62,63,96,123,125]);function v(e){return g(e)||y.has(e)}const w=new Set([47,58,59,61,64,91,92,93,94,124]);function b(e){return v(e)||w.has(e)}function S(e,t){const r=String.fromCodePoint(e);return t(e)?function(e){const t=new Buffer(e);let r="";for(let e=0;e<t.length;++e)r+=f(t[e]);return r}(r):r}function E(e){let t=10;return e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e?0:(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?a:parseInt(e,t)}function _(e,n){if("["===e[0])return"]"!==e[e.length-1]?a:function(e){const r=[0,0,0,0,0,0,0,0];let n=0,i=null,d=0;if(58===(e=t.ucs2.decode(e))[d]){if(58!==e[d+1])return a;d+=2,++n,i=n}for(;d<e.length;){if(8===n)return a;if(58===e[d]){if(null!==i)return a;++d,++n,i=n;continue}let t=0,l=0;for(;l<4&&u(e[d]);)t=16*t+parseInt(s(e,d),16),++d,++l;if(46===e[d]){if(0===l)return a;if(d-=l,n>6)return a;let t=0;for(;void 0!==e[d];){let i=null;if(t>0){if(!(46===e[d]&&t<4))return a;++d}if(!o(e[d]))return a;for(;o(e[d]);){const t=parseInt(s(e,d));if(null===i)i=t;else{if(0===i)return a;i=10*i+t}if(i>255)return a;++d}r[n]=256*r[n]+i,++t,2!==t&&4!==t||++n}if(4!==t)return a;break}if(58===e[d]){if(++d,void 0===e[d])return a}else if(void 0!==e[d])return a;r[n]=t,++n}if(null!==i){let e=n-i;for(n=7;0!==n&&e>0;){const t=r[i+e-1];r[i+e-1]=r[n],r[n]=t,--n,--e}}else if(null===i&&8!==n)return a;return r}(e.substring(1,e.length-1));if(!n)return function(e){if(-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return a;let r="";const n=t.ucs2.decode(e);for(let e=0;e<n.length;++e)r+=S(n[e],g);return r}(e);const i=function(e){const t=new Buffer(e),r=[];for(let e=0;e<t.length;++e)37!==t[e]?r.push(t[e]):37===t[e]&&u(t[e+1])&&u(t[e+2])?(r.push(parseInt(t.slice(e+1,e+3).toString(),16)),e+=2):r.push(t[e]);return new Buffer(r).toString()}(e),d=r.toASCII(i,!1,r.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(null===d)return a;if(-1!==d.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return a;const l=function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;const r=[];for(const n of t){if(""===n)return e;const t=E(n);if(t===a)return e;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return a;if(r[r.length-1]>=Math.pow(256,5-r.length))return a;let n=r.pop(),i=0;for(const e of r)n+=e*Math.pow(256,3-i),++i;return n}(d);return"number"==typeof l||l===a?l:d}function x(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t="."+t),r=Math.floor(r/256);return t}(e):e instanceof Array?"["+function(e){let t="";const r=function(e){let t=null,r=1,n=null,a=0;for(let i=0;i<e.length;++i)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),{idx:t,len:r}}(e).idx;let n=!1;for(let a=0;a<=7;++a)n&&0===e[a]||(n&&(n=!1),r!==a?(t+=e[a].toString(16),7!==a&&(t+=":")):(t+=0===a?"::":":",n=!0));return t}(e)+"]":e}function C(e){const t=e.path;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/.test(r))||t.pop())}function N(e){return""!==e.username||""!==e.password}function k(e,r,n,i,s){if(this.pointer=0,this.input=e,this.base=r||null,this.encodingOverride=n||"utf-8",this.stateOverride=s,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=s||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=t.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this["parse "+this.state](e,t);if(!r)break;if(r===a){this.failure=!0;break}}}k.prototype["parse scheme start"]=function(e,t){if(l(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,a;this.state="no scheme",--this.pointer}return!0},k.prototype["parse scheme"]=function(e,t){if(function(e){return l(e)||o(e)}(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(h(this.url)&&!m(this.buffer))return!1;if(!h(this.url)&&m(this.buffer))return!1;if((N(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,a;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},k.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?a:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},k.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},k.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},k.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},k.prototype["parse relative slash"]=function(e){return!h(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},k.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},k.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},k.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=i(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(58===e&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=S(e,b);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(this.atFlag&&""===this.buffer)return this.parseError=!0,a;this.pointer-=i(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},k.prototype["parse hostname"]=k.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(58!==e||this.arrFlag)if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(--this.pointer,h(this.url)&&""===this.buffer)return this.parseError=!0,a;if(this.stateOverride&&""===this.buffer&&(N(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=_(this.buffer,h(this.url));if(e===a)return a;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else 91===e?this.arrFlag=!0:93===e&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,a;const e=_(this.buffer,h(this.url));if(e===a)return a;if(this.url.host=e,this.buffer="",this.state="port","hostname"===this.stateOverride)return!1}return!0},k.prototype["parse port"]=function(e,t){if(o(e))this.buffer+=t;else{if(!(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e||this.stateOverride))return this.parseError=!0,a;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1)return this.parseError=!0,a;this.url.port=e===(r=this.url.scheme,n[r])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var r;return!0};const T=new Set([47,92,63,35]);k.prototype["parse file"]=function(e){var t,r;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(t=e,r=this.input[this.pointer+1],!l(t)||58!==r&&124!==r)||this.input.length-this.pointer-1>=2&&!T.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),C(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},k.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(t=this.base.path[0]).length&&l(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},k.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&c(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=_(this.buffer,h(this.url));if(e===a)return a;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},k.prototype["parse path start"]=function(e){return h(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},k.prototype["parse path"]=function(e){if(isNaN(e)||47===e||h(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(h(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(C(this.url),47===e||h(this.url)&&92===e||this.url.path.push("")):!p(this.buffer)||47===e||h(this.url)&&92===e?p(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&c(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=S(e,v);var t;return!0},k.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+S(e,g))),!0},k.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e)t[e]<33||t[e]>126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=f(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},k.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=S(e,g))),!0},e.exports.serializeURL=function(e,t){let r=e.scheme+":";if(null!==e.host?(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=x(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e.cannotBeABaseURL)r+=e.path[0];else for(const t of e.path)r+="/"+t;return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let t=e.scheme+"://";return t+=x(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new k(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?"failure":r.url},e.exports.setTheUsername=function(e,r){e.username="";const n=t.ucs2.decode(r);for(let t=0;t<n.length;++t)e.username+=S(n[t],b)},e.exports.setThePassword=function(e,r){e.password="";const n=t.ucs2.decode(r);for(let t=0;t<n.length;++t)e.password+=S(n[t],b)},e.exports.serializeHost=x,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||e.cannotBeABaseURL||"file"===e.scheme},e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}}(qc);var rm=qc.exports;const nm=rm;zc.implementation=class{constructor(e){const t=e[0],r=e[1];let n=null;if(void 0!==r&&(n=nm.basicURLParse(r),"failure"===n))throw new TypeError("Invalid base URL");const a=nm.basicURLParse(t,{baseURL:n});if("failure"===a)throw new TypeError("Invalid URL");this._url=a}get href(){return nm.serializeURL(this._url)}set href(e){const t=nm.basicURLParse(e);if("failure"===t)throw new TypeError("Invalid URL");this._url=t}get origin(){return nm.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){nm.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){nm.cannotHaveAUsernamePasswordPort(this._url)||nm.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){nm.cannotHaveAUsernamePasswordPort(this._url)||nm.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?nm.serializeHost(e.host):nm.serializeHost(e.host)+":"+nm.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||nm.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":nm.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||nm.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":nm.serializeInteger(this._url.port)}set port(e){nm.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:nm.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],nm.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(e){const t=this._url;if(""===e)return void(t.query=null);const r="?"===e[0]?e.substring(1):e;t.query="",nm.basicURLParse(r,{url:t,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",nm.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}},function(e){const t=jc,r=$c,n=zc,a=r.implSymbol;function i(r){if(!this||this[a]||!(this instanceof i))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const n=[];for(let e=0;e<arguments.length&&e<2;++e)n[e]=arguments[e];n[0]=t.USVString(n[0]),void 0!==n[1]&&(n[1]=t.USVString(n[1])),e.exports.setup(this,n)}i.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");const t=[];for(let e=0;e<arguments.length&&e<0;++e)t[e]=arguments[e];return this[a].toJSON.apply(this[a],t)},Object.defineProperty(i.prototype,"href",{get(){return this[a].href},set(e){e=t.USVString(e),this[a].href=e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");return this.href},Object.defineProperty(i.prototype,"origin",{get(){return this[a].origin},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protocol",{get(){return this[a].protocol},set(e){e=t.USVString(e),this[a].protocol=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"username",{get(){return this[a].username},set(e){e=t.USVString(e),this[a].username=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"password",{get(){return this[a].password},set(e){e=t.USVString(e),this[a].password=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"host",{get(){return this[a].host},set(e){e=t.USVString(e),this[a].host=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostname",{get(){return this[a].hostname},set(e){e=t.USVString(e),this[a].hostname=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"port",{get(){return this[a].port},set(e){e=t.USVString(e),this[a].port=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathname",{get(){return this[a].pathname},set(e){e=t.USVString(e),this[a].pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"search",{get(){return this[a].search},set(e){e=t.USVString(e),this[a].search=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hash",{get(){return this[a].hash},set(e){e=t.USVString(e),this[a].hash=e},enumerable:!0,configurable:!0}),e.exports={is:e=>!!e&&e[a]instanceof n.implementation,create(e,t){let r=Object.create(i.prototype);return this.setup(r,e,t),r},setup(e,t,i){i||(i={}),i.wrapper=e,e[a]=new n.implementation(t,i),e[a][r.wrapperSymbol]=e},interface:i,expose:{Window:{URL:i},Worker:{URL:i}}}}(Lc);var am=Lc.exports;Mc.URL=am.interface,Mc.serializeURL=rm.serializeURL,Mc.serializeURLOrigin=rm.serializeURLOrigin,Mc.basicURLParse=rm.basicURLParse,Mc.setTheUsername=rm.setTheUsername,Mc.setThePassword=rm.setThePassword,Mc.serializeHost=rm.serializeHost,Mc.serializeInteger=rm.serializeInteger,Mc.parseURL=rm.parseURL;const im=n.Readable,sm=Symbol("buffer"),om=Symbol("type");class dm{constructor(){this[om]="";const e=arguments[0],t=arguments[1],r=[];let n=0;if(e){const t=e,a=Number(t.length);for(let e=0;e<a;e++){const a=t[e];let i;i=a instanceof Buffer?a:ArrayBuffer.isView(a)?Buffer.from(a.buffer,a.byteOffset,a.byteLength):a instanceof ArrayBuffer?Buffer.from(a):a instanceof dm?a[sm]:Buffer.from("string"==typeof a?a:String(a)),n+=i.length,r.push(i)}}this[sm]=Buffer.concat(r);let a=t&&void 0!==t.type&&String(t.type).toLowerCase();a&&!/[^\u0020-\u007E]/.test(a)&&(this[om]=a)}get size(){return this[sm].length}get type(){return this[om]}text(){return Promise.resolve(this[sm].toString())}arrayBuffer(){const e=this[sm],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new im;return e._read=function(){},e.push(this[sm]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let n,a;n=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),a=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const i=Math.max(a-n,0),s=this[sm].slice(n,n+i),o=new dm([],{type:arguments[2]});return o[sm]=s,o}}function lm(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let um;Object.defineProperties(dm.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(dm.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),lm.prototype=Object.create(Error.prototype),lm.prototype.constructor=lm,lm.prototype.name="FetchError";try{um=require("encoding").convert}catch(G$){}const pm=Symbol("Body internals"),cm=n.PassThrough;function mm(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.size;let i=void 0===a?0:a;var s=r.timeout;let o=void 0===s?0:s;null==e?e=null:fm(e)?e=Buffer.from(e.toString()):gm(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[pm]={body:e,disturbed:!1,error:null},this.size=i,this.timeout=o,e instanceof n&&e.on("error",(function(e){const r="AbortError"===e.name?e:new lm(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[pm].error=r}))}function hm(){var e=this;if(this[pm].disturbed)return mm.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[pm].disturbed=!0,this[pm].error)return mm.Promise.reject(this[pm].error);let t=this.body;if(null===t)return mm.Promise.resolve(Buffer.alloc(0));if(gm(t)&&(t=t.stream()),Buffer.isBuffer(t))return mm.Promise.resolve(t);if(!(t instanceof n))return mm.Promise.resolve(Buffer.alloc(0));let r=[],a=0,i=!1;return new mm.Promise((function(n,s){let o;e.timeout&&(o=setTimeout((function(){i=!0,s(new lm(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(i=!0,s(t)):s(new lm(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!i&&null!==t){if(e.size&&a+t.length>e.size)return i=!0,void s(new lm(`content size at ${e.url} over limit: ${e.size}`,"max-size"));a+=t.length,r.push(t)}})),t.on("end",(function(){if(!i){clearTimeout(o);try{n(Buffer.concat(r,a))}catch(t){s(new lm(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function fm(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function gm(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function ym(e){let t,r,a=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof n&&"function"!=typeof a.getBoundary&&(t=new cm,r=new cm,a.pipe(t),a.pipe(r),e[pm].body=t,a=r),a}function vm(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":fm(e)?"application/x-www-form-urlencoded;charset=UTF-8":gm(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function wm(e){const t=e.body;return null===t?0:gm(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}mm.prototype={get body(){return this[pm].body},get bodyUsed(){return this[pm].disturbed},arrayBuffer(){return hm.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return hm.call(this).then((function(t){return Object.assign(new dm([],{type:e.toLowerCase()}),{[sm]:t})}))},json(){var e=this;return hm.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return mm.Promise.reject(new lm(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return hm.call(this).then((function(e){return e.toString()}))},buffer(){return hm.call(this)},textConverted(){var e=this;return hm.call(this).then((function(t){return function(e,t){if("function"!=typeof um)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,a,i="utf-8";return r&&(n=/charset=([^;]*)/i.exec(r)),a=e.slice(0,1024).toString(),!n&&a&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(a)),!n&&a&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(a),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(a),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop()))),!n&&a&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(a)),n&&(i=n.pop(),"gb2312"!==i&&"gbk"!==i||(i="gb18030")),um(e,"UTF-8",i).toString()}(t,e.headers)}))}},Object.defineProperties(mm.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),mm.mixIn=function(e){for(const t of Object.getOwnPropertyNames(mm.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(mm.prototype,t);Object.defineProperty(e,t,r)}},mm.Promise=global.Promise;const bm=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Sm=/[^\t\x20-\x7e\x80-\xff]/;function Em(e){if(e=`${e}`,bm.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function _m(e){if(e=`${e}`,Sm.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function xm(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const Cm=Symbol("map");class Nm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Cm]=Object.create(null),e instanceof Nm){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){Em(e=`${e}`);const t=xm(this[Cm],e);return void 0===t?null:this[Cm][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=km(this),n=0;for(;n<r.length;){var a=r[n];const i=a[0],s=a[1];e.call(t,s,i,this),r=km(this),n++}}set(e,t){t=`${t}`,Em(e=`${e}`),_m(t);const r=xm(this[Cm],e);this[Cm][void 0!==r?r:e]=[t]}append(e,t){t=`${t}`,Em(e=`${e}`),_m(t);const r=xm(this[Cm],e);void 0!==r?this[Cm][r].push(t):this[Cm][e]=[t]}has(e){return Em(e=`${e}`),void 0!==xm(this[Cm],e)}delete(e){Em(e=`${e}`);const t=xm(this[Cm],e);void 0!==t&&delete this[Cm][t]}raw(){return this[Cm]}keys(){return Am(this,"key")}values(){return Am(this,"value")}[Symbol.iterator](){return Am(this,"key+value")}}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[Cm]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Cm][t].join(", ")}:function(t){return[t.toLowerCase(),e[Cm][t].join(", ")]})}Nm.prototype.entries=Nm.prototype[Symbol.iterator],Object.defineProperty(Nm.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Nm.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const Tm=Symbol("internal");function Am(e,t){const r=Object.create(Pm);return r[Tm]={target:e,kind:t,index:0},r}const Pm=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Pm)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[Tm];const t=e.target,r=e.kind,n=e.index,a=km(t,r);return n>=a.length?{value:void 0,done:!0}:(this[Tm].index=n+1,{value:a[n],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Im(e){const t=Object.assign({__proto__:null},e[Cm]),r=xm(e[Cm],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(Pm,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Om=Symbol("Response internals"),Dm=o.STATUS_CODES;class Rm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};mm.call(this,e,t);const r=t.status||200,n=new Nm(t.headers);if(null!=e&&!n.has("Content-Type")){const t=vm(e);t&&n.append("Content-Type",t)}this[Om]={url:t.url,status:r,statusText:t.statusText||Dm[r],headers:n,counter:t.counter}}get url(){return this[Om].url||""}get status(){return this[Om].status}get ok(){return this[Om].status>=200&&this[Om].status<300}get redirected(){return this[Om].counter>0}get statusText(){return this[Om].statusText}get headers(){return this[Om].headers}clone(){return new Rm(ym(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}mm.mixIn(Rm.prototype),Object.defineProperties(Rm.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Rm.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Mm=Symbol("Request internals"),Lm=s.URL||Mc.URL,Fm=s.parse,jm=s.format;function Um(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Lm(e).toString()),Fm(e)}const Vm="destroy"in n.Readable.prototype;function Bm(e){return"object"==typeof e&&"object"==typeof e[Mm]}class $m{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Bm(e)?t=Um(e.url):(t=e&&e.href?Um(e.href):Um(`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||Bm(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let a=null!=r.body?r.body:Bm(e)&&null!==e.body?ym(e):null;mm.call(this,a,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const i=new Nm(r.headers||e.headers||{});if(null!=a&&!i.has("Content-Type")){const e=vm(a);e&&i.append("Content-Type",e)}let s=Bm(e)?e.signal:null;if("signal"in r&&(s=r.signal),null!=s&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Mm]={method:n,redirect:r.redirect||e.redirect||"follow",headers:i,parsedURL:t,signal:s},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[Mm].method}get url(){return jm(this[Mm].parsedURL)}get headers(){return this[Mm].headers}get redirect(){return this[Mm].redirect}get signal(){return this[Mm].signal}clone(){return new $m(this)}}function zm(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}mm.mixIn($m.prototype),Object.defineProperty($m.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties($m.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),zm.prototype=Object.create(Error.prototype),zm.prototype.constructor=zm,zm.prototype.name="AbortError";const qm=s.URL||Mc.URL,Hm=n.PassThrough;function Km(e,t){if(!Km.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return mm.Promise=Km.Promise,new Km.Promise((function(r,a){const i=new $m(e,t),s=function(e){const t=e[Mm].parsedURL,r=new Nm(e[Mm].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!Vm)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let a=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(a="0"),null!=e.body){const t=wm(e);"number"==typeof t&&(a=String(t))}a&&r.set("Content-Length",a),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let i=e.agent;return"function"==typeof i&&(i=i(t)),r.has("Connection")||i||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Im(r),agent:i})}(i),d=("https:"===s.protocol?l:o).request,p=i.signal;let c=null;const m=function(){let e=new zm("The user aborted a request.");a(e),i.body&&i.body instanceof n.Readable&&i.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(p&&p.aborted)return void m();const h=function(){m(),y()},f=d(s);let g;function y(){f.abort(),p&&p.removeEventListener("abort",h),clearTimeout(g)}p&&p.addEventListener("abort",h),i.timeout&&f.once("socket",(function(e){g=setTimeout((function(){a(new lm(`network timeout at: ${i.url}`,"request-timeout")),y()}),i.timeout)})),f.on("error",(function(e){a(new lm(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),y()})),f.on("response",(function(e){clearTimeout(g);const t=function(e){const t=new Nm;for(const r of Object.keys(e))if(!bm.test(r))if(Array.isArray(e[r]))for(const n of e[r])Sm.test(n)||(void 0===t[Cm][r]?t[Cm][r]=[n]:t[Cm][r].push(n));else Sm.test(e[r])||(t[Cm][r]=[e[r]]);return t}(e.headers);if(Km.isRedirect(e.statusCode)){const n=t.get("Location");let s=null;try{s=null===n?null:new qm(n,i.url).toString()}catch(e){if("manual"!==i.redirect)return a(new lm(`uri requested responds with an invalid redirect URL: ${n}`,"invalid-redirect")),void y()}switch(i.redirect){case"error":return a(new lm(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void y();case"manual":if(null!==s)try{t.set("Location",s)}catch(e){a(e)}break;case"follow":if(null===s)break;if(i.counter>=i.follow)return a(new lm(`maximum redirect reached at: ${i.url}`,"max-redirect")),void y();const n={headers:new Nm(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!function(e,t){const r=new qm(t).hostname,n=new qm(e).hostname;return r===n||"."===r[r.length-n.length-1]&&r.endsWith(n)}(i.url,s))for(const e of["authorization","www-authenticate","cookie","cookie2"])n.headers.delete(e);return 303!==e.statusCode&&i.body&&null===wm(i)?(a(new lm("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void y()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(Km(new $m(s,n))),void y())}}e.once("end",(function(){p&&p.removeEventListener("abort",h)}));let n=e.pipe(new Hm);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout,counter:i.counter},o=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===o||204===e.statusCode||304===e.statusCode)return c=new Rm(n,s),void r(c);const d={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if("gzip"==o||"x-gzip"==o)return n=n.pipe(u.createGunzip(d)),c=new Rm(n,s),void r(c);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof u.createBrotliDecompress)return n=n.pipe(u.createBrotliDecompress()),c=new Rm(n,s),void r(c);c=new Rm(n,s),r(c)}else e.pipe(new Hm).once("data",(function(e){n=8==(15&e[0])?n.pipe(u.createInflate()):n.pipe(u.createInflateRaw()),c=new Rm(n,s),r(c)}))})),function(e,t){const r=t.body;null===r?e.end():gm(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(f,i)}))}Km.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Km.Promise=global.Promise;var Gm,Wm=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}(Object.freeze({__proto__:null,FetchError:lm,Headers:Nm,Request:$m,Response:Rm,default:Km}));!function(e,t){const r=Wm,n=r.default||r,a=function(e,t){return/^\/\//.test(e)&&(e="https:"+e),n.call(this,e,t)};a.ponyfill=!0,e.exports=t=a,t.fetch=a,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,t.default=a}(Rc,Rc.exports),Nn(Rc.exports),function(e){e.Success="Success",e.RolledBack="RolledBack",e.RollbackFailed="RollbackFailed"}(Gm||(Gm={}));class Zm{batchRatchet;validTaskNames;constructor(e,t){this.batchRatchet=e,this.validTaskNames=t,Sn.notNullOrUndefined(this.batchRatchet,"batchRatchet"),Sn.notNullOrUndefined(this.batchRatchet.batchClient,"batchRatchet.batchClient"),Sn.notNullOrUndefined(this.batchRatchet.defaultJobDefinition,"batchRatchet.defaultJobDefinition"),Sn.notNullOrUndefined(this.batchRatchet.defaultQueueName,"batchRatchet.defaultQueueName")}async scheduleBackgroundTask(e,t={},r={}){!this.validTaskNames||!this.validTaskNames.length||En.trimToNull(e)&&this.validTaskNames.includes(e)||lp.throwFormattedErr("Cannot start task %s - not found in valid task list",e),_n.info("Submitting background task to AWS batch: %s %j %s",e,t,this.batchRatchet.defaultQueueName);let n=null;const a=`${this.batchRatchet.defaultJobDefinition}-${e}_${mn.utc().toFormat("yyyy-MM-dd-HH-mm")}`,i={jobName:a,jobDefinition:this.batchRatchet.defaultJobDefinition,jobQueue:this.batchRatchet.defaultQueueName,parameters:{taskName:e,taskData:JSON.stringify(t),taskMetadata:JSON.stringify(r)}};try{n=await this.batchRatchet.scheduleJob(i),_n.info("Job %s(%s) submitted",n.jobName,n.jobId)}catch(r){_n.error("Cannot submit batch job taskName: %s jobDef: %s queue: %s jobName: %s data: %j",e,this.batchRatchet.defaultJobDefinition,this.batchRatchet.defaultQueueName,a,t,r)}return n}}class Jm{trace(){}debug(){}info(){}warn(){}error(){}}const Ym=()=>{let e=[],t=[];const r=new Set,n=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r),a=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...a(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...a(e))})),t},i=(r=!1)=>{const n=[],i=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;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)}}));const o=(d=n,d.sort(((e,t)=>Xm[t.step]-Xm[e.step]||Qm[t.priority||"normal"]-Qm[e.priority||"normal"]))).map(a).reduce(((e,t)=>(e.push(...t),e)),[]);var d;return o},s={add:(t,n={})=>{const{name:a,override:i}=n,s={step:"initialize",priority:"normal",middleware:t,...n};if(a){if(r.has(a)){if(!i)throw new Error(`Duplicate middleware name '${a}'`);const t=e.findIndex((e=>e.name===a)),r=e[t];if(r.step!==s.step||r.priority!==s.priority)throw new Error(`"${a}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`);e.splice(t,1)}r.add(a)}e.push(s)},addRelativeTo:(e,n)=>{const{name:a,override:i}=n,s={middleware:e,...n};if(a){if(r.has(a)){if(!i)throw new Error(`Duplicate middleware name '${a}'`);const e=t.findIndex((e=>e.name===a)),r=t[e];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw new Error(`"${a}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(e,1)}r.add(a)}t.push(s)},clone:()=>n(Ym()),use:e=>{e.applyToStack(s)},remove:n=>"string"==typeof n?(n=>{let a=!1;const i=e=>!e.name||e.name!==n||(a=!0,r.delete(n),!1);return e=e.filter(i),t=t.filter(i),a})(n):(n=>{let a=!1;const i=e=>e.middleware!==n||(a=!0,e.name&&r.delete(e.name),!1);return e=e.filter(i),t=t.filter(i),a})(n),removeByTag:n=>{let a=!1;const i=e=>{const{tags:t,name:i}=e;return!t||!t.includes(n)||(i&&r.delete(i),a=!0,!1)};return e=e.filter(i),t=t.filter(i),a},concat:e=>{const t=n(Ym());return t.use(e),t},applyToStack:n,identify:()=>i(!0).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const r of i().map((e=>e.middleware)).reverse())e=r(e,t);return e}};return s},Xm={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Qm={high:3,normal:2,low:1};class eh{constructor(e){this.middlewareStack=Ym(),this.config=e}send(e,t,r){const n="function"!=typeof t?t:void 0,a="function"==typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!a)return i(e).then((e=>e.output));i(e).then((e=>a(null,e.output)),(e=>a(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}class th{constructor(){this.middlewareStack=Ym()}}const rh="***SensitiveInformation***",nh=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},ah=e=>{if(null!=e){if("number"==typeof e){if(0!==e&&1!==e||Nh.warn(Ch(`Expected boolean, got ${typeof e}: ${e}`)),0===e)return!1;if(1===e)return!0}if("string"==typeof e){const t=e.toLowerCase();if("false"!==t&&"true"!==t||Nh.warn(Ch(`Expected boolean, got ${typeof e}: ${e}`)),"false"===t)return!1;if("true"===t)return!0}if("boolean"==typeof e)return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},ih=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Nh.warn(Ch(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},sh=Math.ceil(2**127*(2-2**-23)),oh=e=>{const t=ih(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>sh)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},dh=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},lh=e=>ch(e,32),uh=e=>ch(e,16),ph=e=>ch(e,8),ch=(e,t)=>{const r=dh(e);if(void 0!==r&&mh(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},mh=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},hh=(e,t)=>{if(null==e){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},fh=e=>{if(null==e)return;if("object"==typeof e&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},gh=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return Nh.warn(Ch(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},yh=e=>{if(null==e)return;const t=fh(e),r=Object.entries(t).filter((([,e])=>null!=e)).map((([e])=>e));if(0===r.length)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},vh=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,wh=e=>{const t=e.match(vh);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},bh=e=>"string"==typeof e?Sh(e):ih(e),Sh=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},Eh=e=>dh("string"==typeof e?wh(e):e),_h=e=>lh("string"==typeof e?wh(e):e),xh=e=>uh("string"==typeof e?wh(e):e),Ch=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Nh={warn:console.warn},kh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Th=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ah(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),a=e.getUTCDate(),i=e.getUTCHours(),s=e.getUTCMinutes(),o=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`;return`${kh[n]}, ${a<10?`0${a}`:`${a}`} ${Th[r]} ${t} ${d}:${l}:${u} GMT`}const Ph=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Ih=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Ph.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,a,i,s,o,d,l,u]=t,p=xh(Gh(n)),c=qh(a,"month",1,12),m=qh(i,"day",1,31),h=Fh(p,c,m,{hours:s,minutes:o,seconds:d,fractionalMilliseconds:l});return"Z"!=u.toUpperCase()&&h.setTime(h.getTime()-Kh(u)),h},Oh=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Dh=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Rh=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Mh=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Oh.exec(e);if(t){const[e,r,n,a,i,s,o,d]=t;return Fh(xh(Gh(a)),Vh(n),qh(r,"day",1,31),{hours:i,minutes:s,seconds:o,fractionalMilliseconds:d})}if(t=Dh.exec(e),t){const[e,r,n,a,i,s,o,d]=t;return Uh(Fh(jh(a),Vh(n),qh(r,"day",1,31),{hours:i,minutes:s,seconds:o,fractionalMilliseconds:d}))}if(t=Rh.exec(e),t){const[e,r,n,a,i,s,o,d]=t;return Fh(xh(Gh(d)),Vh(r),qh(n.trimLeft(),"day",1,31),{hours:a,minutes:i,seconds:s,fractionalMilliseconds:o})}throw new TypeError("Invalid RFC-7231 date-time value")},Lh=e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else{if("string"!=typeof e)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=(e=>ih("string"==typeof e?wh(e):e))(e)}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},Fh=(e,t,r,n)=>{const a=t-1;return $h(e,a,r),new Date(Date.UTC(e,a,r,qh(n.hours,"hour",0,23),qh(n.minutes,"minute",0,59),qh(n.seconds,"seconds",0,60),Hh(n.fractionalMilliseconds)))},jh=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+xh(Gh(e));return r<t?r+100:r},Uh=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Vh=e=>{const t=Th.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Bh=[31,28,31,30,31,30,31,31,30,31,30,31],$h=(e,t,r)=>{let n=Bh[t];if(1===t&&zh(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Th[t]} in ${e}: ${r}`)},zh=e=>e%4==0&&(e%100!=0||e%400==0),qh=(e,t,r,n)=>{const a=(e=>ph("string"==typeof e?wh(e):e))(Gh(e));if(a<r||a>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return a},Hh=e=>null==e?0:1e3*(e=>oh("string"==typeof e?wh(e):e))("0."+e),Kh=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},Gh=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)};let Wh=class e extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,e.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};const Zh=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Jh=e=>({output:t,parsedBody:r,errorCode:n})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const a=Yh(e),i=a.httpStatusCode?a.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:a});throw Zh(s,t)})({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},Yh=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Xh=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};function Qh(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const ef=e=>Array.isArray(e)?e:[e],tf=e=>{const t="#text";for(const r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=tf(e[r]));return e},rf=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};function nf(e,t,r){let n,a,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return a=t,i=r,sf(n,a,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?of(n,null,i,e):n[e]=i[e];return n}rf.prototype=Object.create(String.prototype,{constructor:{value:rf,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(rf,String);const af=(e,t)=>{const r={};for(const n in t)of(r,e,t,n);return r},sf=(e,t,r)=>nf(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),of=(e,t,r,n)=>{if(null!==t){let a=r[n];"function"==typeof a&&(a=[,a]);const[i=df,s=lf,o=n]=a;return void(("function"==typeof i&&i(t[o])||"function"!=typeof i&&i)&&(e[n]=s(t[o])))}let[a,i]=r[n];if("function"==typeof i){let t;const r=void 0===a&&null!=(t=i()),s="function"==typeof a&&!!a(void 0)||"function"!=typeof a&&!!a;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===a&&null!=i,r="function"==typeof a&&!!a(i)||"function"!=typeof a&&!!a;(t||r)&&(e[n]=i)}},df=e=>null!=e,lf=e=>e,uf=(e,t,r,n,a,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(a,i?t.split("/").map((e=>Qh(e))).join("/"):Qh(t))}return e},pf=e=>{if(e!=e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},cf=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter((e=>null!=e));if("object"==typeof e){const t={};for(const r of Object.keys(e))null!=e[r]&&(t[r]=cf(e[r]));return t}return e};var mf;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(mf||(mf={}));const hf=!1,ff=!1,gf=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},yf=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),vf=e=>yf(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,wf=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return vf(t);const e=await t();return vf(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!yf(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}};var bf;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(bf||(bf={}));class Sf{constructor(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.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const e=new Sf({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}}),{}))),e}}class Ef{constructor(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const _f="content-length";const xf={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Cf=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(Sf.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(_f))try{const t=r(e);n.headers={...n.headers,[_f]:String(t)}}catch(e){}}return e({...t,request:n})}),xf)}}),Nf=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,kf=/(\d+\.){3}\d+/,Tf=/\.\./,Af=e=>Nf.test(e)&&!kf.test(e)&&!Tf.test(e),Pf=e=>{const[t,r,n,a,i,s]=e.split(":"),o="arn"===t&&e.split(":").length>=6,d=5===[t,r,n,i,s].filter(Boolean).length;if(o&&!d)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&i&&s)},If=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:a}=e;return`${t}//${r}${n?":"+n:""}${a}`}}return e}:n},Of=async(e,t,r,n)=>{const a=await Df(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(a,n)},Df=async(e,t,r)=>{const n={},a=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(a))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await If(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(a).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Pf(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Af(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n};const Rf=e=>{if("string"==typeof e)return Rf(new URL(e));const{hostname:t,pathname:r,port:n,protocol:a,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:a,path:r,query:s}},Mf=e=>"object"==typeof e?"url"in e?Rf(e.url):e:Rf(e),Lf={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ff={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function jf(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>(r,n)=>async n=>{const{response:a}=await r(n);try{return{response:a,output:await t(a,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:a}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t}throw e}})(e,r),Lf),n.add(((e,t)=>(r,n)=>async a=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(a.input,{...e,endpoint:i});return r({...a,request:s})})(e,t),Ff)}}}const Uf={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Ff.name},Vf=(e,t)=>({applyToStack:r=>{r.addRelativeTo((({config:e,instructions:t})=>(r,n)=>async a=>{const i=await Of(a.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];return s&&(n.signing_region=s.signingRegion,n.signing_service=s.signingName),r({...a})})({config:e,instructions:t}),Uf)}}),Bf=e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>Mf(await gf(r)()):void 0,a=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:a,useDualstackEndpoint:gf(e.useDualstackEndpoint??!1),useFipsEndpoint:gf(e.useFipsEndpoint??!1)}};const $f={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},zf=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!Sf.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:a=""}=e.requestHandler.metadata||{};if(a.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]="";else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),$f)}}),qf={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Hf=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:a,commandName:i,logger:s,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:l}=o,u=d??t.inputFilterSensitiveLog,p=l??t.outputFilterSensitiveLog,{$metadata:c,...m}=n.output;return s?.info?.({clientName:a,commandName:i,input:u(r.input),output:p(m),metadata:c}),n}catch(e){const{clientName:n,commandName:a,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:o}=s,d=o??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:a,input:d(r.input),error:e,metadata:e.$metadata}),e}}),qf)}}),Kf="X-Amzn-Trace-Id",Gf={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Wf=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!Sf.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(Kf))return t(r);const a=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(a)&&s(i)&&(n.headers[Kf]=i),t({...r,request:n})})(e),Gf)}});var Zf;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(Zf||(Zf={}));const Jf=Zf.STANDARD,Yf=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Xf=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],Qf=[500,502,503,504],eg=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],tg=e=>429===e.$metadata?.httpStatusCode||Yf.includes(e.name)||1==e.$retryable?.throttling,rg=e=>Xf.includes(e.name)||eg.includes(e?.code||"")||Qf.includes(e.$metadata?.httpStatusCode||0);class ng{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),tg(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const ag=(e,t,r,n)=>{const a=e,i=n?.retryCost??5,s=n?.timeoutRetryCost??10,o=n?.retryBackoffStrategy??(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})();let d,l=e,u=Math.min(2e4,t),p=r??0;const c=e=>"TRANSIENT"===e?s:i,m=e=>c(e)<=l;return{getRetryCount:()=>p,getRetryDelay:()=>u,getLastRetryCost:()=>d,hasRetryTokens:m,getRetryTokenCount:e=>{const t=e.errorType;if(!m(t))throw new Error("No retry token available");const r=c(t),n="THROTTLING"===t?500:100;o.setDelayBase(n);const a=o.computeNextBackoffDelay(p);if(e.retryAfterHint){const t=e.retryAfterHint.getTime()-Date.now();u=Math.max(t||0,a)}else u=a;return p++,d=r,l-=r,r},releaseRetryTokens:e=>{l+=e??1,l=Math.min(l,a)}}};class ig{constructor(e){this.maxAttempts=e,this.mode=Zf.STANDARD,this.retryToken=ag(500,100),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return this.retryToken}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r))return e.getRetryTokenCount(t),e;throw new Error("No retry token available")}recordSuccess(e){this.retryToken.releaseRetryTokens(e.getLastRetryCost())}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()<r&&e.hasRetryTokens(t.errorType)&&this.isRetryableError(t.errorType)}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class sg{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Zf.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new ng,this.standardRetryStrategy=new ig(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}var og,dg=new Uint8Array(16);function lg(){if(!og&&!(og="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return og(dg)}var ug=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var pg=[],cg=0;cg<256;++cg)pg.push((cg+256).toString(16).substr(1));function mg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(pg[e[t+0]]+pg[e[t+1]]+pg[e[t+2]]+pg[e[t+3]]+"-"+pg[e[t+4]]+pg[e[t+5]]+"-"+pg[e[t+6]]+pg[e[t+7]]+"-"+pg[e[t+8]]+pg[e[t+9]]+"-"+pg[e[t+10]]+pg[e[t+11]]+pg[e[t+12]]+pg[e[t+13]]+pg[e[t+14]]+pg[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&ug.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function hg(e,t,r){var n=(e=e||{}).random||(e.rng||lg)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return mg(n)}const fg=e=>{const{retryStrategy:t}=e,r=gf(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>{if(t)return t;return await gf(e.retryMode)()===Zf.ADAPTIVE?new sg(r):new ig(r)}}},gg=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,yg=e=>{const t={errorType:vg(e)},r=Sg(e.$response);return r&&(t.retryAfterHint=r),t},vg=e=>tg(e)?"THROTTLING":rg(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!rg(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",wg={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bg=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let a=await e.retryStrategy();const i=await e.maxAttempts();if(!gg(a))return a?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",a.mode]]),a.retry(t,n);{let e=await a.acquireInitialRetryToken(r.partition_id),o=new Error,d=0,l=0;const{request:u}=n;for(Sf.isInstance(u)&&(u.headers["amz-sdk-invocation-id"]=hg());;)try{Sf.isInstance(u)&&(u.headers["amz-sdk-request"]=`attempt=${d+1}; max=${i}`);const{response:r,output:s}=await t(n);return a.recordSuccess(e),s.$metadata.attempts=d+1,s.$metadata.totalRetryDelay=l,{response:r,output:s}}catch(t){const r=yg(t);o=(s=t)instanceof Error?s:s instanceof Object?Object.assign(new Error,s):"string"==typeof s?new Error(s):new Error(`AWS SDK error wrapper for ${s}`);try{e=await a.refreshRetryTokenForRetry(e,r)}catch(e){throw o.$metadata||(o.$metadata={}),o.$metadata.attempts=d+1,o.$metadata.totalRetryDelay=l,o}d=e.getRetryCount();const n=e.getRetryDelay();l+=n,await new Promise((e=>setTimeout(e,n)))}}var s})(e),wg)}}),Sg=e=>{if(!Ef.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Eg=(e,t,r)=>{let n,a,i,s=!1;const o=async()=>{a||(a=e());try{n=await a,i=!0,s=!1}finally{a=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await o()),n):async e=>(i&&!e?.forceRefresh||(n=await o()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await o(),n):n)},_g={},xg={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),_g[e]=t,xg[t]=e}function Cg(e){let t="";for(let r=0;r<e.byteLength;r++)t+=_g[e[r]];return t}const Ng=e=>(new TextEncoder).encode(e),kg=e=>"string"==typeof e?Ng(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Tg=e=>new TextDecoder("utf-8").decode(e),Ag="X-Amz-Date",Pg="X-Amz-Signature",Ig="X-Amz-Security-Token",Og="authorization",Dg=Ag.toLowerCase(),Rg=[Og,Dg,"date"],Mg=Pg.toLowerCase(),Lg="x-amz-content-sha256",Fg=Ig.toLowerCase(),jg={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},Ug=/^proxy-/,Vg=/^sec-/,Bg="AWS4-HMAC-SHA256",$g="AWS4-HMAC-SHA256-PAYLOAD",zg="aws4_request",qg={},Hg=[],Kg=(e,t,r)=>`${e}/${t}/${r}/${zg}`,Gg=(e,t,r)=>{const n=new e(t);return n.update(kg(r)),n.digest()},Wg=({headers:e},t,r)=>{const n={};for(const a of Object.keys(e).sort()){if(null==e[a])continue;const i=a.toLowerCase();(i in jg||t?.has(i)||Ug.test(i)||Vg.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[a].trim().replace(/\s+/g," "))}return n},Zg=e=>encodeURIComponent(e).replace(/[!'()*]/g,Jg),Jg=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,Yg=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),Xg=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===Lg)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||Yg(t)){const e=new r;return e.update(kg(t)),Cg(await e.digest())}return"UNSIGNED-PAYLOAD"},Qg=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?ey(t):void 0}),ey=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),ty=e=>{e="function"==typeof e.clone?e.clone():Qg(e);for(const t of Object.keys(e.headers))Rg.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ry=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class ny{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:a,uriEscapePath:i=!0}){this.service=n,this.sha256=a,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=gf(r),this.credentialProvider=gf(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:a,unhoistableHeaders:i,signableHeaders:s,signingRegion:o,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);const u=o??await this.regionProvider(),{longDate:p,shortDate:c}=ay(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=Kg(c,u,d??this.service),h=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():Qg(e);for(const e of Object.keys(r)){const a=e.toLowerCase();"x-amz-"!==a.slice(0,6)||t.unhoistableHeaders?.has(a)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(ty(e),{unhoistableHeaders:i});l.sessionToken&&(h.query[Ig]=l.sessionToken),h.query["X-Amz-Algorithm"]=Bg,h.query["X-Amz-Credential"]=`${l.accessKeyId}/${m}`,h.query[Ag]=p,h.query["X-Amz-Expires"]=n.toString(10);const f=Wg(h,a,s);return h.query["X-Amz-SignedHeaders"]=iy(f),h.query[Pg]=await this.getSignature(p,m,this.getSigningKey(l,u,c,d),this.createCanonicalRequest(h,f,await Xg(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:a,signingService:i}){const s=a??await this.regionProvider(),{shortDate:o,longDate:d}=ay(r),l=Kg(o,s,i??this.service),u=await Xg({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);const c=Cg(await p.digest()),m=[$g,d,l,n,c,u].join("\n");return this.signString(m,{signingDate:r,signingRegion:s,signingService:i})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const i=r??await this.regionProvider(),{shortDate:s}=ay(t),o=new this.sha256(await this.getSigningKey(a,i,s,n));return o.update(kg(e)),Cg(await o.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:a,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=a??await this.regionProvider(),d=ty(e),{longDate:l,shortDate:u}=ay(t),p=Kg(u,o,i??this.service);d.headers[Dg]=l,s.sessionToken&&(d.headers[Fg]=s.sessionToken);const c=await Xg(d,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(Lg,d.headers)&&this.applyChecksum&&(d.headers[Lg]=c);const m=Wg(d,n,r),h=await this.getSignature(l,p,this.getSigningKey(s,o,u,i),this.createCanonicalRequest(d,m,c));return d.headers[Og]=`${Bg} Credential=${s.accessKeyId}/${p}, SignedHeaders=${iy(m)}, Signature=${h}`,d}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===Mg)continue;t.push(n);const a=e[n];"string"==typeof a?r[n]=`${Zg(n)}=${Zg(a)}`:Array.isArray(a)&&(r[n]=a.slice(0).sort().reduce(((e,t)=>e.concat([`${Zg(n)}=${Zg(t)}`])),[]).join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(kg(r));const a=await n.digest();return`${Bg}\n${e}\n${t}\n${Cg(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const a=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(kg(a)),Cg(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,a)=>{const i=`${r}:${n}:${a}:${Cg(await Gg(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in qg)return qg[i];for(Hg.push(i);Hg.length>50;)delete qg[Hg.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,a,zg])s=await Gg(e,s,t);return qg[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const ay=e=>{const t=(r=e,ry(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},iy=e=>Object.keys(e).sort().join(";"),sy=e=>{const t=e.credentials?oy(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:a}=e;let i;return i=e.signer?gf(e.signer):e.regionInfoProvider?()=>gf(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:o}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:r};return new(e.signerConstructor||ny)(d)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await gf(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const o={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:r};return new(e.signerConstructor||ny)(o)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},oy=e=>"function"==typeof e?Eg(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):gf(e),dy=e=>new Date(Date.now()+e),ly=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(dy(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},uy=e=>Ef.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,py={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},cy=e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,r)=>async function(n){if(!Sf.isInstance(n.request))return t(n);const a=r.endpointV2?.properties?.authSchemes?.[0],i="sigv4a"===a?.name?a?.signingRegionSet?.join(","):void 0,s=await e.signer(a),o=await t({...n,request:await s.sign(n.request,{signingDate:dy(e.systemClockOffset),signingRegion:i||r.signing_region,signingService:r.signing_service})}).catch((t=>{const r=t.ServerTime??uy(t.$response);throw r&&(e.systemClockOffset=ly(r,e.systemClockOffset)),t})),d=uy(o.response);return d&&(e.systemClockOffset=ly(d,e.systemClockOffset)),o})(e),py)}});function my(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}var hy={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};let fy=hy,gy="";const yy=(e,t="")=>{fy=e,gy=t},vy=()=>gy,wy="endpoints";function by(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${by(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(by).join(", ")})`:JSON.stringify(e,null,2)}class Sy extends Error{constructor(e){super(e),this.name="EndpointError"}}const Ey=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),_y=e=>Ey.test(e)||e.startsWith("[")&&e.endsWith("]"),xy=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Cy=(e,t=!1)=>{if(!t)return xy.test(e);const r=e.split(".");for(const e of r)if(!Cy(e))return!1;return!0},Ny=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Ny(t))return!1;return!0}return!!Cy(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!_y(e)))};var ky=Object.freeze({__proto__:null,getUserAgentPrefix:vy,isVirtualHostableS3Bucket:Ny,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,a,i,s,...o]=t;return"arn"!==r||""===n||""===a||""===o[0]?null:{partition:n,service:a,region:i,accountId:s,resourceId:o[0].includes("/")?o[0].split("/"):o}},partition:e=>{const{partitions:t}=fy;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,a]of Object.entries(t))if(r===e)return{...n,...a}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},setPartitionInfo:yy,useDefaultPartitionInfo:()=>{yy(hy,"")}});const Ty=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new Sy(`Path: '${e}' does not end with ']'`);const a=n.slice(t+1,-1);if(Number.isNaN(parseInt(a)))throw new Sy(`Invalid array index: '${a}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(a)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new Sy(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e);var Ay,Py,Iy,Oy;!function(e){e.HEADER="header",e.QUERY="query"}(Ay||(Ay={})),function(e){e.AAAA="AAAA",e.A="A"}(Py||(Py={})),function(e){e.HTTP="http",e.HTTPS="https"}(Iy||(Iy={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(Oy||(Oy={}));const Dy={[Iy.HTTP]:80,[Iy.HTTPS]:443};var Ry=Object.freeze({__proto__:null,aws:ky,booleanEquals:(e,t)=>e===t,getAttr:Ty,isSet:e=>null!=e,isValidHostLabel:Cy,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:a="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${a}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:a,pathname:i,protocol:s,search:o}=t;if(o)return null;const d=s.slice(0,-1);if(!Object.values(Iy).includes(d))return null;const l=_y(a);return{scheme:d,authority:`${n}${r.includes(`${n}:${Dy[d]}`)||"string"==typeof e&&e.includes(`${n}:${Dy[d]}`)?`:${Dy[d]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:l}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))});const My=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let a=0;for(;a<e.length;){const t=e.indexOf("{",a);if(-1===t){r.push(e.slice(a));break}r.push(e.slice(a,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),a=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(Ty(n[e],t))}else r.push(n[s]);a=i+1}return r.join("")},Ly=(e,t,r)=>{if("string"==typeof e)return My(e,r);if(e.fn)return Fy(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new Sy(`'${t}': ${String(e)} is not a string, function or reference.`)},Fy=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:Ly(e,"arg",r)));return e.split(".").reduce(((e,t)=>e[t]),Ry)(...n)},jy=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new Sy(`'${e}' is already defined in Reference Record.`);const n=Fy(t,r);return r.logger?.debug?.(wy,`evaluateCondition: ${by(t)} = ${by(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Uy=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:a}=jy(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};a&&(r[a.name]=a.value,t.logger?.debug?.(wy,`assign: ${a.name} := ${by(a.value)}`))}return{result:!0,referenceRecord:r}},Vy=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=Ly(e,"Header value entry",t);if("string"!=typeof n)throw new Sy(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),By=(e,t)=>{if(Array.isArray(e))return e.map((e=>By(e,t)));switch(typeof e){case"string":return My(e,t);case"object":if(null===e)throw new Sy(`Unexpected endpoint property: ${e}`);return $y(e,t);case"boolean":return e;default:throw new Sy("Unexpected endpoint property type: "+typeof e)}},$y=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:By(n,t)})),{}),zy=(e,t)=>{const r=Ly(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new Sy("Endpoint URL must be a string, got "+typeof r)},qy=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:a,referenceRecord:i}=Uy(r,t);if(!a)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:o,properties:d,headers:l}=n;return t.logger?.debug?.(wy,`Resolving endpoint from template: ${by(n)}`),{...null!=l&&{headers:Vy(l,s)},...null!=d&&{properties:$y(d,s)},url:zy(o,s)}},Hy=(e,t)=>{const{conditions:r,error:n}=e,{result:a,referenceRecord:i}=Uy(r,t);if(a)throw new Sy(Ly(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},Ky=(e,t)=>{const{conditions:r,rules:n}=e,{result:a,referenceRecord:i}=Uy(r,t);if(a)return Gy(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},Gy=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=qy(r,t);if(e)return e}else if("error"===r.type)Hy(r,t);else{if("tree"!==r.type)throw new Sy(`Unknown endpoint rule: ${r}`);{const e=Ky(r,t);if(e)return e}}throw new Sy("Rules evaluation failed")},Wy=(e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:a,rules:i}=e;t.logger?.debug?.(`${wy} Initial EndpointParams: ${by(r)}`);const s=Object.entries(a).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const o=Object.entries(a).filter((([,e])=>e.required)).map((([e])=>e));for(const e of o)if(null==r[e])throw new Sy(`Missing required parameter: '${e}'`);const d=Gy(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;d.url.protocol=r,d.url.port=n}catch(e){}return t.logger?.debug?.(`${wy} Resolved endpoint: ${by(d)}`),d},Zy="user-agent",Jy="x-amz-user-agent",Yy=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Xy=([e,t])=>{const r=e.indexOf("/"),n=e.substring(0,r);let a=e.substring(r+1);return"api"===n&&(a=a.toLowerCase()),[n,a,t].filter((e=>e&&e.length>0)).map((e=>e?.replace(Yy,"_"))).join("/")},Qy={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},ev=e=>({applyToStack:t=>{var r;t.add((r=e,(e,t)=>async n=>{const{request:a}=n;if(!Sf.isInstance(a))return e(n);const{headers:i}=a,s=t?.userAgent?.map(Xy)||[],o=(await r.defaultUserAgentProvider()).map(Xy),d=r?.customUserAgent?.map(Xy)||[],l=vy(),u=(l?[l]:[]).concat([...o,...s,...d]).join(" "),p=[...o.filter((e=>e.startsWith("aws-sdk-"))),...d].join(" ");return"browser"!==r.runtime?(p&&(i[Jy]=i[Jy]?`${i[Zy]} ${p}`:p),i[Zy]=u):i[Jy]=u,e({...n,request:a})}),Qy)}});var tv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var av={},iv=function(e,t){return iv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},iv(e,t)};var sv=function(){return sv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},sv.apply(this,arguments)};var ov=Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function dv(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lv(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return s}function uv(e){return this instanceof uv?(this.v=e,this):new uv(e)}var pv=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};var cv,mv=Object.freeze({__proto__:null,get __assign(){return sv},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:uv(e[n](t)),done:!1}:a?a(t):t}:a}},__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,a=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){a[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{!function(e){e.value instanceof uv?Promise.resolve(e.value.v).then(d,l):u(i[0][2],e)}(a[e](t))}catch(e){u(i[0][3],e)}}function d(e){o("next",e)}function l(e){o("throw",e)}function u(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=dv(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,a,(t=e[r](t)).done,t.value)}))}}},__await:uv,__awaiter:function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function s(e){try{d(n.next(e))}catch(e){i(e)}}function o(e){try{d(n.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}d((n=n.apply(e,t||[])).next())}))},__classPrivateFieldGet:function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},__classPrivateFieldSet:function(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},__createBinding:ov,__decorate:function(e,t,r,n){var a,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},__esDecorate:function(e,t,r,n,a,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,d=n.kind,l="getter"===d?"get":"setter"===d?"set":"value",u=!t&&e?n.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),c=!1,m=r.length-1;m>=0;m--){var h={};for(var f in n)h[f]="access"===f?{}:n[f];for(var f in n.access)h.access[f]=n.access[f];h.addInitializer=function(e){if(c)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var g=(0,r[m])("accessor"===d?{get:p.get,set:p.set}:p[l],h);if("accessor"===d){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(o=s(g.get))&&(p.get=o),(o=s(g.set))&&(p.set=o),(o=s(g.init))&&a.push(o)}else(o=s(g))&&("field"===d?a.push(o):p[l]=o)}u&&Object.defineProperty(u,n.name,p),c=!0},__exportStar:function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||ov(t,e,r)},__extends:function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}iv(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},__generator:function(e,t){var r,n,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(o){return function(d){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,d])}}},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&ov(t,e,r);return pv(t,e),t},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__param:function(e,t){return function(r,n){t(r,n,e)}},__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:lv,__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},__runInitializers:function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},__setFunctionName:function(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lv(arguments[t]));return e},__spreadArray:function(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))},__spreadArrays:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,o=i.length;s<o;s++,a++)n[a]=i[s];return n},__values:dv}),hv=nv(mv),fv={},gv={},yv={};var vv,wv={};function bv(){return vv||(vv=1,e=wv,Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_DATA_SHA_256=e.SHA_256_HMAC_ALGO=e.SHA_256_HASH=void 0,e.SHA_256_HASH={name:"SHA-256"},e.SHA_256_HMAC_ALGO={name:"HMAC",hash:e.SHA_256_HASH},e.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])),wv;var e}var Sv=Object.freeze({__proto__:null,fromUtf8:e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const a=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),toUtf8:e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const a=e[++r];t+=String.fromCharCode((31&n)<<6|63&a)}else if(240<=n&&n<365){const a="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)}),Ev=nv(Sv);const _v={};var xv,Cv=nv(Object.freeze({__proto__:null,locateWindow:function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:_v}}));function Nv(){if(xv)return gv;xv=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.Sha256=void 0;var e=(cv||(cv=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.isEmptyData=void 0,yv.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}),yv),t=bv(),r=Ev,n=Cv,a=function(){function r(e){this.secret=e,this.reset()}return r.prototype.update=function(t){var r=this;(0,e.isEmptyData)(t)||(this.operation=this.operation.then((function(e){return e.onerror=function(){r.operation=Promise.reject(new Error("Error encountered updating hash"))},e.process(i(t)),e})),this.operation.catch((function(){})))},r.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(new Error("Error encountered finalizing hash"))},e.finish()}))}))},r.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise((function(r,a){var s=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",i(e),t.SHA_256_HMAC_ALGO,!1,["sign"]);s.oncomplete=function(){s.result&&r(s.result),a(new Error("ImportKey completed without importing key."))},s.onerror=function(){a(new Error("ImportKey failed to import key."))}}))).then((function(e){return(0,n.locateWindow)().msCrypto.subtle.sign(t.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},r}();function i(e){return"string"==typeof e?(0,r.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}return gv.Sha256=a,gv}var kv,Tv={},Av={},Pv={};var Iv,Ov={};var Dv,Rv={};var Mv,Lv,Fv,jv={};function Uv(){return Lv||(Lv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=function(){if(kv)return Pv;kv=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.convertToBuffer=void 0;var e=Ev,t="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e.fromUtf8;return Pv.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?t(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},Pv}();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var r=(Iv||(Iv=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.isEmptyData=void 0,Ov.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}),Ov);Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var n=(Dv||(Dv=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.numToUint8=void 0,Rv.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}),Rv);Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var a=(Mv||(Mv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.uint32ArrayFrom=void 0,jv.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}),jv);Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})}(Av)),Av}function Vv(){if(Fv)return Tv;Fv=1,Object.defineProperty(Tv,"__esModule",{value:!0}),Tv.Sha256=void 0;var e=Uv(),t=bv(),r=Cv,n=function(){function n(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return n.prototype.update=function(t){if(!(0,e.isEmptyData)(t)){var r=(0,e.convertToBuffer)(t),n=new Uint8Array(this.toHash.byteLength+r.byteLength);n.set(this.toHash,0),n.set(r,this.toHash.byteLength),this.toHash=n}},n.prototype.digest=function(){var n=this;return this.key?this.key.then((function(e){return(0,r.locateWindow)().crypto.subtle.sign(t.SHA_256_HMAC_ALGO,e,n.toHash).then((function(e){return new Uint8Array(e)}))})):(0,e.isEmptyData)(this.toHash)?Promise.resolve(t.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,r.locateWindow)().crypto.subtle.digest(t.SHA_256_HASH,n.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},n.prototype.reset=function(){var n=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(a,i){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,e.convertToBuffer)(n.secret),t.SHA_256_HMAC_ALGO,!1,["sign"]).then(a,i)})),this.key.catch((function(){})))},n}();return Tv.Sha256=n,Tv}var Bv,$v={},zv={},qv={};function Hv(){return Bv||(Bv=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.MAX_HASHABLE_LENGTH=qv.INIT=qv.KEY=qv.DIGEST_LENGTH=qv.BLOCK_SIZE=void 0,qv.BLOCK_SIZE=64,qv.DIGEST_LENGTH=32,qv.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]),qv.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],qv.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),qv}var Kv,Gv,Wv,Zv={};function Jv(){if(Gv)return zv;Gv=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.Sha256=void 0;var e=hv,t=Hv(),r=function(){if(Kv)return Zv;Kv=1,Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.RawSha256=void 0;var e=Hv(),t=function(){function t(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,n=t.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[r++],n--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var a=this.bufferLength;a<e.BLOCK_SIZE;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(a=this.bufferLength;a<e.BLOCK_SIZE-8;a++)r.setUint8(a,0);r.setUint32(e.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),r.setUint32(e.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(e.DIGEST_LENGTH);for(a=0;a<8;a++)i[4*a]=this.state[a]>>>24&255,i[4*a+1]=this.state[a]>>>16&255,i[4*a+2]=this.state[a]>>>8&255,i[4*a+3]=this.state[a]>>>0&255;return i},t.prototype.hashBuffer=function(){for(var t=this.buffer,r=this.state,n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],d=r[5],l=r[6],u=r[7],p=0;p<e.BLOCK_SIZE;p++){if(p<16)this.temp[p]=(255&t[4*p])<<24|(255&t[4*p+1])<<16|(255&t[4*p+2])<<8|255&t[4*p+3];else{var c=this.temp[p-2],m=(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10,h=((c=this.temp[p-15])>>>7|c<<25)^(c>>>18|c<<14)^c>>>3;this.temp[p]=(m+this.temp[p-7]|0)+(h+this.temp[p-16]|0)}var f=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&d^~o&l)|0)+(u+(e.KEY[p]+this.temp[p]|0)|0)|0,g=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&a^n&i^a&i)|0;u=l,l=d,d=o,o=s+f|0,s=i,i=a,a=n,n=f+g|0}r[0]+=n,r[1]+=a,r[2]+=i,r[3]+=s,r[4]+=o,r[5]+=d,r[6]+=l,r[7]+=u},t}();return Zv.RawSha256=t,Zv}(),n=Uv(),a=function(){function a(e){this.secret=e,this.hash=new r.RawSha256,this.reset()}return a.prototype.update=function(e){if(!(0,n.isEmptyData)(e)&&!this.error)try{this.hash.update((0,n.convertToBuffer)(e))}catch(e){this.error=e}},a.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},a.prototype.digest=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.digestSync()]}))}))},a.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var e=function(e){var a=(0,n.convertToBuffer)(e);if(a.byteLength>t.BLOCK_SIZE){var i=new r.RawSha256;i.update(a),a=i.digest()}var s=new Uint8Array(t.BLOCK_SIZE);return s.set(a),s}(this.secret),a=new Uint8Array(t.BLOCK_SIZE);a.set(e);for(var i=0;i<t.BLOCK_SIZE;i++)e[i]^=54,a[i]^=92;this.hash.update(e),this.outer.update(a);for(i=0;i<e.byteLength;i++)e[i]=0}},a}();return zv.Sha256=a,zv}var Yv,Xv,Qv={},ew={};function tw(){return Xv||(Xv=1,e=Qv,Object.defineProperty(e,"__esModule",{value:!0}),hv.__exportStar(function(){if(Yv)return ew;Yv=1,Object.defineProperty(ew,"__esModule",{value:!0}),ew.supportsZeroByteGCM=ew.supportsSubtleCrypto=ew.supportsSecureRandom=ew.supportsWebCrypto=void 0;var e=hv,t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function n(e){return e&&t.every((function(t){return"function"==typeof e[t]}))}return ew.supportsWebCrypto=function(e){return!(!r(e)||"object"!=typeof e.crypto.subtle)&&n(e.crypto.subtle)},ew.supportsSecureRandom=r,ew.supportsSubtleCrypto=n,ew.supportsZeroByteGCM=function(t){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:if(!n(t))return[2,!1];e.label=1;case 1:return e.trys.push([1,4,,5]),[4,t.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return r=e.sent(),[4,t.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},r,new Uint8Array(0))];case 3:return[2,16===e.sent().byteLength];case 4:return e.sent(),[2,!1];case 5:return[2]}}))}))},ew}(),e)),Qv;var e}var rw,nw={},aw={};var iw,sw={};var ow,dw={};var lw,uw={};var pw,cw,mw,hw={};function fw(){return cw||(cw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=hv;t.__exportStar((rw||(rw=1,Object.defineProperty(aw,"__esModule",{value:!0})),aw),e),t.__exportStar((iw||(iw=1,Object.defineProperty(sw,"__esModule",{value:!0})),sw),e),t.__exportStar((ow||(ow=1,Object.defineProperty(dw,"__esModule",{value:!0})),dw),e),t.__exportStar((lw||(lw=1,Object.defineProperty(uw,"__esModule",{value:!0})),uw),e),t.__exportStar(function(){if(pw)return hw;pw=1,Object.defineProperty(hw,"__esModule",{value:!0}),hw.isMsWindow=void 0;var e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];return hw.isMsWindow=function(t){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(t)&&void 0!==t.msCrypto.subtle){var r=t.msCrypto,n=r.getRandomValues,a=r.subtle;return e.map((function(e){return a[e]})).concat(n).every((function(e){return"function"==typeof e}))}return!1},hw}(),e)}(nw)),nw}function gw(){if(mw)return fv;mw=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.Sha256=void 0;var e,t=Nv(),r=Vv(),n=(Wv||(Wv=1,e=$v,Object.defineProperty(e,"__esModule",{value:!0}),hv.__exportStar(Jv(),e)),$v),a=tw(),i=fw(),s=Cv,o=Uv(),d=function(){function e(e){(0,a.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new r.Sha256(e):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(e):this.hash=new n.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();return fv.Sha256=d,fv}function yw(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Zg(r),Array.isArray(n))for(let e=0,a=n.length;e<a;e++)t.push(`${r}=${Zg(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Zg(n)}`),t.push(e)}}return t.join("&")}function vw(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WebCryptoSha256=e.Ie11Sha256=void 0,hv.__exportStar(gw(),e);var t=Nv();Object.defineProperty(e,"Ie11Sha256",{enumerable:!0,get:function(){return t.Sha256}});var r=Vv();Object.defineProperty(e,"WebCryptoSha256",{enumerable:!0,get:function(){return r.Sha256}})}(av);class ww{constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let n=e.path;if(e.query){const t=yw(e.query);t&&(n+=`?${t}`)}const{port:a,method:i}=e,s=`${e.protocol}//${e.hostname}${a?`:${a}`:""}${n}`,o={body:"GET"===i||"HEAD"===i?void 0:e.body,headers:new Headers(e.headers),method:i};"undefined"!=typeof AbortController&&(o.signal=t);const d=new Request(s,o),l=[fetch(d).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new Ef({headers:r,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new Ef({headers:r,statusCode:e.status,body:t})})))})),vw(r)];return t&&l.push(new Promise(((e,r)=>{t.onabort=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)}}))),Promise.race(l)}}const bw={},Sw=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);bw[r]=e,Sw[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;bw[r]=n,Sw[n]=r}for(let e=0;e<10;e++){bw[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;bw[t]=r,Sw[r]=t}bw["+"]=62,Sw[62]="+",bw["/"]=63,Sw[63]="/";const Ew=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,a=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in bw))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=bw[e[n]]<<6*(i-n),a+=6}else r>>=6;const i=t/4*3;r>>=a%8;const s=Math.floor(a/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)};function _w(e){let t="";for(let r=0;r<e.length;r+=3){let n=0,a=0;for(let t=r,i=Math.min(r+3,e.length);t<i;t++)n|=e[t]<<8*(i-t-1),a+=8;const i=Math.ceil(a/6);n<<=6*i-a;for(let e=1;e<=i;e++){const r=6*(i-e);t+=Sw[(n&63<<r)>>r]}t+="==".slice(0,4-i)}return t}const xw=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",a=e.indexOf(","),i=a>-1?a+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=Ew(t);return new Uint8Array(r)}(e):async function(e){let t=new Uint8Array(0);const r=e.getReader();let n=!1;for(;!n;){const{done:e,value:a}=await r.read();if(a){const e=t;t=new Uint8Array(e.length+a.length),t.set(e),t.set(a,e.length)}n=e}return t}(e);const Cw=e=>()=>Promise.reject(e),Nw=e=>{if("string"==typeof e){let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)};var kw={exports:{}};kw.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=r(18),a=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";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,r,n){void 0===n&&(n=!1);var a=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(a,i),o=0,d=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(o=s-Math.min(a,i)),s-=1;s>=o;){if(d[0][s]>d[1][s])return 1;if(d[0][s]===d[1][s]){if(s===o)return 0;s-=1}else if(d[0][s]<d[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var a=e[r];if(t(a,r))return a}},e.assign=function(e){for(var t,r,n=e,a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var o=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)o();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=a,e.exports=t.default},18:function(e,t,r){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new a.default(e,t)},e.parse=function(e){return new a.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=o,e.exports=t.default},91:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=d(r(92)),a=d(r(93)),i=d(r(94)),s=d(r(95)),o=d(r(17));function d(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=o.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=o.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=o.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return o.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,a={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(a[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),d=o.default.find(s,(function(e){return t.isOS(e)}));if(d){var l=this.satisfies(r[d]);if(void 0!==l)return l}var u=o.default.find(s,(function(e){return t.isPlatform(e)}));if(u){var p=this.satisfies(r[u]);if(void 0!==p)return p}}if(i>0){var c=Object.keys(a),m=o.default.find(c,(function(e){return t.isBrowser(e,!0)}));if(void 0!==m)return this.compareVersion(a[m])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=o.default.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,a=this.getBrowserVersion();if("string"==typeof a)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(a,r,n))>-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=l,e.exports=t.default},92:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=a.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=a.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=a.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=a.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=a.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=a.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=a.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=a.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=a.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=a.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=a.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=a.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=a.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=a.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=a.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=a.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=a.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=a.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=a.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=a.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=a.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=a.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=a.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=a.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=a.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=a.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=a.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:a.default.getFirstMatch(t,e),version:a.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=a.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=a.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=a.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=a.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=a.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=a.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=a.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=a.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=a.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=a.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=a.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=a.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||a.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||a.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=a.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=a.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=a.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=a.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=a.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.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:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=a.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=a.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=a.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=a.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=a.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}});var Tw=rv(kw.exports);const Aw=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?Tw.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n},Pw=["in-region","cross-region","mobile","standard","legacy"],Iw=({defaultsMode:e}={})=>Eg((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(Ow()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Pw.join(", ")}, got ${t}`)}})),Ow=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?Tw.parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t};class Dw extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,Dw.prototype)}}class Rw extends Dw{constructor(e){super({name:"ClientException",$fault:"client",...e}),this.name="ClientException",this.$fault="client",Object.setPrototypeOf(this,Rw.prototype)}}class Mw extends Dw{constructor(e){super({name:"ServerException",$fault:"server",...e}),this.name="ServerException",this.$fault="server",Object.setPrototypeOf(this,Mw.prototype)}}const Lw=async(e,t)=>{const r={...e,body:await qw(e.body,t)},n=Hw(e,r.body);switch(n){case"ClientException":case"com.amazonaws.batch#ClientException":throw await Uw(r);case"ServerException":case"com.amazonaws.batch#ServerException":throw await Vw(r);default:const t=r.body;return jw({output:e,parsedBody:t,errorCode:n})}},Fw=async(e,t)=>{const r={...e,body:await qw(e.body,t)},n=Hw(e,r.body);switch(n){case"ClientException":case"com.amazonaws.batch#ClientException":throw await Uw(r);case"ServerException":case"com.amazonaws.batch#ServerException":throw await Vw(r);default:const t=r.body;return jw({output:e,parsedBody:t,errorCode:n})}},jw=Jh(Dw),Uw=async(e,t)=>{const r=nf({}),n=e.body,a=af(n,{message:gh});Object.assign(r,a);const i=new Rw({$metadata:Bw(e),...r});return Zh(i,e.body)},Vw=async(e,t)=>{const r=nf({}),n=e.body,a=af(n,{message:gh});Object.assign(r,a);const i=new Mw({$metadata:Bw(e),...r});return Zh(i,e.body)},Bw=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),$w=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),zw=(e,t)=>$w(e,t).then((e=>e.length?JSON.parse(e):{})),qw=async(e,t)=>{const r=await zw(e,t);return r.message=r.message??r.Message,r},Hw=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(a=e.headers,i="x-amzn-errortype",Object.keys(a).find((e=>e.toLowerCase()===i.toLowerCase())));var a,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class Kw extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Kw.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"BatchClient",commandName:"ListJobsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=`${i?.endsWith("/")?i.slice(0,-1):i||""}/v1/listjobs`;let o;return o=JSON.stringify(af(e,{arrayJobId:[],filters:e=>cf(e),jobQueue:[],jobStatus:[],maxResults:[],multiNodeJobId:[],nextToken:[]})),new Sf({protocol:n,hostname:r,port:a,method:"POST",headers:{"content-type":"application/json"},path:s,body:o})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Lw(e,t);const r=nf({$metadata:Bw(e)}),n=hh(fh(await zw(e.body,t)),"body"),a=af(n,{jobSummaryList:cf,nextToken:gh});return Object.assign(r,a),r})(e,t)}}class Gw extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Gw.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"BatchClient",commandName:"SubmitJobCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=`${i?.endsWith("/")?i.slice(0,-1):i||""}/v1/submitjob`;let o;return o=JSON.stringify(af(e,{arrayProperties:e=>cf(e),containerOverrides:e=>cf(e),dependsOn:e=>cf(e),eksPropertiesOverride:e=>cf(e),jobDefinition:[],jobName:[],jobQueue:[],nodeOverrides:e=>cf(e),parameters:e=>cf(e),propagateTags:[],retryStrategy:e=>cf(e),schedulingPriorityOverride:[],shareIdentifier:[],tags:e=>cf(e),timeout:e=>cf(e)})),new Sf({protocol:n,hostname:r,port:a,method:"POST",headers:{"content-type":"application/json"},path:s,body:o})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Fw(e,t);const r=nf({$metadata:Bw(e)}),n=hh(fh(await zw(e.body,t)),"body"),a=af(n,{jobArn:gh,jobId:gh,jobName:gh});return Object.assign(r,a),r})(e,t)}}class Ww{_batchClient;_defaultQueueName;_defaultJobDefinition;constructor(e,t,r){this._batchClient=e,this._defaultQueueName=t,this._defaultJobDefinition=r}get batchClient(){return this._batchClient}get defaultQueueName(){return this._defaultQueueName}get defaultJobDefinition(){return this._defaultJobDefinition}async scheduleJob(e){_n.info("Submitting batch job %s",e.jobName);try{const t=await this._batchClient.send(new Gw(e));return _n.info("Job %s(%s) submitted",t.jobName,t.jobId),t}catch(t){_n.error("Cannot submit batch job %s: %s",e.jobName,t)}return null}async jobCountInState(e,t=this.defaultQueueName){return(await this.listJobs(t,e)).length}async listJobs(e=this.defaultQueueName,t=null){Sn.notNullOrUndefined(e,"queueName");let r=[];const n={jobQueue:e,jobStatus:t,nextToken:null};_n.info("Fetching %j",n);do{_n.info("Pulling page...");const e=await this._batchClient.send(new Kw(n));r=r.concat(e.jobSummaryList),n.nextToken=e.nextToken}while(n.nextToken);return r}}class Zw{constructor(){}static buildInformation(){return{version:"LOCAL-SNAPSHOT",hash:"LOCAL-HASH",branch:"LOCAL-BRANCH",tag:"LOCAL-TAG",timeBuiltISO:"LOCAL-TIME-ISO",notes:"LOCAL-NOTES"}}}class Jw{dynamo;opts;constructor(e,t){this.dynamo=e,this.opts=t,Sn.notNullOrUndefined(this.dynamo,"dynamo"),Sn.notNullOrUndefined(this.opts,"opts"),Sn.notNullOrUndefined(this.opts.tableName,"opts.tableName"),Sn.notNullOrUndefined(this.opts.hashKeyName,"opts.hashKeyName"),Sn.true(!this.opts.useRangeKeys||!!this.opts.rangeKeyName&&!!this.opts.hashKeyValue,"invalid range configuration")}static createDefaultOptions(){return{tableName:"simple-cache",useRangeKeys:!1,hashKeyName:"cache-key",rangeKeyName:null,hashKeyValue:null}}createKeyObject(e){const t={};return this.opts.useRangeKeys?(t[this.opts.hashKeyName]=this.opts.hashKeyValue,t[this.opts.rangeKeyName]=e):t[this.opts.hashKeyName]=e,t}cleanDynamoFieldsFromObjectInPlace(e){e&&(delete e[this.opts.hashKeyName],this.opts.rangeKeyName&&delete e[this.opts.rangeKeyName],this.opts.dynamoExpiresColumnName&&delete e[this.opts.dynamoExpiresColumnName])}extractKeysFromObject(e){let t=null;return e&&(t={},this.opts.useRangeKeys?(t[this.opts.hashKeyName]=this.opts.hashKeyValue,t[this.opts.rangeKeyName]=e.cacheKey):t[this.opts.hashKeyName]=e.cacheKey),t}async readFromCache(e){const t=this.createKeyObject(e),r=await this.dynamo.simpleGet(this.opts.tableName,t);return this.cleanDynamoFieldsFromObjectInPlace(r),r}async storeInCache(e){Sn.notNullOrUndefined(e,"value"),Sn.notNullOrUndefined(e.cacheKey,"value.cacheKey");const t=Object.assign({},e,this.createKeyObject(e.cacheKey));this.opts.dynamoExpiresColumnName&&e.expiresEpochMS&&(t[this.opts.dynamoExpiresColumnName]=Math.floor(e.expiresEpochMS/1e3));return!!await this.dynamo.simplePut(this.opts.tableName,t)}async removeFromCache(e){await this.dynamo.simpleDelete(this.opts.tableName,this.createKeyObject(e))}async clearCache(){const e=(await this.readAll()).map((e=>this.extractKeysFromObject(e)));return await this.dynamo.deleteAllInBatches(this.opts.tableName,e,25)}async readAll(){let e=null;if(this.opts.useRangeKeys){const t={TableName:this.opts.tableName,KeyConditionExpression:"#cacheKey = :cacheKey",ExpressionAttributeNames:{"#cacheKey":this.opts.hashKeyName},ExpressionAttributeValues:{":cacheKey":this.opts.hashKeyValue}};e=await this.dynamo.fullyExecuteQuery(t)}else{const t={TableName:this.opts.tableName};e=await this.dynamo.fullyExecuteScan(t)}return e.forEach((e=>this.cleanDynamoFieldsFromObjectInPlace(e))),e}}class Yw{s3CacheRatchet;prefix;constructor(e,t){this.s3CacheRatchet=e,this.prefix=t,Sn.notNullOrUndefined(this.s3CacheRatchet,"s3CacheRatchet"),Sn.notNullOrUndefined(this.s3CacheRatchet.getDefaultBucket(),"s3CacheRatchet.defaultBucket")}keyToPath(e){let t=En.trimToEmpty(this.prefix);return t.length>0&&!t.endsWith("/")&&(t+="/"),t+=e,t}async readFromCache(e){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyToPath(e))}async storeInCache(e){Sn.notNullOrUndefined(e,"value"),Sn.notNullOrUndefined(e.cacheKey,"value.cacheKey");return!!await this.s3CacheRatchet.writeObjectToCacheFile(this.keyToPath(e.cacheKey),e)}async removeFromCache(e){await this.s3CacheRatchet.removeCacheFile(this.keyToPath(e))}async clearCache(){const e=await this.s3CacheRatchet.directChildrenOfPrefix(this.keyToPath(""));return await Promise.all(e.map((e=>this.removeFromCache(e)))),e.length}async readAll(){const e=await this.s3CacheRatchet.directChildrenOfPrefix(this.keyToPath("")),t=await Promise.all(e.map((e=>this.readFromCache(e))));return t}}class Xw{provider;defaultTimeToLiveMS;constructor(e,t=6e4){this.provider=e,this.defaultTimeToLiveMS=t}createDefaultReadOptions(){return{maxStalenessMS:null,timeToLiveMS:this.defaultTimeToLiveMS,cacheNullValues:!1}}async fetchWrapper(e,t,r=this.createDefaultReadOptions()){_n.silly("Fetching %s",e);const n=(new Date).getTime();let a=await this.provider.readFromCache(e);if(a&&a.expiresEpochMS<n&&(_n.debug("Object found, but expired - removing"),a=null),a&&r&&r.maxStalenessMS&&n-a.createdEpochMS>r.maxStalenessMS&&(_n.debug("Object found by too stale - removing"),a=null),!a){_n.debug("%s not found in cache, generating",e);const i=await t();(i||r?.cacheNullValues)&&(_n.debug("Writing %j to cache"),a={cacheKey:e,createdEpochMS:n,expiresEpochMS:r&&r.timeToLiveMS?n+r.timeToLiveMS:null,value:i,generated:!1},await this.provider.storeInCache(a),a.generated=!0)}return a}async fetch(e,t,r=null){const n=await this.fetchWrapper(e,t,r);return n?n.value:null}async removeFromCache(e,t){let r=null;return t&&(r=await this.fetchWrapper(e,(()=>null))),await this.provider.removeFromCache(e),r}async clearCache(){return this.provider.clearCache()}async readAll(){return this.provider.readAll()}}var Qw="3.332.0";const eb="fn",tb="argv",rb="ref",nb="String",ab="PartitionResult",ib="tree",sb="error",ob="endpoint",db="stringEquals",lb={required:!0,default:!1,type:"Boolean"},ub={[rb]:"Region"},pb={[rb]:"Endpoint"},cb={[eb]:"booleanEquals",[tb]:[{[rb]:"UseFIPS"},!0]},mb={[eb]:"booleanEquals",[tb]:[{[rb]:"UseDualStack"},!0]},hb={},fb={[eb]:"booleanEquals",[tb]:[!0,{[eb]:"getAttr",[tb]:[{[rb]:ab},"supportsFIPS"]}]},gb={[eb]:"booleanEquals",[tb]:[!0,{[eb]:"getAttr",[tb]:[{[rb]:ab},"supportsDualStack"]}]},yb=[cb],vb=[mb],wb={version:"1.0",parameters:{Region:{required:!0,type:nb},UseDualStack:lb,UseFIPS:lb,Endpoint:{required:!1,type:nb}},rules:[{conditions:[{[eb]:"aws.partition",[tb]:[ub],assign:ab}],type:ib,rules:[{conditions:[{[eb]:"isSet",[tb]:[pb]}],type:ib,rules:[{conditions:yb,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:sb},{type:ib,rules:[{conditions:vb,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:sb},{endpoint:{url:pb,properties:hb,headers:hb},type:ob}]}]},{conditions:[cb,mb],type:ib,rules:[{conditions:[fb,gb],type:ib,rules:[{endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hb,headers:hb},type:ob}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:sb}]},{conditions:yb,type:ib,rules:[{conditions:[fb],type:ib,rules:[{type:ib,rules:[{conditions:[{[eb]:db,[tb]:[ub,"us-gov-east-1"]}],endpoint:{url:"https://logs.us-gov-east-1.amazonaws.com",properties:hb,headers:hb},type:ob},{conditions:[{[eb]:db,[tb]:[ub,"us-gov-west-1"]}],endpoint:{url:"https://logs.us-gov-west-1.amazonaws.com",properties:hb,headers:hb},type:ob},{endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:hb,headers:hb},type:ob}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:sb}]},{conditions:vb,type:ib,rules:[{conditions:[gb],type:ib,rules:[{endpoint:{url:"https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hb,headers:hb},type:ob}]},{error:"DualStack is enabled but this partition does not support DualStack",type:sb}]},{endpoint:{url:"https://logs.{Region}.{PartitionResult#dnsSuffix}",properties:hb,headers:hb},type:ob}]}]},bb=(e,t={})=>Wy(wb,{endpointParams:e,logger:t.logger}),Sb=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2014-03-28",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??bb,logger:e?.logger??new Jm,serviceId:e?.serviceId??"CloudWatch Logs",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:Qw}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class Eb extends eh{constructor(e){const t=Sb(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"logs"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class _b extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,_b.prototype)}}let xb=class e extends _b{constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};class Cb extends _b{constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),this.name="OperationAbortedException",this.$fault="client",Object.setPrototypeOf(this,Cb.prototype)}}let Nb=class e extends _b{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};class kb extends _b{constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),this.name="ServiceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,kb.prototype)}}let Tb=class e extends _b{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};class Ab extends _b{constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),this.name="MalformedQueryException",this.$fault="client",Object.setPrototypeOf(this,Ab.prototype),this.queryCompileError=e.queryCompileError}}const Pb=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"OperationAbortedException":case"com.amazonaws.cloudwatchlogs#OperationAbortedException":throw await Bb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Ib=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"OperationAbortedException":case"com.amazonaws.cloudwatchlogs#OperationAbortedException":throw await Bb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Ob=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Db=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Rb=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Mb=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Lb=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"LimitExceededException":case"com.amazonaws.cloudwatchlogs#LimitExceededException":throw await Ub(r);case"MalformedQueryException":case"com.amazonaws.cloudwatchlogs#MalformedQueryException":throw await Vb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},Fb=async(e,t)=>{const r={...e,body:await Xb(e.body,t)},n=Qb(e,r.body);switch(n){case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameterException":throw await jb(r);case"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":throw await $b(r);case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":throw await zb(r);default:const t=r.body;return Wb({output:e,parsedBody:t,errorCode:n})}},jb=async(e,t)=>{const r=e.body,n=cf(r),a=new xb({$metadata:Kb(e),...n});return Zh(a,r)},Ub=async(e,t)=>{const r=e.body,n=cf(r),a=new Tb({$metadata:Kb(e),...n});return Zh(a,r)},Vb=async(e,t)=>{const r=e.body,n=cf(r),a=new Ab({$metadata:Kb(e),...n});return Zh(a,r)},Bb=async(e,t)=>{const r=e.body,n=cf(r),a=new Cb({$metadata:Kb(e),...n});return Zh(a,r)},$b=async(e,t)=>{const r=e.body,n=cf(r),a=new Nb({$metadata:Kb(e),...n});return Zh(a,r)},zb=async(e,t)=>{const r=e.body,n=cf(r),a=new kb({$metadata:Kb(e),...n});return Zh(a,r)},qb=(e,t)=>af(e,{results:cf,statistics:e=>Hb(e),status:gh}),Hb=(e,t)=>af(e,{bytesScanned:bh,recordsMatched:bh,recordsScanned:bh}),Kb=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Gb=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Wb=Jh(_b),Zb=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)};function Jb(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Logs_20140328.${e}`}}const Yb=(e,t)=>((e,t)=>Gb(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Xb=async(e,t)=>{const r=await Yb(e,t);return r.message=r.message??r.Message,r},Qb=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(a=e.headers,i="x-amzn-errortype",Object.keys(a).find((e=>e.toLowerCase()===i.toLowerCase())));var a,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class eS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,eS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"DeleteLogGroupCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("DeleteLogGroup");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>e.statusCode>=300?Pb(e,t):(await Gb(e.body,t),{$metadata:Kb(e)}))(e,t)}}class tS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,tS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"DeleteLogStreamCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("DeleteLogStream");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>e.statusCode>=300?Ib(e,t):(await Gb(e.body,t),{$metadata:Kb(e)}))(e,t)}}class rS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,rS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"DescribeLogGroupsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("DescribeLogGroups");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Ob(e,t);const r=await Yb(e.body,t);let n={};return n=cf(r),{$metadata:Kb(e),...n}})(e,t)}}class nS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,nS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"DescribeLogStreamsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("DescribeLogStreams");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Db(e,t);const r=await Yb(e.body,t);let n={};return n=cf(r),{$metadata:Kb(e),...n}})(e,t)}}class aS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,aS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"FilterLogEventsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("FilterLogEvents");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Rb(e,t);const r=await Yb(e.body,t);let n={};return n=cf(r),{$metadata:Kb(e),...n}})(e,t)}}class iS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,iS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"GetQueryResultsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("GetQueryResults");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Mb(e,t);const r=await Yb(e.body,t);let n={};return n=qb(r),{$metadata:Kb(e),...n}})(e,t)}}class sS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,sS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"StartQueryCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("StartQuery");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Lb(e,t);const r=await Yb(e.body,t);let n={};return n=cf(r),{$metadata:Kb(e),...n}})(e,t)}}class oS extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,oS.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchLogsClient",commandName:"StopQueryCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=Jb("StopQuery");let n;return n=JSON.stringify(cf(e)),Zb(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return Fb(e,t);const r=await Yb(e.body,t);let n={};return n=cf(r),{$metadata:Kb(e),...n}})(e,t)}}class dS{logGroup;awsCWLogs;constructor(e,t=new Eb({region:"us-east-1"})){this.logGroup=e,this.awsCWLogs=t}get cloudWatchLogsClient(){return this.awsCWLogs}async readLogStreams(e=null,t=null){const r={logGroupName:this.logGroup,orderBy:"LastEventTime"},n=[];do{_n.debug("Pulling more log streams (%d found so far)",n.length);const a=await this.awsCWLogs.send(new nS(r));a.logStreams.forEach((r=>{null!==r.lastEventTimestamp&&(!e||r.lastEventTimestamp>=e)&&(!t||r.firstEventTimestamp<=t)&&n.push(r)})),r.nextToken=a.nextToken}while(r.nextToken);return _n.debug("Found %d total, returning",n.length),n}async readLogStreamNames(e=null,t=null){const r=(await this.readLogStreams(e,t)).map((e=>e.logStreamName));return r}async readEvents(e,t=null,r=null,n=!0,a=null){const i=new Pc,s={logGroupName:this.logGroup,endTime:r,startTime:t};e&&(s.filterPattern=e),_n.debug("Reading log events matching : %j",s);let o=[];do{_n.debug("Pulling more log events (%d found so far) : %s",o.length,i.dump());const e=await this.awsCWLogs.send(new aS(s));o=o.concat(e.events),s.nextToken=e.nextToken}while(s.nextToken&&(!a||o.length<a));return _n.debug("Found %d total in %s",o.length,i.dump()),n&&(_n.debug("Sorting events by timestamp"),o=o.sort(((e,t)=>{let r=e.timestamp-t.timestamp;return 0===r&&(r=e.message.localeCompare(t.message)),r}))),i.log(),o}}class lS{static MAX_DELETE_RETRIES=5;cwLogs;constructor(e=null){this.cwLogs=e||new Eb({region:"us-east-1"})}get cloudWatchLogsClient(){return this.cwLogs}async removeEmptyOrOldLogStreams(e,t=1e3,r=null){_n.info("Removing empty streams from %s, oldest event epoch MS : %d",e,r);const n={logGroupName:e,orderBy:"LastEventTime"},a=r||1;let i=0;const s=[],o=[];let d=10;do{_n.debug("Executing search for streams");try{const e=await this.cwLogs.send(new nS(n));i+=e.logStreams.length,_n.debug("Found %d streams (%d so far, %d to delete)",e.logStreams.length,i,s.length);for(let r=0;r<e.logStreams.length&&s.length<t;r++){const t=e.logStreams[r];t.firstEventTimestamp?t.lastEventTimestamp<a&&s.push(t):s.push(t)}n.nextToken=e.nextToken}catch(e){const t=d;d=Math.min(1e3,1.5*d),_n.info("Caught while describing %s, increasing wait between deletes (was %d, now %d)",e,t,d)}}while(n.nextToken&&s.length<t);_n.info("Found %d streams to delete",s.length);let l=10;for(let t=0;t<s.length;t++){const r={logGroupName:e,logStreamName:s[t].logStreamName},n=0===s[t].storedBytes?"empty":"old";_n.info("Removing %s stream %s",n,s[t].logStreamName);let a=!1,i=0;for(;!a&&i<lS.MAX_DELETE_RETRIES;)try{await this.cwLogs.send(new tS(r)),a=!0,await Ic.wait(l)}catch(e){i++;const t=l;l=Math.min(1e3,1.5*l),_n.info("Caught %s, increasing wait between deletes and retrying (wait was %d, now %d) (Retry %d of %d)",e,t,l,i,lS.MAX_DELETE_RETRIES)}a||o.push(s[t])}return _n.warn("Failed to remove streams : %j",o),s}async findOldestEventTimestampInGroup(e){const t=await this.findStreamWithOldestEventInGroup(e);return t?t.firstEventTimestamp:null}async findStreamWithOldestEventInGroup(e){_n.info("Finding oldest event in : %s",e);let t=null;try{const r={logGroupName:e,orderBy:"LastEventTime"};let n=0;do{_n.debug("Executing search for streams");const e=await this.cwLogs.send(new nS(r));n+=e.logStreams.length,_n.debug("Found %d streams (%d so far)",e.logStreams.length,n),e.logStreams.forEach((e=>{e.firstEventTimestamp&&(null===t||e.firstEventTimestamp<t.firstEventTimestamp)&&(t=e)})),r.nextToken=e.nextToken}while(r.nextToken)}catch(t){_n.error("Error attempting to find oldest event in group : %s : %s",e,t,t)}return t}async findLogGroups(e){Sn.notNullOrUndefined(e);const t={logGroupNamePrefix:e};let r=[];do{_n.info("%d found, pulling log groups : %j",r.length,t);const e=await this.cwLogs.send(new rS(t));r=r.concat(e.logGroups),t.nextToken=e.nextToken}while(t.nextToken);return r}async removeLogGroups(e){Sn.notNullOrUndefined(e);const t=[];for(let r=0;r<e.length;r++)try{_n.info("Deleting %j",e[r]);const n={logGroupName:e[r].logGroupName};await this.cwLogs.send(new eS(n)),t.push(!0)}catch(n){_n.error("Failure to delete %j : %s",e[r],n),t.push(!1)}return t}async removeLogGroupsWithPrefix(e){Sn.notNullOrUndefined(e),Sn.true(En.trimToEmpty(e).length>0),_n.info("Removing log groups with prefix %s",e);const t=await this.findLogGroups(e);return await this.removeLogGroups(t)}async fullyExecuteInsightsQuery(e){Sn.notNullOrUndefined(e),_n.debug("Starting insights query : %j",e);const t=await this.cwLogs.send(new sS(e));_n.debug("Got query id %j",t);let r=null,n=100;for(;!r||["Running","Scheduled"].includes(r.status);)r=await this.cwLogs.send(new iS({queryId:t.queryId})),await Ic.wait(n),n*=2,_n.info("Got : %j",r);return r}async abortInsightsQuery(e){let t=null;return e&&(t=await this.cwLogs.send(new oS({queryId:e}))),t}}var uS="3.332.0";const pS="required",cS="fn",mS="argv",hS="ref",fS="isSet",gS="tree",yS="error",vS="endpoint",wS="PartitionResult",bS="getAttr",SS={[pS]:!1,type:"String"},ES={[pS]:!0,default:!1,type:"Boolean"},_S={[hS]:"Endpoint"},xS={[cS]:"booleanEquals",[mS]:[{[hS]:"UseFIPS"},!0]},CS={[cS]:"booleanEquals",[mS]:[{[hS]:"UseDualStack"},!0]},NS={},kS={[cS]:"booleanEquals",[mS]:[!0,{[cS]:bS,[mS]:[{[hS]:wS},"supportsFIPS"]}]},TS={[hS]:wS},AS={[cS]:"booleanEquals",[mS]:[!0,{[cS]:bS,[mS]:[TS,"supportsDualStack"]}]},PS=[xS],IS=[CS],OS=[{[hS]:"Region"}],DS={version:"1.0",parameters:{Region:SS,UseDualStack:ES,UseFIPS:ES,Endpoint:SS},rules:[{conditions:[{[cS]:fS,[mS]:[_S]}],type:gS,rules:[{conditions:PS,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:yS},{type:gS,rules:[{conditions:IS,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:yS},{endpoint:{url:_S,properties:NS,headers:NS},type:vS}]}]},{type:gS,rules:[{conditions:[{[cS]:fS,[mS]:OS}],type:gS,rules:[{conditions:[{[cS]:"aws.partition",[mS]:OS,assign:wS}],type:gS,rules:[{conditions:[xS,CS],type:gS,rules:[{conditions:[kS,AS],type:gS,rules:[{type:gS,rules:[{endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:NS,headers:NS},type:vS}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:yS}]},{conditions:PS,type:gS,rules:[{conditions:[kS],type:gS,rules:[{type:gS,rules:[{conditions:[{[cS]:"stringEquals",[mS]:["aws-us-gov",{[cS]:bS,[mS]:[TS,"name"]}]}],endpoint:{url:"https://monitoring.{Region}.amazonaws.com",properties:NS,headers:NS},type:vS},{endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",properties:NS,headers:NS},type:vS}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:yS}]},{conditions:IS,type:gS,rules:[{conditions:[AS],type:gS,rules:[{type:gS,rules:[{endpoint:{url:"https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:NS,headers:NS},type:vS}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:yS}]},{type:gS,rules:[{endpoint:{url:"https://monitoring.{Region}.{PartitionResult#dnsSuffix}",properties:NS,headers:NS},type:vS}]}]}]},{error:"Invalid Configuration: Missing Region",type:yS}]}]},RS=(e,t={})=>Wy(DS,{endpointParams:e,logger:t.logger}),MS=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2010-08-01",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??RS,logger:e?.logger??new Jm,serviceId:e?.serviceId??"CloudWatch",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:uS}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class LS extends eh{constructor(e){const t=MS(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"monitoring"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}var FS={},jS={};!function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+t+"]["+(t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",n=new RegExp("^"+r+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,r){if(t){const n=Object.keys(t),a=n.length;for(let i=0;i<a;i++)e[n[i]]="strict"===r?[t[n[i]]]:t[n[i]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){const t=n.exec(e);return!(null==t)},e.getAllMatches=function(e,t){const r=[];let n=t.exec(e);for(;n;){const a=[];a.startIndex=t.lastIndex-n[0].length;const i=n.length;for(let e=0;e<i;e++)a.push(n[e]);r.push(a),n=t.exec(e)}return r},e.nameRegexp=r}(jS);const US=jS,VS={allowBooleanAttributes:!1,unpairedTags:[]};function BS(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function $S(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const n=e.substr(r,t-r);if(t>5&&"xml"===n)return JS("InvalidXml","XML declaration allowed only at the start of the document.",XS(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function zS(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}FS.validate=function(e,t){t=Object.assign({},VS,t);const r=[];let n=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,s=$S(e,s),s.err)return s}else{if("<"!==e[s]){if(BS(e[s]))continue;return JS("InvalidChar","char '"+e[s]+"' is not expected.",XS(e,s))}{let o=s;if(s++,"!"===e[s]){s=zS(e,s);continue}{let d=!1;"/"===e[s]&&(d=!0,s++);let l="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&"\t"!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)l+=e[s];if(l=l.trim(),"/"===l[l.length-1]&&(l=l.substring(0,l.length-1),s--),i=l,!US.isName(i)){let t;return t=0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",JS("InvalidTag",t,XS(e,s))}const u=KS(e,s);if(!1===u)return JS("InvalidAttr","Attributes for '"+l+"' have open quote.",XS(e,s));let p=u.value;if(s=u.index,"/"===p[p.length-1]){const r=s-p.length;p=p.substring(0,p.length-1);const a=WS(p,t);if(!0!==a)return JS(a.err.code,a.err.msg,XS(e,r+a.err.line));n=!0}else if(d){if(!u.tagClosed)return JS("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",XS(e,s));if(p.trim().length>0)return JS("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",XS(e,o));{const t=r.pop();if(l!==t.tagName){let r=XS(e,t.tagStartPos);return JS("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+l+"'.",XS(e,o))}0==r.length&&(a=!0)}}else{const i=WS(p,t);if(!0!==i)return JS(i.err.code,i.err.msg,XS(e,s-p.length+i.err.line));if(!0===a)return JS("InvalidXml","Multiple possible root nodes found.",XS(e,s));-1!==t.unpairedTags.indexOf(l)||r.push({tagName:l,tagStartPos:o}),n=!0}for(s++;s<e.length;s++)if("<"===e[s]){if("!"===e[s+1]){s++,s=zS(e,s);continue}if("?"!==e[s+1])break;if(s=$S(e,++s),s.err)return s}else if("&"===e[s]){const t=ZS(e,s);if(-1==t)return JS("InvalidChar","char '&' is not expected.",XS(e,s));s=t}else if(!0===a&&!BS(e[s]))return JS("InvalidXml","Extra text at the end",XS(e,s));"<"===e[s]&&s--}}}var i;return n?1==r.length?JS("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",XS(e,r[0].tagStartPos)):!(r.length>0)||JS("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):JS("InvalidXml","Start tag expected.",1)};const qS='"',HS="'";function KS(e,t){let r="",n="",a=!1;for(;t<e.length;t++){if(e[t]===qS||e[t]===HS)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){a=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:a}}const GS=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function WS(e,t){const r=US.getAllMatches(e,GS),n={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return JS("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",QS(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return JS("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",QS(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return JS("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",QS(r[e]));const a=r[e][2];if(!YS(a))return JS("InvalidAttr","Attribute '"+a+"' is an invalid name.",QS(r[e]));if(n.hasOwnProperty(a))return JS("InvalidAttr","Attribute '"+a+"' is repeated.",QS(r[e]));n[a]=1}return!0}function ZS(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function JS(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function YS(e){return US.isName(e)}function XS(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function QS(e){return e.startIndex+e[1].length}var eE={};const tE={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1};eE.buildOptions=function(e){return Object.assign({},tE,e)},eE.defaultOptions=tE;var rE=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}};const nE=RegExp("^\\s([a-zA-z0-0]+)[ \t](['\"])([^&]+)\\2");function aE(e,t){const r=nE.exec(e);r&&(t[r[1]]={regx:RegExp(`&${r[1]};`,"g"),val:r[3]})}var iE=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let n=1,a=!1,i=!1,s=!1,o="";for(;t<e.length;t++)if("<"!==e[t]||s)if(">"===e[t]){if(s?"-"===e[t-1]&&"-"===e[t-2]&&(s=!1,n--):(i&&(aE(o,r),i=!1),n--),0===n)break}else"["===e[t]?a=!0:o+=e[t];else{if(a&&"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7])t+=7,i=!0;else if(a&&"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8])t+=8;else if(a&&"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8])t+=8;else if(a&&"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9])t+=9;else{if("!"!==e[t+1]||"-"!==e[t+2]||"-"!==e[t+3])throw new Error("Invalid DOCTYPE");s=!0}n++,o=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}};const sE=/^[-+]?0x[a-fA-F0-9]+$/,oE=/^([\-\+])?(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 dE={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var lE=function(e,t={}){if(t=Object.assign({},dE,t),!e||"string"!=typeof e)return e;let r=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(r))return e;if(t.hex&&sE.test(r))return Number.parseInt(r,16);{const n=oE.exec(r);if(n){const a=n[1],i=n[2];let s=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(n[3]);const o=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&a&&"."!==r[2])return e;if(!t.leadingZeros&&i.length>0&&!a&&"."!==r[1])return e;{const n=Number(r),d=""+n;return-1!==d.search(/[eE]/)||o?t.eNotation?n:e:-1!==r.indexOf(".")?"0"===d&&""===s||d===s||a&&d==="-"+s?n:e:i?s===d||a+s===d?n:e:r===d||r===a+d?n:e}}return e}};const uE=jS,pE=rE,cE=iE,mE=lE;"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,uE.nameRegexp);function hE(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function fE(e,t,r,n,a,i,s){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const n=this.options.tagValueProcessor(t,e,r,a,i);if(null==n)return e;if(typeof n!=typeof e||n!==e)return n;if(this.options.trimValues)return NE(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?NE(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function gE(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}const yE=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function vE(e,t){if(!this.options.ignoreAttributes&&"string"==typeof e){const r=uE.getAllMatches(e,yE),n=r.length,a={};for(let e=0;e<n;e++){const n=this.resolveNameSpace(r[e][1]);let i=r[e][4],s=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const e=this.options.attributeValueProcessor(n,i,t);a[s]=null==e?i:typeof e!=typeof i||e!==i?e:NE(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[s]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=a,e}return a}}const wE=function(e){e=e.replace(/\r\n?/g,"\n");const t=new pE("!xml");let r=t,n="",a="";for(let i=0;i<e.length;i++){if("<"===e[i])if("/"===e[i+1]){const t=_E(e,">",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),r&&(n=this.saveTextToParentTag(n,r,a)),a=a.substr(0,a.lastIndexOf(".")),r=this.tagsNodeStack.pop(),n="",i=t}else if("?"===e[i+1]){let t=xE(e,i,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new pE(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a)),r.addChild(e)}i=t.closeIndex+1}else if("!--"===e.substr(i+1,3)){const t=_E(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);n=this.saveTextToParentTag(n,r,a),r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if("!D"===e.substr(i+1,2)){const t=cE(e,i);this.docTypeEntities=t.entities,i=t.i}else if("!["===e.substr(i+1,2)){const t=_E(e,"]]>",i,"CDATA is not closed.")-2,s=e.substring(i+9,t);if(n=this.saveTextToParentTag(n,r,a),this.options.cdataPropName)r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]);else{let e=this.parseTextData(s,r.tagname,a,!0,!1,!0);null==e&&(e=""),r.add(this.options.textNodeName,e)}i=t+2}else{let s=xE(e,i,this.options.removeNSPrefix),o=s.tagName,d=s.tagExp,l=s.attrExpPresent,u=s.closeIndex;this.options.transformTagName&&(o=this.options.transformTagName(o)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,a,!1)),o!==t.tagname&&(a+=a?"."+o:o);const p=r;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(r=this.tagsNodeStack.pop()),this.isItStopNode(this.options.stopNodes,a,o)){let t="";if(d.length>0&&d.lastIndexOf("/")===d.length-1)i=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(o))i=s.closeIndex;else{const r=this.readStopNodeData(e,o,u+1);if(!r)throw new Error(`Unexpected end of ${o}`);i=r.i,t=r.tagContent}const n=new pE(o);o!==d&&l&&(n[":@"]=this.buildAttributesMap(d,a)),t&&(t=this.parseTextData(t,o,a,!0,l,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),n.add(this.options.textNodeName,t),r.addChild(n)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){"/"===o[o.length-1]?(o=o.substr(0,o.length-1),d=o):d=d.substr(0,d.length-1),this.options.transformTagName&&(o=this.options.transformTagName(o));const e=new pE(o);o!==d&&l&&(e[":@"]=this.buildAttributesMap(d,a)),a=a.substr(0,a.lastIndexOf(".")),r.addChild(e)}else{const e=new pE(o);this.tagsNodeStack.push(r),o!==d&&l&&(e[":@"]=this.buildAttributesMap(d,a)),r.addChild(e),r=e}n="",i=u}}else n+=e[i]}return t.child},bE=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function SE(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function EE(e,t,r){const n="*."+r;for(const r in e){const a=e[r];if(n===a||t===a)return!0}return!1}function _E(e,t,r,n){const a=e.indexOf(t,r);if(-1===a)throw new Error(n);return a+t.length-1}function xE(e,t,r,n=">"){const a=function(e,t,r=">"){let n,a="";for(let i=t;i<e.length;i++){let t=e[i];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1])return{data:a,index:i};if(e[i+1]===r[1])return{data:a,index:i}}else"\t"===t&&(t=" ");a+=t}}(e,t+1,n);if(!a)return;let i=a.data;const s=a.index,o=i.search(/\s/);let d=i,l=!0;if(-1!==o&&(d=i.substr(0,o).replace(/\s\s*$/,""),i=i.substr(o+1)),r){const e=d.indexOf(":");-1!==e&&(d=d.substr(e+1),l=d!==a.data.substr(e+1))}return{tagName:d,tagExp:i,closeIndex:s,attrExpPresent:l}}function CE(e,t,r){const n=r;let a=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const i=_E(e,">",r,`${t} is not closed`);if(e.substring(r+2,i).trim()===t&&(a--,0===a))return{tagContent:e.substring(n,r),i:i};r=i}else if("?"===e[r+1]){r=_E(e,"?>",r+1,"StopNode is not closed.")}else if("!--"===e.substr(r+1,3)){r=_E(e,"--\x3e",r+3,"StopNode is not closed.")}else if("!["===e.substr(r+1,2)){r=_E(e,"]]>",r,"StopNode is not closed.")-2}else{const n=xE(e,r,">");if(n){(n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&a++,r=n.closeIndex}}}function NE(e,t,r){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&mE(e,r)}return uE.isExist(e)?e:""}var kE=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=hE,this.parseXml=wE,this.parseTextData=fE,this.resolveNameSpace=gE,this.buildAttributesMap=vE,this.isItStopNode=EE,this.replaceEntitiesValue=bE,this.readStopNodeData=CE,this.saveTextToParentTag=SE}},TE={};function AE(e,t,r){let n;const a={};for(let i=0;i<e.length;i++){const s=e[i],o=PE(s);let d="";if(d=void 0===r?o:r+"."+o,o===t.textNodeName)void 0===n?n=s[o]:n+=""+s[o];else{if(void 0===o)continue;if(s[o]){let e=AE(s[o],t,d);const r=OE(e,t);s[":@"]?IE(e,s[":@"],d,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==a[o]&&a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(e)):t.isArray(o,d,r)?a[o]=[e]:a[o]=e}}}return"string"==typeof n?n.length>0&&(a[t.textNodeName]=n):void 0!==n&&(a[t.textNodeName]=n),a}function PE(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function IE(e,t,r,n){if(t){const a=Object.keys(t),i=a.length;for(let s=0;s<i;s++){const i=a[s];n.isArray(i,r+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function OE(e,t){const r=Object.keys(e).length;return!!(0===r||1===r&&e[t.textNodeName])}TE.prettify=function(e,t){return AE(e,t)};const{buildOptions:DE}=eE,RE=kE,{prettify:ME}=TE,LE=FS;var FE=class{constructor(e){this.externalEntities={},this.options=DE(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=LE.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new RE(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:ME(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}};function jE(e,t,r,n){let a="",i=!1;for(let s=0;s<e.length;s++){const o=e[s],d=UE(o);let l="";if(l=0===r.length?d:`${r}.${d}`,d===t.textNodeName){let e=o[d];BE(l,t)||(e=t.tagValueProcessor(d,e),e=$E(e,t)),i&&(a+=n),a+=e,i=!1;continue}if(d===t.cdataPropName){i&&(a+=n),a+=`<![CDATA[${o[d][0][t.textNodeName]}]]>`,i=!1;continue}if(d===t.commentPropName){a+=n+`\x3c!--${o[d][0][t.textNodeName]}--\x3e`,i=!0;continue}if("?"===d[0]){const e=VE(o[":@"],t),r="?xml"===d?"":n;let s=o[d][0][t.textNodeName];s=0!==s.length?" "+s:"",a+=r+`<${d}${s}${e}?>`,i=!0;continue}let u=n;""!==u&&(u+=t.indentBy);const p=n+`<${d}${VE(o[":@"],t)}`,c=jE(o[d],t,l,u);-1!==t.unpairedTags.indexOf(d)?t.suppressUnpairedNode?a+=p+">":a+=p+"/>":c&&0!==c.length||!t.suppressEmptyNode?c&&c.endsWith(">")?a+=p+`>${c}${n}</${d}>`:(a+=p+">",c&&""!==n&&(c.includes("/>")||c.includes("</"))?a+=n+t.indentBy+c+n:a+=c,a+=`</${d}>`):a+=p+"/>",i=!0}return a}function UE(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function VE(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){let a=t.attributeValueProcessor(n,e[n]);a=$E(a,t),!0===a&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${a}"`}return r}function BE(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function $E(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}const zE=function(e,t){let r="";return t.format&&t.indentBy.length>0&&(r="\n"),jE(e,t,"",r)},qE={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[]};function HE(e){this.options=Object.assign({},qE,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=WE),this.processTextOrObjNode=KE,this.options.format?(this.indentate=GE,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function KE(e,t,r){const n=this.j2x(e,r+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function GE(e){return this.options.indentBy.repeat(e)}function WE(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}HE.prototype.build=function(e){return this.options.preserveOrder?zE(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},HE.prototype.j2x=function(e,t){let r="",n="";for(let a in e)if(void 0===e[a]);else if(null===e[a])"?"===a[0]?n+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)n+=this.buildTextValNode(e[a],a,"",t);else if("object"!=typeof e[a]){const i=this.isAttribute(a);if(i)r+=this.buildAttrPairStr(i,""+e[a]);else if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const r=e[a].length;for(let i=0;i<r;i++){const r=e[a][i];void 0===r||(null===r?"?"===a[0]?n+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar:n+="object"==typeof r?this.processTextOrObjNode(r,a,t):this.buildTextValNode(r,a,"",t))}}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const t=Object.keys(e[a]),n=t.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(t[i],""+e[a][t[i]])}else n+=this.processTextOrObjNode(e[a],a,t);return{attrStr:r,val:n}},HE.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},HE.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let a="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",a=""),r&&-1===e.indexOf("<")?this.indentate(n)+"<"+t+r+i+">"+e+a:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+a}},HE.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},HE.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let a=this.options.tagValueProcessor(t,e);return a=this.replaceEntitiesValue(a),""===a?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+a+"</"+t+this.tagEndChar}},HE.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e};var ZE={XMLParser:FE,XMLValidator:FS,XMLBuilder:HE};class JE extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,JE.prototype)}}class YE extends JE{constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),this.name="InternalServiceFault",this.$fault="server",Object.setPrototypeOf(this,YE.prototype),this.Message=e.Message}}class XE extends JE{constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),this.name="InvalidParameterCombinationException",this.$fault="client",Object.setPrototypeOf(this,XE.prototype)}}let QE=class e extends JE{constructor(t){super({name:"InvalidParameterValueException",$fault:"client",...t}),this.name="InvalidParameterValueException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};class e_ extends JE{constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),this.name="MissingRequiredParameterException",this.$fault="client",Object.setPrototypeOf(this,e_.prototype)}}const t_=async(e,t)=>{const r={...e,body:await S_(e.body,t)},n=__(e,r.body);switch(n){case"InternalServiceError":case"com.amazonaws.cloudwatch#InternalServiceFault":throw await r_(r);case"InvalidParameterCombination":case"com.amazonaws.cloudwatch#InvalidParameterCombinationException":throw await n_(r);case"InvalidParameterValue":case"com.amazonaws.cloudwatch#InvalidParameterValueException":throw await a_(r);case"MissingParameter":case"com.amazonaws.cloudwatch#MissingRequiredParameterException":throw await i_(r);default:const t=r.body;return y_({output:e,parsedBody:t.Error,errorCode:n})}},r_=async(e,t)=>{const r=e.body,n=p_(r.Error),a=new YE({$metadata:f_(e),...n});return Zh(a,r)},n_=async(e,t)=>{const r=e.body,n=c_(r.Error),a=new XE({$metadata:f_(e),...n});return Zh(a,r)},a_=async(e,t)=>{const r=e.body,n=m_(r.Error),a=new QE({$metadata:f_(e),...n});return Zh(a,r)},i_=async(e,t)=>{const r=e.body,n=h_(r.Error),a=new e_({$metadata:f_(e),...n});return Zh(a,r)},s_=(e,t)=>{const r={};return null!=e.Name&&(r.Name=e.Name),null!=e.Value&&(r.Value=e.Value),r},o_=(e,t)=>{const r={};if(null!=e.MetricName&&(r.MetricName=e.MetricName),null!=e.Dimensions){const t=((e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=s_(t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r})(e.Dimensions);0===e.Dimensions?.length&&(r.Dimensions=[]),Object.entries(t).forEach((([e,t])=>{r[`Dimensions.${e}`]=t}))}if(null!=e.Timestamp&&(r.Timestamp=e.Timestamp.toISOString().split(".")[0]+"Z"),null!=e.Value&&(r.Value=pf(e.Value)),null!=e.StatisticValues){const t=l_(e.StatisticValues);Object.entries(t).forEach((([e,t])=>{r[`StatisticValues.${e}`]=t}))}if(null!=e.Values){const t=u_(e.Values);0===e.Values?.length&&(r.Values=[]),Object.entries(t).forEach((([e,t])=>{r[`Values.${e}`]=t}))}if(null!=e.Counts){const t=((e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`member.${n}`]=pf(t),n++);return r})(e.Counts);0===e.Counts?.length&&(r.Counts=[]),Object.entries(t).forEach((([e,t])=>{r[`Counts.${e}`]=t}))}return null!=e.Unit&&(r.Unit=e.Unit),null!=e.StorageResolution&&(r.StorageResolution=e.StorageResolution),r},d_=(e,t)=>{const r={};if(null!=e.Namespace&&(r.Namespace=e.Namespace),null!=e.MetricData){const t=((e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=o_(t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r})(e.MetricData);0===e.MetricData?.length&&(r.MetricData=[]),Object.entries(t).forEach((([e,t])=>{r[`MetricData.${e}`]=t}))}return r},l_=(e,t)=>{const r={};return null!=e.SampleCount&&(r.SampleCount=pf(e.SampleCount)),null!=e.Sum&&(r.Sum=pf(e.Sum)),null!=e.Minimum&&(r.Minimum=pf(e.Minimum)),null!=e.Maximum&&(r.Maximum=pf(e.Maximum)),r},u_=(e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`member.${n}`]=pf(t),n++);return r},p_=(e,t)=>{const r={};return void 0!==e.Message&&(r.Message=gh(e.Message)),r},c_=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},m_=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},h_=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},f_=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),g_=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),y_=Jh(JE),v_=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)},w_={"content-type":"application/x-www-form-urlencoded"},b_=(e,t)=>((e,t)=>g_(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),S_=async(e,t)=>{const r=await b_(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},E_=e=>Object.entries(e).map((([e,t])=>Qh(e)+"="+Qh(t))).join("&"),__=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class x_ extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,x_.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"CloudWatchClient",commandName:"PutMetricDataCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=w_;let n;return n=E_({...d_(e),Action:"PutMetricData",Version:"2010-08-01"}),v_(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>e.statusCode>=300?t_(e,t):(await g_(e.body,t),{$metadata:f_(e)}))(e,t)}}const C_=e=>new Promise((t=>setTimeout(t,1e3*e))),N_={minDelay:2,maxDelay:120};var k_;!function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"}(k_||(k_={}));const T_=(e,t,r,n)=>{if(n>r)return t;return A_(e,e*2**(n-1))},A_=(e,t)=>e+Math.random()*(t-e),P_=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:a,abortSignal:i},s,o)=>{const{state:d,reason:l}=await o(a,s);if(d!==k_.RETRY)return{state:d,reason:l};let u=1;const p=Date.now()+1e3*r,c=Math.log(t/e)/Math.log(2)+1;for(;;){if(n?.signal?.aborted||i?.aborted)return{state:k_.ABORTED};const r=T_(e,t,c,u);if(Date.now()+1e3*r>p)return{state:k_.TIMEOUT};await C_(r);const{state:d,reason:l}=await o(a,s);if(d!==k_.RETRY)return{state:d,reason:l};u+=1}},I_=async e=>new Promise((t=>{e.onabort=()=>t({state:k_.ABORTED})})),O_=async(e,t,r)=>{const n={...N_,...e};(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.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)})(n);const a=[P_(n,t,r)];return e.abortController&&a.push(I_(e.abortController.signal)),e.abortSignal&&a.push(I_(e.abortSignal)),Promise.race(a)};var D_,R_,M_,L_,F_;!function(e){e.Seconds="Seconds",e.Microseconds="Microseconds",e.Milliseconds="Milliseconds",e.Bytes="Bytes",e.Kilobytes="Kilobytes",e.Megabytes="Megabytes",e.Gigabytes="Gigabytes",e.Terabytes="Terabytes",e.Bits="Bits",e.Kilobits="Kilobits",e.Megabits="Megabits",e.Gigabits="Gigabits",e.Terabits="Terabits",e.Percent="Percent",e.Count="Count",e.BytesPerSecond="Bytes/Second",e.KilobytesPerSecond="Kilobytes/Second",e.MegabytesPerSecond="Megabytes/Second",e.GigabytesPerSecond="Gigabytes/Second",e.TerabytesPerSecond="Terabytes/Second",e.BitsPerSecond="Terabytes/Second",e.KilobitsPerSecond="Kilobits/Second",e.MegabitsPerSecond="Megabits/Second",e.GigabitsPerSecond="Gigabits/Second",e.TerabitsPerSecond="Terabits/Second",e.CountPerSecond="Count/Second",e.None="None"}(D_||(D_={}));class j_{cw;constructor(e=null){this.cw=e||new LS({region:"us-east-1",apiVersion:"2010-08-01"})}get cloudWatchClient(){return this.cw}async writeSingleMetric(e,t,r,n=D_.None,a,i=new Date,s=!1){const o=[];r&&r.length>0&&r.forEach((e=>{o.push({Name:e.key,Value:e.value})}));const d=s?1:60,l={Namespace:e,MetricData:[{MetricName:t,Dimensions:o,Unit:String(n),Value:a,Timestamp:i,StorageResolution:d}]};_n.silly("Writing metric to cw : %j",l);const u=await this.cw.send(new x_(l));return _n.silly("Result: %j",u),u}async writeDynamoCountAsMinuteLevelMetric(e){if(_n.info("Publishing %s / %s metric for %s UTC",e.namespace,e.metric,e.minuteUTC),e.scan&&e.query)throw new Error("Must send query or scan, but not both");if(!e.scan&&!e.query)throw new Error("You must specify either a scan or a query");const t=e.query?await e.dynamoRatchet.fullyExecuteQueryCount(e.query):await e.dynamoRatchet.fullyExecuteScanCount(e.scan);_n.debug("%s / %s for %s are %j",e.namespace,e.metric,e.minuteUTC,t);const r=e.minuteUTC.split(" ").join("T")+":00Z",n=mn.fromISO(r).toJSDate(),a=await this.writeSingleMetric(e.namespace,e.metric,e.dims,D_.Count,t.count,n,!1);return _n.debug("Metrics response: %j",a),t.count}}class U_{constructor(e){this.value=e}toString(){return(""+this.value).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}class V_{static of(e,t,r){const n=new V_(e);return void 0!==t&&n.addChildNode(new U_(t)),void 0!==r&&n.withName(r),n}constructor(e,t=[]){this.name=e,this.children=t,this.attributes={}}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const r=this.attributes;for(const e of Object.keys(r)){const a=r[e];null!=a&&(t+=` ${e}="${n=""+a,n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}"`)}var n;return t+(e?`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`:"/>")}}class B_ extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,B_.prototype)}}class $_ extends B_{constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,$_.prototype)}}!function(e){e.visit=(e,t)=>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])}(R_||(R_={})),function(e){e.visit=(e,t)=>void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.ObjectSizeGreaterThan?t.ObjectSizeGreaterThan(e.ObjectSizeGreaterThan):void 0!==e.ObjectSizeLessThan?t.ObjectSizeLessThan(e.ObjectSizeLessThan):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])}(M_||(M_={})),function(e){e.visit=(e,t)=>void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.AccessPointArn?t.AccessPointArn(e.AccessPointArn):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])}(L_||(L_={})),function(e){e.visit=(e,t)=>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])}(F_||(F_={}));class z_ extends B_{constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,z_.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class q_ extends B_{constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,q_.prototype)}}class H_ extends B_{constructor(e){super({name:"NotFound",$fault:"client",...e}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,H_.prototype)}}class K_ extends B_{constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,K_.prototype)}}const G_=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh}}),W_=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh}}),Z_=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh}}),J_=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh},...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:rh}}),Y_=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh}}),X_=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh},...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh}}),Q_=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh}}),ex=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh}}),tx=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh}}),rx=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh}}),nx=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh}}),ax=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh},...e.SSEKMSKeyId&&{SSEKMSKeyId:rh},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:rh}});var ix;!function(e){e.visit=(e,t)=>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])}(ix||(ix={}));const sx=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:rh}}),ox=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:rh}}),dx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},lx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body);switch(n){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await xx(r);default:const t=r.body;return wx({output:e,parsedBody:t,errorCode:n})}},ux=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},px=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},cx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body);switch(n){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await bx(r);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await Ex(r);default:const t=r.body;return wx({output:e,parsedBody:t,errorCode:n})}},mx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body);switch(n){case"NotFound":case"com.amazonaws.s3#NotFound":throw await _x(r);default:const t=r.body;return wx({output:e,parsedBody:t,errorCode:n})}},hx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body);switch(n){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Sx(r);default:const t=r.body;return wx({output:e,parsedBody:t,errorCode:n})}},fx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body);switch(n){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Sx(r);default:const t=r.body;return wx({output:e,parsedBody:t,errorCode:n})}},gx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},yx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},vx=async(e,t)=>{const r={...e,body:await jx(e.body,t)},n=Ux(e,r.body),a=r.body;return wx({output:e,parsedBody:a,errorCode:n})},wx=Jh(B_),bx=async(e,t)=>{const r=nf({}),n=e.body;void 0!==n.AccessTier&&(r.AccessTier=gh(n.AccessTier)),void 0!==n.StorageClass&&(r.StorageClass=gh(n.StorageClass));const a=new z_({$metadata:Rx(e),...r});return Zh(a,e.body)},Sx=async(e,t)=>{const r=nf({});e.body;const n=new K_({$metadata:Rx(e),...r});return Zh(n,e.body)},Ex=async(e,t)=>{const r=nf({});e.body;const n=new q_({$metadata:Rx(e),...r});return Zh(n,e.body)},_x=async(e,t)=>{const r=nf({});e.body;const n=new H_({$metadata:Rx(e),...r});return Zh(n,e.body)},xx=async(e,t)=>{const r=nf({});e.body;const n=new $_({$metadata:Rx(e),...r});return Zh(n,e.body)},Cx=(e,t)=>{const r=new V_("CompletedMultipartUpload");if(null!=e.Parts){Nx(e.Parts).map((e=>{e=e.withName("Part"),r.addChildNode(e)}))}return r},Nx=(e,t)=>e.filter((e=>null!=e)).map((e=>{const t=((e,t)=>{const r=new V_("CompletedPart");if(null!=e.ETag){const t=V_.of("ETag",e.ETag).withName("ETag");r.addChildNode(t)}if(null!=e.ChecksumCRC32){const t=V_.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");r.addChildNode(t)}if(null!=e.ChecksumCRC32C){const t=V_.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");r.addChildNode(t)}if(null!=e.ChecksumSHA1){const t=V_.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");r.addChildNode(t)}if(null!=e.ChecksumSHA256){const t=V_.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");r.addChildNode(t)}if(null!=e.PartNumber){const t=V_.of("PartNumber",String(e.PartNumber)).withName("PartNumber");r.addChildNode(t)}return r})(e);return t.withName("member")})),kx=(e,t)=>{const r=new V_("Tagging");if(null!=e.TagSet){const t=Tx(e.TagSet),n=new V_("TagSet");t.map((e=>{n.addChildNode(e)})),r.addChildNode(n)}return r},Tx=(e,t)=>e.filter((e=>null!=e)).map((e=>{const t=((e,t)=>{const r=new V_("Tag");if(null!=e.Key){const t=V_.of("ObjectKey",e.Key).withName("Key");r.addChildNode(t)}if(null!=e.Value){const t=V_.of("Value",e.Value).withName("Value");r.addChildNode(t)}return r})(e);return t.withName("Tag")})),Ax=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.Prefix&&(r.Prefix=gh(e.Prefix)),r})(e))),Px=(e,t)=>{const r={};return void 0!==e.ETag&&(r.ETag=gh(e.ETag)),void 0!==e.LastModified&&(r.LastModified=hh(Ih(e.LastModified))),void 0!==e.ChecksumCRC32&&(r.ChecksumCRC32=gh(e.ChecksumCRC32)),void 0!==e.ChecksumCRC32C&&(r.ChecksumCRC32C=gh(e.ChecksumCRC32C)),void 0!==e.ChecksumSHA1&&(r.ChecksumSHA1=gh(e.ChecksumSHA1)),void 0!==e.ChecksumSHA256&&(r.ChecksumSHA256=gh(e.ChecksumSHA256)),r},Ix=(e,t)=>{const r={};return void 0!==e.Key&&(r.Key=gh(e.Key)),void 0!==e.LastModified&&(r.LastModified=hh(Ih(e.LastModified))),void 0!==e.ETag&&(r.ETag=gh(e.ETag)),""===e.ChecksumAlgorithm?r.ChecksumAlgorithm=[]:void 0!==e.ChecksumAlgorithm&&(r.ChecksumAlgorithm=((e,t)=>(e||[]).filter((e=>null!=e)).map((e=>gh(e))))(ef(e.ChecksumAlgorithm))),void 0!==e.Size&&(r.Size=Eh(e.Size)),void 0!==e.StorageClass&&(r.StorageClass=gh(e.StorageClass)),void 0!==e.Owner&&(r.Owner=Dx(e.Owner)),r},Ox=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>Ix(e))),Dx=(e,t)=>{const r={};return void 0!==e.DisplayName&&(r.DisplayName=gh(e.DisplayName)),void 0!==e.ID&&(r.ID=gh(e.ID)),r},Rx=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Mx=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Lx=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Fx=(e,t)=>((e,t)=>Mx(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),jx=async(e,t)=>{const r=await Fx(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},Ux=(e,t)=>void 0!==t?.Code?t.Code:404==e.statusCode?"NotFound":void 0;const Vx={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},Bx=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{const{request:n}=r;if(Sf.isInstance(n)&&!n.headers["content-length"]){const e="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";"function"==typeof t?.logger?.warn?t.logger.warn(e):console.warn(e)}return e({...r})}),Vx)}}),$x=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),zx=(e,t)=>$x(e,t).then((e=>t.utf8Encoder(e))),qx={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Hx=e=>({applyToStack:t=>{t.addRelativeTo((e=>t=>async r=>{const n=await t(r),{response:a}=n;if(!Ef.isInstance(a))return n;const{statusCode:i,body:s}=a;if(i<200||i>=300)return n;const o=await $x(s,e),d=await zx(o,e);if(0===o.length){const e=new Error("S3 aborted request");throw e.name="InternalError",e}return d&&d.match("<Error>")&&(a.statusCode=400),a.body=o,n})(e),qx)}});const Kx={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Gx=e=>({applyToStack:e=>{e.add((e=>async t=>{const{input:{Bucket:r}}=t;if("string"==typeof r&&!("string"==typeof(n=r)&&0===n.indexOf("arn:")&&n.split(":").length>=6)&&r.indexOf("/")>=0){const e=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name="InvalidBucketName",e}var n;return e({...t})}),Kx)}});const Wx={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Zx=e=>({applyToStack:t=>{var r;t.add((r=e,e=>async t=>{let n={...t.input};const a=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const e of a){const t=n[e.target];if(t){const a=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):"string"==typeof t?r.utf8Decoder(t):new Uint8Array(t),i=r.base64Encoder(a),s=new r.md5;s.update(a),n={...n,[e.target]:i,[e.hash]:r.base64Encoder(await s.digest())}}}return e({...t,input:n})}),Wx)}});class Jx extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Jx.getEndpointParameterInstructions())),this.middlewareStack.use(Hx(t)),this.middlewareStack.use(Zx(t));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:W_,outputFilterSensitiveLog:G_},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"CompleteMultipartUpload"],uploadId:[,hh(e.UploadId,"UploadId")]});let l,u;return void 0!==e.MultipartUpload&&(l=Cx(e.MultipartUpload)),void 0!==e.MultipartUpload&&(u=Cx(e.MultipartUpload),u=u.withName("CompleteMultipartUpload"),l='<?xml version="1.0" encoding="UTF-8"?>',u.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=u.toString()),new Sf({protocol:n,hostname:r,port:a,method:"POST",headers:s,path:o,query:d,body:l})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return dx(e,t);const r=nf({$metadata:Rx(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),n=hh(fh(await Fx(e.body,t)),"body");return void 0!==n.Bucket&&(r.Bucket=gh(n.Bucket)),void 0!==n.ChecksumCRC32&&(r.ChecksumCRC32=gh(n.ChecksumCRC32)),void 0!==n.ChecksumCRC32C&&(r.ChecksumCRC32C=gh(n.ChecksumCRC32C)),void 0!==n.ChecksumSHA1&&(r.ChecksumSHA1=gh(n.ChecksumSHA1)),void 0!==n.ChecksumSHA256&&(r.ChecksumSHA256=gh(n.ChecksumSHA256)),void 0!==n.ETag&&(r.ETag=gh(n.ETag)),void 0!==n.Key&&(r.Key=gh(n.Key)),void 0!==n.Location&&(r.Location=gh(n.Location)),r})(e,t)}}class Yx extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Yx.getEndpointParameterInstructions())),this.middlewareStack.use(Hx(t)),this.middlewareStack.use(Zx(t));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:J_,outputFilterSensitiveLog:Z_},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>Lx(e.CopySourceIfModifiedSince),()=>Ah(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>Lx(e.CopySourceIfUnmodifiedSince),()=>Ah(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>Lx(e.Expires),()=>Ah(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>Lx(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>Lx(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(((t,r)=>(t[`x-amz-meta-${r.toLowerCase()}`]=e.Metadata[r],t)),{})});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"CopyObject"]});return new Sf({protocol:n,hostname:r,port:a,method:"PUT",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return lx(e,t);const r=nf({$metadata:Rx(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),n=fh(await Fx(e.body,t));return r.CopyObjectResult=Px(n),r})(e,t)}}class Xx extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Xx.getEndpointParameterInstructions())),this.middlewareStack.use(Zx(t));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:X_,outputFilterSensitiveLog:Y_},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>Lx(e.Expires),()=>Ah(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>Lx(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>Lx(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(((t,r)=>(t[`x-amz-meta-${r.toLowerCase()}`]=e.Metadata[r],t)),{})});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({uploads:[,""],"x-id":[,"CreateMultipartUpload"]});return new Sf({protocol:n,hostname:r,port:a,method:"POST",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return ux(e,t);const r=nf({$metadata:Rx(e),AbortDate:[()=>void 0!==e.headers["x-amz-abort-date"],()=>hh(Mh(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),n=hh(fh(await Fx(e.body,t)),"body");return void 0!==n.Bucket&&(r.Bucket=gh(n.Bucket)),void 0!==n.Key&&(r.Key=gh(n.Key)),void 0!==n.UploadId&&(r.UploadId=gh(n.UploadId)),r})(e,t)}}class Qx extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Qx.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>Lx(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]});return new Sf({protocol:n,hostname:r,port:a,method:"DELETE",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(204!==e.statusCode&&e.statusCode>=300)return px(e,t);const r=nf({$metadata:Rx(e),DeleteMarker:[()=>void 0!==e.headers["x-amz-delete-marker"],()=>nh(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await Mx(e.body,t),r})(e,t)}}var eC,tC;!function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"}(eC||(eC={})),function(e){e.HEADER="header",e.TRAILER="trailer"}(tC||(tC={}));const rC=[eC.CRC32,eC.CRC32C,eC.SHA1,eC.SHA256],nC=[eC.CRC32,eC.CRC32C,eC.SHA1,eC.SHA256],aC=e=>e===eC.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,iC=e=>void 0!==e&&"string"!=typeof e&&!ArrayBuffer.isView(e)&&!Yg(e);var sC,oC,dC={},lC={};function uC(){return oC||(oC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32=e.Crc32=e.crc32=void 0;var t=hv,r=Uv();e.crc32=function(e){return(new n).update(e).digest()};var n=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var r,n;try{for(var i=t.__values(e),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^o)]}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();e.Crc32=n;var a=(0,r.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),i=function(){if(sC)return lC;sC=1,Object.defineProperty(lC,"__esModule",{value:!0}),lC.AwsCrc32=void 0;var e=hv,t=Uv(),r=uC(),n=function(){function n(){this.crc32=new r.Crc32}return n.prototype.update=function(e){(0,t.isEmptyData)(e)||this.crc32.update((0,t.convertToBuffer)(e))},n.prototype.digest=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,(0,t.numToUint8)(this.crc32.digest())]}))}))},n.prototype.reset=function(){this.crc32=new r.Crc32},n}();return lC.AwsCrc32=n,lC}();Object.defineProperty(e,"AwsCrc32",{enumerable:!0,get:function(){return i.AwsCrc32}})}(dC)),dC}var pC,cC,mC=uC(),hC={},fC={};function gC(){return cC||(cC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32c=e.Crc32c=e.crc32c=void 0;var t=hv,r=Uv();e.crc32c=function(e){return(new n).update(e).digest()};var n=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var r,n;try{for(var i=t.__values(e),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^o)]}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();e.Crc32c=n;var a=(0,r.uint32ArrayFrom)([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),i=function(){if(pC)return fC;pC=1,Object.defineProperty(fC,"__esModule",{value:!0}),fC.AwsCrc32c=void 0;var e=hv,t=Uv(),r=gC(),n=function(){function n(){this.crc32c=new r.Crc32c}return n.prototype.update=function(e){(0,t.isEmptyData)(e)||this.crc32c.update((0,t.convertToBuffer)(e))},n.prototype.digest=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,(0,t.numToUint8)(this.crc32c.digest())]}))}))},n.prototype.reset=function(){this.crc32c=new r.Crc32c},n}();return fC.AwsCrc32c=n,fC}();Object.defineProperty(e,"AwsCrc32c",{enumerable:!0,get:function(){return i.AwsCrc32c}})}(hC)),hC}var yC=gC();const vC=(e,t)=>({[eC.MD5]:t.md5,[eC.CRC32]:mC.AwsCrc32,[eC.CRC32C]:yC.AwsCrc32c,[eC.SHA1]:t.sha1,[eC.SHA256]:t.sha256}[e]),wC=(e,t)=>{const r=new e;return r.update(kg(t||"")),r.digest()},bC=async(e,{streamHasher:t,checksumAlgorithmFn:r,base64Encoder:n})=>{const a=iC(e)?t(r,e):wC(r,e);return n(await a)},SC=async(e,{config:t,responseAlgorithms:r})=>{const n=((e=[])=>{const t=[];for(const r of nC)e.includes(r)&&rC.includes(r)&&t.push(r);return t})(r),{body:a,headers:i}=e;for(const e of n){const r=aC(e),n=i[r];if(n){const i=vC(e,t),{streamHasher:s,base64Encoder:o}=t,d=await bC(a,{streamHasher:s,checksumAlgorithmFn:i,base64Encoder:o});if(d===n)break;throw new Error(`Checksum mismatch: expected "${d}" but received "${n}" in response header "${r}".`)}}},EC=(e,t)=>r=>async n=>{if(!Sf.isInstance(n.request))return r(n);const{request:a}=n,{body:i,headers:s}=a,{base64Encoder:o,streamHasher:d}=e,{input:l,requestChecksumRequired:u,requestAlgorithmMember:p}=t,c=((e,{requestChecksumRequired:t,requestAlgorithmMember:r})=>{if(!r||!e[r])return t?eC.MD5:void 0;const n=e[r];if(!rC.includes(n))throw new Error(`The checksum algorithm "${n}" is not supported by the client. Select one of ${rC}.`);return n})(l,{requestChecksumRequired:u,requestAlgorithmMember:p});let m=i,h=s;if(c){const t=aC(c),r=vC(c,e);if(iC(i)){const{getAwsChunkedEncodingStream:n,bodyLengthChecker:a}=e;m=n(i,{base64Encoder:o,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:r,streamHasher:d}),h={...s,"content-encoding":s["content-encoding"]?`${s["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":s["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":t},delete h["content-length"]}else if(!((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(r===e.toLowerCase())return!0;return!1})(t,s)){const e=await wC(r,i);h={...s,[t]:o(e)}}}const f=await r({...n,request:{...a,headers:h,body:m}}),{requestValidationModeMember:g,responseAlgorithms:y}=t;return g&&"ENABLED"===l[g]&&SC(f.response,{config:e,responseAlgorithms:y}),f},_C={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xC=(e,t)=>({applyToStack:r=>{r.add(EC(e,t),_C)}});class CC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,CC.getEndpointParameterInstructions())),this.middlewareStack.use(Zx(t)),this.middlewareStack.use(xC(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:ex,outputFilterSensitiveLog:Q_},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"if-match":e.IfMatch,"if-modified-since":[()=>Lx(e.IfModifiedSince),()=>Ah(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>Lx(e.IfUnmodifiedSince),()=>Ah(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>void 0!==e.ResponseExpires,()=>Ah(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>void 0!==e.PartNumber,()=>e.PartNumber.toString()]});return new Sf({protocol:n,hostname:r,port:a,method:"GET",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return cx(e,t);const r=nf({$metadata:Rx(e),DeleteMarker:[()=>void 0!==e.headers["x-amz-delete-marker"],()=>nh(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>void 0!==e.headers["last-modified"],()=>hh(Mh(e.headers["last-modified"]))],ContentLength:[()=>void 0!==e.headers["content-length"],()=>Eh(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>void 0!==e.headers["x-amz-missing-meta"],()=>_h(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>void 0!==e.headers.expires,()=>hh(Mh(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>void 0!==e.headers["x-amz-mp-parts-count"],()=>_h(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>void 0!==e.headers["x-amz-tagging-count"],()=>_h(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>void 0!==e.headers["x-amz-object-lock-retain-until-date"],()=>hh(Ih(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter((e=>e.startsWith("x-amz-meta-"))).reduce(((t,r)=>(t[r.substring(11)]=e.headers[r],t)),{})]}),n=e.body;return t.sdkStreamMixin(n),r.Body=n,r})(e,t)}}class NC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,NC.getEndpointParameterInstructions())),this.middlewareStack.use(Zx(t));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:rx,outputFilterSensitiveLog:tx},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"if-match":e.IfMatch,"if-modified-since":[()=>Lx(e.IfModifiedSince),()=>Ah(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>Lx(e.IfUnmodifiedSince),()=>Ah(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({versionId:[,e.VersionId],partNumber:[()=>void 0!==e.PartNumber,()=>e.PartNumber.toString()]});return new Sf({protocol:n,hostname:r,port:a,method:"HEAD",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return mx(e,t);const r=nf({$metadata:Rx(e),DeleteMarker:[()=>void 0!==e.headers["x-amz-delete-marker"],()=>nh(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>void 0!==e.headers["last-modified"],()=>hh(Mh(e.headers["last-modified"]))],ContentLength:[()=>void 0!==e.headers["content-length"],()=>Eh(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>void 0!==e.headers["x-amz-missing-meta"],()=>_h(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>void 0!==e.headers.expires,()=>hh(Mh(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>void 0!==e.headers["x-amz-mp-parts-count"],()=>_h(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>void 0!==e.headers["x-amz-object-lock-retain-until-date"],()=>hh(Ih(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter((e=>e.startsWith("x-amz-meta-"))).reduce(((t,r)=>(t[r.substring(11)]=e.headers[r],t)),{})]});return await Mx(e.body,t),r})(e,t)}}class kC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,kC.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1);const d=nf({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>void 0!==e.MaxKeys,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]});return new Sf({protocol:n,hostname:r,port:a,method:"GET",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return hx(e,t);const r=nf({$metadata:Rx(e)}),n=hh(fh(await Fx(e.body,t)),"body");return""===n.CommonPrefixes?r.CommonPrefixes=[]:void 0!==n.CommonPrefixes&&(r.CommonPrefixes=Ax(ef(n.CommonPrefixes))),""===n.Contents?r.Contents=[]:void 0!==n.Contents&&(r.Contents=Ox(ef(n.Contents))),void 0!==n.Delimiter&&(r.Delimiter=gh(n.Delimiter)),void 0!==n.EncodingType&&(r.EncodingType=gh(n.EncodingType)),void 0!==n.IsTruncated&&(r.IsTruncated=nh(n.IsTruncated)),void 0!==n.Marker&&(r.Marker=gh(n.Marker)),void 0!==n.MaxKeys&&(r.MaxKeys=_h(n.MaxKeys)),void 0!==n.Name&&(r.Name=gh(n.Name)),void 0!==n.NextMarker&&(r.NextMarker=gh(n.NextMarker)),void 0!==n.Prefix&&(r.Prefix=gh(n.Prefix)),r})(e,t)}}class TC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,TC.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1);const d=nf({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>void 0!==e.MaxKeys,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>void 0!==e.FetchOwner,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]});return new Sf({protocol:n,hostname:r,port:a,method:"GET",headers:s,path:o,query:d,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return fx(e,t);const r=nf({$metadata:Rx(e)}),n=hh(fh(await Fx(e.body,t)),"body");return""===n.CommonPrefixes?r.CommonPrefixes=[]:void 0!==n.CommonPrefixes&&(r.CommonPrefixes=Ax(ef(n.CommonPrefixes))),""===n.Contents?r.Contents=[]:void 0!==n.Contents&&(r.Contents=Ox(ef(n.Contents))),void 0!==n.ContinuationToken&&(r.ContinuationToken=gh(n.ContinuationToken)),void 0!==n.Delimiter&&(r.Delimiter=gh(n.Delimiter)),void 0!==n.EncodingType&&(r.EncodingType=gh(n.EncodingType)),void 0!==n.IsTruncated&&(r.IsTruncated=nh(n.IsTruncated)),void 0!==n.KeyCount&&(r.KeyCount=_h(n.KeyCount)),void 0!==n.MaxKeys&&(r.MaxKeys=_h(n.MaxKeys)),void 0!==n.Name&&(r.Name=gh(n.Name)),void 0!==n.NextContinuationToken&&(r.NextContinuationToken=gh(n.NextContinuationToken)),void 0!==n.Prefix&&(r.Prefix=gh(n.Prefix)),void 0!==n.StartAfter&&(r.StartAfter=gh(n.StartAfter)),r})(e,t)}}class AC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,AC.getEndpointParameterInstructions())),this.middlewareStack.use(Bx()),this.middlewareStack.use(Zx(t)),this.middlewareStack.use(xC(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:ax,outputFilterSensitiveLog:nx},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>Lx(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>Lx(e.Expires),()=>Ah(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>Lx(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>Lx(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(((t,r)=>(t[`x-amz-meta-${r.toLowerCase()}`]=e.Metadata[r],t)),{})});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"PutObject"]});let l,u;return void 0!==e.Body&&(l=e.Body),void 0!==e.Body&&(u=e.Body,l=u),new Sf({protocol:n,hostname:r,port:a,method:"PUT",headers:s,path:o,query:d,body:l})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return gx(e,t);const r=nf({$metadata:Rx(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await Mx(e.body,t),r})(e,t)}}class PC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,PC.getEndpointParameterInstructions())),this.middlewareStack.use(xC(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({tagging:[,""],versionId:[,e.VersionId]});let l,u;return void 0!==e.Tagging&&(l=kx(e.Tagging)),void 0!==e.Tagging&&(u=kx(e.Tagging),l='<?xml version="1.0" encoding="UTF-8"?>',u.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=u.toString()),new Sf({protocol:n,hostname:r,port:a,method:"PUT",headers:s,path:o,query:d,body:l})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return yx(e,t);const r=nf({$metadata:Rx(e),VersionId:[,e.headers["x-amz-version-id"]]});return await Mx(e.body,t),r})(e,t)}}class IC extends th{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,IC.getEndpointParameterInstructions())),this.middlewareStack.use(Zx(t)),this.middlewareStack.use(xC(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:ox,outputFilterSensitiveLog:sx},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint(),s=nf({},Lx,{"content-type":"application/octet-stream","content-length":[()=>Lx(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner});let o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/{Key+}`;o=uf(o,e,"Bucket",(()=>e.Bucket),"{Bucket}",!1),o=uf(o,e,"Key",(()=>e.Key),"{Key+}",!0);const d=nf({"x-id":[,"UploadPart"],partNumber:[null!=hh(e.PartNumber,"PartNumber"),()=>e.PartNumber.toString()],uploadId:[,hh(e.UploadId,"UploadId")]});let l,u;return void 0!==e.Body&&(l=e.Body),void 0!==e.Body&&(u=e.Body,l=u),new Sf({protocol:n,hostname:r,port:a,method:"PUT",headers:s,path:o,query:d,body:l})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return vx(e,t);const r=nf({$metadata:Rx(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"],()=>nh(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await Mx(e.body,t),r})(e,t)}}const OC={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},DC=e=>({applyToStack:t=>{t.add(function(e){return t=>async r=>{const{request:n}=r;return Sf.isInstance(n)&&n.body&&"node"===e.runtime&&(n.headers={...n.headers,Expect:"100-continue"}),t({...r,request:n})}}(e),OC)}});var RC,MC="3.332.0",LC={},FC={},jC={},UC={};function VC(){if(RC)return UC;return RC=1,Object.defineProperty(UC,"__esModule",{value:!0}),UC.isEmptyData=void 0,UC.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength},UC}var BC,$C,zC={};function qC(){return BC||(BC=1,e=zC,Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_DATA_SHA_1=e.SHA_1_HMAC_ALGO=e.SHA_1_HASH=void 0,e.SHA_1_HASH={name:"SHA-1"},e.SHA_1_HMAC_ALGO={name:"HMAC",hash:e.SHA_1_HASH},e.EMPTY_DATA_SHA_1=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9])),zC;var e}function HC(){if($C)return jC;$C=1,Object.defineProperty(jC,"__esModule",{value:!0}),jC.Sha1=void 0;var e=VC(),t=qC(),r=Ev,n=Cv,a=function(){function r(e){this.secret=e,this.reset()}return r.prototype.update=function(t){var r=this;(0,e.isEmptyData)(t)||(this.operation=this.operation.then((function(e){return e.onerror=function(){r.operation=Promise.reject(new Error("Error encountered updating hash"))},e.process(i(t)),e})),this.operation.catch((function(){})))},r.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(new Error("Error encountered finalizing hash"))},e.finish()}))}))},r.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise((function(r,a){var s=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",i(e),t.SHA_1_HMAC_ALGO,!1,["sign"]);s.oncomplete=function(){s.result&&r(s.result),a(new Error("ImportKey completed without importing key."))},s.onerror=function(){a(new Error("ImportKey failed to import key."))}}))).then((function(e){return(0,n.locateWindow)().msCrypto.subtle.sign(t.SHA_1_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-1"))},r}();function i(e){return"string"==typeof e?(0,r.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}return jC.Sha1=a,jC}var KC,GC,WC,ZC={};function JC(){if(KC)return ZC;KC=1,Object.defineProperty(ZC,"__esModule",{value:!0}),ZC.Sha1=void 0;var e=Ev,t=VC(),r=qC(),n=Cv,a=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,a){(0,n.locateWindow)().crypto.subtle.importKey("raw",i(e),r.SHA_1_HMAC_ALGO,!1,["sign"]).then(t,a)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!(0,t.isEmptyData)(e)){var r=i(e),n=new Uint8Array(this.toHash.byteLength+r.byteLength);n.set(this.toHash,0),n.set(r,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return(0,n.locateWindow)().crypto.subtle.sign(r.SHA_1_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,t.isEmptyData)(this.toHash)?Promise.resolve(r.EMPTY_DATA_SHA_1):Promise.resolve().then((function(){return(0,n.locateWindow)().crypto.subtle.digest(r.SHA_1_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e}();function i(t){return"string"==typeof t?(0,e.fromUtf8)(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}return ZC.Sha1=a,ZC}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WebCryptoSha1=e.Ie11Sha1=void 0,hv.__exportStar(function(){if(GC)return FC;GC=1,Object.defineProperty(FC,"__esModule",{value:!0}),FC.Sha1=void 0;var e=HC(),t=JC(),r=tw(),n=fw(),a=Cv,i=Uv(),s=function(){function s(i){if((0,r.supportsWebCrypto)((0,a.locateWindow)()))this.hash=new t.Sha1(i);else{if(!(0,n.isMsWindow)((0,a.locateWindow)()))throw new Error("SHA1 not supported");this.hash=new e.Sha1(i)}}return s.prototype.update=function(e,t){this.hash.update((0,i.convertToBuffer)(e))},s.prototype.digest=function(){return this.hash.digest()},s.prototype.reset=function(){this.hash.reset()},s}();return FC.Sha1=s,FC}(),e);var t=HC();Object.defineProperty(e,"Ie11Sha1",{enumerable:!0,get:function(){return t.Sha1}});var r=JC();Object.defineProperty(e,"WebCryptoSha1",{enumerable:!0,get:function(){return r.Sha1}})}(LC);class YC{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&XC(t),new YC(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&XC(e),parseInt(Cg(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function XC(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class QC{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(a.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),o=new DataView(new ArrayBuffer(3+s.byteLength));o.setUint8(0,7),o.setUint16(1,s.byteLength,!1);const d=new Uint8Array(o.buffer);return d.set(s,3),d;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(YC.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!lN.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in xg))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=xg[n]}return t}(e.value.replace(/\-/g,"")),1),u}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),a=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[a]={type:eN,value:!0};break;case 1:t[a]={type:eN,value:!1};break;case 2:t[a]={type:tN,value:e.getInt8(r++)};break;case 3:t[a]={type:rN,value:e.getInt16(r,!1)},r+=2;break;case 4:t[a]={type:nN,value:e.getInt32(r,!1)},r+=4;break;case 5:t[a]={type:aN,value:new YC(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[a]={type:iN,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[a]={type:sN,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[a]={type:oN,value:new Date(new YC(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[a]={type:dN,value:`${Cg(s.subarray(0,4))}-${Cg(s.subarray(4,6))}-${Cg(s.subarray(6,8))}-${Cg(s.subarray(8,10))}-${Cg(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(WC||(WC={}));const eN="boolean",tN="byte",rN="short",nN="integer",aN="long",iN="binary",sN="string",oN="timestamp",dN="uuid",lN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class uN{constructor(e,t){this.headerMarshaller=new QC(e,t)}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,a=new Uint8Array(n),i=new DataView(a.buffer,a.byteOffset,a.byteLength),s=new mC.Crc32;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(a.subarray(0,8)).digest(),!1),a.set(r,12),a.set(t,r.byteLength+12),i.setUint32(n-4,s.update(a.subarray(8,n-4)).digest(),!1),a}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),a=n.getUint32(0,!1);if(e!==a)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),o=n.getUint32(e-4,!1),d=(new mC.Crc32).update(new Uint8Array(r,t,8));if(s!==d.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${d.digest()})`);if(d.update(new Uint8Array(r,t+8,e-12)),o!==d.digest())throw new Error(`The message checksum (${d.digest()}) did not match the expected value of ${o}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,a-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class pN{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new class{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new uN(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,a=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:o}=await s.next();if(o){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const d=e.length;let l=0;for(;l<d;){if(!n){const t=d-l;a||(a=new Uint8Array(4));const n=Math.min(4-r,t);if(a.set(e.slice(l,l+n),r),r+=n,l+=n,r<4)break;i(new DataView(a.buffer).getUint32(0,!1)),a=null}const s=Math.min(t-r,d-l);n.set(e.slice(l,l+s),r),r+=s,l+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e),n=(a=r,i={eventStreamCodec:this.eventStreamCodec,deserializer:t,toUtf8:this.utfEncoder},{[Symbol.asyncIterator]:async function*(){for await(const e of a){const t=i.eventStreamCodec.decode(e),{value:r}=t.headers[":message-type"];if("error"===r){const e=new Error(t.headers[":error-message"].value||"UnknownError");throw e.name=t.headers[":error-code"].value,e}if("exception"===r){const e=t.headers[":exception-type"].value,r={[e]:t},n=await i.deserializer(r);if(n.$unknown){const r=new Error(i.toUtf8(t.body));throw r.name=e,r}throw n[e]}if("event"!==r)throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`);{const e={[t.headers[":event-type"].value]:t},r=await i.deserializer(e);if(r.$unknown)continue;yield r}}}});var a,i;return n}serialize(e,t){const r=this;return{[Symbol.asyncIterator]:async function*(){for await(const n of e){const e=r.eventStreamCodec.encode(t(n));yield e}yield new Uint8Array(0)}}}}({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=cN(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const cN=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,mN=e=>new pN(e);const hN=async function(e,t){const r=new e;return await function(e,t,r=1048576){return new Promise(((n,a)=>{const i=new FileReader;i.addEventListener("error",a),i.addEventListener("abort",a);const s=e.size;let o=0;function d(){o>=s?n():i.readAsArrayBuffer(e.slice(o,Math.min(s,o+r)))}i.addEventListener("load",(e=>{const r=e.target.result;t(new Uint8Array(r)),o+=r.byteLength,d()})),d()}))}(t,(e=>{r.update(e)})),r.digest()},fN=64,gN=[1732584193,4023233417,2562383102,271733878];class yN{constructor(){this.reset()}update(e){if(function(e){if("string"==typeof e)return 0===e.length;return 0===e.byteLength}(e))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const t=function(e){if("string"==typeof e)return Ng(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)}(e);let r=0,{byteLength:n}=t;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,this.bufferLength===fN&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:e,bufferLength:t,bytesHashed:r}=this,n=8*r;if(e.setUint8(this.bufferLength++,128),t%fN>=56){for(let t=this.bufferLength;t<fN;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,n>>>0,!0),e.setUint32(60,Math.floor(n/4294967296),!0),this.hashBuffer(),this.finished=!0}const e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(4*t,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){const{buffer:e,state:t}=this;let r=t[0],n=t[1],a=t[2],i=t[3];r=wN(r,n,a,i,e.getUint32(0,!0),7,3614090360),i=wN(i,r,n,a,e.getUint32(4,!0),12,3905402710),a=wN(a,i,r,n,e.getUint32(8,!0),17,606105819),n=wN(n,a,i,r,e.getUint32(12,!0),22,3250441966),r=wN(r,n,a,i,e.getUint32(16,!0),7,4118548399),i=wN(i,r,n,a,e.getUint32(20,!0),12,1200080426),a=wN(a,i,r,n,e.getUint32(24,!0),17,2821735955),n=wN(n,a,i,r,e.getUint32(28,!0),22,4249261313),r=wN(r,n,a,i,e.getUint32(32,!0),7,1770035416),i=wN(i,r,n,a,e.getUint32(36,!0),12,2336552879),a=wN(a,i,r,n,e.getUint32(40,!0),17,4294925233),n=wN(n,a,i,r,e.getUint32(44,!0),22,2304563134),r=wN(r,n,a,i,e.getUint32(48,!0),7,1804603682),i=wN(i,r,n,a,e.getUint32(52,!0),12,4254626195),a=wN(a,i,r,n,e.getUint32(56,!0),17,2792965006),n=wN(n,a,i,r,e.getUint32(60,!0),22,1236535329),r=bN(r,n,a,i,e.getUint32(4,!0),5,4129170786),i=bN(i,r,n,a,e.getUint32(24,!0),9,3225465664),a=bN(a,i,r,n,e.getUint32(44,!0),14,643717713),n=bN(n,a,i,r,e.getUint32(0,!0),20,3921069994),r=bN(r,n,a,i,e.getUint32(20,!0),5,3593408605),i=bN(i,r,n,a,e.getUint32(40,!0),9,38016083),a=bN(a,i,r,n,e.getUint32(60,!0),14,3634488961),n=bN(n,a,i,r,e.getUint32(16,!0),20,3889429448),r=bN(r,n,a,i,e.getUint32(36,!0),5,568446438),i=bN(i,r,n,a,e.getUint32(56,!0),9,3275163606),a=bN(a,i,r,n,e.getUint32(12,!0),14,4107603335),n=bN(n,a,i,r,e.getUint32(32,!0),20,1163531501),r=bN(r,n,a,i,e.getUint32(52,!0),5,2850285829),i=bN(i,r,n,a,e.getUint32(8,!0),9,4243563512),a=bN(a,i,r,n,e.getUint32(28,!0),14,1735328473),n=bN(n,a,i,r,e.getUint32(48,!0),20,2368359562),r=SN(r,n,a,i,e.getUint32(20,!0),4,4294588738),i=SN(i,r,n,a,e.getUint32(32,!0),11,2272392833),a=SN(a,i,r,n,e.getUint32(44,!0),16,1839030562),n=SN(n,a,i,r,e.getUint32(56,!0),23,4259657740),r=SN(r,n,a,i,e.getUint32(4,!0),4,2763975236),i=SN(i,r,n,a,e.getUint32(16,!0),11,1272893353),a=SN(a,i,r,n,e.getUint32(28,!0),16,4139469664),n=SN(n,a,i,r,e.getUint32(40,!0),23,3200236656),r=SN(r,n,a,i,e.getUint32(52,!0),4,681279174),i=SN(i,r,n,a,e.getUint32(0,!0),11,3936430074),a=SN(a,i,r,n,e.getUint32(12,!0),16,3572445317),n=SN(n,a,i,r,e.getUint32(24,!0),23,76029189),r=SN(r,n,a,i,e.getUint32(36,!0),4,3654602809),i=SN(i,r,n,a,e.getUint32(48,!0),11,3873151461),a=SN(a,i,r,n,e.getUint32(60,!0),16,530742520),n=SN(n,a,i,r,e.getUint32(8,!0),23,3299628645),r=EN(r,n,a,i,e.getUint32(0,!0),6,4096336452),i=EN(i,r,n,a,e.getUint32(28,!0),10,1126891415),a=EN(a,i,r,n,e.getUint32(56,!0),15,2878612391),n=EN(n,a,i,r,e.getUint32(20,!0),21,4237533241),r=EN(r,n,a,i,e.getUint32(48,!0),6,1700485571),i=EN(i,r,n,a,e.getUint32(12,!0),10,2399980690),a=EN(a,i,r,n,e.getUint32(40,!0),15,4293915773),n=EN(n,a,i,r,e.getUint32(4,!0),21,2240044497),r=EN(r,n,a,i,e.getUint32(32,!0),6,1873313359),i=EN(i,r,n,a,e.getUint32(60,!0),10,4264355552),a=EN(a,i,r,n,e.getUint32(24,!0),15,2734768916),n=EN(n,a,i,r,e.getUint32(52,!0),21,1309151649),r=EN(r,n,a,i,e.getUint32(16,!0),6,4149444226),i=EN(i,r,n,a,e.getUint32(44,!0),10,3174756917),a=EN(a,i,r,n,e.getUint32(8,!0),15,718787259),n=EN(n,a,i,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=a+t[2]&4294967295,t[3]=i+t[3]&4294967295}reset(){this.state=Uint32Array.from(gN),this.buffer=new DataView(new ArrayBuffer(fN)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function vN(e,t,r,n,a,i){return((t=(t+e&4294967295)+(n+i&4294967295)&4294967295)<<a|t>>>32-a)+r&4294967295}function wN(e,t,r,n,a,i,s){return vN(t&r|~t&n,e,t,a,i,s)}function bN(e,t,r,n,a,i,s){return vN(t&n|r&~n,e,t,a,i,s)}function SN(e,t,r,n,a,i,s){return vN(t^r^n,e,t,a,i,s)}function EN(e,t,r,n,a,i,s){return vN(r^(t|~n),e,t,a,i,s)}const _N=(e,t)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:a,checksumLocationName:i,streamHasher:s}=t,o=void 0!==r&&void 0!==n&&void 0!==a&&void 0!==i&&void 0!==s,d=o?s(a,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:a}=await l.read();if(a){if(e.enqueue("0\r\n"),o){const t=r(await d);e.enqueue(`${i}:${t}\r\n`),e.enqueue("\r\n")}e.close()}else e.enqueue(`${(n(t)||0).toString(16)}\r\n${t}\r\n`)}})},xN="The stream has already been transformed.",CN=e=>{if(!NN(e)&&!kN(e)){throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${e?.__proto__?.constructor?.name||e}`)}let t=!1;const r=async()=>{if(t)throw new Error(xN);return t=!0,await xw(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async e=>{const t=await r();if("base64"===e)return _w(t);if("hex"===e)return Cg(t);if(void 0===e||"utf8"===e||"utf-8"===e)return Tg(t);if("function"==typeof TextDecoder)return new TextDecoder(e).decode(t);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(xN);if(t=!0,NN(e))return(e=>{if("function"!=typeof e.stream)throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if(kN(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},NN=e=>"function"==typeof Blob&&e instanceof Blob,kN=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream;class TN{constructor(e){this.sigv4Signer=new ny(e),this.signerOptions=e}async sign(e,t={}){if("*"===t.signingRegion){if("node"!==this.signerOptions.runtime)throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(e,t)}return this.sigv4Signer.sign(e,t)}async presign(e,t={}){if("*"===t.signingRegion){if("node"!==this.signerOptions.runtime)throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(e,t)}return this.sigv4Signer.presign(e,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let e;try{if(e="function"==typeof require&&require("@aws-sdk/signature-v4-crt").CrtSignerV4,"function"!=typeof e)throw new Error}catch(e){throw e.message=`${e.message}\nPlease check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. \nFor more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,e}this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}}const AN="required",PN="type",IN="rules",ON="conditions",DN="fn",RN="argv",MN="ref",LN="assign",FN="url",jN="properties",UN="authSchemes",VN="disableDoubleEncoding",BN="signingName",$N="signingRegion",zN="headers",qN=!0,HN="tree",KN="isSet",GN="substring",WN="hardwareType",ZN="regionPrefix",JN="abbaSuffix",YN="outpostId",XN="aws.partition",QN="stringEquals",ek="isValidHostLabel",tk="not",rk="error",nk="parseURL",ak="s3-outposts",ik="endpoint",sk="booleanEquals",ok="aws.parseArn",dk="s3",lk="aws.isVirtualHostableS3Bucket",uk="getAttr",pk="name",ck="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",mk="https://{Bucket}.s3.{partitionResult#dnsSuffix}",hk="bucketArn",fk="arnType",gk="s3-object-lambda",yk="accesspoint",vk="accessPointName",wk="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",bk="mrapPartition",Sk="outpostType",Ek="arnPrefix",_k="{url#scheme}://{url#authority}{url#path}",xk="https://s3.{partitionResult#dnsSuffix}",Ck={[AN]:!1,[PN]:"String"},Nk={[AN]:!0,default:!1,[PN]:"Boolean"},kk={[AN]:!1,[PN]:"Boolean"},Tk={[DN]:KN,[RN]:[{[MN]:"Bucket"}]},Ak={[MN]:"Bucket"},Pk={[MN]:WN},Ik={[ON]:[{[DN]:tk,[RN]:[{[DN]:KN,[RN]:[{[MN]:"Endpoint"}]}]}],[rk]:"Expected a endpoint to be specified but no endpoint was found",[PN]:rk},Ok={[DN]:tk,[RN]:[{[DN]:KN,[RN]:[{[MN]:"Endpoint"}]}]},Dk={[DN]:KN,[RN]:[{[MN]:"Endpoint"}]},Rk={[DN]:nk,[RN]:[{[MN]:"Endpoint"}],[LN]:"url"},Mk={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:ak,[$N]:"{Region}"}]},Lk={},Fk={[MN]:"ForcePathStyle"},jk={[ON]:[{[DN]:"uriEncode",[RN]:[Ak],[LN]:"uri_encoded_bucket"}],[PN]:HN,[IN]:[{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Dk],[rk]:"Cannot set dual-stack in combination with a custom endpoint.",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:XN,[RN]:[{[MN]:"Region"}],[LN]:"partitionResult"}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:sk,[RN]:[{[MN]:"Accelerate"},!1]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ik]:{[FN]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ik]:{[FN]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ik]:{[FN]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"us-east-1"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Dk,Rk,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]}],[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"us-east-1"]}],[ik]:{[FN]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik},{[ik]:{[FN]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]},{[ON]:[{[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Ok,{[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},{[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]}],[ik]:{[FN]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},[zN]:{}},[PN]:ik}]}]},{[rk]:"Path-style addressing cannot be used with S3 Accelerate",[PN]:rk}]}]},{[rk]:"A valid partition could not be determined",[PN]:rk}]}]},Uk={[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!0]},Vk={[DN]:sk,[RN]:[{[MN]:"Accelerate"},!1]},Bk={[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!0]},$k={[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}]},zk={[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!0]},qk={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{Region}"}]},Hk={[DN]:sk,[RN]:[{[MN]:"UseGlobalEndpoint"},!1]},Kk={[DN]:sk,[RN]:[{[MN]:"UseDualStack"},!1]},Gk={[DN]:sk,[RN]:[{[MN]:"UseFIPS"},!1]},Wk={[rk]:"A valid partition could not be determined",[PN]:rk},Zk={[ON]:[Bk,{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[{[MN]:"partitionResult"},pk]},"aws-cn"]}],[rk]:"Partition does not support FIPS",[PN]:rk},Jk={[DN]:sk,[RN]:[{[MN]:"Accelerate"},!0]},Yk={[ON]:[Uk,Bk,Vk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},Xk={[FN]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},Qk={[ON]:[Kk,Bk,Vk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},eT={[FN]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},tT={[ON]:[Uk,Gk,Jk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},rT={[FN]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},nT={[ON]:[Uk,Gk,Vk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},aT={[FN]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},iT={[ON]:[Kk,Gk,Vk,Dk,Rk,{[DN]:sk,[RN]:[{[DN]:uk,[RN]:[{[MN]:"url"},"isIp"]},!0]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},sT={[DN]:sk,[RN]:[{[DN]:uk,[RN]:[{[MN]:"url"},"isIp"]},!0]},oT={[MN]:"url"},dT={[ON]:[Kk,Gk,Vk,Dk,Rk,{[DN]:sk,[RN]:[{[DN]:uk,[RN]:[oT,"isIp"]},!1]},{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},lT={[DN]:sk,[RN]:[{[DN]:uk,[RN]:[oT,"isIp"]},!1]},uT={[FN]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[jN]:qk,[zN]:{}},pT={[FN]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[jN]:qk,[zN]:{}},cT={[ik]:pT,[PN]:ik},mT={[ON]:[Kk,Gk,Jk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},hT={[FN]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},fT={[ON]:[Kk,Gk,Vk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:mk,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},gT={[FN]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},yT={[rk]:"Invalid region: region was not a valid DNS name.",[PN]:rk},vT={[MN]:hk},wT={[MN]:fk},bT={[DN]:uk,[RN]:[vT,"service"]},ST={[MN]:vk},ET={[ON]:[Uk],[rk]:"S3 Object Lambda does not support Dual-stack",[PN]:rk},_T={[ON]:[Jk],[rk]:"S3 Object Lambda does not support S3 Accelerate",[PN]:rk},xT={[ON]:[{[DN]:KN,[RN]:[{[MN]:"DisableAccessPoints"}]},{[DN]:sk,[RN]:[{[MN]:"DisableAccessPoints"},!0]}],[rk]:"Access points are not supported for this operation",[PN]:rk},CT={[ON]:[{[DN]:KN,[RN]:[{[MN]:"UseArnRegion"}]},{[DN]:sk,[RN]:[{[MN]:"UseArnRegion"},!1]},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[vT,"region"]},"{Region}"]}]}],[rk]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[PN]:rk},NT={[DN]:uk,[RN]:[{[MN]:"bucketPartition"},pk]},kT={[DN]:uk,[RN]:[vT,"accountId"]},TT={[ON]:[Bk,{[DN]:QN,[RN]:[NT,"aws-cn"]}],[rk]:"Partition does not support FIPS",[PN]:rk},AT={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:gk,[$N]:"{bucketArn#region}"}]},PT={[rk]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[PN]:rk},IT={[rk]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[PN]:rk},OT={[rk]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[PN]:rk},DT={[rk]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[PN]:rk},RT={[rk]:"Could not load partition for ARN region `{bucketArn#region}`",[PN]:rk},MT={[rk]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[PN]:rk},LT={[rk]:"Invalid ARN: bucket ARN is missing a region",[PN]:rk},FT={[rk]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[PN]:rk},jT={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"{bucketArn#region}"}]},UT={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:ak,[$N]:"{bucketArn#region}"}]},VT={[MN]:"UseObjectLambdaEndpoint"},BT={[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:gk,[$N]:"{Region}"}]},$T={[ON]:[Bk,Uk,Dk,Rk,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:_k,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},zT={[ik]:{[FN]:_k,[jN]:qk,[zN]:{}},[PN]:ik},qT={[FN]:_k,[jN]:qk,[zN]:{}},HT={[ON]:[Bk,Uk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},KT={[FN]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},GT={[ON]:[Bk,Kk,Dk,Rk,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:_k,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},WT={[ON]:[Bk,Kk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},ZT={[FN]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},JT={[ON]:[Gk,Uk,Dk,Rk,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:_k,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},YT={[ON]:[Gk,Uk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},XT={[FN]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},QT={[ON]:[Gk,Kk,Dk,Rk,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:_k,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},eA={[ON]:[Gk,Kk,Ok,{[DN]:QN,[RN]:[{[MN]:"Region"},"aws-global"]}],[ik]:{[FN]:xk,[jN]:{[UN]:[{[VN]:!0,[pk]:"sigv4",[BN]:dk,[$N]:"us-east-1"}]},[zN]:{}},[PN]:ik},tA={[FN]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[jN]:qk,[zN]:{}},rA=[{[MN]:"Region"}],nA=[{[DN]:ek,[RN]:[{[MN]:YN},!1]}],aA=[{[DN]:QN,[RN]:[{[MN]:ZN},"beta"]}],iA=[Dk,Rk],sA=[Tk],oA=[{[DN]:ok,[RN]:[Ak]}],dA=[{[DN]:XN,[RN]:rA,[LN]:"partitionResult"}],lA=[{[DN]:QN,[RN]:[{[MN]:"Region"},"us-east-1"]}],uA=[{[DN]:ek,[RN]:[{[MN]:"Region"},!1]}],pA=[{[DN]:QN,[RN]:[wT,yk]}],cA=[{[DN]:uk,[RN]:[vT,"resourceId[1]"],[LN]:vk},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[ST,""]}]}],mA=[Uk],hA=[Jk],fA=[{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[vT,"region"]},""]}]}],gA=[{[DN]:tk,[RN]:[{[DN]:KN,[RN]:[{[DN]:uk,[RN]:[vT,"resourceId[2]"]}]}]}],yA=[{[DN]:XN,[RN]:[{[DN]:uk,[RN]:[vT,"region"]}],[LN]:"bucketPartition"}],vA=[{[DN]:QN,[RN]:[NT,{[DN]:uk,[RN]:[{[MN]:"partitionResult"},pk]}]}],wA=[{[DN]:ek,[RN]:[{[DN]:uk,[RN]:[vT,"region"]},!0]}],bA=[{[DN]:ek,[RN]:[kT,!1]}],SA=[{[DN]:ek,[RN]:[ST,!1]}],EA=[Bk],_A=[{[DN]:ek,[RN]:[{[MN]:"Region"},!0]}],xA=[zT],CA={version:"1.0",parameters:{Bucket:Ck,Region:Ck,UseFIPS:Nk,UseDualStack:Nk,Endpoint:Ck,ForcePathStyle:kk,Accelerate:Nk,UseGlobalEndpoint:Nk,UseObjectLambdaEndpoint:kk,DisableAccessPoints:kk,DisableMultiRegionAccessPoints:Nk,UseArnRegion:kk},[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:KN,[RN]:rA}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[Tk,{[DN]:GN,[RN]:[Ak,49,50,qN],[LN]:WN},{[DN]:GN,[RN]:[Ak,8,12,qN],[LN]:ZN},{[DN]:GN,[RN]:[Ak,0,7,qN],[LN]:JN},{[DN]:GN,[RN]:[Ak,32,49,qN],[LN]:YN},{[DN]:XN,[RN]:rA,[LN]:"regionPartition"},{[DN]:QN,[RN]:[{[MN]:JN},"--op-s3"]}],[PN]:HN,[IN]:[{[ON]:nA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[Pk,"e"]}],[PN]:HN,[IN]:[{[ON]:aA,[PN]:HN,[IN]:[Ik,{[ON]:iA,endpoint:{[FN]:"https://{Bucket}.ec2.{url#authority}",[jN]:Mk,[zN]:Lk},[PN]:ik}]},{endpoint:{[FN]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[jN]:Mk,[zN]:Lk},[PN]:ik}]},{[ON]:[{[DN]:QN,[RN]:[Pk,"o"]}],[PN]:HN,[IN]:[{[ON]:aA,[PN]:HN,[IN]:[Ik,{[ON]:iA,endpoint:{[FN]:"https://{Bucket}.op-{outpostId}.{url#authority}",[jN]:Mk,[zN]:Lk},[PN]:ik}]},{endpoint:{[FN]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[jN]:Mk,[zN]:Lk},[PN]:ik}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[PN]:rk}]}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[PN]:rk}]},{[ON]:sA,[PN]:HN,[IN]:[{[ON]:[Dk,{[DN]:tk,[RN]:[{[DN]:KN,[RN]:[{[DN]:nk,[RN]:[{[MN]:"Endpoint"}]}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:KN,[RN]:[Fk]},{[DN]:sk,[RN]:[Fk,qN]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:oA,error:"Path-style addressing cannot be used with ARN buckets",[PN]:rk},jk]}]},{[ON]:[{[DN]:lk,[RN]:[Ak,false]}],[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:uA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[Zk,{[PN]:HN,[IN]:[{[ON]:[Jk,Bk],error:"Accelerate cannot be used with FIPS",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[Jk,{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[{[MN]:"partitionResult"},pk]},"aws-cn"]}],error:"S3 Accelerate cannot be used in this region",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[Dk,Uk],error:ck,[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[Dk,Bk],error:ck,[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[Dk,Jk],error:ck,[PN]:rk},{[PN]:HN,[IN]:[Yk,Yk,{[ON]:[Uk,Bk,Vk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:Xk,[PN]:ik}]},{[ON]:[Uk,Bk,Vk,Ok,$k,Hk],endpoint:Xk,[PN]:ik},Qk,Qk,{[ON]:[Kk,Bk,Vk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:eT,[PN]:ik}]},{[ON]:[Kk,Bk,Vk,Ok,$k,Hk],endpoint:eT,[PN]:ik},tT,tT,{[ON]:[Uk,Gk,Jk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:rT,[PN]:ik}]},{[ON]:[Uk,Gk,Jk,Ok,$k,Hk],endpoint:rT,[PN]:ik},nT,nT,{[ON]:[Uk,Gk,Vk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:aT,[PN]:ik}]},{[ON]:[Uk,Gk,Vk,Ok,$k,Hk],endpoint:aT,[PN]:ik},iT,dT,iT,dT,{[ON]:[Kk,Gk,Vk,Dk,Rk,sT,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:uT,[PN]:ik},{endpoint:uT,[PN]:ik}]},{[ON]:[Kk,Gk,Vk,Dk,Rk,lT,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:pT,[PN]:ik},cT]},{[ON]:[Kk,Gk,Vk,Dk,Rk,sT,$k,Hk],endpoint:uT,[PN]:ik},{[ON]:[Kk,Gk,Vk,Dk,Rk,lT,$k,Hk],endpoint:pT,[PN]:ik},mT,mT,{[ON]:[Kk,Gk,Jk,Ok,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:hT,[PN]:ik},{endpoint:hT,[PN]:ik}]},{[ON]:[Kk,Gk,Jk,Ok,$k,Hk],endpoint:hT,[PN]:ik},fT,fT,{[ON]:[Kk,Gk,Vk,Ok,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:{[FN]:mk,[jN]:qk,[zN]:Lk},[PN]:ik},{endpoint:gT,[PN]:ik}]},{[ON]:[Kk,Gk,Vk,Ok,$k,Hk],endpoint:gT,[PN]:ik}]}]}]}]}]}]}]}]},yT]}]},Wk]},{[ON]:[Dk,Rk,{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[oT,"scheme"]},"http"]},{[DN]:lk,[RN]:[Ak,qN]},Gk,Kk,Vk],[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:uA,[PN]:HN,[IN]:[cT]},yT]}]},Wk]},{[ON]:[{[DN]:ok,[RN]:[Ak],[LN]:hk}],[PN]:HN,[IN]:[{[ON]:[{[DN]:uk,[RN]:[vT,"resourceId[0]"],[LN]:fk},{[DN]:tk,[RN]:[{[DN]:QN,[RN]:[wT,""]}]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[bT,gk]}],[PN]:HN,[IN]:[{[ON]:pA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:cA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[ET,{[PN]:HN,[IN]:[_T,{[PN]:HN,[IN]:[{[ON]:fA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[xT,{[PN]:HN,[IN]:[{[ON]:gA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[CT,{[PN]:HN,[IN]:[{[ON]:yA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:vA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:wA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[kT,""]}],error:"Invalid ARN: Missing account id",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:bA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:SA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[TT,{[PN]:HN,[IN]:[{[ON]:iA,endpoint:{[FN]:wk,[jN]:AT,[zN]:Lk},[PN]:ik},{[ON]:EA,endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:AT,[zN]:Lk},[PN]:ik},{endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:AT,[zN]:Lk},[PN]:ik}]}]}]},PT]}]},IT]}]}]},OT]}]},DT]}]},Wk]}]},RT]}]}]},MT]}]}]},LT]}]}]}]},FT]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[PN]:rk}]},{[ON]:pA,[PN]:HN,[IN]:[{[ON]:cA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:fA,[PN]:HN,[IN]:[{[ON]:pA,[PN]:HN,[IN]:[{[ON]:fA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[xT,{[PN]:HN,[IN]:[{[ON]:gA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[CT,{[PN]:HN,[IN]:[{[ON]:yA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[NT,"{partitionResult#name}"]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:wA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[bT,dk]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:bA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:SA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:hA,error:"Access Points do not support S3 Accelerate",[PN]:rk},{[PN]:HN,[IN]:[TT,{[PN]:HN,[IN]:[{[ON]:[Uk,Dk],error:"DualStack cannot be combined with a Host override (PrivateLink)",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[Bk,Uk],endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:jT,[zN]:Lk},[PN]:ik},{[ON]:[Bk,Kk],endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:jT,[zN]:Lk},[PN]:ik},{[ON]:[Gk,Uk],endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:jT,[zN]:Lk},[PN]:ik},{[ON]:[Gk,Kk,Dk,Rk],endpoint:{[FN]:wk,[jN]:jT,[zN]:Lk},[PN]:ik},{[ON]:[Gk,Kk],endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:jT,[zN]:Lk},[PN]:ik}]}]}]}]}]},PT]}]},IT]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[PN]:rk}]}]},OT]}]},DT]}]},Wk]}]},RT]}]}]},MT]}]}]},LT]}]},{[PN]:HN,[IN]:[{[ON]:[{[DN]:ek,[RN]:[ST,qN]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:mA,error:"S3 MRAP does not support dual-stack",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:EA,error:"S3 MRAP does not support FIPS",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:hA,error:"S3 MRAP does not support S3 Accelerate",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:sk,[RN]:[{[MN]:"DisableMultiRegionAccessPoints"},qN]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:XN,[RN]:rA,[LN]:bk}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[{[DN]:uk,[RN]:[{[MN]:bk},pk]},{[DN]:uk,[RN]:[vT,"partition"]}]}],[PN]:HN,[IN]:[{endpoint:{[FN]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[jN]:{[UN]:[{[VN]:qN,name:"sigv4a",[BN]:dk,signingRegionSet:["*"]}]},[zN]:Lk},[PN]:ik}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[PN]:rk}]}]},{error:"{Region} was not a valid region",[PN]:rk}]}]}]}]}]}]},{error:"Invalid Access Point Name",[PN]:rk}]}]}]},FT]},{[ON]:[{[DN]:QN,[RN]:[bT,ak]}],[PN]:HN,[IN]:[{[ON]:mA,error:"S3 Outposts does not support Dual-stack",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:EA,error:"S3 Outposts does not support FIPS",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:hA,error:"S3 Outposts does not support S3 Accelerate",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:KN,[RN]:[{[DN]:uk,[RN]:[vT,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[PN]:rk},{[PN]:HN,[IN]:[{[ON]:[{[DN]:uk,[RN]:[vT,"resourceId[1]"],[LN]:YN}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:nA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[CT,{[PN]:HN,[IN]:[{[ON]:yA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:vA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:wA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:bA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:uk,[RN]:[vT,"resourceId[2]"],[LN]:Sk}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:uk,[RN]:[vT,"resourceId[3]"],[LN]:vk}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:[{[DN]:QN,[RN]:[{[MN]:Sk},yk]}],[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:iA,endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[jN]:UT,[zN]:Lk},[PN]:ik},{endpoint:{[FN]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[jN]:UT,[zN]:Lk},[PN]:ik}]}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[PN]:rk}]}]},{error:"Invalid ARN: expected an access point name",[PN]:rk}]}]},{error:"Invalid ARN: Expected a 4-component resource",[PN]:rk}]}]},IT]}]},OT]}]},DT]}]},Wk]}]},{error:"Could not load partition for ARN region {bucketArn#region}",[PN]:rk}]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[PN]:rk}]}]},{error:"Invalid ARN: The Outpost Id was not set",[PN]:rk}]}]}]}]}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[PN]:rk}]}]},{error:"Invalid ARN: No ARN type specified",[PN]:rk}]},{[ON]:[{[DN]:GN,[RN]:[Ak,0,4,false],[LN]:Ek},{[DN]:QN,[RN]:[{[MN]:Ek},"arn:"]},{[DN]:tk,[RN]:[{[DN]:KN,[RN]:oA}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[PN]:rk},jk]}]},{[ON]:[{[DN]:KN,[RN]:[VT]},{[DN]:sk,[RN]:[VT,qN]}],[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:_A,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[ET,{[PN]:HN,[IN]:[_T,{[PN]:HN,[IN]:[Zk,{[PN]:HN,[IN]:[{[ON]:iA,endpoint:{[FN]:_k,[jN]:BT,[zN]:Lk},[PN]:ik},{[ON]:EA,endpoint:{[FN]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[jN]:BT,[zN]:Lk},[PN]:ik},{endpoint:{[FN]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[jN]:BT,[zN]:Lk},[PN]:ik}]}]}]}]}]},yT]}]},Wk]},{[ON]:[{[DN]:tk,[RN]:sA}],[PN]:HN,[IN]:[{[ON]:dA,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[{[ON]:_A,[PN]:HN,[IN]:[{[PN]:HN,[IN]:[Zk,{[PN]:HN,[IN]:[$T,$T,{[ON]:[Bk,Uk,Dk,Rk,$k,zk],[PN]:HN,[IN]:xA},{[ON]:[Bk,Uk,Dk,Rk,$k,Hk],endpoint:qT,[PN]:ik},HT,HT,{[ON]:[Bk,Uk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:KT,[PN]:ik}]},{[ON]:[Bk,Uk,Ok,$k,Hk],endpoint:KT,[PN]:ik},GT,GT,{[ON]:[Bk,Kk,Dk,Rk,$k,zk],[PN]:HN,[IN]:xA},{[ON]:[Bk,Kk,Dk,Rk,$k,Hk],endpoint:qT,[PN]:ik},WT,WT,{[ON]:[Bk,Kk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:ZT,[PN]:ik}]},{[ON]:[Bk,Kk,Ok,$k,Hk],endpoint:ZT,[PN]:ik},JT,JT,{[ON]:[Gk,Uk,Dk,Rk,$k,zk],[PN]:HN,[IN]:xA},{[ON]:[Gk,Uk,Dk,Rk,$k,Hk],endpoint:qT,[PN]:ik},YT,YT,{[ON]:[Gk,Uk,Ok,$k,zk],[PN]:HN,[IN]:[{endpoint:XT,[PN]:ik}]},{[ON]:[Gk,Uk,Ok,$k,Hk],endpoint:XT,[PN]:ik},QT,QT,{[ON]:[Gk,Kk,Dk,Rk,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:qT,[PN]:ik},zT]},{[ON]:[Gk,Kk,Dk,Rk,$k,Hk],endpoint:qT,[PN]:ik},eA,eA,{[ON]:[Gk,Kk,Ok,$k,zk],[PN]:HN,[IN]:[{[ON]:lA,endpoint:{[FN]:xk,[jN]:qk,[zN]:Lk},[PN]:ik},{endpoint:tA,[PN]:ik}]},{[ON]:[Gk,Kk,Ok,$k,Hk],endpoint:tA,[PN]:ik}]}]}]},yT]}]},Wk]}]}]},{error:"A region must be set when sending requests to S3.",[PN]:rk}]}]},NA=(e,t={})=>Wy(CA,{endpointParams:e,logger:t.logger}),kA=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??NA,logger:e?.logger??new Jm,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??TN,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Rf,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:MC}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??mN,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??_N,maxAttempts:e?.maxAttempts??3,md5:e?.md5??yN,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sdkStreamMixin:e?.sdkStreamMixin??CN,sha1:e?.sha1??LC.Sha1,sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,streamHasher:e?.streamHasher??hN,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class TA extends eh{constructor(e){const t=kA(e),r=(n=t,{...n,useFipsEndpoint:n.useFipsEndpoint??!1,useDualstackEndpoint:n.useDualstackEndpoint??!1,useAccelerateEndpoint:n.useAccelerateEndpoint??!1,useGlobalEndpoint:n.useGlobalEndpoint??!1,disableMultiregionAccessPoints:n.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=sy(s);var d;const l=(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))(my((d=o,{...d,forcePathStyle:d.forcePathStyle??!1,useAccelerateEndpoint:d.useAccelerateEndpoint??!1,disableMultiregionAccessPoints:d.disableMultiregionAccessPoints??!1})));super(l),this.config=l,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(Gx(this.config)),this.middlewareStack.use(DC(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class AA{constructor(){this.onabort=null,this._aborted=!1,Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}}const PA={lstatSync:()=>{},runtime:"browser"},IA=e=>{if(null==e)return 0;if("string"==typeof e&&(e=Buffer.from(e)),"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)try{return PA.lstatSync(e.path).size}catch(e){return}};var OA={exports:{}};"function"==typeof Object.create?OA.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:OA.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var DA,RA,MA=OA.exports;function LA(){return RA?DA:(RA=1,DA=p.EventEmitter)}var FA,jA,UA,VA,BA=nv(Object.freeze({__proto__:null,default:{}}));function $A(){if(jA)return FA;function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}jA=1;const a=t.Buffer,i=BA.inspect,s=i&&i.custom||"inspect";function o(e,t,r){a.prototype.copy.call(e,t,r)}return FA=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);for(var r=this.head,n=0;r;)o(r.data,t,n),n+=r.data.length,r=r.next;return t}consume(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}first(){return this.head.data}_getString(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){const a=t.data,i=e>a.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0===(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}_getBuffer(e){const t=a.allocUnsafe(e);var r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){const a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0===(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}[s](e,t){return i(this,r(r({},t),{},{depth:0,customInspect:!1}))}},FA}function zA(){if(VA)return UA;function e(e,n){r(e,n),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}return VA=1,UA={destroy:function(n,a){const i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(a?a(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,n)):process.nextTick(r,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,(r=>{!a&&r?this._writableState?this._writableState.errorEmitted?process.nextTick(t,this):(this._writableState.errorEmitted=!0,process.nextTick(e,this,r)):process.nextTick(e,this,r):a?(process.nextTick(t,this),a(r)):process.nextTick(t,this)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){const r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}},UA}var qA,HA,KA,GA,WA,ZA,JA,YA,XA,QA={};function eP(){if(qA)return QA;qA=1;var e={};function t(t,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=t,e[t]=a}function r(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}return t("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),t("ERR_INVALID_ARG_TYPE",(function(e,t,n){var a,i,s,o;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))o="The ".concat(e," ").concat(a," ").concat(r(t,"type"));else{var d=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(d," ").concat(a," ").concat(r(t,"type"))}return o+=". Received type ".concat(typeof n)}),TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),QA.codes=e,QA}function tP(){if(KA)return HA;KA=1;const e=eP().codes.ERR_INVALID_OPT_VALUE;return HA={getHighWaterMark:function(t,r,n,a){const i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(r,a,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0){throw new e(a?n:"highWaterMark",i)}return Math.floor(i)}return t.objectMode?16:16384}}}function rP(){if(WA)return GA;function e(e){try{if(!tv.localStorage)return!1}catch(e){return!1}var t=tv.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return WA=1,GA=function(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}},GA}function nP(){if(JA)return ZA;function e(e){this.next=null,this.entry=null,this.finish=()=>{!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(this,e)}}var r;JA=1,ZA=E,E.WritableState=b;const n={deprecate:rP()};var a=LA();const i=t.Buffer,s=(void 0!==tv?tv:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};const o=zA(),d=tP().getHighWaterMark,l=eP().codes,u=l.ERR_INVALID_ARG_TYPE,p=l.ERR_METHOD_NOT_IMPLEMENTED,c=l.ERR_MULTIPLE_CALLBACK,m=l.ERR_STREAM_CANNOT_PIPE,h=l.ERR_STREAM_DESTROYED,f=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,y=l.ERR_UNKNOWN_ENCODING,v=o.errorOrDestroy;function w(){}function b(t,n,a){r=r||aP(),t=t||{},"boolean"!=typeof a&&(a=n instanceof r),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new c;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,a){--t.pendingcb,r?(process.nextTick(a,n),process.nextTick(T,e,t),e._writableState.errorEmitted=!0,v(e,n)):(a(n),e._writableState.errorEmitted=!0,v(e,n),T(e,t))}(e,r,n,t,a);else{var i=N(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),n?process.nextTick(x,e,r,i,a):x(e,r,i,a)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}var S;function E(e){const t=this instanceof(r=r||aP());if(!t&&!S.call(E,this))return new E(e);this._writableState=new b(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function _(e,t,r,n,a,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function x(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function C(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var a=r.bufferedRequestCount,i=new Array(a),s=r.corkedRequestsFree;s.entry=n;for(var o=0,d=!0;n;)i[o]=n,n.isBuf||(d=!1),n=n.next,o+=1;i.allBuffers=d,_(t,r,!0,r.length,i,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(_(t,r,!1,r.objectMode?1:l.length,l,u,p),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((r=>{t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=N(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(k,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){const t=e._readableState;(!t||t.autoDestroy&&t.endEmitted)&&e.destroy()}return r}return MA(E,a),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!S.call(this,e)||this===E&&(e&&e._writableState instanceof b)}})):S=function(e){return e instanceof this},E.prototype.pipe=function(){v(this,new m)},E.prototype.write=function(e,t,r){var n,a=this._writableState,o=!1,d=!a.objectMode&&(n=e,i.isBuffer(n)||n instanceof s);return d&&!i.isBuffer(e)&&(e=function(e){return i.from(e)}(e)),"function"==typeof t&&(r=t,t=null),d?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=w),a.ending?function(e,t){var r=new g;v(e,r),process.nextTick(t,r)}(this,r):(d||function(e,t,r,n){var a;return null===r?a=new f:"string"==typeof r||t.objectMode||(a=new u("chunk",["string","Buffer"],r)),!a||(v(e,a),process.nextTick(n,a),!1)}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,a,s){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=i.from(t,r));return t}(t,n,a);n!==o&&(r=!0,a="buffer",n=o)}var d=t.objectMode?1:n.length;t.length+=d;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,d,n,a,s);return l}(this,a,d,e,t,r)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new p("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=o.destroy,E.prototype._undestroy=o.undestroy,E.prototype._destroy=function(e,t){t(e)},ZA}function aP(){if(XA)return YA;XA=1;var e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};YA=a;const t=NP(),r=nP();MA(a,t);{const t=e(r.prototype);for(var n=0;n<t.length;n++){const e=t[n];a.prototype[e]||(a.prototype[e]=r.prototype[e])}}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",i)))}function i(){this._writableState.ended||process.nextTick(s,this)}function s(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),YA}var iP,sP,oP,dP,lP,uP,pP,cP,mP,hP,fP,gP,yP,vP,wP,bP,SP={},EP={exports:{}};function _P(){if(sP)return SP;sP=1;var e=(iP||(iP=1,function(e,r){var n=t,a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(a.prototype),i(a,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(EP,EP.exports)),EP.exports).Buffer,r=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(t){var n;switch(this.encoding=function(t){var n=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(t);if("string"!=typeof n&&(e.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return n||t}(t),this.encoding){case"utf16le":this.text=s,this.end=o,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=d,this.end=l,n=3;break;default:return this.write=u,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(n)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function o(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}return SP.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},SP}function xP(){if(dP)return oP;dP=1;const e=eP().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return oP=function r(n,a,i){if("function"==typeof a)return r(n,null,a);a||(a={}),i=function(e){let t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.apply(this,n)}}}(i||t);let s=a.readable||!1!==a.readable&&n.readable,o=a.writable||!1!==a.writable&&n.writable;const d=()=>{n.writable||u()};var l=n._writableState&&n._writableState.finished;const u=()=>{o=!1,l=!0,s||i.call(n)};var p=n._readableState&&n._readableState.endEmitted;const c=()=>{s=!1,p=!0,o||i.call(n)},m=e=>{i.call(n,e)},h=()=>{let t;return s&&!p?(n._readableState&&n._readableState.ended||(t=new e),i.call(n,t)):o&&!l?(n._writableState&&n._writableState.ended||(t=new e),i.call(n,t)):void 0},f=()=>{n.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(n)?o&&!n._writableState&&(n.on("end",d),n.on("close",d)):(n.on("complete",u),n.on("abort",h),n.req?f():n.on("request",f)),n.on("end",c),n.on("finish",u),!1!==a.error&&n.on("error",m),n.on("close",h),function(){n.removeListener("complete",u),n.removeListener("abort",h),n.removeListener("request",f),n.req&&n.req.removeListener("finish",u),n.removeListener("end",d),n.removeListener("close",d),n.removeListener("finish",u),n.removeListener("end",c),n.removeListener("error",m),n.removeListener("close",h)}},oP}function CP(){if(uP)return lP;uP=1;const e=xP(),t=Symbol("lastResolve"),r=Symbol("lastReject"),n=Symbol("error"),a=Symbol("ended"),i=Symbol("lastPromise"),s=Symbol("handlePromise"),o=Symbol("stream");function d(e,t){return{value:e,done:t}}function l(e){const n=e[t];if(null!==n){const a=e[o].read();null!==a&&(e[i]=null,e[t]=null,e[r]=null,n(d(a,!1)))}}function u(e){process.nextTick(l,e)}const p=Object.getPrototypeOf((function(){})),c=Object.setPrototypeOf({get stream(){return this[o]},next(){const e=this[n];if(null!==e)return Promise.reject(e);if(this[a])return Promise.resolve(d(void 0,!0));if(this[o].destroyed)return new Promise(((e,t)=>{process.nextTick((()=>{this[n]?t(this[n]):e(d(void 0,!0))}))}));const t=this[i];let r;if(t)r=new Promise(function(e,t){return(r,n)=>{e.then((()=>{t[a]?r(d(void 0,!0)):t[s](r,n)}),n)}}(t,this));else{const e=this[o].read();if(null!==e)return Promise.resolve(d(e,!1));r=new Promise(this[s])}return this[i]=r,r},[Symbol.asyncIterator](){return this},return(){return new Promise(((e,t)=>{this[o].destroy(null,(r=>{r?t(r):e(d(void 0,!0))}))}))}},p);return lP=l=>{const p=Object.create(c,{[o]:{value:l,writable:!0},[t]:{value:null,writable:!0},[r]:{value:null,writable:!0},[n]:{value:null,writable:!0},[a]:{value:l._readableState.endEmitted,writable:!0},[s]:{value:(e,n)=>{const a=p[o].read();a?(p[i]=null,p[t]=null,p[r]=null,e(d(a,!1))):(p[t]=e,p[r]=n)},writable:!0}});return p[i]=null,e(l,(e=>{if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){const a=p[r];return null!==a&&(p[i]=null,p[t]=null,p[r]=null,a(e)),void(p[n]=e)}const s=p[t];null!==s&&(p[i]=null,p[t]=null,p[r]=null,s(d(void 0,!0))),p[a]=!0})),l.on("readable",u.bind(null,p)),p}}function NP(){if(hP)return mP;var e;hP=1,mP=_,_.ReadableState=E,p.EventEmitter;var r=function(e,t){return e.listeners(t).length},n=LA();const a=t.Buffer,i=(void 0!==tv?tv:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};const s=BA;let o;o=s&&s.debuglog?s.debuglog("stream"):function(){};const d=$A(),l=zA(),u=tP().getHighWaterMark,c=eP().codes,m=c.ERR_INVALID_ARG_TYPE,h=c.ERR_STREAM_PUSH_AFTER_EOF,f=c.ERR_METHOD_NOT_IMPLEMENTED,g=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;let y,v,w;MA(_,n);const b=l.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(t,r,n){e=e||aP(),t=t||{},"boolean"!=typeof n&&(n=r instanceof e),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=u(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(y||(y=_P().StringDecoder),this.decoder=new y(t.encoding),this.encoding=t.encoding)}function _(t){if(e=e||aP(),!(this instanceof _))return new _(t);const r=this instanceof e;this._readableState=new E(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function x(e,t,r,n,s){o("readableAddChunk",t);var d,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(o("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}(e,l);else if(s||(d=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof i||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(l,t)),d)b(e,d);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)l.endEmitted?b(e,new g):C(e,l,t,!0);else if(l.ended)b(e,new h);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?C(e,l,t,!1):P(e,l)):C(e,l,t,!1)}else n||(l.reading=!1,P(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),P(e,t)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=l.destroy,_.prototype._undestroy=l.undestroy,_.prototype._destroy=function(e,t){t(e)},_.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},_.prototype.unshift=function(e){return x(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(e){y||(y=_P().StringDecoder);const t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer.head,n="";for(;null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};const N=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(A,e))}function A(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,M(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function O(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){const t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(j,t,e))}function j(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){const e=t._writableState;(!e||e.autoDestroy&&e.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}return _.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return o("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",a=!0),t.ended||t.reading?o("reading or ended",a=!1):a&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(e){b(this,new f("_read()"))},_.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,o("pipe count=%d opts=%j",a.pipesCount,t);var i=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?d:f;function s(t,r){o("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",m),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",s),n.removeListener("end",d),n.removeListener("end",f),n.removeListener("data",p),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function d(){o("onend"),e.end()}a.endEmitted?process.nextTick(i):n.once("end",i),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,M(e))}}(n);e.on("drain",l);var u=!1;function p(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==U(a.pipes,e))&&!u&&(o("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function c(t){o("onerror",t),f(),e.removeListener("error",c),0===r(e,"error")&&b(e,t)}function m(){e.removeListener("finish",h),f()}function h(){o("onfinish"),e.removeListener("close",m),f()}function f(){o("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",c),e.once("close",m),e.once("finish",h),e.emit("pipe",n),a.flowing||(o("pipe resume"),n.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=U(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},_.prototype.on=function(e,t){const r=n.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,o("on readable",a.length,a.reading),a.length?T(this):a.reading||process.nextTick(D,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){const r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(O,this),r},_.prototype.removeAllListeners=function(e){const t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(O,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(R,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this._readableState,r=!1;for(var n in e.on("end",(()=>{if(o("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&this.push(e)}this.push(null)})),e.on("data",(n=>{(o("wrapped data"),t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n)||(t.objectMode||n&&n.length)&&(this.push(n)||(r=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a<S.length;a++)e.on(S[a],this.emit.bind(this,S[a]));return this._read=t=>{o("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===v&&(v=CP()),v(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),_._fromList=L,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(e,t){return void 0===w&&(w=cP?pP:(cP=1,pP=function(){throw new Error("Readable.from is not available in the browser")})),w(_,e,t)}),mP}function kP(){if(gP)return fP;gP=1,fP=o;const e=eP().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,i=aP();function s(e,t){var n=this._transformState;n.transforming=!1;var a=n.writecb;if(null===a)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),a(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);i.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(((e,t)=>{l(this,e,t)}))}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new n;return e.push(null)}return MA(o,i),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},o.prototype._transform=function(e,r,n){n(new t("_transform()"))},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},o.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,(e=>{t(e)}))},fP}var TP=PP,AP=p.EventEmitter;function PP(){AP.call(this)}async function*IP(e,t){let r=1,n=0,a=t;for(;a<e.byteLength;)yield{partNumber:r,data:e.slice(n,a)},r+=1,n=a,a=n+t;yield{partNumber:r,data:e.slice(n),lastPart:!0}}async function*OP(e,t,n){let a=1;const i={chunks:[],length:0};for await(const s of n(e))for(i.chunks.push(s),i.length+=s.length;i.length>=t;){const e=i.chunks.length>1?r.concat(i.chunks):i.chunks[0];yield{partNumber:a,data:e.slice(0,t)},i.chunks=[e.slice(t)],i.length=i.chunks[0].length,a+=1}yield{partNumber:a,data:r.concat(i.chunks),lastPart:!0}}async function*DP(e){for await(const t of e)yield r.from(t)}async function*RP(e){const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)return;yield r.from(n)}}catch(e){throw e}finally{t.releaseLock()}}MA(PP,AP),PP.Readable=NP(),PP.Writable=nP(),PP.Duplex=aP(),PP.Transform=kP(),PP.PassThrough=function(){if(vP)return yP;vP=1,yP=t;const e=kP();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return MA(t,e),t.prototype._transform=function(e,t,r){r(null,e)},yP}(),PP.finished=xP(),PP.pipeline=function(){if(bP)return wP;let e;bP=1;const t=eP().codes,r=t.ERR_MISSING_ARGS,n=t.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function i(e){e()}function s(e,t){return e.pipe(t)}return wP=function(){for(var t=arguments.length,o=new Array(t),d=0;d<t;d++)o[d]=arguments[d];const l=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new r("streams");let u;const p=o.map((function(t,r){const a=r<o.length-1;return function(t,r,a,i){i=function(e){let t=!1;return function(){t||(t=!0,e(...arguments))}}(i);let s=!1;t.on("close",(()=>{s=!0})),void 0===e&&(e=xP()),e(t,{readable:r,writable:a},(e=>{if(e)return i(e);s=!0,i()}));let o=!1;return e=>{if(!s&&!o)return o=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new n("pipe"))}}(t,a,r>0,(function(e){u||(u=e),e&&p.forEach(i),a||(p.forEach(i),l(u))}))}));return o.reduce(s)},wP}(),PP.Stream=PP,PP.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",o));var i=!1;function s(){i||(i=!0,e.end())}function o(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(l(),0===AP.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",o),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",d),e.on("error",d),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e};const MP=5242880;class LP extends c{constructor(e){super(),this.MAX_PARTS=1e4,this.queueSize=4,this.partSize=MP,this.leavePartsOnError=!1,this.tags=[],this.concurrentUploaders=[],this.uploadedParts=[],this.isMultiPart=!0,this.queueSize=e.queueSize||this.queueSize,this.partSize=e.partSize||this.partSize,this.leavePartsOnError=e.leavePartsOnError||this.leavePartsOnError,this.tags=e.tags||this.tags,this.client=e.client,this.params=e.params,this.__validateInput(),this.totalBytes=IA(this.params.Body),this.bytesUploadedSoFar=0,this.abortController=e.abortController??new class{constructor(){this.signal=new AA}abort(){this.signal.abort()}}}async abort(){this.abortController.abort()}async done(){return await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;const t={...this.params,Body:e.data},r=this.client.config,n=r.requestHandler,a=n instanceof c?n:null,i=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};null!==a&&a.on("xhr.upload.progress",i);const s=await Promise.all([this.client.send(new AC(t)),r?.endpoint?.()]),o=s[0];let d=s[1];if(d||(d=Mf(await Of(t,AC,{...r}))),!d)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');null!==a&&a.off("xhr.upload.progress",i);const l=this.params.Key.split("/").map((e=>Qh(e))).join("/"),u=Qh(this.params.Bucket),p=(()=>{const e=d.hostname.startsWith(`${u}.`);return this.client.config.forcePathStyle?`${d.protocol}//${d.hostname}/${u}/${l}`:e?`${d.protocol}//${d.hostname}/${l}`:`${d.protocol}//${u}.${d.hostname}/${l}`})();this.singleUploadResult={...o,Bucket:this.params.Bucket,Key:this.params.Key,Location:p};const m=IA(e.data);this.__notifyProgress({loaded:m,total:m,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){if(!this.createMultiPartPromise){const e={...this.params,Body:void 0};this.createMultiPartPromise=this.client.send(new Xx(e))}const e=await this.createMultiPartPromise;this.uploadId=e.UploadId}async __doConcurrentUpload(e){for await(const t of e){if(this.uploadedParts.length>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} as part of the upload to ${this.params.Key} and ${this.params.Bucket}.`);try{if(this.abortController.signal.aborted)return;if(1===t.partNumber&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId&&(await this.__createMultipartUpload(),this.abortController.signal.aborted))return;const e=IA(t.data)||0,r=this.client.config.requestHandler,n=r instanceof c?r:null;let a=0;const i=(r,n)=>{(Number(n.query.partNumber)||-1)===t.partNumber&&(r.total&&e&&(this.bytesUploadedSoFar+=r.loaded-a,a=r.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};null!==n&&n.on("xhr.upload.progress",i);const s=await this.client.send(new IC({...this.params,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(null!==n&&n.off("xhr.upload.progress",i),this.abortController.signal.aborted)return;if(!s.ETag)throw new Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:s.ETag,...s.ChecksumCRC32&&{ChecksumCRC32:s.ChecksumCRC32},...s.ChecksumCRC32C&&{ChecksumCRC32C:s.ChecksumCRC32C},...s.ChecksumSHA1&&{ChecksumSHA1:s.ChecksumSHA1},...s.ChecksumSHA256&&{ChecksumSHA256:s.ChecksumSHA256}}),null===n&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}catch(e){if(!this.uploadId)throw e;if(this.leavePartsOnError)throw e}}}async __doMultipartUpload(){const e=((e,t)=>{if(e instanceof r)return IP(e,t);if(e instanceof TP.Readable)return OP(e,t,DP);if(e instanceof String||"string"==typeof e||e instanceof Uint8Array)return IP(r.from(e),t);if("function"==typeof e.stream)return OP(e.stream(),t,RP);if(e instanceof ReadableStream)return OP(e,t,RP);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")})(this.params.Body,this.partSize);for(let t=0;t<this.queueSize;t++){const t=this.__doConcurrentUpload(e);this.concurrentUploaders.push(t)}if(await Promise.all(this.concurrentUploaders),this.abortController.signal.aborted)throw Object.assign(new Error("Upload aborted."),{name:"AbortError"});let t;if(this.isMultiPart){this.uploadedParts.sort(((e,t)=>e.PartNumber-t.PartNumber));const e={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};t=await this.client.send(new Jx(e))}else t=this.singleUploadResult;return this.tags.length&&await this.client.send(new PC({...this.params,Tagging:{TagSet:this.tags}})),t}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise(((t,r)=>{e.onabort=()=>{const e=new Error("Upload aborted.");e.name="AbortError",r(e)}}))}__validateInput(){if(!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");if(!this.client)throw new Error("InputError: Upload requires a AWS client to do uploads with.");if(this.partSize<MP)throw new Error(`EntityTooSmall: Your proposed upload partsize [${this.partSize}] is smaller than the minimum allowed size [5242880] (5MB)`);if(this.queueSize<1)throw new Error("Queue size: Must have at least one uploading queue.")}}class FP{static DEFAULT_CONTENT=Buffer.from("DAEMON_PLACEHOLDER");static DAEMON_METADATA_KEY="daemon_meta";static async start(e,t,r,n){try{n.meta=n.meta||{},_n.info("Starting daemon, key: %s, options: %j",r,n);const a=(new Date).getTime(),i={id:t,title:n.title,lastUpdatedEpochMS:a,lastUpdatedMessage:"Created",targetFileName:n.targetFileName,startedEpochMS:a,completedEpochMS:null,meta:n.meta,error:null,link:null,contentType:n.contentType};return await FP.writeState(e,r,i,FP.DEFAULT_CONTENT)}catch(e){throw _n.error("Error while trying to start a daemon: %j %s",n,e),e}}static async writeState(e,t,r,n){try{const a={};r.lastUpdatedEpochMS=(new Date).getTime(),a[FP.DAEMON_METADATA_KEY]=JSON.stringify(r);const i={Bucket:e.getDefaultBucket(),Key:t,ContentType:r.contentType,Metadata:a,Body:new Blob([n])};r.targetFileName&&(i.ContentDisposition='attachment;filename="'+r.targetFileName+'"');const s=await e.getS3Client().send(new AC(i));return _n.silly("Daemon wrote : %s",s),FP.stat(e,t)}catch(e){throw _n.error("Error while trying to write a daemon stat: %j %s",r,e),e}}static async streamDataAndFinish(e,t,r){_n.debug("Streaming data to %s",t);const n=await FP.updateMessage(e,t,"Streaming data");n.completedEpochMS=(new Date).getTime(),n.lastUpdatedMessage="Complete";const a={};a[FP.DAEMON_METADATA_KEY]=JSON.stringify(n);const i={Bucket:e.getDefaultBucket(),Key:t,ContentType:n.contentType,Metadata:a,Body:r},s=new LP({client:e.getS3Client(),params:i,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});s.on("httpUploadProgress",(e=>{_n.info("Uploading : %s",e)}));const o=await s.done();return _n.silly("Daemon wrote : %s",o),FP.stat(e,t)}static async updateMessage(e,t,r){try{const n=await FP.stat(e,t);return n.lastUpdatedMessage=r,FP.writeState(e,t,n,FP.DEFAULT_CONTENT)}catch(e){throw _n.error("Error while trying to update a daemon message: %j %s",t,e),e}}static async stat(e,t){try{_n.debug("Daemon stat for path %s / %s",e.getDefaultBucket(),t);let r=null;const n=await e.fetchMetaForCacheFile(t);_n.debug("Daemon: Meta is %j",n);const a=n&&n.Metadata?n.Metadata[FP.DAEMON_METADATA_KEY]:null;return a?(r=JSON.parse(a),r.completedEpochMS&&!r.error&&(r.link=await e.preSignedDownloadUrlForCacheFile(t))):_n.warn("No metadata found! (Head was %j)",n),r}catch(e){throw _n.error("Error while trying to fetch a daemon state: %j %s",t,e),e}}static async abort(e,t){return FP.error(e,t,"Aborted")}static async error(e,t,r){try{const n=await FP.stat(e,t);return n.error=r,n.completedEpochMS=(new Date).getTime(),FP.writeState(e,t,n,FP.DEFAULT_CONTENT)}catch(e){throw _n.error("Error while trying to write a daemon error: %j %s",t,e),e}}static async finalize(e,t,r){try{_n.info("Finalizing daemon %s with %d bytes",t,r.length);const n=await FP.stat(e,t);return n.completedEpochMS=(new Date).getTime(),n.lastUpdatedMessage="Complete",FP.writeState(e,t,n,r)}catch(e){throw _n.error("Error while trying to finalize a daemon: %j %s",t,e),e}}}class jP{constructor(e){const t={service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1,applyChecksum:e.applyChecksum||!1,...e};this.signer=new TN(t)}presign(e,{unsignableHeaders:t=new Set,unhoistableHeaders:r=new Set,...n}={}){t.add("content-type"),Object.keys(e.headers).map((e=>e.toLowerCase())).filter((e=>e.startsWith("x-amz-server-side-encryption"))).forEach((e=>{r.add(e)})),e.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";const a=e.headers.host,i=e.port,s=`${e.hostname}${null!=e.port?":"+i:""}`;return(!a||a===e.hostname&&null!=e.port)&&(e.headers.host=s),this.signer.presign(e,{expiresIn:900,unsignableHeaders:t,unhoistableHeaders:r,...n})}}const UP=async(e,t,r={})=>{let n;if("function"==typeof e.config.endpointProvider){const r=await Of(t.input,t.constructor,e.config),a=r.properties?.authSchemes?.[0];n=new jP({...e.config,signingName:a?.signingName,region:async()=>a?.signingRegion})}else n=new jP(e.config);const a=e.middlewareStack.clone();a.addRelativeTo(((e,t)=>async e=>{const{request:a}=e;if(!Sf.isInstance(a))throw new Error("Request to be presigned is not an valid HTTP request.");delete a.headers["amz-sdk-invocation-id"],delete a.headers["amz-sdk-request"],delete a.headers["x-amz-user-agent"];return{response:{},output:{$metadata:{httpStatusCode:200},presigned:await n.presign(a,{...r,signingRegion:r.signingRegion??t.signing_region,signingService:r.signingService??t.signing_service})}}}),{name:"presignInterceptMiddleware",relation:"before",toMiddleware:"awsAuthMiddleware",override:!0});const i=t.resolveMiddleware(a,e.config,{}),{output:s}=await i({input:t.input}),{presigned:o}=s;return function(e){const{port:t,query:r}=e;let{protocol:n,path:a,hostname:i}=e;n&&":"!==n.slice(-1)&&(n+=":"),t&&(i+=`:${t}`),a&&"/"!==a.charAt(0)&&(a=`/${a}`);let s=r?yw(r):"";return s&&"?"!==s[0]&&(s=`?${s}`),`${n}//${i}${a}${s}`}(o)};class VP{s3;defaultBucket;constructor(e,t=null){this.s3=e,this.defaultBucket=t,Sn.notNullOrUndefined(this.s3,"s3")}get s3Client(){return this.s3}static applyCacheControlMaxAge(e,t){return e&&t&&(e.CacheControl="max-age="+t),e}static applyUserMetaData(e,t,r){return e&&En.trimToNull(t)&&En.trimToNull(r)&&(e.Metadata=e.Metadata||{},e.Metadata[t]=r),e}getDefaultBucket(){return this.defaultBucket}getS3Client(){return this.s3}async fileExists(e,t=null){try{return!!await this.fetchMetaForCacheFile(e,this.bucketVal(t))}catch(e){return _n.silly("Error calling file exists (as expected) %s",e),!1}}async fetchCacheFileAsS3GetObjectCommandOutput(e,t=null){let r=null;try{const n={Bucket:this.bucketVal(t),Key:e};r=await this.s3.send(new CC(n))}catch(t){if(!(t instanceof q_))throw t;_n.debug("Key %s not found - returning null",e),r=null}return r}async fetchCacheFileAsReadableStream(e,t=null){return(await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t)).Body.transformToWebStream()}async fetchCacheFileAsBuffer(e,t=null){let r=null;const n=await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t);if(n?.Body){const e=await n.Body.transformToByteArray();r=Buffer.from(e)}return r}async fetchCacheFileAsString(e,t=null){let r=null;const n=await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t);return n?.Body&&(r=await n.Body.transformToString()),r}async fetchCacheFileAsObject(e,t=null){const r=await this.fetchCacheFileAsString(e,t);return r?JSON.parse(r):null}async removeCacheFile(e,t=null){let r=null;const n={Bucket:this.bucketVal(t),Key:e};try{r=await this.s3.send(new Qx(n))}catch(n){if(!n||404!=n.statusCode)throw n;_n.info("Swallowing 404 deleting missing object %s %s",t,e),r=null}return r}async writeObjectToCacheFile(e,t,r,n){const a=JSON.stringify(t);return this.writeStringToCacheFile(e,a,r,n)}async writeStringToCacheFile(e,t,r,n){const a=Dc.stringToWebReadableStream(t);return this.writeStreamToCacheFile(e,a,r,n)}async writeStreamToCacheFile(e,t,r,n){const a=Object.assign({},r||{},{Bucket:this.bucketVal(n),Key:e,Body:t}),i=new LP({client:this.s3,params:a,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});i.on("httpUploadProgress",(e=>{_n.info("Uploading : %s",e)}));return await i.done()}async synchronize(e,t,r=this,n=!1){Sn.notNullOrUndefined(e,"srcPrefix"),Sn.notNullOrUndefined(t,"targetPrefix"),Sn.true(e.endsWith("/"),"srcPrefix must end in /"),Sn.true(t.endsWith("/"),"targetPrefix must end in /");let a=[];const i=await this.directChildrenOfPrefix(e),s=await r.directChildrenOfPrefix(t),o=new Pc;for(let d=0;d<i.length;d++){const l=i[d];if(_n.info("Processing %s : %s",l,o.dumpExpected(d/i.length)),l.endsWith("/"))if(n){_n.info("%s is a subfolder - recursing");const i=await this.synchronize(e+l,t+l,r,n);_n.info("Got %d back from %s",i.length,l),a=a.concat(i)}else _n.info("%s is a subfolder and recurse not specified - skipping",l);else{let n=!0;const i=await this.fetchMetaForCacheFile(e+l);if(s.includes(l)){const e=await r.fetchMetaForCacheFile(t+l);i.ETag===e.ETag&&(_n.debug("Skipping - identical"),n=!1)}if(n){_n.debug("Copying...");const n=await this.fetchCacheFileAsReadableStream(e+l);try{const e=await r.writeStreamToCacheFile(t+l,n,i,void 0);_n.silly("Write result : %j",e),a.push(l)}catch(e){_n.error("Failed to sync : %s : %s",l,e)}}}}return _n.info("Found %d files, copied %d",i.length,a.length),o.log(),a}async fetchMetaForCacheFile(e,t=null){let r=null;try{r=await this.s3.send(new NC({Bucket:this.bucketVal(t),Key:e}))}catch(n){if(!n||404!=n.statusCode)throw _n.error("Unrecognized error, rethrowing : %s",n,n),n;_n.info("Cache file %s %s not found returning null",this.bucketVal(t),e),r=null}return r}async cacheFileAgeInSeconds(e,t=null){try{const r=await this.fetchMetaForCacheFile(e,t);return r&&r.LastModified?Math.floor(((new Date).getTime()-r.LastModified.getTime())/1e3):(_n.warn("Cache file %s %s had no last modified returning null",this.bucketVal(t),e),null)}catch(r){if(r&&404==r.statusCode)return _n.warn("Cache file %s %s not found returning null",this.bucketVal(t),e),null;throw r}}async copyFile(e,t,r=null,n=null){const a={CopySource:"/"+this.bucketVal(r)+"/"+e,Bucket:this.bucketVal(n),Key:t,MetadataDirective:"COPY"};return await this.s3.send(new Yx(a))}async quietCopyFile(e,t,r=null,n=null){let a=!1;try{await this.copyFile(e,t,r,n);a=!0}catch(e){_n.silly("Failed to copy file in S3 : %s",e)}return a}async preSignedDownloadUrlForCacheFile(e,t=3600,r=null){const n={Bucket:this.bucketVal(r),Key:e};return await UP(this.s3,new CC(n),{expiresIn:t})}async directChildrenOfPrefix(e,t=!1,r=null,n=null){const a=[],i={Bucket:this.bucketVal(r),Prefix:e,Delimiter:"/"};let s=null;do{s=await this.s3.send(new kC(i));const o=e.length;s.CommonPrefixes&&s.CommonPrefixes.forEach((e=>{if(!n||a.length<n){const t=e.Prefix.substring(o);a.push(t)}})),s.Contents&&await Promise.all(s.Contents.map((async e=>{if(!n||a.length<n)if(t){const t={link:await this.preSignedDownloadUrlForCacheFile(e.Key,3600,r),name:e.Key.substring(o),size:e.Size};a.push(t)}else a.push(e.Key.substring(o))}))),i.Marker=s.NextMarker}while(i.Marker&&(!n||a.length<n));return a}async allSubFoldersOfPrefix(e,t=null){const r=[e];let n=0;for(;n<r.length;){const e=r[n++];_n.debug("Pulling %s (%d remaining)",e,r.length-n);const a={Bucket:this.bucketVal(t),Prefix:e,Delimiter:"/"};let i=null;do{a.ContinuationToken=i?i.NextContinuationToken:null,i=await this.s3.send(new kC(a)),i.CommonPrefixes.forEach((e=>{r.push(e.Prefix)})),_n.debug("g:%j",i)}while(i.NextContinuationToken)}return r}bucketVal(e){const t=e||this.defaultBucket;if(!t)throw"You must set either the default bucket or pass it explicitly";return t}}class BP{s3;bucket;prefix;_defaultGroup;jwtRatchet;static DEFAULT_DEFAULT_GROUP="DEFAULT";cache;constructor(e,t,r="",n=BP.DEFAULT_DEFAULT_GROUP,a){this.s3=e,this.bucket=t,this.prefix=r,this._defaultGroup=n,this.jwtRatchet=a,this.cache=new VP(this.s3,this.bucket)}get defaultGroup(){return this._defaultGroup}async keyToPublicToken(e,t){Sn.notNullOrUndefined(this.jwtRatchet,"You must set jwtRatchet if you wish to use public tokens"),Sn.notNullOrUndefined(e,"key"),Sn.true(t>0,"Expiration seconds must be larger than 0");const r={daemonKey:e};return await this.jwtRatchet.createTokenString(r,t)}keyToPath(e){return Buffer.from(e,"base64").toString()}pathToKey(e){return Buffer.from(e).toString("base64")}generatePath(e=this._defaultGroup){return this.generatePrefix(e)+En.createType4Guid()}generatePrefix(e=this._defaultGroup){return this.prefix+e+"/"}async start(e){e.group=e.group||this._defaultGroup;const t=this.generatePath(e.group),r=this.pathToKey(t);return FP.start(this.cache,r,t,e)}async writeState(e,t){const r=this.keyToPath(e.id);return FP.writeState(this.cache,r,e,t)}async clean(e=this._defaultGroup,t=604800){try{_n.info("Daemon removing items older than %d seconds from group %s",t,e);const r=await this.list(e),n=(new Date).getTime(),a=[];for(let e=0;e<r.length;e++){const i=r[e];if((n-i.startedEpochMS)/1e3>t){await this.cache.removeCacheFile(this.keyToPath(i.id));a.push(i)}}return _n.debug("Removed %d of %d items",a.length,r.length),a}catch(t){throw _n.error("Error while trying to clean a daemon: %j %s",e,t),t}}async listKeys(e=this._defaultGroup){try{const t=this.generatePrefix(e);_n.info("Fetching children of %s",t);const r=await this.cache.directChildrenOfPrefix(t);return _n.debug("Found : %j",r),r}catch(t){throw _n.error("Error while trying to list daemon keys: %j %s",e,t),t}}async list(e=this._defaultGroup){try{const t=this.generatePrefix(e);_n.info("Fetching children of %s",t);const r=(await this.listKeys(e)).map((t=>this.stat(this.pathToKey(this.generatePrefix(e)+t))));return await Promise.all(r)}catch(t){throw _n.error("Error while trying to list daemon states: %j %s",e,t),t}}async updateMessage(e,t){const r=this.keyToPath(e);return FP.updateMessage(this.cache,r,t)}async stat(e){const t=this.keyToPath(e);return FP.stat(this.cache,t)}async statFromPublicToken(e){Sn.notNullOrUndefined(this.jwtRatchet,"You must set jwtRatchet if you wish to use public tokens"),Sn.notNullOrUndefined(e,"publicToken");const t=await this.jwtRatchet.decodeToken(e),r=t?.daemonKey;return r?this.stat(r):null}async abort(e){return FP.abort(this.cache,this.keyToPath(e))}async error(e,t){return FP.error(this.cache,this.keyToPath(e),t)}async finalize(e,t){return FP.finalize(this.cache,this.keyToPath(e),t)}}class $P{provider;cfg;static defaultDaoConfig(){return{guidCreateFunction:En.createType4Guid,guidFieldName:"guid",createdEpochMSFieldName:"createdEpochMS",updatedEpochMSFieldName:"updatedEpochMS",createdUtcTimestampFieldName:null,updatedUtcTimestampFieldName:null}}constructor(e,t=$P.defaultDaoConfig()){this.provider=e,this.cfg=t,Sn.notNullOrUndefined(e,"provider"),Sn.notNullOrUndefined(t,"cfg"),Sn.notNullOrUndefined(t.guidCreateFunction,"cfg.guidCreateFunction"),Sn.notNullOrUndefined(t.guidFieldName,"cfg.guidFieldName")}async fetchAll(){return(await this.provider.loadDatabase()).items||[]}async resetDatabase(){await this.provider.storeDatabase({items:[],lastModifiedEpochMS:Date.now()})}async removeItems(e){let t=await this.fetchAll();return e&&(t=t.filter((t=>!e.includes(t[this.cfg.guidFieldName]))),await this.provider.storeDatabase({items:t,lastModifiedEpochMS:Date.now()})),t}async store(e){let t=await this.fetchAll();return e&&(e[this.cfg.guidFieldName]=e[this.cfg.guidFieldName]||this.cfg.guidCreateFunction(),this.cfg.createdEpochMSFieldName&&(e[this.cfg.createdEpochMSFieldName]=e[this.cfg.createdEpochMSFieldName]||Date.now()),this.cfg.createdUtcTimestampFieldName&&(e[this.cfg.createdUtcTimestampFieldName]=e[this.cfg.createdUtcTimestampFieldName]||mn.utc().toISO()),this.cfg.updatedEpochMSFieldName&&(e[this.cfg.updatedEpochMSFieldName]=Date.now()),this.cfg.updatedUtcTimestampFieldName&&(e[this.cfg.updatedUtcTimestampFieldName]=mn.utc().toISO()),t=t.filter((t=>t[this.cfg.guidFieldName]!==e[this.cfg.guidFieldName])),t.push(e),await this.provider.storeDatabase({items:t,lastModifiedEpochMS:Date.now()})),e}async fetchById(e){return(await this.fetchAll()).find((t=>t[this.cfg.guidFieldName]===e))}async searchByField(e,t){Sn.notNullOrUndefined(e,"fieldDotPath"),Sn.notNullOrUndefined(t,"fieldValue");const r={};return r[e]=t,this.searchByFieldMap(r)}async searchByFieldMap(e){Sn.notNullOrUndefined(e,"input");let t=await this.fetchAll();return t=t.filter((t=>{let r=!0;return Object.keys(e).forEach((n=>{const a=_c.findValueDotPath(t,n),i=e[n];r=r&&a===i})),r})),t}}class zP{s3CacheRatchet;keyName;constructor(e,t){this.s3CacheRatchet=e,this.keyName=t,Sn.notNullOrUndefined(e,"s3CacheRatchet"),Sn.notNullUndefinedOrOnlyWhitespaceString(e.getDefaultBucket(),"s3CacheRatchet.defaultBucket"),Sn.notNullUndefinedOrOnlyWhitespaceString(t,"keyName")}async storeDatabase(e){const t=e||{items:[],lastModifiedEpochMS:null};t.lastModifiedEpochMS=Date.now();return!!await this.s3CacheRatchet.writeObjectToCacheFile(this.keyName,t)}async loadDatabase(){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyName)||{items:[],lastModifiedEpochMS:Date.now()}}}class qP{cache;prefix;constructor(e,t){if(this.cache=e,this.prefix=t,!e)throw new Error("cache object may not be null");if(!e.getDefaultBucket())throw new Error("Supplied cache must have default bucket set")}buildPathPrefix(e){let t="";return this.prefix&&(t+=this.prefix),e&&(t+=e),t}buildFullPath(e,t){let r=this.buildPathPrefix(t);return r.length>0&&(r+="/"),r+=e+".json",r}async exists(e,t){const r=this.buildFullPath(e,t);return _n.debug("Check file existence : %s",r),this.cache.fileExists(r)}async fetch(e,t){const r=this.buildFullPath(e,t);_n.debug("Fetching : %s",r);const n=await this.cache.fetchCacheFileAsObject(r);return n.id=e,n.path=t,n}async store(e,t){e.id=e.id||En.createType4Guid(),e.lastModifiedEpochMS=(new Date).getTime();const r=this.buildFullPath(e.id,t);_n.debug("Storing : %s",r),await this.cache.writeObjectToCacheFile(r,e);return await this.fetch(e.id,t)}async listItems(e){const t=this.buildPathPrefix(e);_n.debug("Listing : %s",t);return await this.cache.directChildrenOfPrefix(t)}async fetchItemsInPath(e){const t=this.buildPathPrefix(e);_n.debug("Full fetch of : %s",t);const r=(await this.listItems(e)).map((t=>this.fetch(t,e)));return await Promise.all(r)}async delete(e,t){const r=this.buildFullPath(e,t);_n.debug("Deleting : %s",r);return null!=await this.cache.removeCacheFile(r)}}class HP extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,HP.prototype)}}let KP=class e extends HP{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,e.prototype)}};class GP extends HP{constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,GP.prototype)}}class WP extends HP{constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,WP.prototype),this.Message=e.Message}}class ZP extends HP{constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,ZP.prototype)}}class JP extends HP{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,JP.prototype)}}class YP extends HP{constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,YP.prototype)}}class XP extends HP{constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,XP.prototype)}}class QP extends HP{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,QP.prototype)}}class eI extends HP{constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class tI extends HP{constructor(e){super({name:"TransactionConflictException",$fault:"client",...e}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}var rI;!function(e){e.visit=(e,t)=>void 0!==e.S?t.S(e.S):void 0!==e.N?t.N(e.N):void 0!==e.B?t.B(e.B):void 0!==e.SS?t.SS(e.SS):void 0!==e.NS?t.NS(e.NS):void 0!==e.BS?t.BS(e.BS):void 0!==e.M?t.M(e.M):void 0!==e.L?t.L(e.L):void 0!==e.NULL?t.NULL(e.NULL):void 0!==e.BOOL?t.BOOL(e.BOOL):t._(e.$unknown[0],e.$unknown[1])}(rI||(rI={}));const nI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},aI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await yI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},iI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await vI(r);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await SI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},sI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await hI(r);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await yI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await _I(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},oI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await vI(r);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await SI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},dI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},lI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},uI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await hI(r);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await yI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await _I(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},pI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},cI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},mI=async(e,t)=>{const r={...e,body:await UO(e.body,t)},n=VO(e,r.body);switch(n){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await hI(r);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await fI(r);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await gI(r);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await yI(r);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await wI(r);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await bI(r);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await EI(r);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await _I(r);default:const t=r.body;return MO({output:e,parsedBody:t,errorCode:n})}},hI=async(e,t)=>{const r=e.body,n=cf(r),a=new XP({$metadata:DO(e),...n});return Zh(a,r)},fI=async(e,t)=>{const r=e.body,n=cf(r),a=new KP({$metadata:DO(e),...n});return Zh(a,r)},gI=async(e,t)=>{const r=e.body,n=cf(r),a=new WP({$metadata:DO(e),...n});return Zh(a,r)},yI=async(e,t)=>{const r=e.body,n=cf(r),a=new YP({$metadata:DO(e),...n});return Zh(a,r)},vI=async(e,t)=>{const r=e.body,n=cf(r),a=new QP({$metadata:DO(e),...n});return Zh(a,r)},wI=async(e,t)=>{const r=e.body,n=cf(r),a=new ZP({$metadata:DO(e),...n});return Zh(a,r)},bI=async(e,t)=>{const r=e.body,n=cf(r),a=new GP({$metadata:DO(e),...n});return Zh(a,r)},SI=async(e,t)=>{const r=e.body,n=cf(r),a=new eI({$metadata:DO(e),...n});return Zh(a,r)},EI=async(e,t)=>{const r=e.body,n=cf(r),a=new JP({$metadata:DO(e),...n});return Zh(a,r)},_I=async(e,t)=>{const r=e.body,n=cf(r),a=new tI({$metadata:DO(e),...n});return Zh(a,r)},xI=(e,t)=>rI.visit(e,{B:e=>({B:t.base64Encoder(e)}),BOOL:e=>({BOOL:e}),BS:e=>({BS:II(e,t)}),L:e=>({L:BI(e,t)}),M:e=>({M:$I(e,t)}),N:e=>({N:e}),NS:e=>({NS:cf(e)}),NULL:e=>({NULL:e}),S:e=>({S:e}),SS:e=>({SS:cf(e)}),_:(e,t)=>({name:t})}),CI=(e,t)=>e.filter((e=>null!=e)).map((e=>xI(e,t))),NI=(e,t)=>af(e,{Action:[],Value:e=>xI(e,t)}),kI=(e,t)=>af(e,{RequestItems:e=>TI(e,t),ReturnConsumedCapacity:[]}),TI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=VI(n,t)),e)),{}),AI=(e,t)=>af(e,{RequestItems:e=>PI(e,t),ReturnConsumedCapacity:[],ReturnItemCollectionMetrics:[]}),PI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=ZI(n,t)),e)),{}),II=(e,t)=>e.filter((e=>null!=e)).map((e=>t.base64Encoder(e))),OI=(e,t)=>af(e,{AttributeValueList:e=>CI(e,t),ComparisonOperator:[]}),DI=(e,t)=>af(e,{ConditionExpression:[],ConditionalOperator:[],Expected:e=>RI(e,t),ExpressionAttributeNames:cf,ExpressionAttributeValues:e=>LI(e,t),Key:e=>UI(e,t),ReturnConsumedCapacity:[],ReturnItemCollectionMetrics:[],ReturnValues:[],TableName:[]}),RI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=MI(n,t)),e)),{}),MI=(e,t)=>af(e,{AttributeValueList:e=>CI(e,t),ComparisonOperator:[],Exists:[],Value:e=>xI(e,t)}),LI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=xI(n,t)),e)),{}),FI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=OI(n,t)),e)),{}),jI=(e,t)=>af(e,{AttributesToGet:cf,ConsistentRead:[],ExpressionAttributeNames:cf,Key:e=>UI(e,t),ProjectionExpression:[],ReturnConsumedCapacity:[],TableName:[]}),UI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=xI(n,t)),e)),{}),VI=(e,t)=>af(e,{AttributesToGet:cf,ConsistentRead:[],ExpressionAttributeNames:cf,Keys:e=>((e,t)=>e.filter((e=>null!=e)).map((e=>UI(e,t))))(e,t),ProjectionExpression:[]}),BI=(e,t)=>e.filter((e=>null!=e)).map((e=>xI(e,t))),$I=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=xI(n,t)),e)),{}),zI=(e,t)=>af(e,{ConditionExpression:[],ConditionalOperator:[],Expected:e=>RI(e,t),ExpressionAttributeNames:cf,ExpressionAttributeValues:e=>LI(e,t),Item:e=>qI(e,t),ReturnConsumedCapacity:[],ReturnItemCollectionMetrics:[],ReturnValues:[],TableName:[]}),qI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=xI(n,t)),e)),{}),HI=(e,t)=>af(e,{AttributesToGet:cf,ConditionalOperator:[],ConsistentRead:[],ExclusiveStartKey:e=>UI(e,t),ExpressionAttributeNames:cf,ExpressionAttributeValues:e=>LI(e,t),FilterExpression:[],IndexName:[],KeyConditionExpression:[],KeyConditions:e=>((e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=OI(n,t)),e)),{}))(e,t),Limit:[],ProjectionExpression:[],QueryFilter:e=>FI(e,t),ReturnConsumedCapacity:[],ScanIndexForward:[],Select:[],TableName:[]}),KI=(e,t)=>af(e,{AttributesToGet:cf,ConditionalOperator:[],ConsistentRead:[],ExclusiveStartKey:e=>UI(e,t),ExpressionAttributeNames:cf,ExpressionAttributeValues:e=>LI(e,t),FilterExpression:[],IndexName:[],Limit:[],ProjectionExpression:[],ReturnConsumedCapacity:[],ScanFilter:e=>FI(e,t),Segment:[],Select:[],TableName:[],TotalSegments:[]}),GI=(e,t)=>af(e,{AttributeUpdates:e=>((e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=NI(n,t)),e)),{}))(e,t),ConditionExpression:[],ConditionalOperator:[],Expected:e=>RI(e,t),ExpressionAttributeNames:cf,ExpressionAttributeValues:e=>LI(e,t),Key:e=>UI(e,t),ReturnConsumedCapacity:[],ReturnItemCollectionMetrics:[],ReturnValues:[],TableName:[],UpdateExpression:[]}),WI=(e,t)=>af(e,{DeleteRequest:e=>((e,t)=>af(e,{Key:e=>UI(e,t)}))(e,t),PutRequest:e=>((e,t)=>af(e,{Item:e=>qI(e,t)}))(e,t)}),ZI=(e,t)=>e.filter((e=>null!=e)).map((e=>WI(e,t))),JI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=YI(yh(n),t)),e)),{}),YI=(e,t)=>null!=e.B?{B:t.base64Decoder(e.B)}:void 0!==ah(e.BOOL)?{BOOL:ah(e.BOOL)}:null!=e.BS?{BS:nO(e.BS,t)}:null!=e.L?{L:wO(e.L,t)}:null!=e.M?{M:bO(e.M,t)}:void 0!==gh(e.N)?{N:gh(e.N)}:null!=e.NS?{NS:cf(e.NS)}:void 0!==ah(e.NULL)?{NULL:ah(e.NULL)}:void 0!==gh(e.S)?{S:gh(e.S)}:null!=e.SS?{SS:cf(e.SS)}:{$unknown:Object.entries(e)[0]},XI=(e,t)=>af(e,{ConsumedCapacity:e=>sO(e),Responses:e=>eO(e,t),UnprocessedKeys:e=>QI(e,t)}),QI=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=vO(n,t)),e)),{}),eO=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=gO(n,t)),e)),{}),tO=(e,t)=>af(e,{ConsumedCapacity:e=>sO(e),ItemCollectionMetrics:e=>hO(e,t),UnprocessedItems:e=>rO(e,t)}),rO=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=OO(n,t)),e)),{}),nO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>t.base64Decoder(e)));return r},aO=(e,t)=>af(e,{CapacityUnits:bh,ReadCapacityUnits:bh,WriteCapacityUnits:bh}),iO=(e,t)=>af(e,{CapacityUnits:bh,GlobalSecondaryIndexes:e=>kO(e),LocalSecondaryIndexes:e=>kO(e),ReadCapacityUnits:bh,Table:e=>aO(e),TableName:gh,WriteCapacityUnits:bh}),sO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>iO(e)));return r},oO=(e,t)=>af(e,{TableDescription:e=>AO(e)}),dO=(e,t)=>af(e,{Attributes:e=>JI(e,t),ConsumedCapacity:e=>iO(e),ItemCollectionMetrics:e=>mO(e,t)}),lO=(e,t)=>af(e,{TableDescription:e=>AO(e)}),uO=(e,t)=>af(e,{Table:e=>AO(e)}),pO=(e,t)=>af(e,{ConsumedCapacity:e=>iO(e),Item:e=>JI(e,t)}),cO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>af(e,{Backfilling:ah,IndexArn:gh,IndexName:gh,IndexSizeBytes:dh,IndexStatus:gh,ItemCount:dh,KeySchema:cf,Projection:cf,ProvisionedThroughput:e=>SO(e)}))(e)));return r},mO=(e,t)=>af(e,{ItemCollectionKey:e=>((e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=YI(yh(n),t)),e)),{}))(e,t),SizeEstimateRangeGB:e=>fO(e)}),hO=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=((e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>mO(e,t)));return r})(n,t)),e)),{}),fO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>bh(e)));return r},gO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>JI(e,t)));return r},yO=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=YI(yh(n),t)),e)),{}),vO=(e,t)=>af(e,{AttributesToGet:cf,ConsistentRead:ah,ExpressionAttributeNames:cf,Keys:e=>((e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>yO(e,t)));return r})(e,t),ProjectionExpression:gh}),wO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>YI(yh(e),t)));return r},bO=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=YI(yh(n),t)),e)),{}),SO=(e,t)=>af(e,{LastDecreaseDateTime:e=>hh(Lh(ih(e))),LastIncreaseDateTime:e=>hh(Lh(ih(e))),NumberOfDecreasesToday:dh,ReadCapacityUnits:dh,WriteCapacityUnits:dh}),EO=(e,t)=>af(e,{Attributes:e=>JI(e,t),ConsumedCapacity:e=>iO(e),ItemCollectionMetrics:e=>mO(e,t)}),_O=(e,t)=>af(e,{Item:e=>((e,t)=>Object.entries(e).reduce(((e,[r,n])=>(null===n||(e[r]=YI(yh(n),t)),e)),{}))(e,t)}),xO=(e,t)=>af(e,{ConsumedCapacity:e=>iO(e),Count:lh,Items:e=>gO(e,t),LastEvaluatedKey:e=>yO(e,t),ScannedCount:lh}),CO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>af(e,{GlobalSecondaryIndexes:cf,KMSMasterKeyId:gh,ProvisionedThroughputOverride:cf,RegionName:gh,ReplicaInaccessibleDateTime:e=>hh(Lh(ih(e))),ReplicaStatus:gh,ReplicaStatusDescription:gh,ReplicaStatusPercentProgress:gh,ReplicaTableClassSummary:e=>TO(e)}))(e)));return r},NO=(e,t)=>af(e,{ConsumedCapacity:e=>iO(e),Count:lh,Items:e=>gO(e,t),LastEvaluatedKey:e=>yO(e,t),ScannedCount:lh}),kO=(e,t)=>Object.entries(e).reduce(((e,[t,r])=>(null===r||(e[t]=aO(r)),e)),{}),TO=(e,t)=>af(e,{LastUpdateDateTime:e=>hh(Lh(ih(e))),TableClass:gh}),AO=(e,t)=>af(e,{ArchivalSummary:e=>((e,t)=>af(e,{ArchivalBackupArn:gh,ArchivalDateTime:e=>hh(Lh(ih(e))),ArchivalReason:gh}))(e),AttributeDefinitions:cf,BillingModeSummary:e=>((e,t)=>af(e,{BillingMode:gh,LastUpdateToPayPerRequestDateTime:e=>hh(Lh(ih(e)))}))(e),CreationDateTime:e=>hh(Lh(ih(e))),DeletionProtectionEnabled:ah,GlobalSecondaryIndexes:e=>cO(e),GlobalTableVersion:gh,ItemCount:dh,KeySchema:cf,LatestStreamArn:gh,LatestStreamLabel:gh,LocalSecondaryIndexes:cf,ProvisionedThroughput:e=>SO(e),Replicas:e=>CO(e),RestoreSummary:e=>((e,t)=>af(e,{RestoreDateTime:e=>hh(Lh(ih(e))),RestoreInProgress:ah,SourceBackupArn:gh,SourceTableArn:gh}))(e),SSEDescription:e=>((e,t)=>af(e,{InaccessibleEncryptionDateTime:e=>hh(Lh(ih(e))),KMSMasterKeyArn:gh,SSEType:gh,Status:gh}))(e),StreamSpecification:cf,TableArn:gh,TableClassSummary:e=>TO(e),TableId:gh,TableName:gh,TableSizeBytes:dh,TableStatus:gh}),PO=(e,t)=>af(e,{Attributes:e=>JI(e,t),ConsumedCapacity:e=>iO(e),ItemCollectionMetrics:e=>mO(e,t)}),IO=(e,t)=>af(e,{DeleteRequest:e=>((e,t)=>af(e,{Key:e=>yO(e,t)}))(e,t),PutRequest:e=>_O(e,t)}),OO=(e,t)=>{const r=(e||[]).filter((e=>null!=e)).map((e=>IO(e,t)));return r},DO=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),RO=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),MO=Jh(HP),LO=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)};function FO(e){return{"content-type":"application/x-amz-json-1.0","x-amz-target":`DynamoDB_20120810.${e}`}}const jO=(e,t)=>RO(e,t).then((e=>e.length?JSON.parse(e):{})),UO=async(e,t)=>{const r=await jO(e,t);return r.message=r.message??r.Message,r},VO=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(a=e.headers,i="x-amzn-errortype",Object.keys(a).find((e=>e.toLowerCase()===i.toLowerCase())));var a,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class BO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,BO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("BatchGetItem");let n;return n=JSON.stringify(kI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return nI(e,t);const r=await jO(e.body,t);let n={};return n=XI(r,t),{$metadata:DO(e),...n}})(e,t)}}class $O extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,$O.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("BatchWriteItem");let n;return n=JSON.stringify(AI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return aI(e,t);const r=await jO(e.body,t);let n={};return n=tO(r,t),{$metadata:DO(e),...n}})(e,t)}}class zO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,zO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("CreateTable");let n;return n=JSON.stringify(cf(e)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return iI(e,t);const r=await jO(e.body,t);let n={};return n=oO(r),{$metadata:DO(e),...n}})(e,t)}}class qO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,qO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("DeleteItem");let n;return n=JSON.stringify(DI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return sI(e,t);const r=await jO(e.body,t);let n={};return n=dO(r,t),{$metadata:DO(e),...n}})(e,t)}}class HO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,HO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("DeleteTable");let n;return n=JSON.stringify(cf(e)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return oI(e,t);const r=await jO(e.body,t);let n={};return n=lO(r),{$metadata:DO(e),...n}})(e,t)}}class KO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,KO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("DescribeTable");let n;return n=JSON.stringify(cf(e)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return dI(e,t);const r=await jO(e.body,t);let n={};return n=uO(r),{$metadata:DO(e),...n}})(e,t)}}class GO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,GO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("GetItem");let n;return n=JSON.stringify(jI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return lI(e,t);const r=await jO(e.body,t);let n={};return n=pO(r,t),{$metadata:DO(e),...n}})(e,t)}}class WO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,WO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("PutItem");let n;return n=JSON.stringify(zI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return uI(e,t);const r=await jO(e.body,t);let n={};return n=EO(r,t),{$metadata:DO(e),...n}})(e,t)}}let ZO=class e extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(t,r,n){this.middlewareStack.use(jf(r,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(r,e.getEndpointParameterInstructions()));const a=t.concat(this.middlewareStack),{logger:i}=r,s={logger:i,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=r;return a.resolve((e=>o.handle(e.request,n||{})),s)}serialize(e,t){return(async(e,t)=>{const r=FO("Query");let n;return n=JSON.stringify(HI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return pI(e,t);const r=await jO(e.body,t);let n={};return n=xO(r,t),{$metadata:DO(e),...n}})(e,t)}},JO=class e extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(t,r,n){this.middlewareStack.use(jf(r,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(r,e.getEndpointParameterInstructions()));const a=t.concat(this.middlewareStack),{logger:i}=r,s={logger:i,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=r;return a.resolve((e=>o.handle(e.request,n||{})),s)}serialize(e,t){return(async(e,t)=>{const r=FO("Scan");let n;return n=JSON.stringify(KI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return cI(e,t);const r=await jO(e.body,t);let n={};return n=NO(r,t),{$metadata:DO(e),...n}})(e,t)}};class YO extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,YO.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=FO("UpdateItem");let n;return n=JSON.stringify(GI(e,t)),LO(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return mI(e,t);const r=await jO(e.body,t);let n={};return n=PO(r,t),{$metadata:DO(e),...n}})(e,t)}}const XO=(e,t)=>{if(void 0===e)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(null===e&&"object"==typeof e)return nD();if(Array.isArray(e))return QO(e,t);if("Set"===e?.constructor?.name)return eD(e,t);if("Map"===e?.constructor?.name)return tD(e,t);if("Object"===e?.constructor?.name||!e.constructor&&"object"==typeof e)return rD(e,t);if(lD(e))return 0===e.length&&t?.convertEmptyValues?nD():aD(e);if("boolean"==typeof e||"Boolean"===e?.constructor?.name)return{BOOL:e.valueOf()};if("number"==typeof e||"Number"===e?.constructor?.name)return dD(e);if("bigint"==typeof e)return sD(e);if("string"==typeof e||"String"===e?.constructor?.name)return 0===e.length&&t?.convertEmptyValues?nD():iD(e);if(t?.convertClassInstanceToMap&&"object"==typeof e)return rD(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)},QO=(e,t)=>({L:e.filter((e=>!t?.removeUndefinedValues||t?.removeUndefinedValues&&void 0!==e)).map((e=>XO(e,t)))}),eD=(e,t)=>{const r=t?.removeUndefinedValues?new Set([...e].filter((e=>void 0!==e))):e;if(!t?.removeUndefinedValues&&r.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(0===r.size){if(t?.convertEmptyValues)return nD();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}const n=r.values().next().value;if("number"==typeof n)return{NS:Array.from(r).map(dD).map((e=>e.N))};if("bigint"==typeof n)return{NS:Array.from(r).map(sD).map((e=>e.N))};if("string"==typeof n)return{SS:Array.from(r).map(iD).map((e=>e.S))};if(lD(n))return{BS:Array.from(r).map(aD).map((e=>e.B))};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},tD=(e,t)=>({M:(e=>{const r={};for(const[n,a]of e)"function"==typeof a||void 0===a&&t?.removeUndefinedValues||(r[n]=XO(a,t));return r})(e)}),rD=(e,t)=>({M:(e=>{const r={};for(const n in e){const a=e[n];"function"==typeof a||void 0===a&&t?.removeUndefinedValues||(r[n]=XO(a,t))}return r})(e)}),nD=()=>({NULL:!0}),aD=e=>({B:e}),iD=e=>({S:e.toString()}),sD=e=>({N:e.toString()}),oD=e=>{throw new Error(`${e} ${"function"==typeof BigInt?"Use BigInt.":"Pass string value instead."} `)},dD=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map((e=>e.toString())).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?oD(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&oD(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},lD=e=>{const t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return!!e?.constructor&&t.includes(e.constructor.name)},uD=(e,t)=>{for(const[r,n]of Object.entries(e))if(void 0!==n)switch(r){case"NULL":return null;case"BOOL":return Boolean(n);case"N":return pD(n,t);case"B":return mD(n);case"S":return cD(n);case"L":return hD(n,t);case"M":return fD(n,t);case"NS":return new Set(n.map((e=>pD(e,t))));case"BS":return new Set(n.map(mD));case"SS":return new Set(n.map(cD));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)},pD=(e,t)=>{if(t?.wrapNumbers)return{value:e};const r=Number(e),n=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)&&!n.includes(r)){if("function"!=typeof BigInt)throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);try{return BigInt(e)}catch(t){throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}}return r},cD=e=>e,mD=e=>e,hD=(e,t)=>e.map((e=>uD(e,t))),fD=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>(e[r]=uD(n,t),e)),{});const gD=(e,t,r)=>{if(void 0!==e)return!r||Array.isArray(r)&&0===r.length?t(e):Array.isArray(r)?vD(e,t,r):wD(e,t,r.children)},yD=(e,t,r)=>Array.isArray(e)?e.map((e=>gD(e,t,r))):gD(e,t,r),vD=(e,t,r)=>{const n={...e};return r.reduce(((e,{key:r,children:n})=>(e[r]=yD(e[r],t,n),e)),n)},wD=(e,t,r)=>Object.entries(e).reduce(((e,[n,a])=>(e[n]=yD(a,t,r),e)),{}),bD=(e,t,r)=>vD(e,(e=>function(e,t){const r=XO(e,t),[n,a]=Object.entries(r)[0];switch(n){case"M":case"L":return a;default:return r}}(e,r)),t),SD=(e,t,r)=>vD(e,(e=>((e,t)=>uD({M:e},t))(e,r)),t);class ED extends th{addMarshallingMiddleware(e){const{marshallOptions:t,unmarshallOptions:r}=e.translateConfig||{};this.clientCommand.middlewareStack.addRelativeTo(((e,r)=>async n=>{n.input=bD(this.input,this.inputKeyNodes,t),r.dynamoDbDocumentClientOptions=r.dynamoDbDocumentClientOptions||ED.defaultLogFilterOverrides;const a=n.input;return r.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog=()=>r.inputFilterSensitiveLog?.(a),e(n)}),{name:"DocumentMarshall",relation:"before",toMiddleware:"serializerMiddleware",override:!0}),this.clientCommand.middlewareStack.addRelativeTo(((e,t)=>async n=>{const a=await e(n),i=a.output;return t.dynamoDbDocumentClientOptions=t.dynamoDbDocumentClientOptions||ED.defaultLogFilterOverrides,t.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog=()=>t.outputFilterSensitiveLog?.(i),a.output=SD(a.output,this.outputKeyNodes,r),a}),{name:"DocumentUnmarshall",relation:"before",toMiddleware:"deserializerMiddleware",override:!0})}}ED.defaultLogFilterOverrides={overrideInputFilterSensitiveLog(...e){},overrideOutputFilterSensitiveLog(...e){}};class _D extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}],this.clientCommand=new BO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class xD extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}],this.clientCommand=new $O(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class CD extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}],this.clientCommand=new qO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class ND extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}],this.clientCommand=new GO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class kD extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}],this.clientCommand=new WO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class TD extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}],this.clientCommand=new ZO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class AD extends ED{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}],this.clientCommand=new JO(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);const n=e.concat(this.middlewareStack),a=this.clientCommand.resolveMiddleware(n,t,r);return async()=>a(this.clientCommand)}}class PD{awsDDB;constructor(e){if(this.awsDDB=e,!e)throw"awsDDB may not be null"}get dynamoDBDocumentClient(){return this.awsDDB}getDDB(){return this.awsDDB}async tableIsEmpty(e){const t={TableName:e,Limit:1},r=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),t);return 0===r.Items.length}async scanPromise(e){return this.awsDDB.send(new AD(e))}async queryPromise(e){return this.awsDDB.send(new TD(e))}async throughputSafeScanOrQuery(e,t,r,n){let a=null;if(t){let i=n??0;do{i++;try{a=await e(t)}catch(e){if(!PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,i);_n.debug("Exceeded scan throughput for %j : Try %d of %d (Waiting %d ms)",t,i,r,e),await Ic.wait(e),i++}}}while(!a&&(!r||i<r));a||lp.throwFormattedErr("throughputSafeScan failed - tried %d times, kept running into throughput exceeded : %j",r,t)}return a}async fullyExecuteQueryCount(e,t=0){try{e.Select="COUNT",_n.debug("Executing count query : %j",e);const r={count:0,scannedCount:0,pages:0},n=(new Date).getTime();let a=null;const i=e.Limit;e.Limit=null;do{a=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e),r.count+=a.Count,r.scannedCount+=a.ScannedCount,r.pages++,e.ExclusiveStartKey=a.LastEvaluatedKey,await Ic.wait(t),_n.silly("Rval is now %j",r),i&&r.count>=i&&e.ExclusiveStartKey&&(_n.info("Aborting query since hit limit of %d",i),e.ExclusiveStartKey=null)}while(e.ExclusiveStartKey);const s=(new Date).getTime();return _n.debug("Finished, returned %j in %s for %j",r,dp.formatMsDuration(s-n,!0),e),r}catch(t){return _n.error("Failed with %s, q: %j",t,e,t),null}}async fullyExecuteQuery(e,t=0,r=null){const n=[];return await this.fullyExecuteProcessOverQuery(e,(async e=>{n.push(e)}),t,r),n}async fullyExecuteProcessOverQuery(e,t,r=0,n=null){let a=0;try{_n.debug("Executing query : %j",e);const i=(new Date).getTime();_n.debug("Pulling %j",e);let s=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e);for(let e=0;e<s.Items.length;e++)await t(s.Items[e]),a++;let o=0,d=0;for(;s.LastEvaluatedKey&&(null===n||a<n)&&!e.Limit;){_n.silly("Found more rows - requery with key %j",s.LastEvaluatedKey),e.ExclusiveStartKey=s.LastEvaluatedKey,s=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e);for(let e=0;e<s.Items.length;e++)await t(s.Items[e]),a++;_n.silly("Have processed %d items",a),o++,d+=0===s.Count?1:0,await Ic.wait(r)}const l=(new Date).getTime();_n.debug("Finished, processed %d rows in %s for %j (%d blank pages, %d total pages)",a,dp.formatMsDuration(l-i,!0),e,d,o)}catch(t){_n.error("Failed with %s, q: %j",t,e,t)}return a}async fullyExecuteScanCount(e,t=0){try{e.Select="COUNT";const r={count:0,scannedCount:0,pages:0};_n.debug("Executing scan count : %j",e);const n=(new Date).getTime();let a=null;const i=e.Limit;e.Limit=null;do{a=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e),r.count+=a.Count,r.scannedCount+=a.ScannedCount,r.pages++,e.ExclusiveStartKey=a?.LastEvaluatedKey,await Ic.wait(t),_n.silly("Rval is now %j",r),i&&r.count>=i&&e.ExclusiveStartKey&&(_n.info("Aborting scan since hit limit of %d",i),e.ExclusiveStartKey=null)}while(e.ExclusiveStartKey);const s=(new Date).getTime();return _n.debug("Finished, returned %j in %s for %j",r,dp.formatMsDuration(s-n,!0),e),r}catch(t){return _n.error("Failed with %s, q: %j",t,e,t),null}}async fullyExecuteScan(e,t=0,r=null){const n=[];return await this.fullyExecuteProcessOverScan(e,(async e=>{n.push(e)}),t,r),n}async fullyExecuteProcessOverScan(e,t,r=0,n=null){let a=0;try{_n.debug("Executing scan : %j",e);const i=(new Date).getTime();_n.debug("Pulling %j",e);let s=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e);for(let e=0;e<s.Items.length;e++)await t(s.Items[e]),a++;for(;s.LastEvaluatedKey&&(null===n||a<n)&&!e.Limit;){_n.silly("Found more rows - requery with key %j",s.LastEvaluatedKey),e.ExclusiveStartKey=s.LastEvaluatedKey,s=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e);for(let e=0;e<s.Items.length;e++)await t(s.Items[e]),a++;_n.silly("Rval is now %d items",a),await Ic.wait(r)}const o=(new Date).getTime();_n.debug("Finished, processed %d results in %s for %j",a,dp.formatMsDuration(o-i,!0),e)}catch(t){_n.error("Failed with %s, q: %j",t,e,t)}return a}async writeAllInBatches(e,t,r){if(!r||r<2)throw new Error("Batch size needs to be at least 2, was "+r);let n=0;if(t&&t.length>0){let a=[];for(t.forEach((t=>{a.push({PutRequest:{Item:t,ReturnConsumedCapacity:"TOTAL",TableName:e}})})),_n.debug("Processing %d batch items to %s",a.length,e);a.length>0;){const t=a.slice(0,Math.min(a.length,r));a=a.slice(t.length);const i={RequestItems:{},ReturnConsumedCapacity:"TOTAL",ReturnItemCollectionMetrics:"SIZE"};i.RequestItems[e]=t;let s=1,o=!1,d=null;for(;!o&&s<7;){try{d=await this.awsDDB.send(new xD(i))}catch(e){if(!PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;_n.info("Caught ProvisionedThroughputExceededException - retrying delete"),d={UnprocessedItems:i.RequestItems}}if(d&&d.UnprocessedItems&&d.UnprocessedItems[e]&&d.UnprocessedItems[e].length>0){const t=Math.pow(2,s);_n.warn("Found %d unprocessed items. Backing off %d seconds and trying again",d.UnprocessedItems[e].length,t),await Ic.wait(1e3*t),s++,i.RequestItems[e]=d.UnprocessedItems[e]}else o=!0}d&&d.UnprocessedItems&&d.UnprocessedItems[e]&&d.UnprocessedItems[e].length>0?(_n.error("After 6 tries there were still %d unprocessed items"),n+=t.length-d.UnprocessedItems[e].length,_n.warn("FIX Unprocessed : %j",d.UnprocessedItems)):n+=t.length}}return n}async fetchFullObjectsMatchingKeysOnlyIndexQuery(e,t,r=25){Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(e.TableName),Sn.notNullOrUndefined(t),Sn.true(t.length>0);const n=await this.fullyExecuteQuery(e),a=PD.stripAllToKeysOnly(n,t);return await this.fetchAllInBatches(e.TableName,a,r)}async fetchAllInBatches(e,t,r){if(!r||r<2||r>100)throw new Error("Batch size needs to be at least 2 and no more than 100, was "+r);let n=[];const a=[];let i=Object.assign([],t);for(;i.length>0;){const t=i.slice(0,Math.min(i.length,r));i=i.slice(t.length);const n={};n[e]={Keys:t};const s={RequestItems:n,ReturnConsumedCapacity:"TOTAL"};a.push(s)}_n.debug("Created %d batches",a.length);for(let t=0;t<a.length;t++){a.length>1&&_n.info("Processing batch %d of %d",t+1,a.length);const r=a[t];let i=1;do{_n.silly("Pulling %j",r);const t=await this.awsDDB.send(new _D(r));n=n.concat(t.Responses[e]),t.UnprocessedKeys&&t.UnprocessedKeys[e]&&t.UnprocessedKeys[e].Keys.length>0&&i<15&&(_n.silly("Found %d unprocessed, waiting",t.UnprocessedKeys[e].Keys),await Ic.wait(1e3*Math.pow(2,i)),i++),r.RequestItems=t.UnprocessedKeys}while(!r.RequestItems&&r.RequestItems[e].Keys.length>0)}return n}async deleteAllInBatches(e,t,r){if(!r||r<2)throw new Error("Batch size needs to be at least 2, was "+r);let n=0;if(t&&t.length>0){let a=[];for(t.forEach((t=>{a.push({DeleteRequest:{Key:t,ReturnConsumedCapacity:"TOTAL",TableName:e}})})),_n.debug("Processing %d DeleteBatch items to %s",a.length,e);a.length>0;){const t=a.slice(0,Math.min(a.length,r));a=a.slice(t.length);const i={RequestItems:{},ReturnConsumedCapacity:"TOTAL",ReturnItemCollectionMetrics:"SIZE"};i.RequestItems[e]=t;let s=1,o=!1,d=null;for(;!o&&s<7;){try{d=await this.awsDDB.send(new xD(i))}catch(e){if(!PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;_n.info("Caught ProvisionedThroughputExceededException - retrying delete"),d={UnprocessedItems:i.RequestItems}}if(d&&d.UnprocessedItems&&d.UnprocessedItems[e]&&d.UnprocessedItems[e].length>0){const t=Math.pow(2,s);_n.warn("Found %d unprocessed items. Backing off %d seconds and trying again",d.UnprocessedItems[e].length,t),await Ic.wait(1e3*t),s++,i.RequestItems[e]=d.UnprocessedItems[e]}else o=!0}d&&d.UnprocessedItems&&d.UnprocessedItems[e]&&d.UnprocessedItems[e].length>0?(_n.error("After 6 tries there were still %d unprocessed items"),n+=t.length-d.UnprocessedItems[e].length,_n.warn("FIX Unprocessed : %j",d.UnprocessedItems)):n+=t.length,_n.debug("%d Remain, DeleteBatch Results : %j",a.length,d)}}return n}async simplePut(e,t,r=3){let n=null,a=0;const i={Item:t,ReturnConsumedCapacity:"TOTAL",TableName:e};for(;!n&&a<r;)try{n=await this.awsDDB.send(new kD(i))}catch(e){if(!PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,a);_n.debug("Exceeded write throughput for %j : Try %d of %d (Waiting %d ms)",i,a,r,e),await Ic.wait(e),a++}}return n||_n.warn("Unable to write %j to DDB after %d tries, giving up",i,r),n}async simplePutOnlyIfFieldIsNullOrUndefined(e,t,r){let n=!1;const a={Item:t,ReturnConsumedCapacity:"TOTAL",ConditionExpression:"attribute_not_exists(#fieldName) OR #fieldName = :null ",ExpressionAttributeNames:{"#fieldName":r},ExpressionAttributeValues:{":null":null},TableName:e};try{const e=await this.awsDDB.send(new kD(a));_n.silly("Wrote : %j",e),n=!0}catch(e){if(PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))_n.debug("Exceeded write throughput for %j : (Waiting 2000 ms)",a),await Ic.wait(2e3);else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;_n.debug("Failed to write %j due to null field failure"),n=!1}}return n}async simplePutWithCollisionAvoidance(e,t,r,n,a=null,i=3){Sn.true(r&&r.length>0&&r.length<3,"You must pass 1 or 2 key names");let s=null,o=0;const d={"#key0":r[0]},l={":key0":t[r[0]]};let u="#key0 <> :key0";r.length>1&&(u+=" AND #key1 <> :key1",d["#key1"]=r[1],l[":key1"]=t[r[1]]);const p={Item:t,ReturnConsumedCapacity:"TOTAL",ConditionExpression:u,ExpressionAttributeNames:d,ExpressionAttributeValues:l,TableName:e};let c=0;for(;!s&&o<i&&(!a||c<a);)try{s=await this.awsDDB.send(new kD(p))}catch(e){if(PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e)){o++;const e=1e3*Math.pow(2,o);_n.debug("Exceeded write throughput for %j : Try %d of %d (Waiting %d ms)",p,o,i,e),await Ic.wait(e)}else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;{let e=Object.assign({},p.Item);_n.info("Failed to write %j due to collision - adjusting and retrying",e),e=n(e),p.Item=e,p.ExpressionAttributeValues[":key0"]=e[r[0]],r.length>1&&(p.ExpressionAttributeValues[":key1"]=e[r[1]]),c++}}}return s&&c>0&&_n.info("After adjustment, wrote %j as %j",t,p.Item),s||_n.warn("Unable to write %j to DDB after %d provision tries and %d adjusts, giving up",p,o,c),s?p.Item:null}async simpleGet(e,t,r=3){let n=null,a=0;const i={TableName:e,Key:t};for(;!n&&a<r;)try{n=await this.awsDDB.send(new ND(i))}catch(e){if(!PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,a);_n.debug("Exceeded read throughput for %j : Try %d of %d (Waiting %d ms)",i,a,r,e),await Ic.wait(e),a++}}n||_n.warn("Unable to read %j from DDB after %d tries, giving up",i,r);return n&&n.Item?Object.assign({},n.Item):null}static objectIsErrorWithProvisionedThroughputExceededExceptionCode(e){return!!e&&!!e.code&&"ProvisionedThroughputExceededException"===e.code}async simpleGetWithCounterDecrement(e,t,r,n,a=3){let i=null,s=0;const o={TableName:e,Key:t,UpdateExpression:"set #counter = #counter-:decVal",ExpressionAttributeNames:{"#counter":r},ExpressionAttributeValues:{":decVal":1,":minVal":0},ConditionExpression:"#counter > :minVal",ReturnValues:"ALL_NEW"};let d=!1;for(;!i&&s<a&&!d;)try{i=await this.awsDDB.send(new YO(o))}catch(e){if(PD.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e)){const e=1e3*Math.pow(2,s);_n.debug("Exceeded update throughput for %j : Try %d of %d (Waiting %d ms)",o,s,a,e),await Ic.wait(e),s++}else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;_n.info("Cannot fetch requested row (%j) - the update check failed",t),d=!0}}i||d||_n.warn("Unable to update %j from DDB after %d tries, giving up",o,a);const l=i&&i.Attributes?Object.assign({},i.Attributes):null;return n&&l&&0===l[r]&&(_n.info("Delete on 0 specified, removing"),await this.simpleDelete(e,t)),l}async simpleDelete(e,t){const r={TableName:e,Key:t};return await this.awsDDB.send(new CD(r))}async atomicCounter(e,t,r,n=1){const a={TableName:e,Key:t,UpdateExpression:"SET #counterFieldName = #counterFieldName + :inc",ExpressionAttributeNames:{"#counterFieldName":r},ExpressionAttributeValues:{":inc":n},ReturnValues:"UPDATED_NEW"},i=await this.awsDDB.send(new YO(a));return xn.safeNumber(i.Attributes[r])}static cleanObject(e){if(e){const t=[];Object.keys(e).forEach((r=>{const n=e[r];""===n?t.push(r):n instanceof Object&&PD.cleanObject(n)})),_n.silly("Removing keys : %j",t),t.forEach((t=>{delete e[t]}))}}static stripToKeysOnly(e,t){let r=null;return e&&t&&t.length>0&&(r={},t.forEach((t=>{e[t]||lp.throwFormattedErr("Failed key extraction on %j - missing %s",e,t),r[t]=e[t]}))),r}static stripAllToKeysOnly(e,t){const r=e.map((e=>PD.stripToKeysOnly(e,t)));return r}}class ID{awsDDB;constructor(e){if(this.awsDDB=e,!e)throw"awsDDB may not be null"}async deleteTable(e,t=!0){Sn.notNullOrUndefined(e);const r={TableName:e};_n.debug("Deleting ddb table %s",e);const n=await this.awsDDB.send(new HO(r));return t&&(_n.debug("Table marked for delete, waiting for deletion"),await this.waitForTableDelete(e)),n}async createTable(e,t=!0,r=!1){Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(e.TableName),_n.debug("Creating new table : %j",e);await this.tableExists(e.TableName)&&(r?(_n.debug("Table %s exists and replace specified - deleting",e.TableName),await this.deleteTable(e.TableName)):lp.throwFormattedErr("Cannot create table %s - exists already and replace not specified",e.TableName));const n=await this.awsDDB.send(new zO(e));return t&&(_n.debug("Table created, awaiting ready"),await this.waitForTableReady(e.TableName)),n}async waitForTableReady(e){let t=!0,r=await this.safeDescribeTable(e);for(;r&&r.Table&&"ACTIVE"!==r.Table.TableStatus;)_n.silly("Table not ready - waiting 2 seconds"),await Ic.wait(2e3),r=await this.safeDescribeTable(e);return r||r.Table||(_n.warn("Cannot wait for %s to be ready - table does not exist",e),t=!1),t}async waitForTableDelete(e){let t=await this.safeDescribeTable(e);for(;t;)_n.silly("Table %s still exists, waiting 2 seconds (State is %s)",e,t.Table.TableStatus),await Ic.wait(2e3),t=await this.safeDescribeTable(e)}async tableExists(e){return!!await this.safeDescribeTable(e)}async safeDescribeTable(e){try{return await this.awsDDB.send(new KO({TableName:e}))}catch(e){if(e.code&&"ResourceNotFoundException"===e.code)return null;throw e}}}class OD{spots;buckets;separator;alphabet;_allSlots;constructor(e=3,t=16,r="_",n="0123456789ABCDEF"){this.spots=e,this.buckets=t,this.separator=r,this.alphabet=n,Sn.true(e>0,"Spots must be larger than 0"),Sn.true(t>1,"Buckets must be larger than 1"),Sn.notNullOrUndefined(En.trimToNull(n),"Alphabet may not be null or empty"),Sn.true(En.allUnique(n),"Alphabet must be unique"),Sn.true(En.stringContainsOnlyAlphanumeric(n),"Alphabet must be alphanumeric");const a=Math.pow(n.length,e);Sn.true(t<a,"Buckets must be less than permutations ("+t+" / "+a+")"),Sn.notNullOrUndefined(En.trimToNull(this.separator),"Separator must be nonnull and nonempty");const i=En.allPermutationsOfLength(e,n);this._allSlots=i.slice(0,t)}get allBuckets(){return Object.assign([],this._allSlots)}get randomBucket(){return this._allSlots[Math.floor(Math.random()*this.buckets)]}allSpreadValues(e){Sn.notNullOrUndefined(En.trimToNull(e),"Cannot spread null/empty value");const t=this._allSlots.map((t=>e+this.separator+t));return t}allSpreadValuesForArray(e){Sn.true(e&&e.length>0,"Cannot spread null/empty array");let t=[];return e.forEach((e=>{t=t.concat(this.allSpreadValues(e))})),t}addSpreader(e){return Sn.notNullOrUndefined(En.trimToNull(e),"Cannot spread null/empty value"),e+this.separator+this.randomBucket}extractBucket(e){Sn.notNullOrUndefined(En.trimToNull(e),"Cannot extract from null or empty value");const t=e.length-this.spots;return(t<0||e.charAt(t)!==this.separator)&&lp.throwFormattedErr("Cannot extract bucket, not created by this spreader (missing %s at location %d)",this.separator,t),e.substring(t)}removeBucket(e){Sn.notNullOrUndefined(En.trimToNull(e),"Cannot extract from null or empty value");const t=e.length-this.spots;return(t<0||e.charAt(t)!==this.separator)&&lp.throwFormattedErr("Cannot remove bucket, not created by this spreader (missing %s at location %d)",this.separator,t),e.substring(0,t)}}class DD extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,DD.prototype)}}const RD=async(e,t)=>{const r={...e,body:await NR(e.body,t)},n=TR(e,r.body),a=r.body;return ER({output:e,parsedBody:a.Errors.Error,errorCode:n})},MD=async(e,t)=>{const r={...e,body:await NR(e.body,t)},n=TR(e,r.body),a=r.body;return ER({output:e,parsedBody:a.Errors.Error,errorCode:n})},LD=async(e,t)=>{const r={...e,body:await NR(e.body,t)},n=TR(e,r.body),a=r.body;return ER({output:e,parsedBody:a.Errors.Error,errorCode:n})},FD=(e,t)=>{const r={};if(null!=e.Filters){const t=UD(e.Filters);0===e.Filters?.length&&(r.Filter=[]),Object.entries(t).forEach((([e,t])=>{const n=`Filter.${e.substring(e.indexOf(".")+1)}`;r[n]=t}))}if(null!=e.InstanceIds){const t=VD(e.InstanceIds);0===e.InstanceIds?.length&&(r.InstanceId=[]),Object.entries(t).forEach((([e,t])=>{const n=`InstanceId.${e.substring(e.indexOf(".")+1)}`;r[n]=t}))}return null!=e.DryRun&&(r.DryRun=e.DryRun),null!=e.MaxResults&&(r.MaxResults=e.MaxResults),null!=e.NextToken&&(r.NextToken=e.NextToken),r},jD=(e,t)=>{const r={};if(null!=e.Name&&(r.Name=e.Name),null!=e.Values){const t=zD(e.Values);0===e.Values?.length&&(r.Value=[]),Object.entries(t).forEach((([e,t])=>{const n=`Value.${e.substring(e.indexOf(".")+1)}`;r[n]=t}))}return r},UD=(e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=jD(t);Object.entries(e).forEach((([e,t])=>{r[`Filter.${n}.${e}`]=t})),n++}return r},VD=(e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`InstanceId.${n}`]=t,n++);return r},BD=(e,t)=>{const r={};if(null!=e.InstanceIds){const t=VD(e.InstanceIds);0===e.InstanceIds?.length&&(r.InstanceId=[]),Object.entries(t).forEach((([e,t])=>{const n=`InstanceId.${e.substring(e.indexOf(".")+1)}`;r[n]=t}))}return null!=e.AdditionalInfo&&(r.AdditionalInfo=e.AdditionalInfo),null!=e.DryRun&&(r.DryRun=e.DryRun),r},$D=(e,t)=>{const r={};if(null!=e.InstanceIds){const t=VD(e.InstanceIds);0===e.InstanceIds?.length&&(r.InstanceId=[]),Object.entries(t).forEach((([e,t])=>{const n=`InstanceId.${e.substring(e.indexOf(".")+1)}`;r[n]=t}))}return null!=e.Hibernate&&(r.Hibernate=e.Hibernate),null!=e.DryRun&&(r.DryRun=e.DryRun),null!=e.Force&&(r.Force=e.Force),r},zD=(e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`Item.${n}`]=t,n++);return r},qD=(e,t)=>{const r={};return void 0!==e.capacityReservationId&&(r.CapacityReservationId=gh(e.capacityReservationId)),void 0!==e.capacityReservationResourceGroupArn&&(r.CapacityReservationResourceGroupArn=gh(e.capacityReservationResourceGroupArn)),r},HD=(e,t)=>{const r={};return""===e.reservationSet?r.Reservations=[]:void 0!==e.reservationSet&&void 0!==e.reservationSet.item&&(r.Reservations=fR(ef(e.reservationSet.item))),void 0!==e.nextToken&&(r.NextToken=gh(e.nextToken)),r},KD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.elasticGpuId&&(r.ElasticGpuId=gh(e.elasticGpuId)),void 0!==e.elasticGpuAssociationId&&(r.ElasticGpuAssociationId=gh(e.elasticGpuAssociationId)),void 0!==e.elasticGpuAssociationState&&(r.ElasticGpuAssociationState=gh(e.elasticGpuAssociationState)),void 0!==e.elasticGpuAssociationTime&&(r.ElasticGpuAssociationTime=gh(e.elasticGpuAssociationTime)),r})(e))),GD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.elasticInferenceAcceleratorArn&&(r.ElasticInferenceAcceleratorArn=gh(e.elasticInferenceAcceleratorArn)),void 0!==e.elasticInferenceAcceleratorAssociationId&&(r.ElasticInferenceAcceleratorAssociationId=gh(e.elasticInferenceAcceleratorAssociationId)),void 0!==e.elasticInferenceAcceleratorAssociationState&&(r.ElasticInferenceAcceleratorAssociationState=gh(e.elasticInferenceAcceleratorAssociationState)),void 0!==e.elasticInferenceAcceleratorAssociationTime&&(r.ElasticInferenceAcceleratorAssociationTime=hh(Ih(e.elasticInferenceAcceleratorAssociationTime))),r})(e))),WD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.groupName&&(r.GroupName=gh(e.groupName)),void 0!==e.groupId&&(r.GroupId=gh(e.groupId)),r})(e))),ZD=(e,t)=>{const r={};return void 0!==e.amiLaunchIndex&&(r.AmiLaunchIndex=_h(e.amiLaunchIndex)),void 0!==e.imageId&&(r.ImageId=gh(e.imageId)),void 0!==e.instanceId&&(r.InstanceId=gh(e.instanceId)),void 0!==e.instanceType&&(r.InstanceType=gh(e.instanceType)),void 0!==e.kernelId&&(r.KernelId=gh(e.kernelId)),void 0!==e.keyName&&(r.KeyName=gh(e.keyName)),void 0!==e.launchTime&&(r.LaunchTime=hh(Ih(e.launchTime))),void 0!==e.monitoring&&(r.Monitoring=uR(e.monitoring)),void 0!==e.placement&&(r.Placement=pR(e.placement)),void 0!==e.platform&&(r.Platform=gh(e.platform)),void 0!==e.privateDnsName&&(r.PrivateDnsName=gh(e.privateDnsName)),void 0!==e.privateIpAddress&&(r.PrivateIpAddress=gh(e.privateIpAddress)),""===e.productCodes?r.ProductCodes=[]:void 0!==e.productCodes&&void 0!==e.productCodes.item&&(r.ProductCodes=mR(ef(e.productCodes.item))),void 0!==e.dnsName&&(r.PublicDnsName=gh(e.dnsName)),void 0!==e.ipAddress&&(r.PublicIpAddress=gh(e.ipAddress)),void 0!==e.ramdiskId&&(r.RamdiskId=gh(e.ramdiskId)),void 0!==e.instanceState&&(r.State=oR(e.instanceState)),void 0!==e.reason&&(r.StateTransitionReason=gh(e.reason)),void 0!==e.subnetId&&(r.SubnetId=gh(e.subnetId)),void 0!==e.vpcId&&(r.VpcId=gh(e.vpcId)),void 0!==e.architecture&&(r.Architecture=gh(e.architecture)),""===e.blockDeviceMapping?r.BlockDeviceMappings=[]:void 0!==e.blockDeviceMapping&&void 0!==e.blockDeviceMapping.item&&(r.BlockDeviceMappings=YD(ef(e.blockDeviceMapping.item))),void 0!==e.clientToken&&(r.ClientToken=gh(e.clientToken)),void 0!==e.ebsOptimized&&(r.EbsOptimized=nh(e.ebsOptimized)),void 0!==e.enaSupport&&(r.EnaSupport=nh(e.enaSupport)),void 0!==e.hypervisor&&(r.Hypervisor=gh(e.hypervisor)),void 0!==e.iamInstanceProfile&&(r.IamInstanceProfile=((e,t)=>{const r={};return void 0!==e.arn&&(r.Arn=gh(e.arn)),void 0!==e.id&&(r.Id=gh(e.id)),r})(e.iamInstanceProfile)),void 0!==e.instanceLifecycle&&(r.InstanceLifecycle=gh(e.instanceLifecycle)),""===e.elasticGpuAssociationSet?r.ElasticGpuAssociations=[]:void 0!==e.elasticGpuAssociationSet&&void 0!==e.elasticGpuAssociationSet.item&&(r.ElasticGpuAssociations=KD(ef(e.elasticGpuAssociationSet.item))),""===e.elasticInferenceAcceleratorAssociationSet?r.ElasticInferenceAcceleratorAssociations=[]:void 0!==e.elasticInferenceAcceleratorAssociationSet&&void 0!==e.elasticInferenceAcceleratorAssociationSet.item&&(r.ElasticInferenceAcceleratorAssociations=GD(ef(e.elasticInferenceAcceleratorAssociationSet.item))),""===e.networkInterfaceSet?r.NetworkInterfaces=[]:void 0!==e.networkInterfaceSet&&void 0!==e.networkInterfaceSet.item&&(r.NetworkInterfaces=iR(ef(e.networkInterfaceSet.item))),void 0!==e.outpostArn&&(r.OutpostArn=gh(e.outpostArn)),void 0!==e.rootDeviceName&&(r.RootDeviceName=gh(e.rootDeviceName)),void 0!==e.rootDeviceType&&(r.RootDeviceType=gh(e.rootDeviceType)),""===e.groupSet?r.SecurityGroups=[]:void 0!==e.groupSet&&void 0!==e.groupSet.item&&(r.SecurityGroups=WD(ef(e.groupSet.item))),void 0!==e.sourceDestCheck&&(r.SourceDestCheck=nh(e.sourceDestCheck)),void 0!==e.spotInstanceRequestId&&(r.SpotInstanceRequestId=gh(e.spotInstanceRequestId)),void 0!==e.sriovNetSupport&&(r.SriovNetSupport=gh(e.sriovNetSupport)),void 0!==e.stateReason&&(r.StateReason=yR(e.stateReason)),""===e.tagSet?r.Tags=[]:void 0!==e.tagSet&&void 0!==e.tagSet.item&&(r.Tags=wR(ef(e.tagSet.item))),void 0!==e.virtualizationType&&(r.VirtualizationType=gh(e.virtualizationType)),void 0!==e.cpuOptions&&(r.CpuOptions=((e,t)=>{const r={};return void 0!==e.coreCount&&(r.CoreCount=_h(e.coreCount)),void 0!==e.threadsPerCore&&(r.ThreadsPerCore=_h(e.threadsPerCore)),void 0!==e.amdSevSnp&&(r.AmdSevSnp=gh(e.amdSevSnp)),r})(e.cpuOptions)),void 0!==e.capacityReservationId&&(r.CapacityReservationId=gh(e.capacityReservationId)),void 0!==e.capacityReservationSpecification&&(r.CapacityReservationSpecification=((e,t)=>{const r={};return void 0!==e.capacityReservationPreference&&(r.CapacityReservationPreference=gh(e.capacityReservationPreference)),void 0!==e.capacityReservationTarget&&(r.CapacityReservationTarget=qD(e.capacityReservationTarget)),r})(e.capacityReservationSpecification)),void 0!==e.hibernationOptions&&(r.HibernationOptions=((e,t)=>{const r={};return void 0!==e.configured&&(r.Configured=nh(e.configured)),r})(e.hibernationOptions)),""===e.licenseSet?r.Licenses=[]:void 0!==e.licenseSet&&void 0!==e.licenseSet.item&&(r.Licenses=lR(ef(e.licenseSet.item))),void 0!==e.metadataOptions&&(r.MetadataOptions=rR(e.metadataOptions)),void 0!==e.enclaveOptions&&(r.EnclaveOptions=((e,t)=>{const r={};return void 0!==e.enabled&&(r.Enabled=nh(e.enabled)),r})(e.enclaveOptions)),void 0!==e.bootMode&&(r.BootMode=gh(e.bootMode)),void 0!==e.platformDetails&&(r.PlatformDetails=gh(e.platformDetails)),void 0!==e.usageOperation&&(r.UsageOperation=gh(e.usageOperation)),void 0!==e.usageOperationUpdateTime&&(r.UsageOperationUpdateTime=hh(Ih(e.usageOperationUpdateTime))),void 0!==e.privateDnsNameOptions&&(r.PrivateDnsNameOptions=cR(e.privateDnsNameOptions)),void 0!==e.ipv6Address&&(r.Ipv6Address=gh(e.ipv6Address)),void 0!==e.tpmSupport&&(r.TpmSupport=gh(e.tpmSupport)),void 0!==e.maintenanceOptions&&(r.MaintenanceOptions=tR(e.maintenanceOptions)),void 0!==e.currentInstanceBootMode&&(r.CurrentInstanceBootMode=gh(e.currentInstanceBootMode)),r},JD=(e,t)=>{const r={};return void 0!==e.deviceName&&(r.DeviceName=gh(e.deviceName)),void 0!==e.ebs&&(r.Ebs=((e,t)=>{const r={};return void 0!==e.attachTime&&(r.AttachTime=hh(Ih(e.attachTime))),void 0!==e.deleteOnTermination&&(r.DeleteOnTermination=nh(e.deleteOnTermination)),void 0!==e.status&&(r.Status=gh(e.status)),void 0!==e.volumeId&&(r.VolumeId=gh(e.volumeId)),r})(e.ebs)),r},YD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>JD(e))),XD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.ipv4Prefix&&(r.Ipv4Prefix=gh(e.ipv4Prefix)),r})(e))),QD=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.ipv6Address&&(r.Ipv6Address=gh(e.ipv6Address)),r})(e))),eR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.ipv6Prefix&&(r.Ipv6Prefix=gh(e.ipv6Prefix)),r})(e))),tR=(e,t)=>{const r={};return void 0!==e.autoRecovery&&(r.AutoRecovery=gh(e.autoRecovery)),r},rR=(e,t)=>{const r={};return void 0!==e.state&&(r.State=gh(e.state)),void 0!==e.httpTokens&&(r.HttpTokens=gh(e.httpTokens)),void 0!==e.httpPutResponseHopLimit&&(r.HttpPutResponseHopLimit=_h(e.httpPutResponseHopLimit)),void 0!==e.httpEndpoint&&(r.HttpEndpoint=gh(e.httpEndpoint)),void 0!==e.httpProtocolIpv6&&(r.HttpProtocolIpv6=gh(e.httpProtocolIpv6)),void 0!==e.instanceMetadataTags&&(r.InstanceMetadataTags=gh(e.instanceMetadataTags)),r},nR=(e,t)=>{const r={};return void 0!==e.carrierIp&&(r.CarrierIp=gh(e.carrierIp)),void 0!==e.customerOwnedIp&&(r.CustomerOwnedIp=gh(e.customerOwnedIp)),void 0!==e.ipOwnerId&&(r.IpOwnerId=gh(e.ipOwnerId)),void 0!==e.publicDnsName&&(r.PublicDnsName=gh(e.publicDnsName)),void 0!==e.publicIp&&(r.PublicIp=gh(e.publicIp)),r},aR=(e,t)=>{const r={};return void 0!==e.attachTime&&(r.AttachTime=hh(Ih(e.attachTime))),void 0!==e.attachmentId&&(r.AttachmentId=gh(e.attachmentId)),void 0!==e.deleteOnTermination&&(r.DeleteOnTermination=nh(e.deleteOnTermination)),void 0!==e.deviceIndex&&(r.DeviceIndex=_h(e.deviceIndex)),void 0!==e.status&&(r.Status=gh(e.status)),void 0!==e.networkCardIndex&&(r.NetworkCardIndex=_h(e.networkCardIndex)),r},iR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.association&&(r.Association=nR(e.association)),void 0!==e.attachment&&(r.Attachment=aR(e.attachment)),void 0!==e.description&&(r.Description=gh(e.description)),""===e.groupSet?r.Groups=[]:void 0!==e.groupSet&&void 0!==e.groupSet.item&&(r.Groups=WD(ef(e.groupSet.item))),""===e.ipv6AddressesSet?r.Ipv6Addresses=[]:void 0!==e.ipv6AddressesSet&&void 0!==e.ipv6AddressesSet.item&&(r.Ipv6Addresses=QD(ef(e.ipv6AddressesSet.item))),void 0!==e.macAddress&&(r.MacAddress=gh(e.macAddress)),void 0!==e.networkInterfaceId&&(r.NetworkInterfaceId=gh(e.networkInterfaceId)),void 0!==e.ownerId&&(r.OwnerId=gh(e.ownerId)),void 0!==e.privateDnsName&&(r.PrivateDnsName=gh(e.privateDnsName)),void 0!==e.privateIpAddress&&(r.PrivateIpAddress=gh(e.privateIpAddress)),""===e.privateIpAddressesSet?r.PrivateIpAddresses=[]:void 0!==e.privateIpAddressesSet&&void 0!==e.privateIpAddressesSet.item&&(r.PrivateIpAddresses=sR(ef(e.privateIpAddressesSet.item))),void 0!==e.sourceDestCheck&&(r.SourceDestCheck=nh(e.sourceDestCheck)),void 0!==e.status&&(r.Status=gh(e.status)),void 0!==e.subnetId&&(r.SubnetId=gh(e.subnetId)),void 0!==e.vpcId&&(r.VpcId=gh(e.vpcId)),void 0!==e.interfaceType&&(r.InterfaceType=gh(e.interfaceType)),""===e.ipv4PrefixSet?r.Ipv4Prefixes=[]:void 0!==e.ipv4PrefixSet&&void 0!==e.ipv4PrefixSet.item&&(r.Ipv4Prefixes=XD(ef(e.ipv4PrefixSet.item))),""===e.ipv6PrefixSet?r.Ipv6Prefixes=[]:void 0!==e.ipv6PrefixSet&&void 0!==e.ipv6PrefixSet.item&&(r.Ipv6Prefixes=eR(ef(e.ipv6PrefixSet.item))),r})(e))),sR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.association&&(r.Association=nR(e.association)),void 0!==e.primary&&(r.Primary=nh(e.primary)),void 0!==e.privateDnsName&&(r.PrivateDnsName=gh(e.privateDnsName)),void 0!==e.privateIpAddress&&(r.PrivateIpAddress=gh(e.privateIpAddress)),r})(e))),oR=(e,t)=>{const r={};return void 0!==e.code&&(r.Code=_h(e.code)),void 0!==e.name&&(r.Name=gh(e.name)),r},dR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.currentState&&(r.CurrentState=oR(e.currentState)),void 0!==e.instanceId&&(r.InstanceId=gh(e.instanceId)),void 0!==e.previousState&&(r.PreviousState=oR(e.previousState)),r})(e))),lR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.licenseConfigurationArn&&(r.LicenseConfigurationArn=gh(e.licenseConfigurationArn)),r})(e))),uR=(e,t)=>{const r={};return void 0!==e.state&&(r.State=gh(e.state)),r},pR=(e,t)=>{const r={};return void 0!==e.availabilityZone&&(r.AvailabilityZone=gh(e.availabilityZone)),void 0!==e.affinity&&(r.Affinity=gh(e.affinity)),void 0!==e.groupName&&(r.GroupName=gh(e.groupName)),void 0!==e.partitionNumber&&(r.PartitionNumber=_h(e.partitionNumber)),void 0!==e.hostId&&(r.HostId=gh(e.hostId)),void 0!==e.tenancy&&(r.Tenancy=gh(e.tenancy)),void 0!==e.spreadDomain&&(r.SpreadDomain=gh(e.spreadDomain)),void 0!==e.hostResourceGroupArn&&(r.HostResourceGroupArn=gh(e.hostResourceGroupArn)),void 0!==e.groupId&&(r.GroupId=gh(e.groupId)),r},cR=(e,t)=>{const r={};return void 0!==e.hostnameType&&(r.HostnameType=gh(e.hostnameType)),void 0!==e.enableResourceNameDnsARecord&&(r.EnableResourceNameDnsARecord=nh(e.enableResourceNameDnsARecord)),void 0!==e.enableResourceNameDnsAAAARecord&&(r.EnableResourceNameDnsAAAARecord=nh(e.enableResourceNameDnsAAAARecord)),r},mR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.productCode&&(r.ProductCodeId=gh(e.productCode)),void 0!==e.type&&(r.ProductCodeType=gh(e.type)),r})(e))),hR=(e,t)=>{const r={};return""===e.groupSet?r.Groups=[]:void 0!==e.groupSet&&void 0!==e.groupSet.item&&(r.Groups=WD(ef(e.groupSet.item))),""===e.instancesSet?r.Instances=[]:void 0!==e.instancesSet&&void 0!==e.instancesSet.item&&(r.Instances=((e,t)=>(e||[]).filter((e=>null!=e)).map((e=>ZD(e))))(ef(e.instancesSet.item))),void 0!==e.ownerId&&(r.OwnerId=gh(e.ownerId)),void 0!==e.requesterId&&(r.RequesterId=gh(e.requesterId)),void 0!==e.reservationId&&(r.ReservationId=gh(e.reservationId)),r},fR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>hR(e))),gR=(e,t)=>{const r={};return""===e.instancesSet?r.StartingInstances=[]:void 0!==e.instancesSet&&void 0!==e.instancesSet.item&&(r.StartingInstances=dR(ef(e.instancesSet.item))),r},yR=(e,t)=>{const r={};return void 0!==e.code&&(r.Code=gh(e.code)),void 0!==e.message&&(r.Message=gh(e.message)),r},vR=(e,t)=>{const r={};return""===e.instancesSet?r.StoppingInstances=[]:void 0!==e.instancesSet&&void 0!==e.instancesSet.item&&(r.StoppingInstances=dR(ef(e.instancesSet.item))),r},wR=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>((e,t)=>{const r={};return void 0!==e.key&&(r.Key=gh(e.key)),void 0!==e.value&&(r.Value=gh(e.value)),r})(e))),bR=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),SR=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),ER=Jh(DD),_R=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)},xR={"content-type":"application/x-www-form-urlencoded"},CR=(e,t)=>SR(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),NR=async(e,t)=>{const r=await CR(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},kR=e=>Object.entries(e).map((([e,t])=>Qh(e)+"="+Qh(t))).join("&"),TR=(e,t)=>void 0!==t.Errors.Error?.Code?t.Errors.Error.Code:404==e.statusCode?"NotFound":void 0;class AR extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,AR.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"EC2Client",commandName:"DescribeInstancesCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xR;let n;return n=kR({...FD(e),Action:"DescribeInstances",Version:"2016-11-15"}),_R(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return RD(e,t);const r=await CR(e.body,t);let n={};return n=HD(r),{$metadata:bR(e),...n}})(e,t)}}class PR extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,PR.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"EC2Client",commandName:"StartInstancesCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xR;let n;return n=kR({...BD(e),Action:"StartInstances",Version:"2016-11-15"}),_R(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return MD(e,t);const r=await CR(e.body,t);let n={};return n=gR(r),{$metadata:bR(e),...n}})(e,t)}}class IR extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,IR.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"EC2Client",commandName:"StopInstancesCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xR;let n;return n=kR({...$D(e),Action:"StopInstances",Version:"2016-11-15"}),_R(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return LD(e,t);const r=await CR(e.body,t);let n={};return n=vR(r),{$metadata:bR(e),...n}})(e,t)}}var OR="3.332.0";const DR="required",RR="fn",MR="argv",LR="ref",FR="isSet",jR="tree",UR="error",VR="endpoint",BR="PartitionResult",$R="getAttr",zR={[DR]:!1,type:"String"},qR={[DR]:!0,default:!1,type:"Boolean"},HR={[LR]:"Endpoint"},KR={[RR]:"booleanEquals",[MR]:[{[LR]:"UseFIPS"},!0]},GR={[RR]:"booleanEquals",[MR]:[{[LR]:"UseDualStack"},!0]},WR={},ZR={[RR]:"booleanEquals",[MR]:[!0,{[RR]:$R,[MR]:[{[LR]:BR},"supportsFIPS"]}]},JR={[LR]:BR},YR={[RR]:"booleanEquals",[MR]:[!0,{[RR]:$R,[MR]:[JR,"supportsDualStack"]}]},XR=[KR],QR=[GR],eM=[{[LR]:"Region"}],tM={version:"1.0",parameters:{Region:zR,UseDualStack:qR,UseFIPS:qR,Endpoint:zR},rules:[{conditions:[{[RR]:FR,[MR]:[HR]}],type:jR,rules:[{conditions:XR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:UR},{type:jR,rules:[{conditions:QR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:UR},{endpoint:{url:HR,properties:WR,headers:WR},type:VR}]}]},{type:jR,rules:[{conditions:[{[RR]:FR,[MR]:eM}],type:jR,rules:[{conditions:[{[RR]:"aws.partition",[MR]:eM,assign:BR}],type:jR,rules:[{conditions:[KR,GR],type:jR,rules:[{conditions:[ZR,YR],type:jR,rules:[{type:jR,rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:WR,headers:WR},type:VR}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:UR}]},{conditions:XR,type:jR,rules:[{conditions:[ZR],type:jR,rules:[{type:jR,rules:[{conditions:[{[RR]:"stringEquals",[MR]:["aws-us-gov",{[RR]:$R,[MR]:[JR,"name"]}]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:WR,headers:WR},type:VR},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:WR,headers:WR},type:VR}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:UR}]},{conditions:QR,type:jR,rules:[{conditions:[YR],type:jR,rules:[{type:jR,rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:WR,headers:WR},type:VR}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:UR}]},{type:jR,rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:WR,headers:WR},type:VR}]}]}]},{error:"Invalid Configuration: Missing Region",type:UR}]}]},rM=(e,t={})=>Wy(tM,{endpointParams:e,logger:t.logger}),nM=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??rM,logger:e?.logger??new Jm,serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:OR}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class aM extends eh{constructor(e){const t=nM(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"ec2"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class iM extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,iM.prototype)}}class sM extends iM{constructor(e){super({name:"AuthException",$fault:"client",...e}),this.name="AuthException",this.$fault="client",Object.setPrototypeOf(this,sM.prototype),this.Message=e.Message}}class oM extends iM{constructor(e){super({name:"EC2InstanceNotFoundException",$fault:"client",...e}),this.name="EC2InstanceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,oM.prototype),this.Message=e.Message}}class dM extends iM{constructor(e){super({name:"EC2InstanceStateInvalidException",$fault:"client",...e}),this.name="EC2InstanceStateInvalidException",this.$fault="client",Object.setPrototypeOf(this,dM.prototype),this.Message=e.Message}}class lM extends iM{constructor(e){super({name:"EC2InstanceUnavailableException",$fault:"server",...e}),this.name="EC2InstanceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,lM.prototype),this.Message=e.Message}}class uM extends iM{constructor(e){super({name:"InvalidArgsException",$fault:"client",...e}),this.name="InvalidArgsException",this.$fault="client",Object.setPrototypeOf(this,uM.prototype),this.Message=e.Message}}class pM extends iM{constructor(e){super({name:"ServiceException",$fault:"server",...e}),this.name="ServiceException",this.$fault="server",Object.setPrototypeOf(this,pM.prototype),this.Message=e.Message}}class cM extends iM{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,cM.prototype),this.Message=e.Message}}const mM=async(e,t)=>{const r={...e,body:await NM(e.body,t)},n=kM(e,r.body);switch(n){case"AuthException":case"com.amazonaws.ec2instanceconnect#AuthException":throw await hM(r);case"EC2InstanceNotFoundException":case"com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException":throw await fM(r);case"EC2InstanceStateInvalidException":case"com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":throw await gM(r);case"EC2InstanceUnavailableException":case"com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":throw await yM(r);case"InvalidArgsException":case"com.amazonaws.ec2instanceconnect#InvalidArgsException":throw await vM(r);case"ServiceException":case"com.amazonaws.ec2instanceconnect#ServiceException":throw await wM(r);case"ThrottlingException":case"com.amazonaws.ec2instanceconnect#ThrottlingException":throw await bM(r);default:const t=r.body;return _M({output:e,parsedBody:t,errorCode:n})}},hM=async(e,t)=>{const r=e.body,n=cf(r),a=new sM({$metadata:SM(e),...n});return Zh(a,r)},fM=async(e,t)=>{const r=e.body,n=cf(r),a=new oM({$metadata:SM(e),...n});return Zh(a,r)},gM=async(e,t)=>{const r=e.body,n=cf(r),a=new dM({$metadata:SM(e),...n});return Zh(a,r)},yM=async(e,t)=>{const r=e.body,n=cf(r),a=new lM({$metadata:SM(e),...n});return Zh(a,r)},vM=async(e,t)=>{const r=e.body,n=cf(r),a=new uM({$metadata:SM(e),...n});return Zh(a,r)},wM=async(e,t)=>{const r=e.body,n=cf(r),a=new pM({$metadata:SM(e),...n});return Zh(a,r)},bM=async(e,t)=>{const r=e.body,n=cf(r),a=new cM({$metadata:SM(e),...n});return Zh(a,r)},SM=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),EM=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),_M=Jh(iM),xM=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)};const CM=(e,t)=>EM(e,t).then((e=>e.length?JSON.parse(e):{})),NM=async(e,t)=>{const r=await CM(e,t);return r.message=r.message??r.Message,r},kM=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(a=e.headers,i="x-amzn-errortype",Object.keys(a).find((e=>e.toLowerCase()===i.toLowerCase())));var a,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class TM extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,TM.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"EC2InstanceConnectClient",commandName:"SendSSHPublicKeyCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSEC2InstanceConnectService.SendSSHPublicKey"};let n;return n=JSON.stringify(cf(e)),xM(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return mM(e,t);const r=await CM(e.body,t);let n={};return n=cf(r),{$metadata:SM(e),...n}})(e,t)}}var AM="3.332.0";const PM="required",IM="fn",OM="argv",DM="ref",RM="PartitionResult",MM="tree",LM="error",FM="endpoint",jM={[PM]:!1,type:"String"},UM={[PM]:!0,default:!1,type:"Boolean"},VM={[DM]:"Endpoint"},BM={[IM]:"booleanEquals",[OM]:[{[DM]:"UseFIPS"},!0]},$M={[IM]:"booleanEquals",[OM]:[{[DM]:"UseDualStack"},!0]},zM={},qM={[IM]:"booleanEquals",[OM]:[!0,{[IM]:"getAttr",[OM]:[{[DM]:RM},"supportsFIPS"]}]},HM={[IM]:"booleanEquals",[OM]:[!0,{[IM]:"getAttr",[OM]:[{[DM]:RM},"supportsDualStack"]}]},KM=[VM],GM=[BM],WM=[$M],ZM={version:"1.0",parameters:{Region:jM,UseDualStack:UM,UseFIPS:UM,Endpoint:jM},rules:[{conditions:[{[IM]:"aws.partition",[OM]:[{[DM]:"Region"}],assign:RM}],type:MM,rules:[{conditions:[{[IM]:"isSet",[OM]:KM},{[IM]:"parseURL",[OM]:KM,assign:"url"}],type:MM,rules:[{conditions:GM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:LM},{type:MM,rules:[{conditions:WM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:LM},{endpoint:{url:VM,properties:zM,headers:zM},type:FM}]}]},{conditions:[BM,$M],type:MM,rules:[{conditions:[qM,HM],type:MM,rules:[{endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zM,headers:zM},type:FM}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:LM}]},{conditions:GM,type:MM,rules:[{conditions:[qM],type:MM,rules:[{endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zM,headers:zM},type:FM}]},{error:"FIPS is enabled but this partition does not support FIPS",type:LM}]},{conditions:WM,type:MM,rules:[{conditions:[HM],type:MM,rules:[{endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zM,headers:zM},type:FM}]},{error:"DualStack is enabled but this partition does not support DualStack",type:LM}]},{endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dnsSuffix}",properties:zM,headers:zM},type:FM}]}]},JM=(e,t={})=>Wy(ZM,{endpointParams:e,logger:t.logger}),YM=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2018-04-02",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??JM,logger:e?.logger??new Jm,serviceId:e?.serviceId??"EC2 Instance Connect",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:AM}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class XM extends eh{constructor(e){const t=YM(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"ec2-instance-connect"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class QM{region;availabilityZone;ec2;ec2InstanceConnect;constructor(e="us-east-1",t="us-east-1a"){this.region=e,this.availabilityZone=t,this.ec2=new aM({region:e}),this.ec2InstanceConnect=new XM({region:e})}get eC2Client(){return this.ec2}get eC2InstanceConnectClient(){return this.ec2InstanceConnect}async stopInstance(e,t=0){let r=!0;try{const r={InstanceIds:[e],DryRun:!1};_n.info("About to stop instances : %j",r),await this.ec2.send(new IR(r)),_n.info("Stop instance command sent, waiting on shutdown");let n=await this.describeInstance(e);if(t>0){const r=(new Date).getTime();for(;n&&16!==n.State.Code&&(new Date).getTime()-r<t;)_n.debug("Instance status is %j - waiting for 5 seconds (up to %s)",n.State,dp.formatMsDuration(t)),await Ic.wait(5e3),n=await this.describeInstance(e)}}catch(t){_n.error("Failed to stop instance %s : %s",e,t,t),r=!1}return r}async launchInstance(e,t=0){let r=!0;try{const r={InstanceIds:[e],DryRun:!1};_n.info("About to start instance : %j",r),await this.ec2.send(new PR(r)),_n.info("Start instance command sent, waiting on startup");let n=await this.describeInstance(e);if(t>0){const r=(new Date).getTime();for(;n&&16!==n.State.Code&&(new Date).getTime()-r<t;)_n.debug("Instance status is %j - waiting for 5 seconds (up to %s)",n.State,dp.formatMsDuration(t)),await Ic.wait(5e3),n=await this.describeInstance(e)}n&&n.PublicIpAddress&&(_n.info("Instance address is %s",n.PublicIpAddress),_n.info("SSH command : ssh -i path_to_pem_file ec2-user@%s",n.PublicIpAddress))}catch(t){_n.error("Failed to start instance %s : %s",e,t,t),r=!1}return r}async describeInstance(e){const t=await this.listAllInstances([e]);return 1===t.length?t[0]:null}async listAllInstances(e=[]){let t=[];const r={NextToken:null};e&&e.length>0&&(r.InstanceIds=e);do{_n.debug("Pulling instances... (%j)",r);const e=await this.ec2.send(new AR(r));e.Reservations.forEach((e=>{t=t.concat(e.Instances)})),r.NextToken=e.NextToken}while(r.NextToken);return _n.debug("Finished pulling instances (found %d)",t.length),t}async sendPublicKeyToEc2Instance(e,t,r){const n=r||"ec2-user",a={InstanceId:e,AvailabilityZone:this.availabilityZone,InstanceOSUser:n,SSHPublicKey:t};return await this.ec2InstanceConnect.send(new TM(a))}}class eL{providers;constructor(e){this.providers=e,Sn.notNullOrUndefined(e),Sn.true(e.length>0)}async fetchConfig(e){_n.silly("CascadeEnvironmentServiceProvider fetch for %s",e);let t=null;for(let r=0;r<this.providers.length&&!t;r++)try{t=await this.providers[r].fetchConfig(e)}catch(e){_n.error("Provider %d failed - trying next : %s",r,e,e),t=null}return t}}class tL{envVarName;constructor(e){this.envVarName=e,Sn.notNullOrUndefined(e)}async fetchConfig(){_n.silly("EnvVarEnvironmentServiceProvider fetch for %s",this.envVarName);let e=null;const t=process?process.env:global||{},r=En.trimToNull(t[this.envVarName]);if(r)try{e=JSON.parse(r)}catch(e){throw _n.error("Failed to read env - null or invalid JSON : %s : %s",e,r,e),e}else lp.throwFormattedErr("Could not find env var with name : %s",this.envVarName);return e}}class rL{provider;cfg;readPromiseCache=new Map;static defaultEnvironmentServiceConfig(){return{maxRetries:3,backoffMultiplierMS:500}}constructor(e,t=rL.defaultEnvironmentServiceConfig()){this.provider=e,this.cfg=t,Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(t)}async getConfig(e){return _n.silly("EnvService:Request to read config %s",e),this.readPromiseCache.has(e)||(_n.silly("EnvService: Nothing in cache - adding"),this.readPromiseCache.set(e,this.getConfigUncached(e))),this.readPromiseCache.get(e)}async getConfigUncached(e){let t=1,r=null;for(;!r&&t<this.cfg.maxRetries;){t++,_n.silly("Attempting fetch of %s",e);try{r=await this.provider.fetchConfig(e)}catch(r){const n=t*this.cfg.backoffMultiplierMS;_n.info("Error attempting to fetch config %s (try %d of %d, waiting %s MS): %s",e,t,this.cfg.maxRetries,n,r,r),await Ic.wait(n)}}return r||lp.throwFormattedErr("Was unable to fetch config %s even after %d retries",e,this.cfg.maxRetries),r}}class nL{value;constructor(e){this.value=e,Sn.notNullOrUndefined(e)}static fromRecord(e){const t=new Map;return Object.keys(e).forEach((r=>{t.set(r,e[r])})),new nL(t)}async fetchConfig(e){_n.silly("FixedEnvironmentServiceProvider fetch for %s",e);return this.value.get(e)}}class aL{cfg;ratchet;constructor(e){this.cfg=e,Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(e.bucketName),Sn.notNullOrUndefined(e.region),Sn.true(!!e.s3Override||!!e.region,"You must set either region or S3Override");const t=e.s3Override||new TA({region:e.region});this.ratchet=new VP(t,e.bucketName)}async fetchConfig(e){const t=En.trimToEmpty(this.cfg.pathPrefix)+e+En.trimToEmpty(this.cfg.pathSuffix);_n.silly("S3EnvironmentServiceProvider:Request to read config from : %s / %s",this.cfg.bucketName,t);const r=new Pc,n=await this.ratchet.fetchCacheFileAsObject(t);return r.log(),n}}class iL extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,iL.prototype)}}class sL extends iL{constructor(e){super({name:"InternalServerError",$fault:"server",...e}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,sL.prototype),this.Message=e.Message}}class oL extends iL{constructor(e){super({name:"ParameterNotFound",$fault:"client",...e}),this.name="ParameterNotFound",this.$fault="client",Object.setPrototypeOf(this,oL.prototype)}}class dL extends iL{constructor(e){super({name:"InvalidKeyId",$fault:"client",...e}),this.name="InvalidKeyId",this.$fault="client",Object.setPrototypeOf(this,dL.prototype)}}class lL extends iL{constructor(e){super({name:"ParameterVersionNotFound",$fault:"client",...e}),this.name="ParameterVersionNotFound",this.$fault="client",Object.setPrototypeOf(this,lL.prototype)}}const uL=e=>({...e,...e.Value&&{Value:rh}}),pL=e=>({...e,...e.Parameter&&{Parameter:uL(e.Parameter)}}),cL=async(e,t)=>{const r={...e,body:await xL(e.body,t)},n=CL(e,r.body);switch(n){case"InternalServerError":case"com.amazonaws.ssm#InternalServerError":throw await mL(r);case"InvalidKeyId":case"com.amazonaws.ssm#InvalidKeyId":throw await hL(r);case"ParameterNotFound":case"com.amazonaws.ssm#ParameterNotFound":throw await fL(r);case"ParameterVersionNotFound":case"com.amazonaws.ssm#ParameterVersionNotFound":throw await gL(r);default:const t=r.body;return SL({output:e,parsedBody:t,errorCode:n})}},mL=async(e,t)=>{const r=e.body,n=cf(r),a=new sL({$metadata:wL(e),...n});return Zh(a,r)},hL=async(e,t)=>{const r=e.body,n=cf(r),a=new dL({$metadata:wL(e),...n});return Zh(a,r)},fL=async(e,t)=>{const r=e.body,n=cf(r),a=new oL({$metadata:wL(e),...n});return Zh(a,r)},gL=async(e,t)=>{const r=e.body,n=cf(r),a=new lL({$metadata:wL(e),...n});return Zh(a,r)},yL=(e,t)=>af(e,{Parameter:e=>vL(e)}),vL=(e,t)=>af(e,{ARN:gh,DataType:gh,LastModifiedDate:e=>hh(Lh(ih(e))),Name:gh,Selector:gh,SourceResult:gh,Type:gh,Value:gh,Version:dh}),wL=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),bL=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),SL=Jh(iL),EL=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)};const _L=(e,t)=>bL(e,t).then((e=>e.length?JSON.parse(e):{})),xL=async(e,t)=>{const r=await _L(e,t);return r.message=r.message??r.Message,r},CL=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(a=e.headers,i="x-amzn-errortype",Object.keys(a).find((e=>e.toLowerCase()===i.toLowerCase())));var a,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class NL extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,NL.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"SSMClient",commandName:"GetParameterCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:pL},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonSSM.GetParameter"};let n;return n=JSON.stringify(cf(e)),EL(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return cL(e,t);const r=await _L(e.body,t);let n={};return n=yL(r),{$metadata:wL(e),...n}})(e,t)}}var kL="3.332.0";const TL="required",AL="fn",PL="argv",IL="ref",OL="isSet",DL="tree",RL="error",ML="endpoint",LL="PartitionResult",FL="getAttr",jL={[TL]:!1,type:"String"},UL={[TL]:!0,default:!1,type:"Boolean"},VL={[IL]:"Endpoint"},BL={[AL]:"booleanEquals",[PL]:[{[IL]:"UseFIPS"},!0]},$L={[AL]:"booleanEquals",[PL]:[{[IL]:"UseDualStack"},!0]},zL={},qL={[AL]:"booleanEquals",[PL]:[!0,{[AL]:FL,[PL]:[{[IL]:LL},"supportsFIPS"]}]},HL={[IL]:LL},KL={[AL]:"booleanEquals",[PL]:[!0,{[AL]:FL,[PL]:[HL,"supportsDualStack"]}]},GL=[BL],WL=[$L],ZL=[{[IL]:"Region"}],JL={version:"1.0",parameters:{Region:jL,UseDualStack:UL,UseFIPS:UL,Endpoint:jL},rules:[{conditions:[{[AL]:OL,[PL]:[VL]}],type:DL,rules:[{conditions:GL,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:RL},{type:DL,rules:[{conditions:WL,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:RL},{endpoint:{url:VL,properties:zL,headers:zL},type:ML}]}]},{type:DL,rules:[{conditions:[{[AL]:OL,[PL]:ZL}],type:DL,rules:[{conditions:[{[AL]:"aws.partition",[PL]:ZL,assign:LL}],type:DL,rules:[{conditions:[BL,$L],type:DL,rules:[{conditions:[qL,KL],type:DL,rules:[{type:DL,rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zL,headers:zL},type:ML}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:RL}]},{conditions:GL,type:DL,rules:[{conditions:[qL],type:DL,rules:[{type:DL,rules:[{conditions:[{[AL]:"stringEquals",[PL]:["aws-us-gov",{[AL]:FL,[PL]:[HL,"name"]}]}],endpoint:{url:"https://ssm.{Region}.amazonaws.com",properties:zL,headers:zL},type:ML},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zL,headers:zL},type:ML}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:RL}]},{conditions:WL,type:DL,rules:[{conditions:[KL],type:DL,rules:[{type:DL,rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zL,headers:zL},type:ML}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:RL}]},{type:DL,rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dnsSuffix}",properties:zL,headers:zL},type:ML}]}]}]},{error:"Invalid Configuration: Missing Region",type:RL}]}]},YL=(e,t={})=>Wy(JL,{endpointParams:e,logger:t.logger}),XL=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2014-11-06",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??YL,logger:e?.logger??new Jm,serviceId:e?.serviceId??"SSM",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:kL}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class QL extends eh{constructor(e){const t=XL(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"ssm"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class eF{region;ssmEncrypted;ssm;constructor(e="us-east-1",t=!0){this.region=e,this.ssmEncrypted=t,Sn.notNullOrUndefined(e),Sn.notNullOrUndefined(t),this.ssm=new QL({region:this.region})}async fetchConfig(e){_n.silly("SsmEnvironmentServiceProvider fetch for %s",e);const t={Name:e,WithDecryption:this.ssmEncrypted};let r=null,n=null;try{const e=await this.ssm.send(new NL(t));n=En.trimToNull(e?.Parameter?.Value)}catch(t){const r=t.code||"";if(-1===r.toLowerCase().indexOf("throttlingexception")){if(-1!==r.toLowerCase().indexOf("parameternotfound")){const t=_n.warn("AWS could not find parameter %s - are you using the right AWS key?",e);throw new Error(t)}throw _n.error("Final environment fetch error (cannot retry) : %s",t,t),t}_n.warn("Throttled while trying to read parameters - waiting 1 second before allowing retry"),await Ic.wait(1e3)}if(n)try{r=JSON.parse(n)}catch(e){throw _n.error("Failed to read env - null or invalid JSON : %s : %s",e,n,e),e}else lp.throwFormattedErr("Could not find system parameter with name : %s in this account",e);return r}}class tF{tableName;dynamoRatchet;constructor(e,t){this.tableName=e,this.dynamoRatchet=t}async checkCode(e,t,r){const n={code:e,context:t},a=await this.dynamoRatchet.simpleGet(this.tableName,n),i=a&&a.expiresEpochMS>Date.now();return i&&r&&await this.dynamoRatchet.simpleDelete(this.tableName,n),i}async storeCode(e){const t=await this.dynamoRatchet.simplePut(this.tableName,e);return t&&t.ConsumedCapacity.CapacityUnits>0}async createTableIfMissing(e){return null}}class rF{provider;constructor(e){this.provider=e}static generateCode(e){Sn.notNullOrUndefined(e,"params"),Sn.notNullOrUndefined(e.context,"params.context"),Sn.notNullOrUndefined(e.length,"params.length"),Sn.notNullOrUndefined(e.alphabet,"params.alphabet");let t="";for(let r=0;r<e.length;r++)t+=e.alphabet.charAt(Math.floor(e.alphabet.length*Math.random()));return{code:t,context:e.context,tags:e.tags,expiresEpochMS:Date.now()+1e3*e.timeToLiveSeconds}}async createNewCode(e){const t=rF.generateCode(e);return await this.provider.storeCode(t)?t:null}async checkCode(e,t,r){return await this.provider.checkCode(En.trimToEmpty(e),En.trimToEmpty(t),r)}}class nF{s3CacheRatchet;keyName;constructor(e,t){this.s3CacheRatchet=e,this.keyName=t,Sn.notNullOrUndefined(e,"s3CacheRatchet"),Sn.notNullUndefinedOrOnlyWhitespaceString(e.getDefaultBucket(),"s3CacheRatchet.defaultBucket"),Sn.notNullUndefinedOrOnlyWhitespaceString(t,"keyName")}async fetchFile(){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyName)||{data:[],lastModifiedEpochMS:Date.now()}}async updateFile(e){const t={data:e||[],lastModifiedEpochMS:Date.now()};t.data=t.data.filter((e=>e.expiresEpochMS>Date.now())),_n.info("Updating code file to %s codes",t.data.length);return await this.s3CacheRatchet.writeObjectToCacheFile(this.keyName,t)}async checkCode(e,t,r){const n=await this.fetchFile(),a=n.data.find((r=>r?.code?.toUpperCase()===e?.toUpperCase()&&r?.context?.toUpperCase()===t?.toUpperCase()));if(a&&(r||a.expiresEpochMS<Date.now())){_n.info("Stripping used/expired code from the database");const e=n.data.filter((e=>e!=a));await this.updateFile(e)}return!!a&&a.expiresEpochMS>Date.now()}async storeCode(e){const t=await this.fetchFile();t.data.push(e);return!!await this.updateFile(t.data)}}class aF{constructor(){}static applySetProfileEnvironmentalVariable(e){process.env?En.trimToNull(e)?process.env.AWS_PROFILE=e:lp.throwFormattedErr("Cannot set profile to null/empty string"):lp.throwFormattedErr("Cannot set profile - not in a node environment - process missing")}}class iF{static isValidCronEvent(e){return e&&"aws.events"==e.source&&e.resources&&e.resources.length>0}static isValidSnsEvent(e){return e&&e.Records&&e.Records.length>0&&"aws:sns"==e.Records[0].EventSource}static isValidDynamoDBEvent(e){return e&&e.Records&&e.Records.length>0&&"aws:dynamodb"==e.Records[0].eventSource}static isValidS3Event(e){return e&&e.Records&&e.Records.length>0&&"aws:s3"==e.Records[0].eventSource}static isValidApiGatewayV2WithRequestContextEvent(e){return e&&e.rawPath&&e.requestContext&&e.routeKey}static isValidApiGatewayEvent(e){return e&&e.httpMethod&&e.path&&e.requestContext}static isValidApiGatewayAuthorizerEvent(e){return e&&e.authorizationToken&&e.methodArn}static isSingleCronEvent(e){return this.isValidCronEvent(e)&&iF.isSingleEntryEvent(e,"resources")}static isSingleSnsEvent(e){return this.isValidSnsEvent(e)&&iF.isSingleEntryEvent(e)}static isSingleDynamoDBEvent(e){return this.isValidDynamoDBEvent(e)&&iF.isSingleEntryEvent(e)}static isSingleS3Event(e){return this.isValidS3Event(e)&&iF.isSingleEntryEvent(e)}static isSingleEntryEvent(e,t="Records"){return e&&e[t]&&e[t]instanceof Array&&1===e[t].length}}class sF{static isValidCronEvent(e){return iF.isValidCronEvent(e)}static isValidSnsEvent(e){return iF.isValidSnsEvent(e)}static isValidDynamoDBEvent(e){return iF.isValidDynamoDBEvent(e)}static isValidS3Event(e){return iF.isValidS3Event(e)}static isValidApiGatewayV2WithRequestContextEvent(e){return iF.isValidApiGatewayV2WithRequestContextEvent(e)}static isValidApiGatewayEvent(e){return iF.isValidApiGatewayEvent(e)}static isValidApiGatewayAuthorizerEvent(e){return iF.isValidApiGatewayAuthorizerEvent(e)}}const oF=/^\/(hostedzone|change|delegationset)\//;const dF={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},lF=e=>({applyToStack:e=>{e.add((e=>async t=>{const{ChangeBatch:r}=t.input,n=[];for(const e of r.Changes){const{AliasTarget:t}=e.ResourceRecordSet;t?n.push({...e,ResourceRecordSet:{...e.ResourceRecordSet,AliasTarget:{...t,HostedZoneId:t.HostedZoneId.replace(oF,"")}}}):n.push(e)}return e({...t,input:{...t.input,ChangeBatch:{...r,Changes:n}}})}),dF)}}),uF=["DelegationSetId","HostedZoneId","Id"];const pF={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},cF=e=>({applyToStack:e=>{e.add((e=>async t=>{const r={...t.input};for(const e of uF){const t=r[e];t&&(r[e]=t.replace(oF,""))}return e({...t,input:r})}),pF)}});class mF extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,mF.prototype)}}class hF extends mF{constructor(e){super({name:"InvalidInput",$fault:"client",...e}),this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,hF.prototype)}}class fF extends mF{constructor(e){super({name:"NoSuchHostedZone",$fault:"client",...e}),this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,fF.prototype)}}class gF extends mF{constructor(e){super({name:"PriorRequestNotComplete",$fault:"client",...e}),this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,gF.prototype)}}class yF extends mF{constructor(e){super({name:"InvalidChangeBatch",$fault:"client",...e}),this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,yF.prototype),this.messages=e.messages}}class vF extends mF{constructor(e){super({name:"NoSuchHealthCheck",$fault:"client",...e}),this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,vF.prototype)}}class wF extends mF{constructor(e){super({name:"NoSuchChange",$fault:"client",...e}),this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,wF.prototype)}}const bF=async(e,t)=>{const r={...e,body:await jF(e.body,t)},n=UF(e,r.body);switch(n){case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await _F(r);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await xF(r);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await NF(r);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await kF(r);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await TF(r);default:const t=r.body;return EF({output:e,parsedBody:t.Error,errorCode:n})}},SF=async(e,t)=>{const r={...e,body:await jF(e.body,t)},n=UF(e,r.body);switch(n){case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await xF(r);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await CF(r);default:const t=r.body;return EF({output:e,parsedBody:t.Error,errorCode:n})}},EF=Jh(mF),_F=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message)),""===n.messages?r.messages=[]:void 0!==n.messages&&void 0!==n.messages.Message&&(r.messages=RF(ef(n.messages.Message)));const a=new yF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},xF=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message));const a=new hF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},CF=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message));const a=new wF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},NF=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message));const a=new vF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},kF=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message));const a=new fF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},TF=async(e,t)=>{const r=nf({}),n=e.body.Error;void 0!==n.message&&(r.message=gh(n.message));const a=new gF({$metadata:MF(e),...r});return Zh(a,e.body.Error)},AF=(e,t)=>{const r=new V_("ChangeBatch");if(null!=e.Comment){const t=V_.of("ResourceDescription",e.Comment).withName("Comment");r.addChildNode(t)}if(null!=e.Changes){const t=PF(e.Changes),n=new V_("Changes");t.map((e=>{n.addChildNode(e)})),r.addChildNode(n)}return r},PF=(e,t)=>e.filter((e=>null!=e)).map((e=>{const t=((e,t)=>{const r=new V_("Change");if(null!=e.Action){const t=V_.of("ChangeAction",e.Action).withName("Action");r.addChildNode(t)}if(null!=e.ResourceRecordSet){const t=OF(e.ResourceRecordSet).withName("ResourceRecordSet");r.addChildNode(t)}return r})(e);return t.withName("Change")})),IF=(e,t)=>e.filter((e=>null!=e)).map((e=>{const t=((e,t)=>{const r=new V_("ResourceRecord");if(null!=e.Value){const t=V_.of("RData",e.Value).withName("Value");r.addChildNode(t)}return r})(e);return t.withName("ResourceRecord")})),OF=(e,t)=>{const r=new V_("ResourceRecordSet");if(null!=e.Name){const t=V_.of("DNSName",e.Name).withName("Name");r.addChildNode(t)}if(null!=e.Type){const t=V_.of("RRType",e.Type).withName("Type");r.addChildNode(t)}if(null!=e.SetIdentifier){const t=V_.of("ResourceRecordSetIdentifier",e.SetIdentifier).withName("SetIdentifier");r.addChildNode(t)}if(null!=e.Weight){const t=V_.of("ResourceRecordSetWeight",String(e.Weight)).withName("Weight");r.addChildNode(t)}if(null!=e.Region){const t=V_.of("ResourceRecordSetRegion",e.Region).withName("Region");r.addChildNode(t)}if(null!=e.GeoLocation){const t=((e,t)=>{const r=new V_("GeoLocation");if(null!=e.ContinentCode){const t=V_.of("GeoLocationContinentCode",e.ContinentCode).withName("ContinentCode");r.addChildNode(t)}if(null!=e.CountryCode){const t=V_.of("GeoLocationCountryCode",e.CountryCode).withName("CountryCode");r.addChildNode(t)}if(null!=e.SubdivisionCode){const t=V_.of("GeoLocationSubdivisionCode",e.SubdivisionCode).withName("SubdivisionCode");r.addChildNode(t)}return r})(e.GeoLocation).withName("GeoLocation");r.addChildNode(t)}if(null!=e.Failover){const t=V_.of("ResourceRecordSetFailover",e.Failover).withName("Failover");r.addChildNode(t)}if(null!=e.MultiValueAnswer){const t=V_.of("ResourceRecordSetMultiValueAnswer",String(e.MultiValueAnswer)).withName("MultiValueAnswer");r.addChildNode(t)}if(null!=e.TTL){const t=V_.of("TTL",String(e.TTL)).withName("TTL");r.addChildNode(t)}if(null!=e.ResourceRecords){const t=IF(e.ResourceRecords),n=new V_("ResourceRecords");t.map((e=>{n.addChildNode(e)})),r.addChildNode(n)}if(null!=e.AliasTarget){const t=((e,t)=>{const r=new V_("AliasTarget");if(null!=e.HostedZoneId){const t=V_.of("ResourceId",e.HostedZoneId).withName("HostedZoneId");r.addChildNode(t)}if(null!=e.DNSName){const t=V_.of("DNSName",e.DNSName).withName("DNSName");r.addChildNode(t)}if(null!=e.EvaluateTargetHealth){const t=V_.of("AliasHealthEnabled",String(e.EvaluateTargetHealth)).withName("EvaluateTargetHealth");r.addChildNode(t)}return r})(e.AliasTarget).withName("AliasTarget");r.addChildNode(t)}if(null!=e.HealthCheckId){const t=V_.of("HealthCheckId",e.HealthCheckId).withName("HealthCheckId");r.addChildNode(t)}if(null!=e.TrafficPolicyInstanceId){const t=V_.of("TrafficPolicyInstanceId",e.TrafficPolicyInstanceId).withName("TrafficPolicyInstanceId");r.addChildNode(t)}if(null!=e.CidrRoutingConfig){const t=((e,t)=>{const r=new V_("CidrRoutingConfig");if(null!=e.CollectionId){const t=V_.of("UUID",e.CollectionId).withName("CollectionId");r.addChildNode(t)}if(null!=e.LocationName){const t=V_.of("CidrLocationNameDefaultAllowed",e.LocationName).withName("LocationName");r.addChildNode(t)}return r})(e.CidrRoutingConfig).withName("CidrRoutingConfig");r.addChildNode(t)}return r},DF=(e,t)=>{const r={};return void 0!==e.Id&&(r.Id=gh(e.Id)),void 0!==e.Status&&(r.Status=gh(e.Status)),void 0!==e.SubmittedAt&&(r.SubmittedAt=hh(Ih(e.SubmittedAt))),void 0!==e.Comment&&(r.Comment=gh(e.Comment)),r},RF=(e,t)=>(e||[]).filter((e=>null!=e)).map((e=>gh(e))),MF=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),LF=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),FF=(e,t)=>LF(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),jF=async(e,t)=>{const r=await FF(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},UF=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class VF extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,VF.getEndpointParameterInstructions())),this.middlewareStack.use(lF()),this.middlewareStack.use(cF());const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"Route53Client",commandName:"ChangeResourceRecordSetsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint();let s,o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/2013-04-01/hostedzone/{HostedZoneId}/rrset`;o=uf(o,e,"HostedZoneId",(()=>e.HostedZoneId),"{HostedZoneId}",!1),s='<?xml version="1.0" encoding="UTF-8"?>';const d=new V_("ChangeResourceRecordSetsRequest");if(d.addAttribute("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),void 0!==e.ChangeBatch){const t=AF(e.ChangeBatch).withName("ChangeBatch");d.addChildNode(t)}return s+=d.toString(),new Sf({protocol:n,hostname:r,port:a,method:"POST",headers:{"content-type":"application/xml"},path:o,body:s})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return bF(e,t);const r=nf({$metadata:MF(e)}),n=hh(fh(await FF(e.body,t)),"body");return void 0!==n.ChangeInfo&&(r.ChangeInfo=DF(n.ChangeInfo)),r})(e,t)}}class BF extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,BF.getEndpointParameterInstructions())),this.middlewareStack.use(cF());const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"Route53Client",commandName:"GetChangeCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:a,path:i}=await t.endpoint();let s=`${i?.endsWith("/")?i.slice(0,-1):i||""}/2013-04-01/change/{Id}`;return s=uf(s,e,"Id",(()=>e.Id),"{Id}",!1),new Sf({protocol:n,hostname:r,port:a,method:"GET",headers:{},path:s,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return SF(e,t);const r=nf({$metadata:MF(e)}),n=hh(fh(await FF(e.body,t)),"body");return void 0!==n.ChangeInfo&&(r.ChangeInfo=DF(n.ChangeInfo)),r})(e,t)}}const $F=async(e,t)=>{let r;try{const n=await e.send(new BF(t));r=n;try{if("INSYNC"===(()=>n.ChangeInfo.Status)())return{state:k_.SUCCESS,reason:r}}catch(e){}}catch(e){r=e}return{state:k_.RETRY,reason:r}},zF=async(e,t)=>(e=>{if(e.state===k_.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}if(e.state===k_.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}if(e.state!==k_.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e})(await O_({minDelay:30,maxDelay:120,...e},t,$F));class qF{route53;hostedZoneId;constructor(e,t){if(this.route53=e,this.hostedZoneId=t,!this.route53)throw"route53 may not be null"}get route53Client(){return this.route53}async changeCnameRecordTarget(e,t,r=this.hostedZoneId,n=600){_n.info("Updating %s to point to %s",e,t);try{const a={ChangeBatch:{Changes:[{Action:"UPSERT",ResourceRecordSet:{Name:e,ResourceRecords:[{Value:t}],TTL:n,Type:"CNAME"}}]},HostedZoneId:r},i=await this.route53.send(new VF(a));_n.debug("Updated domain result: %j",i);const s={Id:i.ChangeInfo.Id},o=await zF({client:this.route53,maxWaitTime:300},s);if(_n.debug("Wait responsed: %j",o),o.state===k_.SUCCESS)return _n.info("Updated %s to point to %s",e,r),!0}catch(r){_n.warn("Error update CName for %s with value %s: %j",e,t,r)}return _n.info("Cannot update %s to point to %s",e,t),!1}}class HF{dynamo;tableName;constructor(e,t){this.dynamo=e,this.tableName=t,Sn.notNullOrUndefined(this.dynamo),Sn.notNullOrUndefined(this.tableName)}async readParameter(e,t){_n.silly("Reading %s / %s from underlying db",e,t);const r={groupId:e,paramKey:t};return await this.dynamo.simpleGet(this.tableName,r)}async readAllParametersForGroup(e){const t={TableName:this.tableName,KeyConditionExpression:"groupId = :groupId",ExpressionAttributeValues:{":groupId":e}};return await this.dynamo.fullyExecuteQuery(t)}async writeParameter(e){return!!await this.dynamo.simplePut(this.tableName,e)}}class KF{wrapped;options={globalTTL:1,separator:".",prefix:"RuntimeEnv-",suffix:""};constructor(e,t){this.wrapped=e,Sn.notNullOrUndefined(this.wrapped,"wrapped"),Sn.notNullOrUndefined(global?.process?.env,'"process" not found - this only runs in Node, not the browser'),t&&(this.options=t),Sn.notNullOrUndefined(this.options.globalTTL,"this.options.globalTTL"),Sn.notNullOrUndefined(this.options.separator,"this.options.separator"),Sn.true(this.options.globalTTL>0,"this.options.globalTTL must be larger than 0")}generateName(e,t){return En.trimToEmpty(this.options.prefix)+e+En.trimToEmpty(this.options.separator)+t+En.trimToEmpty(this.options.suffix)}async readParameter(e,t){const r=En.trimToNull(process.env[this.generateName(e,t)]);r&&!En.canParseAsJson(r)&&lp.throwFormattedErr("Cannot parse ENV override (%s / %s) as JSON - did you forget the quotes on a string?",e,t);return r?{groupId:e,paramKey:t,paramValue:r,ttlSeconds:this.options.globalTTL}:await this.wrapped.readParameter(e,t)}async readAllParametersForGroup(e){return this.wrapped.readAllParametersForGroup(e)}async writeParameter(e){return this.wrapped.writeParameter(e)}}class GF{data;constructor(e=Promise.resolve({})){this.data=e}async readParameter(e,t){_n.silly("Reading %s / %s from underlying db",e,t);return(await this.data)[e+"::"+t]}async readAllParametersForGroup(e){const t=await this.data,r=[];return Object.keys(t).forEach((n=>{n.startsWith(e)&&r.push(t[n])})),r}async writeParameter(e){return(await this.data)[e.groupId+"::"+e.paramKey]=e,!0}}class WF{provider;cache=new Map;constructor(e){this.provider=e,Sn.notNullOrUndefined(this.provider)}async fetchParameter(e,t,r=null,n=!1){_n.debug("Reading parameter %s / %s / Force : %s",e,t,n);const a=this.cache.get(WF.toCacheStoreKey(e,t));let i=null;const s=(new Date).getTime();if(!n&&a){const r=a.ttlSeconds?s-1e3*a.ttlSeconds:0;a.storedEpochMS>r&&(_n.silly("Fetched %s / %s from cache",e,t),i=JSON.parse(a.paramValue))}if(!i){const r=await this.readUnderlyingEntry(e,t);r&&(this.addToCache(r),i=JSON.parse(r.paramValue))}return i=i||r,i}async fetchAllParametersForGroup(e){const t=await this.readUnderlyingEntries(e),r=new Map;return t.forEach((e=>{r.set(e.paramKey,JSON.parse(e.paramValue)),this.addToCache(e)})),r}async readUnderlyingEntry(e,t){return this.provider.readParameter(e,t)}async readUnderlyingEntries(e){return this.provider.readAllParametersForGroup(e)}async storeParameter(e,t,r,n){const a={groupId:e,paramKey:t,paramValue:JSON.stringify(r),ttlSeconds:n};return await this.provider.writeParameter(a),this.provider.readParameter(e,t)}static toCacheStoreKey(e,t){return e+":::"+t}addToCache(e){if(e){const t=(new Date).getTime(),r=Object.assign({storedEpochMS:t},e);this.cache.set(WF.toCacheStoreKey(e.groupId,e.paramKey),r)}}clearCache(){_n.debug("Clearing runtime parameter cache"),this.cache=new Map}}class ZF{s3;tmpFolder;cacheTimeoutSeconds;static DEFAULT_CACHE_TIMEOUT_SEC=604800;currentlyLoading=new Map;constructor(e,t,r=ZF.DEFAULT_CACHE_TIMEOUT_SEC){this.s3=e,this.tmpFolder=t,this.cacheTimeoutSeconds=r,Sn.notNullOrUndefined(e,"s3"),Sn.notNullOrUndefined(En.trimToNull(t)),Sn.true(m.existsSync(t),"folder must exist : "+t)}async getFileString(e){const t=await this.getFileBuffer(e);return t?t.toString():null}keyToLocalCachePath(e){const t=this.generateCacheHash(this.s3.getDefaultBucket()+"/"+e);return h.join(this.tmpFolder,t)}removeCacheFileForKey(e){const t=this.keyToLocalCachePath(e);_n.info("Removing cache file for %s : %s",e,t),m.existsSync(t)?m.unlinkSync(t):_n.debug("Skipping delete for %s - does not exist",t)}async getFileBuffer(e){const t=this.keyToLocalCachePath(e);let r=null;if(r=this.getCacheFileAsBuffer(t),r)_n.info("Found cache file for s3://%s/%s. Local path %s",this.s3.getDefaultBucket(),e,t);else{_n.info("No cache. Downloading File s3://%s/%s to %s",this.s3.getDefaultBucket(),e,t);try{let n=this.currentlyLoading.get(e);n?_n.info("Already running - wait for that"):(_n.info("Not running - start"),n=this.updateLocalCacheFile(e,t),this.currentlyLoading.set(e,n)),r=await n,this.currentlyLoading.delete(e)}catch(t){_n.warn("File %s/%s does not exist. Err code: %s",this.s3.getDefaultBucket(),e,t)}}return r}async updateLocalCacheFile(e,t){const r=await this.s3.fetchCacheFileAsBuffer(e);return r&&r.length>0&&(_n.info("Saving %d bytes to disk for cache",r.length),m.writeFileSync(t,r)),r}getCacheFileAsString(e){const t=this.getCacheFileAsBuffer(e);return t?t.toString():null}getCacheFileAsBuffer(e){if(!m.existsSync(e))return null;try{const t=m.statSync(e),r=(new Date).getTime();if((r-t.ctimeMs)/1e3>=this.cacheTimeoutSeconds)return null;return m.readFileSync(e)}catch(e){_n.warn("Error getting s3 cache file %s",e)}return null}generateCacheHash(e){return i.createHash("md5").update(e).digest("hex")}}var JF={exports:{}};
3
- /**
4
- * @license
5
- * Lodash <https://lodash.com/>
6
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
- * Released under MIT license <https://lodash.com/license>
8
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10
- */!function(e,t){(function(){var r,n="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,o=32,d=64,l=128,u=256,p=1/0,c=9007199254740991,m=NaN,h=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",o],["partialRight",d],["rearg",u]],g="[object Arguments]",y="[object Array]",v="[object Boolean]",w="[object Date]",b="[object Error]",S="[object Function]",E="[object GeneratorFunction]",_="[object Map]",x="[object Number]",C="[object Object]",N="[object Promise]",k="[object RegExp]",T="[object Set]",A="[object String]",P="[object Symbol]",I="[object WeakMap]",O="[object ArrayBuffer]",D="[object DataView]",R="[object Float32Array]",M="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",B="[object Uint16Array]",$="[object Uint32Array]",z=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,W=RegExp(K.source),Z=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(re.source),ae=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ne="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Te="\\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",Ae="['’]",Pe="["+Ee+"]",Ie="["+Te+"]",Oe="["+_e+"]",De="\\d+",Re="["+xe+"]",Me="["+Ce+"]",Le="[^"+Ee+Te+De+xe+Ce+Ne+"]",Fe="\\ud83c[\\udffb-\\udfff]",je="[^"+Ee+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ne+"]",$e="\\u200d",ze="(?:"+Me+"|"+Le+")",qe="(?:"+Be+"|"+Le+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Oe+"|"+Fe+")"+"?",We="["+ke+"]?",Ze=We+Ge+("(?:"+$e+"(?:"+[je,Ue,Ve].join("|")+")"+We+Ge+")*"),Je="(?:"+[Re,Ue,Ve].join("|")+")"+Ze,Ye="(?:"+[je+Oe+"?",Oe,Ue,Ve,Pe].join("|")+")",Xe=RegExp(Ae,"g"),Qe=RegExp(Oe,"g"),et=RegExp(Fe+"(?="+Fe+")|"+Ye+Ze,"g"),tt=RegExp([Be+"?"+Me+"+"+He+"(?="+[Ie,Be,"$"].join("|")+")",qe+"+"+Ke+"(?="+[Ie,Be+ze,"$"].join("|")+")",Be+"?"+ze+"+"+He,Be+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),rt=RegExp("["+$e+Ee+_e+ke+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],it=-1,st={};st[R]=st[M]=st[L]=st[F]=st[j]=st[U]=st[V]=st[B]=st[$]=!0,st[g]=st[y]=st[O]=st[v]=st[D]=st[w]=st[b]=st[S]=st[_]=st[x]=st[C]=st[k]=st[T]=st[A]=st[I]=!1;var ot={};ot[g]=ot[y]=ot[O]=ot[D]=ot[v]=ot[w]=ot[R]=ot[M]=ot[L]=ot[F]=ot[j]=ot[_]=ot[x]=ot[C]=ot[k]=ot[T]=ot[A]=ot[P]=ot[U]=ot[V]=ot[B]=ot[$]=!0,ot[b]=ot[S]=ot[I]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,pt="object"==typeof tv&&tv&&tv.Object===Object&&tv,ct="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ct||Function("return this")(),ht=t&&!t.nodeType&&t,ft=ht&&e&&!e.nodeType&&e,gt=ft&&ft.exports===ht,yt=gt&&pt.process,vt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,St=vt&&vt.isMap,Et=vt&&vt.isRegExp,_t=vt&&vt.isSet,xt=vt&&vt.isTypedArray;function Ct(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Nt(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a<i;){var s=e[a];t(n,s,r(s),e)}return n}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Tt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function At(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Pt(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}function It(e,t){return!!(null==e?0:e.length)&&Bt(e,t,0)>-1}function Ot(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}function Dt(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}function Rt(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function Mt(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function Lt(e,t,r,n){var a=null==e?0:e.length;for(n&&a&&(r=e[--a]);a--;)r=t(r,e[a],a,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var jt=Ht("length");function Ut(e,t,r){var n;return r(e,(function(e,r,a){if(t(e,r,a))return n=r,!1})),n}function Vt(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Bt(e,t,r){return t==t?function(e,t,r){var n=r-1,a=e.length;for(;++n<a;)if(e[n]===t)return n;return-1}(e,t,r):Vt(e,zt,r)}function $t(e,t,r,n){for(var a=r-1,i=e.length;++a<i;)if(n(e[a],t))return a;return-1}function zt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Wt(e,t)/r:m}function Ht(e){return function(t){return null==t?r:t[e]}}function Kt(e){return function(t){return null==e?r:e[t]}}function Gt(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r}function Wt(e,t){for(var n,a=-1,i=e.length;++a<i;){var s=t(e[a]);s!==r&&(n=n===r?s:n+s)}return n}function Zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Jt(e){return e?e.slice(0,mr(e)+1).replace(ae,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function er(e,t){for(var r=-1,n=e.length;++r<n&&Bt(t,e[r],0)>-1;);return r}function tr(e,t){for(var r=e.length;r--&&Bt(t,e[r],0)>-1;);return r}var rr=Kt({"À":"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"}),nr=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+dt[e]}function ir(e){return rt.test(e)}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function or(e,t){return function(r){return e(t(r))}}function dr(e,t){for(var r=-1,n=e.length,a=0,s=[];++r<n;){var o=e[r];o!==t&&o!==i||(e[r]=i,s[a++]=r)}return s}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function pr(e){return ir(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):jt(e)}function cr(e){return ir(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hr=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var fr=function e(t){var ie,Ee=(t=null==t?mt:fr.defaults(mt.Object(),t,fr.pick(mt,at))).Array,_e=t.Date,xe=t.Error,Ce=t.Function,Ne=t.Math,ke=t.Object,Te=t.RegExp,Ae=t.String,Pe=t.TypeError,Ie=Ee.prototype,Oe=Ce.prototype,De=ke.prototype,Re=t["__core-js_shared__"],Me=Oe.toString,Le=De.hasOwnProperty,Fe=0,je=(ie=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Ue=De.toString,Ve=Me.call(ke),Be=mt._,$e=Te("^"+Me.call(Le).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=gt?t.Buffer:r,qe=t.Symbol,He=t.Uint8Array,Ke=ze?ze.allocUnsafe:r,Ge=or(ke.getPrototypeOf,ke),We=ke.create,Ze=De.propertyIsEnumerable,Je=Ie.splice,Ye=qe?qe.isConcatSpreadable:r,et=qe?qe.iterator:r,rt=qe?qe.toStringTag:r,dt=function(){try{var e=ci(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),pt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ct=_e&&_e.now!==mt.Date.now&&_e.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ne.ceil,yt=Ne.floor,vt=ke.getOwnPropertySymbols,jt=ze?ze.isBuffer:r,Kt=t.isFinite,gr=Ie.join,yr=or(ke.keys,ke),vr=Ne.max,wr=Ne.min,br=_e.now,Sr=t.parseInt,Er=Ne.random,_r=Ie.reverse,xr=ci(t,"DataView"),Cr=ci(t,"Map"),Nr=ci(t,"Promise"),kr=ci(t,"Set"),Tr=ci(t,"WeakMap"),Ar=ci(ke,"create"),Pr=Tr&&new Tr,Ir={},Or=ji(xr),Dr=ji(Cr),Rr=ji(Nr),Mr=ji(kr),Lr=ji(Tr),Fr=qe?qe.prototype:r,jr=Fr?Fr.valueOf:r,Ur=Fr?Fr.toString:r;function Vr(e){if(to(e)&&!qs(e)&&!(e instanceof qr)){if(e instanceof zr)return e;if(Le.call(e,"__wrapped__"))return Ui(e)}return new zr(e)}var Br=function(){function e(){}return function(t){if(!eo(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function $r(){}function zr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function qr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gr;++t<r;)this.add(e[t])}function Zr(e){var t=this.__data__=new Kr(e);this.size=t.size}function Jr(e,t){var r=qs(e),n=!r&&zs(e),a=!r&&!n&&Ws(e),i=!r&&!n&&!a&&uo(e),s=r||n||a||i,o=s?Zt(e.length,Ae):[],d=o.length;for(var l in e)!t&&!Le.call(e,l)||s&&("length"==l||a&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wi(l,d))||o.push(l);return o}function Yr(e){var t=e.length;return t?e[Zn(0,t-1)]:r}function Xr(e,t){return Mi(Pa(e),dn(t,0,e.length))}function Qr(e){return Mi(Pa(e))}function en(e,t,n){(n!==r&&!Vs(e[t],n)||n===r&&!(t in e))&&sn(e,t,n)}function tn(e,t,n){var a=e[t];Le.call(e,t)&&Vs(a,n)&&(n!==r||t in e)||sn(e,t,n)}function rn(e,t){for(var r=e.length;r--;)if(Vs(e[r][0],t))return r;return-1}function nn(e,t,r,n){return mn(e,(function(e,a,i){t(n,e,r(e),i)})),n}function an(e,t){return e&&Ia(t,Oo(t),e)}function sn(e,t,r){"__proto__"==t&&dt?dt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function on(e,t){for(var n=-1,a=t.length,i=Ee(a),s=null==e;++n<a;)i[n]=s?r:ko(e,t[n]);return i}function dn(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ln(e,t,n,a,i,s){var o,d=1&t,l=2&t,u=4&t;if(n&&(o=i?n(e,a,i,s):n(e)),o!==r)return o;if(!eo(e))return e;var p=qs(e);if(p){if(o=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!d)return Pa(e,o)}else{var c=fi(e),m=c==S||c==E;if(Ws(e))return xa(e,d);if(c==C||c==g||m&&!i){if(o=l||m?{}:yi(e),!d)return l?function(e,t){return Ia(e,hi(e),t)}(e,function(e,t){return e&&Ia(t,Do(t),e)}(o,e)):function(e,t){return Ia(e,mi(e),t)}(e,an(o,e))}else{if(!ot[c])return i?e:{};o=function(e,t,r){var n=e.constructor;switch(t){case O:return Ca(e);case v:case w:return new n(+e);case D:return function(e,t){var r=t?Ca(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case M:case L:case F:case j:case U:case V:case B:case $:return Na(e,r);case _:return new n;case x:case A:return new n(e);case k:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new n;case P:return a=e,jr?ke(jr.call(a)):{}}var a}(e,c,d)}}s||(s=new Zr);var h=s.get(e);if(h)return h;s.set(e,o),so(e)?e.forEach((function(r){o.add(ln(r,t,n,r,e,s))})):ro(e)&&e.forEach((function(r,a){o.set(a,ln(r,t,n,a,e,s))}));var f=p?r:(u?l?ii:ai:l?Do:Oo)(e);return kt(f||e,(function(r,a){f&&(r=e[a=r]),tn(o,a,ln(r,t,n,a,e,s))})),o}function un(e,t,n){var a=n.length;if(null==e)return!a;for(e=ke(e);a--;){var i=n[a],s=t[i],o=e[i];if(o===r&&!(i in e)||!s(o))return!1}return!0}function pn(e,t,a){if("function"!=typeof e)throw new Pe(n);return Ii((function(){e.apply(r,a)}),t)}function cn(e,t,r,n){var a=-1,i=It,s=!0,o=e.length,d=[],l=t.length;if(!o)return d;r&&(t=Dt(t,Yt(r))),n?(i=Ot,s=!1):t.length>=200&&(i=Qt,s=!1,t=new Wr(t));e:for(;++a<o;){var u=e[a],p=null==r?u:r(u);if(u=n||0!==u?u:0,s&&p==p){for(var c=l;c--;)if(t[c]===p)continue e;d.push(u)}else i(t,p,n)||d.push(u)}return d}Vr.templateSettings={escape:J,evaluate:Y,interpolate:X,variable:"",imports:{_:Vr}},Vr.prototype=$r.prototype,Vr.prototype.constructor=Vr,zr.prototype=Br($r.prototype),zr.prototype.constructor=zr,qr.prototype=Br($r.prototype),qr.prototype.constructor=qr,Hr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Hr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hr.prototype.get=function(e){var t=this.__data__;if(Ar){var n=t[e];return n===a?r:n}return Le.call(t,e)?t[e]:r},Hr.prototype.has=function(e){var t=this.__data__;return Ar?t[e]!==r:Le.call(t,e)},Hr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ar&&t===r?a:t,this},Kr.prototype.clear=function(){this.__data__=[],this.size=0},Kr.prototype.delete=function(e){var t=this.__data__,r=rn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Je.call(t,r,1),--this.size,!0)},Kr.prototype.get=function(e){var t=this.__data__,n=rn(t,e);return n<0?r:t[n][1]},Kr.prototype.has=function(e){return rn(this.__data__,e)>-1},Kr.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Cr||Kr),string:new Hr}},Gr.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return ui(this,e).get(e)},Gr.prototype.has=function(e){return ui(this,e).has(e)},Gr.prototype.set=function(e,t){var r=ui(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Wr.prototype.add=Wr.prototype.push=function(e){return this.__data__.set(e,a),this},Wr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Kr){var n=r.__data__;if(!Cr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var mn=Ra(Sn),hn=Ra(En,!0);function fn(e,t){var r=!0;return mn(e,(function(e,n,a){return r=!!t(e,n,a)})),r}function gn(e,t,n){for(var a=-1,i=e.length;++a<i;){var s=e[a],o=t(s);if(null!=o&&(d===r?o==o&&!lo(o):n(o,d)))var d=o,l=s}return l}function yn(e,t){var r=[];return mn(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function vn(e,t,r,n,a){var i=-1,s=e.length;for(r||(r=vi),a||(a=[]);++i<s;){var o=e[i];t>0&&r(o)?t>1?vn(o,t-1,r,n,a):Rt(a,o):n||(a[a.length]=o)}return a}var wn=Ma(),bn=Ma(!0);function Sn(e,t){return e&&wn(e,t,Oo)}function En(e,t){return e&&bn(e,t,Oo)}function _n(e,t){return Pt(t,(function(t){return Ys(e[t])}))}function xn(e,t){for(var n=0,a=(t=ba(t,e)).length;null!=e&&n<a;)e=e[Fi(t[n++])];return n&&n==a?e:r}function Cn(e,t,r){var n=t(e);return qs(e)?n:Rt(n,r(e))}function Nn(e){return null==e?e===r?"[object Undefined]":"[object Null]":rt&&rt in ke(e)?function(e){var t=Le.call(e,rt),n=e[rt];try{e[rt]=r;var a=!0}catch(e){}var i=Ue.call(e);a&&(t?e[rt]=n:delete e[rt]);return i}(e):function(e){return Ue.call(e)}(e)}function kn(e,t){return e>t}function Tn(e,t){return null!=e&&Le.call(e,t)}function An(e,t){return null!=e&&t in ke(e)}function Pn(e,t,n){for(var a=n?Ot:It,i=e[0].length,s=e.length,o=s,d=Ee(s),l=1/0,u=[];o--;){var p=e[o];o&&t&&(p=Dt(p,Yt(t))),l=wr(p.length,l),d[o]=!n&&(t||i>=120&&p.length>=120)?new Wr(o&&p):r}p=e[0];var c=-1,m=d[0];e:for(;++c<i&&u.length<l;){var h=p[c],f=t?t(h):h;if(h=n||0!==h?h:0,!(m?Qt(m,f):a(u,f,n))){for(o=s;--o;){var g=d[o];if(!(g?Qt(g,f):a(e[o],f,n)))continue e}m&&m.push(f),u.push(h)}}return u}function In(e,t,n){var a=null==(e=Ti(e,t=ba(t,e)))?e:e[Fi(Ji(t))];return null==a?r:Ct(a,e,n)}function On(e){return to(e)&&Nn(e)==g}function Dn(e,t,n,a,i){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,a,i,s){var o=qs(e),d=qs(t),l=o?y:fi(e),u=d?y:fi(t),p=(l=l==g?C:l)==C,c=(u=u==g?C:u)==C,m=l==u;if(m&&Ws(e)){if(!Ws(t))return!1;o=!0,p=!1}if(m&&!p)return s||(s=new Zr),o||uo(e)?ri(e,t,n,a,i,s):function(e,t,r,n,a,i,s){switch(r){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case v:case w:case x:return Vs(+e,+t);case b:return e.name==t.name&&e.message==t.message;case k:case A:return e==t+"";case _:var o=sr;case T:var d=1&n;if(o||(o=lr),e.size!=t.size&&!d)return!1;var l=s.get(e);if(l)return l==t;n|=2,s.set(e,t);var u=ri(o(e),o(t),n,a,i,s);return s.delete(e),u;case P:if(jr)return jr.call(e)==jr.call(t)}return!1}(e,t,l,n,a,i,s);if(!(1&n)){var h=p&&Le.call(e,"__wrapped__"),f=c&&Le.call(t,"__wrapped__");if(h||f){var S=h?e.value():e,E=f?t.value():t;return s||(s=new Zr),i(S,E,n,a,s)}}if(!m)return!1;return s||(s=new Zr),function(e,t,n,a,i,s){var o=1&n,d=ai(e),l=d.length,u=ai(t),p=u.length;if(l!=p&&!o)return!1;var c=l;for(;c--;){var m=d[c];if(!(o?m in t:Le.call(t,m)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);var y=o;for(;++c<l;){var v=e[m=d[c]],w=t[m];if(a)var b=o?a(w,v,m,t,e,s):a(v,w,m,e,t,s);if(!(b===r?v===w||i(v,w,n,a,s):b)){g=!1;break}y||(y="constructor"==m)}if(g&&!y){var S=e.constructor,E=t.constructor;S==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,a,i,s)}(e,t,n,a,Dn,i))}function Rn(e,t,n,a){var i=n.length,s=i,o=!a;if(null==e)return!s;for(e=ke(e);i--;){var d=n[i];if(o&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++i<s;){var l=(d=n[i])[0],u=e[l],p=d[1];if(o&&d[2]){if(u===r&&!(l in e))return!1}else{var c=new Zr;if(a)var m=a(u,p,l,e,t,c);if(!(m===r?Dn(p,u,3,a,c):m))return!1}}return!0}function Mn(e){return!(!eo(e)||(t=e,je&&je in t))&&(Ys(e)?$e:ge).test(ji(e));var t}function Ln(e){return"function"==typeof e?e:null==e?ad:"object"==typeof e?qs(e)?$n(e[0],e[1]):Bn(e):md(e)}function Fn(e){if(!xi(e))return yr(e);var t=[];for(var r in ke(e))Le.call(e,r)&&"constructor"!=r&&t.push(r);return t}function jn(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var r in ke(e))t.push(r);return t}(e);var t=xi(e),r=[];for(var n in e)("constructor"!=n||!t&&Le.call(e,n))&&r.push(n);return r}function Un(e,t){return e<t}function Vn(e,t){var r=-1,n=Ks(e)?Ee(e.length):[];return mn(e,(function(e,a,i){n[++r]=t(e,a,i)})),n}function Bn(e){var t=pi(e);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(r){return r===e||Rn(r,e,t)}}function $n(e,t){return Si(e)&&Ci(t)?Ni(Fi(e),t):function(n){var a=ko(n,e);return a===r&&a===t?To(n,e):Dn(t,a,3)}}function zn(e,t,n,a,i){e!==t&&wn(t,(function(s,o){if(i||(i=new Zr),eo(s))!function(e,t,n,a,i,s,o){var d=Ai(e,n),l=Ai(t,n),u=o.get(l);if(u)return void en(e,n,u);var p=s?s(d,l,n+"",e,t,o):r,c=p===r;if(c){var m=qs(l),h=!m&&Ws(l),f=!m&&!h&&uo(l);p=l,m||h||f?qs(d)?p=d:Gs(d)?p=Pa(d):h?(c=!1,p=xa(l,!0)):f?(c=!1,p=Na(l,!0)):p=[]:ao(l)||zs(l)?(p=d,zs(d)?p=vo(d):eo(d)&&!Ys(d)||(p=yi(l))):c=!1}c&&(o.set(l,p),i(p,l,a,s,o),o.delete(l));en(e,n,p)}(e,t,o,n,zn,a,i);else{var d=a?a(Ai(e,o),s,o+"",e,t,i):r;d===r&&(d=s),en(e,o,d)}}),Do)}function qn(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:r}function Hn(e,t,r){t=t.length?Dt(t,(function(e){return qs(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[ad];var n=-1;t=Dt(t,Yt(li()));var a=Vn(e,(function(e,r,a){var i=Dt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(a,(function(e,t){return function(e,t,r){var n=-1,a=e.criteria,i=t.criteria,s=a.length,o=r.length;for(;++n<s;){var d=ka(a[n],i[n]);if(d)return n>=o?d:d*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Kn(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var s=t[n],o=xn(e,s);r(o,s)&&ea(i,ba(s,e),o)}return i}function Gn(e,t,r,n){var a=n?$t:Bt,i=-1,s=t.length,o=e;for(e===t&&(t=Pa(t)),r&&(o=Dt(e,Yt(r)));++i<s;)for(var d=0,l=t[i],u=r?r(l):l;(d=a(o,u,d,n))>-1;)o!==e&&Je.call(o,d,1),Je.call(e,d,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==i){var i=a;wi(a)?Je.call(e,a,1):ca(e,a)}}return e}function Zn(e,t){return e+yt(Er()*(t-e+1))}function Jn(e,t){var r="";if(!e||t<1||t>c)return r;do{t%2&&(r+=e),(t=yt(t/2))&&(e+=e)}while(t);return r}function Yn(e,t){return Oi(ki(e,t,ad),e+"")}function Xn(e){return Yr(Bo(e))}function Qn(e,t){var r=Bo(e);return Mi(r,dn(t,0,r.length))}function ea(e,t,n,a){if(!eo(e))return e;for(var i=-1,s=(t=ba(t,e)).length,o=s-1,d=e;null!=d&&++i<s;){var l=Fi(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var p=d[l];(u=a?a(p,l,d):r)===r&&(u=eo(p)?p:wi(t[i+1])?[]:{})}tn(d,l,u),d=d[l]}return e}var ta=Pr?function(e,t){return Pr.set(e,t),e}:ad,ra=dt?function(e,t){return dt(e,"toString",{configurable:!0,enumerable:!1,value:td(t),writable:!0})}:ad;function na(e){return Mi(Bo(e))}function aa(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Ee(a);++n<a;)i[n]=e[n+t];return i}function ia(e,t){var r;return mn(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r}function sa(e,t,r){var n=0,a=null==e?n:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;n<a;){var i=n+a>>>1,s=e[i];null!==s&&!lo(s)&&(r?s<=t:s<t)?n=i+1:a=i}return a}return oa(e,t,ad,r)}function oa(e,t,n,a){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,d=null===t,l=lo(t),u=t===r;i<s;){var p=yt((i+s)/2),c=n(e[p]),m=c!==r,h=null===c,f=c==c,g=lo(c);if(o)var y=a||f;else y=u?f&&(a||m):d?f&&m&&(a||!h):l?f&&m&&!h&&(a||!g):!h&&!g&&(a?c<=t:c<t);y?i=p+1:s=p}return wr(s,4294967294)}function da(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var s=e[r],o=t?t(s):s;if(!r||!Vs(o,d)){var d=o;i[a++]=0===s?0:s}}return i}function la(e){return"number"==typeof e?e:lo(e)?m:+e}function ua(e){if("string"==typeof e)return e;if(qs(e))return Dt(e,ua)+"";if(lo(e))return Ur?Ur.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function pa(e,t,r){var n=-1,a=It,i=e.length,s=!0,o=[],d=o;if(r)s=!1,a=Ot;else if(i>=200){var l=t?null:Ja(e);if(l)return lr(l);s=!1,a=Qt,d=new Wr}else d=t?[]:o;e:for(;++n<i;){var u=e[n],p=t?t(u):u;if(u=r||0!==u?u:0,s&&p==p){for(var c=d.length;c--;)if(d[c]===p)continue e;t&&d.push(p),o.push(u)}else a(d,p,r)||(d!==o&&d.push(p),o.push(u))}return o}function ca(e,t){return null==(e=Ti(e,t=ba(t,e)))||delete e[Fi(Ji(t))]}function ma(e,t,r,n){return ea(e,t,r(xn(e,t)),n)}function ha(e,t,r,n){for(var a=e.length,i=n?a:-1;(n?i--:++i<a)&&t(e[i],i,e););return r?aa(e,n?0:i,n?i+1:a):aa(e,n?i+1:0,n?a:i)}function fa(e,t){var r=e;return r instanceof qr&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),r)}function ga(e,t,r){var n=e.length;if(n<2)return n?pa(e[0]):[];for(var a=-1,i=Ee(n);++a<n;)for(var s=e[a],o=-1;++o<n;)o!=a&&(i[a]=cn(i[a]||s,e[o],t,r));return pa(vn(i,1),t,r)}function ya(e,t,n){for(var a=-1,i=e.length,s=t.length,o={};++a<i;){var d=a<s?t[a]:r;n(o,e[a],d)}return o}function va(e){return Gs(e)?e:[]}function wa(e){return"function"==typeof e?e:ad}function ba(e,t){return qs(e)?e:Si(e,t)?[e]:Li(wo(e))}var Sa=Yn;function Ea(e,t,n){var a=e.length;return n=n===r?a:n,!t&&n>=a?e:aa(e,t,n)}var _a=pt||function(e){return mt.clearTimeout(e)};function xa(e,t){if(t)return e.slice();var r=e.length,n=Ke?Ke(r):new e.constructor(r);return e.copy(n),n}function Ca(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Na(e,t){var r=t?Ca(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ka(e,t){if(e!==t){var n=e!==r,a=null===e,i=e==e,s=lo(e),o=t!==r,d=null===t,l=t==t,u=lo(t);if(!d&&!u&&!s&&e>t||s&&o&&l&&!d&&!u||a&&o&&l||!n&&l||!i)return 1;if(!a&&!s&&!u&&e<t||u&&n&&i&&!a&&!s||d&&n&&i||!o&&i||!l)return-1}return 0}function Ta(e,t,r,n){for(var a=-1,i=e.length,s=r.length,o=-1,d=t.length,l=vr(i-s,0),u=Ee(d+l),p=!n;++o<d;)u[o]=t[o];for(;++a<s;)(p||a<i)&&(u[r[a]]=e[a]);for(;l--;)u[o++]=e[a++];return u}function Aa(e,t,r,n){for(var a=-1,i=e.length,s=-1,o=r.length,d=-1,l=t.length,u=vr(i-o,0),p=Ee(u+l),c=!n;++a<u;)p[a]=e[a];for(var m=a;++d<l;)p[m+d]=t[d];for(;++s<o;)(c||a<i)&&(p[m+r[s]]=e[a++]);return p}function Pa(e,t){var r=-1,n=e.length;for(t||(t=Ee(n));++r<n;)t[r]=e[r];return t}function Ia(e,t,n,a){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var d=t[s],l=a?a(n[d],e[d],d,n,e):r;l===r&&(l=e[d]),i?sn(n,d,l):tn(n,d,l)}return n}function Oa(e,t){return function(r,n){var a=qs(r)?Nt:nn,i=t?t():{};return a(r,e,li(n,2),i)}}function Da(e){return Yn((function(t,n){var a=-1,i=n.length,s=i>1?n[i-1]:r,o=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,o&&bi(n[0],n[1],o)&&(s=i<3?r:s,i=1),t=ke(t);++a<i;){var d=n[a];d&&e(t,d,a,s)}return t}))}function Ra(e,t){return function(r,n){if(null==r)return r;if(!Ks(r))return e(r,n);for(var a=r.length,i=t?a:-1,s=ke(r);(t?i--:++i<a)&&!1!==n(s[i],i,s););return r}}function Ma(e){return function(t,r,n){for(var a=-1,i=ke(t),s=n(t),o=s.length;o--;){var d=s[e?o:++a];if(!1===r(i[d],d,i))break}return t}}function La(e){return function(t){var n=ir(t=wo(t))?cr(t):r,a=n?n[0]:t.charAt(0),i=n?Ea(n,1).join(""):t.slice(1);return a[e]()+i}}function Fa(e){return function(t){return Mt(Xo(qo(t).replace(Xe,"")),e,"")}}function ja(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Br(e.prototype),n=e.apply(r,t);return eo(n)?n:r}}function Ua(e){return function(t,n,a){var i=ke(t);if(!Ks(t)){var s=li(n,3);t=Oo(t),n=function(e){return s(i[e],e,i)}}var o=e(t,n,a);return o>-1?i[s?t[o]:o]:r}}function Va(e){return ni((function(t){var a=t.length,i=a,s=zr.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new Pe(n);if(s&&!d&&"wrapper"==oi(o))var d=new zr([],!0)}for(i=d?i:a;++i<a;){var l=oi(o=t[i]),u="wrapper"==l?si(o):r;d=u&&Ei(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?d[oi(u[0])].apply(d,u[3]):1==o.length&&Ei(o)?d[l]():d.thru(o)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&qs(r))return d.plant(r).value();for(var n=0,i=a?t[n].apply(this,e):r;++n<a;)i=t[n].call(this,i);return i}}))}function Ba(e,t,n,a,i,s,o,d,u,p){var c=t&l,m=1&t,h=2&t,f=24&t,g=512&t,y=h?r:ja(e);return function l(){for(var v=arguments.length,w=Ee(v),b=v;b--;)w[b]=arguments[b];if(f)var S=di(l),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,S);if(a&&(w=Ta(w,a,i,f)),s&&(w=Aa(w,s,o,f)),v-=E,f&&v<p){var _=dr(w,S);return Wa(e,t,Ba,l.placeholder,n,w,_,d,u,p-v)}var x=m?n:this,C=h?x[e]:e;return v=w.length,d?w=function(e,t){var n=e.length,a=wr(t.length,n),i=Pa(e);for(;a--;){var s=t[a];e[a]=wi(s,n)?i[s]:r}return e}(w,d):g&&v>1&&w.reverse(),c&&u<v&&(w.length=u),this&&this!==mt&&this instanceof l&&(C=y||ja(C)),C.apply(x,w)}}function $a(e,t){return function(r,n){return function(e,t,r,n){return Sn(e,(function(e,a,i){t(n,r(e),a,i)})),n}(r,e,t(n),{})}}function za(e,t){return function(n,a){var i;if(n===r&&a===r)return t;if(n!==r&&(i=n),a!==r){if(i===r)return a;"string"==typeof n||"string"==typeof a?(n=ua(n),a=ua(a)):(n=la(n),a=la(a)),i=e(n,a)}return i}}function qa(e){return ni((function(t){return t=Dt(t,Yt(li())),Yn((function(r){var n=this;return e(t,(function(e){return Ct(e,n,r)}))}))}))}function Ha(e,t){var n=(t=t===r?" ":ua(t)).length;if(n<2)return n?Jn(t,e):t;var a=Jn(t,ft(e/pr(t)));return ir(t)?Ea(cr(a),0,e).join(""):a.slice(0,e)}function Ka(e){return function(t,n,a){return a&&"number"!=typeof a&&bi(t,n,a)&&(n=a=r),t=ho(t),n===r?(n=t,t=0):n=ho(n),function(e,t,r,n){for(var a=-1,i=vr(ft((t-e)/(r||1)),0),s=Ee(i);i--;)s[n?i:++a]=e,e+=r;return s}(t,n,a=a===r?t<n?1:-1:ho(a),e)}}function Ga(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yo(t),r=yo(r)),e(t,r)}}function Wa(e,t,n,a,i,s,l,u,p,c){var m=8&t;t|=m?o:d,4&(t&=~(m?d:o))||(t&=-4);var h=[e,t,i,m?s:r,m?l:r,m?r:s,m?r:l,u,p,c],f=n.apply(r,h);return Ei(e)&&Pi(f,h),f.placeholder=a,Di(f,e,t)}function Za(e){var t=Ne[e];return function(e,r){if(e=yo(e),(r=null==r?0:wr(fo(r),292))&&Kt(e)){var n=(wo(e)+"e").split("e");return+((n=(wo(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Ja=kr&&1/lr(new kr([,-0]))[1]==p?function(e){return new kr(e)}:ld;function Ya(e){return function(t){var r=fi(t);return r==_?sr(t):r==T?ur(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xa(e,t,a,p,c,m,h,f){var g=2&t;if(!g&&"function"!=typeof e)throw new Pe(n);var y=p?p.length:0;if(y||(t&=-97,p=c=r),h=h===r?h:vr(fo(h),0),f=f===r?f:fo(f),y-=c?c.length:0,t&d){var v=p,w=c;p=c=r}var b=g?r:si(e),S=[e,t,a,p,c,v,w,m,h,f];if(b&&function(e,t){var r=e[1],n=t[1],a=r|n,s=a<131,o=n==l&&8==r||n==l&&r==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!s&&!o)return e;1&n&&(e[2]=t[2],a|=1&r?0:4);var d=t[3];if(d){var p=e[3];e[3]=p?Ta(p,d,t[4]):d,e[4]=p?dr(e[3],i):t[4]}(d=t[5])&&(p=e[5],e[5]=p?Aa(p,d,t[6]):d,e[6]=p?dr(e[5],i):t[6]);(d=t[7])&&(e[7]=d);n&l&&(e[8]=null==e[8]?t[8]:wr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(S,b),e=S[0],t=S[1],a=S[2],p=S[3],c=S[4],!(f=S[9]=S[9]===r?g?0:e.length:vr(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==s?function(e,t,n){var a=ja(e);return function i(){for(var s=arguments.length,o=Ee(s),d=s,l=di(i);d--;)o[d]=arguments[d];var u=s<3&&o[0]!==l&&o[s-1]!==l?[]:dr(o,l);return(s-=u.length)<n?Wa(e,t,Ba,i.placeholder,r,o,u,r,r,n-s):Ct(this&&this!==mt&&this instanceof i?a:e,this,o)}}(e,t,f):t!=o&&33!=t||c.length?Ba.apply(r,S):function(e,t,r,n){var a=1&t,i=ja(e);return function t(){for(var s=-1,o=arguments.length,d=-1,l=n.length,u=Ee(l+o),p=this&&this!==mt&&this instanceof t?i:e;++d<l;)u[d]=n[d];for(;o--;)u[d++]=arguments[++s];return Ct(p,a?r:this,u)}}(e,t,a,p);else var E=function(e,t,r){var n=1&t,a=ja(e);return function t(){return(this&&this!==mt&&this instanceof t?a:e).apply(n?r:this,arguments)}}(e,t,a);return Di((b?ta:Pi)(E,S),e,t)}function Qa(e,t,n,a){return e===r||Vs(e,De[n])&&!Le.call(a,n)?t:e}function ei(e,t,n,a,i,s){return eo(e)&&eo(t)&&(s.set(t,e),zn(e,t,r,ei,s),s.delete(t)),e}function ti(e){return ao(e)?r:e}function ri(e,t,n,a,i,s){var o=1&n,d=e.length,l=t.length;if(d!=l&&!(o&&l>d))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var c=-1,m=!0,h=2&n?new Wr:r;for(s.set(e,t),s.set(t,e);++c<d;){var f=e[c],g=t[c];if(a)var y=o?a(g,f,c,t,e,s):a(f,g,c,e,t,s);if(y!==r){if(y)continue;m=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Qt(h,t)&&(f===e||i(f,e,n,a,s)))return h.push(t)}))){m=!1;break}}else if(f!==g&&!i(f,g,n,a,s)){m=!1;break}}return s.delete(e),s.delete(t),m}function ni(e){return Oi(ki(e,r,Hi),e+"")}function ai(e){return Cn(e,Oo,mi)}function ii(e){return Cn(e,Do,hi)}var si=Pr?function(e){return Pr.get(e)}:ld;function oi(e){for(var t=e.name+"",r=Ir[t],n=Le.call(Ir,t)?r.length:0;n--;){var a=r[n],i=a.func;if(null==i||i==e)return a.name}return t}function di(e){return(Le.call(Vr,"placeholder")?Vr:e).placeholder}function li(){var e=Vr.iteratee||id;return e=e===id?Ln:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function pi(e){for(var t=Oo(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ci(a)]}return t}function ci(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Mn(n)?n:r}var mi=vt?function(e){return null==e?[]:(e=ke(e),Pt(vt(e),(function(t){return Ze.call(e,t)})))}:gd,hi=vt?function(e){for(var t=[];e;)Rt(t,mi(e)),e=Ge(e);return t}:gd,fi=Nn;function gi(e,t,r){for(var n=-1,a=(t=ba(t,e)).length,i=!1;++n<a;){var s=Fi(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Qs(a)&&wi(s,a)&&(qs(e)||zs(e))}function yi(e){return"function"!=typeof e.constructor||xi(e)?{}:Br(Ge(e))}function vi(e){return qs(e)||zs(e)||!!(Ye&&e&&e[Ye])}function wi(e,t){var r=typeof e;return!!(t=null==t?c:t)&&("number"==r||"symbol"!=r&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,r){if(!eo(r))return!1;var n=typeof t;return!!("number"==n?Ks(r)&&wi(t,r.length):"string"==n&&t in r)&&Vs(r[t],e)}function Si(e,t){if(qs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!lo(e))||(ee.test(e)||!Q.test(e)||null!=t&&e in ke(t))}function Ei(e){var t=oi(e),r=Vr[t];if("function"!=typeof r||!(t in qr.prototype))return!1;if(e===r)return!0;var n=si(r);return!!n&&e===n[0]}(xr&&fi(new xr(new ArrayBuffer(1)))!=D||Cr&&fi(new Cr)!=_||Nr&&fi(Nr.resolve())!=N||kr&&fi(new kr)!=T||Tr&&fi(new Tr)!=I)&&(fi=function(e){var t=Nn(e),n=t==C?e.constructor:r,a=n?ji(n):"";if(a)switch(a){case Or:return D;case Dr:return _;case Rr:return N;case Mr:return T;case Lr:return I}return t});var _i=Re?Ys:yd;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ci(e){return e==e&&!eo(e)}function Ni(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in ke(n)))}}function ki(e,t,n){return t=vr(t===r?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=vr(r.length-t,0),s=Ee(i);++a<i;)s[a]=r[t+a];a=-1;for(var o=Ee(t+1);++a<t;)o[a]=r[a];return o[t]=n(s),Ct(e,this,o)}}function Ti(e,t){return t.length<2?e:xn(e,aa(t,0,-1))}function Ai(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ri(ta),Ii=ht||function(e,t){return mt.setTimeout(e,t)},Oi=Ri(ra);function Di(e,t,r){var n=t+"";return Oi(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return kt(f,(function(r){var n="_."+r[0];t&r[1]&&!It(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(de):[]}(n),r)))}function Ri(e){var t=0,n=0;return function(){var a=br(),i=16-(a-n);if(n=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Mi(e,t){var n=-1,a=e.length,i=a-1;for(t=t===r?a:t;++n<t;){var s=Zn(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Li=function(e){var t=Rs(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,r,n,a){t.push(n?a.replace(pe,"$1"):r||e)})),t}));function Fi(e){if("string"==typeof e||lo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof qr)return e.clone();var t=new zr(e.__wrapped__,e.__chain__);return t.__actions__=Pa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vi=Yn((function(e,t){return Gs(e)?cn(e,vn(t,1,Gs,!0)):[]})),Bi=Yn((function(e,t){var n=Ji(t);return Gs(n)&&(n=r),Gs(e)?cn(e,vn(t,1,Gs,!0),li(n,2)):[]})),$i=Yn((function(e,t){var n=Ji(t);return Gs(n)&&(n=r),Gs(e)?cn(e,vn(t,1,Gs,!0),r,n):[]}));function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:fo(r);return a<0&&(a=vr(n+a,0)),Vt(e,li(t,3),a)}function qi(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=a-1;return n!==r&&(i=fo(n),i=n<0?vr(a+i,0):wr(i,a-1)),Vt(e,li(t,3),i,!0)}function Hi(e){return(null==e?0:e.length)?vn(e,1):[]}function Ki(e){return e&&e.length?e[0]:r}var Gi=Yn((function(e){var t=Dt(e,va);return t.length&&t[0]===e[0]?Pn(t):[]})),Wi=Yn((function(e){var t=Ji(e),n=Dt(e,va);return t===Ji(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Pn(n,li(t,2)):[]})),Zi=Yn((function(e){var t=Ji(e),n=Dt(e,va);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Pn(n,r,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Yi=Yn(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Gn(e,t):e}var Qi=ni((function(e,t){var r=null==e?0:e.length,n=on(e,t);return Wn(e,Dt(t,(function(e){return wi(e,r)?+e:e})).sort(ka)),n}));function es(e){return null==e?e:_r.call(e)}var ts=Yn((function(e){return pa(vn(e,1,Gs,!0))})),rs=Yn((function(e){var t=Ji(e);return Gs(t)&&(t=r),pa(vn(e,1,Gs,!0),li(t,2))})),ns=Yn((function(e){var t=Ji(e);return t="function"==typeof t?t:r,pa(vn(e,1,Gs,!0),r,t)}));function as(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Gs(e))return t=vr(e.length,t),!0})),Zt(t,(function(t){return Dt(e,Ht(t))}))}function is(e,t){if(!e||!e.length)return[];var n=as(e);return null==t?n:Dt(n,(function(e){return Ct(t,r,e)}))}var ss=Yn((function(e,t){return Gs(e)?cn(e,t):[]})),os=Yn((function(e){return ga(Pt(e,Gs))})),ds=Yn((function(e){var t=Ji(e);return Gs(t)&&(t=r),ga(Pt(e,Gs),li(t,2))})),ls=Yn((function(e){var t=Ji(e);return t="function"==typeof t?t:r,ga(Pt(e,Gs),r,t)})),us=Yn(as);var ps=Yn((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,is(e,n)}));function cs(e){var t=Vr(e);return t.__chain__=!0,t}function ms(e,t){return t(e)}var hs=ni((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&a instanceof qr&&wi(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:ms,args:[i],thisArg:r}),new zr(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)}));var fs=Oa((function(e,t,r){Le.call(e,r)?++e[r]:sn(e,r,1)}));var gs=Ua(zi),ys=Ua(qi);function vs(e,t){return(qs(e)?kt:mn)(e,li(t,3))}function ws(e,t){return(qs(e)?Tt:hn)(e,li(t,3))}var bs=Oa((function(e,t,r){Le.call(e,r)?e[r].push(t):sn(e,r,[t])}));var Ss=Yn((function(e,t,r){var n=-1,a="function"==typeof t,i=Ks(e)?Ee(e.length):[];return mn(e,(function(e){i[++n]=a?Ct(t,e,r):In(e,t,r)})),i})),Es=Oa((function(e,t,r){sn(e,r,t)}));function _s(e,t){return(qs(e)?Dt:Vn)(e,li(t,3))}var xs=Oa((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Cs=Yn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&bi(e,t[0],t[1])?t=[]:r>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,vn(t,1),[])})),Ns=ct||function(){return mt.Date.now()};function ks(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Xa(e,l,r,r,r,r,t)}function Ts(e,t){var a;if("function"!=typeof t)throw new Pe(n);return e=fo(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=r),a}}var As=Yn((function(e,t,r){var n=1;if(r.length){var a=dr(r,di(As));n|=o}return Xa(e,n,t,r,a)})),Ps=Yn((function(e,t,r){var n=3;if(r.length){var a=dr(r,di(Ps));n|=o}return Xa(t,n,e,r,a)}));function Is(e,t,a){var i,s,o,d,l,u,p=0,c=!1,m=!1,h=!0;if("function"!=typeof e)throw new Pe(n);function f(t){var n=i,a=s;return i=s=r,p=t,d=e.apply(a,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||m&&e-p>=o}function y(){var e=Ns();if(g(e))return v(e);l=Ii(y,function(e){var r=t-(e-u);return m?wr(r,o-(e-p)):r}(e))}function v(e){return l=r,h&&i?f(e):(i=s=r,d)}function w(){var e=Ns(),n=g(e);if(i=arguments,s=this,u=e,n){if(l===r)return function(e){return p=e,l=Ii(y,t),c?f(e):d}(u);if(m)return _a(l),l=Ii(y,t),f(u)}return l===r&&(l=Ii(y,t)),d}return t=yo(t)||0,eo(a)&&(c=!!a.leading,o=(m="maxWait"in a)?vr(yo(a.maxWait)||0,t):o,h="trailing"in a?!!a.trailing:h),w.cancel=function(){l!==r&&_a(l),p=0,i=u=s=l=r},w.flush=function(){return l===r?d:v(Ns())},w}var Os=Yn((function(e,t){return pn(e,1,t)})),Ds=Yn((function(e,t,r){return pn(e,yo(t)||0,r)}));function Rs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(Rs.Cache||Gr),r}function Ms(e){if("function"!=typeof e)throw new Pe(n);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)}}Rs.Cache=Gr;var Ls=Sa((function(e,t){var r=(t=1==t.length&&qs(t[0])?Dt(t[0],Yt(li())):Dt(vn(t,1),Yt(li()))).length;return Yn((function(n){for(var a=-1,i=wr(n.length,r);++a<i;)n[a]=t[a].call(this,n[a]);return Ct(e,this,n)}))})),Fs=Yn((function(e,t){var n=dr(t,di(Fs));return Xa(e,o,r,t,n)})),js=Yn((function(e,t){var n=dr(t,di(js));return Xa(e,d,r,t,n)})),Us=ni((function(e,t){return Xa(e,u,r,r,r,t)}));function Vs(e,t){return e===t||e!=e&&t!=t}var Bs=Ga(kn),$s=Ga((function(e,t){return e>=t})),zs=On(function(){return arguments}())?On:function(e){return to(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},qs=Ee.isArray,Hs=wt?Yt(wt):function(e){return to(e)&&Nn(e)==O};function Ks(e){return null!=e&&Qs(e.length)&&!Ys(e)}function Gs(e){return to(e)&&Ks(e)}var Ws=jt||yd,Zs=bt?Yt(bt):function(e){return to(e)&&Nn(e)==w};function Js(e){if(!to(e))return!1;var t=Nn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ao(e)}function Ys(e){if(!eo(e))return!1;var t=Nn(e);return t==S||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==fo(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var ro=St?Yt(St):function(e){return to(e)&&fi(e)==_};function no(e){return"number"==typeof e||to(e)&&Nn(e)==x}function ao(e){if(!to(e)||Nn(e)!=C)return!1;var t=Ge(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==Ve}var io=Et?Yt(Et):function(e){return to(e)&&Nn(e)==k};var so=_t?Yt(_t):function(e){return to(e)&&fi(e)==T};function oo(e){return"string"==typeof e||!qs(e)&&to(e)&&Nn(e)==A}function lo(e){return"symbol"==typeof e||to(e)&&Nn(e)==P}var uo=xt?Yt(xt):function(e){return to(e)&&Qs(e.length)&&!!st[Nn(e)]};var po=Ga(Un),co=Ga((function(e,t){return e<=t}));function mo(e){if(!e)return[];if(Ks(e))return oo(e)?cr(e):Pa(e);if(et&&e[et])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[et]());var t=fi(e);return(t==_?sr:t==T?lr:Bo)(e)}function ho(e){return e?(e=yo(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fo(e){var t=ho(e),r=t%1;return t==t?r?t-r:t:0}function go(e){return e?dn(fo(e),0,h):0}function yo(e){if("number"==typeof e)return e;if(lo(e))return m;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=fe.test(e);return r||ye.test(e)?ut(e.slice(2),r?2:8):he.test(e)?m:+e}function vo(e){return Ia(e,Do(e))}function wo(e){return null==e?"":ua(e)}var bo=Da((function(e,t){if(xi(t)||Ks(t))Ia(t,Oo(t),e);else for(var r in t)Le.call(t,r)&&tn(e,r,t[r])})),So=Da((function(e,t){Ia(t,Do(t),e)})),Eo=Da((function(e,t,r,n){Ia(t,Do(t),e,n)})),_o=Da((function(e,t,r,n){Ia(t,Oo(t),e,n)})),xo=ni(on);var Co=Yn((function(e,t){e=ke(e);var n=-1,a=t.length,i=a>2?t[2]:r;for(i&&bi(t[0],t[1],i)&&(a=1);++n<a;)for(var s=t[n],o=Do(s),d=-1,l=o.length;++d<l;){var u=o[d],p=e[u];(p===r||Vs(p,De[u])&&!Le.call(e,u))&&(e[u]=s[u])}return e})),No=Yn((function(e){return e.push(r,ei),Ct(Mo,r,e)}));function ko(e,t,n){var a=null==e?r:xn(e,t);return a===r?n:a}function To(e,t){return null!=e&&gi(e,t,An)}var Ao=$a((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=r}),td(ad)),Po=$a((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Le.call(e,t)?e[t].push(r):e[t]=[r]}),li),Io=Yn(In);function Oo(e){return Ks(e)?Jr(e):Fn(e)}function Do(e){return Ks(e)?Jr(e,!0):jn(e)}var Ro=Da((function(e,t,r){zn(e,t,r)})),Mo=Da((function(e,t,r,n){zn(e,t,r,n)})),Lo=ni((function(e,t){var r={};if(null==e)return r;var n=!1;t=Dt(t,(function(t){return t=ba(t,e),n||(n=t.length>1),t})),Ia(e,ii(e),r),n&&(r=ln(r,7,ti));for(var a=t.length;a--;)ca(r,t[a]);return r}));var Fo=ni((function(e,t){return null==e?{}:function(e,t){return Kn(e,t,(function(t,r){return To(e,r)}))}(e,t)}));function jo(e,t){if(null==e)return{};var r=Dt(ii(e),(function(e){return[e]}));return t=li(t),Kn(e,r,(function(e,r){return t(e,r[0])}))}var Uo=Ya(Oo),Vo=Ya(Do);function Bo(e){return null==e?[]:Xt(e,Oo(e))}var $o=Fa((function(e,t,r){return t=t.toLowerCase(),e+(r?zo(t):t)}));function zo(e){return Yo(wo(e).toLowerCase())}function qo(e){return(e=wo(e))&&e.replace(we,rr).replace(Qe,"")}var Ho=Fa((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ko=Fa((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Go=La("toLowerCase");var Wo=Fa((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Zo=Fa((function(e,t,r){return e+(r?" ":"")+Yo(t)}));var Jo=Fa((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Yo=La("toUpperCase");function Xo(e,t,n){return e=wo(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Qo=Yn((function(e,t){try{return Ct(e,r,t)}catch(e){return Js(e)?e:new xe(e)}})),ed=ni((function(e,t){return kt(t,(function(t){t=Fi(t),sn(e,t,As(e[t],e))})),e}));function td(e){return function(){return e}}var rd=Va(),nd=Va(!0);function ad(e){return e}function id(e){return Ln("function"==typeof e?e:ln(e,1))}var sd=Yn((function(e,t){return function(r){return In(r,e,t)}})),od=Yn((function(e,t){return function(r){return In(e,r,t)}}));function dd(e,t,r){var n=Oo(t),a=_n(t,n);null!=r||eo(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=_n(t,Oo(t)));var i=!(eo(r)&&"chain"in r&&!r.chain),s=Ys(e);return kt(a,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Pa(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function ld(){}var ud=qa(Dt),pd=qa(At),cd=qa(Ft);function md(e){return Si(e)?Ht(Fi(e)):function(e){return function(t){return xn(t,e)}}(e)}var hd=Ka(),fd=Ka(!0);function gd(){return[]}function yd(){return!1}var vd=za((function(e,t){return e+t}),0),wd=Za("ceil"),bd=za((function(e,t){return e/t}),1),Sd=Za("floor");var Ed,_d=za((function(e,t){return e*t}),1),xd=Za("round"),Cd=za((function(e,t){return e-t}),0);return Vr.after=function(e,t){if("function"!=typeof t)throw new Pe(n);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},Vr.ary=ks,Vr.assign=bo,Vr.assignIn=So,Vr.assignInWith=Eo,Vr.assignWith=_o,Vr.at=xo,Vr.before=Ts,Vr.bind=As,Vr.bindAll=ed,Vr.bindKey=Ps,Vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},Vr.chain=cs,Vr.chunk=function(e,t,n){t=(n?bi(e,t,n):t===r)?1:vr(fo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,s=0,o=Ee(ft(a/t));i<a;)o[s++]=aa(e,i,i+=t);return o},Vr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,a=[];++t<r;){var i=e[t];i&&(a[n++]=i)}return a},Vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ee(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Rt(qs(r)?Pa(r):[r],vn(t,1))},Vr.cond=function(e){var t=null==e?0:e.length,r=li();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Pe(n);return[r(e[0]),e[1]]})):[],Yn((function(r){for(var n=-1;++n<t;){var a=e[n];if(Ct(a[0],this,r))return Ct(a[1],this,r)}}))},Vr.conforms=function(e){return function(e){var t=Oo(e);return function(r){return un(r,e,t)}}(ln(e,1))},Vr.constant=td,Vr.countBy=fs,Vr.create=function(e,t){var r=Br(e);return null==t?r:an(r,t)},Vr.curry=function e(t,n,a){var i=Xa(t,8,r,r,r,r,r,n=a?r:n);return i.placeholder=e.placeholder,i},Vr.curryRight=function e(t,n,a){var i=Xa(t,s,r,r,r,r,r,n=a?r:n);return i.placeholder=e.placeholder,i},Vr.debounce=Is,Vr.defaults=Co,Vr.defaultsDeep=No,Vr.defer=Os,Vr.delay=Ds,Vr.difference=Vi,Vr.differenceBy=Bi,Vr.differenceWith=$i,Vr.drop=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=n||t===r?1:fo(t))<0?0:t,a):[]},Vr.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,0,(t=a-(t=n||t===r?1:fo(t)))<0?0:t):[]},Vr.dropRightWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!0,!0):[]},Vr.dropWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!0):[]},Vr.fill=function(e,t,n,a){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,a=i),function(e,t,n,a){var i=e.length;for((n=fo(n))<0&&(n=-n>i?0:i+n),(a=a===r||a>i?i:fo(a))<0&&(a+=i),a=n>a?0:go(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},Vr.filter=function(e,t){return(qs(e)?Pt:yn)(e,li(t,3))},Vr.flatMap=function(e,t){return vn(_s(e,t),1)},Vr.flatMapDeep=function(e,t){return vn(_s(e,t),p)},Vr.flatMapDepth=function(e,t,n){return n=n===r?1:fo(n),vn(_s(e,t),n)},Vr.flatten=Hi,Vr.flattenDeep=function(e){return(null==e?0:e.length)?vn(e,p):[]},Vr.flattenDepth=function(e,t){return(null==e?0:e.length)?vn(e,t=t===r?1:fo(t)):[]},Vr.flip=function(e){return Xa(e,512)},Vr.flow=rd,Vr.flowRight=nd,Vr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n},Vr.functions=function(e){return null==e?[]:_n(e,Oo(e))},Vr.functionsIn=function(e){return null==e?[]:_n(e,Do(e))},Vr.groupBy=bs,Vr.initial=function(e){return(null==e?0:e.length)?aa(e,0,-1):[]},Vr.intersection=Gi,Vr.intersectionBy=Wi,Vr.intersectionWith=Zi,Vr.invert=Ao,Vr.invertBy=Po,Vr.invokeMap=Ss,Vr.iteratee=id,Vr.keyBy=Es,Vr.keys=Oo,Vr.keysIn=Do,Vr.map=_s,Vr.mapKeys=function(e,t){var r={};return t=li(t,3),Sn(e,(function(e,n,a){sn(r,t(e,n,a),e)})),r},Vr.mapValues=function(e,t){var r={};return t=li(t,3),Sn(e,(function(e,n,a){sn(r,n,t(e,n,a))})),r},Vr.matches=function(e){return Bn(ln(e,1))},Vr.matchesProperty=function(e,t){return $n(e,ln(t,1))},Vr.memoize=Rs,Vr.merge=Ro,Vr.mergeWith=Mo,Vr.method=sd,Vr.methodOf=od,Vr.mixin=dd,Vr.negate=Ms,Vr.nthArg=function(e){return e=fo(e),Yn((function(t){return qn(t,e)}))},Vr.omit=Lo,Vr.omitBy=function(e,t){return jo(e,Ms(li(t)))},Vr.once=function(e){return Ts(2,e)},Vr.orderBy=function(e,t,n,a){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(n=a?r:n)||(n=null==n?[]:[n]),Hn(e,t,n))},Vr.over=ud,Vr.overArgs=Ls,Vr.overEvery=pd,Vr.overSome=cd,Vr.partial=Fs,Vr.partialRight=js,Vr.partition=xs,Vr.pick=Fo,Vr.pickBy=jo,Vr.property=md,Vr.propertyOf=function(e){return function(t){return null==e?r:xn(e,t)}},Vr.pull=Yi,Vr.pullAll=Xi,Vr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,li(r,2)):e},Vr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gn(e,t,r,n):e},Vr.pullAt=Qi,Vr.range=hd,Vr.rangeRight=fd,Vr.rearg=Us,Vr.reject=function(e,t){return(qs(e)?Pt:yn)(e,Ms(li(t,3)))},Vr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,a=[],i=e.length;for(t=li(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),a.push(n))}return Wn(e,a),r},Vr.rest=function(e,t){if("function"!=typeof e)throw new Pe(n);return Yn(e,t=t===r?t:fo(t))},Vr.reverse=es,Vr.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fo(t),(qs(e)?Xr:Qn)(e,t)},Vr.set=function(e,t,r){return null==e?e:ea(e,t,r)},Vr.setWith=function(e,t,n,a){return a="function"==typeof a?a:r,null==e?e:ea(e,t,n,a)},Vr.shuffle=function(e){return(qs(e)?Qr:na)(e)},Vr.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=a):(t=null==t?0:fo(t),n=n===r?a:fo(n)),aa(e,t,n)):[]},Vr.sortBy=Cs,Vr.sortedUniq=function(e){return e&&e.length?da(e):[]},Vr.sortedUniqBy=function(e,t){return e&&e.length?da(e,li(t,2)):[]},Vr.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=r),(n=n===r?h:n>>>0)?(e=wo(e))&&("string"==typeof t||null!=t&&!io(t))&&!(t=ua(t))&&ir(e)?Ea(cr(e),0,n):e.split(t,n):[]},Vr.spread=function(e,t){if("function"!=typeof e)throw new Pe(n);return t=null==t?0:vr(fo(t),0),Yn((function(r){var n=r[t],a=Ea(r,0,t);return n&&Rt(a,n),Ct(e,this,a)}))},Vr.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},Vr.take=function(e,t,n){return e&&e.length?aa(e,0,(t=n||t===r?1:fo(t))<0?0:t):[]},Vr.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=a-(t=n||t===r?1:fo(t)))<0?0:t,a):[]},Vr.takeRightWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!1,!0):[]},Vr.takeWhile=function(e,t){return e&&e.length?ha(e,li(t,3)):[]},Vr.tap=function(e,t){return t(e),e},Vr.throttle=function(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new Pe(n);return eo(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),Is(e,t,{leading:a,maxWait:t,trailing:i})},Vr.thru=ms,Vr.toArray=mo,Vr.toPairs=Uo,Vr.toPairsIn=Vo,Vr.toPath=function(e){return qs(e)?Dt(e,Fi):lo(e)?[e]:Pa(Li(wo(e)))},Vr.toPlainObject=vo,Vr.transform=function(e,t,r){var n=qs(e),a=n||Ws(e)||uo(e);if(t=li(t,4),null==r){var i=e&&e.constructor;r=a?n?new i:[]:eo(e)&&Ys(i)?Br(Ge(e)):{}}return(a?kt:Sn)(e,(function(e,n,a){return t(r,e,n,a)})),r},Vr.unary=function(e){return ks(e,1)},Vr.union=ts,Vr.unionBy=rs,Vr.unionWith=ns,Vr.uniq=function(e){return e&&e.length?pa(e):[]},Vr.uniqBy=function(e,t){return e&&e.length?pa(e,li(t,2)):[]},Vr.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?pa(e,r,t):[]},Vr.unset=function(e,t){return null==e||ca(e,t)},Vr.unzip=as,Vr.unzipWith=is,Vr.update=function(e,t,r){return null==e?e:ma(e,t,wa(r))},Vr.updateWith=function(e,t,n,a){return a="function"==typeof a?a:r,null==e?e:ma(e,t,wa(n),a)},Vr.values=Bo,Vr.valuesIn=function(e){return null==e?[]:Xt(e,Do(e))},Vr.without=ss,Vr.words=Xo,Vr.wrap=function(e,t){return Fs(wa(t),e)},Vr.xor=os,Vr.xorBy=ds,Vr.xorWith=ls,Vr.zip=us,Vr.zipObject=function(e,t){return ya(e||[],t||[],tn)},Vr.zipObjectDeep=function(e,t){return ya(e||[],t||[],ea)},Vr.zipWith=ps,Vr.entries=Uo,Vr.entriesIn=Vo,Vr.extend=So,Vr.extendWith=Eo,dd(Vr,Vr),Vr.add=vd,Vr.attempt=Qo,Vr.camelCase=$o,Vr.capitalize=zo,Vr.ceil=wd,Vr.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=yo(n))==n?n:0),t!==r&&(t=(t=yo(t))==t?t:0),dn(yo(e),t,n)},Vr.clone=function(e){return ln(e,4)},Vr.cloneDeep=function(e){return ln(e,5)},Vr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:r)},Vr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:r)},Vr.conformsTo=function(e,t){return null==t||un(e,t,Oo(t))},Vr.deburr=qo,Vr.defaultTo=function(e,t){return null==e||e!=e?t:e},Vr.divide=bd,Vr.endsWith=function(e,t,n){e=wo(e),t=ua(t);var a=e.length,i=n=n===r?a:dn(fo(n),0,a);return(n-=t.length)>=0&&e.slice(n,i)==t},Vr.eq=Vs,Vr.escape=function(e){return(e=wo(e))&&Z.test(e)?e.replace(G,nr):e},Vr.escapeRegExp=function(e){return(e=wo(e))&&ne.test(e)?e.replace(re,"\\$&"):e},Vr.every=function(e,t,n){var a=qs(e)?At:fn;return n&&bi(e,t,n)&&(t=r),a(e,li(t,3))},Vr.find=gs,Vr.findIndex=zi,Vr.findKey=function(e,t){return Ut(e,li(t,3),Sn)},Vr.findLast=ys,Vr.findLastIndex=qi,Vr.findLastKey=function(e,t){return Ut(e,li(t,3),En)},Vr.floor=Sd,Vr.forEach=vs,Vr.forEachRight=ws,Vr.forIn=function(e,t){return null==e?e:wn(e,li(t,3),Do)},Vr.forInRight=function(e,t){return null==e?e:bn(e,li(t,3),Do)},Vr.forOwn=function(e,t){return e&&Sn(e,li(t,3))},Vr.forOwnRight=function(e,t){return e&&En(e,li(t,3))},Vr.get=ko,Vr.gt=Bs,Vr.gte=$s,Vr.has=function(e,t){return null!=e&&gi(e,t,Tn)},Vr.hasIn=To,Vr.head=Ki,Vr.identity=ad,Vr.includes=function(e,t,r,n){e=Ks(e)?e:Bo(e),r=r&&!n?fo(r):0;var a=e.length;return r<0&&(r=vr(a+r,0)),oo(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Bt(e,t,r)>-1},Vr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:fo(r);return a<0&&(a=vr(n+a,0)),Bt(e,t,a)},Vr.inRange=function(e,t,n){return t=ho(t),n===r?(n=t,t=0):n=ho(n),function(e,t,r){return e>=wr(t,r)&&e<vr(t,r)}(e=yo(e),t,n)},Vr.invoke=Io,Vr.isArguments=zs,Vr.isArray=qs,Vr.isArrayBuffer=Hs,Vr.isArrayLike=Ks,Vr.isArrayLikeObject=Gs,Vr.isBoolean=function(e){return!0===e||!1===e||to(e)&&Nn(e)==v},Vr.isBuffer=Ws,Vr.isDate=Zs,Vr.isElement=function(e){return to(e)&&1===e.nodeType&&!ao(e)},Vr.isEmpty=function(e){if(null==e)return!0;if(Ks(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||uo(e)||zs(e)))return!e.length;var t=fi(e);if(t==_||t==T)return!e.size;if(xi(e))return!Fn(e).length;for(var r in e)if(Le.call(e,r))return!1;return!0},Vr.isEqual=function(e,t){return Dn(e,t)},Vr.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:r)?n(e,t):r;return a===r?Dn(e,t,r,n):!!a},Vr.isError=Js,Vr.isFinite=function(e){return"number"==typeof e&&Kt(e)},Vr.isFunction=Ys,Vr.isInteger=Xs,Vr.isLength=Qs,Vr.isMap=ro,Vr.isMatch=function(e,t){return e===t||Rn(e,t,pi(t))},Vr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Rn(e,t,pi(t),n)},Vr.isNaN=function(e){return no(e)&&e!=+e},Vr.isNative=function(e){if(_i(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(e)},Vr.isNil=function(e){return null==e},Vr.isNull=function(e){return null===e},Vr.isNumber=no,Vr.isObject=eo,Vr.isObjectLike=to,Vr.isPlainObject=ao,Vr.isRegExp=io,Vr.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=c},Vr.isSet=so,Vr.isString=oo,Vr.isSymbol=lo,Vr.isTypedArray=uo,Vr.isUndefined=function(e){return e===r},Vr.isWeakMap=function(e){return to(e)&&fi(e)==I},Vr.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==Nn(e)},Vr.join=function(e,t){return null==e?"":gr.call(e,t)},Vr.kebabCase=Ho,Vr.last=Ji,Vr.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=a;return n!==r&&(i=(i=fo(n))<0?vr(a+i,0):wr(i,a-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Vt(e,zt,i,!0)},Vr.lowerCase=Ko,Vr.lowerFirst=Go,Vr.lt=po,Vr.lte=co,Vr.max=function(e){return e&&e.length?gn(e,ad,kn):r},Vr.maxBy=function(e,t){return e&&e.length?gn(e,li(t,2),kn):r},Vr.mean=function(e){return qt(e,ad)},Vr.meanBy=function(e,t){return qt(e,li(t,2))},Vr.min=function(e){return e&&e.length?gn(e,ad,Un):r},Vr.minBy=function(e,t){return e&&e.length?gn(e,li(t,2),Un):r},Vr.stubArray=gd,Vr.stubFalse=yd,Vr.stubObject=function(){return{}},Vr.stubString=function(){return""},Vr.stubTrue=function(){return!0},Vr.multiply=_d,Vr.nth=function(e,t){return e&&e.length?qn(e,fo(t)):r},Vr.noConflict=function(){return mt._===this&&(mt._=Be),this},Vr.noop=ld,Vr.now=Ns,Vr.pad=function(e,t,r){e=wo(e);var n=(t=fo(t))?pr(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return Ha(yt(a),r)+e+Ha(ft(a),r)},Vr.padEnd=function(e,t,r){e=wo(e);var n=(t=fo(t))?pr(e):0;return t&&n<t?e+Ha(t-n,r):e},Vr.padStart=function(e,t,r){e=wo(e);var n=(t=fo(t))?pr(e):0;return t&&n<t?Ha(t-n,r)+e:e},Vr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),Sr(wo(e).replace(ae,""),t||0)},Vr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ho(e),t===r?(t=e,e=0):t=ho(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var i=Er();return wr(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Zn(e,t)},Vr.reduce=function(e,t,r){var n=qs(e)?Mt:Gt,a=arguments.length<3;return n(e,li(t,4),r,a,mn)},Vr.reduceRight=function(e,t,r){var n=qs(e)?Lt:Gt,a=arguments.length<3;return n(e,li(t,4),r,a,hn)},Vr.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fo(t),Jn(wo(e),t)},Vr.replace=function(){var e=arguments,t=wo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vr.result=function(e,t,n){var a=-1,i=(t=ba(t,e)).length;for(i||(i=1,e=r);++a<i;){var s=null==e?r:e[Fi(t[a])];s===r&&(a=i,s=n),e=Ys(s)?s.call(e):s}return e},Vr.round=xd,Vr.runInContext=e,Vr.sample=function(e){return(qs(e)?Yr:Xn)(e)},Vr.size=function(e){if(null==e)return 0;if(Ks(e))return oo(e)?pr(e):e.length;var t=fi(e);return t==_||t==T?e.size:Fn(e).length},Vr.snakeCase=Wo,Vr.some=function(e,t,n){var a=qs(e)?Ft:ia;return n&&bi(e,t,n)&&(t=r),a(e,li(t,3))},Vr.sortedIndex=function(e,t){return sa(e,t)},Vr.sortedIndexBy=function(e,t,r){return oa(e,t,li(r,2))},Vr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=sa(e,t);if(n<r&&Vs(e[n],t))return n}return-1},Vr.sortedLastIndex=function(e,t){return sa(e,t,!0)},Vr.sortedLastIndexBy=function(e,t,r){return oa(e,t,li(r,2),!0)},Vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=sa(e,t,!0)-1;if(Vs(e[r],t))return r}return-1},Vr.startCase=Zo,Vr.startsWith=function(e,t,r){return e=wo(e),r=null==r?0:dn(fo(r),0,e.length),t=ua(t),e.slice(r,r+t.length)==t},Vr.subtract=Cd,Vr.sum=function(e){return e&&e.length?Wt(e,ad):0},Vr.sumBy=function(e,t){return e&&e.length?Wt(e,li(t,2)):0},Vr.template=function(e,t,n){var a=Vr.templateSettings;n&&bi(e,t,n)&&(t=r),e=wo(e),t=Eo({},t,a,Qa);var i,s,o=Eo({},t.imports,a.imports,Qa),d=Oo(o),l=Xt(o,d),u=0,p=t.interpolate||be,c="__p += '",m=Te((t.escape||be).source+"|"+p.source+"|"+(p===X?ce:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(m,(function(t,r,n,a,o,d){return n||(n=a),c+=e.slice(u,d).replace(Se,ar),r&&(i=!0,c+="' +\n__e("+r+") +\n'"),o&&(s=!0,c+="';\n"+o+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=d+t.length,t})),c+="';\n";var f=Le.call(t,"variable")&&t.variable;if(f){if(ue.test(f))throw new xe("Invalid `variable` option passed into `_.template`")}else c="with (obj) {\n"+c+"\n}\n";c=(s?c.replace(z,""):c).replace(q,"$1").replace(H,"$1;"),c="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+c+"return __p\n}";var g=Qo((function(){return Ce(d,h+"return "+c).apply(r,l)}));if(g.source=c,Js(g))throw g;return g},Vr.times=function(e,t){if((e=fo(e))<1||e>c)return[];var r=h,n=wr(e,h);t=li(t),e-=h;for(var a=Zt(n,t);++r<e;)t(r);return a},Vr.toFinite=ho,Vr.toInteger=fo,Vr.toLength=go,Vr.toLower=function(e){return wo(e).toLowerCase()},Vr.toNumber=yo,Vr.toSafeInteger=function(e){return e?dn(fo(e),-9007199254740991,c):0===e?e:0},Vr.toString=wo,Vr.toUpper=function(e){return wo(e).toUpperCase()},Vr.trim=function(e,t,n){if((e=wo(e))&&(n||t===r))return Jt(e);if(!e||!(t=ua(t)))return e;var a=cr(e),i=cr(t);return Ea(a,er(a,i),tr(a,i)+1).join("")},Vr.trimEnd=function(e,t,n){if((e=wo(e))&&(n||t===r))return e.slice(0,mr(e)+1);if(!e||!(t=ua(t)))return e;var a=cr(e);return Ea(a,0,tr(a,cr(t))+1).join("")},Vr.trimStart=function(e,t,n){if((e=wo(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=ua(t)))return e;var a=cr(e);return Ea(a,er(a,cr(t))).join("")},Vr.truncate=function(e,t){var n=30,a="...";if(eo(t)){var i="separator"in t?t.separator:i;n="length"in t?fo(t.length):n,a="omission"in t?ua(t.omission):a}var s=(e=wo(e)).length;if(ir(e)){var o=cr(e);s=o.length}if(n>=s)return e;var d=n-pr(a);if(d<1)return a;var l=o?Ea(o,0,d).join(""):e.slice(0,d);if(i===r)return l+a;if(o&&(d+=l.length-d),io(i)){if(e.slice(d).search(i)){var u,p=l;for(i.global||(i=Te(i.source,wo(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(p);)var c=u.index;l=l.slice(0,c===r?d:c)}}else if(e.indexOf(ua(i),d)!=d){var m=l.lastIndexOf(i);m>-1&&(l=l.slice(0,m))}return l+a},Vr.unescape=function(e){return(e=wo(e))&&W.test(e)?e.replace(K,hr):e},Vr.uniqueId=function(e){var t=++Fe;return wo(e)+t},Vr.upperCase=Jo,Vr.upperFirst=Yo,Vr.each=vs,Vr.eachRight=ws,Vr.first=Ki,dd(Vr,(Ed={},Sn(Vr,(function(e,t){Le.call(Vr.prototype,t)||(Ed[t]=e)})),Ed),{chain:!1}),Vr.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vr[e].placeholder=Vr})),kt(["drop","take"],(function(e,t){qr.prototype[e]=function(n){n=n===r?1:vr(fo(n),0);var a=this.__filtered__&&!t?new qr(this):this.clone();return a.__filtered__?a.__takeCount__=wr(n,a.__takeCount__):a.__views__.push({size:wr(n,h),type:e+(a.__dir__<0?"Right":"")}),a},qr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;qr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),kt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");qr.prototype[e]=function(){return this[r](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");qr.prototype[e]=function(){return this.__filtered__?new qr(this):this[r](1)}})),qr.prototype.compact=function(){return this.filter(ad)},qr.prototype.find=function(e){return this.filter(e).head()},qr.prototype.findLast=function(e){return this.reverse().find(e)},qr.prototype.invokeMap=Yn((function(e,t){return"function"==typeof e?new qr(this):this.map((function(r){return In(r,e,t)}))})),qr.prototype.reject=function(e){return this.filter(Ms(li(e)))},qr.prototype.slice=function(e,t){e=fo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=fo(t))<0?n.dropRight(-t):n.take(t-e)),n)},qr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qr.prototype.toArray=function(){return this.take(h)},Sn(qr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=Vr[a?"take"+("last"==t?"Right":""):t],s=a||/^find/.test(t);i&&(Vr.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,d=t instanceof qr,l=o[0],u=d||qs(t),p=function(e){var t=i.apply(Vr,Rt([e],o));return a&&c?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(d=u=!1);var c=this.__chain__,m=!!this.__actions__.length,h=s&&!c,f=d&&!m;if(!s&&u){t=f?t:new qr(this);var g=e.apply(t,o);return g.__actions__.push({func:ms,args:[p],thisArg:r}),new zr(g,c)}return h&&f?e.apply(this,o):(g=this.thru(p),h?a?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Vr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(qs(a)?a:[],e)}return this[r]((function(r){return t.apply(qs(r)?r:[],e)}))}})),Sn(qr.prototype,(function(e,t){var r=Vr[t];if(r){var n=r.name+"";Le.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}})),Ir[Ba(r,2).name]=[{name:"wrapper",func:r}],qr.prototype.clone=function(){var e=new qr(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},qr.prototype.reverse=function(){if(this.__filtered__){var e=new qr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qs(e),n=t<0,a=r?e.length:0,i=function(e,t,r){var n=-1,a=r.length;for(;++n<a;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wr(t,e+s);break;case"takeRight":e=vr(e,t-s)}}return{start:e,end:t}}(0,a,this.__views__),s=i.start,o=i.end,d=o-s,l=n?o:s-1,u=this.__iteratees__,p=u.length,c=0,m=wr(d,this.__takeCount__);if(!r||!n&&a==d&&m==d)return fa(e,this.__actions__);var h=[];e:for(;d--&&c<m;){for(var f=-1,g=e[l+=t];++f<p;){var y=u[f],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue e;break e}}h[c++]=g}return h},Vr.prototype.at=hs,Vr.prototype.chain=function(){return cs(this)},Vr.prototype.commit=function(){return new zr(this.value(),this.__chain__)},Vr.prototype.next=function(){this.__values__===r&&(this.__values__=mo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Vr.prototype.plant=function(e){for(var t,n=this;n instanceof $r;){var a=Ui(n);a.__index__=0,a.__values__=r,t?i.__wrapped__=a:t=a;var i=a;n=n.__wrapped__}return i.__wrapped__=e,t},Vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qr){var t=e;return this.__actions__.length&&(t=new qr(this)),(t=t.reverse()).__actions__.push({func:ms,args:[es],thisArg:r}),new zr(t,this.__chain__)}return this.thru(es)},Vr.prototype.toJSON=Vr.prototype.valueOf=Vr.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},Vr.prototype.first=Vr.prototype.head,et&&(Vr.prototype[et]=function(){return this}),Vr}();ft?((ft.exports=fr)._=fr,ht._=fr):mt._=fr}).call(tv)}(JF,JF.exports);var YF=rv(JF.exports);class XF{config;constructor(e){Sn.notNullOrUndefined(e,"config"),this.config=e,this.config.maxNumThreads||(this.config.maxNumThreads=15),this.config.maxRetries||(this.config.maxRetries=5)}updateSrcPrefix(e){this.config.srcPrefix=e}updateDstPrefix(e){this.config.dstPrefix=e}async copyObject(e,t,r=!1){const n=e.replace(this.config.srcPrefix,this.config.dstPrefix);let a=!1,i=0;for(;!a&&i<this.config.maxRetries;){_n.debug(`${i>0?`Retry ${i} `:""}${r?"Express":"Slow"} copying\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,n].join("/")}]`);try{if(r){const t={CopySource:encodeURIComponent([this.config.srcBucket,e].join("/")),Bucket:this.config.dstBucket,Key:n,MetadataDirective:"COPY"};await this.config.dstS3.send(new Yx(t))}else{const r=await this.config.srcS3.send(new CC({Bucket:this.config.srcBucket,Key:e})),a={Bucket:this.config.dstBucket,Key:n,Body:r.Body,ContentLength:t},i=new LP({client:this.config.dstS3,params:a,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});i.on("httpUploadProgress",(e=>{_n.info("Uploading : %s",e)})),await i.done()}a=!0}catch(t){_n.warn(`Can't ${r?"express":"slow"} copy\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,n].join("/")}]: %j`,t),i++}}_n.debug(`Finished ${r?"express":"slow"} copying\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,n].join("/")}]`)}async listObjects(e,t,r){_n.info(`Scanning bucket [${[e,t].join("/")}]`);const n={Bucket:e,Prefix:t};let a=!0;const i={};for(;a;){const e=await r.send(new TC(n));a=e.IsTruncated,YF.each(e.Contents,(e=>{i[e.Key]={Key:e.Key,LastModified:e.LastModified,ETag:e.ETag,Size:e.Size}})),a&&(n.ContinuationToken=e.NextContinuationToken)}return i}async startSyncing(){_n.info(`Syncing [${this.config.srcBucket}/${this.config.srcPrefix}\n ---\x3e ${this.config.dstBucket}/${this.config.dstPrefix}]`);const e=async e=>{await this.copyObject(e.Key,e.Size)};let t=await this.compareSrcAndDst();return(t.needCopy.length>0||t.diff.length>0)&&(await Ic.runBoundedParallelSingleParam(e,t.needCopy,this,this.config.maxNumThreads),await Ic.runBoundedParallelSingleParam(e,t.diff,this,this.config.maxNumThreads),_n.info("Verifying..."),t=await this.compareSrcAndDst(),_n.debug("Compare result %j",t)),0===t.needCopy.length&&0===t.diff.length}async compareSrcAndDst(){const e=this.listObjects(this.config.srcBucket,this.config.srcPrefix,this.config.srcS3),t=this.listObjects(this.config.dstBucket,this.config.dstPrefix,this.config.dstS3),r=await e,n=await t,a={needCopy:[],existed:[],diff:[]};return await Ic.runBoundedParallelSingleParam((e=>{const t=r[e],i=e.replace(this.config.srcPrefix,this.config.dstPrefix),s=n.hasOwnProperty(i)?n[i]:void 0;s?t.Size===s.Size&&t.LastModified.getTime()<=s.LastModified.getTime()?a.existed.push(t):a.diff.push(t):a.needCopy.push(t)}),Object.keys(r),this,this.config.maxNumThreads),a}}class QF{static checkS3UrlForValidity(e){let t=!1;return e&&(t=e.startsWith("s3://")&&e.trim().length>5),t}static extractBucketFromURL(e){Sn.true(QF.checkS3UrlForValidity(e),"invalid s3 url");const t=e.indexOf("/",5);return t>0?e.substring(5,t):e.substring(5)}static extractKeyFromURL(e){Sn.true(QF.checkS3UrlForValidity(e),"invalid s3 url");const t=e.indexOf("/",5);return t>0?e.substring(t+1):null}}class ej extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,ej.prototype)}}class tj extends ej{constructor(e){super({name:"AccountSendingPausedException",$fault:"client",...e}),this.name="AccountSendingPausedException",this.$fault="client",Object.setPrototypeOf(this,tj.prototype)}}class rj extends ej{constructor(e){super({name:"ConfigurationSetDoesNotExistException",$fault:"client",...e}),this.name="ConfigurationSetDoesNotExistException",this.$fault="client",Object.setPrototypeOf(this,rj.prototype),this.ConfigurationSetName=e.ConfigurationSetName}}class nj extends ej{constructor(e){super({name:"ConfigurationSetSendingPausedException",$fault:"client",...e}),this.name="ConfigurationSetSendingPausedException",this.$fault="client",Object.setPrototypeOf(this,nj.prototype),this.ConfigurationSetName=e.ConfigurationSetName}}class aj extends ej{constructor(e){super({name:"MailFromDomainNotVerifiedException",$fault:"client",...e}),this.name="MailFromDomainNotVerifiedException",this.$fault="client",Object.setPrototypeOf(this,aj.prototype)}}class ij extends ej{constructor(e){super({name:"MessageRejected",$fault:"client",...e}),this.name="MessageRejected",this.$fault="client",Object.setPrototypeOf(this,ij.prototype)}}const sj=async(e,t)=>{const r={...e,body:await Nj(e.body,t)},n=Tj(e,r.body);switch(n){case"AccountSendingPausedException":case"com.amazonaws.ses#AccountSendingPausedException":throw await oj(r);case"ConfigurationSetDoesNotExist":case"com.amazonaws.ses#ConfigurationSetDoesNotExistException":throw await dj(r);case"ConfigurationSetSendingPausedException":case"com.amazonaws.ses#ConfigurationSetSendingPausedException":throw await lj(r);case"MailFromDomainNotVerifiedException":case"com.amazonaws.ses#MailFromDomainNotVerifiedException":throw await uj(r);case"MessageRejected":case"com.amazonaws.ses#MessageRejected":throw await pj(r);default:const t=r.body;return Ej({output:e,parsedBody:t.Error,errorCode:n})}},oj=async(e,t)=>{const r=e.body,n=hj(r.Error),a=new tj({$metadata:bj(e),...n});return Zh(a,r)},dj=async(e,t)=>{const r=e.body,n=fj(r.Error),a=new rj({$metadata:bj(e),...n});return Zh(a,r)},lj=async(e,t)=>{const r=e.body,n=gj(r.Error),a=new nj({$metadata:bj(e),...n});return Zh(a,r)},uj=async(e,t)=>{const r=e.body,n=yj(r.Error),a=new aj({$metadata:bj(e),...n});return Zh(a,r)},pj=async(e,t)=>{const r=e.body,n=vj(r.Error),a=new ij({$metadata:bj(e),...n});return Zh(a,r)},cj=(e,t)=>{const r={};return null!=e.Name&&(r.Name=e.Name),null!=e.Value&&(r.Value=e.Value),r},mj=(e,t)=>{const r={};if(null!=e.Source&&(r.Source=e.Source),null!=e.Destinations){const t=((e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`member.${n}`]=t,n++);return r})(e.Destinations);0===e.Destinations?.length&&(r.Destinations=[]),Object.entries(t).forEach((([e,t])=>{r[`Destinations.${e}`]=t}))}if(null!=e.RawMessage){const n=((e,t)=>{const r={};return null!=e.Data&&(r.Data=t.base64Encoder(e.Data)),r})(e.RawMessage,t);Object.entries(n).forEach((([e,t])=>{r[`RawMessage.${e}`]=t}))}if(null!=e.FromArn&&(r.FromArn=e.FromArn),null!=e.SourceArn&&(r.SourceArn=e.SourceArn),null!=e.ReturnPathArn&&(r.ReturnPathArn=e.ReturnPathArn),null!=e.Tags){const t=((e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=cj(t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r})(e.Tags);0===e.Tags?.length&&(r.Tags=[]),Object.entries(t).forEach((([e,t])=>{r[`Tags.${e}`]=t}))}return null!=e.ConfigurationSetName&&(r.ConfigurationSetName=e.ConfigurationSetName),r},hj=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},fj=(e,t)=>{const r={};return void 0!==e.ConfigurationSetName&&(r.ConfigurationSetName=gh(e.ConfigurationSetName)),void 0!==e.message&&(r.message=gh(e.message)),r},gj=(e,t)=>{const r={};return void 0!==e.ConfigurationSetName&&(r.ConfigurationSetName=gh(e.ConfigurationSetName)),void 0!==e.message&&(r.message=gh(e.message)),r},yj=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},vj=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},wj=(e,t)=>{const r={};return void 0!==e.MessageId&&(r.MessageId=gh(e.MessageId)),r},bj=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Sj=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),Ej=Jh(ej),_j=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)},xj={"content-type":"application/x-www-form-urlencoded"},Cj=(e,t)=>Sj(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),Nj=async(e,t)=>{const r=await Cj(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},kj=e=>Object.entries(e).map((([e,t])=>Qh(e)+"="+Qh(t))).join("&"),Tj=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class Aj extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,Aj.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"SESClient",commandName:"SendRawEmailCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xj;let n;return n=kj({...mj(e,t),Action:"SendRawEmail",Version:"2010-12-01"}),_j(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return sj(e,t);const r=await Cj(e.body,t);let n={};return n=wj(r.SendRawEmailResult),{$metadata:bj(e),...n}})(e,t)}}class Pj{ses;config;static EMAIL=new RegExp(".+@.+\\.[a-z]+");constructor(e,t={}){if(this.ses=e,this.config=t,Sn.notNullOrUndefined(this.ses),t.archive&&!t.archive.getDefaultBucket())throw new Error("If archive specified, must set a default bucket")}get sESClient(){return this.ses}async fillEmailBody(e,t,r,n=null,a=null,i=null){return Sn.notNullOrUndefined(r),this.config.templateRenderer||lp.throwFormattedErr("Cannot use fill body if template renderer not set"),e.htmlMessage=await this.config.templateRenderer.renderTemplate(r,t,a,i),e.txtMessage=n?await this.config.templateRenderer.renderTemplate(n,t):null,e}async fillEmailBodyAndSend(e,t,r,n=null,a=null,i=null){const s=await this.fillEmailBody(e,t,r,n,a,i);return await this.sendEmail(s)}filterEmailsToValid(e){const t=(e||[]).filter((e=>{if(this.config.allowedDestinationEmails&&0!=this.config.allowedDestinationEmails.length){const t=this.config.allowedDestinationEmails.find((t=>t.test(e)));return!!t}return!0}));return t}async archiveEmailIfConfigured(e){let t=!1;if(e&&this.config.archive&&!e.doNotArchive){_n.debug("Archiving outbound email to : %j",e.destinationAddresses);let r=En.trimToEmpty(this.config.archivePrefix);r.endsWith("/")||(r+="/");const n=mn.utc();r+="year="+n.toFormat("yyyy")+"/month="+n.toFormat("MM")+"/day="+n.toFormat("dd")+"/hour="+n.toFormat("HH")+"/"+n.toFormat("mm_ss__SSS"),r+=".json";try{await this.config.archive.writeObjectToCacheFile(r,e),t=!0}catch(t){_n.warn("Failed to archive email %s %j : %s",r,e,t)}}return t}applyLimitsToBodySizesIfAnyInPlace(e){if(this.config.maxMessageBodySizeInBytes){const t=En.trimToEmpty(e.txtMessage).length+En.trimToEmpty(e.htmlMessage).length;if(t>this.config.maxMessageBodySizeInBytes){if(_n.warn("Max message size is %d but size is %d - converting",this.config.maxMessageBodySizeInBytes,t),e.attachments=e.attachments||[],En.trimToNull(e.txtMessage)){const t={filename:"original-txt-body.txt",contentType:"text/plain",base64Data:Cc.generateBase64VersionOfString(e.txtMessage)};e.attachments.push(t)}if(En.trimToNull(e.htmlMessage)){const t={filename:"original-html-body.html",contentType:"text/html",base64Data:Cc.generateBase64VersionOfString(e.htmlMessage)};e.attachments.push(t)}e.htmlMessage=null,e.txtMessage="The message was too large and was converted to attachment(s). Please see attached files for content"}}}applyLimitsToAttachmentSizesIfAnyInPlace(e){if(this.config.maxAttachmentSizeInBase64Bytes){const t=[];e.attachments&&e.attachments.forEach((e=>{e.base64Data&&e.base64Data.length<this.config.maxAttachmentSizeInBase64Bytes?t.push(e):(_n.warn("Removing too-large attachment : %s : %s : %d",e.filename,e.contentType,e.base64Data.length),t.push({filename:"attachment-removed-notice-"+En.createRandomHexString(4)+".txt",contentType:"text/plain",base64Data:Cc.generateBase64VersionOfString("Attachment "+e.filename+" of type "+e.contentType+" was removed since it was "+e.base64Data.length+" bytes but max allowed is "+this.config.maxAttachmentSizeInBase64Bytes)}))})),e.attachments=t}}async sendEmail(e){Sn.notNullOrUndefined(e,"RTS must be defined"),Sn.notNullOrUndefined(e.destinationAddresses,"Destination addresses must be defined");let t=null,r=this.filterEmailsToValid(e.destinationAddresses);const n=e.doNotAutoBcc?[]:this.config.autoBccAddresses||[],a=(e.bccAddresses||[]).concat(n);0===r.length&&a.length>0&&(_n.debug("Destination emails filtered to none but BCC defined, copying BCC"),r=a);const i=Object.assign({},e);if(i.srcDestinationAddresses=e.destinationAddresses,i.srcBccAddresses=e.bccAddresses,i.destinationAddresses=r,i.bccAddresses=a,this.applyLimitsToBodySizesIfAnyInPlace(i),this.applyLimitsToAttachmentSizesIfAnyInPlace(i),await this.archiveEmailIfConfigured(i),0===i.destinationAddresses.length)_n.info("After cleaning email lists, no destination addresses left - not sending email");else{const e="To: "+i.destinationAddresses.join(", ")+"\n",r=i.bccAddresses&&i.bccAddresses.length>0?"Bcc: "+i.bccAddresses.join(", ")+"\n":"";try{const n=i.fromAddress||this.config.defaultSendingAddress,a="NextPart",s="AltPart";let o="From: "+n+"\n";o+=e,o+=r,o+="Subject: "+i.subject+"\n",o+="MIME-Version: 1.0\n",o+='Content-Type: multipart/mixed; boundary="'+a+'"\n',o+="\n\n--"+a+"\n",o+='Content-Type: multipart/alternative; boundary="'+s+'"\n',En.trimToNull(i.htmlMessage)&&(o+="\n\n--"+s+"\n",o+='Content-Type: text/html; charset="UTF-8"\n\n',o+=i.htmlMessage),En.trimToNull(i.txtMessage)&&(o+="\n\n--"+s+"\n",o+="Content-Type: text/plain\n\n",o+=i.txtMessage),o+="\n\n--"+s+"--\n",i.attachments&&i.attachments.forEach((e=>{o+="\n\n--"+a+"\n",o+="Content-Type: "+e.contentType+'; name="'+e.filename+'"\n',o+="Content-Transfer-Encoding: base64\n",o+="Content-Disposition: attachment\n\n",o+=e.base64Data.replace(/([^\0]{76})/g,"$1\n")+"\n\n"})),o+="\n\n--"+a+"--\n";const d={RawMessage:{Data:(new TextEncoder).encode(o)}};t=await this.ses.send(new Aj(d))}catch(e){_n.error("Error while processing email: %s",e,e)}}return t}static validEmail(e){return null!==e&&Pj.EMAIL.test(e)}}function Ij(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Oj={exports:{}},Dj={exports:{}},Rj={},Mj={__esModule:!0};Mj.extend=Vj,Mj.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},Mj.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!jj.test(e))return e;return e.replace(Fj,Uj)},Mj.isEmpty=function(e){return!e&&0!==e||!(!zj(e)||0!==e.length)},Mj.createFrame=function(e){var t=Vj({},e);return t._parent=e,t},Mj.blockParams=function(e,t){return e.path=t,e},Mj.appendContextPath=function(e,t){return(e?e+".":"")+t};var Lj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Fj=/[&<>"'`=]/g,jj=/[&<>"'`=]/;function Uj(e){return Lj[e]}function Vj(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var Bj=Object.prototype.toString;Mj.toString=Bj;var $j=function(e){return"function"==typeof e};$j(/x/)&&(Mj.isFunction=$j=function(e){return"function"==typeof e&&"[object Function]"===Bj.call(e)}),Mj.isFunction=$j;var zj=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===Bj.call(e)};Mj.isArray=zj;var qj={exports:{}};!function(e,t){t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function n(e,t){var a=t&&t.loc,i=void 0,s=void 0,o=void 0,d=void 0;a&&(i=a.start.line,s=a.end.line,o=a.start.column,d=a.end.column,e+=" - "+i+":"+o);for(var l=Error.prototype.constructor.call(this,e),u=0;u<r.length;u++)this[r[u]]=l[r[u]];Error.captureStackTrace&&Error.captureStackTrace(this,n);try{a&&(this.lineNumber=i,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:d,enumerable:!0})):(this.column=o,this.endColumn=d))}catch(e){}}n.prototype=new Error,t.default=n,e.exports=t.default}(qj,qj.exports);var Hj=qj.exports,Kj={},Gj={exports:{}};!function(e,t){t.__esModule=!0;var r=Mj;t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var a=n.inverse,i=n.fn;if(!0===t)return i(this);if(!1===t||null==t)return a(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):a(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return i(t,n)}))},e.exports=t.default}(Gj,Gj.exports);var Wj=Gj.exports,Zj={exports:{}};!function(e,t){t.__esModule=!0;var r,n=Mj,a=(r=Hj)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var r,i=t.fn,s=t.inverse,o=0,d="",l=void 0,u=void 0;function p(t,r,a){l&&(l.key=t,l.index=r,l.first=0===r,l.last=!!a,u&&(l.contextPath=u+t)),d+=i(e[t],{data:l,blockParams:n.blockParams([e[t],t],[u+t,null])})}if(t.data&&t.ids&&(u=n.appendContextPath(t.data.contextPath,t.ids[0])+"."),n.isFunction(e)&&(e=e.call(this)),t.data&&(l=n.createFrame(t.data)),e&&"object"==typeof e)if(n.isArray(e))for(var c=e.length;o<c;o++)o in e&&p(o,o,o===e.length-1);else if(tv.Symbol&&e[tv.Symbol.iterator]){for(var m=[],h=e[tv.Symbol.iterator](),f=h.next();!f.done;f=h.next())m.push(f.value);for(c=(e=m).length;o<c;o++)p(o,o,o===e.length-1)}else r=void 0,Object.keys(e).forEach((function(e){void 0!==r&&p(r,o-1),r=e,o++})),void 0!==r&&p(r,o-1,!0);return 0===o&&(d=s(this)),d}))},e.exports=t.default}(Zj,Zj.exports);var Jj=Zj.exports,Yj={exports:{}};!function(e,t){t.__esModule=!0;var r,n=(r=Hj)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new n.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default}(Yj,Yj.exports);var Xj=Yj.exports,Qj={exports:{}};!function(e,t){t.__esModule=!0;var r,n=Mj,a=(r=Hj)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return n.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||n.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,r){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})}))},e.exports=t.default}(Qj,Qj.exports);var eU=Qj.exports,tU={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var a=1;null!=r.hash.level?a=r.hash.level:r.data&&null!=r.data.level&&(a=r.data.level),t[0]=a,e.log.apply(e,t)}))},e.exports=t.default}(tU,tU.exports);var rU=tU.exports,nU={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,r){return e?r.lookupProperty(e,t):e}))},e.exports=t.default}(nU,nU.exports);var aU=nU.exports,iU={exports:{}};!function(e,t){t.__esModule=!0;var r,n=Mj,a=(r=Hj)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");n.isFunction(e)&&(e=e.call(this));var r=t.fn;if(n.isEmpty(e))return t.inverse(this);var i=t.data;return t.data&&t.ids&&((i=n.createFrame(t.data)).contextPath=n.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:i,blockParams:n.blockParams([e],[i&&i.contextPath])})}))},e.exports=t.default}(iU,iU.exports);var sU=iU.exports;function oU(e){return e&&e.__esModule?e:{default:e}}Kj.__esModule=!0,Kj.registerDefaultHelpers=function(e){dU.default(e),lU.default(e),uU.default(e),pU.default(e),cU.default(e),mU.default(e),hU.default(e)},Kj.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])};var dU=oU(Wj),lU=oU(Jj),uU=oU(Xj),pU=oU(eU),cU=oU(rU),mU=oU(aU),hU=oU(sU);var fU={},gU={exports:{}};!function(e,t){t.__esModule=!0;var r=Mj;t.default=function(e){e.registerDecorator("inline",(function(e,t,n,a){var i=e;return t.partials||(t.partials={},i=function(a,i){var s=n.partials;n.partials=r.extend({},s,t.partials);var o=e(a,i);return n.partials=s,o}),t.partials[a.args[0]]=a.fn,i}))},e.exports=t.default}(gU,gU.exports);var yU=gU.exports;fU.__esModule=!0,fU.registerDefaultDecorators=function(e){wU.default(e)};var vU,wU=(vU=yU)&&vU.__esModule?vU:{default:vU};var bU={exports:{}};!function(e,t){t.__esModule=!0;var r=Mj,n={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(n.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];console[t].apply(console,a)}}};t.default=n,e.exports=t.default}(bU,bU.exports);var SU=bU.exports,EU={},_U={__esModule:!0,createNewLookupObject:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return xU.extend.apply(void 0,[Object.create(null)].concat(t))}},xU=Mj;EU.__esModule=!0,EU.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:CU.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:CU.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},EU.resultIsAllowed=function(e,t,r){return TU("function"==typeof e?t.methods:t.properties,r)},EU.resetLoggedProperties=function(){Object.keys(kU).forEach((function(e){delete kU[e]}))};var CU=_U,NU=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(SU),kU=Object.create(null);function TU(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==kU[e]&&(kU[e]=!0,NU.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}function AU(e){return e&&e.__esModule?e:{default:e}}Rj.__esModule=!0,Rj.HandlebarsEnvironment=FU;var PU=Mj,IU=AU(Hj),OU=Kj,DU=fU,RU=AU(SU),MU=EU;Rj.VERSION="4.7.7";Rj.COMPILER_REVISION=8;Rj.LAST_COMPATIBLE_COMPILER_REVISION=7;Rj.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var LU="[object Object]";function FU(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},OU.registerDefaultHelpers(this),DU.registerDefaultDecorators(this)}FU.prototype={constructor:FU,logger:RU.default,log:RU.default.log,registerHelper:function(e,t){if(PU.toString.call(e)===LU){if(t)throw new IU.default("Arg not supported with multiple helpers");PU.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(PU.toString.call(e)===LU)PU.extend(this.partials,e);else{if(void 0===t)throw new IU.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(PU.toString.call(e)===LU){if(t)throw new IU.default("Arg not supported with multiple decorators");PU.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){MU.resetLoggedProperties()}};var jU=RU.default.log;Rj.log=jU,Rj.createFrame=PU.createFrame,Rj.logger=RU.default;var UU={exports:{}};!function(e,t){function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default}(UU,UU.exports);var VU=UU.exports,BU={},$U={};$U.__esModule=!0,$U.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}},BU.__esModule=!0,BU.checkRevision=function(e){var t=e&&e[0]||1,r=HU.COMPILER_REVISION;if(t>=HU.LAST_COMPATIBLE_COMPILER_REVISION&&t<=HU.COMPILER_REVISION)return;if(t<HU.LAST_COMPATIBLE_COMPILER_REVISION){var n=HU.REVISION_CHANGES[r],a=HU.REVISION_CHANGES[t];throw new qU.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+a+").")}throw new qU.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},BU.template=function(e,t){if(!t)throw new qU.default("No environment passed to template");if(!e||!e.main)throw new qU.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0];var n={strict:function(e,t,r){if(!e||!(t in e))throw new qU.default('"'+t+'" not defined in '+e,{loc:r});return n.lookupProperty(e,t)},lookupProperty:function(e,t){var r=e[t];return null==r||Object.prototype.hasOwnProperty.call(e,t)||WU.resultIsAllowed(r,n.protoAccessControl,t)?r:void 0},lookup:function(e,t){for(var r=e.length,a=0;a<r;a++){if(null!=(e[a]&&n.lookupProperty(e[a],t)))return e[a][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:zU.escapeExpression,invokePartial:function(r,n,a){a.hash&&(n=zU.extend({},n,a.hash),a.ids&&(a.ids[0]=!0)),r=t.VM.resolvePartial.call(this,r,n,a);var i=zU.extend({},a,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),s=t.VM.invokePartial.call(this,r,n,i);if(null==s&&t.compile&&(a.partials[a.name]=t.compile(r,e.compilerOptions,t),s=a.partials[a.name](n,i)),null!=s){if(a.indent){for(var o=s.split("\n"),d=0,l=o.length;d<l&&(o[d]||d+1!==l);d++)o[d]=a.indent+o[d];s=o.join("\n")}return s}throw new qU.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,a){var i=this.programs[e],s=this.fn(e);return t||a||n||r?i=ZU(this,e,s,t,r,n,a):i||(i=this.programs[e]=ZU(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=zU.extend({},t,e)),r},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=r.data;a._setup(r),!r.partial&&e.useData&&(i=function(e,t){t&&"root"in t||((t=t?HU.createFrame(t):{}).root=e);return t}(t,i));var s=void 0,o=e.useBlockParams?[]:void 0;function d(t){return""+e.main(n,t,n.helpers,n.partials,i,o,s)}return e.useDepths&&(s=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(d=YU(e.main,d,n,r.depths||[],i,o))(t,r)}return a.isTop=!0,a._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var i=zU.extend({},t.helpers,a.helpers);!function(e,t){Object.keys(e).forEach((function(r){var n=e[r];e[r]=function(e,t){var r=t.lookupProperty;return GU.wrapHelper(e,(function(e){return zU.extend({lookupProperty:r},e)}))}(n,t)}))}(i,n),n.helpers=i,e.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=zU.extend({},t.decorators,a.decorators)),n.hooks={},n.protoAccessControl=WU.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||r;KU.moveHelperToHooks(n,"helperMissing",s),KU.moveHelperToHooks(n,"blockHelperMissing",s)}},a._child=function(t,r,a,i){if(e.useBlockParams&&!a)throw new qU.default("must pass block params");if(e.useDepths&&!i)throw new qU.default("must pass parent depths");return ZU(n,t,e[t],r,0,a,i)},a},BU.wrapProgram=ZU,BU.resolvePartial=function(e,t,r){e?e.call||r.name||(r.name=e,e=r.partials[e]):e="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name];return e},BU.invokePartial=function(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var a=void 0;r.fn&&r.fn!==JU&&function(){r.data=HU.createFrame(r.data);var e=r.fn;a=r.data["partial-block"]=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return r.data=HU.createFrame(r.data),r.data["partial-block"]=n,e(t,r)},e.partials&&(r.partials=zU.extend({},r.partials,e.partials))}();void 0===e&&a&&(e=a);if(void 0===e)throw new qU.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},BU.noop=JU;var zU=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(Mj),qU=function(e){return e&&e.__esModule?e:{default:e}}(Hj),HU=Rj,KU=Kj,GU=$U,WU=EU;function ZU(e,t,r,n,a,i,s){function o(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),r(e,t,e.helpers,e.partials,a.data||n,i&&[a.blockParams].concat(i),o)}return(o=YU(r,o,e,s,n,i)).program=t,o.depth=s?s.length:0,o.blockParams=a||0,o}function JU(){return""}function YU(e,t,r,n,a,i){if(e.decorator){var s={};t=e.decorator(t,s,r,n&&n[0],a,i,n),zU.extend(t,s)}return t}var XU={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){var t=void 0!==tv?tv:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}(XU,XU.exports);var QU=XU.exports;!function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}t.__esModule=!0;var a=n(Rj),i=r(VU),s=r(Hj),o=n(Mj),d=n(BU),l=r(QU);function u(){var e=new a.HandlebarsEnvironment;return o.extend(e,a),e.SafeString=i.default,e.Exception=s.default,e.Utils=o,e.escapeExpression=o.escapeExpression,e.VM=d,e.template=function(t){return d.template(t,e)},e}var p=u();p.create=u,l.default(p),p.default=p,t.default=p,e.exports=t.default}(Dj,Dj.exports);var eV=Dj.exports,tV={exports:{}};!function(e,t){t.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};t.default=r,e.exports=t.default}(tV,tV.exports);var rV=tV.exports,nV={},aV={exports:{}};!function(e,t){t.__esModule=!0;var r=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,r,n,a,i,s){var o=i.length-1;switch(a){case 1:return i[o-1];case 2:this.$=n.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(i[o]),strip:n.stripFlags(i[o],i[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:n.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var d=n.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),l=n.prepareProgram([d],i[o-1].loc);l.chained=!0,this.$={strip:i[o-2].strip,program:l,chain:!0};break;case 21:this.$={path:i[o-1],strip:n.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=n.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],n.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:n.stripFlags(i[o-4],i[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:n.stripFlags(i[o-4],i[o])};break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(i[o-2]),value:i[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(i[o-1]);break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,i[o],this._$);break;case 43:this.$=n.preparePath(!1,i[o],this._$);break;case 44:i[o-2].push({part:n.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 45:this.$=[{part:n.id(i[o]),original:i[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:i[o-1].push(i[o]);break;case 98:case 100:this.$=[i[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,r=[0],n=[null],a=[],i=this.table,s="",o=0,d=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;a.push(l);var u=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,c,m,h,f,g,y,v,w,b={};;){if(c=r[r.length-1],this.defaultActions[c]?m=this.defaultActions[c]:(null==p&&(w=void 0,"number"!=typeof(w=t.lexer.lex()||1)&&(w=t.symbols_[w]||w),p=w),m=i[c]&&i[c][p]),void 0===m||!m.length||!m[0]){var S="";for(f in v=[],i[c])this.terminals_[f]&&f>2&&v.push("'"+this.terminals_[f]+"'");S=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(S,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:l,expected:v})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+c+", token: "+p);switch(m[0]){case 1:r.push(p),n.push(this.lexer.yytext),a.push(this.lexer.yylloc),r.push(m[1]),p=null,d=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,l=this.lexer.yylloc;break;case 2:if(g=this.productions_[m[1]][1],b.$=n[n.length-g],b._$={first_line:a[a.length-(g||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(g||1)].first_column,last_column:a[a.length-1].last_column},u&&(b._$.range=[a[a.length-(g||1)].range[0],a[a.length-1].range[1]]),void 0!==(h=this.performAction.call(b,s,d,o,this.yy,m[1],n,a)))return h;g&&(r=r.slice(0,-1*g*2),n=n.slice(0,-1*g),a=a.slice(0,-1*g)),r.push(this.productions_[m[1]][0]),n.push(b.$),a.push(b._$),y=i[r[r.length-2]][r[r.length-1]],r.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,r,n,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(r=this._input.match(this.rules[i[s]]))||t&&!(r[0].length>t[0].length)||(t=r,n=s,this.options.flex));s++);return t?((a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,n){function a(e,r){return t.yytext=t.yytext.substring(e,t.yyleng-r+e)}switch(r){case 0:if("\\\\"===t.yytext.slice(-2)?(a(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(a(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(a(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=a(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=a(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function r(){this.yy={}}return e.lexer=t,r.prototype=e,e.Parser=r,new r}();t.default=r,e.exports=t.default}(aV,aV.exports);var iV=aV.exports,sV={exports:{}},oV={exports:{}};!function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(Hj);function n(){this.parents=[]}function a(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function i(e){a.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function s(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}n.prototype={constructor:n,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!n.prototype[a.type])throw new r.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new r.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:a,Decorator:a,BlockStatement:i,DecoratorBlock:i,PartialStatement:s,PartialBlockStatement:function(e){s.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=n,e.exports=t.default}(oV,oV.exports);var dV=oV.exports;!function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(dV);function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function a(e,t,r){void 0===t&&(t=e.length);var n=e[t-1],a=e[t-2];return n?"ContentStatement"===n.type?(a||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function i(e,t,r){void 0===t&&(t=-1);var n=e[t+1],a=e[t+2];return n?"ContentStatement"===n.type?(a||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function s(e,t,r){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var a=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==a}}function o(e,t,r){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var a=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==a,n.leftStripped}}n.prototype=new r.default,n.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,d=0,l=n.length;d<l;d++){var u=n[d],p=this.accept(u);if(p){var c=a(n,d,r),m=i(n,d,r),h=p.openStandalone&&c,f=p.closeStandalone&&m,g=p.inlineStandalone&&c&&m;p.close&&s(n,d,!0),p.open&&o(n,d,!0),t&&g&&(s(n,d),o(n,d)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(n[d-1].original)[1])),t&&h&&(s((u.program||u.inverse).body),o(n,d)),t&&f&&(s(n,d),o((u.inverse||u.program).body))}}return e},n.prototype.BlockStatement=n.prototype.DecoratorBlock=n.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,d=r;if(r&&r.chained)for(n=r.body[0].program;d.chained;)d=d.body[d.body.length-1].program;var l={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:i(t.body),closeStandalone:a((n||t).body)};if(e.openStrip.close&&s(t.body,null,!0),r){var u=e.inverseStrip;u.open&&o(t.body,null,!0),u.close&&s(n.body,null,!0),e.closeStrip.open&&o(d.body,null,!0),!this.options.ignoreStandalone&&a(t.body)&&i(n.body)&&(o(t.body),s(n.body))}else e.closeStrip.open&&o(t.body,null,!0);return l},n.prototype.Decorator=n.prototype.MustacheStatement=function(e){return e.strip},n.prototype.PartialStatement=n.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=n,e.exports=t.default}(sV,sV.exports);var lV=sV.exports,uV={};uV.__esModule=!0,uV.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},uV.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},uV.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},uV.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},uV.preparePath=function(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",a=[],i=0,s=0,o=t.length;s<o;s++){var d=t[s].part,l=t[s].original!==d;if(n+=(t[s].separator||"")+d,l||".."!==d&&"."!==d&&"this"!==d)a.push(d);else{if(a.length>0)throw new pV.default("Invalid path: "+n,{loc:r});".."===d&&i++}}return{type:"PathExpression",data:e,depth:i,parts:a,original:n,loc:r}},uV.prepareMustache=function(e,t,r,n,a,i){var s=n.charAt(3)||n.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:a,loc:this.locInfo(i)}},uV.prepareRawBlock=function(e,t,r,n){cV(e,r),n=this.locInfo(n);var a={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},uV.prepareBlock=function(e,t,r,n,a,i){n&&n.path&&cV(e,n);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var o=void 0,d=void 0;if(r){if(s)throw new pV.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),d=r.strip,o=r.program}a&&(a=o,o=t,t=a);return{type:s?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:d,closeStrip:n&&n.strip,loc:this.locInfo(i)}},uV.prepareProgram=function(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},uV.preparePartialBlock=function(e,t,r,n){return cV(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}};var pV=function(e){return e&&e.__esModule?e:{default:e}}(Hj);function cV(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new pV.default(e.path.original+" doesn't match "+t,r)}}function mV(e){return e&&e.__esModule?e:{default:e}}nV.__esModule=!0,nV.parseWithoutProcessing=wV,nV.parse=function(e,t){var r=wV(e,t);return new fV.default(t).accept(r)};var hV=mV(iV),fV=mV(lV),gV=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(uV),yV=Mj;nV.parser=hV.default;var vV={};function wV(e,t){return"Program"===e.type?e:(hV.default.yy=vV,vV.locInfo=function(e){return new vV.SourceLocation(t&&t.srcName,e)},hV.default.parse(e))}yV.extend(vV,gV);var bV={};function SV(e){return e&&e.__esModule?e:{default:e}}bV.__esModule=!0,bV.Compiler=NV,bV.precompile=function(e,t,r){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new EV.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0);t.compat&&(t.useDepths=!0);var n=r.parse(e,t),a=(new r.Compiler).compile(n,t);return(new r.JavaScriptCompiler).compile(a,t)},bV.compile=function(e,t,r){void 0===t&&(t={});if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new EV.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=_V.extend({},t))||(t.data=!0);t.compat&&(t.useDepths=!0);var n=void 0;function a(){var n=r.parse(e,t),a=(new r.Compiler).compile(n,t),i=(new r.JavaScriptCompiler).compile(a,t,void 0,!0);return r.template(i)}function i(e,t){return n||(n=a()),n.call(this,e,t)}return i._setup=function(e){return n||(n=a()),n._setup(e)},i._child=function(e,t,r,i){return n||(n=a()),n._child(e,t,r,i)},i};var EV=SV(Hj),_V=Mj,xV=SV(rV),CV=[].slice;function NV(){}function kV(e,t){if(e===t)return!0;if(_V.isArray(e)&&_V.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!kV(e[r],t[r]))return!1;return!0}}function TV(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}NV.prototype={compiler:NV,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var r=0;r<t;r++){var n=this.opcodes[r],a=e.opcodes[r];if(n.opcode!==a.opcode||!kV(n.args,a.args))return!1}t=this.children.length;for(r=0;r<t;r++)if(!this.children[r].equals(e.children[r]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=_V.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),r=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[r]=t,this.useDepths=this.useDepths||t.useDepths,r},accept:function(e){if(!this[e.type])throw new EV.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,r=t.length,n=0;n<r;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===r,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){TV(e);var t=e.program,r=e.inverse;t=t&&this.compileProgram(t),r=r&&this.compileProgram(r);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,r):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,r),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),r=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var r=e.params;if(r.length>1)throw new EV.default("Unsupported number of partial arguments: "+r.length,e);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,a="SubExpression"===e.name.type;a&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var i=e.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,n,i),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){TV(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,r){var n=e.path,a=n.parts[0],i=null!=t||null!=r;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",r),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,r){var n=this.setupFullMustacheParams(e,t,r),a=e.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",n.length,i);else{if(this.options.knownHelpersOnly)throw new EV.default("You specified knownHelpersOnly, but used the unknown helper "+i,e);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",n.length,a.original,xV.default.helpers.simpleId(a))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],r=xV.default.helpers.scopedId(e),n=!e.depth&&!r&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,r):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,r=0,n=t.length;for(this.opcode("pushHash");r<n;r++)this.pushParam(t[r].value);for(;r--;)this.opcode("assignToHash",t[r].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:CV.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=xV.default.helpers.simpleId(e.path),r=t&&!!this.blockParamIndex(e.path.parts[0]),n=!r&&xV.default.helpers.helperExpression(e),a=!r&&(n||t);if(a&&!n){var i=e.path.parts[0],s=this.options;s.knownHelpers[i]?n=!0:s.knownHelpersOnly&&(a=!1)}return n?"helper":a?"ambiguous":"simple"},pushParams:function(e){for(var t=0,r=e.length;t<r;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var r=void 0;if(!e.parts||xV.default.helpers.scopedId(e)||e.depth||(r=this.blockParamIndex(e.parts[0])),r){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,r,n){var a=e.params;return this.pushParams(a),this.opcode("pushProgram",t),this.opcode("pushProgram",r),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),a},blockParamIndex:function(e){for(var t=0,r=this.options.blockParams.length;t<r;t++){var n=this.options.blockParams[t],a=n&&_V.indexOf(n,e);if(n&&a>=0)return[t,a]}}};var AV,PV,IV={exports:{}},OV={exports:{}},DV={},RV={},MV={},LV={};function FV(){if(AV)return LV;AV=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return LV.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},LV.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},LV}function jV(){if(PV)return MV;PV=1;var e=FV();return MV.encode=function(t){var r,n="",a=function(e){return e<0?1+(-e<<1):0+(e<<1)}(t);do{r=31&a,(a>>>=5)>0&&(r|=32),n+=e.encode(r)}while(a>0);return n},MV.decode=function(t,r,n){var a,i,s,o,d=t.length,l=0,u=0;do{if(r>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=e.decode(t.charCodeAt(r++))))throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(32&i),l+=(i&=31)<<u,u+=5}while(a);n.value=(o=(s=l)>>1,1==(1&s)?-o:o),n.rest=r},MV}var UV,VV={};function BV(){return UV||(UV=1,function(e){e.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(t){var r=t,i=n(t);if(i){if(!i.path)return t;r=i.path}for(var s,o=e.isAbsolute(r),d=r.split(/\/+/),l=0,u=d.length-1;u>=0;u--)"."===(s=d[u])?d.splice(u,1):".."===s?l++:l>0&&(""===s?(d.splice(u+1,l),l=0):(d.splice(u,2),l--));return""===(r=d.join("/"))&&(r=o?"/":"."),i?(i.path=r,a(i)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var s=n(t),o=n(e);if(o&&(e=o.path||"/"),s&&!s.scheme)return o&&(s.scheme=o.scheme),a(s);if(s||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var d="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=d,a(o)):d}e.urlParse=n,e.urlGenerate=a,e.normalize=i,e.join=s,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function d(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=o?d:function(e){return l(e)?"$"+e:e},e.fromSetString=o?d:function(e){return l(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,r){var n=u(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:u(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var o=n(r);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var d=o.path.lastIndexOf("/");d>=0&&(o.path=o.path.substring(0,d+1))}t=s(a(o),t)}return i(t)}}(VV)),VV}var $V,zV={};function qV(){if($V)return zV;$V=1;var e=BV(),t=Object.prototype.hasOwnProperty,r="undefined"!=typeof Map;function n(){this._array=[],this._set=r?new Map:Object.create(null)}return n.fromArray=function(e,t){for(var r=new n,a=0,i=e.length;a<i;a++)r.add(e[a],t);return r},n.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(n,a){var i=r?n:e.toSetString(n),s=r?this.has(n):t.call(this._set,i),o=this._array.length;s&&!a||this._array.push(n),s||(r?this._set.set(n,o):this._set[i]=o)},n.prototype.has=function(n){if(r)return this._set.has(n);var a=e.toSetString(n);return t.call(this._set,a)},n.prototype.indexOf=function(n){if(r){var a=this._set.get(n);if(a>=0)return a}else{var i=e.toSetString(n);if(t.call(this._set,i))return this._set[i]}throw new Error('"'+n+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},n.prototype.toArray=function(){return this._array.slice()},zV.ArraySet=n,zV}var HV,KV,GV={};function WV(){if(HV)return GV;HV=1;var e=BV();function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},t.prototype.add=function(t){var r,n,a,i,s,o;r=this._last,n=t,a=r.generatedLine,i=n.generatedLine,s=r.generatedColumn,o=n.generatedColumn,i>a||i==a&&o>=s||e.compareByGeneratedPositionsInflated(r,n)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},GV.MappingList=t,GV}function ZV(){if(KV)return RV;KV=1;var e=jV(),t=BV(),r=qV().ArraySet,n=WV().MappingList;function a(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new n,this._sourcesContents=null}return a.prototype._version=3,a.fromSourceMap=function(e){var r=e.sourceRoot,n=new a({file:e.file,sourceRoot:r});return e.eachMapping((function(e){var a={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(a.source=e.source,null!=r&&(a.source=t.relative(r,a.source)),a.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(a.name=e.name)),n.addMapping(a)})),e.sources.forEach((function(a){var i=a;null!==r&&(i=t.relative(r,a)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(a);null!=s&&n.setSourceContent(a,s)})),n},a.prototype.addMapping=function(e){var r=t.getArg(e,"generated"),n=t.getArg(e,"original",null),a=t.getArg(e,"source",null),i=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,a,i),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:a,name:i})},a.prototype.setSourceContent=function(e,r){var n=e;null!=this._sourceRoot&&(n=t.relative(this._sourceRoot,n)),null!=r?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,n,a){var i=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var s=this._sourceRoot;null!=s&&(i=t.relative(s,i));var o=new r,d=new r;this._mappings.unsortedForEach((function(r){if(r.source===i&&null!=r.originalLine){var n=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});null!=n.source&&(r.source=n.source,null!=a&&(r.source=t.join(a,r.source)),null!=s&&(r.source=t.relative(s,r.source)),r.originalLine=n.line,r.originalColumn=n.column,null!=n.name&&(r.name=n.name))}var l=r.source;null==l||o.has(l)||o.add(l);var u=r.name;null==u||d.has(u)||d.add(u)}),this),this._sources=o,this._names=d,e.sources.forEach((function(r){var n=e.sourceContentFor(r);null!=n&&(null!=a&&(r=t.join(a,r)),null!=s&&(r=t.relative(s,r)),this.setSourceContent(r,n))}),this)},a.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var r,n,a,i,s=0,o=1,d=0,l=0,u=0,p=0,c="",m=this._mappings.toArray(),h=0,f=m.length;h<f;h++){if(r="",(n=m[h]).generatedLine!==o)for(s=0;n.generatedLine!==o;)r+=";",o++;else if(h>0){if(!t.compareByGeneratedPositionsInflated(n,m[h-1]))continue;r+=","}r+=e.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),r+=e.encode(i-p),p=i,r+=e.encode(n.originalLine-1-l),l=n.originalLine-1,r+=e.encode(n.originalColumn-d),d=n.originalColumn,null!=n.name&&(a=this._names.indexOf(n.name),r+=e.encode(a-u),u=a)),c+=r}return c},a.prototype._generateSourcesContent=function(e,r){return e.map((function(e){if(!this._sourcesContents)return null;null!=r&&(e=t.relative(r,e));var n=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},RV.SourceMapGenerator=a,RV}var JV,YV={},XV={};function QV(){return JV||(JV=1,function(e){function t(r,n,a,i,s,o){var d=Math.floor((n-r)/2)+r,l=s(a,i[d],!0);return 0===l?d:l>0?n-d>1?t(d,n,a,i,s,o):o==e.LEAST_UPPER_BOUND?n<i.length?n:-1:d:d-r>1?t(r,d,a,i,s,o):o==e.LEAST_UPPER_BOUND?d:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,n,a,i){if(0===n.length)return-1;var s=t(-1,n.length,r,n,a,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===a(n[s],n[s-1],!0);)--s;return s}}(XV)),XV}var eB,tB,rB={};function nB(){if(eB)return rB;function e(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function t(r,n,a,i){if(a<i){var s=a-1;e(r,(u=a,p=i,Math.round(u+Math.random()*(p-u))),i);for(var o=r[i],d=a;d<i;d++)n(r[d],o)<=0&&e(r,s+=1,d);e(r,s+1,d);var l=s+1;t(r,n,a,l-1),t(r,n,l+1,i)}var u,p}return eB=1,rB.quickSort=function(e,r){t(e,r,0,e.length-1)},rB}var aB,iB,sB={};function oB(){return iB||(iB=1,DV.SourceMapGenerator=ZV().SourceMapGenerator,DV.SourceMapConsumer=function(){if(tB)return YV;tB=1;var e=BV(),t=QV(),r=qV().ArraySet,n=jV(),a=nB().quickSort;function i(t,r){var n=t;return"string"==typeof t&&(n=e.parseSourceMapInput(t)),null!=n.sections?new d(n,r):new s(n,r)}function s(t,n){var a=t;"string"==typeof t&&(a=e.parseSourceMapInput(t));var i=e.getArg(a,"version"),s=e.getArg(a,"sources"),o=e.getArg(a,"names",[]),d=e.getArg(a,"sourceRoot",null),l=e.getArg(a,"sourcesContent",null),u=e.getArg(a,"mappings"),p=e.getArg(a,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);d&&(d=e.normalize(d)),s=s.map(String).map(e.normalize).map((function(t){return d&&e.isAbsolute(d)&&e.isAbsolute(t)?e.relative(d,t):t})),this._names=r.fromArray(o.map(String),!0),this._sources=r.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(t){return e.computeSourceURL(d,t,n)})),this.sourceRoot=d,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=p}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(t,n){var a=t;"string"==typeof t&&(a=e.parseSourceMapInput(t));var s=e.getArg(a,"version"),o=e.getArg(a,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new r,this._names=new r;var d={line:-1,column:0};this._sections=o.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var r=e.getArg(t,"offset"),a=e.getArg(r,"line"),s=e.getArg(r,"column");if(a<d.line||a===d.line&&s<d.column)throw new Error("Section offsets must be ordered and non-overlapping.");return d=r,{generatedOffset:{generatedLine:a+1,generatedColumn:s+1},consumer:new i(e.getArg(t,"map"),n)}}))}return i.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},i.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(t,r,n){var a,s=r||null;switch(n||i.GENERATED_ORDER){case i.GENERATED_ORDER:a=this._generatedMappings;break;case i.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;a.map((function(t){var r=null===t.source?null:this._sources.at(t.source);return{source:r=e.computeSourceURL(o,r,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,s)},i.prototype.allGeneratedPositionsFor=function(r){var n=e.getArg(r,"line"),a={source:e.getArg(r,"source"),originalLine:n,originalColumn:e.getArg(r,"column",0)};if(a.source=this._findSourceIndex(a.source),a.source<0)return[];var i=[],s=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(void 0===r.column)for(var d=o.originalLine;o&&o.originalLine===d;)i.push({line:e.getArg(o,"generatedLine",null),column:e.getArg(o,"generatedColumn",null),lastColumn:e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==l;)i.push({line:e.getArg(o,"generatedLine",null),column:e.getArg(o,"generatedColumn",null),lastColumn:e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i},YV.SourceMapConsumer=i,s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.prototype._findSourceIndex=function(t){var r,n=t;if(null!=this.sourceRoot&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1},s.fromSourceMap=function(t,n){var i=Object.create(s.prototype),d=i._names=r.fromArray(t._names.toArray(),!0),l=i._sources=r.fromArray(t._sources.toArray(),!0);i.sourceRoot=t._sourceRoot,i.sourcesContent=t._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=t._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map((function(t){return e.computeSourceURL(i.sourceRoot,t,n)}));for(var u=t._mappings.toArray().slice(),p=i.__generatedMappings=[],c=i.__originalMappings=[],m=0,h=u.length;m<h;m++){var f=u[m],g=new o;g.generatedLine=f.generatedLine,g.generatedColumn=f.generatedColumn,f.source&&(g.source=l.indexOf(f.source),g.originalLine=f.originalLine,g.originalColumn=f.originalColumn,f.name&&(g.name=d.indexOf(f.name)),c.push(g)),p.push(g)}return a(i.__originalMappings,e.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),s.prototype._parseMappings=function(t,r){for(var i,s,d,l,u,p=1,c=0,m=0,h=0,f=0,g=0,y=t.length,v=0,w={},b={},S=[],E=[];v<y;)if(";"===t.charAt(v))p++,v++,c=0;else if(","===t.charAt(v))v++;else{for((i=new o).generatedLine=p,l=v;l<y&&!this._charIsMappingSeparator(t,l);l++);if(d=w[s=t.slice(v,l)])v+=s.length;else{for(d=[];v<l;)n.decode(t,v,b),u=b.value,v=b.rest,d.push(u);if(2===d.length)throw new Error("Found a source, but no line and column");if(3===d.length)throw new Error("Found a source and line, but no column");w[s]=d}i.generatedColumn=c+d[0],c=i.generatedColumn,d.length>1&&(i.source=f+d[1],f+=d[1],i.originalLine=m+d[2],m=i.originalLine,i.originalLine+=1,i.originalColumn=h+d[3],h=i.originalColumn,d.length>4&&(i.name=g+d[4],g+=d[4])),E.push(i),"number"==typeof i.originalLine&&S.push(i)}a(E,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,a(S,e.compareByOriginalPositions),this.__originalMappings=S},s.prototype._findMapping=function(e,r,n,a,i,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[a]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[a]);return t.search(e,r,i,s)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(t){var r={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(n>=0){var a=this._generatedMappings[n];if(a.generatedLine===r.generatedLine){var s=e.getArg(a,"source",null);null!==s&&(s=this._sources.at(s),s=e.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=e.getArg(a,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:e.getArg(a,"originalLine",null),column:e.getArg(a,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},s.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var a,i=t;if(null!=this.sourceRoot&&(i=e.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(a=e.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if("file"==a.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!a.path||"/"==a.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(t){var r=e.getArg(t,"source");if((r=this._findSourceIndex(r))<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(a>=0){var s=this._originalMappings[a];if(s.source===n.source)return{line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},YV.BasicSourceMapConsumer=s,d.prototype=Object.create(i.prototype),d.prototype.constructor=i,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),d.prototype.originalPositionFor=function(r){var n={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},a=t.search(n,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[a];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(-1!==n.consumer._findSourceIndex(e.getArg(t,"source"))){var a=n.consumer.generatedPositionFor(t);if(a)return{line:a.line+(n.generatedOffset.generatedLine-1),column:a.column+(n.generatedOffset.generatedLine===a.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var d=s[o],l=i.consumer._sources.at(d.source);l=e.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;d.name&&(u=i.consumer._names.at(d.name),this._names.add(u),u=this._names.indexOf(u));var p={source:l,generatedLine:d.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:d.generatedColumn+(i.generatedOffset.generatedLine===d.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:d.originalLine,originalColumn:d.originalColumn,name:u};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},YV.IndexedSourceMapConsumer=d,YV}().SourceMapConsumer,DV.SourceNode=function(){if(aB)return sB;aB=1;var e=ZV().SourceMapGenerator,t=BV(),r=/(\r?\n)/,n="$$$isSourceNode$$$";function a(e,t,r,a,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[n]=!0,null!=a&&this.add(a)}return a.fromStringWithSourceMap=function(e,n,i){var s=new a,o=e.split(r),d=0,l=function(){return e()+(e()||"");function e(){return d<o.length?o[d++]:void 0}},u=1,p=0,c=null;return n.eachMapping((function(e){if(null!==c){if(!(u<e.generatedLine)){var t=(r=o[d]||"").substr(0,e.generatedColumn-p);return o[d]=r.substr(e.generatedColumn-p),p=e.generatedColumn,m(c,t),void(c=e)}m(c,l()),u++,p=0}for(;u<e.generatedLine;)s.add(l()),u++;if(p<e.generatedColumn){var r=o[d]||"";s.add(r.substr(0,e.generatedColumn)),o[d]=r.substr(e.generatedColumn),p=e.generatedColumn}c=e}),this),d<o.length&&(c&&m(c,l()),s.add(o.splice(d).join(""))),n.sources.forEach((function(e){var r=n.sourceContentFor(e);null!=r&&(null!=i&&(e=t.join(i,e)),s.setSourceContent(e,r))})),s;function m(e,r){if(null===e||void 0===e.source)s.add(r);else{var n=i?t.join(i,e.source):e.source;s.add(new a(e.originalLine,e.originalColumn,n,r,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[n]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[n]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,a=this.children.length;r<a;r++)(t=this.children[r])[n]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[n]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,r){this.sourceContents[t.toSetString(e)]=r},a.prototype.walkSourceContents=function(e){for(var r=0,a=this.children.length;r<a;r++)this.children[r][n]&&this.children[r].walkSourceContents(e);var i=Object.keys(this.sourceContents);for(r=0,a=i.length;r<a;r++)e(t.fromSetString(i[r]),this.sourceContents[i[r]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new e(t),a=!1,i=null,s=null,o=null,d=null;return this.walk((function(e,t){r.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(i===t.source&&s===t.line&&o===t.column&&d===t.name||n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name}),i=t.source,s=t.line,o=t.column,d=t.name,a=!0):a&&(n.addMapping({generated:{line:r.line,column:r.column}}),i=null,a=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(r.line++,r.column=0,l+1===u?(i=null,a=!1):a&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})):r.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:r.code,map:n}},sB.SourceNode=a,sB}().SourceNode),DV}!function(e,t){t.__esModule=!0;var r=Mj,n=void 0;try{var a=oB();n=a.SourceNode}catch(e){}function i(e,t,n){if(r.isArray(e)){for(var a=[],i=0,s=e.length;i<s;i++)a.push(t.wrap(e[i],n));return a}return"boolean"==typeof e||"number"==typeof e?e+"":e}function s(e){this.srcFile=e,this.source=[]}n||((n=function(e,t,r,n){this.src="",n&&this.add(n)}).prototype={add:function(e){r.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){r.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),s.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,r=this.source.length;t<r;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new n(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof n?e:(e=i(e,this,t),new n(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,r){return r=this.generateList(r),this.wrap([e,t?"."+t+"(":"(",r,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,r=[];Object.keys(e).forEach((function(n){var a=i(e[n],t);"undefined"!==a&&r.push([t.quotedString(n),":",a])}));var n=this.generateList(r);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var t=this.empty(),r=0,n=e.length;r<n;r++)r&&t.add(","),t.add(i(e[r],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=s,e.exports=t.default}(OV,OV.exports);var dB=OV.exports;!function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=Rj,a=r(Hj),i=Mj,s=r(dB);function o(e){this.value=e}function d(){}d.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=n.COMPILER_REVISION;return[e,n.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,r){return i.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:r?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,r,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!r,this.context=r||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,s=void 0,o=void 0,d=void 0,l=void 0;for(d=0,l=i.length;d<l;d++)s=i[d],this.source.currentLocation=s.loc,o=o||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var p={compiler:this.compilerInfo(),main:u};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var c=this.context,m=c.programs,h=c.decorators;for(d=0,l=m.length;d<l;d++)m[d]&&(p[d]=m[d],h[d]&&(p[d+"_d"]=h[d],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),n?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName})).map=p.map&&p.map.toString():p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(e){var t=this,r="",n=this.stackVars.concat(this.registers.list);n.length>0&&(r+=", "+n.join(", "));var a=0;Object.keys(this.aliases).forEach((function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(r+=", alias"+ ++a+"="+e,n.children[0]="alias"+a)})),this.lookupPropertyFunctionIsUsed&&(r+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var s=this.mergeSource(r);return e?(i.push(s),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,r=!this.forceBuffer,n=void 0,a=void 0,i=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(a?i.prepend("buffer += "):n=!0,s.add(";"),i=s=void 0),a=!0,t||(r=!1))})),r?i?(i.prepend("return "),s.add(";")):a||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs(e,0,r);var n=this.popStack();r.splice(1,0,n),this.push(this.source.functionCall(t,"call",r))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var r=this.topStack();t.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,r,n){var a=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[a++])),this.resolvePath("context",e,a,t,r)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,r){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,r)},resolvePath:function(e,t,r,n,a){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,r,n){var a=t.popStack(),i=0,s=r.length;e&&s--;for(;i<s;i++)a=t.nameLookup(a,r[i],n);return e?[t.aliasable("container.strict"),"(",a,", ",t.quotedString(r[i]),", ",JSON.stringify(t.source.currentLocation)," )"]:a}(this.options.strict&&a,this,t,e));else for(var s=t.length;r<s;r++)this.replaceStack((function(a){var s=i.nameLookup(a,t[r],e);return n?[" && ",s]:[" != null ? ",s," : ",a]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var r=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(r,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,r){var n=this.popStack(),a=this.setupHelper(e,t),i=[];r&&i.push(a.name),i.push(n),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],o=this.source.functionCall(s,"call",a.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var r=[];r.push(e[0]);for(var n=1;n<e.length;n++)r.push(t,e[n]);return r},invokeKnownHelper:function(e,t){var r=this.setupHelper(e,t);this.push(this.source.functionCall(r.name,"call",r.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var r=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),a=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",r,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,r){var n=[],a=this.setupParams(t,1,n);e&&(t=this.popStack(),delete a.name),r&&(a.indent=JSON.stringify(r)),a.helpers="helpers",a.partials="partials",a.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(a.depths="depths"),a=this.objectLiteral(a),n.push(a),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),r=void 0,n=void 0,a=void 0;this.trackIds&&(a=this.popStack()),this.stringParams&&(n=this.popStack(),r=this.popStack());var i=this.hash;r&&(i.contexts[e]=r),n&&(i.types[e]=n),a&&(i.ids[e]=a),i.values[e]=t},pushId:function(e,t,r){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(r?" + "+JSON.stringify("."+r):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(e,t){for(var r=e.children,n=void 0,a=void 0,i=0,s=r.length;i<s;i++){n=r[i],a=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var d=this.context.programs.length;n.index=d,n.name="program"+d,this.context.programs[d]=a.compile(n,t,this.context,!this.precompile),this.context.decorators[d]=a.decorators,this.context.environments[d]=n,this.useDepths=this.useDepths||a.useDepths,this.useBlockParams=this.useBlockParams||a.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,r=this.context.environments.length;t<r;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],r=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&r.push("blockParams"),this.useDepths&&r.push("depths"),"container.program("+r.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof o||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new o(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],r=void 0,n=void 0,i=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof o)t=["(",r=[s.value]],i=!0;else{n=!0;var d=this.incrStack();t=["((",this.push(d)," = ",s,")"],r=this.topStack()}var l=e.call(this,r);i||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,r=e.length;t<r;t++){var n=e[t];if(n instanceof o)this.compileStack.push(n);else{var a=this.incrStack();this.pushSource([a," = ",n,";"]),this.compileStack.push(a)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),r=(t?this.inlineStack:this.compileStack).pop();if(!e&&r instanceof o)return r.value;if(!t){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return r},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof o?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,r){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,r),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,r){var n={},a=[],i=[],s=[],o=!r,d=void 0;o&&(r=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var l=this.popStack(),u=this.popStack();(u||l)&&(n.fn=u||"container.noop",n.inverse=l||"container.noop");for(var p=t;p--;)d=this.popStack(),r[p]=d,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(i[p]=this.popStack(),a[p]=this.popStack());return o&&(n.args=this.source.generateArray(r)),this.trackIds&&(n.ids=this.source.generateArray(s)),this.stringParams&&(n.types=this.source.generateArray(i),n.contexts=this.source.generateArray(a)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,r,n){var a=this.setupParams(e,t,r);return a.loc=JSON.stringify(this.source.currentLocation),a=this.objectLiteral(a),n?(this.useRegister("options"),r.push("options"),["options=",a]):r?(r.push(a),""):a}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=d.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0}(),d.isValidJavaScriptVariableName=function(e){return!d.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=d,e.exports=t.default}(IV,IV.exports);var lB=IV.exports;!function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(eV),a=r(rV),i=nV,s=bV,o=r(lB),d=r(dV),l=r(QU),u=n.default.create;function p(){var e=u();return e.compile=function(t,r){return s.compile(t,r,e)},e.precompile=function(t,r){return s.precompile(t,r,e)},e.AST=a.default,e.Compiler=s.Compiler,e.JavaScriptCompiler=o.default,e.Parser=i.parser,e.parse=i.parse,e.parseWithoutProcessing=i.parseWithoutProcessing,e}var c=p();c.create=p,l.default(c),c.Visitor=d.default,c.default=c,t.default=c,e.exports=t.default}(Oj,Oj.exports);var uB=Oj.exports,pB={};pB.__esModule=!0,pB.print=function(e){return(new mB).accept(e)},pB.PrintVisitor=mB;var cB=function(e){return e&&e.__esModule?e:{default:e}}(dV);function mB(){this.padding=0}mB.prototype=new cB.default,mB.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+"\n"},mB.prototype.Program=function(e){var t="",r=e.body,n=void 0,a=void 0;if(e.blockParams){var i="BLOCK PARAMS: [";for(n=0,a=e.blockParams.length;n<a;n++)i+=" "+e.blockParams[n];i+=" ]",t+=this.pad(i)}for(n=0,a=r.length;n<a;n++)t+=this.accept(r[n]);return this.padding--,t},mB.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")},mB.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")},mB.prototype.BlockStatement=mB.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad(("DecoratorBlock"===e.type?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t},mB.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")},mB.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")},mB.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")},mB.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")},mB.prototype.SubExpression=function(e){for(var t,r=e.params,n=[],a=0,i=r.length;a<i;a++)n.push(this.accept(r[a]));return r="["+n.join(", ")+"]",t=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+r+t},mB.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t},mB.prototype.StringLiteral=function(e){return'"'+e.value+'"'},mB.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"},mB.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"},mB.prototype.UndefinedLiteral=function(){return"UNDEFINED"},mB.prototype.NullLiteral=function(){return"NULL"},mB.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,a=t.length;n<a;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"},mB.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)};var hB=uB.default,fB=pB;hB.PrintVisitor=fB.PrintVisitor,hB.print=fB.print;var gB=hB;function yB(e,t){var r=m.readFileSync(t,"utf8");e.exports=hB.compile(r)}void 0!==Ij&&Ij.extensions&&(Ij.extensions[".handlebars"]=yB,Ij.extensions[".hbs"]=yB);var vB=rv(gB),wB={exports:{}};!function(e,t){var r="undefined"!=typeof self?self:tv,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,a="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,s="ArrayBuffer"in e;if(s)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function f(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&a&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=l(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[l(e)]},c.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},c.prototype.set=function(e,t){this.map[l(e)]=u(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},c.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},c.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(c.prototype[Symbol.iterator]=c.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){var r,n,a=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];S.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,r){return new Promise((function(n,i){var s=new w(e,r);if(s.signal&&s.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function d(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;n(new S(a,r))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},o.open(s.method,s.url,!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&a&&(o.responseType="blob"),s.headers.forEach((function(e,t){o.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",d),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",d)}),o.send(void 0===s._bodyInit?null:s._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=c,e.Request=w,e.Response=S),t.Headers=c,t.Request=w,t.Response=S,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=n;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(wB,wB.exports);var bB=rv(wB.exports),SB=Object.prototype.hasOwnProperty;function EB(){return""}function _B(e){return e.$$layoutStack||(e.$$layoutStack=[])}function xB(e){for(var t=_B(e);t.length;)t.shift()(e)}function CB(e){return e.$$layoutActions||(e.$$layoutActions={})}function NB(e,t){var r=CB(e);return r[t]||(r[t]=[])}function kB(e,t){var r=this;function n(){return t.fn(r,t.options)}switch(t.mode){case"append":return e+n();case"prepend":return n()+e;case"replace":return n();default:return e}}function TB(e){for(var t,r,n=arguments.length,a=1;a<n;a++)if(t=arguments[a])for(r in t)SB.call(t,r)&&(e[r]=t[r]);return e}function AB(e){var t={extend:function(t,r,n){arguments.length<3&&(n=r,r=null);var a=(n=n||{}).fn||EB,i=TB({},this,r,n.hash),s=e.createFrame(n.data),o=e.partials[t];if(null==o)throw new Error("Missing partial: '"+t+"'");return"function"!=typeof o&&(o=e.compile(o)),_B(i).push(a),o(i,{data:s})},embed:function(){var e=TB({},this||{});return e.$$layoutStack=null,e.$$layoutActions=null,t.extend.apply(e,arguments)},block:function(t,r){var n=(r=r||{}).fn||EB,a=e.createFrame(r.data),i=this||{};return xB(i),NB(i,t).reduce(kB.bind(i),n(i,{data:a}))},content:function(t,r){var n=(r=r||{}).fn,a=e.createFrame(r.data),i=(r.hash||{}).mode||"replace",s=this||{};if(xB(s),!n)return t in CB(s);NB(s,t).push({options:{data:a},mode:i.toLowerCase(),fn:n})}};return t}AB.register=function(e){var t=AB(e);return e.registerHelper(t),t};var PB=rv(AB);class IB{prefix;suffix;maxCacheTemplates;cache;constructor(e="",t="",r=10){this.prefix=e,this.suffix=t,this.maxCacheTemplates=r,this.maxCacheTemplates>0&&(this.cache=new Map)}async renderTemplate(e,t,r=null){return this.renderRemoteTemplate(e,t,r)}async renderRemoteTemplate(e,t,r=null){const n=await this.fetchTemplate(e),a=r?await this.fetchTemplateText(r):null;a&&(await PB.register(vB),vB.registerPartial(r,a));return n?n(t||{}):null}async renderTemplateDirect(e,t,r=null){return vB.compile(e)(t)}async fetchTemplate(e){let t=null;try{if(this.cache&&this.cache.has(e))_n.silly("Cache hit for template : %s",e),t=this.cache.get(e);else{_n.debug("Cache miss for template : %s",e);const r=await this.fetchTemplateText(e);r&&(t=vB.compile(r),this.cache&&t&&(this.cache.set(e,t),this.cache.size>this.maxCacheTemplates&&this.cache.delete(Array.from(this.cache.keys())[0])))}}catch(r){_n.warn("Could not fetch and compile template : %s : %s",e,r,r),t=null}return t}async fetchTemplateText(e){let t=null;const r=En.trimToEmpty(this.prefix)+e+En.trimToEmpty(this.suffix);try{const e=await bB(r);t=await e.text()}catch(e){_n.warn("Could not fetch url : %s : %s",r,e,e),t=null}return t}}class OB extends Wh{constructor(e){super(e),Object.setPrototypeOf(this,OB.prototype)}}class DB extends OB{constructor(e){super({name:"AuthorizationErrorException",$fault:"client",...e}),this.name="AuthorizationErrorException",this.$fault="client",Object.setPrototypeOf(this,DB.prototype)}}class RB extends OB{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,RB.prototype)}}class MB extends OB{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,MB.prototype)}}class LB extends OB{constructor(e){super({name:"NotFoundException",$fault:"client",...e}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,LB.prototype)}}class FB extends OB{constructor(e){super({name:"InvalidSecurityException",$fault:"client",...e}),this.name="InvalidSecurityException",this.$fault="client",Object.setPrototypeOf(this,FB.prototype)}}class jB extends OB{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,jB.prototype),this.Message=e.Message}}class UB extends OB{constructor(e){super({name:"EndpointDisabledException",$fault:"client",...e}),this.name="EndpointDisabledException",this.$fault="client",Object.setPrototypeOf(this,UB.prototype)}}class VB extends OB{constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),this.name="InvalidParameterValueException",this.$fault="client",Object.setPrototypeOf(this,VB.prototype)}}class BB extends OB{constructor(e){super({name:"KMSAccessDeniedException",$fault:"client",...e}),this.name="KMSAccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,BB.prototype)}}class $B extends OB{constructor(e){super({name:"KMSDisabledException",$fault:"client",...e}),this.name="KMSDisabledException",this.$fault="client",Object.setPrototypeOf(this,$B.prototype)}}class zB extends OB{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,zB.prototype)}}class qB extends OB{constructor(e){super({name:"KMSNotFoundException",$fault:"client",...e}),this.name="KMSNotFoundException",this.$fault="client",Object.setPrototypeOf(this,qB.prototype)}}class HB extends OB{constructor(e){super({name:"KMSOptInRequired",$fault:"client",...e}),this.name="KMSOptInRequired",this.$fault="client",Object.setPrototypeOf(this,HB.prototype)}}class KB extends OB{constructor(e){super({name:"KMSThrottlingException",$fault:"client",...e}),this.name="KMSThrottlingException",this.$fault="client",Object.setPrototypeOf(this,KB.prototype)}}class GB extends OB{constructor(e){super({name:"PlatformApplicationDisabledException",$fault:"client",...e}),this.name="PlatformApplicationDisabledException",this.$fault="client",Object.setPrototypeOf(this,GB.prototype)}}const WB=async(e,t)=>{const r={...e,body:await R$(e.body,t)},n=L$(e,r.body);switch(n){case"AuthorizationError":case"com.amazonaws.sns#AuthorizationErrorException":throw await ZB(r);case"EndpointDisabled":case"com.amazonaws.sns#EndpointDisabledException":throw await JB(r);case"InternalError":case"com.amazonaws.sns#InternalErrorException":throw await YB(r);case"InvalidParameter":case"com.amazonaws.sns#InvalidParameterException":throw await XB(r);case"InvalidSecurity":case"com.amazonaws.sns#InvalidSecurityException":throw await e$(r);case"KMSAccessDenied":case"com.amazonaws.sns#KMSAccessDeniedException":throw await t$(r);case"KMSDisabled":case"com.amazonaws.sns#KMSDisabledException":throw await r$(r);case"KMSInvalidState":case"com.amazonaws.sns#KMSInvalidStateException":throw await n$(r);case"KMSNotFound":case"com.amazonaws.sns#KMSNotFoundException":throw await a$(r);case"KMSOptInRequired":case"com.amazonaws.sns#KMSOptInRequired":throw await i$(r);case"KMSThrottling":case"com.amazonaws.sns#KMSThrottlingException":throw await s$(r);case"NotFound":case"com.amazonaws.sns#NotFoundException":throw await o$(r);case"ParameterValueInvalid":case"com.amazonaws.sns#InvalidParameterValueException":throw await QB(r);case"PlatformApplicationDisabled":case"com.amazonaws.sns#PlatformApplicationDisabledException":throw await d$(r);case"ValidationException":case"com.amazonaws.sns#ValidationException":throw await l$(r);default:const t=r.body;return P$({output:e,parsedBody:t.Error,errorCode:n})}},ZB=async(e,t)=>{const r=e.body,n=c$(r.Error),a=new DB({$metadata:T$(e),...n});return Zh(a,r)},JB=async(e,t)=>{const r=e.body,n=m$(r.Error),a=new UB({$metadata:T$(e),...n});return Zh(a,r)},YB=async(e,t)=>{const r=e.body,n=h$(r.Error),a=new RB({$metadata:T$(e),...n});return Zh(a,r)},XB=async(e,t)=>{const r=e.body,n=f$(r.Error),a=new MB({$metadata:T$(e),...n});return Zh(a,r)},QB=async(e,t)=>{const r=e.body,n=g$(r.Error),a=new VB({$metadata:T$(e),...n});return Zh(a,r)},e$=async(e,t)=>{const r=e.body,n=y$(r.Error),a=new FB({$metadata:T$(e),...n});return Zh(a,r)},t$=async(e,t)=>{const r=e.body,n=v$(r.Error),a=new BB({$metadata:T$(e),...n});return Zh(a,r)},r$=async(e,t)=>{const r=e.body,n=w$(r.Error),a=new $B({$metadata:T$(e),...n});return Zh(a,r)},n$=async(e,t)=>{const r=e.body,n=b$(r.Error),a=new zB({$metadata:T$(e),...n});return Zh(a,r)},a$=async(e,t)=>{const r=e.body,n=S$(r.Error),a=new qB({$metadata:T$(e),...n});return Zh(a,r)},i$=async(e,t)=>{const r=e.body,n=E$(r.Error),a=new HB({$metadata:T$(e),...n});return Zh(a,r)},s$=async(e,t)=>{const r=e.body,n=_$(r.Error),a=new KB({$metadata:T$(e),...n});return Zh(a,r)},o$=async(e,t)=>{const r=e.body,n=x$(r.Error),a=new LB({$metadata:T$(e),...n});return Zh(a,r)},d$=async(e,t)=>{const r=e.body,n=C$(r.Error),a=new GB({$metadata:T$(e),...n});return Zh(a,r)},l$=async(e,t)=>{const r=e.body,n=k$(r.Error),a=new jB({$metadata:T$(e),...n});return Zh(a,r)},u$=(e,t)=>{const r={};return null!=e.DataType&&(r.DataType=e.DataType),null!=e.StringValue&&(r.StringValue=e.StringValue),null!=e.BinaryValue&&(r.BinaryValue=t.base64Encoder(e.BinaryValue)),r},p$=(e,t)=>{const r={};if(null!=e.TopicArn&&(r.TopicArn=e.TopicArn),null!=e.TargetArn&&(r.TargetArn=e.TargetArn),null!=e.PhoneNumber&&(r.PhoneNumber=e.PhoneNumber),null!=e.Message&&(r.Message=e.Message),null!=e.Subject&&(r.Subject=e.Subject),null!=e.MessageStructure&&(r.MessageStructure=e.MessageStructure),null!=e.MessageAttributes){const n=((e,t)=>{const r={};let n=1;return Object.keys(e).filter((t=>null!=e[t])).forEach((a=>{r[`entry.${n}.Name`]=a;const i=u$(e[a],t);Object.entries(i).forEach((([e,t])=>{r[`entry.${n}.Value.${e}`]=t})),n++})),r})(e.MessageAttributes,t);Object.entries(n).forEach((([e,t])=>{r[`MessageAttributes.${e}`]=t}))}return null!=e.MessageDeduplicationId&&(r.MessageDeduplicationId=e.MessageDeduplicationId),null!=e.MessageGroupId&&(r.MessageGroupId=e.MessageGroupId),r},c$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},m$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},h$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},f$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},g$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},y$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},v$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},w$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},b$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},S$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},E$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},_$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},x$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},C$=(e,t)=>{const r={};return void 0!==e.message&&(r.message=gh(e.message)),r},N$=(e,t)=>{const r={};return void 0!==e.MessageId&&(r.MessageId=gh(e.MessageId)),void 0!==e.SequenceNumber&&(r.SequenceNumber=gh(e.SequenceNumber)),r},k$=(e,t)=>{const r={};return void 0!==e.Message&&(r.Message=gh(e.Message)),r},T$=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),A$=(e,t)=>((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(e,t).then((e=>t.utf8Encoder(e))),P$=Jh(OB),I$=async(e,t,r,n,a)=>{const{hostname:i,protocol:s="https",port:o,path:d}=await e.endpoint(),l={protocol:s,hostname:i,port:o,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+r:d+r,headers:t};return void 0!==n&&(l.hostname=n),void 0!==a&&(l.body=a),new Sf(l)},O$={"content-type":"application/x-www-form-urlencoded"},D$=(e,t)=>A$(e,t).then((e=>{if(e.length){const t=new ZE.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",a=Object.keys(r)[0],i=r[a];return i[n]&&(i[a]=i[n],delete i[n]),tf(i)}return{}})),R$=async(e,t)=>{const r=await D$(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},M$=e=>Object.entries(e).map((([e,t])=>Qh(e)+"="+Qh(t))).join("&"),L$=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class F$ extends th{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(jf(t,this.serialize,this.deserialize)),this.middlewareStack.use(Vf(t,F$.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:a}=t,i={logger:a,clientName:"SNSClient",commandName:"PublishCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=O$;let n;return n=M$({...p$(e,t),Action:"Publish",Version:"2010-03-31"}),I$(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return WB(e,t);const r=await D$(e.body,t);let n={};return n=N$(r.PublishResult),{$metadata:T$(e),...n}})(e,t)}}var j$="3.332.0";const U$="required",V$="fn",B$="argv",$$="ref",z$="isSet",q$="tree",H$="error",K$="endpoint",G$="PartitionResult",W$="stringEquals",Z$={[U$]:!1,type:"String"},J$={[U$]:!0,default:!1,type:"Boolean"},Y$={[$$]:"Endpoint"},X$={[V$]:"booleanEquals",[B$]:[{[$$]:"UseFIPS"},!0]},Q$={[V$]:"booleanEquals",[B$]:[{[$$]:"UseDualStack"},!0]},ez={},tz={[$$]:"Region"},rz={[V$]:"booleanEquals",[B$]:[!0,{[V$]:"getAttr",[B$]:[{[$$]:G$},"supportsFIPS"]}]},nz={[V$]:"booleanEquals",[B$]:[!0,{[V$]:"getAttr",[B$]:[{[$$]:G$},"supportsDualStack"]}]},az=[X$],iz=[Q$],sz=[tz],oz={version:"1.0",parameters:{Region:Z$,UseDualStack:J$,UseFIPS:J$,Endpoint:Z$},rules:[{conditions:[{[V$]:z$,[B$]:[Y$]}],type:q$,rules:[{conditions:az,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:H$},{type:q$,rules:[{conditions:iz,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:H$},{endpoint:{url:Y$,properties:ez,headers:ez},type:K$}]}]},{type:q$,rules:[{conditions:[{[V$]:z$,[B$]:sz}],type:q$,rules:[{conditions:[{[V$]:"aws.partition",[B$]:sz,assign:G$}],type:q$,rules:[{conditions:[X$,Q$],type:q$,rules:[{conditions:[rz,nz],type:q$,rules:[{type:q$,rules:[{endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ez,headers:ez},type:K$}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:H$}]},{conditions:az,type:q$,rules:[{conditions:[rz],type:q$,rules:[{type:q$,rules:[{conditions:[{[V$]:W$,[B$]:[tz,"us-gov-east-1"]}],endpoint:{url:"https://sns.us-gov-east-1.amazonaws.com",properties:ez,headers:ez},type:K$},{conditions:[{[V$]:W$,[B$]:[tz,"us-gov-west-1"]}],endpoint:{url:"https://sns.us-gov-west-1.amazonaws.com",properties:ez,headers:ez},type:K$},{endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ez,headers:ez},type:K$}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:H$}]},{conditions:iz,type:q$,rules:[{conditions:[nz],type:q$,rules:[{type:q$,rules:[{endpoint:{url:"https://sns.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ez,headers:ez},type:K$}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:H$}]},{type:q$,rules:[{endpoint:{url:"https://sns.{Region}.{PartitionResult#dnsSuffix}",properties:ez,headers:ez},type:K$}]}]}]},{error:"Invalid Configuration: Missing Region",type:H$}]}]},dz=(e,t={})=>Wy(oz,{endpointParams:e,logger:t.logger}),lz=e=>{const t=Iw(e),r=()=>t().then(Xh),n=(e=>({apiVersion:"2010-03-31",base64Decoder:e?.base64Decoder??Ew,base64Encoder:e?.base64Encoder??_w,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??dz,logger:e?.logger??new Jm,serviceId:e?.serviceId??"SNS",urlParser:e?.urlParser??Rf,utf8Decoder:e?.utf8Decoder??Ng,utf8Encoder:e?.utf8Encoder??Tg}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Nw,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Aw({serviceId:n.serviceId,clientVersion:j$}),maxAttempts:e?.maxAttempts??3,region:e?.region??Cw("Region is missing"),requestHandler:e?.requestHandler??new ww(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Jf),sha256:e?.sha256??av.Sha256,streamCollector:e?.streamCollector??xw,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(hf)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ff))}};class uz extends eh{constructor(e){const t=lz(e),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"sns"});var n;const a=wf(r),i=Bf(a),s=fg(i),o=my(sy(s));super(o),this.config=o,this.middlewareStack.use(bg(this.config)),this.middlewareStack.use(Cf(this.config)),this.middlewareStack.use(zf(this.config)),this.middlewareStack.use(Hf(this.config)),this.middlewareStack.use(Wf(this.config)),this.middlewareStack.use(cy(this.config)),this.middlewareStack.use(ev(this.config))}destroy(){super.destroy()}}class pz{sns;topicArn;constructor(e=new uz({region:"us-east-1"}),t){this.sns=e,this.topicArn=t,Sn.notNullOrUndefined(this.sns,"sns"),Sn.notNullOrUndefined(this.topicArn,"topicArn")}get snsClient(){return this.sns}async sendMessage(e,t=!1){let r=null;try{const t=e||"NO-MESSAGE-PROVIDED",n="string"==typeof t?t:JSON.stringify(t),a={TopicArn:this.topicArn,Message:n};_n.debug("Sending via SNS : %j",a),r=await this.sns.send(new F$(a))}catch(r){if(!t)throw r;_n.error("Failed to fire SNS notification : %j : %s",e,r)}return r}async conditionallySendMessage(e,t,r=!1){let n=null;return t?n=await this.sendMessage(e,r):_n.info("Not sending message, condition was false : %j",e),n}}class cz{ratchet;tableName;constructor(e,t){this.ratchet=e,this.tableName=t,Sn.notNullOrUndefined(e,"ratchet"),Sn.notNullOrUndefined(En.trimToNull(this.tableName),"tableName")}async acquireLock(e,t=30){let r=!1;if(e&&t){const n=Math.floor((new Date).getTime()/1e3),a={Item:{lockingKey:e,timestamp:n,expires:n+t},ReturnConsumedCapacity:"TOTAL",TableName:this.tableName,ConditionExpression:"attribute_not_exists(lockingKey)"};try{await this.ratchet.getDDB().send(new WO(a));r=!0}catch(t){String(t).indexOf("ConditionalCheckFailedException")>-1&&_n.silly("Unable to acquire lock on %s",e)}}return r}async releaseLock(e){if(En.trimToNull(e))try{const t=await this.ratchet.simpleDelete(this.tableName,{lockingKey:e});_n.silly("Released lock %s : %s",e,t)}catch(t){_n.warn("Failed to release lock key : %s : %s",e,t,t)}}async clearExpiredSyncLocks(){const e=Math.floor((new Date).getTime()/1e3),t={TableName:this.tableName,FilterExpression:"expires < :now",ExpressionAttributeValues:{":now":e}},r=(await this.ratchet.fullyExecuteScan(t)).map((e=>({lockingKey:e.lockingKey})));return await this.ratchet.deleteAllInBatches(this.tableName,r,25)}}class mz{_locks=new Map;constructor(){}async acquireLock(e,t=30){let r=!1;if(En.trimToNull(e)){const n=Date.now(),a=this._locks.get(e);(!a||a<n)&&(this._locks.set(e,n+1e3*t),r=!0)}return r}async releaseLock(e){En.trimToNull(e)&&this._locks.delete(e)}async clearExpiredSyncLocks(){const e=[],t=Date.now();return this._locks.forEach(((r,n)=>{r<t&&e.push(n)})),e.forEach((e=>{this._locks.delete(e)})),e.length}}export{Zm as AwsBatchBackgroundProcessor,Ww as AwsBatchRatchet,aF as AwsCredentialsRatchet,eL as CascadeEnvironmentServiceProvider,dS as CloudWatchLogGroupRatchet,lS as CloudWatchLogsRatchet,j_ as CloudWatchMetricsRatchet,D_ as CloudWatchMetricsUnit,BP as Daemon,FP as DaemonUtil,Jw as DynamoDbStorageProvider,cz as DynamoDbSyncLock,tF as DynamoExpiringCodeProvider,PD as DynamoRatchet,HF as DynamoRuntimeParameterProvider,ID as DynamoTableRatchet,QM as Ec2Ratchet,tL as EnvVarEnvironmentServiceProvider,rL as EnvironmentService,rF as ExpiringCodeRatchet,nL as FixedEnvironmentServiceProvider,KF as GlobalVariableOverrideRuntimeParameterProvider,OD as HashSpreader,iF as LambdaEventDetector,sF as LambdaEventTypeGuards,Pj as Mailer,GF as MemoryRuntimeParameterProvider,mz as MemorySyncLock,$P as PrototypeDao,Zw as RatchetAwsInfo,IB as RemoteHandlebarsTemplateRenderer,qF as Route53Ratchet,WF as RuntimeParameterRatchet,VP as S3CacheRatchet,ZF as S3CacheToLocalDiskRatchet,aL as S3EnvironmentServiceProvider,nF as S3ExpiringCodeProvider,XF as S3LocationSyncRatchet,zP as S3PrototypeDaoProvider,QF as S3Ratchet,qP as S3SimpleDao,Yw as S3StorageProvider,Xw as SimpleCache,pz as SnsRatchet,eF as SsmEnvironmentServiceProvider};
1
+ import{DateTime as e}from"luxon";import{RequireRatchet as t,StringRatchet as s,ErrorRatchet as a,Logger as n,StopWatch as i,PromiseRatchet as r,StreamRatchet as o,MapRatchet as c,DurationRatchet as l,NumberRatchet as h,Base64Ratchet as u}from"@bitblit/ratchet-common";import{SubmitJobCommand as d,ListJobsCommand as m}from"@aws-sdk/client-batch";import{CloudWatchLogsClient as f,DescribeLogStreamsCommand as g,FilterLogEventsCommand as p,DeleteLogStreamCommand as y,DescribeLogGroupsCommand as w,DeleteLogGroupCommand as b,StartQueryCommand as T,GetQueryResultsCommand as E,StopQueryCommand as C}from"@aws-sdk/client-cloudwatch-logs";import{CloudWatchClient as S,PutMetricDataCommand as N}from"@aws-sdk/client-cloudwatch";import{PutObjectCommand as x,GetObjectCommand as v,NoSuchKey as k,DeleteObjectCommand as D,HeadObjectCommand as O,CopyObjectCommand as F,ListObjectsCommand as A,S3Client as P,ListObjectsV2Command as M}from"@aws-sdk/client-s3";import{Upload as j}from"@aws-sdk/lib-storage";import{getSignedUrl as U}from"@aws-sdk/s3-request-presigner";import{ScanCommand as I,QueryCommand as B,BatchWriteCommand as R,BatchGetCommand as K,PutCommand as L,GetCommand as V,DeleteCommand as _}from"@aws-sdk/lib-dynamodb";import{UpdateItemCommand as G,DeleteTableCommand as W,CreateTableCommand as q,DescribeTableCommand as z,PutItemCommand as J}from"@aws-sdk/client-dynamodb";import{EC2Client as Q,StopInstancesCommand as H,StartInstancesCommand as $,DescribeInstancesCommand as Y}from"@aws-sdk/client-ec2";import{EC2InstanceConnectClient as Z,SendSSHPublicKeyCommand as X}from"@aws-sdk/client-ec2-instance-connect";import{SSMClient as ee,GetParameterCommand as te}from"@aws-sdk/client-ssm";import{ChangeResourceRecordSetsCommand as se,waitUntilResourceRecordSetsChanged as ae}from"@aws-sdk/client-route-53";import{WaiterState as ne}from"@aws-sdk/util-waiter";import ie from"crypto";import re from"fs";import oe from"path";import ce from"lodash";import{SendRawEmailCommand as le}from"@aws-sdk/client-ses";import he from"handlebars";import ue from"cross-fetch";import de from"handlebars-layouts";import{SNSClient as me,PublishCommand as fe}from"@aws-sdk/client-sns";class ge{batchRatchet;validTaskNames;constructor(e,s){this.batchRatchet=e,this.validTaskNames=s,t.notNullOrUndefined(this.batchRatchet,"batchRatchet"),t.notNullOrUndefined(this.batchRatchet.batchClient,"batchRatchet.batchClient"),t.notNullOrUndefined(this.batchRatchet.defaultJobDefinition,"batchRatchet.defaultJobDefinition"),t.notNullOrUndefined(this.batchRatchet.defaultQueueName,"batchRatchet.defaultQueueName")}async scheduleBackgroundTask(t,i={},r={}){!this.validTaskNames||!this.validTaskNames.length||s.trimToNull(t)&&this.validTaskNames.includes(t)||a.throwFormattedErr("Cannot start task %s - not found in valid task list",t),n.info("Submitting background task to AWS batch: %s %j %s",t,i,this.batchRatchet.defaultQueueName);let o=null;const c=`${this.batchRatchet.defaultJobDefinition}-${t}_${e.utc().toFormat("yyyy-MM-dd-HH-mm")}`,l={jobName:c,jobDefinition:this.batchRatchet.defaultJobDefinition,jobQueue:this.batchRatchet.defaultQueueName,parameters:{taskName:t,taskData:JSON.stringify(i),taskMetadata:JSON.stringify(r)}};try{o=await this.batchRatchet.scheduleJob(l),n.info("Job %s(%s) submitted",o.jobName,o.jobId)}catch(e){n.error("Cannot submit batch job taskName: %s jobDef: %s queue: %s jobName: %s data: %j",t,this.batchRatchet.defaultJobDefinition,this.batchRatchet.defaultQueueName,c,i,e)}return o}}class pe{_batchClient;_defaultQueueName;_defaultJobDefinition;constructor(e,t,s){this._batchClient=e,this._defaultQueueName=t,this._defaultJobDefinition=s}get batchClient(){return this._batchClient}get defaultQueueName(){return this._defaultQueueName}get defaultJobDefinition(){return this._defaultJobDefinition}async scheduleJob(e){n.info("Submitting batch job %s",e.jobName);try{const t=await this._batchClient.send(new d(e));return n.info("Job %s(%s) submitted",t.jobName,t.jobId),t}catch(t){n.error("Cannot submit batch job %s: %s",e.jobName,t)}return null}async jobCountInState(e,t=this.defaultQueueName){return(await this.listJobs(t,e)).length}async listJobs(e=this.defaultQueueName,s=null){t.notNullOrUndefined(e,"queueName");let a=[];const i={jobQueue:e,jobStatus:s,nextToken:null};n.info("Fetching %j",i);do{n.info("Pulling page...");const e=await this._batchClient.send(new m(i));a=a.concat(e.jobSummaryList),i.nextToken=e.nextToken}while(i.nextToken);return a}}class ye{constructor(){}static buildInformation(){return{version:"LOCAL-SNAPSHOT",hash:"LOCAL-HASH",branch:"LOCAL-BRANCH",tag:"LOCAL-TAG",timeBuiltISO:"LOCAL-TIME-ISO",notes:"LOCAL-NOTES"}}}class we{dynamo;opts;constructor(e,s){this.dynamo=e,this.opts=s,t.notNullOrUndefined(this.dynamo,"dynamo"),t.notNullOrUndefined(this.opts,"opts"),t.notNullOrUndefined(this.opts.tableName,"opts.tableName"),t.notNullOrUndefined(this.opts.hashKeyName,"opts.hashKeyName"),t.true(!this.opts.useRangeKeys||!!this.opts.rangeKeyName&&!!this.opts.hashKeyValue,"invalid range configuration")}static createDefaultOptions(){return{tableName:"simple-cache",useRangeKeys:!1,hashKeyName:"cache-key",rangeKeyName:null,hashKeyValue:null}}createKeyObject(e){const t={};return this.opts.useRangeKeys?(t[this.opts.hashKeyName]=this.opts.hashKeyValue,t[this.opts.rangeKeyName]=e):t[this.opts.hashKeyName]=e,t}cleanDynamoFieldsFromObjectInPlace(e){e&&(delete e[this.opts.hashKeyName],this.opts.rangeKeyName&&delete e[this.opts.rangeKeyName],this.opts.dynamoExpiresColumnName&&delete e[this.opts.dynamoExpiresColumnName])}extractKeysFromObject(e){let t=null;return e&&(t={},this.opts.useRangeKeys?(t[this.opts.hashKeyName]=this.opts.hashKeyValue,t[this.opts.rangeKeyName]=e.cacheKey):t[this.opts.hashKeyName]=e.cacheKey),t}async readFromCache(e){const t=this.createKeyObject(e),s=await this.dynamo.simpleGet(this.opts.tableName,t);return this.cleanDynamoFieldsFromObjectInPlace(s),s}async storeInCache(e){t.notNullOrUndefined(e,"value"),t.notNullOrUndefined(e.cacheKey,"value.cacheKey");const s=Object.assign({},e,this.createKeyObject(e.cacheKey));this.opts.dynamoExpiresColumnName&&e.expiresEpochMS&&(s[this.opts.dynamoExpiresColumnName]=Math.floor(e.expiresEpochMS/1e3));return!!await this.dynamo.simplePut(this.opts.tableName,s)}async removeFromCache(e){await this.dynamo.simpleDelete(this.opts.tableName,this.createKeyObject(e))}async clearCache(){const e=(await this.readAll()).map((e=>this.extractKeysFromObject(e)));return await this.dynamo.deleteAllInBatches(this.opts.tableName,e,25)}async readAll(){let e=null;if(this.opts.useRangeKeys){const t={TableName:this.opts.tableName,KeyConditionExpression:"#cacheKey = :cacheKey",ExpressionAttributeNames:{"#cacheKey":this.opts.hashKeyName},ExpressionAttributeValues:{":cacheKey":this.opts.hashKeyValue}};e=await this.dynamo.fullyExecuteQuery(t)}else{const t={TableName:this.opts.tableName};e=await this.dynamo.fullyExecuteScan(t)}return e.forEach((e=>this.cleanDynamoFieldsFromObjectInPlace(e))),e}}class be{s3CacheRatchet;prefix;constructor(e,s){this.s3CacheRatchet=e,this.prefix=s,t.notNullOrUndefined(this.s3CacheRatchet,"s3CacheRatchet"),t.notNullOrUndefined(this.s3CacheRatchet.getDefaultBucket(),"s3CacheRatchet.defaultBucket")}keyToPath(e){let t=s.trimToEmpty(this.prefix);return t.length>0&&!t.endsWith("/")&&(t+="/"),t+=e,t}async readFromCache(e){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyToPath(e))}async storeInCache(e){t.notNullOrUndefined(e,"value"),t.notNullOrUndefined(e.cacheKey,"value.cacheKey");return!!await this.s3CacheRatchet.writeObjectToCacheFile(this.keyToPath(e.cacheKey),e)}async removeFromCache(e){await this.s3CacheRatchet.removeCacheFile(this.keyToPath(e))}async clearCache(){const e=await this.s3CacheRatchet.directChildrenOfPrefix(this.keyToPath(""));return await Promise.all(e.map((e=>this.removeFromCache(e)))),e.length}async readAll(){const e=await this.s3CacheRatchet.directChildrenOfPrefix(this.keyToPath(""));return await Promise.all(e.map((e=>this.readFromCache(e))))}}class Te{provider;defaultTimeToLiveMS;constructor(e,t=6e4){this.provider=e,this.defaultTimeToLiveMS=t}createDefaultReadOptions(){return{maxStalenessMS:null,timeToLiveMS:this.defaultTimeToLiveMS,cacheNullValues:!1}}async fetchWrapper(e,t,s=this.createDefaultReadOptions()){n.silly("Fetching %s",e);const a=(new Date).getTime();let i=await this.provider.readFromCache(e);if(i&&i.expiresEpochMS<a&&(n.debug("Object found, but expired - removing"),i=null),i&&s&&s.maxStalenessMS&&a-i.createdEpochMS>s.maxStalenessMS&&(n.debug("Object found by too stale - removing"),i=null),!i){n.debug("%s not found in cache, generating",e);const r=await t();(r||s?.cacheNullValues)&&(n.debug("Writing %j to cache"),i={cacheKey:e,createdEpochMS:a,expiresEpochMS:s&&s.timeToLiveMS?a+s.timeToLiveMS:null,value:r,generated:!1},await this.provider.storeInCache(i),i.generated=!0)}return i}async fetch(e,t,s=null){const a=await this.fetchWrapper(e,t,s);return a?a.value:null}async removeFromCache(e,t){let s=null;return t&&(s=await this.fetchWrapper(e,(()=>null))),await this.provider.removeFromCache(e),s}async clearCache(){return this.provider.clearCache()}async readAll(){return this.provider.readAll()}}class Ee{logGroup;awsCWLogs;constructor(e,t=new f({region:"us-east-1"})){this.logGroup=e,this.awsCWLogs=t}get cloudWatchLogsClient(){return this.awsCWLogs}async readLogStreams(e=null,t=null){const s={logGroupName:this.logGroup,orderBy:"LastEventTime"},a=[];do{n.debug("Pulling more log streams (%d found so far)",a.length);const i=await this.awsCWLogs.send(new g(s));i.logStreams.forEach((s=>{null!==s.lastEventTimestamp&&(!e||s.lastEventTimestamp>=e)&&(!t||s.firstEventTimestamp<=t)&&a.push(s)})),s.nextToken=i.nextToken}while(s.nextToken);return n.debug("Found %d total, returning",a.length),a}async readLogStreamNames(e=null,t=null){return(await this.readLogStreams(e,t)).map((e=>e.logStreamName))}async readEvents(e,t=null,s=null,a=!0,r=null){const o=new i,c={logGroupName:this.logGroup,endTime:s,startTime:t};e&&(c.filterPattern=e),n.debug("Reading log events matching : %j",c);let l=[];do{n.debug("Pulling more log events (%d found so far) : %s",l.length,o.dump());const e=await this.awsCWLogs.send(new p(c));l=l.concat(e.events),c.nextToken=e.nextToken}while(c.nextToken&&(!r||l.length<r));return n.debug("Found %d total in %s",l.length,o.dump()),a&&(n.debug("Sorting events by timestamp"),l=l.sort(((e,t)=>{let s=e.timestamp-t.timestamp;return 0===s&&(s=e.message.localeCompare(t.message)),s}))),o.log(),l}}class Ce{static MAX_DELETE_RETRIES=5;cwLogs;constructor(e=null){this.cwLogs=e||new f({region:"us-east-1"})}get cloudWatchLogsClient(){return this.cwLogs}async removeEmptyOrOldLogStreams(e,t=1e3,s=null){n.info("Removing empty streams from %s, oldest event epoch MS : %d",e,s);const a={logGroupName:e,orderBy:"LastEventTime"},i=s||1;let o=0;const c=[],l=[];let h=10;do{n.debug("Executing search for streams");try{const e=await this.cwLogs.send(new g(a));o+=e.logStreams.length,n.debug("Found %d streams (%d so far, %d to delete)",e.logStreams.length,o,c.length);for(let s=0;s<e.logStreams.length&&c.length<t;s++){const t=e.logStreams[s];t.firstEventTimestamp?t.lastEventTimestamp<i&&c.push(t):c.push(t)}a.nextToken=e.nextToken}catch(e){const t=h;h=Math.min(1e3,1.5*h),n.info("Caught while describing %s, increasing wait between deletes (was %d, now %d)",e,t,h)}}while(a.nextToken&&c.length<t);n.info("Found %d streams to delete",c.length);let u=10;for(let t=0;t<c.length;t++){const s={logGroupName:e,logStreamName:c[t].logStreamName},a=0===c[t].storedBytes?"empty":"old";n.info("Removing %s stream %s",a,c[t].logStreamName);let i=!1,o=0;for(;!i&&o<Ce.MAX_DELETE_RETRIES;)try{await this.cwLogs.send(new y(s)),i=!0,await r.wait(u)}catch(e){o++;const t=u;u=Math.min(1e3,1.5*u),n.info("Caught %s, increasing wait between deletes and retrying (wait was %d, now %d) (Retry %d of %d)",e,t,u,o,Ce.MAX_DELETE_RETRIES)}i||l.push(c[t])}return n.warn("Failed to remove streams : %j",l),c}async findOldestEventTimestampInGroup(e){const t=await this.findStreamWithOldestEventInGroup(e);return t?t.firstEventTimestamp:null}async findStreamWithOldestEventInGroup(e){n.info("Finding oldest event in : %s",e);let t=null;try{const s={logGroupName:e,orderBy:"LastEventTime"};let a=0;do{n.debug("Executing search for streams");const e=await this.cwLogs.send(new g(s));a+=e.logStreams.length,n.debug("Found %d streams (%d so far)",e.logStreams.length,a),e.logStreams.forEach((e=>{e.firstEventTimestamp&&(null===t||e.firstEventTimestamp<t.firstEventTimestamp)&&(t=e)})),s.nextToken=e.nextToken}while(s.nextToken)}catch(t){n.error("Error attempting to find oldest event in group : %s : %s",e,t,t)}return t}async findLogGroups(e){t.notNullOrUndefined(e);const s={logGroupNamePrefix:e};let a=[];do{n.info("%d found, pulling log groups : %j",a.length,s);const e=await this.cwLogs.send(new w(s));a=a.concat(e.logGroups),s.nextToken=e.nextToken}while(s.nextToken);return a}async removeLogGroups(e){t.notNullOrUndefined(e);const s=[];for(let t=0;t<e.length;t++)try{n.info("Deleting %j",e[t]);const a={logGroupName:e[t].logGroupName};await this.cwLogs.send(new b(a)),s.push(!0)}catch(a){n.error("Failure to delete %j : %s",e[t],a),s.push(!1)}return s}async removeLogGroupsWithPrefix(e){t.notNullOrUndefined(e),t.true(s.trimToEmpty(e).length>0),n.info("Removing log groups with prefix %s",e);const a=await this.findLogGroups(e);return await this.removeLogGroups(a)}async fullyExecuteInsightsQuery(e){t.notNullOrUndefined(e),n.debug("Starting insights query : %j",e);const s=await this.cwLogs.send(new T(e));n.debug("Got query id %j",s);let a=null,i=100;for(;!a||["Running","Scheduled"].includes(a.status);)a=await this.cwLogs.send(new E({queryId:s.queryId})),await r.wait(i),i*=2,n.info("Got : %j",a);return a}async abortInsightsQuery(e){let t=null;return e&&(t=await this.cwLogs.send(new C({queryId:e}))),t}}var Se;!function(e){e.Seconds="Seconds",e.Microseconds="Microseconds",e.Milliseconds="Milliseconds",e.Bytes="Bytes",e.Kilobytes="Kilobytes",e.Megabytes="Megabytes",e.Gigabytes="Gigabytes",e.Terabytes="Terabytes",e.Bits="Bits",e.Kilobits="Kilobits",e.Megabits="Megabits",e.Gigabits="Gigabits",e.Terabits="Terabits",e.Percent="Percent",e.Count="Count",e.BytesPerSecond="Bytes/Second",e.KilobytesPerSecond="Kilobytes/Second",e.MegabytesPerSecond="Megabytes/Second",e.GigabytesPerSecond="Gigabytes/Second",e.TerabytesPerSecond="Terabytes/Second",e.BitsPerSecond="Terabytes/Second",e.KilobitsPerSecond="Kilobits/Second",e.MegabitsPerSecond="Megabits/Second",e.GigabitsPerSecond="Gigabits/Second",e.TerabitsPerSecond="Terabits/Second",e.CountPerSecond="Count/Second",e.None="None"}(Se||(Se={}));class Ne{cw;constructor(e=null){this.cw=e||new S({region:"us-east-1",apiVersion:"2010-08-01"})}get cloudWatchClient(){return this.cw}async writeSingleMetric(e,t,s,a=Se.None,i,r=new Date,o=!1){const c=[];s&&s.length>0&&s.forEach((e=>{c.push({Name:e.key,Value:e.value})}));const l=o?1:60,h={Namespace:e,MetricData:[{MetricName:t,Dimensions:c,Unit:String(a),Value:i,Timestamp:r,StorageResolution:l}]};n.silly("Writing metric to cw : %j",h);const u=await this.cw.send(new N(h));return n.silly("Result: %j",u),u}async writeDynamoCountAsMinuteLevelMetric(t){if(n.info("Publishing %s / %s metric for %s UTC",t.namespace,t.metric,t.minuteUTC),t.scan&&t.query)throw new Error("Must send query or scan, but not both");if(!t.scan&&!t.query)throw new Error("You must specify either a scan or a query");const s=t.query?await t.dynamoRatchet.fullyExecuteQueryCount(t.query):await t.dynamoRatchet.fullyExecuteScanCount(t.scan);n.debug("%s / %s for %s are %j",t.namespace,t.metric,t.minuteUTC,s);const a=t.minuteUTC.split(" ").join("T")+":00Z",i=e.fromISO(a).toJSDate(),r=await this.writeSingleMetric(t.namespace,t.metric,t.dims,Se.Count,s.count,i,!1);return n.debug("Metrics response: %j",r),s.count}}class xe{static DEFAULT_CONTENT=Buffer.from("DAEMON_PLACEHOLDER");static DAEMON_METADATA_KEY="daemon_meta";static async start(e,t,s,a){try{a.meta=a.meta||{},n.info("Starting daemon, key: %s, options: %j",s,a);const i=(new Date).getTime(),r={id:t,title:a.title,lastUpdatedEpochMS:i,lastUpdatedMessage:"Created",targetFileName:a.targetFileName,startedEpochMS:i,completedEpochMS:null,meta:a.meta,error:null,link:null,contentType:a.contentType};return await xe.writeState(e,s,r,xe.DEFAULT_CONTENT)}catch(e){throw n.error("Error while trying to start a daemon: %j %s",a,e),e}}static async writeState(e,t,s,a){try{const i={};s.lastUpdatedEpochMS=(new Date).getTime(),i[xe.DAEMON_METADATA_KEY]=JSON.stringify(s);const r={Bucket:e.getDefaultBucket(),Key:t,ContentType:s.contentType,Metadata:i,Body:new Blob([a])};s.targetFileName&&(r.ContentDisposition='attachment;filename="'+s.targetFileName+'"');const o=await e.getS3Client().send(new x(r));return n.silly("Daemon wrote : %s",o),xe.stat(e,t)}catch(e){throw n.error("Error while trying to write a daemon stat: %j %s",s,e),e}}static async streamDataAndFinish(e,t,s){n.debug("Streaming data to %s",t);const a=await xe.updateMessage(e,t,"Streaming data");a.completedEpochMS=(new Date).getTime(),a.lastUpdatedMessage="Complete";const i={};i[xe.DAEMON_METADATA_KEY]=JSON.stringify(a);const r={Bucket:e.getDefaultBucket(),Key:t,ContentType:a.contentType,Metadata:i,Body:s},o=new j({client:e.getS3Client(),params:r,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});o.on("httpUploadProgress",(e=>{n.info("Uploading : %s",e)}));const c=await o.done();return n.silly("Daemon wrote : %s",c),xe.stat(e,t)}static async updateMessage(e,t,s){try{const a=await xe.stat(e,t);return a.lastUpdatedMessage=s,xe.writeState(e,t,a,xe.DEFAULT_CONTENT)}catch(e){throw n.error("Error while trying to update a daemon message: %j %s",t,e),e}}static async stat(e,t){try{n.debug("Daemon stat for path %s / %s",e.getDefaultBucket(),t);let s=null;const a=await e.fetchMetaForCacheFile(t);n.debug("Daemon: Meta is %j",a);const i=a&&a.Metadata?a.Metadata[xe.DAEMON_METADATA_KEY]:null;return i?(s=JSON.parse(i),s.completedEpochMS&&!s.error&&(s.link=await e.preSignedDownloadUrlForCacheFile(t))):n.warn("No metadata found! (Head was %j)",a),s}catch(e){throw n.error("Error while trying to fetch a daemon state: %j %s",t,e),e}}static async abort(e,t){return xe.error(e,t,"Aborted")}static async error(e,t,s){try{const a=await xe.stat(e,t);return a.error=s,a.completedEpochMS=(new Date).getTime(),xe.writeState(e,t,a,xe.DEFAULT_CONTENT)}catch(e){throw n.error("Error while trying to write a daemon error: %j %s",t,e),e}}static async finalize(e,t,s){try{n.info("Finalizing daemon %s with %d bytes",t,s.length);const a=await xe.stat(e,t);return a.completedEpochMS=(new Date).getTime(),a.lastUpdatedMessage="Complete",xe.writeState(e,t,a,s)}catch(e){throw n.error("Error while trying to finalize a daemon: %j %s",t,e),e}}}class ve{s3;defaultBucket;constructor(e,s=null){this.s3=e,this.defaultBucket=s,t.notNullOrUndefined(this.s3,"s3")}get s3Client(){return this.s3}static applyCacheControlMaxAge(e,t){return e&&t&&(e.CacheControl="max-age="+t),e}static applyUserMetaData(e,t,a){return e&&s.trimToNull(t)&&s.trimToNull(a)&&(e.Metadata=e.Metadata||{},e.Metadata[t]=a),e}getDefaultBucket(){return this.defaultBucket}getS3Client(){return this.s3}async fileExists(e,t=null){try{return!!await this.fetchMetaForCacheFile(e,this.bucketVal(t))}catch(e){return n.silly("Error calling file exists (as expected) %s",e),!1}}async fetchCacheFileAsS3GetObjectCommandOutput(e,t=null){let s=null;try{const a={Bucket:this.bucketVal(t),Key:e};s=await this.s3.send(new v(a))}catch(t){if(!(t instanceof k))throw t;n.debug("Key %s not found - returning null",e),s=null}return s}async fetchCacheFileAsReadableStream(e,t=null){return(await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t)).Body.transformToWebStream()}async fetchCacheFileAsBuffer(e,t=null){let s=null;const a=await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t);if(a?.Body){const e=await a.Body.transformToByteArray();s=Buffer.from(e)}return s}async fetchCacheFileAsString(e,t=null){let s=null;const a=await this.fetchCacheFileAsS3GetObjectCommandOutput(e,t);return a?.Body&&(s=await a.Body.transformToString()),s}async fetchCacheFileAsObject(e,t=null){const s=await this.fetchCacheFileAsString(e,t);return s?JSON.parse(s):null}async removeCacheFile(e,t=null){let s=null;const a={Bucket:this.bucketVal(t),Key:e};try{s=await this.s3.send(new D(a))}catch(a){if(!a||404!=a.statusCode)throw a;n.info("Swallowing 404 deleting missing object %s %s",t,e),s=null}return s}async writeObjectToCacheFile(e,t,s,a){const n=JSON.stringify(t);return this.writeStringToCacheFile(e,n,s,a)}async writeStringToCacheFile(e,t,s,a){const n=o.stringToWebReadableStream(t);return this.writeStreamToCacheFile(e,n,s,a)}async writeStreamToCacheFile(e,t,s,a){const i=Object.assign({},s||{},{Bucket:this.bucketVal(a),Key:e,Body:t}),r=new j({client:this.s3,params:i,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});r.on("httpUploadProgress",(e=>{n.info("Uploading : %s",e)}));return await r.done()}async synchronize(e,s,a=this,r=!1){t.notNullOrUndefined(e,"srcPrefix"),t.notNullOrUndefined(s,"targetPrefix"),t.true(e.endsWith("/"),"srcPrefix must end in /"),t.true(s.endsWith("/"),"targetPrefix must end in /");let o=[];const c=await this.directChildrenOfPrefix(e),l=await a.directChildrenOfPrefix(s),h=new i;for(let t=0;t<c.length;t++){const i=c[t];if(n.info("Processing %s : %s",i,h.dumpExpected(t/c.length)),i.endsWith("/"))if(r){n.info("%s is a subfolder - recursing");const t=await this.synchronize(e+i,s+i,a,r);n.info("Got %d back from %s",t.length,i),o=o.concat(t)}else n.info("%s is a subfolder and recurse not specified - skipping",i);else{let t=!0;const r=await this.fetchMetaForCacheFile(e+i);if(l.includes(i)){const e=await a.fetchMetaForCacheFile(s+i);r.ETag===e.ETag&&(n.debug("Skipping - identical"),t=!1)}if(t){n.debug("Copying...");const t=await this.fetchCacheFileAsReadableStream(e+i);try{const e=await a.writeStreamToCacheFile(s+i,t,r,void 0);n.silly("Write result : %j",e),o.push(i)}catch(e){n.error("Failed to sync : %s : %s",i,e)}}}}return n.info("Found %d files, copied %d",c.length,o.length),h.log(),o}async fetchMetaForCacheFile(e,t=null){let s=null;try{s=await this.s3.send(new O({Bucket:this.bucketVal(t),Key:e}))}catch(a){if(!a||404!=a.statusCode)throw n.error("Unrecognized error, rethrowing : %s",a,a),a;n.info("Cache file %s %s not found returning null",this.bucketVal(t),e),s=null}return s}async cacheFileAgeInSeconds(e,t=null){try{const s=await this.fetchMetaForCacheFile(e,t);return s&&s.LastModified?Math.floor(((new Date).getTime()-s.LastModified.getTime())/1e3):(n.warn("Cache file %s %s had no last modified returning null",this.bucketVal(t),e),null)}catch(s){if(s&&404==s.statusCode)return n.warn("Cache file %s %s not found returning null",this.bucketVal(t),e),null;throw s}}async copyFile(e,t,s=null,a=null){const n={CopySource:"/"+this.bucketVal(s)+"/"+e,Bucket:this.bucketVal(a),Key:t,MetadataDirective:"COPY"};return await this.s3.send(new F(n))}async quietCopyFile(e,t,s=null,a=null){let i=!1;try{await this.copyFile(e,t,s,a);i=!0}catch(e){n.silly("Failed to copy file in S3 : %s",e)}return i}async preSignedDownloadUrlForCacheFile(e,t=3600,s=null){const a={Bucket:this.bucketVal(s),Key:e};return await U(this.s3,new v(a),{expiresIn:t})}async directChildrenOfPrefix(e,t=!1,s=null,a=null){const n=[],i={Bucket:this.bucketVal(s),Prefix:e,Delimiter:"/"};let r=null;do{r=await this.s3.send(new A(i));const o=e.length;r.CommonPrefixes&&r.CommonPrefixes.forEach((e=>{if(!a||n.length<a){const t=e.Prefix.substring(o);n.push(t)}})),r.Contents&&await Promise.all(r.Contents.map((async e=>{if(!a||n.length<a)if(t){const t={link:await this.preSignedDownloadUrlForCacheFile(e.Key,3600,s),name:e.Key.substring(o),size:e.Size};n.push(t)}else n.push(e.Key.substring(o))}))),i.Marker=r.NextMarker}while(i.Marker&&(!a||n.length<a));return n}async allSubFoldersOfPrefix(e,t=null){const s=[e];let a=0;for(;a<s.length;){const e=s[a++];n.debug("Pulling %s (%d remaining)",e,s.length-a);const i={Bucket:this.bucketVal(t),Prefix:e,Delimiter:"/"};let r=null;do{i.ContinuationToken=r?r.NextContinuationToken:null,r=await this.s3.send(new A(i)),r.CommonPrefixes.forEach((e=>{s.push(e.Prefix)})),n.debug("g:%j",r)}while(r.NextContinuationToken)}return s}bucketVal(e){const t=e||this.defaultBucket;if(!t)throw"You must set either the default bucket or pass it explicitly";return t}}class ke{s3;bucket;prefix;_defaultGroup;jwtRatchet;static DEFAULT_DEFAULT_GROUP="DEFAULT";cache;constructor(e,t,s="",a=ke.DEFAULT_DEFAULT_GROUP,n){this.s3=e,this.bucket=t,this.prefix=s,this._defaultGroup=a,this.jwtRatchet=n,this.cache=new ve(this.s3,this.bucket)}get defaultGroup(){return this._defaultGroup}async keyToPublicToken(e,s){t.notNullOrUndefined(this.jwtRatchet,"You must set jwtRatchet if you wish to use public tokens"),t.notNullOrUndefined(e,"key"),t.true(s>0,"Expiration seconds must be larger than 0");const a={daemonKey:e};return await this.jwtRatchet.createTokenString(a,s)}keyToPath(e){return Buffer.from(e,"base64").toString()}pathToKey(e){return Buffer.from(e).toString("base64")}generatePath(e=this._defaultGroup){return this.generatePrefix(e)+s.createType4Guid()}generatePrefix(e=this._defaultGroup){return this.prefix+e+"/"}async start(e){e.group=e.group||this._defaultGroup;const t=this.generatePath(e.group),s=this.pathToKey(t);return xe.start(this.cache,s,t,e)}async writeState(e,t){const s=this.keyToPath(e.id);return xe.writeState(this.cache,s,e,t)}async clean(e=this._defaultGroup,t=604800){try{n.info("Daemon removing items older than %d seconds from group %s",t,e);const s=await this.list(e),a=(new Date).getTime(),i=[];for(let e=0;e<s.length;e++){const n=s[e];if((a-n.startedEpochMS)/1e3>t){await this.cache.removeCacheFile(this.keyToPath(n.id));i.push(n)}}return n.debug("Removed %d of %d items",i.length,s.length),i}catch(t){throw n.error("Error while trying to clean a daemon: %j %s",e,t),t}}async listKeys(e=this._defaultGroup){try{const t=this.generatePrefix(e);n.info("Fetching children of %s",t);const s=await this.cache.directChildrenOfPrefix(t);return n.debug("Found : %j",s),s}catch(t){throw n.error("Error while trying to list daemon keys: %j %s",e,t),t}}async list(e=this._defaultGroup){try{const t=this.generatePrefix(e);n.info("Fetching children of %s",t);const s=(await this.listKeys(e)).map((t=>this.stat(this.pathToKey(this.generatePrefix(e)+t))));return await Promise.all(s)}catch(t){throw n.error("Error while trying to list daemon states: %j %s",e,t),t}}async updateMessage(e,t){const s=this.keyToPath(e);return xe.updateMessage(this.cache,s,t)}async stat(e){const t=this.keyToPath(e);return xe.stat(this.cache,t)}async statFromPublicToken(e){t.notNullOrUndefined(this.jwtRatchet,"You must set jwtRatchet if you wish to use public tokens"),t.notNullOrUndefined(e,"publicToken");const s=await this.jwtRatchet.decodeToken(e),a=s?.daemonKey;return a?this.stat(a):null}async abort(e){return xe.abort(this.cache,this.keyToPath(e))}async error(e,t){return xe.error(this.cache,this.keyToPath(e),t)}async finalize(e,t){return xe.finalize(this.cache,this.keyToPath(e),t)}}class De{provider;cfg;static defaultDaoConfig(){return{guidCreateFunction:s.createType4Guid,guidFieldName:"guid",createdEpochMSFieldName:"createdEpochMS",updatedEpochMSFieldName:"updatedEpochMS",createdUtcTimestampFieldName:null,updatedUtcTimestampFieldName:null}}constructor(e,s=De.defaultDaoConfig()){this.provider=e,this.cfg=s,t.notNullOrUndefined(e,"provider"),t.notNullOrUndefined(s,"cfg"),t.notNullOrUndefined(s.guidCreateFunction,"cfg.guidCreateFunction"),t.notNullOrUndefined(s.guidFieldName,"cfg.guidFieldName")}async fetchAll(){return(await this.provider.loadDatabase()).items||[]}async resetDatabase(){await this.provider.storeDatabase({items:[],lastModifiedEpochMS:Date.now()})}async removeItems(e){let t=await this.fetchAll();return e&&(t=t.filter((t=>!e.includes(t[this.cfg.guidFieldName]))),await this.provider.storeDatabase({items:t,lastModifiedEpochMS:Date.now()})),t}async store(t){let s=await this.fetchAll();return t&&(t[this.cfg.guidFieldName]=t[this.cfg.guidFieldName]||this.cfg.guidCreateFunction(),this.cfg.createdEpochMSFieldName&&(t[this.cfg.createdEpochMSFieldName]=t[this.cfg.createdEpochMSFieldName]||Date.now()),this.cfg.createdUtcTimestampFieldName&&(t[this.cfg.createdUtcTimestampFieldName]=t[this.cfg.createdUtcTimestampFieldName]||e.utc().toISO()),this.cfg.updatedEpochMSFieldName&&(t[this.cfg.updatedEpochMSFieldName]=Date.now()),this.cfg.updatedUtcTimestampFieldName&&(t[this.cfg.updatedUtcTimestampFieldName]=e.utc().toISO()),s=s.filter((e=>e[this.cfg.guidFieldName]!==t[this.cfg.guidFieldName])),s.push(t),await this.provider.storeDatabase({items:s,lastModifiedEpochMS:Date.now()})),t}async fetchById(e){return(await this.fetchAll()).find((t=>t[this.cfg.guidFieldName]===e))}async searchByField(e,s){t.notNullOrUndefined(e,"fieldDotPath"),t.notNullOrUndefined(s,"fieldValue");const a={};return a[e]=s,this.searchByFieldMap(a)}async searchByFieldMap(e){t.notNullOrUndefined(e,"input");let s=await this.fetchAll();return s=s.filter((t=>{let s=!0;return Object.keys(e).forEach((a=>{const n=c.findValueDotPath(t,a),i=e[a];s=s&&n===i})),s})),s}}class Oe{s3CacheRatchet;keyName;constructor(e,s){this.s3CacheRatchet=e,this.keyName=s,t.notNullOrUndefined(e,"s3CacheRatchet"),t.notNullUndefinedOrOnlyWhitespaceString(e.getDefaultBucket(),"s3CacheRatchet.defaultBucket"),t.notNullUndefinedOrOnlyWhitespaceString(s,"keyName")}async storeDatabase(e){const t=e||{items:[],lastModifiedEpochMS:null};t.lastModifiedEpochMS=Date.now();return!!await this.s3CacheRatchet.writeObjectToCacheFile(this.keyName,t)}async loadDatabase(){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyName)||{items:[],lastModifiedEpochMS:Date.now()}}}class Fe{cache;prefix;constructor(e,t){if(this.cache=e,this.prefix=t,!e)throw new Error("cache object may not be null");if(!e.getDefaultBucket())throw new Error("Supplied cache must have default bucket set")}buildPathPrefix(e){let t="";return this.prefix&&(t+=this.prefix),e&&(t+=e),t}buildFullPath(e,t){let s=this.buildPathPrefix(t);return s.length>0&&(s+="/"),s+=e+".json",s}async exists(e,t){const s=this.buildFullPath(e,t);return n.debug("Check file existence : %s",s),this.cache.fileExists(s)}async fetch(e,t){const s=this.buildFullPath(e,t);n.debug("Fetching : %s",s);const a=await this.cache.fetchCacheFileAsObject(s);return a.id=e,a.path=t,a}async store(e,t){e.id=e.id||s.createType4Guid(),e.lastModifiedEpochMS=(new Date).getTime();const a=this.buildFullPath(e.id,t);n.debug("Storing : %s",a),await this.cache.writeObjectToCacheFile(a,e);return await this.fetch(e.id,t)}async listItems(e){const t=this.buildPathPrefix(e);n.debug("Listing : %s",t);return await this.cache.directChildrenOfPrefix(t)}async fetchItemsInPath(e){const t=this.buildPathPrefix(e);n.debug("Full fetch of : %s",t);const s=(await this.listItems(e)).map((t=>this.fetch(t,e)));return await Promise.all(s)}async delete(e,t){const s=this.buildFullPath(e,t);n.debug("Deleting : %s",s);return null!=await this.cache.removeCacheFile(s)}}class Ae{awsDDB;constructor(e){if(this.awsDDB=e,!e)throw"awsDDB may not be null"}get dynamoDBDocumentClient(){return this.awsDDB}getDDB(){return this.awsDDB}async tableIsEmpty(e){const t={TableName:e,Limit:1};return 0===(await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),t)).Items.length}async scanPromise(e){return this.awsDDB.send(new I(e))}async queryPromise(e){return this.awsDDB.send(new B(e))}async throughputSafeScanOrQuery(e,t,s,i){let o=null;if(t){let c=i??0;do{c++;try{o=await e(t)}catch(e){if(!Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,c);n.debug("Exceeded scan throughput for %j : Try %d of %d (Waiting %d ms)",t,c,s,e),await r.wait(e),c++}}}while(!o&&(!s||c<s));o||a.throwFormattedErr("throughputSafeScan failed - tried %d times, kept running into throughput exceeded : %j",s,t)}return o}async fullyExecuteQueryCount(e,t=0){try{e.Select="COUNT",n.debug("Executing count query : %j",e);const s={count:0,scannedCount:0,pages:0},a=(new Date).getTime();let i=null;const o=e.Limit;e.Limit=null;do{i=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e),s.count+=i.Count,s.scannedCount+=i.ScannedCount,s.pages++,e.ExclusiveStartKey=i.LastEvaluatedKey,await r.wait(t),n.silly("Rval is now %j",s),o&&s.count>=o&&e.ExclusiveStartKey&&(n.info("Aborting query since hit limit of %d",o),e.ExclusiveStartKey=null)}while(e.ExclusiveStartKey);const c=(new Date).getTime();return n.debug("Finished, returned %j in %s for %j",s,l.formatMsDuration(c-a,!0),e),s}catch(t){return n.error("Failed with %s, q: %j",t,e,t),null}}async fullyExecuteQuery(e,t=0,s=null){const a=[];return await this.fullyExecuteProcessOverQuery(e,(async e=>{a.push(e)}),t,s),a}async fullyExecuteProcessOverQuery(e,t,s=0,a=null){let i=0;try{n.debug("Executing query : %j",e);const o=(new Date).getTime();n.debug("Pulling %j",e);let c=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e);for(let e=0;e<c.Items.length;e++)await t(c.Items[e]),i++;let h=0,u=0;for(;c.LastEvaluatedKey&&(null===a||i<a)&&!e.Limit;){n.silly("Found more rows - requery with key %j",c.LastEvaluatedKey),e.ExclusiveStartKey=c.LastEvaluatedKey,c=await this.throughputSafeScanOrQuery((e=>this.queryPromise(e)),e);for(let e=0;e<c.Items.length;e++)await t(c.Items[e]),i++;n.silly("Have processed %d items",i),h++,u+=0===c.Count?1:0,await r.wait(s)}const d=(new Date).getTime();n.debug("Finished, processed %d rows in %s for %j (%d blank pages, %d total pages)",i,l.formatMsDuration(d-o,!0),e,u,h)}catch(t){n.error("Failed with %s, q: %j",t,e,t)}return i}async fullyExecuteScanCount(e,t=0){try{e.Select="COUNT";const s={count:0,scannedCount:0,pages:0};n.debug("Executing scan count : %j",e);const a=(new Date).getTime();let i=null;const o=e.Limit;e.Limit=null;do{i=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e),s.count+=i.Count,s.scannedCount+=i.ScannedCount,s.pages++,e.ExclusiveStartKey=i?.LastEvaluatedKey,await r.wait(t),n.silly("Rval is now %j",s),o&&s.count>=o&&e.ExclusiveStartKey&&(n.info("Aborting scan since hit limit of %d",o),e.ExclusiveStartKey=null)}while(e.ExclusiveStartKey);const c=(new Date).getTime();return n.debug("Finished, returned %j in %s for %j",s,l.formatMsDuration(c-a,!0),e),s}catch(t){return n.error("Failed with %s, q: %j",t,e,t),null}}async fullyExecuteScan(e,t=0,s=null){const a=[];return await this.fullyExecuteProcessOverScan(e,(async e=>{a.push(e)}),t,s),a}async fullyExecuteProcessOverScan(e,t,s=0,a=null){let i=0;try{n.debug("Executing scan : %j",e);const o=(new Date).getTime();n.debug("Pulling %j",e);let c=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e);for(let e=0;e<c.Items.length;e++)await t(c.Items[e]),i++;for(;c.LastEvaluatedKey&&(null===a||i<a)&&!e.Limit;){n.silly("Found more rows - requery with key %j",c.LastEvaluatedKey),e.ExclusiveStartKey=c.LastEvaluatedKey,c=await this.throughputSafeScanOrQuery((e=>this.scanPromise(e)),e);for(let e=0;e<c.Items.length;e++)await t(c.Items[e]),i++;n.silly("Rval is now %d items",i),await r.wait(s)}const h=(new Date).getTime();n.debug("Finished, processed %d results in %s for %j",i,l.formatMsDuration(h-o,!0),e)}catch(t){n.error("Failed with %s, q: %j",t,e,t)}return i}async writeAllInBatches(e,t,s){if(!s||s<2)throw new Error("Batch size needs to be at least 2, was "+s);let a=0;if(t&&t.length>0){let i=[];for(t.forEach((t=>{i.push({PutRequest:{Item:t,ReturnConsumedCapacity:"TOTAL",TableName:e}})})),n.debug("Processing %d batch items to %s",i.length,e);i.length>0;){const t=i.slice(0,Math.min(i.length,s));i=i.slice(t.length);const o={RequestItems:{},ReturnConsumedCapacity:"TOTAL",ReturnItemCollectionMetrics:"SIZE"};o.RequestItems[e]=t;let c=1,l=!1,h=null;for(;!l&&c<7;){try{h=await this.awsDDB.send(new R(o))}catch(e){if(!Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;n.info("Caught ProvisionedThroughputExceededException - retrying delete"),h={UnprocessedItems:o.RequestItems}}if(h&&h.UnprocessedItems&&h.UnprocessedItems[e]&&h.UnprocessedItems[e].length>0){const t=Math.pow(2,c);n.warn("Found %d unprocessed items. Backing off %d seconds and trying again",h.UnprocessedItems[e].length,t),await r.wait(1e3*t),c++,o.RequestItems[e]=h.UnprocessedItems[e]}else l=!0}h&&h.UnprocessedItems&&h.UnprocessedItems[e]&&h.UnprocessedItems[e].length>0?(n.error("After 6 tries there were still %d unprocessed items"),a+=t.length-h.UnprocessedItems[e].length,n.warn("FIX Unprocessed : %j",h.UnprocessedItems)):a+=t.length}}return a}async fetchFullObjectsMatchingKeysOnlyIndexQuery(e,s,a=25){t.notNullOrUndefined(e),t.notNullOrUndefined(e.TableName),t.notNullOrUndefined(s),t.true(s.length>0);const n=await this.fullyExecuteQuery(e),i=Ae.stripAllToKeysOnly(n,s);return await this.fetchAllInBatches(e.TableName,i,a)}async fetchAllInBatches(e,t,s){if(!s||s<2||s>100)throw new Error("Batch size needs to be at least 2 and no more than 100, was "+s);let a=[];const i=[];let o=Object.assign([],t);for(;o.length>0;){const t=o.slice(0,Math.min(o.length,s));o=o.slice(t.length);const a={};a[e]={Keys:t};const n={RequestItems:a,ReturnConsumedCapacity:"TOTAL"};i.push(n)}n.debug("Created %d batches",i.length);for(let t=0;t<i.length;t++){i.length>1&&n.info("Processing batch %d of %d",t+1,i.length);const s=i[t];let o=1;do{n.silly("Pulling %j",s);const t=await this.awsDDB.send(new K(s));a=a.concat(t.Responses[e]),t.UnprocessedKeys&&t.UnprocessedKeys[e]&&t.UnprocessedKeys[e].Keys.length>0&&o<15&&(n.silly("Found %d unprocessed, waiting",t.UnprocessedKeys[e].Keys),await r.wait(1e3*Math.pow(2,o)),o++),s.RequestItems=t.UnprocessedKeys}while(!s.RequestItems&&s.RequestItems[e].Keys.length>0)}return a}async deleteAllInBatches(e,t,s){if(!s||s<2)throw new Error("Batch size needs to be at least 2, was "+s);let a=0;if(t&&t.length>0){let i=[];for(t.forEach((t=>{i.push({DeleteRequest:{Key:t,ReturnConsumedCapacity:"TOTAL",TableName:e}})})),n.debug("Processing %d DeleteBatch items to %s",i.length,e);i.length>0;){const t=i.slice(0,Math.min(i.length,s));i=i.slice(t.length);const o={RequestItems:{},ReturnConsumedCapacity:"TOTAL",ReturnItemCollectionMetrics:"SIZE"};o.RequestItems[e]=t;let c=1,l=!1,h=null;for(;!l&&c<7;){try{h=await this.awsDDB.send(new R(o))}catch(e){if(!Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;n.info("Caught ProvisionedThroughputExceededException - retrying delete"),h={UnprocessedItems:o.RequestItems}}if(h&&h.UnprocessedItems&&h.UnprocessedItems[e]&&h.UnprocessedItems[e].length>0){const t=Math.pow(2,c);n.warn("Found %d unprocessed items. Backing off %d seconds and trying again",h.UnprocessedItems[e].length,t),await r.wait(1e3*t),c++,o.RequestItems[e]=h.UnprocessedItems[e]}else l=!0}h&&h.UnprocessedItems&&h.UnprocessedItems[e]&&h.UnprocessedItems[e].length>0?(n.error("After 6 tries there were still %d unprocessed items"),a+=t.length-h.UnprocessedItems[e].length,n.warn("FIX Unprocessed : %j",h.UnprocessedItems)):a+=t.length,n.debug("%d Remain, DeleteBatch Results : %j",i.length,h)}}return a}async simplePut(e,t,s=3){let a=null,i=0;const o={Item:t,ReturnConsumedCapacity:"TOTAL",TableName:e};for(;!a&&i<s;)try{a=await this.awsDDB.send(new L(o))}catch(e){if(!Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,i);n.debug("Exceeded write throughput for %j : Try %d of %d (Waiting %d ms)",o,i,s,e),await r.wait(e),i++}}return a||n.warn("Unable to write %j to DDB after %d tries, giving up",o,s),a}async simplePutOnlyIfFieldIsNullOrUndefined(e,t,s){let a=!1;const i={Item:t,ReturnConsumedCapacity:"TOTAL",ConditionExpression:"attribute_not_exists(#fieldName) OR #fieldName = :null ",ExpressionAttributeNames:{"#fieldName":s},ExpressionAttributeValues:{":null":null},TableName:e};try{const e=await this.awsDDB.send(new L(i));n.silly("Wrote : %j",e),a=!0}catch(e){if(Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))n.debug("Exceeded write throughput for %j : (Waiting 2000 ms)",i),await r.wait(2e3);else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;n.debug("Failed to write %j due to null field failure"),a=!1}}return a}async simplePutWithCollisionAvoidance(e,s,a,i,o=null,c=3){t.true(a&&a.length>0&&a.length<3,"You must pass 1 or 2 key names");let l=null,h=0;const u={"#key0":a[0]},d={":key0":s[a[0]]};let m="#key0 <> :key0";a.length>1&&(m+=" AND #key1 <> :key1",u["#key1"]=a[1],d[":key1"]=s[a[1]]);const f={Item:s,ReturnConsumedCapacity:"TOTAL",ConditionExpression:m,ExpressionAttributeNames:u,ExpressionAttributeValues:d,TableName:e};let g=0;for(;!l&&h<c&&(!o||g<o);)try{l=await this.awsDDB.send(new L(f))}catch(e){if(Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e)){h++;const e=1e3*Math.pow(2,h);n.debug("Exceeded write throughput for %j : Try %d of %d (Waiting %d ms)",f,h,c,e),await r.wait(e)}else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;{let e=Object.assign({},f.Item);n.info("Failed to write %j due to collision - adjusting and retrying",e),e=i(e),f.Item=e,f.ExpressionAttributeValues[":key0"]=e[a[0]],a.length>1&&(f.ExpressionAttributeValues[":key1"]=e[a[1]]),g++}}}return l&&g>0&&n.info("After adjustment, wrote %j as %j",s,f.Item),l||n.warn("Unable to write %j to DDB after %d provision tries and %d adjusts, giving up",f,h,g),l?f.Item:null}async simpleGet(e,t,s=3){let a=null,i=0;const o={TableName:e,Key:t};for(;!a&&i<s;)try{a=await this.awsDDB.send(new V(o))}catch(e){if(!Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e))throw e;{const e=1e3*Math.pow(2,i);n.debug("Exceeded read throughput for %j : Try %d of %d (Waiting %d ms)",o,i,s,e),await r.wait(e),i++}}a||n.warn("Unable to read %j from DDB after %d tries, giving up",o,s);return a&&a.Item?Object.assign({},a.Item):null}static objectIsErrorWithProvisionedThroughputExceededExceptionCode(e){return!!e&&!!e.code&&"ProvisionedThroughputExceededException"===e.code}async simpleGetWithCounterDecrement(e,t,s,a,i=3){let o=null,c=0;const l={TableName:e,Key:t,UpdateExpression:"set #counter = #counter-:decVal",ExpressionAttributeNames:{"#counter":s},ExpressionAttributeValues:{":decVal":1,":minVal":0},ConditionExpression:"#counter > :minVal",ReturnValues:"ALL_NEW"};let h=!1;for(;!o&&c<i&&!h;)try{o=await this.awsDDB.send(new G(l))}catch(e){if(Ae.objectIsErrorWithProvisionedThroughputExceededExceptionCode(e)){const e=1e3*Math.pow(2,c);n.debug("Exceeded update throughput for %j : Try %d of %d (Waiting %d ms)",l,c,i,e),await r.wait(e),c++}else{if(!e||!e.code||"ConditionalCheckFailedException"!==e.code)throw e;n.info("Cannot fetch requested row (%j) - the update check failed",t),h=!0}}o||h||n.warn("Unable to update %j from DDB after %d tries, giving up",l,i);const u=o&&o.Attributes?Object.assign({},o.Attributes):null;return a&&u&&0===u[s]&&(n.info("Delete on 0 specified, removing"),await this.simpleDelete(e,t)),u}async simpleDelete(e,t){const s={TableName:e,Key:t};return await this.awsDDB.send(new _(s))}async atomicCounter(e,t,s,a=1){const n={TableName:e,Key:t,UpdateExpression:"SET #counterFieldName = #counterFieldName + :inc",ExpressionAttributeNames:{"#counterFieldName":s},ExpressionAttributeValues:{":inc":a},ReturnValues:"UPDATED_NEW"},i=await this.awsDDB.send(new G(n));return h.safeNumber(i.Attributes[s])}static cleanObject(e){if(e){const t=[];Object.keys(e).forEach((s=>{const a=e[s];""===a?t.push(s):a instanceof Object&&Ae.cleanObject(a)})),n.silly("Removing keys : %j",t),t.forEach((t=>{delete e[t]}))}}static stripToKeysOnly(e,t){let s=null;return e&&t&&t.length>0&&(s={},t.forEach((t=>{e[t]||a.throwFormattedErr("Failed key extraction on %j - missing %s",e,t),s[t]=e[t]}))),s}static stripAllToKeysOnly(e,t){return e.map((e=>Ae.stripToKeysOnly(e,t)))}}class Pe{awsDDB;constructor(e){if(this.awsDDB=e,!e)throw"awsDDB may not be null"}async deleteTable(e,s=!0){t.notNullOrUndefined(e);const a={TableName:e};n.debug("Deleting ddb table %s",e);const i=await this.awsDDB.send(new W(a));return s&&(n.debug("Table marked for delete, waiting for deletion"),await this.waitForTableDelete(e)),i}async createTable(e,s=!0,i=!1){t.notNullOrUndefined(e),t.notNullOrUndefined(e.TableName),n.debug("Creating new table : %j",e);await this.tableExists(e.TableName)&&(i?(n.debug("Table %s exists and replace specified - deleting",e.TableName),await this.deleteTable(e.TableName)):a.throwFormattedErr("Cannot create table %s - exists already and replace not specified",e.TableName));const r=await this.awsDDB.send(new q(e));return s&&(n.debug("Table created, awaiting ready"),await this.waitForTableReady(e.TableName)),r}async waitForTableReady(e){let t=!0,s=await this.safeDescribeTable(e);for(;s&&s.Table&&"ACTIVE"!==s.Table.TableStatus;)n.silly("Table not ready - waiting 2 seconds"),await r.wait(2e3),s=await this.safeDescribeTable(e);return s||s.Table||(n.warn("Cannot wait for %s to be ready - table does not exist",e),t=!1),t}async waitForTableDelete(e){let t=await this.safeDescribeTable(e);for(;t;)n.silly("Table %s still exists, waiting 2 seconds (State is %s)",e,t.Table.TableStatus),await r.wait(2e3),t=await this.safeDescribeTable(e)}async tableExists(e){return!!await this.safeDescribeTable(e)}async safeDescribeTable(e){try{return await this.awsDDB.send(new z({TableName:e}))}catch(e){if(e.code&&"ResourceNotFoundException"===e.code)return null;throw e}}}class Me{spots;buckets;separator;alphabet;_allSlots;constructor(e=3,a=16,n="_",i="0123456789ABCDEF"){this.spots=e,this.buckets=a,this.separator=n,this.alphabet=i,t.true(e>0,"Spots must be larger than 0"),t.true(a>1,"Buckets must be larger than 1"),t.notNullOrUndefined(s.trimToNull(i),"Alphabet may not be null or empty"),t.true(s.allUnique(i),"Alphabet must be unique"),t.true(s.stringContainsOnlyAlphanumeric(i),"Alphabet must be alphanumeric");const r=Math.pow(i.length,e);t.true(a<r,"Buckets must be less than permutations ("+a+" / "+r+")"),t.notNullOrUndefined(s.trimToNull(this.separator),"Separator must be nonnull and nonempty");const o=s.allPermutationsOfLength(e,i);this._allSlots=o.slice(0,a)}get allBuckets(){return Object.assign([],this._allSlots)}get randomBucket(){return this._allSlots[Math.floor(Math.random()*this.buckets)]}allSpreadValues(e){t.notNullOrUndefined(s.trimToNull(e),"Cannot spread null/empty value");return this._allSlots.map((t=>e+this.separator+t))}allSpreadValuesForArray(e){t.true(e&&e.length>0,"Cannot spread null/empty array");let s=[];return e.forEach((e=>{s=s.concat(this.allSpreadValues(e))})),s}addSpreader(e){return t.notNullOrUndefined(s.trimToNull(e),"Cannot spread null/empty value"),e+this.separator+this.randomBucket}extractBucket(e){t.notNullOrUndefined(s.trimToNull(e),"Cannot extract from null or empty value");const n=e.length-this.spots;return(n<0||e.charAt(n)!==this.separator)&&a.throwFormattedErr("Cannot extract bucket, not created by this spreader (missing %s at location %d)",this.separator,n),e.substring(n)}removeBucket(e){t.notNullOrUndefined(s.trimToNull(e),"Cannot extract from null or empty value");const n=e.length-this.spots;return(n<0||e.charAt(n)!==this.separator)&&a.throwFormattedErr("Cannot remove bucket, not created by this spreader (missing %s at location %d)",this.separator,n),e.substring(0,n)}}class je{region;availabilityZone;ec2;ec2InstanceConnect;constructor(e="us-east-1",t="us-east-1a"){this.region=e,this.availabilityZone=t,this.ec2=new Q({region:e}),this.ec2InstanceConnect=new Z({region:e})}get eC2Client(){return this.ec2}get eC2InstanceConnectClient(){return this.ec2InstanceConnect}async stopInstance(e,t=0){let s=!0;try{const s={InstanceIds:[e],DryRun:!1};n.info("About to stop instances : %j",s),await this.ec2.send(new H(s)),n.info("Stop instance command sent, waiting on shutdown");let a=await this.describeInstance(e);if(t>0){const s=(new Date).getTime();for(;a&&16!==a.State.Code&&(new Date).getTime()-s<t;)n.debug("Instance status is %j - waiting for 5 seconds (up to %s)",a.State,l.formatMsDuration(t)),await r.wait(5e3),a=await this.describeInstance(e)}}catch(t){n.error("Failed to stop instance %s : %s",e,t,t),s=!1}return s}async launchInstance(e,t=0){let s=!0;try{const s={InstanceIds:[e],DryRun:!1};n.info("About to start instance : %j",s),await this.ec2.send(new $(s)),n.info("Start instance command sent, waiting on startup");let a=await this.describeInstance(e);if(t>0){const s=(new Date).getTime();for(;a&&16!==a.State.Code&&(new Date).getTime()-s<t;)n.debug("Instance status is %j - waiting for 5 seconds (up to %s)",a.State,l.formatMsDuration(t)),await r.wait(5e3),a=await this.describeInstance(e)}a&&a.PublicIpAddress&&(n.info("Instance address is %s",a.PublicIpAddress),n.info("SSH command : ssh -i path_to_pem_file ec2-user@%s",a.PublicIpAddress))}catch(t){n.error("Failed to start instance %s : %s",e,t,t),s=!1}return s}async describeInstance(e){const t=await this.listAllInstances([e]);return 1===t.length?t[0]:null}async listAllInstances(e=[]){let t=[];const s={NextToken:null};e&&e.length>0&&(s.InstanceIds=e);do{n.debug("Pulling instances... (%j)",s);const e=await this.ec2.send(new Y(s));e.Reservations.forEach((e=>{t=t.concat(e.Instances)})),s.NextToken=e.NextToken}while(s.NextToken);return n.debug("Finished pulling instances (found %d)",t.length),t}async sendPublicKeyToEc2Instance(e,t,s){const a=s||"ec2-user",n={InstanceId:e,AvailabilityZone:this.availabilityZone,InstanceOSUser:a,SSHPublicKey:t};return await this.ec2InstanceConnect.send(new X(n))}}class Ue{providers;constructor(e){this.providers=e,t.notNullOrUndefined(e),t.true(e.length>0)}async fetchConfig(e){n.silly("CascadeEnvironmentServiceProvider fetch for %s",e);let t=null;for(let s=0;s<this.providers.length&&!t;s++)try{t=await this.providers[s].fetchConfig(e)}catch(e){n.error("Provider %d failed - trying next : %s",s,e,e),t=null}return t}}class Ie{envVarName;constructor(e){this.envVarName=e,t.notNullOrUndefined(e)}async fetchConfig(){n.silly("EnvVarEnvironmentServiceProvider fetch for %s",this.envVarName);let e=null;const t=process?process.env:global||{},i=s.trimToNull(t[this.envVarName]);if(i)try{e=JSON.parse(i)}catch(e){throw n.error("Failed to read env - null or invalid JSON : %s : %s",e,i,e),e}else a.throwFormattedErr("Could not find env var with name : %s",this.envVarName);return e}}class Be{provider;cfg;readPromiseCache=new Map;static defaultEnvironmentServiceConfig(){return{maxRetries:3,backoffMultiplierMS:500}}constructor(e,s=Be.defaultEnvironmentServiceConfig()){this.provider=e,this.cfg=s,t.notNullOrUndefined(e),t.notNullOrUndefined(s)}async getConfig(e){return n.silly("EnvService:Request to read config %s",e),this.readPromiseCache.has(e)||(n.silly("EnvService: Nothing in cache - adding"),this.readPromiseCache.set(e,this.getConfigUncached(e))),this.readPromiseCache.get(e)}async getConfigUncached(e){let t=1,s=null;for(;!s&&t<this.cfg.maxRetries;){t++,n.silly("Attempting fetch of %s",e);try{s=await this.provider.fetchConfig(e)}catch(s){const a=t*this.cfg.backoffMultiplierMS;n.info("Error attempting to fetch config %s (try %d of %d, waiting %s MS): %s",e,t,this.cfg.maxRetries,a,s,s),await r.wait(a)}}return s||a.throwFormattedErr("Was unable to fetch config %s even after %d retries",e,this.cfg.maxRetries),s}}class Re{value;constructor(e){this.value=e,t.notNullOrUndefined(e)}static fromRecord(e){const t=new Map;return Object.keys(e).forEach((s=>{t.set(s,e[s])})),new Re(t)}async fetchConfig(e){n.silly("FixedEnvironmentServiceProvider fetch for %s",e);return this.value.get(e)}}class Ke{cfg;ratchet;constructor(e){this.cfg=e,t.notNullOrUndefined(e),t.notNullOrUndefined(e.bucketName),t.notNullOrUndefined(e.region),t.true(!!e.s3Override||!!e.region,"You must set either region or S3Override");const s=e.s3Override||new P({region:e.region});this.ratchet=new ve(s,e.bucketName)}async fetchConfig(e){const t=s.trimToEmpty(this.cfg.pathPrefix)+e+s.trimToEmpty(this.cfg.pathSuffix);n.silly("S3EnvironmentServiceProvider:Request to read config from : %s / %s",this.cfg.bucketName,t);const a=new i,r=await this.ratchet.fetchCacheFileAsObject(t);return a.log(),r}}class Le{region;ssmEncrypted;ssm;constructor(e="us-east-1",s=!0){this.region=e,this.ssmEncrypted=s,t.notNullOrUndefined(e),t.notNullOrUndefined(s),this.ssm=new ee({region:this.region})}async fetchConfig(e){n.silly("SsmEnvironmentServiceProvider fetch for %s",e);const t={Name:e,WithDecryption:this.ssmEncrypted};let i=null,o=null;try{const e=await this.ssm.send(new te(t));o=s.trimToNull(e?.Parameter?.Value)}catch(t){const s=t.code||"";if(-1===s.toLowerCase().indexOf("throttlingexception")){if(-1!==s.toLowerCase().indexOf("parameternotfound")){const t=n.warn("AWS could not find parameter %s - are you using the right AWS key?",e);throw new Error(t)}throw n.error("Final environment fetch error (cannot retry) : %s",t,t),t}n.warn("Throttled while trying to read parameters - waiting 1 second before allowing retry"),await r.wait(1e3)}if(o)try{i=JSON.parse(o)}catch(e){throw n.error("Failed to read env - null or invalid JSON : %s : %s",e,o,e),e}else a.throwFormattedErr("Could not find system parameter with name : %s in this account",e);return i}}class Ve{tableName;dynamoRatchet;constructor(e,t){this.tableName=e,this.dynamoRatchet=t}async checkCode(e,t,s){const a={code:e,context:t},n=await this.dynamoRatchet.simpleGet(this.tableName,a),i=n&&n.expiresEpochMS>Date.now();return i&&s&&await this.dynamoRatchet.simpleDelete(this.tableName,a),i}async storeCode(e){const t=await this.dynamoRatchet.simplePut(this.tableName,e);return t&&t.ConsumedCapacity.CapacityUnits>0}async createTableIfMissing(e){return null}}class _e{provider;constructor(e){this.provider=e}static generateCode(e){t.notNullOrUndefined(e,"params"),t.notNullOrUndefined(e.context,"params.context"),t.notNullOrUndefined(e.length,"params.length"),t.notNullOrUndefined(e.alphabet,"params.alphabet");let s="";for(let t=0;t<e.length;t++)s+=e.alphabet.charAt(Math.floor(e.alphabet.length*Math.random()));return{code:s,context:e.context,tags:e.tags,expiresEpochMS:Date.now()+1e3*e.timeToLiveSeconds}}async createNewCode(e){const t=_e.generateCode(e);return await this.provider.storeCode(t)?t:null}async checkCode(e,t,a){return await this.provider.checkCode(s.trimToEmpty(e),s.trimToEmpty(t),a)}}class Ge{s3CacheRatchet;keyName;constructor(e,s){this.s3CacheRatchet=e,this.keyName=s,t.notNullOrUndefined(e,"s3CacheRatchet"),t.notNullUndefinedOrOnlyWhitespaceString(e.getDefaultBucket(),"s3CacheRatchet.defaultBucket"),t.notNullUndefinedOrOnlyWhitespaceString(s,"keyName")}async fetchFile(){return await this.s3CacheRatchet.fetchCacheFileAsObject(this.keyName)||{data:[],lastModifiedEpochMS:Date.now()}}async updateFile(e){const t={data:e||[],lastModifiedEpochMS:Date.now()};t.data=t.data.filter((e=>e.expiresEpochMS>Date.now())),n.info("Updating code file to %s codes",t.data.length);return await this.s3CacheRatchet.writeObjectToCacheFile(this.keyName,t)}async checkCode(e,t,s){const a=await this.fetchFile(),i=a.data.find((s=>s?.code?.toUpperCase()===e?.toUpperCase()&&s?.context?.toUpperCase()===t?.toUpperCase()));if(i&&(s||i.expiresEpochMS<Date.now())){n.info("Stripping used/expired code from the database");const e=a.data.filter((e=>e!=i));await this.updateFile(e)}return!!i&&i.expiresEpochMS>Date.now()}async storeCode(e){const t=await this.fetchFile();t.data.push(e);return!!await this.updateFile(t.data)}}class We{constructor(){}static applySetProfileEnvironmentalVariable(e){process.env?s.trimToNull(e)?process.env.AWS_PROFILE=e:a.throwFormattedErr("Cannot set profile to null/empty string"):a.throwFormattedErr("Cannot set profile - not in a node environment - process missing")}}class qe{static isValidCronEvent(e){return e&&"aws.events"==e.source&&e.resources&&e.resources.length>0}static isValidSnsEvent(e){return e&&e.Records&&e.Records.length>0&&"aws:sns"==e.Records[0].EventSource}static isValidDynamoDBEvent(e){return e&&e.Records&&e.Records.length>0&&"aws:dynamodb"==e.Records[0].eventSource}static isValidS3Event(e){return e&&e.Records&&e.Records.length>0&&"aws:s3"==e.Records[0].eventSource}static isValidApiGatewayV2WithRequestContextEvent(e){return e&&e.rawPath&&e.requestContext&&e.routeKey}static isValidApiGatewayEvent(e){return e&&e.httpMethod&&e.path&&e.requestContext}static isValidApiGatewayAuthorizerEvent(e){return e&&e.authorizationToken&&e.methodArn}static isSingleCronEvent(e){return this.isValidCronEvent(e)&&qe.isSingleEntryEvent(e,"resources")}static isSingleSnsEvent(e){return this.isValidSnsEvent(e)&&qe.isSingleEntryEvent(e)}static isSingleDynamoDBEvent(e){return this.isValidDynamoDBEvent(e)&&qe.isSingleEntryEvent(e)}static isSingleS3Event(e){return this.isValidS3Event(e)&&qe.isSingleEntryEvent(e)}static isSingleEntryEvent(e,t="Records"){return e&&e[t]&&e[t]instanceof Array&&1===e[t].length}}class ze{static isValidCronEvent(e){return qe.isValidCronEvent(e)}static isValidSnsEvent(e){return qe.isValidSnsEvent(e)}static isValidDynamoDBEvent(e){return qe.isValidDynamoDBEvent(e)}static isValidS3Event(e){return qe.isValidS3Event(e)}static isValidApiGatewayV2WithRequestContextEvent(e){return qe.isValidApiGatewayV2WithRequestContextEvent(e)}static isValidApiGatewayEvent(e){return qe.isValidApiGatewayEvent(e)}static isValidApiGatewayAuthorizerEvent(e){return qe.isValidApiGatewayAuthorizerEvent(e)}}class Je{route53;hostedZoneId;constructor(e,t){if(this.route53=e,this.hostedZoneId=t,!this.route53)throw"route53 may not be null"}get route53Client(){return this.route53}async changeCnameRecordTarget(e,t,s=this.hostedZoneId,a=600){n.info("Updating %s to point to %s",e,t);try{const i={ChangeBatch:{Changes:[{Action:"UPSERT",ResourceRecordSet:{Name:e,ResourceRecords:[{Value:t}],TTL:a,Type:"CNAME"}}]},HostedZoneId:s},r=await this.route53.send(new se(i));n.debug("Updated domain result: %j",r);const o={Id:r.ChangeInfo.Id},c=await ae({client:this.route53,maxWaitTime:300},o);if(n.debug("Wait responsed: %j",c),c.state===ne.SUCCESS)return n.info("Updated %s to point to %s",e,s),!0}catch(s){n.warn("Error update CName for %s with value %s: %j",e,t,s)}return n.info("Cannot update %s to point to %s",e,t),!1}}class Qe{dynamo;tableName;constructor(e,s){this.dynamo=e,this.tableName=s,t.notNullOrUndefined(this.dynamo),t.notNullOrUndefined(this.tableName)}async readParameter(e,t){n.silly("Reading %s / %s from underlying db",e,t);const s={groupId:e,paramKey:t};return await this.dynamo.simpleGet(this.tableName,s)}async readAllParametersForGroup(e){const t={TableName:this.tableName,KeyConditionExpression:"groupId = :groupId",ExpressionAttributeValues:{":groupId":e}};return await this.dynamo.fullyExecuteQuery(t)}async writeParameter(e){return!!await this.dynamo.simplePut(this.tableName,e)}}class He{wrapped;options={globalTTL:1,separator:".",prefix:"RuntimeEnv-",suffix:""};constructor(e,s){this.wrapped=e,t.notNullOrUndefined(this.wrapped,"wrapped"),t.notNullOrUndefined(global?.process?.env,'"process" not found - this only runs in Node, not the browser'),s&&(this.options=s),t.notNullOrUndefined(this.options.globalTTL,"this.options.globalTTL"),t.notNullOrUndefined(this.options.separator,"this.options.separator"),t.true(this.options.globalTTL>0,"this.options.globalTTL must be larger than 0")}generateName(e,t){return s.trimToEmpty(this.options.prefix)+e+s.trimToEmpty(this.options.separator)+t+s.trimToEmpty(this.options.suffix)}async readParameter(e,t){const n=s.trimToNull(process.env[this.generateName(e,t)]);n&&!s.canParseAsJson(n)&&a.throwFormattedErr("Cannot parse ENV override (%s / %s) as JSON - did you forget the quotes on a string?",e,t);return n?{groupId:e,paramKey:t,paramValue:n,ttlSeconds:this.options.globalTTL}:await this.wrapped.readParameter(e,t)}async readAllParametersForGroup(e){return this.wrapped.readAllParametersForGroup(e)}async writeParameter(e){return this.wrapped.writeParameter(e)}}class $e{data;constructor(e=Promise.resolve({})){this.data=e}async readParameter(e,t){n.silly("Reading %s / %s from underlying db",e,t);return(await this.data)[e+"::"+t]}async readAllParametersForGroup(e){const t=await this.data,s=[];return Object.keys(t).forEach((a=>{a.startsWith(e)&&s.push(t[a])})),s}async writeParameter(e){return(await this.data)[e.groupId+"::"+e.paramKey]=e,!0}}class Ye{provider;cache=new Map;constructor(e){this.provider=e,t.notNullOrUndefined(this.provider)}async fetchParameter(e,t,s=null,a=!1){n.debug("Reading parameter %s / %s / Force : %s",e,t,a);const i=this.cache.get(Ye.toCacheStoreKey(e,t));let r=null;const o=(new Date).getTime();if(!a&&i){const s=i.ttlSeconds?o-1e3*i.ttlSeconds:0;i.storedEpochMS>s&&(n.silly("Fetched %s / %s from cache",e,t),r=JSON.parse(i.paramValue))}if(!r){const s=await this.readUnderlyingEntry(e,t);s&&(this.addToCache(s),r=JSON.parse(s.paramValue))}return r=r||s,r}async fetchAllParametersForGroup(e){const t=await this.readUnderlyingEntries(e),s=new Map;return t.forEach((e=>{s.set(e.paramKey,JSON.parse(e.paramValue)),this.addToCache(e)})),s}async readUnderlyingEntry(e,t){return this.provider.readParameter(e,t)}async readUnderlyingEntries(e){return this.provider.readAllParametersForGroup(e)}async storeParameter(e,t,s,a){const n={groupId:e,paramKey:t,paramValue:JSON.stringify(s),ttlSeconds:a};return await this.provider.writeParameter(n),this.provider.readParameter(e,t)}static toCacheStoreKey(e,t){return e+":::"+t}addToCache(e){if(e){const t=(new Date).getTime(),s=Object.assign({storedEpochMS:t},e);this.cache.set(Ye.toCacheStoreKey(e.groupId,e.paramKey),s)}}clearCache(){n.debug("Clearing runtime parameter cache"),this.cache=new Map}}class Ze{s3;tmpFolder;cacheTimeoutSeconds;static DEFAULT_CACHE_TIMEOUT_SEC=604800;currentlyLoading=new Map;constructor(e,a,n=Ze.DEFAULT_CACHE_TIMEOUT_SEC){this.s3=e,this.tmpFolder=a,this.cacheTimeoutSeconds=n,t.notNullOrUndefined(e,"s3"),t.notNullOrUndefined(s.trimToNull(a)),t.true(re.existsSync(a),"folder must exist : "+a)}async getFileString(e){const t=await this.getFileBuffer(e);return t?t.toString():null}keyToLocalCachePath(e){const t=this.generateCacheHash(this.s3.getDefaultBucket()+"/"+e);return oe.join(this.tmpFolder,t)}removeCacheFileForKey(e){const t=this.keyToLocalCachePath(e);n.info("Removing cache file for %s : %s",e,t),re.existsSync(t)?re.unlinkSync(t):n.debug("Skipping delete for %s - does not exist",t)}async getFileBuffer(e){const t=this.keyToLocalCachePath(e);let s=null;if(s=this.getCacheFileAsBuffer(t),s)n.info("Found cache file for s3://%s/%s. Local path %s",this.s3.getDefaultBucket(),e,t);else{n.info("No cache. Downloading File s3://%s/%s to %s",this.s3.getDefaultBucket(),e,t);try{let a=this.currentlyLoading.get(e);a?n.info("Already running - wait for that"):(n.info("Not running - start"),a=this.updateLocalCacheFile(e,t),this.currentlyLoading.set(e,a)),s=await a,this.currentlyLoading.delete(e)}catch(t){n.warn("File %s/%s does not exist. Err code: %s",this.s3.getDefaultBucket(),e,t)}}return s}async updateLocalCacheFile(e,t){const s=await this.s3.fetchCacheFileAsBuffer(e);return s&&s.length>0&&(n.info("Saving %d bytes to disk for cache",s.length),re.writeFileSync(t,s)),s}getCacheFileAsString(e){const t=this.getCacheFileAsBuffer(e);return t?t.toString():null}getCacheFileAsBuffer(e){if(!re.existsSync(e))return null;try{const t=re.statSync(e),s=(new Date).getTime();if((s-t.ctimeMs)/1e3>=this.cacheTimeoutSeconds)return null;return re.readFileSync(e)}catch(e){n.warn("Error getting s3 cache file %s",e)}return null}generateCacheHash(e){return ie.createHash("md5").update(e).digest("hex")}}class Xe{config;constructor(e){t.notNullOrUndefined(e,"config"),this.config=e,this.config.maxNumThreads||(this.config.maxNumThreads=15),this.config.maxRetries||(this.config.maxRetries=5)}updateSrcPrefix(e){this.config.srcPrefix=e}updateDstPrefix(e){this.config.dstPrefix=e}async copyObject(e,t,s=!1){const a=e.replace(this.config.srcPrefix,this.config.dstPrefix);let i=!1,r=0;for(;!i&&r<this.config.maxRetries;){n.debug(`${r>0?`Retry ${r} `:""}${s?"Express":"Slow"} copying\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,a].join("/")}]`);try{if(s){const t={CopySource:encodeURIComponent([this.config.srcBucket,e].join("/")),Bucket:this.config.dstBucket,Key:a,MetadataDirective:"COPY"};await this.config.dstS3.send(new F(t))}else{const s=await this.config.srcS3.send(new v({Bucket:this.config.srcBucket,Key:e})),i={Bucket:this.config.dstBucket,Key:a,Body:s.Body,ContentLength:t},r=new j({client:this.config.dstS3,params:i,tags:[],queueSize:4,partSize:5242880,leavePartsOnError:!1});r.on("httpUploadProgress",(e=>{n.info("Uploading : %s",e)})),await r.done()}i=!0}catch(t){n.warn(`Can't ${s?"express":"slow"} copy\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,a].join("/")}]: %j`,t),r++}}n.debug(`Finished ${s?"express":"slow"} copying\n [${[this.config.srcBucket,e].join("/")} ---\x3e ${[this.config.dstBucket,a].join("/")}]`)}async listObjects(e,t,s){n.info(`Scanning bucket [${[e,t].join("/")}]`);const a={Bucket:e,Prefix:t};let i=!0;const r={};for(;i;){const e=await s.send(new M(a));i=e.IsTruncated,ce.each(e.Contents,(e=>{r[e.Key]={Key:e.Key,LastModified:e.LastModified,ETag:e.ETag,Size:e.Size}})),i&&(a.ContinuationToken=e.NextContinuationToken)}return r}async startSyncing(){n.info(`Syncing [${this.config.srcBucket}/${this.config.srcPrefix}\n ---\x3e ${this.config.dstBucket}/${this.config.dstPrefix}]`);const e=async e=>{await this.copyObject(e.Key,e.Size)};let t=await this.compareSrcAndDst();return(t.needCopy.length>0||t.diff.length>0)&&(await r.runBoundedParallelSingleParam(e,t.needCopy,this,this.config.maxNumThreads),await r.runBoundedParallelSingleParam(e,t.diff,this,this.config.maxNumThreads),n.info("Verifying..."),t=await this.compareSrcAndDst(),n.debug("Compare result %j",t)),0===t.needCopy.length&&0===t.diff.length}async compareSrcAndDst(){const e=this.listObjects(this.config.srcBucket,this.config.srcPrefix,this.config.srcS3),t=this.listObjects(this.config.dstBucket,this.config.dstPrefix,this.config.dstS3),s=await e,a=await t,n={needCopy:[],existed:[],diff:[]};return await r.runBoundedParallelSingleParam((e=>{const t=s[e],i=e.replace(this.config.srcPrefix,this.config.dstPrefix),r=a.hasOwnProperty(i)?a[i]:void 0;r?t.Size===r.Size&&t.LastModified.getTime()<=r.LastModified.getTime()?n.existed.push(t):n.diff.push(t):n.needCopy.push(t)}),Object.keys(s),this,this.config.maxNumThreads),n}}class et{static checkS3UrlForValidity(e){let t=!1;return e&&(t=e.startsWith("s3://")&&e.trim().length>5),t}static extractBucketFromURL(e){t.true(et.checkS3UrlForValidity(e),"invalid s3 url");const s=e.indexOf("/",5);return s>0?e.substring(5,s):e.substring(5)}static extractKeyFromURL(e){t.true(et.checkS3UrlForValidity(e),"invalid s3 url");const s=e.indexOf("/",5);return s>0?e.substring(s+1):null}}class tt{ses;config;static EMAIL=new RegExp(".+@.+\\.[a-z]+");constructor(e,s={}){if(this.ses=e,this.config=s,t.notNullOrUndefined(this.ses),s.archive&&!s.archive.getDefaultBucket())throw new Error("If archive specified, must set a default bucket")}get sESClient(){return this.ses}async fillEmailBody(e,s,n,i=null,r=null,o=null){return t.notNullOrUndefined(n),this.config.templateRenderer||a.throwFormattedErr("Cannot use fill body if template renderer not set"),e.htmlMessage=await this.config.templateRenderer.renderTemplate(n,s,r,o),e.txtMessage=i?await this.config.templateRenderer.renderTemplate(i,s):null,e}async fillEmailBodyAndSend(e,t,s,a=null,n=null,i=null){const r=await this.fillEmailBody(e,t,s,a,n,i);return await this.sendEmail(r)}filterEmailsToValid(e){return(e||[]).filter((e=>{if(this.config.allowedDestinationEmails&&0!=this.config.allowedDestinationEmails.length){return!!this.config.allowedDestinationEmails.find((t=>t.test(e)))}return!0}))}async archiveEmailIfConfigured(t){let a=!1;if(t&&this.config.archive&&!t.doNotArchive){n.debug("Archiving outbound email to : %j",t.destinationAddresses);let i=s.trimToEmpty(this.config.archivePrefix);i.endsWith("/")||(i+="/");const r=e.utc();i+="year="+r.toFormat("yyyy")+"/month="+r.toFormat("MM")+"/day="+r.toFormat("dd")+"/hour="+r.toFormat("HH")+"/"+r.toFormat("mm_ss__SSS"),i+=".json";try{await this.config.archive.writeObjectToCacheFile(i,t),a=!0}catch(e){n.warn("Failed to archive email %s %j : %s",i,t,e)}}return a}applyLimitsToBodySizesIfAnyInPlace(e){if(this.config.maxMessageBodySizeInBytes){const t=s.trimToEmpty(e.txtMessage).length+s.trimToEmpty(e.htmlMessage).length;if(t>this.config.maxMessageBodySizeInBytes){if(n.warn("Max message size is %d but size is %d - converting",this.config.maxMessageBodySizeInBytes,t),e.attachments=e.attachments||[],s.trimToNull(e.txtMessage)){const t={filename:"original-txt-body.txt",contentType:"text/plain",base64Data:u.generateBase64VersionOfString(e.txtMessage)};e.attachments.push(t)}if(s.trimToNull(e.htmlMessage)){const t={filename:"original-html-body.html",contentType:"text/html",base64Data:u.generateBase64VersionOfString(e.htmlMessage)};e.attachments.push(t)}e.htmlMessage=null,e.txtMessage="The message was too large and was converted to attachment(s). Please see attached files for content"}}}applyLimitsToAttachmentSizesIfAnyInPlace(e){if(this.config.maxAttachmentSizeInBase64Bytes){const t=[];e.attachments&&e.attachments.forEach((e=>{e.base64Data&&e.base64Data.length<this.config.maxAttachmentSizeInBase64Bytes?t.push(e):(n.warn("Removing too-large attachment : %s : %s : %d",e.filename,e.contentType,e.base64Data.length),t.push({filename:"attachment-removed-notice-"+s.createRandomHexString(4)+".txt",contentType:"text/plain",base64Data:u.generateBase64VersionOfString("Attachment "+e.filename+" of type "+e.contentType+" was removed since it was "+e.base64Data.length+" bytes but max allowed is "+this.config.maxAttachmentSizeInBase64Bytes)}))})),e.attachments=t}}async sendEmail(e){t.notNullOrUndefined(e,"RTS must be defined"),t.notNullOrUndefined(e.destinationAddresses,"Destination addresses must be defined");let a=null,i=this.filterEmailsToValid(e.destinationAddresses);const r=e.doNotAutoBcc?[]:this.config.autoBccAddresses||[],o=(e.bccAddresses||[]).concat(r);0===i.length&&o.length>0&&(n.debug("Destination emails filtered to none but BCC defined, copying BCC"),i=o);const c=Object.assign({},e);if(c.srcDestinationAddresses=e.destinationAddresses,c.srcBccAddresses=e.bccAddresses,c.destinationAddresses=i,c.bccAddresses=o,this.applyLimitsToBodySizesIfAnyInPlace(c),this.applyLimitsToAttachmentSizesIfAnyInPlace(c),await this.archiveEmailIfConfigured(c),0===c.destinationAddresses.length)n.info("After cleaning email lists, no destination addresses left - not sending email");else{const e="To: "+c.destinationAddresses.join(", ")+"\n",t=c.bccAddresses&&c.bccAddresses.length>0?"Bcc: "+c.bccAddresses.join(", ")+"\n":"";try{const n=c.fromAddress||this.config.defaultSendingAddress,i="NextPart",r="AltPart";let o="From: "+n+"\n";o+=e,o+=t,o+="Subject: "+c.subject+"\n",o+="MIME-Version: 1.0\n",o+='Content-Type: multipart/mixed; boundary="'+i+'"\n',o+="\n\n--"+i+"\n",o+='Content-Type: multipart/alternative; boundary="'+r+'"\n',s.trimToNull(c.htmlMessage)&&(o+="\n\n--"+r+"\n",o+='Content-Type: text/html; charset="UTF-8"\n\n',o+=c.htmlMessage),s.trimToNull(c.txtMessage)&&(o+="\n\n--"+r+"\n",o+="Content-Type: text/plain\n\n",o+=c.txtMessage),o+="\n\n--"+r+"--\n",c.attachments&&c.attachments.forEach((e=>{o+="\n\n--"+i+"\n",o+="Content-Type: "+e.contentType+'; name="'+e.filename+'"\n',o+="Content-Transfer-Encoding: base64\n",o+="Content-Disposition: attachment\n\n",o+=e.base64Data.replace(/([^\0]{76})/g,"$1\n")+"\n\n"})),o+="\n\n--"+i+"--\n";const l={RawMessage:{Data:(new TextEncoder).encode(o)}};a=await this.ses.send(new le(l))}catch(e){n.error("Error while processing email: %s",e,e)}}return a}static validEmail(e){return null!==e&&tt.EMAIL.test(e)}}class st{prefix;suffix;maxCacheTemplates;cache;constructor(e="",t="",s=10){this.prefix=e,this.suffix=t,this.maxCacheTemplates=s,this.maxCacheTemplates>0&&(this.cache=new Map)}async renderTemplate(e,t,s=null){return this.renderRemoteTemplate(e,t,s)}async renderRemoteTemplate(e,t,s=null){const a=await this.fetchTemplate(e),n=s?await this.fetchTemplateText(s):null;n&&(await de.register(he),he.registerPartial(s,n));return a?a(t||{}):null}async renderTemplateDirect(e,t,s=null){return he.compile(e)(t)}async fetchTemplate(e){let t=null;try{if(this.cache&&this.cache.has(e))n.silly("Cache hit for template : %s",e),t=this.cache.get(e);else{n.debug("Cache miss for template : %s",e);const s=await this.fetchTemplateText(e);s&&(t=he.compile(s),this.cache&&t&&(this.cache.set(e,t),this.cache.size>this.maxCacheTemplates&&this.cache.delete(Array.from(this.cache.keys())[0])))}}catch(s){n.warn("Could not fetch and compile template : %s : %s",e,s,s),t=null}return t}async fetchTemplateText(e){let t=null;const a=s.trimToEmpty(this.prefix)+e+s.trimToEmpty(this.suffix);try{const e=await ue(a);t=await e.text()}catch(e){n.warn("Could not fetch url : %s : %s",a,e,e),t=null}return t}}class at{sns;topicArn;constructor(e=new me({region:"us-east-1"}),s){this.sns=e,this.topicArn=s,t.notNullOrUndefined(this.sns,"sns"),t.notNullOrUndefined(this.topicArn,"topicArn")}get snsClient(){return this.sns}async sendMessage(e,t=!1){let s=null;try{const t=e||"NO-MESSAGE-PROVIDED",a="string"==typeof t?t:JSON.stringify(t),i={TopicArn:this.topicArn,Message:a};n.debug("Sending via SNS : %j",i),s=await this.sns.send(new fe(i))}catch(s){if(!t)throw s;n.error("Failed to fire SNS notification : %j : %s",e,s)}return s}async conditionallySendMessage(e,t,s=!1){let a=null;return t?a=await this.sendMessage(e,s):n.info("Not sending message, condition was false : %j",e),a}}class nt{ratchet;tableName;constructor(e,a){this.ratchet=e,this.tableName=a,t.notNullOrUndefined(e,"ratchet"),t.notNullOrUndefined(s.trimToNull(this.tableName),"tableName")}async acquireLock(e,t=30){let s=!1;if(e&&t){const a=Math.floor((new Date).getTime()/1e3),i={Item:{lockingKey:e,timestamp:a,expires:a+t},ReturnConsumedCapacity:"TOTAL",TableName:this.tableName,ConditionExpression:"attribute_not_exists(lockingKey)"};try{await this.ratchet.getDDB().send(new J(i));s=!0}catch(t){String(t).indexOf("ConditionalCheckFailedException")>-1&&n.silly("Unable to acquire lock on %s",e)}}return s}async releaseLock(e){if(s.trimToNull(e))try{const t=await this.ratchet.simpleDelete(this.tableName,{lockingKey:e});n.silly("Released lock %s : %s",e,t)}catch(t){n.warn("Failed to release lock key : %s : %s",e,t,t)}}async clearExpiredSyncLocks(){const e=Math.floor((new Date).getTime()/1e3),t={TableName:this.tableName,FilterExpression:"expires < :now",ExpressionAttributeValues:{":now":e}},s=(await this.ratchet.fullyExecuteScan(t)).map((e=>({lockingKey:e.lockingKey})));return await this.ratchet.deleteAllInBatches(this.tableName,s,25)}}class it{_locks=new Map;constructor(){}async acquireLock(e,t=30){let a=!1;if(s.trimToNull(e)){const s=Date.now(),n=this._locks.get(e);(!n||n<s)&&(this._locks.set(e,s+1e3*t),a=!0)}return a}async releaseLock(e){s.trimToNull(e)&&this._locks.delete(e)}async clearExpiredSyncLocks(){const e=[],t=Date.now();return this._locks.forEach(((s,a)=>{s<t&&e.push(a)})),e.forEach((e=>{this._locks.delete(e)})),e.length}}export{ge as AwsBatchBackgroundProcessor,pe as AwsBatchRatchet,We as AwsCredentialsRatchet,Ue as CascadeEnvironmentServiceProvider,Ee as CloudWatchLogGroupRatchet,Ce as CloudWatchLogsRatchet,Ne as CloudWatchMetricsRatchet,Se as CloudWatchMetricsUnit,ke as Daemon,xe as DaemonUtil,we as DynamoDbStorageProvider,nt as DynamoDbSyncLock,Ve as DynamoExpiringCodeProvider,Ae as DynamoRatchet,Qe as DynamoRuntimeParameterProvider,Pe as DynamoTableRatchet,je as Ec2Ratchet,Ie as EnvVarEnvironmentServiceProvider,Be as EnvironmentService,_e as ExpiringCodeRatchet,Re as FixedEnvironmentServiceProvider,He as GlobalVariableOverrideRuntimeParameterProvider,Me as HashSpreader,qe as LambdaEventDetector,ze as LambdaEventTypeGuards,tt as Mailer,$e as MemoryRuntimeParameterProvider,it as MemorySyncLock,De as PrototypeDao,ye as RatchetAwsInfo,st as RemoteHandlebarsTemplateRenderer,Je as Route53Ratchet,Ye as RuntimeParameterRatchet,ve as S3CacheRatchet,Ze as S3CacheToLocalDiskRatchet,Ke as S3EnvironmentServiceProvider,Ge as S3ExpiringCodeProvider,Xe as S3LocationSyncRatchet,Oe as S3PrototypeDaoProvider,et as S3Ratchet,Fe as S3SimpleDao,be as S3StorageProvider,Te as SimpleCache,at as SnsRatchet,Le as SsmEnvironmentServiceProvider};
11
2
  //# sourceMappingURL=index.mjs.map