/*! For license information please see main.43f25501.js.LICENSE.txt */ (() => { var e = { 47185: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.acm = {}, a.ACM = n.defineService("acm", ["2015-12-08"]), Object.defineProperty(i.services.acm, "2015-12-08", { get: function() { var e = r(34662); return e.paginators = r(42680).o, e.waiters = r(85678).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ACM }, 43015: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.amp = {}, a.Amp = n.defineService("amp", ["2020-08-01"]), Object.defineProperty(i.services.amp, "2020-08-01", { get: function() { var e = r(78362); return e.paginators = r(75928).o, e.waiters = r(58239).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Amp }, 80528: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.apigateway = {}, a.APIGateway = n.defineService("apigateway", ["2015-07-09"]), r(32193), Object.defineProperty(i.services.apigateway, "2015-07-09", { get: function() { var e = r(59463); return e.paginators = r(25878).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.APIGateway }, 68037: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.applicationautoscaling = {}, a.ApplicationAutoScaling = n.defineService("applicationautoscaling", ["2016-02-06"]), Object.defineProperty(i.services.applicationautoscaling, "2016-02-06", { get: function() { var e = r(47320); return e.paginators = r(40322).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ApplicationAutoScaling }, 70887: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.athena = {}, a.Athena = n.defineService("athena", ["2017-05-18"]), Object.defineProperty(i.services.athena, "2017-05-18", { get: function() { var e = r(28680); return e.paginators = r(44417).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Athena }, 66552: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.autoscaling = {}, a.AutoScaling = n.defineService("autoscaling", ["2011-01-01"]), Object.defineProperty(i.services.autoscaling, "2011-01-01", { get: function() { var e = r(55394); return e.paginators = r(81436).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.AutoScaling }, 52968: (e, t, r) => { r(544), e.exports = { ACM: r(47185), APIGateway: r(80528), ApplicationAutoScaling: r(68037), AutoScaling: r(66552), CloudFormation: r(16725), CloudFront: r(20517), CloudHSM: r(26003), CloudTrail: r(75822), CloudWatch: r(25331), CloudWatchEvents: r(70685), CloudWatchLogs: r(12799), CodeBuild: r(10413), CodeCommit: r(52898), CodeDeploy: r(77308), CodePipeline: r(22258), CognitoIdentity: r(49055), CognitoIdentityServiceProvider: r(20240), CognitoSync: r(78875), ConfigService: r(12008), CUR: r(82692), DeviceFarm: r(52731), DirectConnect: r(22395), DynamoDB: r(87209), DynamoDBStreams: r(37787), EC2: r(35174), ECR: r(17869), ECS: r(85092), EFS: r(43370), ElastiCache: r(58363), ElasticBeanstalk: r(96741), ELB: r(26300), ELBv2: r(18036), EMR: r(31007), ElasticTranscoder: r(69979), Firehose: r(70392), GameLift: r(11677), IAM: r(21941), Inspector: r(34979), Iot: r(18709), IotData: r(5158), Kinesis: r(62121), KMS: r(71227), Lambda: r(77944), LexRuntime: r(12658), MachineLearning: r(87365), MarketplaceCommerceAnalytics: r(740), MTurk: r(14803), MobileAnalytics: r(69900), OpsWorks: r(68999), Polly: r(46293), RDS: r(24376), Redshift: r(33058), Rekognition: r(96545), Route53: r(11023), Route53Domains: r(8254), S3: r(89114), ServiceCatalog: r(32734), SES: r(40602), SNS: r(91390), SQS: r(47275), SSM: r(30679), StorageGateway: r(98296), STS: r(62362), XRay: r(78868), WAF: r(2522), WorkDocs: r(66431), LexModelBuildingService: r(79102), Athena: r(70887), CloudHSMV2: r(87023), Pricing: r(88958), CostExplorer: r(55134), MediaStoreData: r(99855), Comprehend: r(34350), KinesisVideoArchivedMedia: r(79807), KinesisVideoMedia: r(12712), KinesisVideo: r(75679), Translate: r(12793), ResourceGroups: r(26170), Connect: r(56691), SecretsManager: r(54186), IoTAnalytics: r(37069), ComprehendMedical: r(64482), Personalize: r(31651), PersonalizeEvents: r(8373), PersonalizeRuntime: r(87830), ForecastService: r(25585), ForecastQueryService: r(64359), MarketplaceCatalog: r(82289), KinesisVideoSignalingChannels: r(10204), Amp: r(43015), Location: r(64276), LexRuntimeV2: r(39064) } }, 16725: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudformation = {}, a.CloudFormation = n.defineService("cloudformation", ["2010-05-15"]), Object.defineProperty(i.services.cloudformation, "2010-05-15", { get: function() { var e = r(31930); return e.paginators = r(10611).o, e.waiters = r(53732).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudFormation }, 20517: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudfront = {}, a.CloudFront = n.defineService("cloudfront", ["2013-05-12*", "2013-11-11*", "2014-05-31*", "2014-10-21*", "2014-11-06*", "2015-04-17*", "2015-07-27*", "2015-09-17*", "2016-01-13*", "2016-01-28*", "2016-08-01*", "2016-08-20*", "2016-09-07*", "2016-09-29*", "2016-11-25", "2016-11-25*", "2017-03-25", "2017-03-25*", "2017-10-30", "2017-10-30*", "2018-06-18", "2018-06-18*", "2018-11-05", "2018-11-05*", "2019-03-26", "2019-03-26*", "2020-05-31"]), r(42768), Object.defineProperty(i.services.cloudfront, "2016-11-25", { get: function() { var e = r(64908); return e.paginators = r(57305).o, e.waiters = r(71106).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2017-03-25", { get: function() { var e = r(76944); return e.paginators = r(83654).o, e.waiters = r(83406).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2017-10-30", { get: function() { var e = r(80198); return e.paginators = r(52915).o, e.waiters = r(13399).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2018-06-18", { get: function() { var e = r(29549); return e.paginators = r(7805).o, e.waiters = r(2353).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2018-11-05", { get: function() { var e = r(22253); return e.paginators = r(29533).o, e.waiters = r(36883).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2019-03-26", { get: function() { var e = r(29574); return e.paginators = r(35556).o, e.waiters = r(97142).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.cloudfront, "2020-05-31", { get: function() { var e = r(66310); return e.paginators = r(48335).o, e.waiters = r(83517).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudFront }, 26003: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudhsm = {}, a.CloudHSM = n.defineService("cloudhsm", ["2014-05-30"]), Object.defineProperty(i.services.cloudhsm, "2014-05-30", { get: function() { var e = r(18637); return e.paginators = r(18988).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudHSM }, 87023: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudhsmv2 = {}, a.CloudHSMV2 = n.defineService("cloudhsmv2", ["2017-04-28"]), Object.defineProperty(i.services.cloudhsmv2, "2017-04-28", { get: function() { var e = r(90554); return e.paginators = r(77334).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudHSMV2 }, 75822: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudtrail = {}, a.CloudTrail = n.defineService("cloudtrail", ["2013-11-01"]), Object.defineProperty(i.services.cloudtrail, "2013-11-01", { get: function() { var e = r(11506); return e.paginators = r(27523).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudTrail }, 25331: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudwatch = {}, a.CloudWatch = n.defineService("cloudwatch", ["2010-08-01"]), Object.defineProperty(i.services.cloudwatch, "2010-08-01", { get: function() { var e = r(16363); return e.paginators = r(46675).o, e.waiters = r(21466).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudWatch }, 70685: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudwatchevents = {}, a.CloudWatchEvents = n.defineService("cloudwatchevents", ["2014-02-03*", "2015-10-07"]), Object.defineProperty(i.services.cloudwatchevents, "2015-10-07", { get: function() { var e = r(40299); return e.paginators = r(54031).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudWatchEvents }, 12799: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cloudwatchlogs = {}, a.CloudWatchLogs = n.defineService("cloudwatchlogs", ["2014-03-28"]), Object.defineProperty(i.services.cloudwatchlogs, "2014-03-28", { get: function() { var e = r(73044); return e.paginators = r(15472).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CloudWatchLogs }, 10413: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.codebuild = {}, a.CodeBuild = n.defineService("codebuild", ["2016-10-06"]), Object.defineProperty(i.services.codebuild, "2016-10-06", { get: function() { var e = r(40893); return e.paginators = r(23010).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CodeBuild }, 52898: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.codecommit = {}, a.CodeCommit = n.defineService("codecommit", ["2015-04-13"]), Object.defineProperty(i.services.codecommit, "2015-04-13", { get: function() { var e = r(57144); return e.paginators = r(62599).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CodeCommit }, 77308: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.codedeploy = {}, a.CodeDeploy = n.defineService("codedeploy", ["2014-10-06"]), Object.defineProperty(i.services.codedeploy, "2014-10-06", { get: function() { var e = r(10967); return e.paginators = r(1917).o, e.waiters = r(52416).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.CodeDeploy }, 22258: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.codepipeline = {}, a.CodePipeline = n.defineService("codepipeline", ["2015-07-09"]), Object.defineProperty(i.services.codepipeline, "2015-07-09", { get: function() { var e = r(4039); return e.paginators = r(3427).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CodePipeline }, 49055: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cognitoidentity = {}, a.CognitoIdentity = n.defineService("cognitoidentity", ["2014-06-30"]), Object.defineProperty(i.services.cognitoidentity, "2014-06-30", { get: function() { var e = r(57377); return e.paginators = r(85010).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CognitoIdentity }, 20240: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cognitoidentityserviceprovider = {}, a.CognitoIdentityServiceProvider = n.defineService("cognitoidentityserviceprovider", ["2016-04-18"]), Object.defineProperty(i.services.cognitoidentityserviceprovider, "2016-04-18", { get: function() { var e = r(53166); return e.paginators = r(17149).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CognitoIdentityServiceProvider }, 78875: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cognitosync = {}, a.CognitoSync = n.defineService("cognitosync", ["2014-06-30"]), Object.defineProperty(i.services.cognitosync, "2014-06-30", { get: function() { var e = r(29128); return e.paginators = r(5865).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CognitoSync }, 34350: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.comprehend = {}, a.Comprehend = n.defineService("comprehend", ["2017-11-27"]), Object.defineProperty(i.services.comprehend, "2017-11-27", { get: function() { var e = r(24433); return e.paginators = r(82518).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Comprehend }, 64482: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.comprehendmedical = {}, a.ComprehendMedical = n.defineService("comprehendmedical", ["2018-10-30"]), Object.defineProperty(i.services.comprehendmedical, "2018-10-30", { get: function() { var e = r(96649); return e.paginators = r(43172).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ComprehendMedical }, 12008: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.configservice = {}, a.ConfigService = n.defineService("configservice", ["2014-11-12"]), Object.defineProperty(i.services.configservice, "2014-11-12", { get: function() { var e = r(47124); return e.paginators = r(85980).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ConfigService }, 56691: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.connect = {}, a.Connect = n.defineService("connect", ["2017-08-08"]), Object.defineProperty(i.services.connect, "2017-08-08", { get: function() { var e = r(54511); return e.paginators = r(19742).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Connect }, 55134: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.costexplorer = {}, a.CostExplorer = n.defineService("costexplorer", ["2017-10-25"]), Object.defineProperty(i.services.costexplorer, "2017-10-25", { get: function() { var e = r(4060); return e.paginators = r(75642).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CostExplorer }, 82692: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.cur = {}, a.CUR = n.defineService("cur", ["2017-01-06"]), Object.defineProperty(i.services.cur, "2017-01-06", { get: function() { var e = r(46858); return e.paginators = r(40528).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.CUR }, 52731: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.devicefarm = {}, a.DeviceFarm = n.defineService("devicefarm", ["2015-06-23"]), Object.defineProperty(i.services.devicefarm, "2015-06-23", { get: function() { var e = r(34023); return e.paginators = r(37161).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.DeviceFarm }, 22395: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.directconnect = {}, a.DirectConnect = n.defineService("directconnect", ["2012-10-25"]), Object.defineProperty(i.services.directconnect, "2012-10-25", { get: function() { var e = r(45125); return e.paginators = r(26404).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.DirectConnect }, 87209: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.dynamodb = {}, a.DynamoDB = n.defineService("dynamodb", ["2011-12-05", "2012-08-10"]), r(89785), Object.defineProperty(i.services.dynamodb, "2011-12-05", { get: function() { var e = r(46148); return e.paginators = r(86884).o, e.waiters = r(24864).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.dynamodb, "2012-08-10", { get: function() { var e = r(54047); return e.paginators = r(30482).o, e.waiters = r(48411).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.DynamoDB }, 37787: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.dynamodbstreams = {}, a.DynamoDBStreams = n.defineService("dynamodbstreams", ["2012-08-10"]), Object.defineProperty(i.services.dynamodbstreams, "2012-08-10", { get: function() { var e = r(26098); return e.paginators = r(40549).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.DynamoDBStreams }, 35174: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.ec2 = {}, a.EC2 = n.defineService("ec2", ["2013-06-15*", "2013-10-15*", "2014-02-01*", "2014-05-01*", "2014-06-15*", "2014-09-01*", "2014-10-01*", "2015-03-01*", "2015-04-15*", "2015-10-01*", "2016-04-01*", "2016-09-15*", "2016-11-15"]), r(89422), Object.defineProperty(i.services.ec2, "2016-11-15", { get: function() { var e = r(2658); return e.paginators = r(82477).o, e.waiters = r(19153).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.EC2 }, 17869: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.ecr = {}, a.ECR = n.defineService("ecr", ["2015-09-21"]), Object.defineProperty(i.services.ecr, "2015-09-21", { get: function() { var e = r(92405); return e.paginators = r(25504).o, e.waiters = r(78925).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ECR }, 85092: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.ecs = {}, a.ECS = n.defineService("ecs", ["2014-11-13"]), Object.defineProperty(i.services.ecs, "2014-11-13", { get: function() { var e = r(44208); return e.paginators = r(15738).o, e.waiters = r(1299).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ECS }, 43370: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.efs = {}, a.EFS = n.defineService("efs", ["2015-02-01"]), Object.defineProperty(i.services.efs, "2015-02-01", { get: function() { var e = r(54784); return e.paginators = r(40174).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.EFS }, 58363: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.elasticache = {}, a.ElastiCache = n.defineService("elasticache", ["2012-11-15*", "2014-03-24*", "2014-07-15*", "2014-09-30*", "2015-02-02"]), Object.defineProperty(i.services.elasticache, "2015-02-02", { get: function() { var e = r(58426); return e.paginators = r(79559).o, e.waiters = r(29787).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ElastiCache }, 96741: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.elasticbeanstalk = {}, a.ElasticBeanstalk = n.defineService("elasticbeanstalk", ["2010-12-01"]), Object.defineProperty(i.services.elasticbeanstalk, "2010-12-01", { get: function() { var e = r(72508); return e.paginators = r(72305).o, e.waiters = r(62534).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ElasticBeanstalk }, 69979: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.elastictranscoder = {}, a.ElasticTranscoder = n.defineService("elastictranscoder", ["2012-09-25"]), Object.defineProperty(i.services.elastictranscoder, "2012-09-25", { get: function() { var e = r(23463); return e.paginators = r(36121).o, e.waiters = r(59345).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ElasticTranscoder }, 26300: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.elb = {}, a.ELB = n.defineService("elb", ["2012-06-01"]), Object.defineProperty(i.services.elb, "2012-06-01", { get: function() { var e = r(66258); return e.paginators = r(77372).o, e.waiters = r(56717).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ELB }, 18036: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.elbv2 = {}, a.ELBv2 = n.defineService("elbv2", ["2015-12-01"]), Object.defineProperty(i.services.elbv2, "2015-12-01", { get: function() { var e = r(42628); return e.paginators = r(12274).o, e.waiters = r(56106).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.ELBv2 }, 31007: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.emr = {}, a.EMR = n.defineService("emr", ["2009-03-31"]), Object.defineProperty(i.services.emr, "2009-03-31", { get: function() { var e = r(91298); return e.paginators = r(62965).o, e.waiters = r(86792).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.EMR }, 70392: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.firehose = {}, a.Firehose = n.defineService("firehose", ["2015-08-04"]), Object.defineProperty(i.services.firehose, "2015-08-04", { get: function() { var e = r(48886); return e.paginators = r(47400).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Firehose }, 64359: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.forecastqueryservice = {}, a.ForecastQueryService = n.defineService("forecastqueryservice", ["2018-06-26"]), Object.defineProperty(i.services.forecastqueryservice, "2018-06-26", { get: function() { var e = r(23865); return e.paginators = r(98135).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ForecastQueryService }, 25585: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.forecastservice = {}, a.ForecastService = n.defineService("forecastservice", ["2018-06-26"]), Object.defineProperty(i.services.forecastservice, "2018-06-26", { get: function() { var e = r(6468); return e.paginators = r(45338).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ForecastService }, 11677: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.gamelift = {}, a.GameLift = n.defineService("gamelift", ["2015-10-01"]), Object.defineProperty(i.services.gamelift, "2015-10-01", { get: function() { var e = r(69257); return e.paginators = r(88381).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.GameLift }, 21941: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.iam = {}, a.IAM = n.defineService("iam", ["2010-05-08"]), Object.defineProperty(i.services.iam, "2010-05-08", { get: function() { var e = r(27041); return e.paginators = r(97583).o, e.waiters = r(37757).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.IAM }, 34979: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.inspector = {}, a.Inspector = n.defineService("inspector", ["2015-08-18*", "2016-02-16"]), Object.defineProperty(i.services.inspector, "2016-02-16", { get: function() { var e = r(71649); return e.paginators = r(69242).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Inspector }, 18709: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.iot = {}, a.Iot = n.defineService("iot", ["2015-05-28"]), Object.defineProperty(i.services.iot, "2015-05-28", { get: function() { var e = r(40063); return e.paginators = r(43999).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Iot }, 37069: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.iotanalytics = {}, a.IoTAnalytics = n.defineService("iotanalytics", ["2017-11-27"]), Object.defineProperty(i.services.iotanalytics, "2017-11-27", { get: function() { var e = r(84609); return e.paginators = r(45498).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.IoTAnalytics }, 5158: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.iotdata = {}, a.IotData = n.defineService("iotdata", ["2015-05-28"]), r(17414), Object.defineProperty(i.services.iotdata, "2015-05-28", { get: function() { var e = r(88372); return e.paginators = r(31896).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.IotData }, 62121: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kinesis = {}, a.Kinesis = n.defineService("kinesis", ["2013-12-02"]), Object.defineProperty(i.services.kinesis, "2013-12-02", { get: function() { var e = r(648); return e.paginators = r(10424).o, e.waiters = r(54059).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Kinesis }, 75679: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kinesisvideo = {}, a.KinesisVideo = n.defineService("kinesisvideo", ["2017-09-30"]), Object.defineProperty(i.services.kinesisvideo, "2017-09-30", { get: function() { var e = r(96305); return e.paginators = r(50061).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.KinesisVideo }, 79807: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kinesisvideoarchivedmedia = {}, a.KinesisVideoArchivedMedia = n.defineService("kinesisvideoarchivedmedia", ["2017-09-30"]), Object.defineProperty(i.services.kinesisvideoarchivedmedia, "2017-09-30", { get: function() { var e = r(93140); return e.paginators = r(27352).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.KinesisVideoArchivedMedia }, 12712: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kinesisvideomedia = {}, a.KinesisVideoMedia = n.defineService("kinesisvideomedia", ["2017-09-30"]), Object.defineProperty(i.services.kinesisvideomedia, "2017-09-30", { get: function() { var e = r(18898); return e.paginators = r(85061).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.KinesisVideoMedia }, 10204: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kinesisvideosignalingchannels = {}, a.KinesisVideoSignalingChannels = n.defineService("kinesisvideosignalingchannels", ["2019-12-04"]), Object.defineProperty(i.services.kinesisvideosignalingchannels, "2019-12-04", { get: function() { var e = r(89769); return e.paginators = r(41939).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.KinesisVideoSignalingChannels }, 71227: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.kms = {}, a.KMS = n.defineService("kms", ["2014-11-01"]), Object.defineProperty(i.services.kms, "2014-11-01", { get: function() { var e = r(1219); return e.paginators = r(71402).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.KMS }, 77944: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.lambda = {}, a.Lambda = n.defineService("lambda", ["2014-11-11", "2015-03-31"]), r(85447), Object.defineProperty(i.services.lambda, "2014-11-11", { get: function() { var e = r(91251); return e.paginators = r(79210).o, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.lambda, "2015-03-31", { get: function() { var e = r(29103); return e.paginators = r(32057).o, e.waiters = r(40626).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Lambda }, 79102: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.lexmodelbuildingservice = {}, a.LexModelBuildingService = n.defineService("lexmodelbuildingservice", ["2017-04-19"]), Object.defineProperty(i.services.lexmodelbuildingservice, "2017-04-19", { get: function() { var e = r(96327); return e.paginators = r(12348).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.LexModelBuildingService }, 12658: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.lexruntime = {}, a.LexRuntime = n.defineService("lexruntime", ["2016-11-28"]), Object.defineProperty(i.services.lexruntime, "2016-11-28", { get: function() { var e = r(11059); return e.paginators = r(97715).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.LexRuntime }, 39064: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.lexruntimev2 = {}, a.LexRuntimeV2 = n.defineService("lexruntimev2", ["2020-08-07"]), Object.defineProperty(i.services.lexruntimev2, "2020-08-07", { get: function() { var e = r(17908); return e.paginators = r(469).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.LexRuntimeV2 }, 64276: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.location = {}, a.Location = n.defineService("location", ["2020-11-19"]), Object.defineProperty(i.services.location, "2020-11-19", { get: function() { var e = r(79257); return e.paginators = r(53350).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Location }, 87365: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.machinelearning = {}, a.MachineLearning = n.defineService("machinelearning", ["2014-12-12"]), r(50566), Object.defineProperty(i.services.machinelearning, "2014-12-12", { get: function() { var e = r(4069); return e.paginators = r(95535).o, e.waiters = r(23194).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.MachineLearning }, 82289: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.marketplacecatalog = {}, a.MarketplaceCatalog = n.defineService("marketplacecatalog", ["2018-09-17"]), Object.defineProperty(i.services.marketplacecatalog, "2018-09-17", { get: function() { var e = r(87122); return e.paginators = r(30187).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.MarketplaceCatalog }, 740: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.marketplacecommerceanalytics = {}, a.MarketplaceCommerceAnalytics = n.defineService("marketplacecommerceanalytics", ["2015-07-01"]), Object.defineProperty(i.services.marketplacecommerceanalytics, "2015-07-01", { get: function() { var e = r(96696); return e.paginators = r(43265).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.MarketplaceCommerceAnalytics }, 99855: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.mediastoredata = {}, a.MediaStoreData = n.defineService("mediastoredata", ["2017-09-01"]), Object.defineProperty(i.services.mediastoredata, "2017-09-01", { get: function() { var e = r(55081); return e.paginators = r(97948).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.MediaStoreData }, 69900: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.mobileanalytics = {}, a.MobileAnalytics = n.defineService("mobileanalytics", ["2014-06-05"]), Object.defineProperty(i.services.mobileanalytics, "2014-06-05", { get: function() { return r(90338) }, enumerable: !0, configurable: !0 }), e.exports = a.MobileAnalytics }, 14803: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.mturk = {}, a.MTurk = n.defineService("mturk", ["2017-01-17"]), Object.defineProperty(i.services.mturk, "2017-01-17", { get: function() { var e = r(73064); return e.paginators = r(42409).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.MTurk }, 68999: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.opsworks = {}, a.OpsWorks = n.defineService("opsworks", ["2013-02-18"]), Object.defineProperty(i.services.opsworks, "2013-02-18", { get: function() { var e = r(22805); return e.paginators = r(24750).o, e.waiters = r(74961).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.OpsWorks }, 31651: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.personalize = {}, a.Personalize = n.defineService("personalize", ["2018-05-22"]), Object.defineProperty(i.services.personalize, "2018-05-22", { get: function() { var e = r(70169); return e.paginators = r(64441).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Personalize }, 8373: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.personalizeevents = {}, a.PersonalizeEvents = n.defineService("personalizeevents", ["2018-03-22"]), Object.defineProperty(i.services.personalizeevents, "2018-03-22", { get: function() { var e = r(3606); return e.paginators = r(94507).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.PersonalizeEvents }, 87830: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.personalizeruntime = {}, a.PersonalizeRuntime = n.defineService("personalizeruntime", ["2018-05-22"]), Object.defineProperty(i.services.personalizeruntime, "2018-05-22", { get: function() { var e = r(18824); return e.paginators = r(8069).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.PersonalizeRuntime }, 46293: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.polly = {}, a.Polly = n.defineService("polly", ["2016-06-10"]), r(92540), Object.defineProperty(i.services.polly, "2016-06-10", { get: function() { var e = r(55078); return e.paginators = r(77060).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Polly }, 88958: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.pricing = {}, a.Pricing = n.defineService("pricing", ["2017-10-15"]), Object.defineProperty(i.services.pricing, "2017-10-15", { get: function() { var e = r(22484); return e.paginators = r(60369).o, e.waiters = r(41996).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Pricing }, 24376: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.rds = {}, a.RDS = n.defineService("rds", ["2013-01-10", "2013-02-12", "2013-09-09", "2014-09-01", "2014-09-01*", "2014-10-31"]), r(99875), Object.defineProperty(i.services.rds, "2013-01-10", { get: function() { var e = r(59989); return e.paginators = r(978).o, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.rds, "2013-02-12", { get: function() { var e = r(55061); return e.paginators = r(39581).o, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.rds, "2013-09-09", { get: function() { var e = r(36331); return e.paginators = r(14485).o, e.waiters = r(36851).V, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.rds, "2014-09-01", { get: function() { var e = r(19226); return e.paginators = r(49863).o, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(i.services.rds, "2014-10-31", { get: function() { var e = r(91916); return e.paginators = r(85082).o, e.waiters = r(20371).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.RDS }, 33058: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.redshift = {}, a.Redshift = n.defineService("redshift", ["2012-12-01"]), Object.defineProperty(i.services.redshift, "2012-12-01", { get: function() { var e = r(24827); return e.paginators = r(88012).o, e.waiters = r(79011).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Redshift }, 96545: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.rekognition = {}, a.Rekognition = n.defineService("rekognition", ["2016-06-27"]), Object.defineProperty(i.services.rekognition, "2016-06-27", { get: function() { var e = r(66442); return e.paginators = r(37753).o, e.waiters = r(78910).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Rekognition }, 26170: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.resourcegroups = {}, a.ResourceGroups = n.defineService("resourcegroups", ["2017-11-27"]), Object.defineProperty(i.services.resourcegroups, "2017-11-27", { get: function() { var e = r(73621); return e.paginators = r(24085).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ResourceGroups }, 11023: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.route53 = {}, a.Route53 = n.defineService("route53", ["2013-04-01"]), r(12449), Object.defineProperty(i.services.route53, "2013-04-01", { get: function() { var e = r(20959); return e.paginators = r(46456).o, e.waiters = r(28347).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.Route53 }, 8254: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.route53domains = {}, a.Route53Domains = n.defineService("route53domains", ["2014-05-15"]), Object.defineProperty(i.services.route53domains, "2014-05-15", { get: function() { var e = r(57598); return e.paginators = r(52189).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Route53Domains }, 89114: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.s3 = {}, a.S3 = n.defineService("s3", ["2006-03-01"]), r(57700), Object.defineProperty(i.services.s3, "2006-03-01", { get: function() { var e = r(1129); return e.paginators = r(7265).o, e.waiters = r(74048).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.S3 }, 54186: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.secretsmanager = {}, a.SecretsManager = n.defineService("secretsmanager", ["2017-10-17"]), Object.defineProperty(i.services.secretsmanager, "2017-10-17", { get: function() { var e = r(89470); return e.paginators = r(25613).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.SecretsManager }, 32734: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.servicecatalog = {}, a.ServiceCatalog = n.defineService("servicecatalog", ["2015-12-10"]), Object.defineProperty(i.services.servicecatalog, "2015-12-10", { get: function() { var e = r(95500); return e.paginators = r(21687).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.ServiceCatalog }, 40602: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.ses = {}, a.SES = n.defineService("ses", ["2010-12-01"]), Object.defineProperty(i.services.ses, "2010-12-01", { get: function() { var e = r(56693); return e.paginators = r(9399).o, e.waiters = r(98229).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.SES }, 91390: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.sns = {}, a.SNS = n.defineService("sns", ["2010-03-31"]), Object.defineProperty(i.services.sns, "2010-03-31", { get: function() { var e = r(64387); return e.paginators = r(58054).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.SNS }, 47275: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.sqs = {}, a.SQS = n.defineService("sqs", ["2012-11-05"]), r(5387), Object.defineProperty(i.services.sqs, "2012-11-05", { get: function() { var e = r(53974); return e.paginators = r(17249).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.SQS }, 30679: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.ssm = {}, a.SSM = n.defineService("ssm", ["2014-11-06"]), Object.defineProperty(i.services.ssm, "2014-11-06", { get: function() { var e = r(44596); return e.paginators = r(5135).o, e.waiters = r(98523).V, e }, enumerable: !0, configurable: !0 }), e.exports = a.SSM }, 98296: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.storagegateway = {}, a.StorageGateway = n.defineService("storagegateway", ["2013-06-30"]), Object.defineProperty(i.services.storagegateway, "2013-06-30", { get: function() { var e = r(11069); return e.paginators = r(33999).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.StorageGateway }, 62362: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.sts = {}, a.STS = n.defineService("sts", ["2011-06-15"]), r(28177), Object.defineProperty(i.services.sts, "2011-06-15", { get: function() { var e = r(80753); return e.paginators = r(93639).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.STS }, 12793: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.translate = {}, a.Translate = n.defineService("translate", ["2017-07-01"]), Object.defineProperty(i.services.translate, "2017-07-01", { get: function() { var e = r(61084); return e.paginators = r(40304).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.Translate }, 2522: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.waf = {}, a.WAF = n.defineService("waf", ["2015-08-24"]), Object.defineProperty(i.services.waf, "2015-08-24", { get: function() { var e = r(37925); return e.paginators = r(65794).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.WAF }, 66431: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.workdocs = {}, a.WorkDocs = n.defineService("workdocs", ["2016-05-01"]), Object.defineProperty(i.services.workdocs, "2016-05-01", { get: function() { var e = r(41052); return e.paginators = r(94768).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.WorkDocs }, 78868: (e, t, r) => { r(544); var a = r(8468), n = a.Service, i = a.apiLoader; i.services.xray = {}, a.XRay = n.defineService("xray", ["2016-04-12"]), Object.defineProperty(i.services.xray, "2016-04-12", { get: function() { var e = r(97355); return e.paginators = r(97949).o, e }, enumerable: !0, configurable: !0 }), e.exports = a.XRay }, 44185: e => { function t(e, r) { if (!t.services.hasOwnProperty(e)) throw new Error("InvalidService: Failed to load api for " + e); return t.services[e][r] } t.services = {}, e.exports = t }, 74912: (e, t, r) => { r(544); var a = r(8468); "undefined" !== typeof window && (window.AWS = a), e.exports = a, "undefined" !== typeof self && (self.AWS = a), r(52968) }, 82623: (e, t, r) => { var a = r(60555), n = r(40244), i = r(47811), o = r(97467); e.exports = { createHash: function(e) { if ("md5" === (e = e.toLowerCase())) return new n; if ("sha256" === e) return new o; if ("sha1" === e) return new i; throw new Error("Hash algorithm " + e + " is not supported in the browser SDK") }, createHmac: function(e, t) { if ("md5" === (e = e.toLowerCase())) return new a(n, t); if ("sha256" === e) return new a(o, t); if ("sha1" === e) return new a(i, t); throw new Error("HMAC algorithm " + e + " is not supported in the browser SDK") }, createSign: function() { throw new Error("createSign is not implemented in the browser") } } }, 79488: (e, t, r) => { var a = r(19778).lW; "undefined" !== typeof ArrayBuffer && "undefined" === typeof ArrayBuffer.isView && (ArrayBuffer.isView = function(e) { return n.indexOf(Object.prototype.toString.call(e)) > -1 }); var n = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]", "[object DataView]"]; e.exports = { isEmptyData: function(e) { return "string" === typeof e ? 0 === e.length : 0 === e.byteLength }, convertToBuffer: function(e) { return "string" === typeof e && (e = new a(e, "utf8")), ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(e) } } }, 60555: (e, t, r) => { var a = r(79488); function n(e, t) { this.hash = new e, this.outer = new e; var r = function(e, t) { var r = a.convertToBuffer(t); if (r.byteLength > e.BLOCK_SIZE) { var n = new e; n.update(r), r = n.digest() } var i = new Uint8Array(e.BLOCK_SIZE); return i.set(r), i }(e, t), n = new Uint8Array(e.BLOCK_SIZE); n.set(r); for (var i = 0; i < e.BLOCK_SIZE; i++) r[i] ^= 54, n[i] ^= 92; this.hash.update(r), this.outer.update(n); for (i = 0; i < r.byteLength; i++) r[i] = 0 } e.exports = n, n.prototype.update = function(e) { if (a.isEmptyData(e) || this.error) return this; try { this.hash.update(a.convertToBuffer(e)) } catch (t) { this.error = t } return this }, n.prototype.digest = function(e) { return this.outer.finished || this.outer.update(this.hash.digest()), this.outer.digest(e) } }, 40244: (e, t, r) => { var a = r(79488), n = r(19778).lW, i = 64; function o() { this.state = [1732584193, 4023233417, 2562383102, 271733878], this.buffer = new DataView(new ArrayBuffer(i)), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1 } function s(e, t, r, a, n, i) { return ((t = (t + e & 4294967295) + (a + i & 4294967295) & 4294967295) << n | t >>> 32 - n) + r & 4294967295 } function u(e, t, r, a, n, i, o) { return s(t & r | ~t & a, e, t, n, i, o) } function p(e, t, r, a, n, i, o) { return s(t & a | r & ~a, e, t, n, i, o) } function c(e, t, r, a, n, i, o) { return s(t ^ r ^ a, e, t, n, i, o) } function m(e, t, r, a, n, i, o) { return s(r ^ (t | ~a), e, t, n, i, o) } e.exports = o, o.BLOCK_SIZE = i, o.prototype.update = function(e) { if (a.isEmptyData(e)) return this; if (this.finished) throw new Error("Attempted to update an already finished hash."); var t = a.convertToBuffer(e), r = 0, n = t.byteLength; for (this.bytesHashed += n; n > 0;) this.buffer.setUint8(this.bufferLength++, t[r++]), n--, this.bufferLength === i && (this.hashBuffer(), this.bufferLength = 0); return this }, o.prototype.digest = function(e) { if (!this.finished) { var t = this, r = t.buffer, a = t.bufferLength, o = 8 * t.bytesHashed; if (r.setUint8(this.bufferLength++, 128), a % i >= 56) { for (var s = this.bufferLength; s < i; s++) r.setUint8(s, 0); this.hashBuffer(), this.bufferLength = 0 } for (s = this.bufferLength; s < 56; s++) r.setUint8(s, 0); r.setUint32(56, o >>> 0, !0), r.setUint32(60, Math.floor(o / 4294967296), !0), this.hashBuffer(), this.finished = !0 } var u = new DataView(new ArrayBuffer(16)); for (s = 0; s < 4; s++) u.setUint32(4 * s, this.state[s], !0); var p = new n(u.buffer, u.byteOffset, u.byteLength); return e ? p.toString(e) : p }, o.prototype.hashBuffer = function() { var e = this.buffer, t = this.state, r = t[0], a = t[1], n = t[2], i = t[3]; r = u(r, a, n, i, e.getUint32(0, !0), 7, 3614090360), i = u(i, r, a, n, e.getUint32(4, !0), 12, 3905402710), n = u(n, i, r, a, e.getUint32(8, !0), 17, 606105819), a = u(a, n, i, r, e.getUint32(12, !0), 22, 3250441966), r = u(r, a, n, i, e.getUint32(16, !0), 7, 4118548399), i = u(i, r, a, n, e.getUint32(20, !0), 12, 1200080426), n = u(n, i, r, a, e.getUint32(24, !0), 17, 2821735955), a = u(a, n, i, r, e.getUint32(28, !0), 22, 4249261313), r = u(r, a, n, i, e.getUint32(32, !0), 7, 1770035416), i = u(i, r, a, n, e.getUint32(36, !0), 12, 2336552879), n = u(n, i, r, a, e.getUint32(40, !0), 17, 4294925233), a = u(a, n, i, r, e.getUint32(44, !0), 22, 2304563134), r = u(r, a, n, i, e.getUint32(48, !0), 7, 1804603682), i = u(i, r, a, n, e.getUint32(52, !0), 12, 4254626195), n = u(n, i, r, a, e.getUint32(56, !0), 17, 2792965006), r = p(r, a = u(a, n, i, r, e.getUint32(60, !0), 22, 1236535329), n, i, e.getUint32(4, !0), 5, 4129170786), i = p(i, r, a, n, e.getUint32(24, !0), 9, 3225465664), n = p(n, i, r, a, e.getUint32(44, !0), 14, 643717713), a = p(a, n, i, r, e.getUint32(0, !0), 20, 3921069994), r = p(r, a, n, i, e.getUint32(20, !0), 5, 3593408605), i = p(i, r, a, n, e.getUint32(40, !0), 9, 38016083), n = p(n, i, r, a, e.getUint32(60, !0), 14, 3634488961), a = p(a, n, i, r, e.getUint32(16, !0), 20, 3889429448), r = p(r, a, n, i, e.getUint32(36, !0), 5, 568446438), i = p(i, r, a, n, e.getUint32(56, !0), 9, 3275163606), n = p(n, i, r, a, e.getUint32(12, !0), 14, 4107603335), a = p(a, n, i, r, e.getUint32(32, !0), 20, 1163531501), r = p(r, a, n, i, e.getUint32(52, !0), 5, 2850285829), i = p(i, r, a, n, e.getUint32(8, !0), 9, 4243563512), n = p(n, i, r, a, e.getUint32(28, !0), 14, 1735328473), r = c(r, a = p(a, n, i, r, e.getUint32(48, !0), 20, 2368359562), n, i, e.getUint32(20, !0), 4, 4294588738), i = c(i, r, a, n, e.getUint32(32, !0), 11, 2272392833), n = c(n, i, r, a, e.getUint32(44, !0), 16, 1839030562), a = c(a, n, i, r, e.getUint32(56, !0), 23, 4259657740), r = c(r, a, n, i, e.getUint32(4, !0), 4, 2763975236), i = c(i, r, a, n, e.getUint32(16, !0), 11, 1272893353), n = c(n, i, r, a, e.getUint32(28, !0), 16, 4139469664), a = c(a, n, i, r, e.getUint32(40, !0), 23, 3200236656), r = c(r, a, n, i, e.getUint32(52, !0), 4, 681279174), i = c(i, r, a, n, e.getUint32(0, !0), 11, 3936430074), n = c(n, i, r, a, e.getUint32(12, !0), 16, 3572445317), a = c(a, n, i, r, e.getUint32(24, !0), 23, 76029189), r = c(r, a, n, i, e.getUint32(36, !0), 4, 3654602809), i = c(i, r, a, n, e.getUint32(48, !0), 11, 3873151461), n = c(n, i, r, a, e.getUint32(60, !0), 16, 530742520), r = m(r, a = c(a, n, i, r, e.getUint32(8, !0), 23, 3299628645), n, i, e.getUint32(0, !0), 6, 4096336452), i = m(i, r, a, n, e.getUint32(28, !0), 10, 1126891415), n = m(n, i, r, a, e.getUint32(56, !0), 15, 2878612391), a = m(a, n, i, r, e.getUint32(20, !0), 21, 4237533241), r = m(r, a, n, i, e.getUint32(48, !0), 6, 1700485571), i = m(i, r, a, n, e.getUint32(12, !0), 10, 2399980690), n = m(n, i, r, a, e.getUint32(40, !0), 15, 4293915773), a = m(a, n, i, r, e.getUint32(4, !0), 21, 2240044497), r = m(r, a, n, i, e.getUint32(32, !0), 6, 1873313359), i = m(i, r, a, n, e.getUint32(60, !0), 10, 4264355552), n = m(n, i, r, a, e.getUint32(24, !0), 15, 2734768916), a = m(a, n, i, r, e.getUint32(52, !0), 21, 1309151649), r = m(r, a, n, i, e.getUint32(16, !0), 6, 4149444226), i = m(i, r, a, n, e.getUint32(44, !0), 10, 3174756917), n = m(n, i, r, a, e.getUint32(8, !0), 15, 718787259), a = m(a, n, i, r, e.getUint32(36, !0), 21, 3951481745), t[0] = r + t[0] & 4294967295, t[1] = a + t[1] & 4294967295, t[2] = n + t[2] & 4294967295, t[3] = i + t[3] & 4294967295 } }, 47811: (e, t, r) => { var a = r(19778).lW, n = r(79488); new Uint32Array([1518500249, 1859775393, -1894007588, -899497514]), Math.pow(2, 53); function i() { this.h0 = 1732584193, this.h1 = 4023233417, this.h2 = 2562383102, this.h3 = 271733878, this.h4 = 3285377520, this.block = new Uint32Array(80), this.offset = 0, this.shift = 24, this.totalLength = 0 } e.exports = i, i.BLOCK_SIZE = 64, i.prototype.update = function(e) { if (this.finished) throw new Error("Attempted to update an already finished hash."); if (n.isEmptyData(e)) return this; var t = (e = n.convertToBuffer(e)).length; this.totalLength += 8 * t; for (var r = 0; r < t; r++) this.write(e[r]); return this }, i.prototype.write = function(e) { this.block[this.offset] |= (255 & e) << this.shift, this.shift ? this.shift -= 8 : (this.offset++, this.shift = 24), 16 === this.offset && this.processBlock() }, i.prototype.digest = function(e) { this.write(128), (this.offset > 14 || 14 === this.offset && this.shift < 24) && this.processBlock(), this.offset = 14, this.shift = 24, this.write(0), this.write(0), this.write(this.totalLength > 0xffffffffff ? this.totalLength / 1099511627776 : 0), this.write(this.totalLength > 4294967295 ? this.totalLength / 4294967296 : 0); for (var t = 24; t >= 0; t -= 8) this.write(this.totalLength >> t); var r = new a(20), n = new DataView(r.buffer); return n.setUint32(0, this.h0, !1), n.setUint32(4, this.h1, !1), n.setUint32(8, this.h2, !1), n.setUint32(12, this.h3, !1), n.setUint32(16, this.h4, !1), e ? r.toString(e) : r }, i.prototype.processBlock = function() { for (var e = 16; e < 80; e++) { var t = this.block[e - 3] ^ this.block[e - 8] ^ this.block[e - 14] ^ this.block[e - 16]; this.block[e] = t << 1 | t >>> 31 } var r, a, n = this.h0, i = this.h1, o = this.h2, s = this.h3, u = this.h4; for (e = 0; e < 80; e++) { e < 20 ? (r = s ^ i & (o ^ s), a = 1518500249) : e < 40 ? (r = i ^ o ^ s, a = 1859775393) : e < 60 ? (r = i & o | s & (i | o), a = 2400959708) : (r = i ^ o ^ s, a = 3395469782); var p = (n << 5 | n >>> 27) + r + u + a + (0 | this.block[e]); u = s, s = o, o = i << 30 | i >>> 2, i = n, n = p } for (this.h0 = this.h0 + n | 0, this.h1 = this.h1 + i | 0, this.h2 = this.h2 + o | 0, this.h3 = this.h3 + s | 0, this.h4 = this.h4 + u | 0, this.offset = 0, e = 0; e < 16; e++) this.block[e] = 0 } }, 97467: (e, t, r) => { var a = r(19778).lW, n = r(79488), i = 64, o = 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]), s = Math.pow(2, 53) - 1; function u() { this.state = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1 } e.exports = u, u.BLOCK_SIZE = i, u.prototype.update = function(e) { if (this.finished) throw new Error("Attempted to update an already finished hash."); if (n.isEmptyData(e)) return this; var t = 0, r = (e = n.convertToBuffer(e)).byteLength; if (this.bytesHashed += r, 8 * this.bytesHashed > s) throw new Error("Cannot hash more than 2^53 - 1 bits"); for (; r > 0;) this.buffer[this.bufferLength++] = e[t++], r--, this.bufferLength === i && (this.hashBuffer(), this.bufferLength = 0); return this }, u.prototype.digest = function(e) { 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 % i >= 56) { for (var o = this.bufferLength; o < i; o++) r.setUint8(o, 0); this.hashBuffer(), this.bufferLength = 0 } for (o = this.bufferLength; o < 56; o++) r.setUint8(o, 0); r.setUint32(56, Math.floor(t / 4294967296), !0), r.setUint32(60, t), this.hashBuffer(), this.finished = !0 } var s = new a(32); for (o = 0; o < 8; o++) s[4 * o] = this.state[o] >>> 24 & 255, s[4 * o + 1] = this.state[o] >>> 16 & 255, s[4 * o + 2] = this.state[o] >>> 8 & 255, s[4 * o + 3] = this.state[o] >>> 0 & 255; return e ? s.toString(e) : s }, u.prototype.hashBuffer = function() { for (var e = this.buffer, t = this.state, r = t[0], a = t[1], n = t[2], s = t[3], u = t[4], p = t[5], c = t[6], m = t[7], l = 0; l < i; l++) { if (l < 16) this.temp[l] = (255 & e[4 * l]) << 24 | (255 & e[4 * l + 1]) << 16 | (255 & e[4 * l + 2]) << 8 | 255 & e[4 * l + 3]; else { var d = this.temp[l - 2], y = (d >>> 17 | d << 15) ^ (d >>> 19 | d << 13) ^ d >>> 10, b = ((d = this.temp[l - 15]) >>> 7 | d << 25) ^ (d >>> 18 | d << 14) ^ d >>> 3; this.temp[l] = (y + this.temp[l - 7] | 0) + (b + this.temp[l - 16] | 0) } var g = (((u >>> 6 | u << 26) ^ (u >>> 11 | u << 21) ^ (u >>> 25 | u << 7)) + (u & p ^ ~u & c) | 0) + (m + (o[l] + this.temp[l] | 0) | 0) | 0, h = ((r >>> 2 | r << 30) ^ (r >>> 13 | r << 19) ^ (r >>> 22 | r << 10)) + (r & a ^ r & n ^ a & n) | 0; m = c, c = p, p = u, u = s + g | 0, s = n, n = a, a = r, r = g + h | 0 } t[0] += r, t[1] += a, t[2] += n, t[3] += s, t[4] += u, t[5] += p, t[6] += c, t[7] += m } }, 544: (e, t, r) => { var a = r(23657); a.crypto.lib = r(82623), a.Buffer = r(19778).lW, a.url = r(12114), a.querystring = r(30863), a.realClock = r(35067), a.environment = "js", a.createEventStream = r(28962).createEventStream, a.isBrowser = function() { return !0 }, a.isNode = function() { return !1 }; var n = r(8468); if (e.exports = n, r(73916), r(28732), r(14524), r(79382), r(19589), r(89065), r(78437), n.XML.Parser = r(68918), r(76311), "undefined" === typeof i) var i = { browser: !0 } }, 65473: (e, t, r) => { var a = r(8468), n = a.util.url, i = a.util.crypto.lib, o = a.util.base64.encode, s = a.util.inherit, u = function(e) { var t = { "+": "-", "=": "_", "/": "~" }; return e.replace(/[\+=\/]/g, (function(e) { return t[e] })) }, p = function(e, t) { var r = i.createSign("RSA-SHA1"); return r.write(e), u(r.sign(t, "base64")) }, c = function(e, t, r, a) { var n = JSON.stringify({ Statement: [{ Resource: e, Condition: { DateLessThan: { "AWS:EpochTime": t } } }] }); return { Expires: t, "Key-Pair-Id": r, Signature: p(n.toString(), a) } }, m = function(e, t, r) { return e = e.replace(/\s/gm, ""), { Policy: u(o(e)), "Key-Pair-Id": t, Signature: p(e, r) } }, l = function(e) { var t = e.split("://"); if (t.length < 2) throw new Error("Invalid URL."); return t[0].replace("*", "") }, d = function(e) { var t = n.parse(e); return t.path.replace(/^\//, "") + (t.hash || "") }, y = function(e, t) { if (!t || "function" !== typeof t) throw e; t(e) }, b = function(e, t) { if (!t || "function" !== typeof t) return e; t(null, e) }; a.CloudFront.Signer = s({ constructor: function(e, t) { if (void 0 === e || void 0 === t) throw new Error("A key pair ID and private key are required"); this.keyPairId = e, this.privateKey = t }, getSignedCookie: function(e, t) { var r = "policy" in e ? m(e.policy, this.keyPairId, this.privateKey) : c(e.url, e.expires, this.keyPairId, this.privateKey), a = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (a["CloudFront-" + n] = r[n]); return b(a, t) }, getSignedUrl: function(e, t) { try { var r = function(e) { switch (l(e)) { case "http": case "https": return e; case "rtmp": return d(e); default: throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp") } }(e.url) } catch (u) { return y(u, t) } var a = n.parse(e.url, !0), i = Object.prototype.hasOwnProperty.call(e, "policy") ? m(e.policy, this.keyPairId, this.privateKey) : c(r, e.expires, this.keyPairId, this.privateKey); for (var o in a.search = null, i) Object.prototype.hasOwnProperty.call(i, o) && (a.query[o] = i[o]); try { var s = "rtmp" === l(e.url) ? d(n.format(a)) : n.format(a) } catch (u) { return y(u, t) } return b(s, t) } }), e.exports = a.CloudFront.Signer }, 69070: (e, t, r) => { var a, n = r(8468); r(73916), r(28732), n.Config = n.util.inherit({ constructor: function(e) { void 0 === e && (e = {}), e = this.extractCredentials(e), n.util.each.call(this, this.keys, (function(t, r) { this.set(t, e[t], r) })) }, getCredentials: function(e) { var t = this; function r(r) { e(r, r ? null : t.credentials) } function a(e, t) { return new n.util.error(t || new Error, { code: "CredentialsError", message: e, name: "CredentialsError" }) } t.credentials ? "function" === typeof t.credentials.get ? t.credentials.get((function(e) { e && (e = a("Could not load credentials from " + t.credentials.constructor.name, e)), r(e) })) : function() { var e = null; t.credentials.accessKeyId && t.credentials.secretAccessKey || (e = a("Missing credentials")), r(e) }() : t.credentialProvider ? t.credentialProvider.resolve((function(e, n) { e && (e = a("Could not load credentials from any providers", e)), t.credentials = n, r(e) })) : r(a("No credentials to load")) }, getToken: function(e) { var t = this; function r(r) { e(r, r ? null : t.token) } function a(e, t) { return new n.util.error(t || new Error, { code: "TokenError", message: e, name: "TokenError" }) } t.token ? "function" === typeof t.token.get ? t.token.get((function(e) { e && (e = a("Could not load token from " + t.token.constructor.name, e)), r(e) })) : function() { var e = null; t.token.token || (e = a("Missing token")), r(e) }() : t.tokenProvider ? t.tokenProvider.resolve((function(e, n) { e && (e = a("Could not load token from any providers", e)), t.token = n, r(e) })) : r(a("No token to load")) }, update: function(e, t) { t = t || !1, e = this.extractCredentials(e), n.util.each.call(this, e, (function(e, r) { (t || Object.prototype.hasOwnProperty.call(this.keys, e) || n.Service.hasService(e)) && this.set(e, r) })) }, loadFromPath: function(e) { this.clear(); var t = JSON.parse(n.util.readFileSync(e)), r = new n.FileSystemCredentials(e), a = new n.CredentialProviderChain; return a.providers.unshift(r), a.resolve((function(e, r) { if (e) throw e; t.credentials = r })), this.constructor(t), this }, clear: function() { n.util.each.call(this, this.keys, (function(e) { delete this[e] })), this.set("credentials", void 0), this.set("credentialProvider", void 0) }, set: function(e, t, r) { void 0 === t ? (void 0 === r && (r = this.keys[e]), this[e] = "function" === typeof r ? r.call(this) : r) : "httpOptions" === e && this[e] ? this[e] = n.util.merge(this[e], t) : this[e] = t }, keys: { credentials: null, credentialProvider: null, region: null, logger: null, apiVersions: {}, apiVersion: null, endpoint: void 0, httpOptions: { timeout: 12e4 }, maxRetries: void 0, maxRedirects: 10, paramValidation: !0, sslEnabled: !0, s3ForcePathStyle: !1, s3BucketEndpoint: !1, s3DisableBodySigning: !0, s3UsEast1RegionalEndpoint: "legacy", s3UseArnRegion: void 0, computeChecksums: !0, convertResponseTypes: !0, correctClockSkew: !1, customUserAgent: null, dynamoDbCrc32: !0, systemClockOffset: 0, signatureVersion: null, signatureCache: !0, retryDelayOptions: {}, useAccelerateEndpoint: !1, clientSideMonitoring: !1, endpointDiscoveryEnabled: void 0, endpointCacheSize: 1e3, hostPrefixEnabled: !0, stsRegionalEndpoints: "legacy", useFipsEndpoint: !1, useDualstackEndpoint: !1, token: null }, extractCredentials: function(e) { return e.accessKeyId && e.secretAccessKey && ((e = n.util.copy(e)).credentials = new n.Credentials(e)), e }, setPromisesDependency: function(e) { a = e, null === e && "function" === typeof Promise && (a = Promise); var t = [n.Request, n.Credentials, n.CredentialProviderChain]; n.S3 && (t.push(n.S3), n.S3.ManagedUpload && t.push(n.S3.ManagedUpload)), n.util.addPromises(t, a) }, getPromisesDependency: function() { return a } }), n.config = new n.Config }, 21980: (e, t, r) => { var a = r(8468); function n(e, t) { if ("string" === typeof e) { if (["legacy", "regional"].indexOf(e.toLowerCase()) >= 0) return e.toLowerCase(); throw a.util.error(new Error, t) } } e.exports = function(e, t) { var r; if ((e = e || {})[t.clientConfig] && (r = n(e[t.clientConfig], { code: "InvalidConfiguration", message: 'invalid "' + t.clientConfig + '" configuration. Expect "legacy" or "regional". Got "' + e[t.clientConfig] + '".' }))) return r; if (!a.util.isNode()) return r; if (Object.prototype.hasOwnProperty.call({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }, t.env) && (r = n({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [t.env], { code: "InvalidEnvironmentalVariable", message: "invalid " + t.env + ' environmental variable. Expect "legacy" or "regional". Got "' + { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [t.env] + '".' }))) return r; var i = {}; try { i = a.util.getProfilesFromSharedConfig(a.util.iniLoader)[{ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_PROFILE || a.util.defaultProfile] } catch (o) {} return i && Object.prototype.hasOwnProperty.call(i, t.sharedConfig) && (r = n(i[t.sharedConfig], { code: "InvalidConfiguration", message: "invalid " + t.sharedConfig + ' profile config. Expect "legacy" or "regional". Got "' + i[t.sharedConfig] + '".' })), r } }, 8468: (e, t, r) => { var a = { util: r(23657) }; ({}).toString(), e.exports = a, a.util.update(a, { VERSION: "2.1515.0", Signers: {}, Protocol: { Json: r(89864), Query: r(66588), Rest: r(19701), RestJson: r(12085), RestXml: r(61622) }, XML: { Builder: r(98302), Parser: null }, JSON: { Builder: r(48212), Parser: r(26815) }, Model: { Api: r(65565), Operation: r(91970), Shape: r(3825), Paginator: r(8594), ResourceWaiter: r(15545) }, apiLoader: r(44185), EndpointCache: r(50038).$ }), r(78451), r(75724), r(69070), r(78168), r(18663), r(33845), r(10767), r(90630), r(85232), r(70778), r(45663), a.events = new a.SequentialExecutor, a.util.memoizedProperty(a, "endpointCache", (function() { return new a.EndpointCache(a.config.endpointCacheSize) }), !0) }, 73916: (e, t, r) => { var a = r(8468); a.Credentials = a.util.inherit({ constructor: function() { if (a.util.hideProperties(this, ["secretAccessKey"]), this.expired = !1, this.expireTime = null, this.refreshCallbacks = [], 1 === arguments.length && "object" === typeof arguments[0]) { var e = arguments[0].credentials || arguments[0]; this.accessKeyId = e.accessKeyId, this.secretAccessKey = e.secretAccessKey, this.sessionToken = e.sessionToken } else this.accessKeyId = arguments[0], this.secretAccessKey = arguments[1], this.sessionToken = arguments[2] }, expiryWindow: 15, needsRefresh: function() { var e = a.util.date.getDate().getTime(), t = new Date(e + 1e3 * this.expiryWindow); return !!(this.expireTime && t > this.expireTime) || (this.expired || !this.accessKeyId || !this.secretAccessKey) }, get: function(e) { var t = this; this.needsRefresh() ? this.refresh((function(r) { r || (t.expired = !1), e && e(r) })) : e && e() }, refresh: function(e) { this.expired = !1, e() }, coalesceRefresh: function(e, t) { var r = this; 1 === r.refreshCallbacks.push(e) && r.load((function(e) { a.util.arrayEach(r.refreshCallbacks, (function(r) { t ? r(e) : a.util.defer((function() { r(e) })) })), r.refreshCallbacks.length = 0 })) }, load: function(e) { e() } }), a.Credentials.addPromisesToClass = function(e) { this.prototype.getPromise = a.util.promisifyMethod("get", e), this.prototype.refreshPromise = a.util.promisifyMethod("refresh", e) }, a.Credentials.deletePromisesFromClass = function() { delete this.prototype.getPromise, delete this.prototype.refreshPromise }, a.util.addPromises(a.Credentials) }, 79382: (e, t, r) => { var a = r(8468), n = r(62362); a.ChainableTemporaryCredentials = a.util.inherit(a.Credentials, { constructor: function(e) { a.Credentials.call(this), e = e || {}, this.errorCode = "ChainableTemporaryCredentialsProviderFailure", this.expired = !0, this.tokenCodeFn = null; var t = a.util.copy(e.params) || {}; if (t.RoleArn && (t.RoleSessionName = t.RoleSessionName || "temporary-credentials"), t.SerialNumber) { if (!e.tokenCodeFn || "function" !== typeof e.tokenCodeFn) throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"), { code: this.errorCode }); this.tokenCodeFn = e.tokenCodeFn } var r = a.util.merge({ params: t, credentials: e.masterCredentials || a.config.credentials }, e.stsConfig || {}); this.service = new n(r) }, refresh: function(e) { this.coalesceRefresh(e || a.util.fn.callback) }, load: function(e) { var t = this, r = t.service.config.params.RoleArn ? "assumeRole" : "getSessionToken"; this.getTokenCode((function(a, n) { var i = {}; a ? e(a) : (n && (i.TokenCode = n), t.service[r](i, (function(r, a) { r || t.service.credentialsFrom(a, t), e(r) }))) })) }, getTokenCode: function(e) { var t = this; this.tokenCodeFn ? this.tokenCodeFn(this.service.config.params.SerialNumber, (function(r, n) { if (r) { var i = r; return r instanceof Error && (i = r.message), void e(a.util.error(new Error("Error fetching MFA token: " + i), { code: t.errorCode })) } e(null, n) })) : e(null) } }) }, 89065: (e, t, r) => { var a = r(8468), n = r(49055), i = r(62362); a.CognitoIdentityCredentials = a.util.inherit(a.Credentials, { localStorageKey: { id: "aws.cognito.identity-id.", providers: "aws.cognito.identity-providers." }, constructor: function(e, t) { a.Credentials.call(this), this.expired = !0, this.params = e, this.data = null, this._identityId = null, this._clientConfig = a.util.copy(t || {}), this.loadCachedId(); var r = this; Object.defineProperty(this, "identityId", { get: function() { return r.loadCachedId(), r._identityId || r.params.IdentityId }, set: function(e) { r._identityId = e } }) }, refresh: function(e) { this.coalesceRefresh(e || a.util.fn.callback) }, load: function(e) { var t = this; t.createClients(), t.data = null, t._identityId = null, t.getId((function(r) { r ? (t.clearIdOnNotAuthorized(r), e(r)) : t.params.RoleArn ? t.getCredentialsFromSTS(e) : t.getCredentialsForIdentity(e) })) }, clearCachedId: function() { this._identityId = null, delete this.params.IdentityId; var e = this.params.IdentityPoolId, t = this.params.LoginId || ""; delete this.storage[this.localStorageKey.id + e + t], delete this.storage[this.localStorageKey.providers + e + t] }, clearIdOnNotAuthorized: function(e) { "NotAuthorizedException" == e.code && this.clearCachedId() }, getId: function(e) { var t = this; if ("string" === typeof t.params.IdentityId) return e(null, t.params.IdentityId); t.cognito.getId((function(r, a) { !r && a.IdentityId ? (t.params.IdentityId = a.IdentityId, e(null, a.IdentityId)) : e(r) })) }, loadCredentials: function(e, t) { e && t && (t.expired = !1, t.accessKeyId = e.Credentials.AccessKeyId, t.secretAccessKey = e.Credentials.SecretKey, t.sessionToken = e.Credentials.SessionToken, t.expireTime = e.Credentials.Expiration) }, getCredentialsForIdentity: function(e) { var t = this; t.cognito.getCredentialsForIdentity((function(r, a) { r ? t.clearIdOnNotAuthorized(r) : (t.cacheId(a), t.data = a, t.loadCredentials(t.data, t)), e(r) })) }, getCredentialsFromSTS: function(e) { var t = this; t.cognito.getOpenIdToken((function(r, a) { r ? (t.clearIdOnNotAuthorized(r), e(r)) : (t.cacheId(a), t.params.WebIdentityToken = a.Token, t.webIdentityCredentials.refresh((function(r) { r || (t.data = t.webIdentityCredentials.data, t.sts.credentialsFrom(t.data, t)), e(r) }))) })) }, loadCachedId: function() { var e = this; if (a.util.isBrowser() && !e.params.IdentityId) { var t = e.getStorage("id"); if (t && e.params.Logins) { var r = Object.keys(e.params.Logins); 0 !== (e.getStorage("providers") || "").split(",").filter((function(e) { return -1 !== r.indexOf(e) })).length && (e.params.IdentityId = t) } else t && (e.params.IdentityId = t) } }, createClients: function() { var e = this._clientConfig; if (this.webIdentityCredentials = this.webIdentityCredentials || new a.WebIdentityCredentials(this.params, e), !this.cognito) { var t = a.util.merge({}, e); t.params = this.params, this.cognito = new n(t) } this.sts = this.sts || new i(e) }, cacheId: function(e) { this._identityId = e.IdentityId, this.params.IdentityId = this._identityId, a.util.isBrowser() && (this.setStorage("id", e.IdentityId), this.params.Logins && this.setStorage("providers", Object.keys(this.params.Logins).join(","))) }, getStorage: function(e) { return this.storage[this.localStorageKey[e] + this.params.IdentityPoolId + (this.params.LoginId || "")] }, setStorage: function(e, t) { try { this.storage[this.localStorageKey[e] + this.params.IdentityPoolId + (this.params.LoginId || "")] = t } catch (r) {} }, storage: function() { try { var e = a.util.isBrowser() && null !== window.localStorage && "object" === typeof window.localStorage ? window.localStorage : {}; return e["aws.test-storage"] = "foobar", delete e["aws.test-storage"], e } catch (t) { return {} } }() }) }, 28732: (e, t, r) => { var a = r(8468); a.CredentialProviderChain = a.util.inherit(a.Credentials, { constructor: function(e) { this.providers = e || a.CredentialProviderChain.defaultProviders.slice(0), this.resolveCallbacks = [] }, resolve: function(e) { var t = this; if (0 === t.providers.length) return e(new Error("No providers")), t; if (1 === t.resolveCallbacks.push(e)) { var r = 0, n = t.providers.slice(0); ! function e(i, o) { if (!i && o || r === n.length) return a.util.arrayEach(t.resolveCallbacks, (function(e) { e(i, o) })), void(t.resolveCallbacks.length = 0); var s = n[r++]; (o = "function" === typeof s ? s.call() : s).get ? o.get((function(t) { e(t, t ? null : o) })) : e(null, o) }() } return t } }), a.CredentialProviderChain.defaultProviders = [], a.CredentialProviderChain.addPromisesToClass = function(e) { this.prototype.resolvePromise = a.util.promisifyMethod("resolve", e) }, a.CredentialProviderChain.deletePromisesFromClass = function() { delete this.prototype.resolvePromise }, a.util.addPromises(a.CredentialProviderChain) }, 78437: (e, t, r) => { var a = r(8468), n = r(62362); a.SAMLCredentials = a.util.inherit(a.Credentials, { constructor: function(e) { a.Credentials.call(this), this.expired = !0, this.params = e }, refresh: function(e) { this.coalesceRefresh(e || a.util.fn.callback) }, load: function(e) { var t = this; t.createClients(), t.service.assumeRoleWithSAML((function(r, a) { r || t.service.credentialsFrom(a, t), e(r) })) }, createClients: function() { this.service = this.service || new n({ params: this.params }) } }) }, 14524: (e, t, r) => { var a = r(8468), n = r(62362); a.TemporaryCredentials = a.util.inherit(a.Credentials, { constructor: function(e, t) { a.Credentials.call(this), this.loadMasterCredentials(t), this.expired = !0, this.params = e || {}, this.params.RoleArn && (this.params.RoleSessionName = this.params.RoleSessionName || "temporary-credentials") }, refresh: function(e) { this.coalesceRefresh(e || a.util.fn.callback) }, load: function(e) { var t = this; t.createClients(), t.masterCredentials.get((function() { t.service.config.credentials = t.masterCredentials, (t.params.RoleArn ? t.service.assumeRole : t.service.getSessionToken).call(t.service, (function(r, a) { r || t.service.credentialsFrom(a, t), e(r) })) })) }, loadMasterCredentials: function(e) { for (this.masterCredentials = e || a.config.credentials; this.masterCredentials.masterCredentials;) this.masterCredentials = this.masterCredentials.masterCredentials; "function" !== typeof this.masterCredentials.get && (this.masterCredentials = new a.Credentials(this.masterCredentials)) }, createClients: function() { this.service = this.service || new n({ params: this.params }) } }) }, 19589: (e, t, r) => { var a = r(8468), n = r(62362); a.WebIdentityCredentials = a.util.inherit(a.Credentials, { constructor: function(e, t) { a.Credentials.call(this), this.expired = !0, this.params = e, this.params.RoleSessionName = this.params.RoleSessionName || "web-identity", this.data = null, this._clientConfig = a.util.copy(t || {}) }, refresh: function(e) { this.coalesceRefresh(e || a.util.fn.callback) }, load: function(e) { var t = this; t.createClients(), t.service.assumeRoleWithWebIdentity((function(r, a) { t.data = null, r || (t.data = a, t.service.credentialsFrom(a, t)), e(r) })) }, createClients: function() { if (!this.service) { var e = a.util.merge({}, this._clientConfig); e.params = this.params, this.service = new n(e) } } }) }, 24265: (e, t, r) => { var a = r(8468), n = r(23657), i = ["AWS_ENABLE_ENDPOINT_DISCOVERY", "AWS_ENDPOINT_DISCOVERY_ENABLED"]; function o(e) { var t = e.service, r = t.api || {}, a = (r.operations, {}); return t.config.region && (a.region = t.config.region), r.serviceId && (a.serviceId = r.serviceId), t.config.credentials.accessKeyId && (a.accessKeyId = t.config.credentials.accessKeyId), a } function s(e, t, r) { r && void 0 !== t && null !== t && "structure" === r.type && r.required && r.required.length > 0 && n.arrayEach(r.required, (function(a) { var n = r.members[a]; if (!0 === n.endpointDiscoveryId) { var i = n.isLocationName ? n.name : a; e[i] = String(t[a]) } else s(e, t[a], n) })) } function u(e, t) { var r = {}; return s(r, e.params, t), r } function p(e) { var t = e.service, r = t.api, i = r.operations ? r.operations[e.operation] : void 0, s = u(e, i ? i.input : void 0), p = o(e); Object.keys(s).length > 0 && (p = n.update(p, s), i && (p.operation = i.name)); var c = a.endpointCache.get(p); if (!c || 1 !== c.length || "" !== c[0].Address) if (c && c.length > 0) e.httpRequest.updateEndpoint(c[0].Address); else { var m = t.makeRequest(r.endpointOperation, { Operation: i.name, Identifiers: s }); l(m), m.removeListener("validate", a.EventListeners.Core.VALIDATE_PARAMETERS), m.removeListener("retry", a.EventListeners.Core.RETRY_CHECK), a.endpointCache.put(p, [{ Address: "", CachePeriodInMinutes: 1 }]), m.send((function(e, t) { t && t.Endpoints ? a.endpointCache.put(p, t.Endpoints) : e && a.endpointCache.put(p, [{ Address: "", CachePeriodInMinutes: 1 }]) })) } } var c = {}; function m(e, t) { var r = e.service, i = r.api, s = i.operations ? i.operations[e.operation] : void 0, p = s ? s.input : void 0, m = u(e, p), d = o(e); Object.keys(m).length > 0 && (d = n.update(d, m), s && (d.operation = s.name)); var y = a.EndpointCache.getKeyString(d), b = a.endpointCache.get(y); if (b && 1 === b.length && "" === b[0].Address) return c[y] || (c[y] = []), void c[y].push({ request: e, callback: t }); if (b && b.length > 0) e.httpRequest.updateEndpoint(b[0].Address), t(); else { var g = r.makeRequest(i.endpointOperation, { Operation: s.name, Identifiers: m }); g.removeListener("validate", a.EventListeners.Core.VALIDATE_PARAMETERS), l(g), a.endpointCache.put(y, [{ Address: "", CachePeriodInMinutes: 60 }]), g.send((function(r, i) { if (r) { if (e.response.error = n.error(r, { retryable: !1 }), a.endpointCache.remove(d), c[y]) { var o = c[y]; n.arrayEach(o, (function(e) { e.request.response.error = n.error(r, { retryable: !1 }), e.callback() })), delete c[y] } } else if (i && (a.endpointCache.put(y, i.Endpoints), e.httpRequest.updateEndpoint(i.Endpoints[0].Address), c[y])) { o = c[y]; n.arrayEach(o, (function(e) { e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address), e.callback() })), delete c[y] } t() })) } } function l(e) { var t = e.service.api.apiVersion; t && !e.httpRequest.headers["x-amz-api-version"] && (e.httpRequest.headers["x-amz-api-version"] = t) } function d(e) { var t = e.error, r = e.httpResponse; if (t && ("InvalidEndpointException" === t.code || 421 === r.statusCode)) { var i = e.request, s = i.service.api.operations || {}, p = u(i, s[i.operation] ? s[i.operation].input : void 0), c = o(i); Object.keys(p).length > 0 && (c = n.update(c, p), s[i.operation] && (c.operation = s[i.operation].name)), a.endpointCache.remove(c) } } function y(e) { return ["false", "0"].indexOf(e) >= 0 } e.exports = { discoverEndpoint: function(e, t) { var r = e.service || {}; if (function(e) { if (e._originalConfig && e._originalConfig.endpoint && !0 === e._originalConfig.endpointDiscoveryEnabled) throw n.error(new Error, { code: "ConfigurationException", message: "Custom endpoint is supplied; endpointDiscoveryEnabled must not be true." }); var t = a.config[e.serviceIdentifier] || {}; return Boolean(a.config.endpoint || t.endpoint || e._originalConfig && e._originalConfig.endpoint) }(r) || e.isPresigned()) return t(); var o = (r.api.operations || {})[e.operation], s = o ? o.endpointDiscoveryRequired : "NULL", u = function(e) { var t = e.service || {}; if (void 0 !== t.config.endpointDiscoveryEnabled) return t.config.endpointDiscoveryEnabled; if (!n.isBrowser()) { for (var r = 0; r < i.length; r++) { var o = i[r]; if (Object.prototype.hasOwnProperty.call({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }, o)) { if ("" === { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [o] || void 0 === { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [o]) throw n.error(new Error, { code: "ConfigurationException", message: "environmental variable " + o + " cannot be set to nothing" }); return !y({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [o]) } } var s = {}; try { s = a.util.iniLoader ? a.util.iniLoader.loadFrom({ isConfig: !0, filename: { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [a.util.sharedConfigFileEnv] }) : {} } catch (p) {} var u = s[{ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_PROFILE || a.util.defaultProfile] || {}; if (Object.prototype.hasOwnProperty.call(u, "endpoint_discovery_enabled")) { if (void 0 === u.endpoint_discovery_enabled) throw n.error(new Error, { code: "ConfigurationException", message: "config file entry 'endpoint_discovery_enabled' cannot be set to nothing" }); return !y(u.endpoint_discovery_enabled) } } }(e), c = r.api.hasRequiredEndpointDiscovery; switch ((u || c) && e.httpRequest.appendToUserAgent("endpoint-discovery"), s) { case "OPTIONAL": (u || c) && (p(e), e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS", "extractError", d)), t(); break; case "REQUIRED": if (!1 === u) { e.response.error = n.error(new Error, { code: "ConfigurationException", message: "Endpoint Discovery is disabled but " + r.api.className + "." + e.operation + "() requires it. Please check your configurations." }), t(); break } e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS", "extractError", d), m(e, t); break; default: t() } }, requiredDiscoverEndpoint: m, optionalDiscoverEndpoint: p, marshallCustomIdentifiers: u, getCacheKey: o, invalidateCachedEndpoint: d } }, 8547: (e, t, r) => { var a = r(8468), n = a.util, i = r(86337).typeOf, o = r(84218), s = r(31622); function u(e, t) { return t ? new s(e) : Number(e) } function p(e, t) { var r = { M: {} }; for (var n in e) { var i = a.DynamoDB.Converter.input(e[n], t); void 0 !== i && (r.M[n] = i) } return r } a.DynamoDB.Converter = { input: function e(t, r) { r = r || {}; var n = i(t); return "Object" === n ? p(t, r) : "Array" === n ? function(e, t) { for (var r = { L: [] }, n = 0; n < e.length; n++) r.L.push(a.DynamoDB.Converter.input(e[n], t)); return r }(t, r) : "Set" === n ? function(e, t) { t = t || {}; var r = e.values; if (t.convertEmptyValues && 0 === (r = function(e) { var t = []; if ({ String: !0, Binary: !0, Number: !1 } [e.type]) { for (var r = 0; r < e.values.length; r++) 0 !== e.values[r].length && t.push(e.values[r]); return t } return e.values }(e)).length) return a.DynamoDB.Converter.input(null); var n = {}; switch (e.type) { case "String": n.SS = r; break; case "Binary": n.BS = r; break; case "Number": n.NS = r.map((function(e) { return e.toString() })) } return n }(t, r) : "String" === n ? 0 === t.length && r.convertEmptyValues ? e(null) : { S: t } : "Number" === n || "NumberValue" === n ? { N: t.toString() } : "Binary" === n ? 0 === t.length && r.convertEmptyValues ? e(null) : { B: t } : "Boolean" === n ? { BOOL: t } : "null" === n ? { NULL: !0 } : "undefined" !== n && "Function" !== n ? p(t, r) : void 0 }, marshall: function(e, t) { return a.DynamoDB.Converter.input(e, t).M }, output: function e(t, r) { var i, s, p; for (var c in r = r || {}, t) { var m = t[c]; if ("M" === c) { for (var l in s = {}, m) s[l] = e(m[l], r); return s } if ("L" === c) { for (i = [], p = 0; p < m.length; p++) i.push(e(m[p], r)); return i } if ("SS" === c) { for (i = [], p = 0; p < m.length; p++) i.push(m[p] + ""); return new o(i) } if ("NS" === c) { for (i = [], p = 0; p < m.length; p++) i.push(u(m[p], r.wrapNumbers)); return new o(i) } if ("BS" === c) { for (i = [], p = 0; p < m.length; p++) i.push(a.util.buffer.toBuffer(m[p])); return new o(i) } if ("S" === c) return m + ""; if ("N" === c) return u(m, r.wrapNumbers); if ("B" === c) return n.buffer.toBuffer(m); if ("BOOL" === c) return "true" === m || "TRUE" === m || !0 === m; if ("NULL" === c) return null } }, unmarshall: function(e, t) { return a.DynamoDB.Converter.output({ M: e }, t) } }, e.exports = a.DynamoDB.Converter }, 55098: (e, t, r) => { var a = r(8468), n = r(74952), i = r(84218); a.DynamoDB.DocumentClient = a.util.inherit({ constructor: function(e) { var t = this; t.options = e || {}, t.configure(t.options) }, configure: function(e) { var t = this; t.service = e.service, t.bindServiceObject(e), t.attrValue = e.attrValue = t.service.api.operations.putItem.input.members.Item.value.shape }, bindServiceObject: function(e) { var t = this; if (e = e || {}, t.service) { var r = a.util.copy(t.service.config); t.service = new t.service.constructor.__super__(r), t.service.config.params = a.util.merge(t.service.config.params || {}, e.params) } else t.service = new a.DynamoDB(e) }, makeServiceRequest: function(e, t, r) { var a = this, n = a.service[e](t); return a.setupRequest(n), a.setupResponse(n), "function" === typeof r && n.send(r), n }, serviceClientOperationsMap: { batchGet: "batchGetItem", batchWrite: "batchWriteItem", delete: "deleteItem", get: "getItem", put: "putItem", query: "query", scan: "scan", update: "updateItem", transactGet: "transactGetItems", transactWrite: "transactWriteItems" }, batchGet: function(e, t) { var r = this.serviceClientOperationsMap.batchGet; return this.makeServiceRequest(r, e, t) }, batchWrite: function(e, t) { var r = this.serviceClientOperationsMap.batchWrite; return this.makeServiceRequest(r, e, t) }, delete: function(e, t) { var r = this.serviceClientOperationsMap.delete; return this.makeServiceRequest(r, e, t) }, get: function(e, t) { var r = this.serviceClientOperationsMap.get; return this.makeServiceRequest(r, e, t) }, put: function(e, t) { var r = this.serviceClientOperationsMap.put; return this.makeServiceRequest(r, e, t) }, update: function(e, t) { var r = this.serviceClientOperationsMap.update; return this.makeServiceRequest(r, e, t) }, scan: function(e, t) { var r = this.serviceClientOperationsMap.scan; return this.makeServiceRequest(r, e, t) }, query: function(e, t) { var r = this.serviceClientOperationsMap.query; return this.makeServiceRequest(r, e, t) }, transactWrite: function(e, t) { var r = this.serviceClientOperationsMap.transactWrite; return this.makeServiceRequest(r, e, t) }, transactGet: function(e, t) { var r = this.serviceClientOperationsMap.transactGet; return this.makeServiceRequest(r, e, t) }, createSet: function(e, t) { return new i(e, t = t || {}) }, getTranslator: function() { return new n(this.options) }, setupRequest: function(e) { var t = this.getTranslator(), r = e.operation, n = e.service.api.operations[r].input; e._events.validate.unshift((function(e) { e.rawParams = a.util.copy(e.params), e.params = t.translateInput(e.rawParams, n) })) }, setupResponse: function(e) { var t = this, r = t.getTranslator(), n = t.service.api.operations[e.operation].output; e.on("extractData", (function(e) { e.data = r.translateOutput(e.data, n) })), e.response.nextPage = function(e) { var r, n = this, i = n.request, o = i.service, s = i.operation; try { r = o.paginationConfig(s, !0) } catch (m) { n.error = m } if (!n.hasNextPage()) { if (e) e(n.error, null); else if (n.error) throw n.error; return null } var u = a.util.copy(i.rawParams); if (n.nextPageTokens) { var p = r.inputToken; "string" === typeof p && (p = [p]); for (var c = 0; c < p.length; c++) u[p[c]] = n.nextPageTokens[c]; return t[s](u, e) } return e ? e(null, null) : null } } }), e.exports = a.DynamoDB.DocumentClient }, 31622: (e, t, r) => { var a = r(8468).util.inherit({ constructor: function(e) { this.wrapperName = "NumberValue", this.value = e.toString() }, toJSON: function() { return this.toNumber() }, toNumber: function() { return Number(this.value) }, toString: function() { return this.value } }); e.exports = a }, 84218: (e, t, r) => { var a = r(8468).util, n = r(86337).typeOf, i = { String: "String", Number: "Number", NumberValue: "Number", Binary: "Binary" }, o = a.inherit({ constructor: function(e, t) { t = t || {}, this.wrapperName = "Set", this.initialize(e, t.validate) }, initialize: function(e, t) { var r = this; r.values = [].concat(e), r.detectType(), t && r.validate() }, detectType: function() { if (this.type = i[n(this.values[0])], !this.type) throw a.error(new Error, { code: "InvalidSetType", message: "Sets can contain string, number, or binary values" }) }, validate: function() { for (var e = this, t = e.values.length, r = e.values, o = 0; o < t; o++) if (i[n(r[o])] !== e.type) throw a.error(new Error, { code: "InvalidType", message: e.type + " Set contains " + n(r[o]) + " value" }) }, toJSON: function() { return this.values } }); e.exports = o }, 74952: (e, t, r) => { var a = r(8468).util, n = r(8547), i = function(e) { e = e || {}, this.attrValue = e.attrValue, this.convertEmptyValues = Boolean(e.convertEmptyValues), this.wrapNumbers = Boolean(e.wrapNumbers) }; i.prototype.translateInput = function(e, t) { return this.mode = "input", this.translate(e, t) }, i.prototype.translateOutput = function(e, t) { return this.mode = "output", this.translate(e, t) }, i.prototype.translate = function(e, t) { var r = this; if (t && void 0 !== e) { if (t.shape === r.attrValue) return n[r.mode](e, { convertEmptyValues: r.convertEmptyValues, wrapNumbers: r.wrapNumbers }); switch (t.type) { case "structure": return r.translateStructure(e, t); case "map": return r.translateMap(e, t); case "list": return r.translateList(e, t); default: return r.translateScalar(e, t) } } }, i.prototype.translateStructure = function(e, t) { var r = this; if (null != e) { var n = {}; return a.each(e, (function(e, a) { var i = t.members[e]; if (i) { var o = r.translate(a, i); void 0 !== o && (n[e] = o) } })), n } }, i.prototype.translateList = function(e, t) { var r = this; if (null != e) { var n = []; return a.arrayEach(e, (function(e) { var a = r.translate(e, t.member); void 0 === a ? n.push(null) : n.push(a) })), n } }, i.prototype.translateMap = function(e, t) { var r = this; if (null != e) { var n = {}; return a.each(e, (function(e, a) { var i = r.translate(a, t.value); n[e] = void 0 === i ? null : i })), n } }, i.prototype.translateScalar = function(e, t) { return t.toType(e) }, e.exports = i }, 86337: (e, t, r) => { var a = r(8468).util; function n(e) { var t = ["Buffer", "File", "Blob", "ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]; if (a.isNode()) { var r = a.stream.Stream; if (a.Buffer.isBuffer(e) || e instanceof r) return !0 } for (var n = 0; n < t.length; n++) if (void 0 !== e && e.constructor) { if (a.isType(e, t[n])) return !0; if (a.typeName(e.constructor) === t[n]) return !0 } return !1 } e.exports = { typeOf: function(e) { return null === e && "object" === typeof e ? "null" : void 0 !== e && n(e) ? "Binary" : void 0 !== e && e.constructor ? e.wrapperName || a.typeName(e.constructor) : void 0 !== e && "object" === typeof e ? "Object" : "undefined" }, isBinary: n } }, 28962: (e, t, r) => { var a = r(62155).eventMessageChunker, n = r(53523).parseEvent; e.exports = { createEventStream: function(e, t, r) { for (var i = a(e), o = [], s = 0; s < i.length; s++) o.push(n(t, i[s], r)); return o } } }, 62155: e => { e.exports = { eventMessageChunker: function(e) { for (var t = [], r = 0; r < e.length;) { var a = e.readInt32BE(r), n = e.slice(r, a + r); r += a, t.push(n) } return t } } }, 82553: (e, t, r) => { var a = r(8468).util, n = a.buffer.toBuffer; function i(e) { if (8 !== e.length) throw new Error("Int64 buffers must be exactly 8 bytes"); a.Buffer.isBuffer(e) || (e = n(e)), this.bytes = e } function o(e) { for (var t = 0; t < 8; t++) e[t] ^= 255; for (t = 7; t > -1 && (e[t]++, 0 === e[t]); t--); } i.fromNumber = function(e) { if (e > 0x8000000000000000 || e < -0x8000000000000000) throw new Error(e + " is too large (or, if negative, too small) to represent as an Int64"); for (var t = new Uint8Array(8), r = 7, a = Math.abs(Math.round(e)); r > -1 && a > 0; r--, a /= 256) t[r] = a; return e < 0 && o(t), new i(t) }, i.prototype.valueOf = function() { var e = this.bytes.slice(0), t = 128 & e[0]; return t && o(e), parseInt(e.toString("hex"), 16) * (t ? -1 : 1) }, i.prototype.toString = function() { return String(this.valueOf()) }, e.exports = { Int64: i } }, 53523: (e, t, r) => { var a = r(72408).parseMessage; e.exports = { parseEvent: function(e, t, r) { var n = a(t), i = n.headers[":message-type"]; if (i) { if ("error" === i.value) throw function(e) { var t = e.headers[":error-code"], r = e.headers[":error-message"], a = new Error(r.value || r); return a.code = a.name = t.value || t, a }(n); if ("event" !== i.value) return } var o = n.headers[":event-type"], s = r.members[o.value]; if (s) { var u = {}, p = s.eventPayloadMemberName; if (p) { var c = s.members[p]; "binary" === c.type ? u[p] = n.body : u[p] = e.parse(n.body.toString(), c) } for (var m = s.eventHeaderMemberNames, l = 0; l < m.length; l++) { var d = m[l]; n.headers[d] && (u[d] = s.members[d].toType(n.headers[d].value)) } var y = {}; return y[o.value] = u, y } } } }, 72408: (e, t, r) => { var a = r(82553).Int64, n = r(47113).splitMessage, i = "boolean", o = "byte", s = "short", u = "integer", p = "long", c = "binary", m = "string", l = "timestamp", d = "uuid"; function y(e) { for (var t = {}, r = 0; r < e.length;) { var n = e.readUInt8(r++), y = e.slice(r, r + n).toString(); switch (r += n, e.readUInt8(r++)) { case 0: t[y] = { type: i, value: !0 }; break; case 1: t[y] = { type: i, value: !1 }; break; case 2: t[y] = { type: o, value: e.readInt8(r++) }; break; case 3: t[y] = { type: s, value: e.readInt16BE(r) }, r += 2; break; case 4: t[y] = { type: u, value: e.readInt32BE(r) }, r += 4; break; case 5: t[y] = { type: p, value: new a(e.slice(r, r + 8)) }, r += 8; break; case 6: var b = e.readUInt16BE(r); r += 2, t[y] = { type: c, value: e.slice(r, r + b) }, r += b; break; case 7: var g = e.readUInt16BE(r); r += 2, t[y] = { type: m, value: e.slice(r, r + g).toString() }, r += g; break; case 8: t[y] = { type: l, value: new Date(new a(e.slice(r, r + 8)).valueOf()) }, r += 8; break; case 9: var h = e.slice(r, r + 16).toString("hex"); r += 16, t[y] = { type: d, value: h.substr(0, 8) + "-" + h.substr(8, 4) + "-" + h.substr(12, 4) + "-" + h.substr(16, 4) + "-" + h.substr(20) }; break; default: throw new Error("Unrecognized header type tag") } } return t } e.exports = { parseMessage: function(e) { var t = n(e); return { headers: y(t.headers), body: t.body } } } }, 47113: (e, t, r) => { var a = r(8468).util, n = a.buffer.toBuffer; e.exports = { splitMessage: function(e) { if (a.Buffer.isBuffer(e) || (e = n(e)), e.length < 16) throw new Error("Provided message too short to accommodate event stream message overhead"); if (e.length !== e.readUInt32BE(0)) throw new Error("Reported message length does not match received message length"); var t = e.readUInt32BE(8); if (t !== a.crypto.crc32(e.slice(0, 8))) throw new Error("The prelude checksum specified in the message (" + t + ") does not match the calculated CRC32 checksum."); var r = e.readUInt32BE(e.length - 4); if (r !== a.crypto.crc32(e.slice(0, e.length - 4))) throw new Error("The message checksum did not match the expected value of " + r); var i = 12 + e.readUInt32BE(4); return { headers: e.slice(12, i), body: e.slice(i, e.length - 4) } } } }, 18663: (e, t, r) => { var a = r(8468), n = r(78451), i = r(24265).discoverEndpoint; function o(e) { if (!e.service.api.operations) return ""; var t = e.service.api.operations[e.operation]; return t ? t.authtype : "" } function s(e) { var t = e.service; return t.config.signatureVersion ? t.config.signatureVersion : t.api.signatureVersion ? t.api.signatureVersion : o(e) } a.EventListeners = { Core: {} }, a.EventListeners = { Core: (new n).addNamedListeners((function(e, t) { t("VALIDATE_CREDENTIALS", "validate", (function(e, t) { if (!e.service.api.signatureVersion && !e.service.config.signatureVersion) return t(); "bearer" !== s(e) ? e.service.config.getCredentials((function(r) { r && (e.response.error = a.util.error(r, { code: "CredentialsError", message: "Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1" })), t() })) : e.service.config.getToken((function(r) { r && (e.response.error = a.util.error(r, { code: "TokenError" })), t() })) })), e("VALIDATE_REGION", "validate", (function(e) { if (!e.service.isGlobalEndpoint) { var t = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); e.service.config.region ? t.test(e.service.config.region) || (e.response.error = a.util.error(new Error, { code: "ConfigError", message: "Invalid region in config" })) : e.response.error = a.util.error(new Error, { code: "ConfigError", message: "Missing region in config" }) } })), e("BUILD_IDEMPOTENCY_TOKENS", "validate", (function(e) { if (e.service.api.operations) { var t = e.service.api.operations[e.operation]; if (t) { var r = t.idempotentMembers; if (r.length) { for (var n = a.util.copy(e.params), i = 0, o = r.length; i < o; i++) n[r[i]] || (n[r[i]] = a.util.uuid.v4()); e.params = n } } } })), e("VALIDATE_PARAMETERS", "validate", (function(e) { if (e.service.api.operations) { var t = e.service.api.operations[e.operation].input, r = e.service.config.paramValidation; new a.ParamValidator(r).validate(t, e.params) } })), e("COMPUTE_CHECKSUM", "afterBuild", (function(e) { if (e.service.api.operations) { var t = e.service.api.operations[e.operation]; if (t) { var r = e.httpRequest.body, n = r && (a.util.Buffer.isBuffer(r) || "string" === typeof r), i = e.httpRequest.headers; if (t.httpChecksumRequired && e.service.config.computeChecksums && n && !i["Content-MD5"]) { var o = a.util.crypto.md5(r, "base64"); i["Content-MD5"] = o } } } })), t("COMPUTE_SHA256", "afterBuild", (function(e, t) { if (e.haltHandlersOnError(), e.service.api.operations) { var r = e.service.api.operations[e.operation], n = r ? r.authtype : ""; if (!e.service.api.signatureVersion && !n && !e.service.config.signatureVersion) return t(); if (e.service.getSignerClass(e) === a.Signers.V4) { var i = e.httpRequest.body || ""; if (n.indexOf("unsigned-body") >= 0) return e.httpRequest.headers["X-Amz-Content-Sha256"] = "UNSIGNED-PAYLOAD", t(); a.util.computeSha256(i, (function(r, a) { r ? t(r) : (e.httpRequest.headers["X-Amz-Content-Sha256"] = a, t()) })) } else t() } })), e("SET_CONTENT_LENGTH", "afterBuild", (function(e) { var t = o(e), r = a.util.getRequestPayloadShape(e); if (void 0 === e.httpRequest.headers["Content-Length"]) try { var n = a.util.string.byteLength(e.httpRequest.body); e.httpRequest.headers["Content-Length"] = n } catch (i) { if (r && r.isStreaming) { if (r.requiresLength) throw i; if (t.indexOf("unsigned-body") >= 0) return void(e.httpRequest.headers["Transfer-Encoding"] = "chunked"); throw i } throw i } })), e("SET_HTTP_HOST", "afterBuild", (function(e) { e.httpRequest.headers.Host = e.httpRequest.endpoint.host })), e("SET_TRACE_ID", "afterBuild", (function(e) { var t = "X-Amzn-Trace-Id"; if (a.util.isNode() && !Object.hasOwnProperty.call(e.httpRequest.headers, t)) { var r = { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_LAMBDA_FUNCTION_NAME, n = { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }._X_AMZN_TRACE_ID; "string" === typeof r && r.length > 0 && "string" === typeof n && n.length > 0 && (e.httpRequest.headers[t] = n) } })), e("RESTART", "restart", (function() { var e = this.response.error; e && e.retryable && (this.httpRequest = new a.HttpRequest(this.service.endpoint, this.service.region), this.response.retryCount < this.service.config.maxRetries ? this.response.retryCount++ : this.response.error = null) })); t("DISCOVER_ENDPOINT", "sign", i, !0), t("SIGN", "sign", (function(e, t) { var r = e.service, a = s(e); if (!a || 0 === a.length) return t(); "bearer" === a ? r.config.getToken((function(a, n) { if (a) return e.response.error = a, t(); try { new(r.getSignerClass(e))(e.httpRequest).addAuthorization(n) } catch (i) { e.response.error = i } t() })) : r.config.getCredentials((function(a, n) { if (a) return e.response.error = a, t(); try { var i = r.getSkewCorrectedDate(), o = r.getSignerClass(e), s = (e.service.api.operations || {})[e.operation], u = new o(e.httpRequest, r.getSigningName(e), { signatureCache: r.config.signatureCache, operation: s, signatureVersion: r.api.signatureVersion }); u.setServiceClientId(r._clientId), delete e.httpRequest.headers.Authorization, delete e.httpRequest.headers.Date, delete e.httpRequest.headers["X-Amz-Date"], u.addAuthorization(n, i), e.signedAt = i } catch (p) { e.response.error = p } t() })) })), e("VALIDATE_RESPONSE", "validateResponse", (function(e) { this.service.successfulResponse(e, this) ? (e.data = {}, e.error = null) : (e.data = null, e.error = a.util.error(new Error, { code: "UnknownError", message: "An unknown error occurred." })) })), e("ERROR", "error", (function(e, t) { if (t.request.service.api.awsQueryCompatible) { var r = t.httpResponse.headers, a = r ? r["x-amzn-query-error"] : void 0; a && a.includes(";") && (t.error.code = a.split(";")[0]) } }), !0), t("SEND", "send", (function(e, t) { function r(r) { e.httpResponse.stream = r; var n = e.request.httpRequest.stream, i = e.request.service, o = i.api, s = e.request.operation, u = o.operations[s] || {}; r.on("headers", (function(n, o, s) { if (e.request.emit("httpHeaders", [n, o, e, s]), !e.httpResponse.streaming) if (2 === a.HttpClient.streamsApiVersion) { if (u.hasEventOutput && i.successfulResponse(e)) return e.request.emit("httpDone"), void t(); r.on("readable", (function() { var t = r.read(); null !== t && e.request.emit("httpData", [t, e]) })) } else r.on("data", (function(t) { e.request.emit("httpData", [t, e]) })) })), r.on("end", (function() { if (!n || !n.didCallback) { if (2 === a.HttpClient.streamsApiVersion && u.hasEventOutput && i.successfulResponse(e)) return; e.request.emit("httpDone"), t() } })) } function n(r) { if ("RequestAbortedError" !== r.code) { var n = "TimeoutError" === r.code ? r.code : "NetworkingError"; r = a.util.error(r, { code: n, region: e.request.httpRequest.region, hostname: e.request.httpRequest.endpoint.hostname, retryable: !0 }) } e.error = r, e.request.emit("httpError", [e.error, e], (function() { t() })) } function i() { var t, i = a.HttpClient.getInstance(), o = e.request.service.config.httpOptions || {}; try { var s = i.handleRequest(e.request.httpRequest, o, r, n); (t = s).on("sendProgress", (function(t) { e.request.emit("httpUploadProgress", [t, e]) })), t.on("receiveProgress", (function(t) { e.request.emit("httpDownloadProgress", [t, e]) })) } catch (u) { n(u) } } e.httpResponse._abortCallback = t, e.error = null, e.data = null, (e.request.service.getSkewCorrectedDate() - this.signedAt) / 1e3 >= 600 ? this.emit("sign", [this], (function(e) { e ? t(e) : i() })) : i() })), e("HTTP_HEADERS", "httpHeaders", (function(e, t, r, n) { r.httpResponse.statusCode = e, r.httpResponse.statusMessage = n, r.httpResponse.headers = t, r.httpResponse.body = a.util.buffer.toBuffer(""), r.httpResponse.buffers = [], r.httpResponse.numBytes = 0; var i = t.date || t.Date, o = r.request.service; if (i) { var s = Date.parse(i); o.config.correctClockSkew && o.isClockSkewed(s) && o.applyClockOffset(s) } })), e("HTTP_DATA", "httpData", (function(e, t) { if (e) { if (a.util.isNode()) { t.httpResponse.numBytes += e.length; var r = t.httpResponse.headers["content-length"], n = { loaded: t.httpResponse.numBytes, total: r }; t.request.emit("httpDownloadProgress", [n, t]) } t.httpResponse.buffers.push(a.util.buffer.toBuffer(e)) } })), e("HTTP_DONE", "httpDone", (function(e) { if (e.httpResponse.buffers && e.httpResponse.buffers.length > 0) { var t = a.util.buffer.concat(e.httpResponse.buffers); e.httpResponse.body = t } delete e.httpResponse.numBytes, delete e.httpResponse.buffers })), e("FINALIZE_ERROR", "retry", (function(e) { e.httpResponse.statusCode && (e.error.statusCode = e.httpResponse.statusCode, void 0 === e.error.retryable && (e.error.retryable = this.service.retryableError(e.error, this))) })), e("INVALIDATE_CREDENTIALS", "retry", (function(e) { if (e.error) switch (e.error.code) { case "RequestExpired": case "ExpiredTokenException": case "ExpiredToken": e.error.retryable = !0, e.request.service.config.credentials.expired = !0 } })), e("EXPIRED_SIGNATURE", "retry", (function(e) { var t = e.error; t && "string" === typeof t.code && "string" === typeof t.message && t.code.match(/Signature/) && t.message.match(/expired/) && (e.error.retryable = !0) })), e("CLOCK_SKEWED", "retry", (function(e) { e.error && this.service.clockSkewError(e.error) && this.service.config.correctClockSkew && (e.error.retryable = !0) })), e("REDIRECT", "retry", (function(e) { e.error && e.error.statusCode >= 300 && e.error.statusCode < 400 && e.httpResponse.headers.location && (this.httpRequest.endpoint = new a.Endpoint(e.httpResponse.headers.location), this.httpRequest.headers.Host = this.httpRequest.endpoint.host, e.error.redirect = !0, e.error.retryable = !0) })), e("RETRY_CHECK", "retry", (function(e) { e.error && (e.error.redirect && e.redirectCount < e.maxRedirects ? e.error.retryDelay = 0 : e.retryCount < e.maxRetries && (e.error.retryDelay = this.service.retryDelays(e.retryCount, e.error) || 0)) })), t("RESET_RETRY_STATE", "afterRetry", (function(e, t) { var r, a = !1; e.error && (r = e.error.retryDelay || 0, e.error.retryable && e.retryCount < e.maxRetries ? (e.retryCount++, a = !0) : e.error.redirect && e.redirectCount < e.maxRedirects && (e.redirectCount++, a = !0)), a && r >= 0 ? (e.error = null, setTimeout(t, r)) : t() })) })), CorePost: (new n).addNamedListeners((function(e) { e("EXTRACT_REQUEST_ID", "extractData", a.util.extractRequestId), e("EXTRACT_REQUEST_ID", "extractError", a.util.extractRequestId), e("ENOTFOUND_ERROR", "httpError", (function(e) { if ("NetworkingError" === e.code && function(e) { return "ENOTFOUND" === e.errno || "number" === typeof e.errno && "function" === typeof a.util.getSystemErrorName && ["EAI_NONAME", "EAI_NODATA"].indexOf(a.util.getSystemErrorName(e.errno) >= 0) }(e)) { var t = "Inaccessible host: `" + e.hostname + "' at port `" + e.port + "'. This service may not be available in the `" + e.region + "' region."; this.response.error = a.util.error(new Error(t), { code: "UnknownEndpoint", region: e.region, hostname: e.hostname, retryable: !0, originalError: e }) } })) })), Logger: (new n).addNamedListeners((function(e) { e("LOG_REQUEST", "complete", (function(e) { var t = e.request, n = t.service.config.logger; if (n) { var i = function() { var i = (e.request.service.getSkewCorrectedDate().getTime() - t.startTime.getTime()) / 1e3, s = !!n.isTTY, u = e.httpResponse.statusCode, p = t.params; t.service.api.operations && t.service.api.operations[t.operation] && t.service.api.operations[t.operation].input && (p = o(t.service.api.operations[t.operation].input, t.params)); var c = r(49639).inspect(p, !0, null), m = ""; return s && (m += "\x1b[33m"), m += "[AWS " + t.service.serviceIdentifier + " " + u, m += " " + i.toString() + "s " + e.retryCount + " retries]", s && (m += "\x1b[0;1m"), m += " " + a.util.string.lowerFirst(t.operation), m += "(" + c + ")", s && (m += "\x1b[0m"), m }(); "function" === typeof n.log ? n.log(i) : "function" === typeof n.write && n.write(i + "\n") } function o(e, t) { if (!t) return t; if (e.isSensitive) return "***SensitiveInformation***"; switch (e.type) { case "structure": var r = {}; return a.util.each(t, (function(t, a) { Object.prototype.hasOwnProperty.call(e.members, t) ? r[t] = o(e.members[t], a) : r[t] = a })), r; case "list": var n = []; return a.util.arrayEach(t, (function(t, r) { n.push(o(e.member, t)) })), n; case "map": var i = {}; return a.util.each(t, (function(t, r) { i[t] = o(e.value, r) })), i; default: return t } } })) })), Json: (new n).addNamedListeners((function(e) { var t = r(89864); e("BUILD", "build", t.buildRequest), e("EXTRACT_DATA", "extractData", t.extractData), e("EXTRACT_ERROR", "extractError", t.extractError) })), Rest: (new n).addNamedListeners((function(e) { var t = r(19701); e("BUILD", "build", t.buildRequest), e("EXTRACT_DATA", "extractData", t.extractData), e("EXTRACT_ERROR", "extractError", t.extractError) })), RestJson: (new n).addNamedListeners((function(e) { var t = r(12085); e("BUILD", "build", t.buildRequest), e("EXTRACT_DATA", "extractData", t.extractData), e("EXTRACT_ERROR", "extractError", t.extractError), e("UNSET_CONTENT_LENGTH", "afterBuild", t.unsetContentLength) })), RestXml: (new n).addNamedListeners((function(e) { var t = r(61622); e("BUILD", "build", t.buildRequest), e("EXTRACT_DATA", "extractData", t.extractData), e("EXTRACT_ERROR", "extractError", t.extractError) })), Query: (new n).addNamedListeners((function(e) { var t = r(66588); e("BUILD", "build", t.buildRequest), e("EXTRACT_DATA", "extractData", t.extractData), e("EXTRACT_ERROR", "extractError", t.extractError) })) } }, 78168: (e, t, r) => { var a = r(8468), n = a.util.inherit; a.Endpoint = n({ constructor: function(e, t) { if (a.util.hideProperties(this, ["slashes", "auth", "hash", "search", "query"]), "undefined" === typeof e || null === e) throw new Error("Invalid endpoint: " + e); if ("string" !== typeof e) return a.util.copy(e); e.match(/^http/) || (e = ((t && void 0 !== t.sslEnabled ? t.sslEnabled : a.config.sslEnabled) ? "https" : "http") + "://" + e); a.util.update(this, a.util.urlParse(e)), this.port ? this.port = parseInt(this.port, 10) : this.port = "https:" === this.protocol ? 443 : 80 } }), a.HttpRequest = n({ constructor: function(e, t) { e = new a.Endpoint(e), this.method = "POST", this.path = e.path || "/", this.headers = {}, this.body = "", this.endpoint = e, this.region = t, this._userAgent = "", this.setUserAgent() }, setUserAgent: function() { this._userAgent = this.headers[this.getUserAgentHeaderName()] = a.util.userAgent() }, getUserAgentHeaderName: function() { return (a.util.isBrowser() ? "X-Amz-" : "") + "User-Agent" }, appendToUserAgent: function(e) { "string" === typeof e && e && (this._userAgent += " " + e), this.headers[this.getUserAgentHeaderName()] = this._userAgent }, getUserAgent: function() { return this._userAgent }, pathname: function() { return this.path.split("?", 1)[0] }, search: function() { var e = this.path.split("?", 2)[1]; return e ? (e = a.util.queryStringParse(e), a.util.queryParamsToString(e)) : "" }, updateEndpoint: function(e) { var t = new a.Endpoint(e); this.endpoint = t, this.path = t.path || "/", this.headers.Host && (this.headers.Host = t.host) } }), a.HttpResponse = n({ constructor: function() { this.statusCode = void 0, this.headers = {}, this.body = void 0, this.streaming = !1, this.stream = null }, createUnbufferedStream: function() { return this.streaming = !0, this.stream } }), a.HttpClient = n({}), a.HttpClient.getInstance = function() { return void 0 === this.singleton && (this.singleton = new this), this.singleton } }, 76311: (e, t, r) => { var a = r(8468), n = r(47465).EventEmitter; r(78168), a.XHRClient = a.util.inherit({ handleRequest: function(e, t, r, i) { var o = this, s = e.endpoint, u = new n, p = s.protocol + "//" + s.hostname; 80 !== s.port && 443 !== s.port && (p += ":" + s.port), p += e.path; var c = new XMLHttpRequest, m = !1; e.stream = c, c.addEventListener("readystatechange", (function() { try { if (0 === c.status) return } catch (e) { return } this.readyState >= this.HEADERS_RECEIVED && !m && (u.statusCode = c.status, u.headers = o.parseHeaders(c.getAllResponseHeaders()), u.emit("headers", u.statusCode, u.headers, c.statusText), m = !0), this.readyState === this.DONE && o.finishRequest(c, u) }), !1), c.upload.addEventListener("progress", (function(e) { u.emit("sendProgress", e) })), c.addEventListener("progress", (function(e) { u.emit("receiveProgress", e) }), !1), c.addEventListener("timeout", (function() { i(a.util.error(new Error("Timeout"), { code: "TimeoutError" })) }), !1), c.addEventListener("error", (function() { i(a.util.error(new Error("Network Failure"), { code: "NetworkingError" })) }), !1), c.addEventListener("abort", (function() { i(a.util.error(new Error("Request aborted"), { code: "RequestAbortedError" })) }), !1), r(u), c.open(e.method, p, !1 !== t.xhrAsync), a.util.each(e.headers, (function(e, t) { "Content-Length" !== e && "User-Agent" !== e && "Host" !== e && c.setRequestHeader(e, t) })), t.timeout && !1 !== t.xhrAsync && (c.timeout = t.timeout), t.xhrWithCredentials && (c.withCredentials = !0); try { c.responseType = "arraybuffer" } catch (l) {} try { e.body ? c.send(e.body) : c.send() } catch (d) { if (!e.body || "object" !== typeof e.body.buffer) throw d; c.send(e.body.buffer) } return u }, parseHeaders: function(e) { var t = {}; return a.util.arrayEach(e.split(/\r?\n/), (function(e) { var r = e.split(":", 1)[0], a = e.substring(r.length + 2); r.length > 0 && (t[r.toLowerCase()] = a) })), t }, finishRequest: function(e, t) { var r; if ("arraybuffer" === e.responseType && e.response) { var n = e.response; r = new a.util.Buffer(n.byteLength); for (var i = new Uint8Array(n), o = 0; o < r.length; ++o) r[o] = i[o] } try { r || "string" !== typeof e.responseText || (r = new a.util.Buffer(e.responseText)) } catch (s) {} r && t.emit("data", r), t.emit("end") } }), a.HttpClient.prototype = a.XHRClient.prototype, a.HttpClient.streamsApiVersion = 1 }, 48212: (e, t, r) => { var a = r(23657); function n() {} function i(e, t) { if (t && void 0 !== e && null !== e) switch (t.type) { case "structure": return function(e, t) { if (t.isDocument) return e; var r = {}; return a.each(e, (function(e, a) { var n = t.members[e]; if (n) { if ("body" !== n.location) return; var o = n.isLocationName ? n.name : e, s = i(a, n); void 0 !== s && (r[o] = s) } })), r }(e, t); case "map": return function(e, t) { var r = {}; return a.each(e, (function(e, a) { var n = i(a, t.value); void 0 !== n && (r[e] = n) })), r }(e, t); case "list": return function(e, t) { var r = []; return a.arrayEach(e, (function(e) { var a = i(e, t.member); void 0 !== a && r.push(a) })), r }(e, t); default: return function(e, t) { return t.toWireFormat(e) }(e, t) } } n.prototype.build = function(e, t) { return JSON.stringify(i(e, t)) }, e.exports = n }, 26815: (e, t, r) => { var a = r(23657); function n() {} function i(e, t) { if (t && void 0 !== e) switch (t.type) { case "structure": return function(e, t) { if (null == e) return; if (t.isDocument) return e; var r = {}, n = t.members, o = t.api && t.api.awsQueryCompatible; return a.each(n, (function(t, a) { var n = a.isLocationName ? a.name : t; if (Object.prototype.hasOwnProperty.call(e, n)) { var s = i(e[n], a); void 0 !== s && (r[t] = s) } else o && a.defaultValue && "list" === a.type && (r[t] = "function" === typeof a.defaultValue ? a.defaultValue() : a.defaultValue) })), r }(e, t); case "map": return function(e, t) { if (null == e) return; var r = {}; return a.each(e, (function(e, a) { var n = i(a, t.value); r[e] = void 0 === n ? null : n })), r }(e, t); case "list": return function(e, t) { if (null == e) return; var r = []; return a.arrayEach(e, (function(e) { var a = i(e, t.member); void 0 === a ? r.push(null) : r.push(a) })), r }(e, t); default: return function(e, t) { return t.toType(e) }(e, t) } } n.prototype.parse = function(e, t) { return i(JSON.parse(e), t) }, e.exports = n }, 45663: e => { var t = ["We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.\n", "Please migrate your code to use AWS SDK for JavaScript (v3).", "For more information, check the migration guide at https://a.co/7PzMCcy"].join("\n"); e.exports = { suppress: !1 }, setTimeout((function() { e.exports.suppress || "undefined" !== typeof process && ("undefined" !== typeof { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_EXECUTION_ENV && 0 === { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_EXECUTION_ENV.indexOf("AWS_Lambda_") || "undefined" === typeof { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE && "function" === typeof process.emitWarning && process.emitWarning(t, { type: "NOTE" })) }), 0) }, 65565: (e, t, r) => { var a = r(1242), n = r(91970), i = r(3825), o = r(8594), s = r(15545), u = r(17752), p = r(23657), c = p.property, m = p.memoizedProperty; e.exports = function(e, t) { var r = this; e = e || {}, (t = t || {}).api = this, e.metadata = e.metadata || {}; var l = t.serviceIdentifier; delete t.serviceIdentifier, c(this, "isApi", !0, !1), c(this, "apiVersion", e.metadata.apiVersion), c(this, "endpointPrefix", e.metadata.endpointPrefix), c(this, "signingName", e.metadata.signingName), c(this, "globalEndpoint", e.metadata.globalEndpoint), c(this, "signatureVersion", e.metadata.signatureVersion), c(this, "jsonVersion", e.metadata.jsonVersion), c(this, "targetPrefix", e.metadata.targetPrefix), c(this, "protocol", e.metadata.protocol), c(this, "timestampFormat", e.metadata.timestampFormat), c(this, "xmlNamespaceUri", e.metadata.xmlNamespace), c(this, "abbreviation", e.metadata.serviceAbbreviation), c(this, "fullName", e.metadata.serviceFullName), c(this, "serviceId", e.metadata.serviceId), l && u[l] && c(this, "xmlNoDefaultLists", u[l].xmlNoDefaultLists, !1), m(this, "className", (function() { var t = e.metadata.serviceAbbreviation || e.metadata.serviceFullName; return t ? ("ElasticLoadBalancing" === (t = t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, "")) && (t = "ELB"), t) : null })), c(this, "operations", new a(e.operations, t, (function(e, r) { return new n(e, r, t) }), p.string.lowerFirst, (function(e, t) { !0 === t.endpointoperation && c(r, "endpointOperation", p.string.lowerFirst(e)), t.endpointdiscovery && !r.hasRequiredEndpointDiscovery && c(r, "hasRequiredEndpointDiscovery", !0 === t.endpointdiscovery.required) }))), c(this, "shapes", new a(e.shapes, t, (function(e, r) { return i.create(r, t) }))), c(this, "paginators", new a(e.paginators, t, (function(e, r) { return new o(e, r, t) }))), c(this, "waiters", new a(e.waiters, t, (function(e, r) { return new s(e, r, t) }), p.string.lowerFirst)), t.documentation && (c(this, "documentation", e.documentation), c(this, "documentationUrl", e.documentationUrl)), c(this, "awsQueryCompatible", e.metadata.awsQueryCompatible) } }, 1242: (e, t, r) => { var a = r(23657).memoizedProperty; function n(e, t, r, n) { a(this, n(e), (function() { return r(e, t) })) } e.exports = function(e, t, r, a, i) { for (var o in a = a || String, e) Object.prototype.hasOwnProperty.call(e, o) && (n.call(this, o, e[o], r, a), i && i(o, e[o])) } }, 91970: (e, t, r) => { var a = r(3825), n = r(23657), i = n.property, o = n.memoizedProperty; e.exports = function(e, t, r) { var n = this; r = r || {}, i(this, "name", t.name || e), i(this, "api", r.api, !1), t.http = t.http || {}, i(this, "endpoint", t.endpoint), i(this, "httpMethod", t.http.method || "POST"), i(this, "httpPath", t.http.requestUri || "/"), i(this, "authtype", t.authtype || ""), i(this, "endpointDiscoveryRequired", t.endpointdiscovery ? t.endpointdiscovery.required ? "REQUIRED" : "OPTIONAL" : "NULL"); var s = t.httpChecksumRequired || t.httpChecksum && t.httpChecksum.requestChecksumRequired; i(this, "httpChecksumRequired", s, !1), o(this, "input", (function() { return t.input ? a.create(t.input, r) : new a.create({ type: "structure" }, r) })), o(this, "output", (function() { return t.output ? a.create(t.output, r) : new a.create({ type: "structure" }, r) })), o(this, "errors", (function() { var e = []; if (!t.errors) return null; for (var n = 0; n < t.errors.length; n++) e.push(a.create(t.errors[n], r)); return e })), o(this, "paginator", (function() { return r.api.paginators[e] })), r.documentation && (i(this, "documentation", t.documentation), i(this, "documentationUrl", t.documentationUrl)), o(this, "idempotentMembers", (function() { var e = [], t = n.input, r = t.members; if (!t.members) return e; for (var a in r) r.hasOwnProperty(a) && !0 === r[a].isIdempotent && e.push(a); return e })), o(this, "hasEventOutput", (function() { return function(e) { var t = e.members, r = e.payload; if (!e.members) return !1; if (r) { return t[r].isEventStream } for (var a in t) if (!t.hasOwnProperty(a) && !0 === t[a].isEventStream) return !0; return !1 }(n.output) })) } }, 8594: (e, t, r) => { var a = r(23657).property; e.exports = function(e, t) { a(this, "inputToken", t.input_token), a(this, "limitKey", t.limit_key), a(this, "moreResults", t.more_results), a(this, "outputToken", t.output_token), a(this, "resultKey", t.result_key) } }, 15545: (e, t, r) => { var a = r(23657), n = a.property; e.exports = function(e, t, r) { r = r || {}, n(this, "name", e), n(this, "api", r.api, !1), t.operation && n(this, "operation", a.string.lowerFirst(t.operation)); var i = this; ["type", "description", "delay", "maxAttempts", "acceptors"].forEach((function(e) { var r = t[e]; r && n(i, e, r) })) } }, 3825: (e, t, r) => { var a = r(1242), n = r(23657); function i(e, t, r) { null !== r && void 0 !== r && n.property.apply(this, arguments) } function o(e, t) { e.constructor.prototype[t] || n.memoizedProperty.apply(this, arguments) } function s(e, t, r) { t = t || {}, i(this, "shape", e.shape), i(this, "api", t.api, !1), i(this, "type", e.type), i(this, "enum", e.enum), i(this, "min", e.min), i(this, "max", e.max), i(this, "pattern", e.pattern), i(this, "location", e.location || this.location || "body"), i(this, "name", this.name || e.xmlName || e.queryName || e.locationName || r), i(this, "isStreaming", e.streaming || this.isStreaming || !1), i(this, "requiresLength", e.requiresLength, !1), i(this, "isComposite", e.isComposite || !1), i(this, "isShape", !0, !1), i(this, "isQueryName", Boolean(e.queryName), !1), i(this, "isLocationName", Boolean(e.locationName), !1), i(this, "isIdempotent", !0 === e.idempotencyToken), i(this, "isJsonValue", !0 === e.jsonvalue), i(this, "isSensitive", !0 === e.sensitive || e.prototype && !0 === e.prototype.sensitive), i(this, "isEventStream", Boolean(e.eventstream), !1), i(this, "isEvent", Boolean(e.event), !1), i(this, "isEventPayload", Boolean(e.eventpayload), !1), i(this, "isEventHeader", Boolean(e.eventheader), !1), i(this, "isTimestampFormatSet", Boolean(e.timestampFormat) || e.prototype && !0 === e.prototype.isTimestampFormatSet, !1), i(this, "endpointDiscoveryId", Boolean(e.endpointdiscoveryid), !1), i(this, "hostLabel", Boolean(e.hostLabel), !1), t.documentation && (i(this, "documentation", e.documentation), i(this, "documentationUrl", e.documentationUrl)), e.xmlAttribute && i(this, "isXmlAttribute", e.xmlAttribute || !1), i(this, "defaultValue", null), this.toWireFormat = function(e) { return null === e || void 0 === e ? "" : e }, this.toType = function(e) { return e } } function u(e) { s.apply(this, arguments), i(this, "isComposite", !0), e.flattened && i(this, "flattened", e.flattened || !1) } function p(e, t) { var r = this, n = null, p = !this.isShape; u.apply(this, arguments), p && (i(this, "defaultValue", (function() { return {} })), i(this, "members", {}), i(this, "memberNames", []), i(this, "required", []), i(this, "isRequired", (function() { return !1 })), i(this, "isDocument", Boolean(e.document))), e.members && (i(this, "members", new a(e.members, t, (function(e, r) { return s.create(r, t, e) }))), o(this, "memberNames", (function() { return e.xmlOrder || Object.keys(e.members) })), e.event && (o(this, "eventPayloadMemberName", (function() { for (var e = r.members, t = r.memberNames, a = 0, n = t.length; a < n; a++) if (e[t[a]].isEventPayload) return t[a] })), o(this, "eventHeaderMemberNames", (function() { for (var e = r.members, t = r.memberNames, a = [], n = 0, i = t.length; n < i; n++) e[t[n]].isEventHeader && a.push(t[n]); return a })))), e.required && (i(this, "required", e.required), i(this, "isRequired", (function(t) { if (!n) { n = {}; for (var r = 0; r < e.required.length; r++) n[e.required[r]] = !0 } return n[t] }), !1, !0)), i(this, "resultWrapper", e.resultWrapper || null), e.payload && i(this, "payload", e.payload), "string" === typeof e.xmlNamespace ? i(this, "xmlNamespaceUri", e.xmlNamespace) : "object" === typeof e.xmlNamespace && (i(this, "xmlNamespacePrefix", e.xmlNamespace.prefix), i(this, "xmlNamespaceUri", e.xmlNamespace.uri)) } function c(e, t) { var r = this, a = !this.isShape; if (u.apply(this, arguments), a && i(this, "defaultValue", (function() { return [] })), e.member && o(this, "member", (function() { return s.create(e.member, t) })), this.flattened) { var n = this.name; o(this, "name", (function() { return r.member.name || n })) } } function m(e, t) { var r = !this.isShape; u.apply(this, arguments), r && (i(this, "defaultValue", (function() { return {} })), i(this, "key", s.create({ type: "string" }, t)), i(this, "value", s.create({ type: "string" }, t))), e.key && o(this, "key", (function() { return s.create(e.key, t) })), e.value && o(this, "value", (function() { return s.create(e.value, t) })) } function l() { s.apply(this, arguments); var e = ["rest-xml", "query", "ec2"]; this.toType = function(t) { return t = this.api && e.indexOf(this.api.protocol) > -1 ? t || "" : t, this.isJsonValue ? JSON.parse(t) : t && "function" === typeof t.toString ? t.toString() : t }, this.toWireFormat = function(e) { return this.isJsonValue ? JSON.stringify(e) : e } } function d() { s.apply(this, arguments), this.toType = function(e) { var t = n.base64.decode(e); if (this.isSensitive && n.isNode() && "function" === typeof n.Buffer.alloc) { var r = n.Buffer.alloc(t.length, t); t.fill(0), t = r } return t }, this.toWireFormat = n.base64.encode } function y() { d.apply(this, arguments) } function b() { s.apply(this, arguments), this.toType = function(e) { return "boolean" === typeof e ? e : null === e || void 0 === e ? null : "true" === e } } s.normalizedTypes = { character: "string", double: "float", long: "integer", short: "integer", biginteger: "integer", bigdecimal: "float", blob: "binary" }, s.types = { structure: p, list: c, map: m, boolean: b, timestamp: function(e) { var t = this; if (s.apply(this, arguments), e.timestampFormat) i(this, "timestampFormat", e.timestampFormat); else if (t.isTimestampFormatSet && this.timestampFormat) i(this, "timestampFormat", this.timestampFormat); else if ("header" === this.location) i(this, "timestampFormat", "rfc822"); else if ("querystring" === this.location) i(this, "timestampFormat", "iso8601"); else if (this.api) switch (this.api.protocol) { case "json": case "rest-json": i(this, "timestampFormat", "unixTimestamp"); break; case "rest-xml": case "query": case "ec2": i(this, "timestampFormat", "iso8601") } this.toType = function(e) { return null === e || void 0 === e ? null : "function" === typeof e.toUTCString ? e : "string" === typeof e || "number" === typeof e ? n.date.parseTimestamp(e) : null }, this.toWireFormat = function(e) { return n.date.format(e, t.timestampFormat) } }, float: function() { s.apply(this, arguments), this.toType = function(e) { return null === e || void 0 === e ? null : parseFloat(e) }, this.toWireFormat = this.toType }, integer: function() { s.apply(this, arguments), this.toType = function(e) { return null === e || void 0 === e ? null : parseInt(e, 10) }, this.toWireFormat = this.toType }, string: l, base64: y, binary: d }, s.resolve = function(e, t) { if (e.shape) { var r = t.api.shapes[e.shape]; if (!r) throw new Error("Cannot find shape reference: " + e.shape); return r } return null }, s.create = function(e, t, r) { if (e.isShape) return e; var a = s.resolve(e, t); if (a) { var n = Object.keys(e); t.documentation || (n = n.filter((function(e) { return !e.match(/documentation/) }))); var i = function() { a.constructor.call(this, e, t, r) }; return i.prototype = a, new i } e.type || (e.members ? e.type = "structure" : e.member ? e.type = "list" : e.key ? e.type = "map" : e.type = "string"); var o = e.type; if (s.normalizedTypes[e.type] && (e.type = s.normalizedTypes[e.type]), s.types[e.type]) return new s.types[e.type](e, t, r); throw new Error("Unrecognized shape type: " + o) }, s.shapes = { StructureShape: p, ListShape: c, MapShape: m, StringShape: l, BooleanShape: b, Base64Shape: y }, e.exports = s }, 70778: (e, t, r) => { var a = r(8468); a.ParamValidator = a.util.inherit({ constructor: function(e) { !0 !== e && void 0 !== e || (e = { min: !0 }), this.validation = e }, validate: function(e, t, r) { if (this.errors = [], this.validateMember(e, t || {}, r || "params"), this.errors.length > 1) { var n = this.errors.join("\n* "); throw n = "There were " + this.errors.length + " validation errors:\n* " + n, a.util.error(new Error(n), { code: "MultipleValidationErrors", errors: this.errors }) } if (1 === this.errors.length) throw this.errors[0]; return !0 }, fail: function(e, t) { this.errors.push(a.util.error(new Error(t), { code: e })) }, validateStructure: function(e, t, r) { if (e.isDocument) return !0; var a; this.validateType(t, r, ["object"], "structure"); for (var n = 0; e.required && n < e.required.length; n++) { var i = t[a = e.required[n]]; void 0 !== i && null !== i || this.fail("MissingRequiredParameter", "Missing required key '" + a + "' in " + r) } for (a in t) if (Object.prototype.hasOwnProperty.call(t, a)) { var o = t[a], s = e.members[a]; if (void 0 !== s) { var u = [r, a].join("."); this.validateMember(s, o, u) } else void 0 !== o && null !== o && this.fail("UnexpectedParameter", "Unexpected key '" + a + "' found in " + r) } return !0 }, validateMember: function(e, t, r) { switch (e.type) { case "structure": return this.validateStructure(e, t, r); case "list": return this.validateList(e, t, r); case "map": return this.validateMap(e, t, r); default: return this.validateScalar(e, t, r) } }, validateList: function(e, t, r) { if (this.validateType(t, r, [Array])) { this.validateRange(e, t.length, r, "list member count"); for (var a = 0; a < t.length; a++) this.validateMember(e.member, t[a], r + "[" + a + "]") } }, validateMap: function(e, t, r) { if (this.validateType(t, r, ["object"], "map")) { var a = 0; for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (this.validateMember(e.key, n, r + "[key='" + n + "']"), this.validateMember(e.value, t[n], r + "['" + n + "']"), a++); this.validateRange(e, a, r, "map member count") } }, validateScalar: function(e, t, r) { switch (e.type) { case null: case void 0: case "string": return this.validateString(e, t, r); case "base64": case "binary": return this.validatePayload(t, r); case "integer": case "float": return this.validateNumber(e, t, r); case "boolean": return this.validateType(t, r, ["boolean"]); case "timestamp": return this.validateType(t, r, [Date, /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, "number"], "Date object, ISO-8601 string, or a UNIX timestamp"); default: return this.fail("UnkownType", "Unhandled type " + e.type + " for " + r) } }, validateString: function(e, t, r) { var a = ["string"]; e.isJsonValue && (a = a.concat(["number", "object", "boolean"])), null !== t && this.validateType(t, r, a) && (this.validateEnum(e, t, r), this.validateRange(e, t.length, r, "string length"), this.validatePattern(e, t, r), this.validateUri(e, t, r)) }, validateUri: function(e, t, r) { "uri" === e.location && 0 === t.length && this.fail("UriParameterError", 'Expected uri parameter to have length >= 1, but found "' + t + '" for ' + r) }, validatePattern: function(e, t, r) { this.validation.pattern && void 0 !== e.pattern && (new RegExp(e.pattern).test(t) || this.fail("PatternMatchError", 'Provided value "' + t + '" does not match regex pattern /' + e.pattern + "/ for " + r)) }, validateRange: function(e, t, r, a) { this.validation.min && void 0 !== e.min && t < e.min && this.fail("MinRangeError", "Expected " + a + " >= " + e.min + ", but found " + t + " for " + r), this.validation.max && void 0 !== e.max && t > e.max && this.fail("MaxRangeError", "Expected " + a + " <= " + e.max + ", but found " + t + " for " + r) }, validateEnum: function(e, t, r) { this.validation.enum && void 0 !== e.enum && -1 === e.enum.indexOf(t) && this.fail("EnumError", "Found string value of " + t + ", but expected " + e.enum.join("|") + " for " + r) }, validateType: function(e, t, r, n) { if (null === e || void 0 === e) return !1; for (var i = !1, o = 0; o < r.length; o++) { if ("string" === typeof r[o]) { if (typeof e === r[o]) return !0 } else if (r[o] instanceof RegExp) { if ((e || "").toString().match(r[o])) return !0 } else { if (e instanceof r[o]) return !0; if (a.util.isType(e, r[o])) return !0; n || i || (r = r.slice()), r[o] = a.util.typeName(r[o]) } i = !0 } var s = n; s || (s = r.join(", ").replace(/,([^,]+)$/, ", or$1")); var u = s.match(/^[aeiou]/i) ? "n" : ""; return this.fail("InvalidParameterType", "Expected " + t + " to be a" + u + " " + s), !1 }, validateNumber: function(e, t, r) { if (null !== t && void 0 !== t) { if ("string" === typeof t) { var a = parseFloat(t); a.toString() === t && (t = a) } this.validateType(t, r, ["number"]) && this.validateRange(e, t, r, "numeric value") } }, validatePayload: function(e, t) { if (null !== e && void 0 !== e && "string" !== typeof e && (!e || "number" !== typeof e.byteLength)) { if (a.util.isNode()) { var r = a.util.stream.Stream; if (a.util.Buffer.isBuffer(e) || e instanceof r) return } else if (void 0 !== typeof Blob && e instanceof Blob) return; var n = ["Buffer", "Stream", "File", "Blob", "ArrayBuffer", "DataView"]; if (e) for (var i = 0; i < n.length; i++) { if (a.util.isType(e, n[i])) return; if (a.util.typeName(e.constructor) === n[i]) return } this.fail("InvalidParameterType", "Expected " + t + " to be a string, Buffer, Stream, Blob, or typed array object") } } }) }, 84796: (e, t, r) => { var a = r(8468), n = a.Protocol.Rest; a.Polly.Presigner = a.util.inherit({ constructor: function(e) { e = e || {}, this.options = e, this.service = e.service, this.bindServiceObject(e), this._operations = {} }, bindServiceObject: function(e) { if (e = e || {}, this.service) { var t = a.util.copy(this.service.config); this.service = new this.service.constructor.__super__(t), this.service.config.params = a.util.merge(this.service.config.params || {}, e.params) } else this.service = new a.Polly(e) }, modifyInputMembers: function(e) { var t = a.util.copy(e); return t.members = a.util.copy(e.members), a.util.each(e.members, (function(e, r) { t.members[e] = a.util.copy(r), r.location && "body" !== r.location || (t.members[e].location = "querystring", t.members[e].locationName = e) })), t }, convertPostToGet: function(e) { e.httpRequest.method = "GET"; var t = e.service.api.operations[e.operation], r = this._operations[e.operation]; r || (this._operations[e.operation] = r = this.modifyInputMembers(t.input)); var a = n.generateURI(e.httpRequest.endpoint.path, t.httpPath, r, e.params); e.httpRequest.path = a, e.httpRequest.body = "", delete e.httpRequest.headers["Content-Length"], delete e.httpRequest.headers["Content-Type"] }, getSynthesizeSpeechUrl: function(e, t, r) { var a = this, n = this.service.makeRequest("synthesizeSpeech", e); return n.removeAllListeners("build"), n.on("build", (function(e) { a.convertPostToGet(e) })), n.presign(t, r) } }) }, 85363: (e, t, r) => { var a = r(23657), n = r(8468); e.exports = { populateHostPrefix: function(e) { if (!e.service.config.hostPrefixEnabled) return e; var t = e.service.api.operations[e.operation]; if (function(e) { var t = e.service.api, r = t.operations[e.operation], n = t.endpointOperation && t.endpointOperation === a.string.lowerFirst(r.name); return "NULL" !== r.endpointDiscoveryRequired || !0 === n }(e)) return e; if (t.endpoint && t.endpoint.hostPrefix) { var r = function(e, t, r) { return a.each(r.members, (function(r, n) { if (!0 === n.hostLabel) { if ("string" !== typeof t[r] || "" === t[r]) throw a.error(new Error, { message: "Parameter " + r + " should be a non-empty string.", code: "InvalidParameter" }); var i = new RegExp("\\{" + r + "\\}", "g"); e = e.replace(i, t[r]) } })), e }(t.endpoint.hostPrefix, e.params, t.input); ! function(e, t) { e.host && (e.host = t + e.host); e.hostname && (e.hostname = t + e.hostname) }(e.httpRequest.endpoint, r), function(e) { var t = e.split("."), r = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; a.arrayEach(t, (function(e) { if (!e.length || e.length < 1 || e.length > 63) throw a.error(new Error, { code: "ValidationError", message: "Hostname label length should be between 1 to 63 characters, inclusive." }); if (!r.test(e)) throw n.util.error(new Error, { code: "ValidationError", message: e + " is not hostname compatible." }) })) }(e.httpRequest.endpoint.hostname) } return e } } }, 89864: (e, t, r) => { var a = r(23657), n = r(48212), i = r(26815), o = r(85363).populateHostPrefix; e.exports = { buildRequest: function(e) { var t = e.httpRequest, r = e.service.api, a = r.targetPrefix + "." + r.operations[e.operation].name, i = r.jsonVersion || "1.0", s = r.operations[e.operation].input, u = new n; 1 === i && (i = "1.0"), r.awsQueryCompatible && (t.params || (t.params = {}), Object.assign(t.params, e.params)), t.body = u.build(e.params || {}, s), t.headers["Content-Type"] = "application/x-amz-json-" + i, t.headers["X-Amz-Target"] = a, o(e) }, extractError: function(e) { var t = {}, r = e.httpResponse; if (t.code = r.headers["x-amzn-errortype"] || "UnknownError", "string" === typeof t.code && (t.code = t.code.split(":")[0]), r.body.length > 0) try { var n = JSON.parse(r.body.toString()), i = n.__type || n.code || n.Code; for (var o in i && (t.code = i.split("#").pop()), "RequestEntityTooLarge" === t.code ? t.message = "Request body must be less than 1 MB" : t.message = n.message || n.Message || null, n || {}) "code" !== o && "message" !== o && (t["[" + o + "]"] = "See error." + o + " for details.", Object.defineProperty(t, o, { value: n[o], enumerable: !1, writable: !0 })) } catch (n) { t.statusCode = r.statusCode, t.message = r.statusMessage } else t.statusCode = r.statusCode, t.message = r.statusCode.toString(); e.error = a.error(new Error, t) }, extractData: function(e) { var t = e.httpResponse.body.toString() || "{}"; if (!1 === e.request.service.config.convertResponseTypes) e.data = JSON.parse(t); else { var r = e.request.service.api.operations[e.request.operation].output || {}, a = new i; e.data = a.parse(t, r) } } } }, 66588: (e, t, r) => { var a = r(8468), n = r(23657), i = r(31625), o = r(3825), s = r(85363).populateHostPrefix; e.exports = { buildRequest: function(e) { var t = e.service.api.operations[e.operation], r = e.httpRequest; r.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=utf-8", r.params = { Version: e.service.api.apiVersion, Action: t.name }, (new i).serialize(e.params, t.input, (function(e, t) { r.params[e] = t })), r.body = n.queryParamsToString(r.params), s(e) }, extractError: function(e) { var t, r = e.httpResponse.body.toString(); if (r.match(" { var a = r(23657), n = r(85363).populateHostPrefix; function i(e, t, r, n) { var i = [e, t].join("/"); i = i.replace(/\/+/g, "/"); var o = {}, s = !1; if (a.each(r.members, (function(e, t) { var r = n[e]; if (null !== r && void 0 !== r) if ("uri" === t.location) { var u = new RegExp("\\{" + t.name + "(\\+)?\\}"); i = i.replace(u, (function(e, t) { return (t ? a.uriEscapePath : a.uriEscape)(String(r)) })) } else "querystring" === t.location && (s = !0, "list" === t.type ? o[t.name] = r.map((function(e) { return a.uriEscape(t.member.toWireFormat(e).toString()) })) : "map" === t.type ? a.each(r, (function(e, t) { Array.isArray(t) ? o[e] = t.map((function(e) { return a.uriEscape(String(e)) })) : o[e] = a.uriEscape(String(t)) })) : o[t.name] = a.uriEscape(t.toWireFormat(r).toString())) })), s) { i += i.indexOf("?") >= 0 ? "&" : "?"; var u = []; a.arrayEach(Object.keys(o).sort(), (function(e) { Array.isArray(o[e]) || (o[e] = [o[e]]); for (var t = 0; t < o[e].length; t++) u.push(a.uriEscape(String(e)) + "=" + o[e][t]) })), i += u.join("&") } return i } e.exports = { buildRequest: function(e) { ! function(e) { e.httpRequest.method = e.service.api.operations[e.operation].httpMethod }(e), function(e) { var t = e.service.api.operations[e.operation], r = t.input, a = i(e.httpRequest.endpoint.path, t.httpPath, r, e.params); e.httpRequest.path = a }(e), function(e) { var t = e.service.api.operations[e.operation]; a.each(t.input.members, (function(t, r) { var n = e.params[t]; null !== n && void 0 !== n && ("headers" === r.location && "map" === r.type ? a.each(n, (function(t, a) { e.httpRequest.headers[r.name + t] = a })) : "header" === r.location && (n = r.toWireFormat(n).toString(), r.isJsonValue && (n = a.base64.encode(n)), e.httpRequest.headers[r.name] = n)) })) }(e), n(e) }, extractError: function() {}, extractData: function(e) { var t = e.request, r = {}, n = e.httpResponse, i = t.service.api.operations[t.operation].output, o = {}; a.each(n.headers, (function(e, t) { o[e.toLowerCase()] = t })), a.each(i.members, (function(e, t) { var i = (t.name || e).toLowerCase(); if ("headers" === t.location && "map" === t.type) { r[e] = {}; var s = t.isLocationName ? t.name : "", u = new RegExp("^" + s + "(.+)", "i"); a.each(n.headers, (function(t, a) { var n = t.match(u); null !== n && (r[e][n[1]] = a) })) } else if ("header" === t.location) { if (void 0 !== o[i]) { var p = t.isJsonValue ? a.base64.decode(o[i]) : o[i]; r[e] = t.toType(p) } } else "statusCode" === t.location && (r[e] = parseInt(n.statusCode, 10)) })), e.data = r }, generateURI: i } }, 12085: (e, t, r) => { var a = r(23657), n = r(19701), i = r(89864), o = r(48212), s = r(26815), u = ["GET", "HEAD", "DELETE"]; function p(e, t) { if (!e.httpRequest.headers["Content-Type"]) { var r = t ? "binary/octet-stream" : "application/json"; e.httpRequest.headers["Content-Type"] = r } } e.exports = { buildRequest: function(e) { n.buildRequest(e), u.indexOf(e.httpRequest.method) < 0 && function(e) { var t = new o, r = e.service.api.operations[e.operation].input; if (r.payload) { var a, n = r.members[r.payload]; a = e.params[r.payload], "structure" === n.type ? (e.httpRequest.body = t.build(a || {}, n), p(e)) : void 0 !== a && (e.httpRequest.body = a, ("binary" === n.type || n.isStreaming) && p(e, !0)) } else e.httpRequest.body = t.build(e.params, r), p(e) }(e) }, extractError: function(e) { i.extractError(e) }, extractData: function(e) { n.extractData(e); var t = e.request, r = t.service.api.operations[t.operation], o = t.service.api.operations[t.operation].output || {}; if (r.hasEventOutput, o.payload) { var u = o.members[o.payload], p = e.httpResponse.body; if (u.isEventStream) c = new s, e.data[payload] = a.createEventStream(2 === AWS.HttpClient.streamsApiVersion ? e.httpResponse.stream : p, c, u); else if ("structure" === u.type || "list" === u.type) { var c = new s; e.data[o.payload] = c.parse(p, u) } else "binary" === u.type || u.isStreaming ? e.data[o.payload] = p : e.data[o.payload] = u.toType(p) } else { var m = e.data; i.extractData(e), e.data = a.merge(m, e.data) } }, unsetContentLength: function(e) { void 0 === a.getRequestPayloadShape(e) && u.indexOf(e.httpRequest.method) >= 0 && delete e.httpRequest.headers["Content-Length"] } } }, 61622: (e, t, r) => { var a = r(8468), n = r(23657), i = r(19701); e.exports = { buildRequest: function(e) { i.buildRequest(e), ["GET", "HEAD"].indexOf(e.httpRequest.method) < 0 && function(e) { var t = e.service.api.operations[e.operation].input, r = new a.XML.Builder, i = e.params, o = t.payload; if (o) { var s = t.members[o]; if (void 0 === (i = i[o])) return; if ("structure" === s.type) { var u = s.name; e.httpRequest.body = r.toXML(i, s, u, !0) } else e.httpRequest.body = i } else e.httpRequest.body = r.toXML(i, t, t.name || t.shape || n.string.upperFirst(e.operation) + "Request") }(e) }, extractError: function(e) { var t; i.extractError(e); try { t = (new a.XML.Parser).parse(e.httpResponse.body.toString()) } catch (r) { t = { Code: e.httpResponse.statusCode, Message: e.httpResponse.statusMessage } } t.Errors && (t = t.Errors), t.Error && (t = t.Error), t.Code ? e.error = n.error(new Error, { code: t.Code, message: t.Message }) : e.error = n.error(new Error, { code: e.httpResponse.statusCode, message: null }) }, extractData: function(e) { var t; i.extractData(e); var r = e.request, o = e.httpResponse.body, s = r.service.api.operations[r.operation], u = s.output, p = (s.hasEventOutput, u.payload); if (p) { var c = u.members[p]; c.isEventStream ? (t = new a.XML.Parser, e.data[p] = n.createEventStream(2 === a.HttpClient.streamsApiVersion ? e.httpResponse.stream : e.httpResponse.body, t, c)) : "structure" === c.type ? (t = new a.XML.Parser, e.data[p] = t.parse(o.toString(), c)) : "binary" === c.type || c.isStreaming ? e.data[p] = o : e.data[p] = c.toType(o) } else if (o.length > 0) { var m = (t = new a.XML.Parser).parse(o.toString(), u); n.update(e.data, m) } } } }, 31625: (e, t, r) => { var a = r(23657); function n() {} function i(e) { return e.isQueryName || "ec2" !== e.api.protocol ? e.name : e.name[0].toUpperCase() + e.name.substr(1) } function o(e, t, r, n) { a.each(r.members, (function(r, a) { var o = t[r]; if (null !== o && void 0 !== o) { var u = i(a); s(u = e ? e + "." + u : u, o, a, n) } })) } function s(e, t, r, n) { null !== t && void 0 !== t && ("structure" === r.type ? o(e, t, r, n) : "list" === r.type ? function(e, t, r, n) { var o = r.member || {}; 0 !== t.length ? a.arrayEach(t, (function(t, a) { var u = "." + (a + 1); if ("ec2" === r.api.protocol) u += ""; else if (r.flattened) { if (o.name) { var p = e.split("."); p.pop(), p.push(i(o)), e = p.join(".") } } else u = "." + (o.name ? o.name : "member") + u; s(e + u, t, o, n) })) : n.call(this, e, null) }(e, t, r, n) : "map" === r.type ? function(e, t, r, n) { var i = 1; a.each(t, (function(t, a) { var o = (r.flattened ? "." : ".entry.") + i++ + ".", u = o + (r.key.name || "key"), p = o + (r.value.name || "value"); s(e + u, t, r.key, n), s(e + p, a, r.value, n) })) }(e, t, r, n) : n(e, r.toWireFormat(t).toString())) } n.prototype.serialize = function(e, t, r) { o("", e, t, r) }, e.exports = n }, 42418: (e, t, r) => { var a = r(8468), n = null, i = { signatureVersion: "v4", signingName: "rds-db", operations: {} }, o = { region: "string", hostname: "string", port: "number", username: "string" }; a.RDS.Signer = a.util.inherit({ constructor: function(e) { this.options = e || {} }, convertUrlToAuthToken: function(e) { var t = "https://"; if (0 === e.indexOf(t)) return e.substring(8) }, getAuthToken: function(e, t) { "function" === typeof e && void 0 === t && (t = e, e = {}); var r = this, o = "function" === typeof t; e = a.util.merge(this.options, e); var s = this.validateAuthTokenOptions(e); if (!0 !== s) { if (o) return t(s, null); throw s } var u = { region: e.region, endpoint: new a.Endpoint(e.hostname + ":" + e.port), paramValidation: !1, signatureVersion: "v4" }; e.credentials && (u.credentials = e.credentials), (n = new a.Service(u)).api = i; var p = n.makeRequest(); if (this.modifyRequestForAuthToken(p, e), !o) { var c = p.presign(900); return this.convertUrlToAuthToken(c) } p.presign(900, (function(e, a) { a && (a = r.convertUrlToAuthToken(a)), t(e, a) })) }, modifyRequestForAuthToken: function(e, t) { e.on("build", e.buildAsGet), e.httpRequest.body = a.util.queryParamsToString({ Action: "connect", DBUser: t.username }) }, validateAuthTokenOptions: function(e) { var t = ""; for (var r in e = e || {}, o) Object.prototype.hasOwnProperty.call(o, r) && typeof e[r] !== o[r] && (t += "option '" + r + "' should have been type '" + o[r] + "', was '" + typeof e[r] + "'.\n"); return !t.length || a.util.error(new Error, { code: "InvalidParameter", message: t }) } }) }, 35067: e => { e.exports = { now: function() { return "undefined" !== typeof performance && "function" === typeof performance.now ? performance.now() : Date.now() } } }, 88918: e => { e.exports = { isFipsRegion: function(e) { return "string" === typeof e && (e.startsWith("fips-") || e.endsWith("-fips")) }, isGlobalRegion: function(e) { return "string" === typeof e && ["aws-global", "aws-us-gov-global"].includes(e) }, getRealRegion: function(e) { return ["fips-aws-global", "aws-fips", "aws-global"].includes(e) ? "us-east-1" : ["fips-aws-us-gov-global", "aws-us-gov-global"].includes(e) ? "us-gov-west-1" : e.replace(/fips-(dkr-|prod-)?|-fips/, "") } } }, 37139: (e, t, r) => { var a = r(23657), n = r(80738); function i(e, t) { a.each(t, (function(t, r) { "globalEndpoint" !== t && (void 0 !== e.config[t] && null !== e.config[t] || (e.config[t] = r)) })) } e.exports = { configureEndpoint: function(e) { for (var t = function(e) { var t = e.config.region, r = function(e) { if (!e) return null; var t = e.split("-"); return t.length < 3 ? null : t.slice(0, t.length - 2).join("-") + "-*" }(t), a = e.api.endpointPrefix; return [ [t, a], [r, a], [t, "*"], [r, "*"], ["*", a], [t, "internal-*"], ["*", "*"] ].map((function(e) { return e[0] && e[1] ? e.join("/") : null })) }(e), r = e.config.useFipsEndpoint, a = e.config.useDualstackEndpoint, o = 0; o < t.length; o++) { var s = t[o]; if (s) { var u = r ? a ? n.dualstackFipsRules : n.fipsRules : a ? n.dualstackRules : n.rules; if (Object.prototype.hasOwnProperty.call(u, s)) { var p = u[s]; "string" === typeof p && (p = n.patterns[p]), e.isGlobalEndpoint = !!p.globalEndpoint, p.signingRegion && (e.signingRegion = p.signingRegion), p.signatureVersion || (p.signatureVersion = "v4"); var c = "bearer" === (e.api && e.api.signatureVersion); return void i(e, Object.assign({}, p, { signatureVersion: c ? "bearer" : p.signatureVersion })) } } } }, getEndpointSuffix: function(e) { for (var t = { "^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$": "amazonaws.com", "^cn\\-\\w+\\-\\d+$": "amazonaws.com.cn", "^us\\-gov\\-\\w+\\-\\d+$": "amazonaws.com", "^us\\-iso\\-\\w+\\-\\d+$": "c2s.ic.gov", "^us\\-isob\\-\\w+\\-\\d+$": "sc2s.sgov.gov" }, r = Object.keys(t), a = 0; a < r.length; a++) { var n = RegExp(r[a]), i = t[r[a]]; if (n.test(e)) return i } return "amazonaws.com" } } }, 33845: (e, t, r) => { var a = r(8468), n = r(41496), i = a.util.inherit, o = a.util.domain, s = r(24247), u = { success: 1, error: 1, complete: 1 }; var p = new n; p.setupStates = function() { var e = function(e, t) { var r = this; r._haltHandlersOnError = !1, r.emit(r._asm.currentState, (function(e) { if (e) if (a = r, Object.prototype.hasOwnProperty.call(u, a._asm.currentState)) { if (!(o && r.domain instanceof o.Domain)) throw e; e.domainEmitter = r, e.domain = r.domain, e.domainThrown = !1, r.domain.emit("error", e) } else r.response.error = e, t(e); else t(r.response.error); var a })) }; this.addState("validate", "build", "error", e), this.addState("build", "afterBuild", "restart", e), this.addState("afterBuild", "sign", "restart", e), this.addState("sign", "send", "retry", e), this.addState("retry", "afterRetry", "afterRetry", e), this.addState("afterRetry", "sign", "error", e), this.addState("send", "validateResponse", "retry", e), this.addState("validateResponse", "extractData", "extractError", e), this.addState("extractError", "extractData", "retry", e), this.addState("extractData", "success", "retry", e), this.addState("restart", "build", "error", e), this.addState("success", "complete", "complete", e), this.addState("error", "complete", "complete", e), this.addState("complete", null, null, e) }, p.setupStates(), a.Request = i({ constructor: function(e, t, r) { var i = e.endpoint, s = e.config.region, u = e.config.customUserAgent; e.signingRegion ? s = e.signingRegion : e.isGlobalEndpoint && (s = "us-east-1"), this.domain = o && o.active, this.service = e, this.operation = t, this.params = r || {}, this.httpRequest = new a.HttpRequest(i, s), this.httpRequest.appendToUserAgent(u), this.startTime = e.getSkewCorrectedDate(), this.response = new a.Response(this), this._asm = new n(p.states, "validate"), this._haltHandlersOnError = !1, a.SequentialExecutor.call(this), this.emit = this.emitEvent }, send: function(e) { return e && (this.httpRequest.appendToUserAgent("callback"), this.on("complete", (function(t) { e.call(t, t.error, t.data) }))), this.runTo(), this.response }, build: function(e) { return this.runTo("send", e) }, runTo: function(e, t) { return this._asm.runTo(e, t, this), this }, abort: function() { return this.removeAllListeners("validateResponse"), this.removeAllListeners("extractError"), this.on("validateResponse", (function(e) { e.error = a.util.error(new Error("Request aborted by user"), { code: "RequestAbortedError", retryable: !1 }) })), this.httpRequest.stream && !this.httpRequest.stream.didCallback && (this.httpRequest.stream.abort(), this.httpRequest._abortCallback ? this.httpRequest._abortCallback() : this.removeAllListeners("send")), this }, eachPage: function(e) { e = a.util.fn.makeAsync(e, 3), this.on("complete", (function t(r) { e.call(r, r.error, r.data, (function(n) { !1 !== n && (r.hasNextPage() ? r.nextPage().on("complete", t).send() : e.call(r, null, null, a.util.fn.noop)) })) })).send() }, eachItem: function(e) { var t = this; this.eachPage((function(r, n) { if (r) return e(r, null); if (null === n) return e(null, null); var i = t.service.paginationConfig(t.operation).resultKey; Array.isArray(i) && (i = i[0]); var o = s.search(n, i), u = !0; return a.util.arrayEach(o, (function(t) { if (!1 === (u = e(null, t))) return a.util.abort })), u })) }, isPageable: function() { return !!this.service.paginationConfig(this.operation) }, createReadStream: function() { var e = a.util.stream, t = this, r = null; return 2 === a.HttpClient.streamsApiVersion ? (r = new e.PassThrough, process.nextTick((function() { t.send() }))) : ((r = new e.Stream).readable = !0, r.sent = !1, r.on("newListener", (function(e) { r.sent || "data" !== e || (r.sent = !0, process.nextTick((function() { t.send() }))) }))), this.on("error", (function(e) { r.emit("error", e) })), this.on("httpHeaders", (function(n, i, o) { if (n < 300) { t.removeListener("httpData", a.EventListeners.Core.HTTP_DATA), t.removeListener("httpError", a.EventListeners.Core.HTTP_ERROR), t.on("httpError", (function(e) { o.error = e, o.error.retryable = !1 })); var s, u = !1; if ("HEAD" !== t.httpRequest.method && (s = parseInt(i["content-length"], 10)), void 0 !== s && !isNaN(s) && s >= 0) { u = !0; var p = 0 } var c = function() { u && p !== s ? r.emit("error", a.util.error(new Error("Stream content length mismatch. Received " + p + " of " + s + " bytes."), { code: "StreamContentLengthMismatch" })) : 2 === a.HttpClient.streamsApiVersion ? r.end() : r.emit("end") }, m = o.httpResponse.createUnbufferedStream(); if (2 === a.HttpClient.streamsApiVersion) if (u) { var l = new e.PassThrough; l._write = function(t) { return t && t.length && (p += t.length), e.PassThrough.prototype._write.apply(this, arguments) }, l.on("end", c), r.on("error", (function(e) { u = !1, m.unpipe(l), l.emit("end"), l.end() })), m.pipe(l).pipe(r, { end: !1 }) } else m.pipe(r); else u && m.on("data", (function(e) { e && e.length && (p += e.length) })), m.on("data", (function(e) { r.emit("data", e) })), m.on("end", c); m.on("error", (function(e) { u = !1, r.emit("error", e) })) } })), r }, emitEvent: function(e, t, r) { "function" === typeof t && (r = t, t = null), r || (r = function() {}), t || (t = this.eventParameters(e, this.response)), a.SequentialExecutor.prototype.emit.call(this, e, t, (function(e) { e && (this.response.error = e), r.call(this, e) })) }, eventParameters: function(e) { switch (e) { case "restart": case "validate": case "sign": case "build": case "afterValidate": case "afterBuild": return [this]; case "error": return [this.response.error, this.response]; default: return [this.response] } }, presign: function(e, t) { return t || "function" !== typeof e || (t = e, e = null), (new a.Signers.Presign).sign(this.toGet(), e, t) }, isPresigned: function() { return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, "presigned-expires") }, toUnauthenticated: function() { return this._unAuthenticated = !0, this.removeListener("validate", a.EventListeners.Core.VALIDATE_CREDENTIALS), this.removeListener("sign", a.EventListeners.Core.SIGN), this }, toGet: function() { return "query" !== this.service.api.protocol && "ec2" !== this.service.api.protocol || (this.removeListener("build", this.buildAsGet), this.addListener("build", this.buildAsGet)), this }, buildAsGet: function(e) { e.httpRequest.method = "GET", e.httpRequest.path = e.service.endpoint.path + "?" + e.httpRequest.body, e.httpRequest.body = "", delete e.httpRequest.headers["Content-Length"], delete e.httpRequest.headers["Content-Type"] }, haltHandlersOnError: function() { this._haltHandlersOnError = !0 } }), a.Request.addPromisesToClass = function(e) { this.prototype.promise = function() { var t = this; return this.httpRequest.appendToUserAgent("promise"), new e((function(e, r) { t.on("complete", (function(t) { t.error ? r(t.error) : e(Object.defineProperty(t.data || {}, "$response", { value: t })) })), t.runTo() })) } }, a.Request.deletePromisesFromClass = function() { delete this.prototype.promise }, a.util.addPromises(a.Request), a.util.mixin(a.Request, a.SequentialExecutor) }, 90630: (e, t, r) => { var a = r(8468), n = a.util.inherit, i = r(24247); function o(e) { var t = e.request._waiter, r = t.config.acceptors, a = !1, n = "retry"; r.forEach((function(r) { if (!a) { var i = t.matchers[r.matcher]; i && i(e, r.expected, r.argument) && (a = !0, n = r.state) } })), !a && e.error && (n = "failure"), "success" === n ? t.setSuccess(e) : t.setError(e, "retry" === n) } a.ResourceWaiter = n({ constructor: function(e, t) { this.service = e, this.state = t, this.loadWaiterConfig(this.state) }, service: null, state: null, config: null, matchers: { path: function(e, t, r) { try { var a = i.search(e.data, r) } catch (n) { return !1 } return i.strictDeepEqual(a, t) }, pathAll: function(e, t, r) { try { var a = i.search(e.data, r) } catch (s) { return !1 } Array.isArray(a) || (a = [a]); var n = a.length; if (!n) return !1; for (var o = 0; o < n; o++) if (!i.strictDeepEqual(a[o], t)) return !1; return !0 }, pathAny: function(e, t, r) { try { var a = i.search(e.data, r) } catch (s) { return !1 } Array.isArray(a) || (a = [a]); for (var n = a.length, o = 0; o < n; o++) if (i.strictDeepEqual(a[o], t)) return !0; return !1 }, status: function(e, t) { var r = e.httpResponse.statusCode; return "number" === typeof r && r === t }, error: function(e, t) { return "string" === typeof t && e.error ? t === e.error.code : t === !!e.error } }, listeners: (new a.SequentialExecutor).addNamedListeners((function(e) { e("RETRY_CHECK", "retry", (function(e) { var t = e.request._waiter; e.error && "ResourceNotReady" === e.error.code && (e.error.retryDelay = 1e3 * (t.config.delay || 0)) })), e("CHECK_OUTPUT", "extractData", o), e("CHECK_ERROR", "extractError", o) })), wait: function(e, t) { "function" === typeof e && (t = e, e = void 0), e && e.$waiter && ("number" === typeof(e = a.util.copy(e)).$waiter.delay && (this.config.delay = e.$waiter.delay), "number" === typeof e.$waiter.maxAttempts && (this.config.maxAttempts = e.$waiter.maxAttempts), delete e.$waiter); var r = this.service.makeRequest(this.config.operation, e); return r._waiter = this, r.response.maxRetries = this.config.maxAttempts, r.addListeners(this.listeners), t && r.send(t), r }, setSuccess: function(e) { e.error = null, e.data = e.data || {}, e.request.removeAllListeners("extractData") }, setError: function(e, t) { e.data = null, e.error = a.util.error(e.error || new Error, { code: "ResourceNotReady", message: "Resource is not in the state " + this.state, retryable: t }) }, loadWaiterConfig: function(e) { if (!this.service.api.waiters[e]) throw new a.util.error(new Error, { code: "StateNotFoundError", message: "State " + e + " not found." }); this.config = a.util.copy(this.service.api.waiters[e]) } }) }, 10767: (e, t, r) => { var a = r(8468), n = a.util.inherit, i = r(24247); a.Response = n({ constructor: function(e) { this.request = e, this.data = null, this.error = null, this.retryCount = 0, this.redirectCount = 0, this.httpResponse = new a.HttpResponse, e && (this.maxRetries = e.service.numRetries(), this.maxRedirects = e.service.config.maxRedirects) }, nextPage: function(e) { var t, r = this.request.service, n = this.request.operation; try { t = r.paginationConfig(n, !0) } catch (u) { this.error = u } if (!this.hasNextPage()) { if (e) e(this.error, null); else if (this.error) throw this.error; return null } var i = a.util.copy(this.request.params); if (this.nextPageTokens) { var o = t.inputToken; "string" === typeof o && (o = [o]); for (var s = 0; s < o.length; s++) i[o[s]] = this.nextPageTokens[s]; return r.makeRequest(this.request.operation, i, e) } return e ? e(null, null) : null }, hasNextPage: function() { return this.cacheNextPageTokens(), !!this.nextPageTokens || void 0 === this.nextPageTokens && void 0 }, cacheNextPageTokens: function() { if (Object.prototype.hasOwnProperty.call(this, "nextPageTokens")) return this.nextPageTokens; this.nextPageTokens = void 0; var e = this.request.service.paginationConfig(this.request.operation); if (!e) return this.nextPageTokens; if (this.nextPageTokens = null, e.moreResults && !i.search(this.data, e.moreResults)) return this.nextPageTokens; var t = e.outputToken; return "string" === typeof t && (t = [t]), a.util.arrayEach.call(this, t, (function(e) { var t = i.search(this.data, e); t && (this.nextPageTokens = this.nextPageTokens || [], this.nextPageTokens.push(t)) })), this.nextPageTokens } }) }, 51470: (e, t, r) => { var a = r(8468), n = a.util.string.byteLength, i = a.util.Buffer; a.S3.ManagedUpload = a.util.inherit({ constructor: function(e) { var t = this; a.SequentialExecutor.call(t), t.body = null, t.sliceFn = null, t.callback = null, t.parts = {}, t.completeInfo = [], t.fillQueue = function() { t.callback(new Error("Unsupported body payload " + typeof t.body)) }, t.configure(e) }, configure: function(e) { if (e = e || {}, this.partSize = this.minPartSize, e.queueSize && (this.queueSize = e.queueSize), e.partSize && (this.partSize = e.partSize), e.leavePartsOnError && (this.leavePartsOnError = !0), e.tags) { if (!Array.isArray(e.tags)) throw new Error("Tags must be specified as an array; " + typeof e.tags + " provided."); this.tags = e.tags } if (this.partSize < this.minPartSize) throw new Error("partSize must be greater than " + this.minPartSize); this.service = e.service, this.bindServiceObject(e.params), this.validateBody(), this.adjustTotalBytes() }, leavePartsOnError: !1, queueSize: 4, partSize: null, minPartSize: 5242880, maxTotalParts: 1e4, send: function(e) { var t = this; t.failed = !1, t.callback = e || function(e) { if (e) throw e }; var r = !0; if (t.sliceFn) t.fillQueue = t.fillBuffer; else if (a.util.isNode()) { var n = a.util.stream.Stream; t.body instanceof n && (r = !1, t.fillQueue = t.fillStream, t.partBuffers = [], t.body.on("error", (function(e) { t.cleanup(e) })).on("readable", (function() { t.fillQueue() })).on("end", (function() { t.isDoneChunking = !0, t.numParts = t.totalPartNumbers, t.fillQueue.call(t), t.isDoneChunking && t.totalPartNumbers >= 1 && t.doneParts === t.numParts && t.finishMultiPart() }))) } r && t.fillQueue.call(t) }, abort: function() { var e = this; !0 === e.isDoneChunking && 1 === e.totalPartNumbers && e.singlePart ? e.singlePart.abort() : e.cleanup(a.util.error(new Error("Request aborted by user"), { code: "RequestAbortedError", retryable: !1 })) }, validateBody: function() { var e = this; if (e.body = e.service.config.params.Body, "string" === typeof e.body) e.body = a.util.buffer.toBuffer(e.body); else if (!e.body) throw new Error("params.Body is required"); e.sliceFn = a.util.arraySliceFn(e.body) }, bindServiceObject: function(e) { e = e || {}; var t = this; if (t.service) { var r = t.service, n = a.util.copy(r.config); n.signatureVersion = r.getSignatureVersion(), t.service = new r.constructor.__super__(n), t.service.config.params = a.util.merge(t.service.config.params || {}, e), Object.defineProperty(t.service, "_originalConfig", { get: function() { return r._originalConfig }, enumerable: !1, configurable: !0 }) } else t.service = new a.S3({ params: e }) }, adjustTotalBytes: function() { var e = this; try { e.totalBytes = n(e.body) } catch (r) {} if (e.totalBytes) { var t = Math.ceil(e.totalBytes / e.maxTotalParts); t > e.partSize && (e.partSize = t) } else e.totalBytes = void 0 }, isDoneChunking: !1, partPos: 0, totalChunkedBytes: 0, totalUploadedBytes: 0, totalBytes: void 0, numParts: 0, totalPartNumbers: 0, activeParts: 0, doneParts: 0, parts: null, completeInfo: null, failed: !1, multipartReq: null, partBuffers: null, partBufferLength: 0, fillBuffer: function() { var e = this, t = n(e.body); if (0 === t) return e.isDoneChunking = !0, e.numParts = 1, void e.nextChunk(e.body); for (; e.activeParts < e.queueSize && e.partPos < t;) { var r = Math.min(e.partPos + e.partSize, t), a = e.sliceFn.call(e.body, e.partPos, r); e.partPos += e.partSize, (n(a) < e.partSize || e.partPos === t) && (e.isDoneChunking = !0, e.numParts = e.totalPartNumbers + 1), e.nextChunk(a) } }, fillStream: function() { var e = this; if (!(e.activeParts >= e.queueSize)) { var t = e.body.read(e.partSize - e.partBufferLength) || e.body.read(); if (t && (e.partBuffers.push(t), e.partBufferLength += t.length, e.totalChunkedBytes += t.length), e.partBufferLength >= e.partSize) { var r = 1 === e.partBuffers.length ? e.partBuffers[0] : i.concat(e.partBuffers); if (e.partBuffers = [], e.partBufferLength = 0, r.length > e.partSize) { var a = r.slice(e.partSize); e.partBuffers.push(a), e.partBufferLength += a.length, r = r.slice(0, e.partSize) } e.nextChunk(r) } e.isDoneChunking && !e.isDoneSending && (r = 1 === e.partBuffers.length ? e.partBuffers[0] : i.concat(e.partBuffers), e.partBuffers = [], e.partBufferLength = 0, e.totalBytes = e.totalChunkedBytes, e.isDoneSending = !0, (0 === e.numParts || r.length > 0) && (e.numParts++, e.nextChunk(r))), e.body.read(0) } }, nextChunk: function(e) { var t = this; if (t.failed) return null; var r = ++t.totalPartNumbers; if (t.isDoneChunking && 1 === r) { var n = { Body: e }; this.tags && (n.Tagging = this.getTaggingHeader()); var i = t.service.putObject(n); return i._managedUpload = t, i.on("httpUploadProgress", t.progress).send(t.finishSinglePart), t.singlePart = i, null } if (t.service.config.params.ContentMD5) { var o = a.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."), { code: "InvalidDigest", retryable: !1 }); return t.cleanup(o), null } if (t.completeInfo[r] && null !== t.completeInfo[r].ETag) return null; t.activeParts++, t.service.config.params.UploadId ? t.uploadPart(e, r) : t.multipartReq ? t.queueChunks(e, r) : (t.multipartReq = t.service.createMultipartUpload(), t.multipartReq.on("success", (function(e) { t.service.config.params.UploadId = e.data.UploadId, t.multipartReq = null })), t.queueChunks(e, r), t.multipartReq.on("error", (function(e) { t.cleanup(e) })), t.multipartReq.send()) }, getTaggingHeader: function() { for (var e = [], t = 0; t < this.tags.length; t++) e.push(a.util.uriEscape(this.tags[t].Key) + "=" + a.util.uriEscape(this.tags[t].Value)); return e.join("&") }, uploadPart: function(e, t) { var r = this, n = { Body: e, ContentLength: a.util.string.byteLength(e), PartNumber: t }, i = { ETag: null, PartNumber: t }; r.completeInfo[t] = i; var o = r.service.uploadPart(n); r.parts[t] = o, o._lastUploadedBytes = 0, o._managedUpload = r, o.on("httpUploadProgress", r.progress), o.send((function(e, o) { if (delete r.parts[n.PartNumber], r.activeParts--, !e && (!o || !o.ETag)) { var s = "No access to ETag property on response."; a.util.isBrowser() && (s += " Check CORS configuration to expose ETag header."), e = a.util.error(new Error(s), { code: "ETagMissing", retryable: !1 }) } return e ? r.cleanup(e) : r.completeInfo[t] && null !== r.completeInfo[t].ETag ? null : (i.ETag = o.ETag, r.doneParts++, void(r.isDoneChunking && r.doneParts === r.totalPartNumbers ? r.finishMultiPart() : r.fillQueue.call(r))) })) }, queueChunks: function(e, t) { var r = this; r.multipartReq.on("success", (function() { r.uploadPart(e, t) })) }, cleanup: function(e) { var t = this; t.failed || ("function" === typeof t.body.removeAllListeners && "function" === typeof t.body.resume && (t.body.removeAllListeners("readable"), t.body.removeAllListeners("end"), t.body.resume()), t.multipartReq && (t.multipartReq.removeAllListeners("success"), t.multipartReq.removeAllListeners("error"), t.multipartReq.removeAllListeners("complete"), delete t.multipartReq), t.service.config.params.UploadId && !t.leavePartsOnError ? t.service.abortMultipartUpload().send() : t.leavePartsOnError && (t.isDoneChunking = !1), a.util.each(t.parts, (function(e, t) { t.removeAllListeners("complete"), t.abort() })), t.activeParts = 0, t.partPos = 0, t.numParts = 0, t.totalPartNumbers = 0, t.parts = {}, t.failed = !0, t.callback(e)) }, finishMultiPart: function() { var e = this, t = { MultipartUpload: { Parts: e.completeInfo.slice(1) } }; e.service.completeMultipartUpload(t, (function(t, r) { if (t) return e.cleanup(t); if (r && "string" === typeof r.Location && (r.Location = r.Location.replace(/%2F/g, "/")), Array.isArray(e.tags)) { for (var a = 0; a < e.tags.length; a++) e.tags[a].Value = String(e.tags[a].Value); e.service.putObjectTagging({ Tagging: { TagSet: e.tags } }, (function(t, a) { t ? e.callback(t) : e.callback(t, r) })) } else e.callback(t, r) })) }, finishSinglePart: function(e, t) { var r = this.request._managedUpload, a = this.request.httpRequest, n = a.endpoint; if (e) return r.callback(e); t.Location = [n.protocol, "//", n.host, a.path].join(""), t.key = this.request.params.Key, t.Key = this.request.params.Key, t.Bucket = this.request.params.Bucket, r.callback(e, t) }, progress: function(e) { var t = this._managedUpload; "putObject" === this.operation ? (e.part = 1, e.key = this.params.Key) : (t.totalUploadedBytes += e.loaded - this._lastUploadedBytes, this._lastUploadedBytes = e.loaded, e = { loaded: t.totalUploadedBytes, total: t.totalBytes, part: this.params.PartNumber, key: this.params.Key }), t.emit("httpUploadProgress", [e]) } }), a.util.mixin(a.S3.ManagedUpload, a.SequentialExecutor), a.S3.ManagedUpload.addPromisesToClass = function(e) { this.prototype.promise = a.util.promisifyMethod("send", e) }, a.S3.ManagedUpload.deletePromisesFromClass = function() { delete this.prototype.promise }, a.util.addPromises(a.S3.ManagedUpload), e.exports = a.S3.ManagedUpload }, 78451: (e, t, r) => { var a = r(8468); a.SequentialExecutor = a.util.inherit({ constructor: function() { this._events = {} }, listeners: function(e) { return this._events[e] ? this._events[e].slice(0) : [] }, on: function(e, t, r) { return this._events[e] ? r ? this._events[e].unshift(t) : this._events[e].push(t) : this._events[e] = [t], this }, onAsync: function(e, t, r) { return t._isAsync = !0, this.on(e, t, r) }, removeListener: function(e, t) { var r = this._events[e]; if (r) { for (var a = r.length, n = -1, i = 0; i < a; ++i) r[i] === t && (n = i); n > -1 && r.splice(n, 1) } return this }, removeAllListeners: function(e) { return e ? delete this._events[e] : this._events = {}, this }, emit: function(e, t, r) { r || (r = function() {}); var a = this.listeners(e), n = a.length; return this.callListeners(a, t, r), n > 0 }, callListeners: function(e, t, r, n) { var i = this, o = n || null; function s(n) { if (n && (o = a.util.error(o || new Error, n), i._haltHandlersOnError)) return r.call(i, o); i.callListeners(e, t, r, o) } for (; e.length > 0;) { var u = e.shift(); if (u._isAsync) return void u.apply(i, t.concat([s])); try { u.apply(i, t) } catch (p) { o = a.util.error(o || new Error, p) } if (o && i._haltHandlersOnError) return void r.call(i, o) } r.call(i, o) }, addListeners: function(e) { var t = this; return e._events && (e = e._events), a.util.each(e, (function(e, r) { "function" === typeof r && (r = [r]), a.util.arrayEach(r, (function(r) { t.on(e, r) })) })), t }, addNamedListener: function(e, t, r, a) { return this[e] = r, this.addListener(t, r, a), this }, addNamedAsyncListener: function(e, t, r, a) { return r._isAsync = !0, this.addNamedListener(e, t, r, a) }, addNamedListeners: function(e) { var t = this; return e((function() { t.addNamedListener.apply(t, arguments) }), (function() { t.addNamedAsyncListener.apply(t, arguments) })), this } }), a.SequentialExecutor.prototype.addListener = a.SequentialExecutor.prototype.on, e.exports = a.SequentialExecutor }, 75724: (e, t, r) => { var a = r(8468), n = r(65565), i = r(37139), o = a.util.inherit, s = 0, u = r(88918); a.Service = o({ constructor: function(e) { if (!this.loadServiceClass) throw a.util.error(new Error, "Service must be constructed with `new' operator"); if (e) { if (e.region) { var t = e.region; u.isFipsRegion(t) && (e.region = u.getRealRegion(t), e.useFipsEndpoint = !0), u.isGlobalRegion(t) && (e.region = u.getRealRegion(t)) } "boolean" === typeof e.useDualstack && "boolean" !== typeof e.useDualstackEndpoint && (e.useDualstackEndpoint = e.useDualstack) } var r = this.loadServiceClass(e || {}); if (r) { var n = a.util.copy(e), i = new r(e); return Object.defineProperty(i, "_originalConfig", { get: function() { return n }, enumerable: !1, configurable: !0 }), i._clientId = ++s, i } this.initialize(e) }, initialize: function(e) { var t = a.config[this.serviceIdentifier]; if (this.config = new a.Config(a.config), t && this.config.update(t, !0), e && this.config.update(e, !0), this.validateService(), this.config.endpoint || i.configureEndpoint(this), this.config.endpoint = this.endpointFromTemplate(this.config.endpoint), this.setEndpoint(this.config.endpoint), a.SequentialExecutor.call(this), a.Service.addDefaultMonitoringListeners(this), (this.config.clientSideMonitoring || a.Service._clientSideMonitoring) && this.publisher) { var r = this.publisher; this.addNamedListener("PUBLISH_API_CALL", "apiCall", (function(e) { process.nextTick((function() { r.eventHandler(e) })) })), this.addNamedListener("PUBLISH_API_ATTEMPT", "apiCallAttempt", (function(e) { process.nextTick((function() { r.eventHandler(e) })) })) } }, validateService: function() {}, loadServiceClass: function(e) { var t = e; if (a.util.isEmpty(this.api)) { if (t.apiConfig) return a.Service.defineServiceApi(this.constructor, t.apiConfig); if (this.constructor.services) { (t = new a.Config(a.config)).update(e, !0); var r = t.apiVersions[this.constructor.serviceIdentifier]; return r = r || t.apiVersion, this.getLatestServiceClass(r) } return null } return null }, getLatestServiceClass: function(e) { return e = this.getLatestServiceVersion(e), null === this.constructor.services[e] && a.Service.defineServiceApi(this.constructor, e), this.constructor.services[e] }, getLatestServiceVersion: function(e) { if (!this.constructor.services || 0 === this.constructor.services.length) throw new Error("No services defined on " + this.constructor.serviceIdentifier); if (e ? a.util.isType(e, Date) && (e = a.util.date.iso8601(e).split("T")[0]) : e = "latest", Object.hasOwnProperty(this.constructor.services, e)) return e; for (var t = Object.keys(this.constructor.services).sort(), r = null, n = t.length - 1; n >= 0; n--) if ("*" !== t[n][t[n].length - 1] && (r = t[n]), t[n].substr(0, 10) <= e) return r; throw new Error("Could not find " + this.constructor.serviceIdentifier + " API to satisfy version constraint `" + e + "'") }, api: {}, defaultRetryCount: 3, customizeRequests: function(e) { if (e) { if ("function" !== typeof e) throw new Error("Invalid callback type '" + typeof e + "' provided in customizeRequests"); this.customRequestHandler = e } else this.customRequestHandler = null }, makeRequest: function(e, t, r) { if ("function" === typeof t && (r = t, t = null), t = t || {}, this.config.params) { var n = this.api.operations[e]; n && (t = a.util.copy(t), a.util.each(this.config.params, (function(e, r) { n.input.members[e] && (void 0 !== t[e] && null !== t[e] || (t[e] = r)) }))) } var i = new a.Request(this, e, t); return this.addAllRequestListeners(i), this.attachMonitoringEmitter(i), r && i.send(r), i }, makeUnauthenticatedRequest: function(e, t, r) { "function" === typeof t && (r = t, t = {}); var a = this.makeRequest(e, t).toUnauthenticated(); return r ? a.send(r) : a }, waitFor: function(e, t, r) { return new a.ResourceWaiter(this, e).wait(t, r) }, addAllRequestListeners: function(e) { for (var t = [a.events, a.EventListeners.Core, this.serviceInterface(), a.EventListeners.CorePost], r = 0; r < t.length; r++) t[r] && e.addListeners(t[r]); this.config.paramValidation || e.removeListener("validate", a.EventListeners.Core.VALIDATE_PARAMETERS), this.config.logger && e.addListeners(a.EventListeners.Logger), this.setupRequestListeners(e), "function" === typeof this.constructor.prototype.customRequestHandler && this.constructor.prototype.customRequestHandler(e), Object.prototype.hasOwnProperty.call(this, "customRequestHandler") && "function" === typeof this.customRequestHandler && this.customRequestHandler(e) }, apiCallEvent: function(e) { var t = e.service.api.operations[e.operation], r = { Type: "ApiCall", Api: t ? t.name : e.operation, Version: 1, Service: e.service.api.serviceId || e.service.api.endpointPrefix, Region: e.httpRequest.region, MaxRetriesExceeded: 0, UserAgent: e.httpRequest.getUserAgent() }, a = e.response; if (a.httpResponse.statusCode && (r.FinalHttpStatusCode = a.httpResponse.statusCode), a.error) { var n = a.error; a.httpResponse.statusCode > 299 ? (n.code && (r.FinalAwsException = n.code), n.message && (r.FinalAwsExceptionMessage = n.message)) : ((n.code || n.name) && (r.FinalSdkException = n.code || n.name), n.message && (r.FinalSdkExceptionMessage = n.message)) } return r }, apiAttemptEvent: function(e) { var t = e.service.api.operations[e.operation], r = { Type: "ApiCallAttempt", Api: t ? t.name : e.operation, Version: 1, Service: e.service.api.serviceId || e.service.api.endpointPrefix, Fqdn: e.httpRequest.endpoint.hostname, UserAgent: e.httpRequest.getUserAgent() }, a = e.response; return a.httpResponse.statusCode && (r.HttpStatusCode = a.httpResponse.statusCode), !e._unAuthenticated && e.service.config.credentials && e.service.config.credentials.accessKeyId && (r.AccessKey = e.service.config.credentials.accessKeyId), a.httpResponse.headers ? (e.httpRequest.headers["x-amz-security-token"] && (r.SessionToken = e.httpRequest.headers["x-amz-security-token"]), a.httpResponse.headers["x-amzn-requestid"] && (r.XAmznRequestId = a.httpResponse.headers["x-amzn-requestid"]), a.httpResponse.headers["x-amz-request-id"] && (r.XAmzRequestId = a.httpResponse.headers["x-amz-request-id"]), a.httpResponse.headers["x-amz-id-2"] && (r.XAmzId2 = a.httpResponse.headers["x-amz-id-2"]), r) : r }, attemptFailEvent: function(e) { var t = this.apiAttemptEvent(e), r = e.response, a = r.error; return r.httpResponse.statusCode > 299 ? (a.code && (t.AwsException = a.code), a.message && (t.AwsExceptionMessage = a.message)) : ((a.code || a.name) && (t.SdkException = a.code || a.name), a.message && (t.SdkExceptionMessage = a.message)), t }, attachMonitoringEmitter: function(e) { var t, r, n, i, o, s, u = 0, p = this; e.on("validate", (function() { i = a.util.realClock.now(), s = Date.now() }), true), e.on("sign", (function() { r = a.util.realClock.now(), t = Date.now(), o = e.httpRequest.region, u++ }), true), e.on("validateResponse", (function() { n = Math.round(a.util.realClock.now() - r) })), e.addNamedListener("API_CALL_ATTEMPT", "success", (function() { var r = p.apiAttemptEvent(e); r.Timestamp = t, r.AttemptLatency = n >= 0 ? n : 0, r.Region = o, p.emit("apiCallAttempt", [r]) })), e.addNamedListener("API_CALL_ATTEMPT_RETRY", "retry", (function() { var i = p.attemptFailEvent(e); i.Timestamp = t, n = n || Math.round(a.util.realClock.now() - r), i.AttemptLatency = n >= 0 ? n : 0, i.Region = o, p.emit("apiCallAttempt", [i]) })), e.addNamedListener("API_CALL", "complete", (function() { var t = p.apiCallEvent(e); if (t.AttemptCount = u, !(t.AttemptCount <= 0)) { t.Timestamp = s; var r = Math.round(a.util.realClock.now() - i); t.Latency = r >= 0 ? r : 0; var n = e.response; n.error && n.error.retryable && "number" === typeof n.retryCount && "number" === typeof n.maxRetries && n.retryCount >= n.maxRetries && (t.MaxRetriesExceeded = 1), p.emit("apiCall", [t]) } })) }, setupRequestListeners: function(e) {}, getSigningName: function() { return this.api.signingName || this.api.endpointPrefix }, getSignerClass: function(e) { var t, r = null, n = ""; e && (n = (r = (e.service.api.operations || {})[e.operation] || null) ? r.authtype : ""); return t = this.config.signatureVersion ? this.config.signatureVersion : "v4" === n || "v4-unsigned-body" === n ? "v4" : "bearer" === n ? "bearer" : this.api.signatureVersion, a.Signers.RequestSigner.getVersion(t) }, serviceInterface: function() { switch (this.api.protocol) { case "ec2": case "query": return a.EventListeners.Query; case "json": return a.EventListeners.Json; case "rest-json": return a.EventListeners.RestJson; case "rest-xml": return a.EventListeners.RestXml } if (this.api.protocol) throw new Error("Invalid service `protocol' " + this.api.protocol + " in API config") }, successfulResponse: function(e) { return e.httpResponse.statusCode < 300 }, numRetries: function() { return void 0 !== this.config.maxRetries ? this.config.maxRetries : this.defaultRetryCount }, retryDelays: function(e, t) { return a.util.calculateRetryDelay(e, this.config.retryDelayOptions, t) }, retryableError: function(e) { return !!this.timeoutError(e) || (!!this.networkingError(e) || (!!this.expiredCredentialsError(e) || (!!this.throttledError(e) || e.statusCode >= 500))) }, networkingError: function(e) { return "NetworkingError" === e.code }, timeoutError: function(e) { return "TimeoutError" === e.code }, expiredCredentialsError: function(e) { return "ExpiredTokenException" === e.code }, clockSkewError: function(e) { switch (e.code) { case "RequestTimeTooSkewed": case "RequestExpired": case "InvalidSignatureException": case "SignatureDoesNotMatch": case "AuthFailure": case "RequestInTheFuture": return !0; default: return !1 } }, getSkewCorrectedDate: function() { return new Date(Date.now() + this.config.systemClockOffset) }, applyClockOffset: function(e) { e && (this.config.systemClockOffset = e - Date.now()) }, isClockSkewed: function(e) { if (e) return Math.abs(this.getSkewCorrectedDate().getTime() - e) >= 3e5 }, throttledError: function(e) { if (429 === e.statusCode) return !0; switch (e.code) { case "ProvisionedThroughputExceededException": case "Throttling": case "ThrottlingException": case "RequestLimitExceeded": case "RequestThrottled": case "RequestThrottledException": case "TooManyRequestsException": case "TransactionInProgressException": case "EC2ThrottledException": return !0; default: return !1 } }, endpointFromTemplate: function(e) { if ("string" !== typeof e) return e; var t = e; return t = (t = (t = t.replace(/\{service\}/g, this.api.endpointPrefix)).replace(/\{region\}/g, this.config.region)).replace(/\{scheme\}/g, this.config.sslEnabled ? "https" : "http") }, setEndpoint: function(e) { this.endpoint = new a.Endpoint(e, this.config) }, paginationConfig: function(e, t) { var r = this.api.operations[e].paginator; if (!r) { if (t) { var n = new Error; throw a.util.error(n, "No pagination configuration for " + e) } return null } return r } }), a.util.update(a.Service, { defineMethods: function(e) { a.util.each(e.prototype.api.operations, (function(t) { e.prototype[t] || ("none" === e.prototype.api.operations[t].authtype ? e.prototype[t] = function(e, r) { return this.makeUnauthenticatedRequest(t, e, r) } : e.prototype[t] = function(e, r) { return this.makeRequest(t, e, r) }) })) }, defineService: function(e, t, r) { a.Service._serviceMap[e] = !0, Array.isArray(t) || (r = t, t = []); var n = o(a.Service, r || {}); if ("string" === typeof e) { a.Service.addVersions(n, t); var i = n.serviceIdentifier || e; n.serviceIdentifier = i } else n.prototype.api = e, a.Service.defineMethods(n); if (a.SequentialExecutor.call(this.prototype), !this.prototype.publisher && a.util.clientSideMonitoring) { var s = a.util.clientSideMonitoring.Publisher, u = (0, a.util.clientSideMonitoring.configProvider)(); this.prototype.publisher = new s(u), u.enabled && (a.Service._clientSideMonitoring = !0) } return a.SequentialExecutor.call(n.prototype), a.Service.addDefaultMonitoringListeners(n.prototype), n }, addVersions: function(e, t) { Array.isArray(t) || (t = [t]), e.services = e.services || {}; for (var r = 0; r < t.length; r++) void 0 === e.services[t[r]] && (e.services[t[r]] = null); e.apiVersions = Object.keys(e.services).sort() }, defineServiceApi: function(e, t, r) { var i = o(e, { serviceIdentifier: e.serviceIdentifier }); function s(t) { t.isApi ? i.prototype.api = t : i.prototype.api = new n(t, { serviceIdentifier: e.serviceIdentifier }) } if ("string" === typeof t) { if (r) s(r); else try { s(a.apiLoader(e.serviceIdentifier, t)) } catch (u) { throw a.util.error(u, { message: "Could not find API configuration " + e.serviceIdentifier + "-" + t }) } Object.prototype.hasOwnProperty.call(e.services, t) || (e.apiVersions = e.apiVersions.concat(t).sort()), e.services[t] = i } else s(t); return a.Service.defineMethods(i), i }, hasService: function(e) { return Object.prototype.hasOwnProperty.call(a.Service._serviceMap, e) }, addDefaultMonitoringListeners: function(e) { e.addNamedListener("MONITOR_EVENTS_BUBBLE", "apiCallAttempt", (function(t) { var r = Object.getPrototypeOf(e); r._events && r.emit("apiCallAttempt", [t]) })), e.addNamedListener("CALL_EVENTS_BUBBLE", "apiCall", (function(t) { var r = Object.getPrototypeOf(e); r._events && r.emit("apiCall", [t]) })) }, _serviceMap: {} }), a.util.mixin(a.Service, a.SequentialExecutor), e.exports = a.Service }, 32193: (e, t, r) => { var a = r(8468); a.util.update(a.APIGateway.prototype, { setAcceptHeader: function(e) { var t = e.httpRequest; t.headers.Accept || (t.headers.Accept = "application/json") }, setupRequestListeners: function(e) { (e.addListener("build", this.setAcceptHeader), "getExport" === e.operation) && ("swagger" === (e.params || {}).exportType && e.addListener("extractData", a.util.convertPayloadToString)) } }) }, 42768: (e, t, r) => { var a = r(8468); r(65473), a.util.update(a.CloudFront.prototype, { setupRequestListeners: function(e) { e.addListener("extractData", a.util.hoistPayloadMember) } }) }, 89785: (e, t, r) => { var a = r(8468); r(55098), a.util.update(a.DynamoDB.prototype, { setupRequestListeners: function(e) { e.service.config.dynamoDbCrc32 && (e.removeListener("extractData", a.EventListeners.Json.EXTRACT_DATA), e.addListener("extractData", this.checkCrc32), e.addListener("extractData", a.EventListeners.Json.EXTRACT_DATA)) }, checkCrc32: function(e) { if (!e.httpResponse.streaming && !e.request.service.crc32IsValid(e)) throw e.data = null, e.error = a.util.error(new Error, { code: "CRC32CheckFailed", message: "CRC32 integrity check failed", retryable: !0 }), e.request.haltHandlersOnError(), e.error }, crc32IsValid: function(e) { var t = e.httpResponse.headers["x-amz-crc32"]; return !t || parseInt(t, 10) === a.util.crypto.crc32(e.httpResponse.body) }, defaultRetryCount: 10, retryDelays: function(e, t) { var r = a.util.copy(this.config.retryDelayOptions); return "number" !== typeof r.base && (r.base = 50), a.util.calculateRetryDelay(e, r, t) } }) }, 89422: (e, t, r) => { var a = r(8468); a.util.update(a.EC2.prototype, { setupRequestListeners: function(e) { e.removeListener("extractError", a.EventListeners.Query.EXTRACT_ERROR), e.addListener("extractError", this.extractError), "copySnapshot" === e.operation && e.onAsync("validate", this.buildCopySnapshotPresignedUrl) }, buildCopySnapshotPresignedUrl: function(e, t) { if (e.params.PresignedUrl || e._subRequest) return t(); e.params = a.util.copy(e.params), e.params.DestinationRegion = e.service.config.region; var r = a.util.copy(e.service.config); delete r.endpoint, r.region = e.params.SourceRegion; var n = new e.service.constructor(r)[e.operation](e.params); n._subRequest = !0, n.presign((function(r, a) { r ? t(r) : (e.params.PresignedUrl = a, t()) })) }, extractError: function(e) { var t = e.httpResponse, r = (new a.XML.Parser).parse(t.body.toString() || ""); r.Errors ? e.error = a.util.error(new Error, { code: r.Errors.Error.Code, message: r.Errors.Error.Message }) : e.error = a.util.error(new Error, { code: t.statusCode, message: null }), e.error.requestId = r.RequestID || null } }) }, 17414: (e, t, r) => { var a = r(8468), n = ["deleteThingShadow", "getThingShadow", "updateThingShadow"]; a.util.update(a.IotData.prototype, { validateService: function() { if (!this.config.endpoint || this.config.endpoint.indexOf("{") >= 0) { throw a.util.error(new Error, { name: "InvalidEndpoint", message: "AWS.IotData requires an explicit `endpoint' configuration option." }) } }, setupRequestListeners: function(e) { e.addListener("validateResponse", this.validateResponseBody), n.indexOf(e.operation) > -1 && e.addListener("extractData", a.util.convertPayloadToString) }, validateResponseBody: function(e) { var t = (e.httpResponse.body.toString() || "{}").trim(); t && "{" === t.charAt(0) || (e.httpResponse.body = "") } }) }, 85447: (e, t, r) => { var a = r(8468); a.util.update(a.Lambda.prototype, { setupRequestListeners: function(e) { "invoke" === e.operation && e.addListener("extractData", a.util.convertPayloadToString) } }) }, 50566: (e, t, r) => { var a = r(8468); a.util.update(a.MachineLearning.prototype, { setupRequestListeners: function(e) { "predict" === e.operation && e.addListener("build", this.buildEndpoint) }, buildEndpoint: function(e) { var t = e.params.PredictEndpoint; t && (e.httpRequest.endpoint = new a.Endpoint(t)) } }) }, 92540: (e, t, r) => { r(84796) }, 99875: (e, t, r) => { var a = r(8468), n = r(11483); r(42418); var i = ["copyDBSnapshot", "createDBInstanceReadReplica", "createDBCluster", "copyDBClusterSnapshot", "startDBInstanceAutomatedBackupsReplication"]; a.util.update(a.RDS.prototype, { setupRequestListeners: function(e) { n.setupRequestListeners(this, e, i) } }) }, 11483: (e, t, r) => { var a = r(8468), n = { setupRequestListeners: function(e, t, r) { if (-1 !== r.indexOf(t.operation) && t.params.SourceRegion) if (t.params = a.util.copy(t.params), t.params.PreSignedUrl || t.params.SourceRegion === e.config.region) delete t.params.SourceRegion; else { var i = !!e.config.paramValidation; i && t.removeListener("validate", a.EventListeners.Core.VALIDATE_PARAMETERS), t.onAsync("validate", n.buildCrossRegionPresignedUrl), i && t.addListener("validate", a.EventListeners.Core.VALIDATE_PARAMETERS) } }, buildCrossRegionPresignedUrl: function(e, t) { var r = a.util.copy(e.service.config); r.region = e.params.SourceRegion, delete e.params.SourceRegion, delete r.endpoint, delete r.params, r.signatureVersion = "v4"; var n = e.service.config.region, i = new e.service.constructor(r)[e.operation](a.util.copy(e.params)); i.on("build", (function(e) { var t = e.httpRequest; t.params.DestinationRegion = n, t.body = a.util.queryParamsToString(t.params) })), i.presign((function(r, a) { r ? t(r) : (e.params.PreSignedUrl = a, t()) })) } }; e.exports = n }, 12449: (e, t, r) => { var a = r(8468); a.util.update(a.Route53.prototype, { setupRequestListeners: function(e) { e.on("build", this.sanitizeUrl) }, sanitizeUrl: function(e) { var t = e.httpRequest.path; e.httpRequest.path = t.replace(/\/%2F\w+%2F/, "/") }, retryableError: function(e) { return "PriorRequestNotComplete" === e.code && 400 === e.statusCode || a.Service.prototype.retryableError.call(this, e) } }) }, 57700: (e, t, r) => { var a = r(8468), n = r(94966), i = r(21980), o = r(22605), s = r(37139); r(51470); var u = { completeMultipartUpload: !0, copyObject: !0, uploadPartCopy: !0 }, p = ["AuthorizationHeaderMalformed", "BadRequest", "PermanentRedirect", 301], c = "s3-object-lambda"; a.util.update(a.S3.prototype, { getSignatureVersion: function(e) { var t = this.api.signatureVersion, r = this._originalConfig ? this._originalConfig.signatureVersion : null, a = this.config.signatureVersion, n = !!e && e.isPresigned(); return r ? r = "v2" === r ? "s3" : r : (!0 !== n ? t = "v4" : a && (t = a), t) }, getSigningName: function(e) { if (e && "writeGetObjectResponse" === e.operation) return c; var t = a.Service.prototype.getSigningName; return e && e._parsedArn && e._parsedArn.service ? e._parsedArn.service : t.call(this) }, getSignerClass: function(e) { var t = this.getSignatureVersion(e); return a.Signers.RequestSigner.getVersion(t) }, validateService: function() { var e, t = []; if (this.config.region || (this.config.region = "us-east-1"), !this.config.endpoint && this.config.s3BucketEndpoint && t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."), 1 === t.length ? e = t[0] : t.length > 1 && (e = "Multiple configuration errors:\n" + t.join("\n")), e) throw a.util.error(new Error, { name: "InvalidEndpoint", message: e }) }, shouldDisableBodySigning: function(e) { var t = this.getSignerClass(); return !0 === this.config.s3DisableBodySigning && t === a.Signers.V4 && "https:" === e.httpRequest.endpoint.protocol }, setupRequestListeners: function(e) { if (e.addListener("validate", this.validateScheme), e.addListener("validate", this.validateBucketName, true), e.addListener("validate", this.optInUsEast1RegionalEndpoint, true), e.removeListener("validate", a.EventListeners.Core.VALIDATE_REGION), e.addListener("build", this.addContentType), e.addListener("build", this.computeContentMd5), e.addListener("build", this.computeSseCustomerKeyMd5), e.addListener("build", this.populateURI), e.addListener("afterBuild", this.addExpect100Continue), e.addListener("extractError", this.extractError), e.addListener("extractData", a.util.hoistPayloadMember), e.addListener("extractData", this.extractData), e.addListener("extractData", this.extractErrorFrom200Response), e.addListener("beforePresign", this.prepareSignedUrl), this.shouldDisableBodySigning(e) && (e.removeListener("afterBuild", a.EventListeners.Core.COMPUTE_SHA256), e.addListener("afterBuild", this.disableBodySigning)), "createBucket" !== e.operation && o.isArnInParam(e, "Bucket")) return e._parsedArn = a.util.ARN.parse(e.params.Bucket), e.removeListener("validate", this.validateBucketName), e.removeListener("build", this.populateURI), "s3" === e._parsedArn.service ? (e.addListener("validate", o.validateS3AccessPointArn), e.addListener("validate", this.validateArnResourceType), e.addListener("validate", this.validateArnRegion)) : "s3-outposts" === e._parsedArn.service && (e.addListener("validate", o.validateOutpostsAccessPointArn), e.addListener("validate", o.validateOutpostsArn), e.addListener("validate", o.validateArnRegion)), e.addListener("validate", o.validateArnAccount), e.addListener("validate", o.validateArnService), e.addListener("build", this.populateUriFromAccessPointArn), void e.addListener("build", o.validatePopulateUriFromArn); e.addListener("validate", this.validateBucketEndpoint), e.addListener("validate", this.correctBucketRegionFromCache), e.onAsync("extractError", this.requestBucketRegion), a.util.isBrowser() && e.onAsync("retry", this.reqRegionForNetworkingError) }, validateScheme: function(e) { var t = e.params, r = e.httpRequest.endpoint.protocol; if ((t.SSECustomerKey || t.CopySourceSSECustomerKey) && "https:" !== r) { throw a.util.error(new Error, { code: "ConfigError", message: "Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration" }) } }, validateBucketEndpoint: function(e) { if (!e.params.Bucket && e.service.config.s3BucketEndpoint) { throw a.util.error(new Error, { code: "ConfigError", message: "Cannot send requests to root API with `s3BucketEndpoint` set." }) } }, validateArnRegion: function(e) { o.validateArnRegion(e, { allowFipsEndpoint: !0 }) }, validateArnResourceType: function(e) { var t = e._parsedArn.resource; if (0 !== t.indexOf("accesspoint:") && 0 !== t.indexOf("accesspoint/")) throw a.util.error(new Error, { code: "InvalidARN", message: "ARN resource should begin with 'accesspoint/'" }) }, validateBucketName: function(e) { var t = e.service.getSignatureVersion(e), r = e.params && e.params.Bucket, n = e.params && e.params.Key, i = r && r.indexOf("/"); if (r && i >= 0) if ("string" === typeof n && i > 0) { e.params = a.util.copy(e.params); var o = r.substr(i + 1) || ""; e.params.Key = o + "/" + n, e.params.Bucket = r.substr(0, i) } else if ("v4" === t) { var s = "Bucket names cannot contain forward slashes. Bucket: " + r; throw a.util.error(new Error, { code: "InvalidBucket", message: s }) } }, isValidAccelerateOperation: function(e) { return -1 === ["createBucket", "deleteBucket", "listBuckets"].indexOf(e) }, optInUsEast1RegionalEndpoint: function(e) { var t = e.service, r = t.config; if (r.s3UsEast1RegionalEndpoint = i(t._originalConfig, { env: "AWS_S3_US_EAST_1_REGIONAL_ENDPOINT", sharedConfig: "s3_us_east_1_regional_endpoint", clientConfig: "s3UsEast1RegionalEndpoint" }), !(t._originalConfig || {}).endpoint && "us-east-1" === e.httpRequest.region && "regional" === r.s3UsEast1RegionalEndpoint && e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com") >= 0) { var a = r.endpoint.indexOf(".amazonaws.com"), n = r.endpoint.substring(0, a) + ".us-east-1" + r.endpoint.substring(a); e.httpRequest.updateEndpoint(n) } }, populateURI: function(e) { var t = e.httpRequest, r = e.params.Bucket, a = e.service, n = t.endpoint; if (r && !a.pathStyleBucketName(r)) { a.config.useAccelerateEndpoint && a.isValidAccelerateOperation(e.operation) ? a.config.useDualstackEndpoint ? n.hostname = r + ".s3-accelerate.dualstack.amazonaws.com" : n.hostname = r + ".s3-accelerate.amazonaws.com" : a.config.s3BucketEndpoint || (n.hostname = r + "." + n.hostname); var i = n.port; n.host = 80 !== i && 443 !== i ? n.hostname + ":" + n.port : n.hostname, t.virtualHostedBucket = r, a.removeVirtualHostedBucketFromPath(e) } }, removeVirtualHostedBucketFromPath: function(e) { var t = e.httpRequest, r = t.virtualHostedBucket; if (r && t.path) { if (e.params && e.params.Key) { var n = "/" + a.util.uriEscapePath(e.params.Key); if (0 === t.path.indexOf(n) && (t.path.length === n.length || "?" === t.path[n.length])) return } t.path = t.path.replace(new RegExp("/" + r), ""), "/" !== t.path[0] && (t.path = "/" + t.path) } }, populateUriFromAccessPointArn: function(e) { var t = e._parsedArn, r = "s3-outposts" === t.service, n = "s3-object-lambda" === t.service, i = r ? "." + t.outpostId : "", o = r ? "s3-outposts" : "s3-accesspoint", u = !r && e.service.config.useFipsEndpoint ? "-fips" : "", p = !r && e.service.config.useDualstackEndpoint ? ".dualstack" : "", c = e.httpRequest.endpoint, m = s.getEndpointSuffix(t.region), l = e.service.config.s3UseArnRegion; if (c.hostname = [t.accessPoint + "-" + t.accountId + i, o + u + p, l ? t.region : e.service.config.region, m].join("."), n) { o = "s3-object-lambda"; var d = t.resource.split("/")[1]; u = e.service.config.useFipsEndpoint ? "-fips" : ""; c.hostname = [d + "-" + t.accountId, o + u, l ? t.region : e.service.config.region, m].join(".") } c.host = c.hostname; var y = a.util.uriEscape(e.params.Bucket), b = e.httpRequest.path; e.httpRequest.path = b.replace(new RegExp("/" + y), ""), "/" !== e.httpRequest.path[0] && (e.httpRequest.path = "/" + e.httpRequest.path), e.httpRequest.region = t.region }, addExpect100Continue: function(e) { var t = e.httpRequest.headers["Content-Length"]; a.util.isNode() && (t >= 1048576 || e.params.Body instanceof a.util.stream.Stream) && (e.httpRequest.headers.Expect = "100-continue") }, addContentType: function(e) { var t = e.httpRequest; if ("GET" !== t.method && "HEAD" !== t.method) { t.headers["Content-Type"] || (t.headers["Content-Type"] = "application/octet-stream"); var r = t.headers["Content-Type"]; if (a.util.isBrowser()) if ("string" !== typeof t.body || r.match(/;\s*charset=/)) { t.headers["Content-Type"] = r.replace(/(;\s*charset=)(.+)$/, (function(e, t, r) { return t + r.toUpperCase() })) } else { t.headers["Content-Type"] += "; charset=UTF-8" } } else delete t.headers["Content-Type"] }, willComputeChecksums: function(e) { var t = e.service.api.operations[e.operation].input.members, r = e.httpRequest.body, n = e.service.config.computeChecksums && t.ContentMD5 && !e.params.ContentMD5 && r && (a.util.Buffer.isBuffer(e.httpRequest.body) || "string" === typeof e.httpRequest.body); return !(!n || !e.service.shouldDisableBodySigning(e) || e.isPresigned()) || !(!n || "s3" !== this.getSignatureVersion(e) || !e.isPresigned()) }, computeContentMd5: function(e) { if (e.service.willComputeChecksums(e)) { var t = a.util.crypto.md5(e.httpRequest.body, "base64"); e.httpRequest.headers["Content-MD5"] = t } }, computeSseCustomerKeyMd5: function(e) { a.util.each({ SSECustomerKey: "x-amz-server-side-encryption-customer-key-MD5", CopySourceSSECustomerKey: "x-amz-copy-source-server-side-encryption-customer-key-MD5" }, (function(t, r) { if (e.params[t]) { var n = a.util.crypto.md5(e.params[t], "base64"); e.httpRequest.headers[r] = n } })) }, pathStyleBucketName: function(e) { return !!this.config.s3ForcePathStyle || !this.config.s3BucketEndpoint && (!o.dnsCompatibleBucketName(e) || !(!this.config.sslEnabled || !e.match(/\./))) }, extractErrorFrom200Response: function(e) { if (u[e.request.operation]) { var t = e.httpResponse; if (t.body && t.body.toString().match("")) throw e.data = null, (this.service ? this.service : this).extractError(e), e.error; if (!t.body || !t.body.toString().match(/<[\w_]/)) throw e.data = null, a.util.error(new Error, { code: "InternalError", message: "S3 aborted request" }) } }, retryableError: function(e, t) { return !(!u[t.operation] || 200 !== e.statusCode) || (!t._requestRegionForBucket || !t.service.bucketRegionCache[t._requestRegionForBucket]) && (!(!e || "RequestTimeout" !== e.code) || (e && -1 != p.indexOf(e.code) && e.region && e.region != t.httpRequest.region ? (t.httpRequest.region = e.region, 301 === e.statusCode && t.service.updateReqBucketRegion(t), !0) : a.Service.prototype.retryableError.call(this, e, t))) }, updateReqBucketRegion: function(e, t) { var r = e.httpRequest; if ("string" === typeof t && t.length && (r.region = t), r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)) { var n = e.service, i = n.config, o = i.s3BucketEndpoint; o && delete i.s3BucketEndpoint; var s = a.util.copy(i); delete s.endpoint, s.region = r.region, r.endpoint = new a.S3(s).endpoint, n.populateURI(e), i.s3BucketEndpoint = o, r.headers.Host = r.endpoint.host, "validate" === e._asm.currentState && (e.removeListener("build", n.populateURI), e.addListener("build", n.removeVirtualHostedBucketFromPath)) } }, extractData: function(e) { var t = e.request; if ("getBucketLocation" === t.operation) { var r = e.httpResponse.body.toString().match(/>(.+)<\/Location/); delete e.data._, e.data.LocationConstraint = r ? r[1] : "" } var a = t.params.Bucket || null; if ("deleteBucket" !== t.operation || "string" !== typeof a || e.error) { var n = (e.httpResponse.headers || {})["x-amz-bucket-region"] || null; if (!n && "createBucket" === t.operation && !e.error) { var i = t.params.CreateBucketConfiguration; n = i ? "EU" === i.LocationConstraint ? "eu-west-1" : i.LocationConstraint : "us-east-1" } n && a && n !== t.service.bucketRegionCache[a] && (t.service.bucketRegionCache[a] = n) } else t.service.clearBucketRegionCache(a); t.service.extractRequestIds(e) }, extractError: function(e) { var t, r = { 304: "NotModified", 403: "Forbidden", 400: "BadRequest", 404: "NotFound" }, n = e.request, i = e.httpResponse.statusCode, o = e.httpResponse.body || "", s = (e.httpResponse.headers || {})["x-amz-bucket-region"] || null, u = n.params.Bucket || null, p = n.service.bucketRegionCache; if (s && u && s !== p[u] && (p[u] = s), r[i] && 0 === o.length) u && !s && (t = p[u] || null) !== n.httpRequest.region && (s = t), e.error = a.util.error(new Error, { code: r[i], message: null, region: s }); else { var c = (new a.XML.Parser).parse(o.toString()); c.Region && !s ? (s = c.Region, u && s !== p[u] && (p[u] = s)) : !u || s || c.Region || (t = p[u] || null) !== n.httpRequest.region && (s = t), e.error = a.util.error(new Error, { code: c.Code || i, message: c.Message || null, region: s }) } n.service.extractRequestIds(e) }, requestBucketRegion: function(e, t) { var r = e.error, n = e.request, i = n.params.Bucket || null; if (!r || !i || r.region || "listObjects" === n.operation || a.util.isNode() && "headBucket" === n.operation || 400 === r.statusCode && "headObject" !== n.operation || -1 === p.indexOf(r.code)) return t(); var o = a.util.isNode() ? "headBucket" : "listObjects", s = { Bucket: i }; "listObjects" === o && (s.MaxKeys = 0); var u = n.service[o](s); u._requestRegionForBucket = i, u.send((function() { var e = n.service.bucketRegionCache[i] || null; r.region = e, t() })) }, reqRegionForNetworkingError: function(e, t) { if (!a.util.isBrowser()) return t(); var r = e.error, n = e.request, i = n.params.Bucket; if (!r || "NetworkingError" !== r.code || !i || "us-east-1" === n.httpRequest.region) return t(); var s = n.service, u = s.bucketRegionCache, p = u[i] || null; if (p && p !== n.httpRequest.region) s.updateReqBucketRegion(n, p), t(); else if (o.dnsCompatibleBucketName(i)) if (n.httpRequest.virtualHostedBucket) { var c = s.listObjects({ Bucket: i, MaxKeys: 0 }); s.updateReqBucketRegion(c, "us-east-1"), c._requestRegionForBucket = i, c.send((function() { var e = s.bucketRegionCache[i] || null; e && e !== n.httpRequest.region && s.updateReqBucketRegion(n, e), t() })) } else t(); else s.updateReqBucketRegion(n, "us-east-1"), "us-east-1" !== u[i] && (u[i] = "us-east-1"), t() }, bucketRegionCache: {}, clearBucketRegionCache: function(e) { var t = this.bucketRegionCache; e ? "string" === typeof e && (e = [e]) : e = Object.keys(t); for (var r = 0; r < e.length; r++) delete t[e[r]]; return t }, correctBucketRegionFromCache: function(e) { var t = e.params.Bucket || null; if (t) { var r = e.service, a = e.httpRequest.region, n = r.bucketRegionCache[t]; n && n !== a && r.updateReqBucketRegion(e, n) } }, extractRequestIds: function(e) { var t = e.httpResponse.headers ? e.httpResponse.headers["x-amz-id-2"] : null, r = e.httpResponse.headers ? e.httpResponse.headers["x-amz-cf-id"] : null; e.extendedRequestId = t, e.cfId = r, e.error && (e.error.requestId = e.requestId || null, e.error.extendedRequestId = t, e.error.cfId = r) }, getSignedUrl: function(e, t, r) { var n = (t = a.util.copy(t || {})).Expires || 900; if ("number" !== typeof n) throw a.util.error(new Error, { code: "InvalidParameterException", message: "The expiration must be a number, received " + typeof n }); delete t.Expires; var i = this.makeRequest(e, t); if (!r) return i.presign(n, r); a.util.defer((function() { i.presign(n, r) })) }, createPresignedPost: function(e, t) { "function" === typeof e && void 0 === t && (t = e, e = null), e = a.util.copy(e || {}); var r = this.config.params || {}, n = e.Bucket || r.Bucket, i = this, o = this.config, s = a.util.copy(this.endpoint); function u() { return { url: a.util.urlFormat(s), fields: i.preparePostFields(o.credentials, o.region, n, e.Fields, e.Conditions, e.Expires) } } if (o.s3BucketEndpoint || (s.pathname = "/" + n), !t) return u(); o.getCredentials((function(e) { if (e) t(e); else try { t(null, u()) } catch (e) { t(e) } })) }, preparePostFields: function(e, t, r, i, o, s) { var u = this.getSkewCorrectedDate(); if (!e || !t || !r) throw new Error("Unable to create a POST object policy without a bucket, region, and credentials"); i = a.util.copy(i || {}), o = (o || []).slice(0), s = s || 3600; var p = a.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g, ""), c = p.substr(0, 8), m = n.createScope(c, t, "s3"), l = e.accessKeyId + "/" + m; for (var d in i.bucket = r, i["X-Amz-Algorithm"] = "AWS4-HMAC-SHA256", i["X-Amz-Credential"] = l, i["X-Amz-Date"] = p, e.sessionToken && (i["X-Amz-Security-Token"] = e.sessionToken), i) if (i.hasOwnProperty(d)) { var y = {}; y[d] = i[d], o.push(y) } return i.Policy = this.preparePostPolicy(new Date(u.valueOf() + 1e3 * s), o), i["X-Amz-Signature"] = a.util.crypto.hmac(n.getSigningKey(e, c, t, "s3", !0), i.Policy, "hex"), i }, preparePostPolicy: function(e, t) { return a.util.base64.encode(JSON.stringify({ expiration: a.util.date.iso8601(e), conditions: t })) }, prepareSignedUrl: function(e) { e.addListener("validate", e.service.noPresignedContentLength), e.removeListener("build", e.service.addContentType), e.params.Body ? e.addListener("afterBuild", a.EventListeners.Core.COMPUTE_SHA256) : e.removeListener("build", e.service.computeContentMd5) }, disableBodySigning: function(e) { var t = e.httpRequest.headers; Object.prototype.hasOwnProperty.call(t, "presigned-expires") || (t["X-Amz-Content-Sha256"] = "UNSIGNED-PAYLOAD") }, noPresignedContentLength: function(e) { if (void 0 !== e.params.ContentLength) throw a.util.error(new Error, { code: "UnexpectedParameter", message: "ContentLength is not supported in pre-signed URLs." }) }, createBucket: function(e, t) { "function" !== typeof e && e || (t = t || e, e = {}); var r = this.endpoint.hostname, n = a.util.copy(e); return r === this.api.globalEndpoint || e.CreateBucketConfiguration || (n.CreateBucketConfiguration = { LocationConstraint: this.config.region }), this.makeRequest("createBucket", n, t) }, writeGetObjectResponse: function(e, t) { var r = this.makeRequest("writeGetObjectResponse", a.util.copy(e), t), n = this.endpoint.hostname; return n = -1 !== n.indexOf(this.config.region) ? n.replace("s3.", c + ".") : n.replace("s3.", c + "." + this.config.region + "."), r.httpRequest.endpoint = new a.Endpoint(n, this.config), r }, upload: function(e, t, r) { "function" === typeof t && void 0 === r && (r = t, t = null), t = t || {}, t = a.util.merge(t || {}, { service: this, params: e }); var n = new a.S3.ManagedUpload(t); return "function" === typeof r && n.send(r), n } }), a.S3.addPromisesToClass = function(e) { this.prototype.getSignedUrlPromise = a.util.promisifyMethod("getSignedUrl", e) }, a.S3.deletePromisesFromClass = function() { delete this.prototype.getSignedUrlPromise }, a.util.addPromises(a.S3) }, 22605: (e, t, r) => { var a = r(8468), n = r(37139), i = { isArnInParam: function(e, t) { var r = ((e.service.api.operations[e.operation] || {}).input || {}).members || {}; return !(!e.params[t] || !r[t]) && a.util.ARN.validate(e.params[t]) }, validateArnService: function(e) { var t = e._parsedArn; if ("s3" !== t.service && "s3-outposts" !== t.service && "s3-object-lambda" !== t.service) throw a.util.error(new Error, { code: "InvalidARN", message: "expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component" }) }, validateArnAccount: function(e) { var t = e._parsedArn; if (!/[0-9]{12}/.exec(t.accountId)) throw a.util.error(new Error, { code: "InvalidARN", message: 'ARN accountID does not match regex "[0-9]{12}"' }) }, validateS3AccessPointArn: function(e) { var t = e._parsedArn, r = t.resource[11]; if (2 !== t.resource.split(r).length) throw a.util.error(new Error, { code: "InvalidARN", message: "Access Point ARN should have one resource accesspoint/{accesspointName}" }); var n = t.resource.split(r)[1], o = n + "-" + t.accountId; if (!i.dnsCompatibleBucketName(o) || o.match(/\./)) throw a.util.error(new Error, { code: "InvalidARN", message: "Access point resource in ARN is not DNS compatible. Got " + n }); e._parsedArn.accessPoint = n }, validateOutpostsArn: function(e) { var t = e._parsedArn; if (0 !== t.resource.indexOf("outpost:") && 0 !== t.resource.indexOf("outpost/")) throw a.util.error(new Error, { code: "InvalidARN", message: "ARN resource should begin with 'outpost/'" }); var r = t.resource[7], n = t.resource.split(r)[1]; if (!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n)) throw a.util.error(new Error, { code: "InvalidARN", message: "Outpost resource in ARN is not DNS compatible. Got " + n }); e._parsedArn.outpostId = n }, validateOutpostsAccessPointArn: function(e) { var t = e._parsedArn, r = t.resource[7]; if (4 !== t.resource.split(r).length) throw a.util.error(new Error, { code: "InvalidARN", message: "Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}" }); var n = t.resource.split(r)[3], o = n + "-" + t.accountId; if (!i.dnsCompatibleBucketName(o) || o.match(/\./)) throw a.util.error(new Error, { code: "InvalidARN", message: "Access point resource in ARN is not DNS compatible. Got " + n }); e._parsedArn.accessPoint = n }, validateArnRegion: function(e, t) { void 0 === t && (t = {}); var r = i.loadUseArnRegionConfig(e), o = e._parsedArn.region, s = e.service.config.region, u = e.service.config.useFipsEndpoint, p = t.allowFipsEndpoint || !1; if (!o) { var c = "ARN region is empty"; throw "s3" === e._parsedArn.service && (c += "\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3)."), a.util.error(new Error, { code: "InvalidARN", message: c }) } if (u && !p) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "ARN endpoint is not compatible with FIPS region" }); if (o.indexOf("fips") >= 0) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "FIPS region not allowed in ARN" }); if (!r && o !== s) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "Configured region conflicts with access point region" }); if (r && n.getEndpointSuffix(o) !== n.getEndpointSuffix(s)) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "Configured region and access point region not in same partition" }); if (e.service.config.useAccelerateEndpoint) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "useAccelerateEndpoint config is not supported with access point ARN" }); if ("s3-outposts" === e._parsedArn.service && e.service.config.useDualstackEndpoint) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "Dualstack is not supported with outposts access point ARN" }) }, loadUseArnRegionConfig: function(e) { var t = "AWS_S3_USE_ARN_REGION", r = "s3_use_arn_region", n = !0, i = e.service._originalConfig || {}; if (void 0 !== e.service.config.s3UseArnRegion) return e.service.config.s3UseArnRegion; if (void 0 !== i.s3UseArnRegion) n = !0 === i.s3UseArnRegion; else if (a.util.isNode()) if ({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [t]) { var o = { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [t].trim().toLowerCase(); if (["false", "true"].indexOf(o) < 0) throw a.util.error(new Error, { code: "InvalidConfiguration", message: t + " only accepts true or false. Got " + { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [t], retryable: !1 }); n = "true" === o } else { var s = {}; try { s = a.util.getProfilesFromSharedConfig(a.util.iniLoader)[{ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_PROFILE || a.util.defaultProfile] } catch (u) {} if (s[r]) { if (["false", "true"].indexOf(s[r].trim().toLowerCase()) < 0) throw a.util.error(new Error, { code: "InvalidConfiguration", message: r + " only accepts true or false. Got " + s[r], retryable: !1 }); n = "true" === s[r].trim().toLowerCase() } } return e.service.config.s3UseArnRegion = n, n }, validatePopulateUriFromArn: function(e) { if (e.service._originalConfig && e.service._originalConfig.endpoint) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "Custom endpoint is not compatible with access point ARN" }); if (e.service.config.s3ForcePathStyle) throw a.util.error(new Error, { code: "InvalidConfiguration", message: "Cannot construct path-style endpoint with access point" }) }, dnsCompatibleBucketName: function(e) { var t = e, r = new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/), a = new RegExp(/(\d+\.){3}\d+/), n = new RegExp(/\.\./); return !(!t.match(r) || t.match(a) || t.match(n)) } }; e.exports = i }, 5387: (e, t, r) => { var a = r(8468); a.util.update(a.SQS.prototype, { setupRequestListeners: function(e) { e.addListener("build", this.buildEndpoint), e.service.config.computeChecksums && ("sendMessage" === e.operation ? e.addListener("extractData", this.verifySendMessageChecksum) : "sendMessageBatch" === e.operation ? e.addListener("extractData", this.verifySendMessageBatchChecksum) : "receiveMessage" === e.operation && e.addListener("extractData", this.verifyReceiveMessageChecksum)) }, verifySendMessageChecksum: function(e) { if (e.data) { var t = e.data.MD5OfMessageBody, r = this.params.MessageBody, a = this.service.calculateChecksum(r); if (a !== t) { var n = 'Got "' + e.data.MD5OfMessageBody + '", expecting "' + a + '".'; this.service.throwInvalidChecksumError(e, [e.data.MessageId], n) } } }, verifySendMessageBatchChecksum: function(e) { if (e.data) { var t = this.service, r = {}, n = [], i = []; a.util.arrayEach(e.data.Successful, (function(e) { r[e.Id] = e })), a.util.arrayEach(this.params.Entries, (function(e) { if (r[e.Id]) { var a = r[e.Id].MD5OfMessageBody, o = e.MessageBody; t.isChecksumValid(a, o) || (n.push(e.Id), i.push(r[e.Id].MessageId)) } })), n.length > 0 && t.throwInvalidChecksumError(e, i, "Invalid messages: " + n.join(", ")) } }, verifyReceiveMessageChecksum: function(e) { if (e.data) { var t = this.service, r = []; a.util.arrayEach(e.data.Messages, (function(e) { var a = e.MD5OfBody, n = e.Body; t.isChecksumValid(a, n) || r.push(e.MessageId) })), r.length > 0 && t.throwInvalidChecksumError(e, r, "Invalid messages: " + r.join(", ")) } }, throwInvalidChecksumError: function(e, t, r) { e.error = a.util.error(new Error, { retryable: !0, code: "InvalidChecksum", messageIds: t, message: e.request.operation + " returned an invalid MD5 response. " + r }) }, isChecksumValid: function(e, t) { return this.calculateChecksum(t) === e }, calculateChecksum: function(e) { return a.util.crypto.md5(e, "hex") }, buildEndpoint: function(e) { var t = e.httpRequest.params.QueueUrl; if (t) { e.httpRequest.endpoint = new a.Endpoint(t); var r = e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./); r && (e.httpRequest.region = r[1]) } } }) }, 28177: (e, t, r) => { var a = r(8468), n = r(21980); a.util.update(a.STS.prototype, { credentialsFrom: function(e, t) { return e ? (t || (t = new a.TemporaryCredentials), t.expired = !1, t.accessKeyId = e.Credentials.AccessKeyId, t.secretAccessKey = e.Credentials.SecretAccessKey, t.sessionToken = e.Credentials.SessionToken, t.expireTime = e.Credentials.Expiration, t) : null }, assumeRoleWithWebIdentity: function(e, t) { return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity", e, t) }, assumeRoleWithSAML: function(e, t) { return this.makeUnauthenticatedRequest("assumeRoleWithSAML", e, t) }, setupRequestListeners: function(e) { e.addListener("validate", this.optInRegionalEndpoint, !0) }, optInRegionalEndpoint: function(e) { var t = e.service, r = t.config; if (r.stsRegionalEndpoints = n(t._originalConfig, { env: "AWS_STS_REGIONAL_ENDPOINTS", sharedConfig: "sts_regional_endpoints", clientConfig: "stsRegionalEndpoints" }), "regional" === r.stsRegionalEndpoints && t.isGlobalEndpoint) { if (!r.region) throw a.util.error(new Error, { code: "ConfigError", message: "Missing region in config" }); var i = r.endpoint.indexOf(".amazonaws.com"), o = r.endpoint.substring(0, i) + "." + r.region + r.endpoint.substring(i); e.httpRequest.updateEndpoint(o), e.httpRequest.region = r.region } } }) }, 11261: (e, t, r) => { var a = r(8468); a.Signers.Bearer = a.util.inherit(a.Signers.RequestSigner, { constructor: function(e) { a.Signers.RequestSigner.call(this, e) }, addAuthorization: function(e) { this.request.headers.Authorization = "Bearer " + e.token } }) }, 10062: (e, t, r) => { var a = r(8468), n = a.util.inherit, i = "presigned-expires"; function o(e) { var t = e.httpRequest.headers[i], r = e.service.getSignerClass(e); if (delete e.httpRequest.headers["User-Agent"], delete e.httpRequest.headers["X-Amz-User-Agent"], r === a.Signers.V4) { if (t > 604800) { throw a.util.error(new Error, { code: "InvalidExpiryTime", message: "Presigning does not support expiry time greater than a week with SigV4 signing.", retryable: !1 }) } e.httpRequest.headers[i] = t } else { if (r !== a.Signers.S3) throw a.util.error(new Error, { message: "Presigning only supports S3 or SigV4 signing.", code: "UnsupportedSigner", retryable: !1 }); var n = e.service ? e.service.getSkewCorrectedDate() : a.util.date.getDate(); e.httpRequest.headers[i] = parseInt(a.util.date.unixTimestamp(n) + t, 10).toString() } } function s(e) { var t = e.httpRequest.endpoint, r = a.util.urlParse(e.httpRequest.path), n = {}; r.search && (n = a.util.queryStringParse(r.search.substr(1))); var o = e.httpRequest.headers.Authorization.split(" "); if ("AWS" === o[0]) o = o[1].split(":"), n.Signature = o.pop(), n.AWSAccessKeyId = o.join(":"), a.util.each(e.httpRequest.headers, (function(e, t) { e === i && (e = "Expires"), 0 === e.indexOf("x-amz-meta-") && (delete n[e], e = e.toLowerCase()), n[e] = t })), delete e.httpRequest.headers[i], delete n.Authorization, delete n.Host; else if ("AWS4-HMAC-SHA256" === o[0]) { o.shift(); var s = o.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; n["X-Amz-Signature"] = s, delete n.Expires } t.pathname = r.pathname, t.search = a.util.queryParamsToString(n) } a.Signers.Presign = n({ sign: function(e, t, r) { if (e.httpRequest.headers[i] = t || 3600, e.on("build", o), e.on("sign", s), e.removeListener("afterBuild", a.EventListeners.Core.SET_CONTENT_LENGTH), e.removeListener("afterBuild", a.EventListeners.Core.COMPUTE_SHA256), e.emit("beforePresign", [e]), !r) { if (e.build(), e.response.error) throw e.response.error; return a.util.urlFormat(e.httpRequest.endpoint) } e.build((function() { this.response.error ? r(this.response.error) : r(null, a.util.urlFormat(e.httpRequest.endpoint)) })) } }), e.exports = a.Signers.Presign }, 85232: (e, t, r) => { var a = r(8468), n = a.util.inherit; a.Signers.RequestSigner = n({ constructor: function(e) { this.request = e }, setServiceClientId: function(e) { this.serviceClientId = e }, getServiceClientId: function() { return this.serviceClientId } }), a.Signers.RequestSigner.getVersion = function(e) { switch (e) { case "v2": return a.Signers.V2; case "v3": return a.Signers.V3; case "s3v4": case "v4": return a.Signers.V4; case "s3": return a.Signers.S3; case "v3https": return a.Signers.V3Https; case "bearer": return a.Signers.Bearer } throw new Error("Unknown signing version " + e) }, r(50442), r(1469), r(98686), r(64355), r(60248), r(10062), r(11261) }, 60248: (e, t, r) => { var a = r(8468), n = a.util.inherit; a.Signers.S3 = n(a.Signers.RequestSigner, { subResources: { acl: 1, accelerate: 1, analytics: 1, cors: 1, lifecycle: 1, delete: 1, inventory: 1, location: 1, logging: 1, metrics: 1, notification: 1, partNumber: 1, policy: 1, requestPayment: 1, replication: 1, restore: 1, tagging: 1, torrent: 1, uploadId: 1, uploads: 1, versionId: 1, versioning: 1, versions: 1, website: 1 }, responseHeaders: { "response-content-type": 1, "response-content-language": 1, "response-expires": 1, "response-cache-control": 1, "response-content-disposition": 1, "response-content-encoding": 1 }, addAuthorization: function(e, t) { this.request.headers["presigned-expires"] || (this.request.headers["X-Amz-Date"] = a.util.date.rfc822(t)), e.sessionToken && (this.request.headers["x-amz-security-token"] = e.sessionToken); var r = this.sign(e.secretAccessKey, this.stringToSign()), n = "AWS " + e.accessKeyId + ":" + r; this.request.headers.Authorization = n }, stringToSign: function() { var e = this.request, t = []; t.push(e.method), t.push(e.headers["Content-MD5"] || ""), t.push(e.headers["Content-Type"] || ""), t.push(e.headers["presigned-expires"] || ""); var r = this.canonicalizedAmzHeaders(); return r && t.push(r), t.push(this.canonicalizedResource()), t.join("\n") }, canonicalizedAmzHeaders: function() { var e = []; a.util.each(this.request.headers, (function(t) { t.match(/^x-amz-/i) && e.push(t) })), e.sort((function(e, t) { return e.toLowerCase() < t.toLowerCase() ? -1 : 1 })); var t = []; return a.util.arrayEach.call(this, e, (function(e) { t.push(e.toLowerCase() + ":" + String(this.request.headers[e])) })), t.join("\n") }, canonicalizedResource: function() { var e = this.request, t = e.path.split("?"), r = t[0], n = t[1], i = ""; if (e.virtualHostedBucket && (i += "/" + e.virtualHostedBucket), i += r, n) { var o = []; a.util.arrayEach.call(this, n.split("&"), (function(e) { var t = e.split("=")[0], r = e.split("=")[1]; if (this.subResources[t] || this.responseHeaders[t]) { var a = { name: t }; void 0 !== r && (this.subResources[t] ? a.value = r : a.value = decodeURIComponent(r)), o.push(a) } })), o.sort((function(e, t) { return e.name < t.name ? -1 : 1 })), o.length && (n = [], a.util.arrayEach(o, (function(e) { void 0 === e.value ? n.push(e.name) : n.push(e.name + "=" + e.value) })), i += "?" + n.join("&")) } return i }, sign: function(e, t) { return a.util.crypto.hmac(e, t, "base64", "sha1") } }), e.exports = a.Signers.S3 }, 50442: (e, t, r) => { var a = r(8468), n = a.util.inherit; a.Signers.V2 = n(a.Signers.RequestSigner, { addAuthorization: function(e, t) { t || (t = a.util.date.getDate()); var r = this.request; r.params.Timestamp = a.util.date.iso8601(t), r.params.SignatureVersion = "2", r.params.SignatureMethod = "HmacSHA256", r.params.AWSAccessKeyId = e.accessKeyId, e.sessionToken && (r.params.SecurityToken = e.sessionToken), delete r.params.Signature, r.params.Signature = this.signature(e), r.body = a.util.queryParamsToString(r.params), r.headers["Content-Length"] = r.body.length }, signature: function(e) { return a.util.crypto.hmac(e.secretAccessKey, this.stringToSign(), "base64") }, stringToSign: function() { var e = []; return e.push(this.request.method), e.push(this.request.endpoint.host.toLowerCase()), e.push(this.request.pathname()), e.push(a.util.queryParamsToString(this.request.params)), e.join("\n") } }), e.exports = a.Signers.V2 }, 1469: (e, t, r) => { var a = r(8468), n = a.util.inherit; a.Signers.V3 = n(a.Signers.RequestSigner, { addAuthorization: function(e, t) { var r = a.util.date.rfc822(t); this.request.headers["X-Amz-Date"] = r, e.sessionToken && (this.request.headers["x-amz-security-token"] = e.sessionToken), this.request.headers["X-Amzn-Authorization"] = this.authorization(e, r) }, authorization: function(e) { return "AWS3 AWSAccessKeyId=" + e.accessKeyId + ",Algorithm=HmacSHA256,SignedHeaders=" + this.signedHeaders() + ",Signature=" + this.signature(e) }, signedHeaders: function() { var e = []; return a.util.arrayEach(this.headersToSign(), (function(t) { e.push(t.toLowerCase()) })), e.sort().join(";") }, canonicalHeaders: function() { var e = this.request.headers, t = []; return a.util.arrayEach(this.headersToSign(), (function(r) { t.push(r.toLowerCase().trim() + ":" + String(e[r]).trim()) })), t.sort().join("\n") + "\n" }, headersToSign: function() { var e = []; return a.util.each(this.request.headers, (function(t) { ("Host" === t || "Content-Encoding" === t || t.match(/^X-Amz/i)) && e.push(t) })), e }, signature: function(e) { return a.util.crypto.hmac(e.secretAccessKey, this.stringToSign(), "base64") }, stringToSign: function() { var e = []; return e.push(this.request.method), e.push("/"), e.push(""), e.push(this.canonicalHeaders()), e.push(this.request.body), a.util.crypto.sha256(e.join("\n")) } }), e.exports = a.Signers.V3 }, 98686: (e, t, r) => { var a = r(8468), n = a.util.inherit; r(1469), a.Signers.V3Https = n(a.Signers.V3, { authorization: function(e) { return "AWS3-HTTPS AWSAccessKeyId=" + e.accessKeyId + ",Algorithm=HmacSHA256,Signature=" + this.signature(e) }, stringToSign: function() { return this.request.headers["X-Amz-Date"] } }), e.exports = a.Signers.V3Https }, 64355: (e, t, r) => { var a = r(8468), n = r(94966), i = a.util.inherit, o = "presigned-expires"; a.Signers.V4 = i(a.Signers.RequestSigner, { constructor: function(e, t, r) { a.Signers.RequestSigner.call(this, e), this.serviceName = t, r = r || {}, this.signatureCache = "boolean" !== typeof r.signatureCache || r.signatureCache, this.operation = r.operation, this.signatureVersion = r.signatureVersion }, algorithm: "AWS4-HMAC-SHA256", addAuthorization: function(e, t) { var r = a.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g, ""); this.isPresigned() ? this.updateForPresigned(e, r) : this.addHeaders(e, r), this.request.headers.Authorization = this.authorization(e, r) }, addHeaders: function(e, t) { this.request.headers["X-Amz-Date"] = t, e.sessionToken && (this.request.headers["x-amz-security-token"] = e.sessionToken) }, updateForPresigned: function(e, t) { var r = this.credentialString(t), n = { "X-Amz-Date": t, "X-Amz-Algorithm": this.algorithm, "X-Amz-Credential": e.accessKeyId + "/" + r, "X-Amz-Expires": this.request.headers[o], "X-Amz-SignedHeaders": this.signedHeaders() }; e.sessionToken && (n["X-Amz-Security-Token"] = e.sessionToken), this.request.headers["Content-Type"] && (n["Content-Type"] = this.request.headers["Content-Type"]), this.request.headers["Content-MD5"] && (n["Content-MD5"] = this.request.headers["Content-MD5"]), this.request.headers["Cache-Control"] && (n["Cache-Control"] = this.request.headers["Cache-Control"]), a.util.each.call(this, this.request.headers, (function(e, t) { if (e !== o && this.isSignableHeader(e)) { var r = e.toLowerCase(); 0 === r.indexOf("x-amz-meta-") ? n[r] = t : 0 === r.indexOf("x-amz-") && (n[e] = t) } })); var i = this.request.path.indexOf("?") >= 0 ? "&" : "?"; this.request.path += i + a.util.queryParamsToString(n) }, authorization: function(e, t) { var r = [], a = this.credentialString(t); return r.push(this.algorithm + " Credential=" + e.accessKeyId + "/" + a), r.push("SignedHeaders=" + this.signedHeaders()), r.push("Signature=" + this.signature(e, t)), r.join(", ") }, signature: function(e, t) { var r = n.getSigningKey(e, t.substr(0, 8), this.request.region, this.serviceName, this.signatureCache); return a.util.crypto.hmac(r, this.stringToSign(t), "hex") }, stringToSign: function(e) { var t = []; return t.push("AWS4-HMAC-SHA256"), t.push(e), t.push(this.credentialString(e)), t.push(this.hexEncodedHash(this.canonicalString())), t.join("\n") }, canonicalString: function() { var e = [], t = this.request.pathname(); return "s3" !== this.serviceName && "s3v4" !== this.signatureVersion && (t = a.util.uriEscapePath(t)), e.push(this.request.method), e.push(t), e.push(this.request.search()), e.push(this.canonicalHeaders() + "\n"), e.push(this.signedHeaders()), e.push(this.hexEncodedBodyHash()), e.join("\n") }, canonicalHeaders: function() { var e = []; a.util.each.call(this, this.request.headers, (function(t, r) { e.push([t, r]) })), e.sort((function(e, t) { return e[0].toLowerCase() < t[0].toLowerCase() ? -1 : 1 })); var t = []; return a.util.arrayEach.call(this, e, (function(e) { var r = e[0].toLowerCase(); if (this.isSignableHeader(r)) { var n = e[1]; if ("undefined" === typeof n || null === n || "function" !== typeof n.toString) throw a.util.error(new Error("Header " + r + " contains invalid value"), { code: "InvalidHeader" }); t.push(r + ":" + this.canonicalHeaderValues(n.toString())) } })), t.join("\n") }, canonicalHeaderValues: function(e) { return e.replace(/\s+/g, " ").replace(/^\s+|\s+$/g, "") }, signedHeaders: function() { var e = []; return a.util.each.call(this, this.request.headers, (function(t) { t = t.toLowerCase(), this.isSignableHeader(t) && e.push(t) })), e.sort().join(";") }, credentialString: function(e) { return n.createScope(e.substr(0, 8), this.request.region, this.serviceName) }, hexEncodedHash: function(e) { return a.util.crypto.sha256(e, "hex") }, hexEncodedBodyHash: function() { var e = this.request; return this.isPresigned() && ["s3", "s3-object-lambda"].indexOf(this.serviceName) > -1 && !e.body ? "UNSIGNED-PAYLOAD" : e.headers["X-Amz-Content-Sha256"] ? e.headers["X-Amz-Content-Sha256"] : this.hexEncodedHash(this.request.body || "") }, unsignableHeaders: ["authorization", "content-type", "content-length", "user-agent", o, "expect", "x-amzn-trace-id"], isSignableHeader: function(e) { return 0 === e.toLowerCase().indexOf("x-amz-") || this.unsignableHeaders.indexOf(e) < 0 }, isPresigned: function() { return !!this.request.headers[o] } }), e.exports = a.Signers.V4 }, 94966: (e, t, r) => { var a = r(8468), n = {}, i = [], o = "aws4_request"; e.exports = { createScope: function(e, t, r) { return [e.substr(0, 8), t, r, o].join("/") }, getSigningKey: function(e, t, r, s, u) { var p = [a.util.crypto.hmac(e.secretAccessKey, e.accessKeyId, "base64"), t, r, s].join("_"); if ((u = !1 !== u) && p in n) return n[p]; var c = a.util.crypto.hmac("AWS4" + e.secretAccessKey, t, "buffer"), m = a.util.crypto.hmac(c, r, "buffer"), l = a.util.crypto.hmac(m, s, "buffer"), d = a.util.crypto.hmac(l, o, "buffer"); return u && (n[p] = d, i.push(p), i.length > 50 && delete n[i.shift()]), d }, emptyCache: function() { n = {}, i = [] } } }, 41496: e => { function t(e, t) { this.currentState = t || null, this.states = e || {} } t.prototype.runTo = function(e, t, r, a) { "function" === typeof e && (a = r, r = t, t = e, e = null); var n = this, i = n.states[n.currentState]; i.fn.call(r || n, a, (function(a) { if (a) { if (!i.fail) return t ? t.call(r, a) : null; n.currentState = i.fail } else { if (!i.accept) return t ? t.call(r) : null; n.currentState = i.accept } if (n.currentState === e) return t ? t.call(r, a) : null; n.runTo(e, t, r, a) })) }, t.prototype.addState = function(e, t, r, a) { return "function" === typeof t ? (a = t, t = null, r = null) : "function" === typeof r && (a = r, r = null), this.currentState || (this.currentState = e), this.states[e] = { accept: t, fail: r, fn: a }, this }, e.exports = t }, 23657: (e, t, r) => { var a, n = { environment: "nodejs", engine: function() { if (n.isBrowser() && "undefined" !== typeof navigator) return navigator.userAgent; var e = process.platform + "/" + process.version; return { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_EXECUTION_ENV && (e += " exec-env/" + { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" }.AWS_EXECUTION_ENV), e }, userAgent: function() { var e = n.environment, t = "aws-sdk-" + e + "/" + r(8468).VERSION; return "nodejs" === e && (t += " " + n.engine()), t }, uriEscape: function(e) { var t = encodeURIComponent(e); return t = (t = t.replace(/[^A-Za-z0-9_.~\-%]+/g, escape)).replace(/[*]/g, (function(e) { return "%" + e.charCodeAt(0).toString(16).toUpperCase() })) }, uriEscapePath: function(e) { var t = []; return n.arrayEach(e.split("/"), (function(e) { t.push(n.uriEscape(e)) })), t.join("/") }, urlParse: function(e) { return n.url.parse(e) }, urlFormat: function(e) { return n.url.format(e) }, queryStringParse: function(e) { return n.querystring.parse(e) }, queryParamsToString: function(e) { var t = [], r = n.uriEscape, a = Object.keys(e).sort(); return n.arrayEach(a, (function(a) { var i = e[a], o = r(a), s = o + "="; if (Array.isArray(i)) { var u = []; n.arrayEach(i, (function(e) { u.push(r(e)) })), s = o + "=" + u.sort().join("&" + o + "=") } else void 0 !== i && null !== i && (s = o + "=" + r(i)); t.push(s) })), t.join("&") }, readFileSync: function(e) { return n.isBrowser() ? null : r(28022).readFileSync(e, "utf-8") }, base64: { encode: function(e) { if ("number" === typeof e) throw n.error(new Error("Cannot base64 encode number " + e)); return null === e || "undefined" === typeof e ? e : n.buffer.toBuffer(e).toString("base64") }, decode: function(e) { if ("number" === typeof e) throw n.error(new Error("Cannot base64 decode number " + e)); return null === e || "undefined" === typeof e ? e : n.buffer.toBuffer(e, "base64") } }, buffer: { toBuffer: function(e, t) { return "function" === typeof n.Buffer.from && n.Buffer.from !== Uint8Array.from ? n.Buffer.from(e, t) : new n.Buffer(e, t) }, alloc: function(e, t, r) { if ("number" !== typeof e) throw new Error("size passed to alloc must be a number."); if ("function" === typeof n.Buffer.alloc) return n.Buffer.alloc(e, t, r); var a = new n.Buffer(e); return void 0 !== t && "function" === typeof a.fill && a.fill(t, void 0, void 0, r), a }, toStream: function(e) { n.Buffer.isBuffer(e) || (e = n.buffer.toBuffer(e)); var t = new n.stream.Readable, r = 0; return t._read = function(a) { if (r >= e.length) return t.push(null); var n = r + a; n > e.length && (n = e.length), t.push(e.slice(r, n)), r = n }, t }, concat: function(e) { var t, r, a = 0, i = 0; for (r = 0; r < e.length; r++) a += e[r].length; for (t = n.buffer.alloc(a), r = 0; r < e.length; r++) e[r].copy(t, i), i += e[r].length; return t } }, string: { byteLength: function(e) { if (null === e || void 0 === e) return 0; if ("string" === typeof e && (e = n.buffer.toBuffer(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) return r(28022).lstatSync(e.path).size; throw n.error(new Error("Cannot determine length of " + e), { object: e }) }, upperFirst: function(e) { return e[0].toUpperCase() + e.substr(1) }, lowerFirst: function(e) { return e[0].toLowerCase() + e.substr(1) } }, ini: { parse: function(e) { var t, r = {}; return n.arrayEach(e.split(/\r?\n/), (function(e) { if ("[" === (e = e.split(/(^|\s)[;#]/)[0].trim())[0] && "]" === e[e.length - 1]) { if ("__proto__" === (t = e.substring(1, e.length - 1)) || "__proto__" === t.split(/\s/)[1]) throw n.error(new Error("Cannot load profile name '" + t + "' from shared ini file.")) } else if (t) { var a = e.indexOf("="), i = e.length - 1; if (-1 !== a && 0 !== a && a !== i) { var o = e.substring(0, a).trim(), s = e.substring(a + 1).trim(); r[t] = r[t] || {}, r[t][o] = s } } })), r } }, fn: { noop: function() {}, callback: function(e) { if (e) throw e }, makeAsync: function(e, t) { return t && t <= e.length ? e : function() { var t = Array.prototype.slice.call(arguments, 0); t.pop()(e.apply(null, t)) } } }, date: { getDate: function() { return a || (a = r(8468)), a.config.systemClockOffset ? new Date((new Date).getTime() + a.config.systemClockOffset) : new Date }, iso8601: function(e) { return void 0 === e && (e = n.date.getDate()), e.toISOString().replace(/\.\d{3}Z$/, "Z") }, rfc822: function(e) { return void 0 === e && (e = n.date.getDate()), e.toUTCString() }, unixTimestamp: function(e) { return void 0 === e && (e = n.date.getDate()), e.getTime() / 1e3 }, from: function(e) { return "number" === typeof e ? new Date(1e3 * e) : new Date(e) }, format: function(e, t) { return t || (t = "iso8601"), n.date[t](n.date.from(e)) }, parseTimestamp: function(e) { if ("number" === typeof e) return new Date(1e3 * e); if (e.match(/^\d+$/)) return new Date(1e3 * e); if (e.match(/^\d{4}/)) return new Date(e); if (e.match(/^\w{3},/)) return new Date(e); throw n.error(new Error("unhandled timestamp format: " + e), { code: "TimestampParserError" }) } }, crypto: { crc32Table: [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], crc32: function(e) { var t = n.crypto.crc32Table, r = -1; "string" === typeof e && (e = n.buffer.toBuffer(e)); for (var a = 0; a < e.length; a++) { r = r >>> 8 ^ t[255 & (r ^ e.readUInt8(a))] } return (-1 ^ r) >>> 0 }, hmac: function(e, t, r, a) { return r || (r = "binary"), "buffer" === r && (r = void 0), a || (a = "sha256"), "string" === typeof t && (t = n.buffer.toBuffer(t)), n.crypto.lib.createHmac(a, e).update(t).digest(r) }, md5: function(e, t, r) { return n.crypto.hash("md5", e, t, r) }, sha256: function(e, t, r) { return n.crypto.hash("sha256", e, t, r) }, hash: function(e, t, r, a) { var i = n.crypto.createHash(e); r || (r = "binary"), "buffer" === r && (r = void 0), "string" === typeof t && (t = n.buffer.toBuffer(t)); var o = n.arraySliceFn(t), s = n.Buffer.isBuffer(t); if (n.isBrowser() && "undefined" !== typeof ArrayBuffer && t && t.buffer instanceof ArrayBuffer && (s = !0), a && "object" === typeof t && "function" === typeof t.on && !s) t.on("data", (function(e) { i.update(e) })), t.on("error", (function(e) { a(e) })), t.on("end", (function() { a(null, i.digest(r)) })); else { if (!a || !o || s || "undefined" === typeof FileReader) { n.isBrowser() && "object" === typeof t && !s && (t = new n.Buffer(new Uint8Array(t))); var u = i.update(t).digest(r); return a && a(null, u), u } var p = 0, c = new FileReader; c.onerror = function() { a(new Error("Failed to read data.")) }, c.onload = function() { var e = new n.Buffer(new Uint8Array(c.result)); i.update(e), p += e.length, c._continueReading() }, c._continueReading = function() { if (p >= t.size) a(null, i.digest(r)); else { var e = p + 524288; e > t.size && (e = t.size), c.readAsArrayBuffer(o.call(t, p, e)) } }, c._continueReading() } }, toHex: function(e) { for (var t = [], r = 0; r < e.length; r++) t.push(("0" + e.charCodeAt(r).toString(16)).substr(-2, 2)); return t.join("") }, createHash: function(e) { return n.crypto.lib.createHash(e) } }, abort: {}, each: function(e, t) { for (var r in e) { if (Object.prototype.hasOwnProperty.call(e, r)) if (t.call(this, r, e[r]) === n.abort) break } }, arrayEach: function(e, t) { for (var r in e) { if (Object.prototype.hasOwnProperty.call(e, r)) if (t.call(this, e[r], parseInt(r, 10)) === n.abort) break } }, update: function(e, t) { return n.each(t, (function(t, r) { e[t] = r })), e }, merge: function(e, t) { return n.update(n.copy(e), t) }, copy: function(e) { if (null === e || void 0 === e) return e; var t = {}; for (var r in e) t[r] = e[r]; return t }, isEmpty: function(e) { for (var t in e) if (Object.prototype.hasOwnProperty.call(e, t)) return !1; return !0 }, arraySliceFn: function(e) { var t = e.slice || e.webkitSlice || e.mozSlice; return "function" === typeof t ? t : null }, isType: function(e, t) { return "function" === typeof t && (t = n.typeName(t)), Object.prototype.toString.call(e) === "[object " + t + "]" }, typeName: function(e) { if (Object.prototype.hasOwnProperty.call(e, "name")) return e.name; var t = e.toString(), r = t.match(/^\s*function (.+)\(/); return r ? r[1] : t }, error: function(e, t) { var r = null; for (var a in "string" === typeof e.message && "" !== e.message && ("string" === typeof t || t && t.message) && ((r = n.copy(e)).message = e.message), e.message = e.message || null, "string" === typeof t ? e.message = t : "object" === typeof t && null !== t && (n.update(e, t), t.message && (e.message = t.message), (t.code || t.name) && (e.code = t.code || t.name), t.stack && (e.stack = t.stack)), "function" === typeof Object.defineProperty && (Object.defineProperty(e, "name", { writable: !0, enumerable: !1 }), Object.defineProperty(e, "message", { enumerable: !0 })), e.name = String(t && t.name || e.name || e.code || "Error"), e.time = new Date, r && (e.originalError = r), t || {}) if ("[" === a[0] && "]" === a[a.length - 1]) { if ("code" === (a = a.slice(1, -1)) || "message" === a) continue; e["[" + a + "]"] = "See error." + a + " for details.", Object.defineProperty(e, a, { value: e[a] || t && t[a] || r && r[a], enumerable: !1, writable: !0 }) } return e }, inherit: function(e, t) { var r = null; if (void 0 === t) t = e, e = Object, r = {}; else { var a = function() {}; a.prototype = e.prototype, r = new a } return t.constructor === Object && (t.constructor = function() { if (e !== Object) return e.apply(this, arguments) }), t.constructor.prototype = r, n.update(t.constructor.prototype, t), t.constructor.__super__ = e, t.constructor }, mixin: function() { for (var e = arguments[0], t = 1; t < arguments.length; t++) for (var r in arguments[t].prototype) { var a = arguments[t].prototype[r]; "constructor" !== r && (e.prototype[r] = a) } return e }, hideProperties: function(e, t) { "function" === typeof Object.defineProperty && n.arrayEach(t, (function(t) { Object.defineProperty(e, t, { enumerable: !1, writable: !0, configurable: !0 }) })) }, property: function(e, t, r, a, n) { var i = { configurable: !0, enumerable: void 0 === a || a }; "function" !== typeof r || n ? (i.value = r, i.writable = !0) : i.get = r, Object.defineProperty(e, t, i) }, memoizedProperty: function(e, t, r, a) { var i = null; n.property(e, t, (function() { return null === i && (i = r()), i }), a) }, hoistPayloadMember: function(e) { var t = e.request, r = t.operation, a = t.service.api.operations[r], i = a.output; if (i.payload && !a.hasEventOutput) { var o = i.members[i.payload], s = e.data[i.payload]; "structure" === o.type && n.each(s, (function(t, r) { n.property(e.data, t, r, !1) })) } }, computeSha256: function(e, t) { if (n.isNode()) { var a = n.stream.Stream, i = r(28022); if ("function" === typeof a && e instanceof a) { if ("string" !== typeof e.path) return t(new Error("Non-file stream objects are not supported with SigV4")); var o = {}; "number" === typeof e.start && (o.start = e.start), "number" === typeof e.end && (o.end = e.end), e = i.createReadStream(e.path, o) } } n.crypto.sha256(e, "hex", (function(e, r) { e ? t(e) : t(null, r) })) }, isClockSkewed: function(e) { if (e) return n.property(a.config, "isClockSkewed", Math.abs((new Date).getTime() - e) >= 3e5, !1), a.config.isClockSkewed }, applyClockOffset: function(e) { e && (a.config.systemClockOffset = e - (new Date).getTime()) }, extractRequestId: function(e) { var t = e.httpResponse.headers["x-amz-request-id"] || e.httpResponse.headers["x-amzn-requestid"]; !t && e.data && e.data.ResponseMetadata && (t = e.data.ResponseMetadata.RequestId), t && (e.requestId = t), e.error && (e.error.requestId = t) }, addPromises: function(e, t) { var r = !1; void 0 === t && a && a.config && (t = a.config.getPromisesDependency()), void 0 === t && "undefined" !== typeof Promise && (t = Promise), "function" !== typeof t && (r = !0), Array.isArray(e) || (e = [e]); for (var n = 0; n < e.length; n++) { var i = e[n]; r ? i.deletePromisesFromClass && i.deletePromisesFromClass() : i.addPromisesToClass && i.addPromisesToClass(t) } }, promisifyMethod: function(e, t) { return function() { var r = this, a = Array.prototype.slice.call(arguments); return new t((function(t, n) { a.push((function(e, r) { e ? n(e) : t(r) })), r[e].apply(r, a) })) } }, isDualstackAvailable: function(e) { if (!e) return !1; var t = r(17752); return "string" !== typeof e && (e = e.serviceIdentifier), !("string" !== typeof e || !t.hasOwnProperty(e)) && !!t[e].dualstackAvailable }, calculateRetryDelay: function(e, t, r) { t || (t = {}); var a = t.customBackoff || null; if ("function" === typeof a) return a(e, r); var n = "number" === typeof t.base ? t.base : 100; return Math.random() * (Math.pow(2, e) * n) }, handleRequestWithRetries: function(e, t, r) { t || (t = {}); var i = a.HttpClient.getInstance(), o = t.httpOptions || {}, s = 0, u = function(e) { var a = t.maxRetries || 0; if (e && "TimeoutError" === e.code && (e.retryable = !0), e && e.retryable && s < a) { var i = n.calculateRetryDelay(s, t.retryDelayOptions, e); if (i >= 0) return s++, void setTimeout(p, i + (e.retryAfter || 0)) } r(e) }, p = function() { var t = ""; i.handleRequest(e, o, (function(e) { e.on("data", (function(e) { t += e.toString() })), e.on("end", (function() { var a = e.statusCode; if (a < 300) r(null, t); else { var i = 1e3 * parseInt(e.headers["retry-after"], 10) || 0, o = n.error(new Error, { statusCode: a, retryable: a >= 500 || 429 === a }); i && o.retryable && (o.retryAfter = i), u(o) } })) }), u) }; a.util.defer(p) }, uuid: { v4: function() { return r(88904).v4() } }, convertPayloadToString: function(e) { var t = e.request, r = t.operation, a = t.service.api.operations[r].output || {}; a.payload && e.data[a.payload] && (e.data[a.payload] = e.data[a.payload].toString()) }, defer: function(e) { "object" === typeof process && "function" === typeof process.nextTick ? process.nextTick(e) : "function" === typeof setImmediate ? setImmediate(e) : setTimeout(e, 0) }, getRequestPayloadShape: function(e) { var t = e.service.api.operations; if (t) { var r = (t || {})[e.operation]; if (r && r.input && r.input.payload) return r.input.members[r.input.payload] } }, getProfilesFromSharedConfig: function(e, t) { var r = {}, a = {}; if ({ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [n.configOptInEnv]) a = e.loadFrom({ isConfig: !0, filename: { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [n.sharedConfigFileEnv] }); var i = {}; try { i = e.loadFrom({ filename: t || { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [n.configOptInEnv] && { NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [n.sharedCredentialsFileEnv] }) } catch (p) { if (!{ NODE_ENV: "production", PUBLIC_URL: "", WDS_SOCKET_HOST: void 0, WDS_SOCKET_PATH: void 0, WDS_SOCKET_PORT: void 0, FAST_REFRESH: !0, REACT_APP_API_URL: "https://chatbot.nocoai.vn/api", REACT_APP_OPENAI_KEY: "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", REACT_APP_PROJECT: "document", REACT_APP_DOC_PATH: "local/9YziSqpbHVha3Lkao23uvSXR2On1/document/s13040-023-00339-9.pdf/", REACT_APP_ID: "65607f53364ce5c47c2a0542" } [n.configOptInEnv]) throw p } for (var o = 0, s = Object.keys(a); o < s.length; o++) r[s[o]] = u(r[s[o]] || {}, a[s[o]]); for (o = 0, s = Object.keys(i); o < s.length; o++) r[s[o]] = u(r[s[o]] || {}, i[s[o]]); return r; function u(e, t) { for (var r = 0, a = Object.keys(t); r < a.length; r++) e[a[r]] = t[a[r]]; return e } }, ARN: { validate: function(e) { return e && 0 === e.indexOf("arn:") && e.split(":").length >= 6 }, parse: function(e) { var t = e.split(":"); return { partition: t[1], service: t[2], region: t[3], accountId: t[4], resource: t.slice(5).join(":") } }, build: function(e) { if (void 0 === e.service || void 0 === e.region || void 0 === e.accountId || void 0 === e.resource) throw n.error(new Error("Input ARN object is invalid")); return "arn:" + (e.partition || "aws") + ":" + e.service + ":" + e.region + ":" + e.accountId + ":" + e.resource } }, defaultProfile: "default", configOptInEnv: "AWS_SDK_LOAD_CONFIG", sharedCredentialsFileEnv: "AWS_SHARED_CREDENTIALS_FILE", sharedConfigFileEnv: "AWS_CONFIG_FILE", imdsDisabledEnv: "AWS_EC2_METADATA_DISABLED" }; e.exports = n }, 68918: (e, t, r) => { var a = r(23657), n = r(3825); function i() {} function o(e, t) { for (var r = e.getElementsByTagName(t), a = 0, n = r.length; a < n; a++) if (r[a].parentNode === e) return r[a] } function s(e, t) { switch (t || (t = {}), t.type) { case "structure": return u(e, t); case "map": return function(e, t) { var r = {}, a = t.key.name || "key", n = t.value.name || "value", i = t.flattened ? t.name : "entry", u = e.firstElementChild; for (; u;) { if (u.nodeName === i) { var p = o(u, a).textContent, c = o(u, n); r[p] = s(c, t.value) } u = u.nextElementSibling } return r }(e, t); case "list": return function(e, t) { var r = [], a = t.flattened ? t.name : t.member.name || "member", n = e.firstElementChild; for (; n;) n.nodeName === a && r.push(s(n, t.member)), n = n.nextElementSibling; return r }(e, t); case void 0: case null: return function(e) { if (void 0 === e || null === e) return ""; if (!e.firstElementChild) return null === e.parentNode.parentNode ? {} : 0 === e.childNodes.length ? "" : e.textContent; var t = { type: "structure", members: {} }, r = e.firstElementChild; for (; r;) { var a = r.nodeName; Object.prototype.hasOwnProperty.call(t.members, a) ? t.members[a].type = "list" : t.members[a] = { name: a }, r = r.nextElementSibling } return u(e, t) }(e); default: return function(e, t) { if (e.getAttribute) { var r = e.getAttribute("encoding"); "base64" === r && (t = new n.create({ type: r })) } var a = e.textContent; "" === a && (a = null); return "function" === typeof t.toType ? t.toType(a) : a }(e, t) } } function u(e, t) { var r = {}; return null === e || a.each(t.members, (function(a, n) { if (n.isXmlAttribute) { if (Object.prototype.hasOwnProperty.call(e.attributes, n.name)) { var i = e.attributes[n.name].value; r[a] = s({ textContent: i }, n) } } else { var u = n.flattened ? e : o(e, n.name); u ? r[a] = s(u, n) : n.flattened || "list" !== n.type || t.api.xmlNoDefaultLists || (r[a] = n.defaultValue) } })), r } i.prototype.parse = function(e, t) { if ("" === e.replace(/^\s+/, "")) return {}; var r, n; try { if (window.DOMParser) { try { r = (new DOMParser).parseFromString(e, "text/xml") } catch (m) { throw a.error(new Error("Parse error in document"), { originalError: m, code: "XMLParserError", retryable: !0 }) } if (null === r.documentElement) throw a.error(new Error("Cannot parse empty document."), { code: "XMLParserError", retryable: !0 }); var i = r.getElementsByTagName("parsererror")[0]; if (i && (i.parentNode === r || "body" === i.parentNode.nodeName || i.parentNode.parentNode === r || "body" === i.parentNode.parentNode.nodeName)) { var u = i.getElementsByTagName("div")[0] || i; throw a.error(new Error(u.textContent || "Parser error in document"), { code: "XMLParserError", retryable: !0 }) } } else { if (!window.ActiveXObject) throw new Error("Cannot load XML parser"); if ((r = new window.ActiveXObject("Microsoft.XMLDOM")).async = !1, !r.loadXML(e)) throw a.error(new Error("Parse error in document"), { code: "XMLParserError", retryable: !0 }) } } catch (l) { n = l } if (r && r.documentElement && !n) { var p = s(r.documentElement, t), c = o(r.documentElement, "ResponseMetadata"); return c && (p.ResponseMetadata = s(c, {})), p } if (n) throw a.error(n || new Error, { code: "XMLParserError", retryable: !0 }); return {} }, e.exports = i }, 98302: (e, t, r) => { var a = r(23657), n = r(54731).XmlNode, i = r(27688).XmlText; function o() {} function s(e, t, r) { switch (r.type) { case "structure": return function(e, t, r) { a.arrayEach(r.memberNames, (function(a) { var i = r.members[a]; if ("body" === i.location) { var o = t[a], p = i.name; if (void 0 !== o && null !== o) if (i.isXmlAttribute) e.addAttribute(p, o); else if (i.flattened) s(e, o, i); else { var c = new n(p); e.addChildNode(c), u(c, i), s(c, o, i) } } })) }(e, t, r); case "map": return function(e, t, r) { var i = r.key.name || "key", o = r.value.name || "value"; a.each(t, (function(t, a) { var u = new n(r.flattened ? r.name : "entry"); e.addChildNode(u); var p = new n(i), c = new n(o); u.addChildNode(p), u.addChildNode(c), s(p, t, r.key), s(c, a, r.value) })) }(e, t, r); case "list": return function(e, t, r) { r.flattened ? a.arrayEach(t, (function(t) { var a = r.member.name || r.name, i = new n(a); e.addChildNode(i), s(i, t, r.member) })) : a.arrayEach(t, (function(t) { var a = r.member.name || "member", i = new n(a); e.addChildNode(i), s(i, t, r.member) })) }(e, t, r); default: return function(e, t, r) { e.addChildNode(new i(r.toWireFormat(t))) }(e, t, r) } } function u(e, t, r) { var a, n = "xmlns"; t.xmlNamespaceUri ? (a = t.xmlNamespaceUri, t.xmlNamespacePrefix && (n += ":" + t.xmlNamespacePrefix)) : r && t.api.xmlNamespaceUri && (a = t.api.xmlNamespaceUri), a && e.addAttribute(n, a) } o.prototype.toXML = function(e, t, r, a) { var i = new n(r); return u(i, t, !0), s(i, e, t), i.children.length > 0 || a ? i.toString() : "" }, e.exports = o }, 7651: e => { e.exports = { escapeAttribute: function(e) { return e.replace(/&/g, "&").replace(/'/g, "'").replace(//g, ">").replace(/"/g, """) } } }, 25483: e => { e.exports = { escapeElement: function(e) { return e.replace(/&/g, "&").replace(//g, ">").replace(/\r/g, " ").replace(/\n/g, " ").replace(/\u0085/g, "…").replace(/\u2028/, "
") } } }, 54731: (e, t, r) => { var a = r(7651).escapeAttribute; function n(e, t) { void 0 === t && (t = []), this.name = e, this.children = t, this.attributes = {} } n.prototype.addAttribute = function(e, t) { return this.attributes[e] = t, this }, n.prototype.addChildNode = function(e) { return this.children.push(e), this }, n.prototype.removeAttribute = function(e) { return delete this.attributes[e], this }, n.prototype.toString = function() { for (var e = Boolean(this.children.length), t = "<" + this.name, r = this.attributes, n = 0, i = Object.keys(r); n < i.length; n++) { var o = i[n], s = r[o]; "undefined" !== typeof s && null !== s && (t += " " + o + '="' + a("" + s) + '"') } return t + (e ? ">" + this.children.map((function(e) { return e.toString() })).join("") + "" : "/>") }, e.exports = { XmlNode: n } }, 27688: (e, t, r) => { var a = r(25483).escapeElement; function n(e) { this.value = e } n.prototype.toString = function() { return a("" + this.value) }, e.exports = { XmlText: n } }, 50038: (e, t, r) => { "use strict"; var a = r(60650), n = function() { function e(e) { void 0 === e && (e = 1e3), this.maxSize = e, this.cache = new a.LRUCache(e) } return Object.defineProperty(e.prototype, "size", { get: function() { return this.cache.length }, enumerable: !0, configurable: !0 }), e.prototype.put = function(t, r) { var a = "string" !== typeof t ? e.getKeyString(t) : t, n = this.populateValue(r); this.cache.put(a, n) }, e.prototype.get = function(t) { var r = "string" !== typeof t ? e.getKeyString(t) : t, a = Date.now(), n = this.cache.get(r); if (n) { for (var i = n.length - 1; i >= 0; i--) { n[i].Expire < a && n.splice(i, 1) } if (0 === n.length) return void this.cache.remove(r) } return n }, e.getKeyString = function(e) { for (var t = [], r = Object.keys(e).sort(), a = 0; a < r.length; a++) { var n = r[a]; void 0 !== e[n] && t.push(e[n]) } return t.join(" ") }, e.prototype.populateValue = function(e) { var t = Date.now(); return e.map((function(e) { return { Address: e.Address || "", Expire: t + 60 * (e.CachePeriodInMinutes || 1) * 1e3 } })) }, e.prototype.empty = function() { this.cache.empty() }, e.prototype.remove = function(t) { var r = "string" !== typeof t ? e.getKeyString(t) : t; this.cache.remove(r) }, e }(); t.$ = n }, 60650: (e, t) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = function(e, t) { this.key = e, this.value = t }, a = function() { function e(e) { if (this.nodeMap = {}, this.size = 0, "number" !== typeof e || e < 1) throw new Error("Cache size can only be positive number"); this.sizeLimit = e } return Object.defineProperty(e.prototype, "length", { get: function() { return this.size }, enumerable: !0, configurable: !0 }), e.prototype.prependToList = function(e) { this.headerNode ? (this.headerNode.prev = e, e.next = this.headerNode) : this.tailNode = e, this.headerNode = e, this.size++ }, e.prototype.removeFromTail = function() { if (this.tailNode) { var e = this.tailNode, t = e.prev; return t && (t.next = void 0), e.prev = void 0, this.tailNode = t, this.size--, e } }, e.prototype.detachFromList = function(e) { this.headerNode === e && (this.headerNode = e.next), this.tailNode === e && (this.tailNode = e.prev), e.prev && (e.prev.next = e.next), e.next && (e.next.prev = e.prev), e.next = void 0, e.prev = void 0, this.size-- }, e.prototype.get = function(e) { if (this.nodeMap[e]) { var t = this.nodeMap[e]; return this.detachFromList(t), this.prependToList(t), t.value } }, e.prototype.remove = function(e) { if (this.nodeMap[e]) { var t = this.nodeMap[e]; this.detachFromList(t), delete this.nodeMap[e] } }, e.prototype.put = function(e, t) { if (this.nodeMap[e]) this.remove(e); else if (this.size === this.sizeLimit) { var a = this.removeFromTail().key; delete this.nodeMap[a] } var n = new r(e, t); this.nodeMap[e] = n, this.prependToList(n) }, e.prototype.empty = function() { for (var e = Object.keys(this.nodeMap), t = 0; t < e.length; t++) { var r = e[t], a = this.nodeMap[r]; this.detachFromList(a), delete this.nodeMap[r] } }, e }(); t.LRUCache = a }, 2009: (e, t) => { "use strict"; t.byteLength = function(e) { var t = s(e), r = t[0], a = t[1]; return 3 * (r + a) / 4 - a }, t.toByteArray = function(e) { var t, r, i = s(e), o = i[0], u = i[1], p = new n(function(e, t, r) { return 3 * (t + r) / 4 - r }(0, o, u)), c = 0, m = u > 0 ? o - 4 : o; for (r = 0; r < m; r += 4) t = a[e.charCodeAt(r)] << 18 | a[e.charCodeAt(r + 1)] << 12 | a[e.charCodeAt(r + 2)] << 6 | a[e.charCodeAt(r + 3)], p[c++] = t >> 16 & 255, p[c++] = t >> 8 & 255, p[c++] = 255 & t; 2 === u && (t = a[e.charCodeAt(r)] << 2 | a[e.charCodeAt(r + 1)] >> 4, p[c++] = 255 & t); 1 === u && (t = a[e.charCodeAt(r)] << 10 | a[e.charCodeAt(r + 1)] << 4 | a[e.charCodeAt(r + 2)] >> 2, p[c++] = t >> 8 & 255, p[c++] = 255 & t); return p }, t.fromByteArray = function(e) { for (var t, a = e.length, n = a % 3, i = [], o = 16383, s = 0, p = a - n; s < p; s += o) i.push(u(e, s, s + o > p ? p : s + o)); 1 === n ? (t = e[a - 1], i.push(r[t >> 2] + r[t << 4 & 63] + "==")) : 2 === n && (t = (e[a - 2] << 8) + e[a - 1], i.push(r[t >> 10] + r[t >> 4 & 63] + r[t << 2 & 63] + "=")); return i.join("") }; for (var r = [], a = [], n = "undefined" !== typeof Uint8Array ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0; o < 64; ++o) r[o] = i[o], a[i.charCodeAt(o)] = o; function s(e) { var t = e.length; if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4"); var r = e.indexOf("="); return -1 === r && (r = t), [r, r === t ? 0 : 4 - r % 4] } function u(e, t, a) { for (var n, i, o = [], s = t; s < a; s += 3) n = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (255 & e[s + 2]), o.push(r[(i = n) >> 18 & 63] + r[i >> 12 & 63] + r[i >> 6 & 63] + r[63 & i]); return o.join("") } a["-".charCodeAt(0)] = 62, a["_".charCodeAt(0)] = 63 }, 19778: (e, t, r) => { "use strict"; var a = r(2009), n = r(89234), i = r(97379); function o() { return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823 } function s(e, t) { if (o() < t) throw new RangeError("Invalid typed array length"); return u.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = u.prototype : (null === e && (e = new u(t)), e.length = t), e } function u(e, t, r) { if (!u.TYPED_ARRAY_SUPPORT && !(this instanceof u)) return new u(e, t, r); if ("number" === typeof e) { if ("string" === typeof t) throw new Error("If encoding is specified then the first argument must be a string"); return m(this, e) } return p(this, e, t, r) } function p(e, t, r, a) { if ("number" === typeof t) throw new TypeError('"value" argument must not be a number'); return "undefined" !== typeof ArrayBuffer && t instanceof ArrayBuffer ? function(e, t, r, a) { if (t.byteLength, r < 0 || t.byteLength < r) throw new RangeError("'offset' is out of bounds"); if (t.byteLength < r + (a || 0)) throw new RangeError("'length' is out of bounds"); t = void 0 === r && void 0 === a ? new Uint8Array(t) : void 0 === a ? new Uint8Array(t, r) : new Uint8Array(t, r, a); u.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = u.prototype : e = l(e, t); return e }(e, t, r, a) : "string" === typeof t ? function(e, t, r) { "string" === typeof r && "" !== r || (r = "utf8"); if (!u.isEncoding(r)) throw new TypeError('"encoding" must be a valid string encoding'); var a = 0 | y(t, r); e = s(e, a); var n = e.write(t, r); n !== a && (e = e.slice(0, n)); return e }(e, t, r) : function(e, t) { if (u.isBuffer(t)) { var r = 0 | d(t.length); return 0 === (e = s(e, r)).length || t.copy(e, 0, 0, r), e } if (t) { if ("undefined" !== typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" !== typeof t.length || (a = t.length) !== a ? s(e, 0) : l(e, t); if ("Buffer" === t.type && i(t.data)) return l(e, t.data) } var a; throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") }(e, t) } function c(e) { if ("number" !== typeof e) throw new TypeError('"size" argument must be a number'); if (e < 0) throw new RangeError('"size" argument must not be negative') } function m(e, t) { if (c(t), e = s(e, t < 0 ? 0 : 0 | d(t)), !u.TYPED_ARRAY_SUPPORT) for (var r = 0; r < t; ++r) e[r] = 0; return e } function l(e, t) { var r = t.length < 0 ? 0 : 0 | d(t.length); e = s(e, r); for (var a = 0; a < r; a += 1) e[a] = 255 & t[a]; return e } function d(e) { if (e >= o()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o().toString(16) + " bytes"); return 0 | e } function y(e, t) { if (u.isBuffer(e)) return e.length; if ("undefined" !== typeof ArrayBuffer && "function" === typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength; "string" !== typeof e && (e = "" + e); var r = e.length; if (0 === r) return 0; for (var a = !1;;) switch (t) { case "ascii": case "latin1": case "binary": return r; case "utf8": case "utf-8": case void 0: return F(e).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return 2 * r; case "hex": return r >>> 1; case "base64": return V(e).length; default: if (a) return F(e).length; t = ("" + t).toLowerCase(), a = !0 } } function b(e, t, r) { var a = !1; if ((void 0 === t || t < 0) && (t = 0), t > this.length) return ""; if ((void 0 === r || r > this.length) && (r = this.length), r <= 0) return ""; if ((r >>>= 0) <= (t >>>= 0)) return ""; for (e || (e = "utf8");;) switch (e) { case "hex": return E(this, t, r); case "utf8": case "utf-8": return v(this, t, r); case "ascii": return D(this, t, r); case "latin1": case "binary": return x(this, t, r); case "base64": return A(this, t, r); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return P(this, t, r); default: if (a) throw new TypeError("Unknown encoding: " + e); e = (e + "").toLowerCase(), a = !0 } } function g(e, t, r) { var a = e[t]; e[t] = e[r], e[r] = a } function h(e, t, r, a, n) { if (0 === e.length) return -1; if ("string" === typeof r ? (a = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, isNaN(r) && (r = n ? 0 : e.length - 1), r < 0 && (r = e.length + r), r >= e.length) { if (n) return -1; r = e.length - 1 } else if (r < 0) { if (!n) return -1; r = 0 } if ("string" === typeof t && (t = u.from(t, a)), u.isBuffer(t)) return 0 === t.length ? -1 : S(e, t, r, a, n); if ("number" === typeof t) return t &= 255, u.TYPED_ARRAY_SUPPORT && "function" === typeof Uint8Array.prototype.indexOf ? n ? Uint8Array.prototype.indexOf.call(e, t, r) : Uint8Array.prototype.lastIndexOf.call(e, t, r) : S(e, [t], r, a, n); throw new TypeError("val must be string, number or Buffer") } function S(e, t, r, a, n) { var i, o = 1, s = e.length, u = t.length; if (void 0 !== a && ("ucs2" === (a = String(a).toLowerCase()) || "ucs-2" === a || "utf16le" === a || "utf-16le" === a)) { if (e.length < 2 || t.length < 2) return -1; o = 2, s /= 2, u /= 2, r /= 2 } function p(e, t) { return 1 === o ? e[t] : e.readUInt16BE(t * o) } if (n) { var c = -1; for (i = r; i < s; i++) if (p(e, i) === p(t, -1 === c ? 0 : i - c)) { if (-1 === c && (c = i), i - c + 1 === u) return c * o } else - 1 !== c && (i -= i - c), c = -1 } else for (r + u > s && (r = s - u), i = r; i >= 0; i--) { for (var m = !0, l = 0; l < u; l++) if (p(e, i + l) !== p(t, l)) { m = !1; break } if (m) return i } return -1 } function f(e, t, r, a) { r = Number(r) || 0; var n = e.length - r; a ? (a = Number(a)) > n && (a = n) : a = n; var i = t.length; if (i % 2 !== 0) throw new TypeError("Invalid hex string"); a > i / 2 && (a = i / 2); for (var o = 0; o < a; ++o) { var s = parseInt(t.substr(2 * o, 2), 16); if (isNaN(s)) return o; e[r + o] = s } return o } function I(e, t, r, a) { return z(F(t, e.length - r), e, r, a) } function N(e, t, r, a) { return z(function(e) { for (var t = [], r = 0; r < e.length; ++r) t.push(255 & e.charCodeAt(r)); return t }(t), e, r, a) } function T(e, t, r, a) { return N(e, t, r, a) } function k(e, t, r, a) { return z(V(t), e, r, a) } function C(e, t, r, a) { return z(function(e, t) { for (var r, a, n, i = [], o = 0; o < e.length && !((t -= 2) < 0); ++o) a = (r = e.charCodeAt(o)) >> 8, n = r % 256, i.push(n), i.push(a); return i }(t, e.length - r), e, r, a) } function A(e, t, r) { return 0 === t && r === e.length ? a.fromByteArray(e) : a.fromByteArray(e.slice(t, r)) } function v(e, t, r) { r = Math.min(e.length, r); for (var a = [], n = t; n < r;) { var i, o, s, u, p = e[n], c = null, m = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1; if (n + m <= r) switch (m) { case 1: p < 128 && (c = p); break; case 2: 128 === (192 & (i = e[n + 1])) && (u = (31 & p) << 6 | 63 & i) > 127 && (c = u); break; case 3: i = e[n + 1], o = e[n + 2], 128 === (192 & i) && 128 === (192 & o) && (u = (15 & p) << 12 | (63 & i) << 6 | 63 & o) > 2047 && (u < 55296 || u > 57343) && (c = u); break; case 4: i = e[n + 1], o = e[n + 2], s = e[n + 3], 128 === (192 & i) && 128 === (192 & o) && 128 === (192 & s) && (u = (15 & p) << 18 | (63 & i) << 12 | (63 & o) << 6 | 63 & s) > 65535 && u < 1114112 && (c = u) } null === c ? (c = 65533, m = 1) : c > 65535 && (c -= 65536, a.push(c >>> 10 & 1023 | 55296), c = 56320 | 1023 & c), a.push(c), n += m } return function(e) { var t = e.length; if (t <= R) return String.fromCharCode.apply(String, e); var r = "", a = 0; for (; a < t;) r += String.fromCharCode.apply(String, e.slice(a, a += R)); return r }(a) } t.lW = u, t.h2 = 50, u.TYPED_ARRAY_SUPPORT = void 0 !== r.g.TYPED_ARRAY_SUPPORT ? r.g.TYPED_ARRAY_SUPPORT : function() { try { var e = new Uint8Array(1); return e.__proto__ = { __proto__: Uint8Array.prototype, foo: function() { return 42 } }, 42 === e.foo() && "function" === typeof e.subarray && 0 === e.subarray(1, 1).byteLength } catch (t) { return !1 } }(), o(), u.poolSize = 8192, u._augment = function(e) { return e.__proto__ = u.prototype, e }, u.from = function(e, t, r) { return p(null, e, t, r) }, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, "undefined" !== typeof Symbol && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: !0 })), u.alloc = function(e, t, r) { return function(e, t, r, a) { return c(t), t <= 0 ? s(e, t) : void 0 !== r ? "string" === typeof a ? s(e, t).fill(r, a) : s(e, t).fill(r) : s(e, t) }(null, e, t, r) }, u.allocUnsafe = function(e) { return m(null, e) }, u.allocUnsafeSlow = function(e) { return m(null, e) }, u.isBuffer = function(e) { return !(null == e || !e._isBuffer) }, u.compare = function(e, t) { if (!u.isBuffer(e) || !u.isBuffer(t)) throw new TypeError("Arguments must be Buffers"); if (e === t) return 0; for (var r = e.length, a = t.length, n = 0, i = Math.min(r, a); n < i; ++n) if (e[n] !== t[n]) { r = e[n], a = t[n]; break } return r < a ? -1 : a < r ? 1 : 0 }, u.isEncoding = function(e) { switch (String(e).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return !0; default: return !1 } }, u.concat = function(e, t) { if (!i(e)) throw new TypeError('"list" argument must be an Array of Buffers'); if (0 === e.length) return u.alloc(0); var r; if (void 0 === t) for (t = 0, r = 0; r < e.length; ++r) t += e[r].length; var a = u.allocUnsafe(t), n = 0; for (r = 0; r < e.length; ++r) { var o = e[r]; if (!u.isBuffer(o)) throw new TypeError('"list" argument must be an Array of Buffers'); o.copy(a, n), n += o.length } return a }, u.byteLength = y, u.prototype._isBuffer = !0, u.prototype.swap16 = function() { var e = this.length; if (e % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); for (var t = 0; t < e; t += 2) g(this, t, t + 1); return this }, u.prototype.swap32 = function() { var e = this.length; if (e % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); for (var t = 0; t < e; t += 4) g(this, t, t + 3), g(this, t + 1, t + 2); return this }, u.prototype.swap64 = function() { var e = this.length; if (e % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); for (var t = 0; t < e; t += 8) g(this, t, t + 7), g(this, t + 1, t + 6), g(this, t + 2, t + 5), g(this, t + 3, t + 4); return this }, u.prototype.toString = function() { var e = 0 | this.length; return 0 === e ? "" : 0 === arguments.length ? v(this, 0, e) : b.apply(this, arguments) }, u.prototype.equals = function(e) { if (!u.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); return this === e || 0 === u.compare(this, e) }, u.prototype.inspect = function() { var e = "", r = t.h2; return this.length > 0 && (e = this.toString("hex", 0, r).match(/.{2}/g).join(" "), this.length > r && (e += " ... ")), "" }, u.prototype.compare = function(e, t, r, a, n) { if (!u.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); if (void 0 === t && (t = 0), void 0 === r && (r = e ? e.length : 0), void 0 === a && (a = 0), void 0 === n && (n = this.length), t < 0 || r > e.length || a < 0 || n > this.length) throw new RangeError("out of range index"); if (a >= n && t >= r) return 0; if (a >= n) return -1; if (t >= r) return 1; if (this === e) return 0; for (var i = (n >>>= 0) - (a >>>= 0), o = (r >>>= 0) - (t >>>= 0), s = Math.min(i, o), p = this.slice(a, n), c = e.slice(t, r), m = 0; m < s; ++m) if (p[m] !== c[m]) { i = p[m], o = c[m]; break } return i < o ? -1 : o < i ? 1 : 0 }, u.prototype.includes = function(e, t, r) { return -1 !== this.indexOf(e, t, r) }, u.prototype.indexOf = function(e, t, r) { return h(this, e, t, r, !0) }, u.prototype.lastIndexOf = function(e, t, r) { return h(this, e, t, r, !1) }, u.prototype.write = function(e, t, r, a) { if (void 0 === t) a = "utf8", r = this.length, t = 0; else if (void 0 === r && "string" === typeof t) a = t, r = this.length, t = 0; else { if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); t |= 0, isFinite(r) ? (r |= 0, void 0 === a && (a = "utf8")) : (a = r, r = void 0) } var n = this.length - t; if ((void 0 === r || r > n) && (r = n), e.length > 0 && (r < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds"); a || (a = "utf8"); for (var i = !1;;) switch (a) { case "hex": return f(this, e, t, r); case "utf8": case "utf-8": return I(this, e, t, r); case "ascii": return N(this, e, t, r); case "latin1": case "binary": return T(this, e, t, r); case "base64": return k(this, e, t, r); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return C(this, e, t, r); default: if (i) throw new TypeError("Unknown encoding: " + a); a = ("" + a).toLowerCase(), i = !0 } }, u.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) } }; var R = 4096; function D(e, t, r) { var a = ""; r = Math.min(e.length, r); for (var n = t; n < r; ++n) a += String.fromCharCode(127 & e[n]); return a } function x(e, t, r) { var a = ""; r = Math.min(e.length, r); for (var n = t; n < r; ++n) a += String.fromCharCode(e[n]); return a } function E(e, t, r) { var a = e.length; (!t || t < 0) && (t = 0), (!r || r < 0 || r > a) && (r = a); for (var n = "", i = t; i < r; ++i) n += U(e[i]); return n } function P(e, t, r) { for (var a = e.slice(t, r), n = "", i = 0; i < a.length; i += 2) n += String.fromCharCode(a[i] + 256 * a[i + 1]); return n } function M(e, t, r) { if (e % 1 !== 0 || e < 0) throw new RangeError("offset is not uint"); if (e + t > r) throw new RangeError("Trying to access beyond buffer length") } function q(e, t, r, a, n, i) { if (!u.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (t > n || t < i) throw new RangeError('"value" argument is out of bounds'); if (r + a > e.length) throw new RangeError("Index out of range") } function w(e, t, r, a) { t < 0 && (t = 65535 + t + 1); for (var n = 0, i = Math.min(e.length - r, 2); n < i; ++n) e[r + n] = (t & 255 << 8 * (a ? n : 1 - n)) >>> 8 * (a ? n : 1 - n) } function L(e, t, r, a) { t < 0 && (t = 4294967295 + t + 1); for (var n = 0, i = Math.min(e.length - r, 4); n < i; ++n) e[r + n] = t >>> 8 * (a ? n : 3 - n) & 255 } function _(e, t, r, a, n, i) { if (r + a > e.length) throw new RangeError("Index out of range"); if (r < 0) throw new RangeError("Index out of range") } function O(e, t, r, a, i) { return i || _(e, 0, r, 4), n.write(e, t, r, a, 23, 4), r + 4 } function G(e, t, r, a, i) { return i || _(e, 0, r, 8), n.write(e, t, r, a, 52, 8), r + 8 } u.prototype.slice = function(e, t) { var r, a = this.length; if ((e = ~~e) < 0 ? (e += a) < 0 && (e = 0) : e > a && (e = a), (t = void 0 === t ? a : ~~t) < 0 ? (t += a) < 0 && (t = 0) : t > a && (t = a), t < e && (t = e), u.TYPED_ARRAY_SUPPORT)(r = this.subarray(e, t)).__proto__ = u.prototype; else { var n = t - e; r = new u(n, void 0); for (var i = 0; i < n; ++i) r[i] = this[i + e] } return r }, u.prototype.readUIntLE = function(e, t, r) { e |= 0, t |= 0, r || M(e, t, this.length); for (var a = this[e], n = 1, i = 0; ++i < t && (n *= 256);) a += this[e + i] * n; return a }, u.prototype.readUIntBE = function(e, t, r) { e |= 0, t |= 0, r || M(e, t, this.length); for (var a = this[e + --t], n = 1; t > 0 && (n *= 256);) a += this[e + --t] * n; return a }, u.prototype.readUInt8 = function(e, t) { return t || M(e, 1, this.length), this[e] }, u.prototype.readUInt16LE = function(e, t) { return t || M(e, 2, this.length), this[e] | this[e + 1] << 8 }, u.prototype.readUInt16BE = function(e, t) { return t || M(e, 2, this.length), this[e] << 8 | this[e + 1] }, u.prototype.readUInt32LE = function(e, t) { return t || M(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3] }, u.prototype.readUInt32BE = function(e, t) { return t || M(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]) }, u.prototype.readIntLE = function(e, t, r) { e |= 0, t |= 0, r || M(e, t, this.length); for (var a = this[e], n = 1, i = 0; ++i < t && (n *= 256);) a += this[e + i] * n; return a >= (n *= 128) && (a -= Math.pow(2, 8 * t)), a }, u.prototype.readIntBE = function(e, t, r) { e |= 0, t |= 0, r || M(e, t, this.length); for (var a = t, n = 1, i = this[e + --a]; a > 0 && (n *= 256);) i += this[e + --a] * n; return i >= (n *= 128) && (i -= Math.pow(2, 8 * t)), i }, u.prototype.readInt8 = function(e, t) { return t || M(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] }, u.prototype.readInt16LE = function(e, t) { t || M(e, 2, this.length); var r = this[e] | this[e + 1] << 8; return 32768 & r ? 4294901760 | r : r }, u.prototype.readInt16BE = function(e, t) { t || M(e, 2, this.length); var r = this[e + 1] | this[e] << 8; return 32768 & r ? 4294901760 | r : r }, u.prototype.readInt32LE = function(e, t) { return t || M(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24 }, u.prototype.readInt32BE = function(e, t) { return t || M(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3] }, u.prototype.readFloatLE = function(e, t) { return t || M(e, 4, this.length), n.read(this, e, !0, 23, 4) }, u.prototype.readFloatBE = function(e, t) { return t || M(e, 4, this.length), n.read(this, e, !1, 23, 4) }, u.prototype.readDoubleLE = function(e, t) { return t || M(e, 8, this.length), n.read(this, e, !0, 52, 8) }, u.prototype.readDoubleBE = function(e, t) { return t || M(e, 8, this.length), n.read(this, e, !1, 52, 8) }, u.prototype.writeUIntLE = function(e, t, r, a) { (e = +e, t |= 0, r |= 0, a) || q(this, e, t, r, Math.pow(2, 8 * r) - 1, 0); var n = 1, i = 0; for (this[t] = 255 & e; ++i < r && (n *= 256);) this[t + i] = e / n & 255; return t + r }, u.prototype.writeUIntBE = function(e, t, r, a) { (e = +e, t |= 0, r |= 0, a) || q(this, e, t, r, Math.pow(2, 8 * r) - 1, 0); var n = r - 1, i = 1; for (this[t + n] = 255 & e; --n >= 0 && (i *= 256);) this[t + n] = e / i & 255; return t + r }, u.prototype.writeUInt8 = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1 }, u.prototype.writeUInt16LE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : w(this, e, t, !0), t + 2 }, u.prototype.writeUInt16BE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : w(this, e, t, !1), t + 2 }, u.prototype.writeUInt32LE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : L(this, e, t, !0), t + 4 }, u.prototype.writeUInt32BE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : L(this, e, t, !1), t + 4 }, u.prototype.writeIntLE = function(e, t, r, a) { if (e = +e, t |= 0, !a) { var n = Math.pow(2, 8 * r - 1); q(this, e, t, r, n - 1, -n) } var i = 0, o = 1, s = 0; for (this[t] = 255 & e; ++i < r && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + i - 1] && (s = 1), this[t + i] = (e / o >> 0) - s & 255; return t + r }, u.prototype.writeIntBE = function(e, t, r, a) { if (e = +e, t |= 0, !a) { var n = Math.pow(2, 8 * r - 1); q(this, e, t, r, n - 1, -n) } var i = r - 1, o = 1, s = 0; for (this[t + i] = 255 & e; --i >= 0 && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + i + 1] && (s = 1), this[t + i] = (e / o >> 0) - s & 255; return t + r }, u.prototype.writeInt8 = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1 }, u.prototype.writeInt16LE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : w(this, e, t, !0), t + 2 }, u.prototype.writeInt16BE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : w(this, e, t, !1), t + 2 }, u.prototype.writeInt32LE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : L(this, e, t, !0), t + 4 }, u.prototype.writeInt32BE = function(e, t, r) { return e = +e, t |= 0, r || q(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : L(this, e, t, !1), t + 4 }, u.prototype.writeFloatLE = function(e, t, r) { return O(this, e, t, !0, r) }, u.prototype.writeFloatBE = function(e, t, r) { return O(this, e, t, !1, r) }, u.prototype.writeDoubleLE = function(e, t, r) { return G(this, e, t, !0, r) }, u.prototype.writeDoubleBE = function(e, t, r) { return G(this, e, t, !1, r) }, u.prototype.copy = function(e, t, r, a) { if (r || (r = 0), a || 0 === a || (a = this.length), t >= e.length && (t = e.length), t || (t = 0), a > 0 && a < r && (a = r), a === r) return 0; if (0 === e.length || 0 === this.length) return 0; if (t < 0) throw new RangeError("targetStart out of bounds"); if (r < 0 || r >= this.length) throw new RangeError("sourceStart out of bounds"); if (a < 0) throw new RangeError("sourceEnd out of bounds"); a > this.length && (a = this.length), e.length - t < a - r && (a = e.length - t + r); var n, i = a - r; if (this === e && r < t && t < a) for (n = i - 1; n >= 0; --n) e[n + t] = this[n + r]; else if (i < 1e3 || !u.TYPED_ARRAY_SUPPORT) for (n = 0; n < i; ++n) e[n + t] = this[n + r]; else Uint8Array.prototype.set.call(e, this.subarray(r, r + i), t); return i }, u.prototype.fill = function(e, t, r, a) { if ("string" === typeof e) { if ("string" === typeof t ? (a = t, t = 0, r = this.length) : "string" === typeof r && (a = r, r = this.length), 1 === e.length) { var n = e.charCodeAt(0); n < 256 && (e = n) } if (void 0 !== a && "string" !== typeof a) throw new TypeError("encoding must be a string"); if ("string" === typeof a && !u.isEncoding(a)) throw new TypeError("Unknown encoding: " + a) } else "number" === typeof e && (e &= 255); if (t < 0 || this.length < t || this.length < r) throw new RangeError("Out of range index"); if (r <= t) return this; var i; if (t >>>= 0, r = void 0 === r ? this.length : r >>> 0, e || (e = 0), "number" === typeof e) for (i = t; i < r; ++i) this[i] = e; else { var o = u.isBuffer(e) ? e : F(new u(e, a).toString()), s = o.length; for (i = 0; i < r - t; ++i) this[i + t] = o[i % s] } return this }; var B = /[^+\/0-9A-Za-z-_]/g; function U(e) { return e < 16 ? "0" + e.toString(16) : e.toString(16) } function F(e, t) { var r; t = t || 1 / 0; for (var a = e.length, n = null, i = [], o = 0; o < a; ++o) { if ((r = e.charCodeAt(o)) > 55295 && r < 57344) { if (!n) { if (r > 56319) { (t -= 3) > -1 && i.push(239, 191, 189); continue } if (o + 1 === a) { (t -= 3) > -1 && i.push(239, 191, 189); continue } n = r; continue } if (r < 56320) { (t -= 3) > -1 && i.push(239, 191, 189), n = r; continue } r = 65536 + (n - 55296 << 10 | r - 56320) } else n && (t -= 3) > -1 && i.push(239, 191, 189); if (n = null, r < 128) { if ((t -= 1) < 0) break; i.push(r) } else if (r < 2048) { if ((t -= 2) < 0) break; i.push(r >> 6 | 192, 63 & r | 128) } else if (r < 65536) { if ((t -= 3) < 0) break; i.push(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128) } else { if (!(r < 1114112)) throw new Error("Invalid code point"); if ((t -= 4) < 0) break; i.push(r >> 18 | 240, r >> 12 & 63 | 128, r >> 6 & 63 | 128, 63 & r | 128) } } return i } function V(e) { return a.toByteArray(function(e) { if ((e = function(e) { return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "") }(e).replace(B, "")).length < 2) return ""; for (; e.length % 4 !== 0;) e += "="; return e }(e)) } function z(e, t, r, a) { for (var n = 0; n < a && !(n + r >= t.length || n >= e.length); ++n) t[n + r] = e[n]; return n } }, 89234: (e, t) => { t.read = function(e, t, r, a, n) { var i, o, s = 8 * n - a - 1, u = (1 << s) - 1, p = u >> 1, c = -7, m = r ? n - 1 : 0, l = r ? -1 : 1, d = e[t + m]; for (m += l, i = d & (1 << -c) - 1, d >>= -c, c += s; c > 0; i = 256 * i + e[t + m], m += l, c -= 8); for (o = i & (1 << -c) - 1, i >>= -c, c += a; c > 0; o = 256 * o + e[t + m], m += l, c -= 8); if (0 === i) i = 1 - p; else { if (i === u) return o ? NaN : 1 / 0 * (d ? -1 : 1); o += Math.pow(2, a), i -= p } return (d ? -1 : 1) * o * Math.pow(2, i - a) }, t.write = function(e, t, r, a, n, i) { var o, s, u, p = 8 * i - n - 1, c = (1 << p) - 1, m = c >> 1, l = 23 === n ? Math.pow(2, -24) - Math.pow(2, -77) : 0, d = a ? 0 : i - 1, y = a ? 1 : -1, b = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0; for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, o = c) : (o = Math.floor(Math.log(t) / Math.LN2), t * (u = Math.pow(2, -o)) < 1 && (o--, u *= 2), (t += o + m >= 1 ? l / u : l * Math.pow(2, 1 - m)) * u >= 2 && (o++, u /= 2), o + m >= c ? (s = 0, o = c) : o + m >= 1 ? (s = (t * u - 1) * Math.pow(2, n), o += m) : (s = t * Math.pow(2, m - 1) * Math.pow(2, n), o = 0)); n >= 8; e[r + d] = 255 & s, d += y, s /= 256, n -= 8); for (o = o << n | s, p += n; p > 0; e[r + d] = 255 & o, d += y, o /= 256, p -= 8); e[r + d - y] |= 128 * b } }, 97379: e => { var t = {}.toString; e.exports = Array.isArray || function(e) { return "[object Array]" == t.call(e) } }, 44037: (e, t, r) => { "use strict"; var a = r(52506), n = r(19722), i = n(a("String.prototype.indexOf")); e.exports = function(e, t) { var r = a(e, !!t); return "function" === typeof r && i(e, ".prototype.") > -1 ? n(r) : r } }, 19722: (e, t, r) => { "use strict"; var a = r(33350), n = r(52506), i = r(5986), o = n("%TypeError%"), s = n("%Function.prototype.apply%"), u = n("%Function.prototype.call%"), p = n("%Reflect.apply%", !0) || a.call(u, s), c = n("%Object.defineProperty%", !0), m = n("%Math.max%"); if (c) try { c({}, "a", { value: 1 }) } catch (d) { c = null } e.exports = function(e) { if ("function" !== typeof e) throw new o("a function is required"); var t = p(a, u, arguments); return i(t, 1 + m(0, e.length - (arguments.length - 1)), !0) }; var l = function() { return p(a, s, arguments) }; c ? c(e.exports, "apply", { value: l }) : e.exports.apply = l }, 76998: (e, t, r) => { "use strict"; var a = r(42458), n = { "text/plain": "Text", "text/html": "Url", default: "Text" }; e.exports = function(e, t) { var r, i, o, s, u, p, c = !1; t || (t = {}), r = t.debug || !1; try { if (o = a(), s = document.createRange(), u = document.getSelection(), (p = document.createElement("span")).textContent = e, p.ariaHidden = "true", p.style.all = "unset", p.style.position = "fixed", p.style.top = 0, p.style.clip = "rect(0, 0, 0, 0)", p.style.whiteSpace = "pre", p.style.webkitUserSelect = "text", p.style.MozUserSelect = "text", p.style.msUserSelect = "text", p.style.userSelect = "text", p.addEventListener("copy", (function(a) { if (a.stopPropagation(), t.format) if (a.preventDefault(), "undefined" === typeof a.clipboardData) { r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); var i = n[t.format] || n.default; window.clipboardData.setData(i, e) } else a.clipboardData.clearData(), a.clipboardData.setData(t.format, e); t.onCopy && (a.preventDefault(), t.onCopy(a.clipboardData)) })), document.body.appendChild(p), s.selectNodeContents(p), u.addRange(s), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); c = !0 } catch (m) { r && console.error("unable to copy using execCommand: ", m), r && console.warn("trying IE specific stuff"); try { window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), c = !0 } catch (m) { r && console.error("unable to copy using clipboardData: ", m), r && console.error("falling back to prompt"), i = function(e) { var t = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C"; return e.replace(/#{\s*key\s*}/g, t) }("message" in t ? t.message : "Copy to clipboard: #{key}, Enter"), window.prompt(i, e) } } finally { u && ("function" == typeof u.removeRange ? u.removeRange(s) : u.removeAllRanges()), p && document.body.removeChild(p), o() } return c } }, 92651: (e, t, r) => { "use strict"; var a = r(84510)(), n = r(52506), i = a && n("%Object.defineProperty%", !0); if (i) try { i({}, "a", { value: 1 }) } catch (p) { i = !1 } var o = n("%SyntaxError%"), s = n("%TypeError%"), u = r(23347); e.exports = function(e, t, r) { if (!e || "object" !== typeof e && "function" !== typeof e) throw new s("`obj` must be an object or a function`"); if ("string" !== typeof t && "symbol" !== typeof t) throw new s("`property` must be a string or a symbol`"); if (arguments.length > 3 && "boolean" !== typeof arguments[3] && null !== arguments[3]) throw new s("`nonEnumerable`, if provided, must be a boolean or null"); if (arguments.length > 4 && "boolean" !== typeof arguments[4] && null !== arguments[4]) throw new s("`nonWritable`, if provided, must be a boolean or null"); if (arguments.length > 5 && "boolean" !== typeof arguments[5] && null !== arguments[5]) throw new s("`nonConfigurable`, if provided, must be a boolean or null"); if (arguments.length > 6 && "boolean" !== typeof arguments[6]) throw new s("`loose`, if provided, must be a boolean"); var a = arguments.length > 3 ? arguments[3] : null, n = arguments.length > 4 ? arguments[4] : null, p = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 && arguments[6], m = !!u && u(e, t); if (i) i(e, t, { configurable: null === p && m ? m.configurable : !p, enumerable: null === a && m ? m.enumerable : !a, value: r, writable: null === n && m ? m.writable : !n }); else { if (!c && (a || n || p)) throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable."); e[t] = r } } }, 47465: e => { function t() { this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0 } function r(e) { return "function" === typeof e } function a(e) { return "object" === typeof e && null !== e } function n(e) { return void 0 === e } e.exports = t, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._maxListeners = void 0, t.defaultMaxListeners = 10, t.prototype.setMaxListeners = function(e) { if ("number" !== typeof e || e < 0 || isNaN(e)) throw TypeError("n must be a positive number"); return this._maxListeners = e, this }, t.prototype.emit = function(e) { var t, i, o, s, u, p; if (this._events || (this._events = {}), "error" === e && (!this._events.error || a(this._events.error) && !this._events.error.length)) { if ((t = arguments[1]) instanceof Error) throw t; var c = new Error('Uncaught, unspecified "error" event. (' + t + ")"); throw c.context = t, c } if (n(i = this._events[e])) return !1; if (r(i)) switch (arguments.length) { case 1: i.call(this); break; case 2: i.call(this, arguments[1]); break; case 3: i.call(this, arguments[1], arguments[2]); break; default: s = Array.prototype.slice.call(arguments, 1), i.apply(this, s) } else if (a(i)) for (s = Array.prototype.slice.call(arguments, 1), o = (p = i.slice()).length, u = 0; u < o; u++) p[u].apply(this, s); return !0 }, t.prototype.addListener = function(e, i) { var o; if (!r(i)) throw TypeError("listener must be a function"); return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", e, r(i.listener) ? i.listener : i), this._events[e] ? a(this._events[e]) ? this._events[e].push(i) : this._events[e] = [this._events[e], i] : this._events[e] = i, a(this._events[e]) && !this._events[e].warned && (o = n(this._maxListeners) ? t.defaultMaxListeners : this._maxListeners) && o > 0 && this._events[e].length > o && (this._events[e].warned = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length), "function" === typeof console.trace && console.trace()), this }, t.prototype.on = t.prototype.addListener, t.prototype.once = function(e, t) { if (!r(t)) throw TypeError("listener must be a function"); var a = !1; function n() { this.removeListener(e, n), a || (a = !0, t.apply(this, arguments)) } return n.listener = t, this.on(e, n), this }, t.prototype.removeListener = function(e, t) { var n, i, o, s; if (!r(t)) throw TypeError("listener must be a function"); if (!this._events || !this._events[e]) return this; if (o = (n = this._events[e]).length, i = -1, n === t || r(n.listener) && n.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t); else if (a(n)) { for (s = o; s-- > 0;) if (n[s] === t || n[s].listener && n[s].listener === t) { i = s; break } if (i < 0) return this; 1 === n.length ? (n.length = 0, delete this._events[e]) : n.splice(i, 1), this._events.removeListener && this.emit("removeListener", e, t) } return this }, t.prototype.removeAllListeners = function(e) { var t, a; if (!this._events) return this; if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[e] && delete this._events[e], this; if (0 === arguments.length) { for (t in this._events) "removeListener" !== t && this.removeAllListeners(t); return this.removeAllListeners("removeListener"), this._events = {}, this } if (r(a = this._events[e])) this.removeListener(e, a); else if (a) for (; a.length;) this.removeListener(e, a[a.length - 1]); return delete this._events[e], this }, t.prototype.listeners = function(e) { return this._events && this._events[e] ? r(this._events[e]) ? [this._events[e]] : this._events[e].slice() : [] }, t.prototype.listenerCount = function(e) { if (this._events) { var t = this._events[e]; if (r(t)) return 1; if (t) return t.length } return 0 }, t.listenerCount = function(e, t) { return e.listenerCount(t) } }, 11132: e => { "use strict"; var t = Object.prototype.hasOwnProperty, r = Object.prototype.toString, a = Object.defineProperty, n = Object.getOwnPropertyDescriptor, i = function(e) { return "function" === typeof Array.isArray ? Array.isArray(e) : "[object Array]" === r.call(e) }, o = function(e) { if (!e || "[object Object]" !== r.call(e)) return !1; var a, n = t.call(e, "constructor"), i = e.constructor && e.constructor.prototype && t.call(e.constructor.prototype, "isPrototypeOf"); if (e.constructor && !n && !i) return !1; for (a in e); return "undefined" === typeof a || t.call(e, a) }, s = function(e, t) { a && "__proto__" === t.name ? a(e, t.name, { enumerable: !0, configurable: !0, value: t.newValue, writable: !0 }) : e[t.name] = t.newValue }, u = function(e, r) { if ("__proto__" === r) { if (!t.call(e, r)) return; if (n) return n(e, r).value } return e[r] }; e.exports = function e() { var t, r, a, n, p, c, m = arguments[0], l = 1, d = arguments.length, y = !1; for ("boolean" === typeof m && (y = m, m = arguments[1] || {}, l = 2), (null == m || "object" !== typeof m && "function" !== typeof m) && (m = {}); l < d; ++l) if (null != (t = arguments[l])) for (r in t) a = u(m, r), m !== (n = u(t, r)) && (y && n && (o(n) || (p = i(n))) ? (p ? (p = !1, c = a && i(a) ? a : []) : c = a && o(a) ? a : {}, s(m, { name: r, newValue: e(y, c, n) })) : "undefined" !== typeof n && s(m, { name: r, newValue: n })); return m } }, 65369: (e, t, r) => { "use strict"; var a = r(70460), n = Object.prototype.toString, i = Object.prototype.hasOwnProperty; e.exports = function(e, t, r) { if (!a(t)) throw new TypeError("iterator must be a function"); var o; arguments.length >= 3 && (o = r), "[object Array]" === n.call(e) ? function(e, t, r) { for (var a = 0, n = e.length; a < n; a++) i.call(e, a) && (null == r ? t(e[a], a, e) : t.call(r, e[a], a, e)) }(e, t, o) : "string" === typeof e ? function(e, t, r) { for (var a = 0, n = e.length; a < n; a++) null == r ? t(e.charAt(a), a, e) : t.call(r, e.charAt(a), a, e) }(e, t, o) : function(e, t, r) { for (var a in e) i.call(e, a) && (null == r ? t(e[a], a, e) : t.call(r, e[a], a, e)) }(e, t, o) } }, 30222: e => { "use strict"; var t = Object.prototype.toString, r = Math.max, a = function(e, t) { for (var r = [], a = 0; a < e.length; a += 1) r[a] = e[a]; for (var n = 0; n < t.length; n += 1) r[n + e.length] = t[n]; return r }; e.exports = function(e) { var n = this; if ("function" !== typeof n || "[object Function]" !== t.apply(n)) throw new TypeError("Function.prototype.bind called on incompatible " + n); for (var i, o = function(e, t) { for (var r = [], a = t || 0, n = 0; a < e.length; a += 1, n += 1) r[n] = e[a]; return r }(arguments, 1), s = r(0, n.length - o.length), u = [], p = 0; p < s; p++) u[p] = "$" + p; if (i = Function("binder", "return function (" + function(e, t) { for (var r = "", a = 0; a < e.length; a += 1) r += e[a], a + 1 < e.length && (r += t); return r }(u, ",") + "){ return binder.apply(this,arguments); }")((function() { if (this instanceof i) { var t = n.apply(this, a(o, arguments)); return Object(t) === t ? t : this } return n.apply(e, a(o, arguments)) })), n.prototype) { var c = function() {}; c.prototype = n.prototype, i.prototype = new c, c.prototype = null } return i } }, 33350: (e, t, r) => { "use strict"; var a = r(30222); e.exports = Function.prototype.bind || a }, 52506: (e, t, r) => { "use strict"; var a, n = SyntaxError, i = Function, o = TypeError, s = function(e) { try { return i('"use strict"; return (' + e + ").constructor;")() } catch (t) {} }, u = Object.getOwnPropertyDescriptor; if (u) try { u({}, "") } catch (E) { u = null } var p = function() { throw new o }, c = u ? function() { try { return p } catch (e) { try { return u(arguments, "callee").get } catch (t) { return p } } }() : p, m = r(80697)(), l = r(92203)(), d = Object.getPrototypeOf || (l ? function(e) { return e.__proto__ } : null), y = {}, b = "undefined" !== typeof Uint8Array && d ? d(Uint8Array) : a, g = { "%AggregateError%": "undefined" === typeof AggregateError ? a : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" === typeof ArrayBuffer ? a : ArrayBuffer, "%ArrayIteratorPrototype%": m && d ? d([][Symbol.iterator]()) : a, "%AsyncFromSyncIteratorPrototype%": a, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": "undefined" === typeof Atomics ? a : Atomics, "%BigInt%": "undefined" === typeof BigInt ? a : BigInt, "%BigInt64Array%": "undefined" === typeof BigInt64Array ? a : BigInt64Array, "%BigUint64Array%": "undefined" === typeof BigUint64Array ? a : BigUint64Array, "%Boolean%": Boolean, "%DataView%": "undefined" === typeof DataView ? a : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" === typeof Float32Array ? a : Float32Array, "%Float64Array%": "undefined" === typeof Float64Array ? a : Float64Array, "%FinalizationRegistry%": "undefined" === typeof FinalizationRegistry ? a : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": y, "%Int8Array%": "undefined" === typeof Int8Array ? a : Int8Array, "%Int16Array%": "undefined" === typeof Int16Array ? a : Int16Array, "%Int32Array%": "undefined" === typeof Int32Array ? a : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": m && d ? d(d([][Symbol.iterator]())) : a, "%JSON%": "object" === typeof JSON ? JSON : a, "%Map%": "undefined" === typeof Map ? a : Map, "%MapIteratorPrototype%": "undefined" !== typeof Map && m && d ? d((new Map)[Symbol.iterator]()) : a, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" === typeof Promise ? a : Promise, "%Proxy%": "undefined" === typeof Proxy ? a : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" === typeof Reflect ? a : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" === typeof Set ? a : Set, "%SetIteratorPrototype%": "undefined" !== typeof Set && m && d ? d((new Set)[Symbol.iterator]()) : a, "%SharedArrayBuffer%": "undefined" === typeof SharedArrayBuffer ? a : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": m && d ? d("" [Symbol.iterator]()) : a, "%Symbol%": m ? Symbol : a, "%SyntaxError%": n, "%ThrowTypeError%": c, "%TypedArray%": b, "%TypeError%": o, "%Uint8Array%": "undefined" === typeof Uint8Array ? a : Uint8Array, "%Uint8ClampedArray%": "undefined" === typeof Uint8ClampedArray ? a : Uint8ClampedArray, "%Uint16Array%": "undefined" === typeof Uint16Array ? a : Uint16Array, "%Uint32Array%": "undefined" === typeof Uint32Array ? a : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" === typeof WeakMap ? a : WeakMap, "%WeakRef%": "undefined" === typeof WeakRef ? a : WeakRef, "%WeakSet%": "undefined" === typeof WeakSet ? a : WeakSet }; if (d) try { null.error } catch (E) { var h = d(d(E)); g["%Error.prototype%"] = h } var S = function e(t) { var r; if ("%AsyncFunction%" === t) r = s("async function () {}"); else if ("%GeneratorFunction%" === t) r = s("function* () {}"); else if ("%AsyncGeneratorFunction%" === t) r = s("async function* () {}"); else if ("%AsyncGenerator%" === t) { var a = e("%AsyncGeneratorFunction%"); a && (r = a.prototype) } else if ("%AsyncIteratorPrototype%" === t) { var n = e("%AsyncGenerator%"); n && d && (r = d(n.prototype)) } return g[t] = r, r }, f = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, I = r(33350), N = r(89670), T = I.call(Function.call, Array.prototype.concat), k = I.call(Function.apply, Array.prototype.splice), C = I.call(Function.call, String.prototype.replace), A = I.call(Function.call, String.prototype.slice), v = I.call(Function.call, RegExp.prototype.exec), R = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, x = function(e, t) { var r, a = e; if (N(f, a) && (a = "%" + (r = f[a])[0] + "%"), N(g, a)) { var i = g[a]; if (i === y && (i = S(a)), "undefined" === typeof i && !t) throw new o("intrinsic " + e + " exists, but is not available. Please file an issue!"); return { alias: r, name: a, value: i } } throw new n("intrinsic " + e + " does not exist!") }; e.exports = function(e, t) { if ("string" !== typeof e || 0 === e.length) throw new o("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" !== typeof t) throw new o('"allowMissing" argument must be a boolean'); if (null === v(/^%?[^%]*%?$/, e)) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var r = function(e) { var t = A(e, 0, 1), r = A(e, -1); if ("%" === t && "%" !== r) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === r && "%" !== t) throw new n("invalid intrinsic syntax, expected opening `%`"); var a = []; return C(e, R, (function(e, t, r, n) { a[a.length] = r ? C(n, D, "$1") : t || e })), a }(e), a = r.length > 0 ? r[0] : "", i = x("%" + a + "%", t), s = i.name, p = i.value, c = !1, m = i.alias; m && (a = m[0], k(r, T([0, 1], m))); for (var l = 1, d = !0; l < r.length; l += 1) { var y = r[l], b = A(y, 0, 1), h = A(y, -1); if (('"' === b || "'" === b || "`" === b || '"' === h || "'" === h || "`" === h) && b !== h) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== y && d || (c = !0), N(g, s = "%" + (a += "." + y) + "%")) p = g[s]; else if (null != p) { if (!(y in p)) { if (!t) throw new o("base intrinsic for " + e + " exists, but the property is not available."); return } if (u && l + 1 >= r.length) { var S = u(p, y); p = (d = !!S) && "get" in S && !("originalValue" in S.get) ? S.get : p[y] } else d = N(p, y), p = p[y]; d && !c && (g[s] = p) } } return p } }, 23347: (e, t, r) => { "use strict"; var a = r(52506)("%Object.getOwnPropertyDescriptor%", !0); if (a) try { a([], "length") } catch (n) { a = null } e.exports = a }, 84510: (e, t, r) => { "use strict"; var a = r(52506)("%Object.defineProperty%", !0), n = function() { if (a) try { return a({}, "a", { value: 1 }), !0 } catch (e) { return !1 } return !1 }; n.hasArrayLengthDefineBug = function() { if (!n()) return null; try { return 1 !== a([], "length", { value: 1 }).length } catch (e) { return !0 } }, e.exports = n }, 92203: e => { "use strict"; var t = { foo: {} }, r = Object; e.exports = function() { return { __proto__: t }.foo === t.foo && !({ __proto__: null } instanceof r) } }, 80697: (e, t, r) => { "use strict"; var a = "undefined" !== typeof Symbol && Symbol, n = r(63297); e.exports = function() { return "function" === typeof a && ("function" === typeof Symbol && ("symbol" === typeof a("foo") && ("symbol" === typeof Symbol("bar") && n()))) } }, 63297: e => { "use strict"; e.exports = function() { if ("function" !== typeof Symbol || "function" !== typeof Object.getOwnPropertySymbols) return !1; if ("symbol" === typeof Symbol.iterator) return !0; var e = {}, t = Symbol("test"), r = Object(t); if ("string" === typeof t) return !1; if ("[object Symbol]" !== Object.prototype.toString.call(t)) return !1; if ("[object Symbol]" !== Object.prototype.toString.call(r)) return !1; for (t in e[t] = 42, e) return !1; if ("function" === typeof Object.keys && 0 !== Object.keys(e).length) return !1; if ("function" === typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(e).length) return !1; var a = Object.getOwnPropertySymbols(e); if (1 !== a.length || a[0] !== t) return !1; if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1; if ("function" === typeof Object.getOwnPropertyDescriptor) { var n = Object.getOwnPropertyDescriptor(e, t); if (42 !== n.value || !0 !== n.enumerable) return !1 } return !0 } }, 4707: (e, t, r) => { "use strict"; var a = r(63297); e.exports = function() { return a() && !!Symbol.toStringTag } }, 89670: (e, t, r) => { "use strict"; var a = Function.prototype.call, n = Object.prototype.hasOwnProperty, i = r(33350); e.exports = i.call(a, n) }, 62597: e => { "use strict"; e.exports = function(e, r) { var a, n, i, o = e || "", s = r || "div", u = {}, p = 0; for (; p < o.length;) t.lastIndex = p, i = t.exec(o), (a = o.slice(p, i ? i.index : o.length)) && (n ? "#" === n ? u.id = a : u.className ? u.className.push(a) : u.className = [a] : s = a, p += a.length), i && (n = i[0], p++); return { type: "element", tagName: s, properties: u, children: [] } }; var t = /[#.]/g }, 1174: (e, t, r) => { "use strict"; var a = r(53074), n = r(93877), i = r(62597), o = r(62533).Q, s = r(74791).Q; e.exports = function(e, t, r) { var n = r ? function(e) { var t, r = e.length, a = -1, n = {}; for (; ++a < r;) n[(t = e[a]).toLowerCase()] = t; return n }(r) : null; return function(e, r) { var a, o = i(e, t), s = Array.prototype.slice.call(arguments, 2), c = o.tagName.toLowerCase(); o.tagName = n && u.call(n, c) ? n[c] : c, r && function(e, t) { return "string" === typeof e || "length" in e || function(e, t) { var r = t.type; if ("input" === e || !r || "string" !== typeof r) return !1; if ("object" === typeof t.children && "length" in t.children) return !0; if (r = r.toLowerCase(), "button" === e) return "menu" !== r && "submit" !== r && "reset" !== r && "button" !== r; return "value" in t }(t.tagName, e) }(r, o) && (s.unshift(r), r = null); if (r) for (a in r) m(o.properties, a, r[a]); p(o.children, s), "template" === o.tagName && (o.content = { type: "root", children: o.children }, o.children = []); return o }; function m(t, r, n) { var i, u, p; null !== n && void 0 !== n && n === n && (u = (i = a(e, r)).property, "string" === typeof(p = n) && (i.spaceSeparated ? p = o(p) : i.commaSeparated ? p = s(p) : i.commaOrSpaceSeparated && (p = o(s(p).join(" ")))), "style" === u && "string" !== typeof n && (p = function(e) { var t, r = []; for (t in e) r.push([t, e[t]].join(": ")); return r.join("; ") }(p)), "className" === u && t.className && (p = t.className.concat(p)), t[u] = function(e, t, r) { var a, n, i; if ("object" !== typeof r || !("length" in r)) return c(e, t, r); n = r.length, a = -1, i = []; for (; ++a < n;) i[a] = c(e, t, r[a]); return i }(i, u, p)) } }; var u = {}.hasOwnProperty; function p(e, t) { var r, a; if ("string" !== typeof t && "number" !== typeof t) if ("object" === typeof t && "length" in t) for (r = -1, a = t.length; ++r < a;) p(e, t[r]); else { if ("object" !== typeof t || !("type" in t)) throw new Error("Expected node, nodes, or string, got `" + t + "`"); e.push(t) } else e.push({ type: "text", value: String(t) }) } function c(e, t, r) { var a = r; return e.number || e.positiveNumber ? isNaN(a) || "" === a || (a = Number(a)) : (e.boolean || e.overloadedBoolean) && ("string" !== typeof a || "" !== a && n(r) !== n(t) || (a = !0)), a } }, 38671: (e, t, r) => { "use strict"; var a = r(90737), n = r(1174)(a, "div"); n.displayName = "html", e.exports = n }, 16913: (e, t, r) => { "use strict"; e.exports = r(38671) }, 74791: (e, t) => { "use strict"; t.Q = function(e) { var t, a = [], i = String(e || n), o = i.indexOf(r), s = 0, u = !1; for (; !u;) - 1 === o && (o = i.length, u = !0), !(t = i.slice(s, o).trim()) && u || a.push(t), s = o + 1, o = i.indexOf(r, s); return a }; var r = ",", a = " ", n = "" }, 53074: (e, t, r) => { "use strict"; var a = r(93877), n = r(93991), i = r(53416), o = "data"; e.exports = function(e, t) { var r = a(t), l = t, d = i; if (r in e.normal) return e.property[e.normal[r]]; r.length > 4 && r.slice(0, 4) === o && s.test(t) && ("-" === t.charAt(4) ? l = function(e) { var t = e.slice(5).replace(u, m); return o + t.charAt(0).toUpperCase() + t.slice(1) }(t) : t = function(e) { var t = e.slice(4); if (u.test(t)) return e; t = t.replace(p, c), "-" !== t.charAt(0) && (t = "-" + t); return o + t }(t), d = n); return new d(l, t) }; var s = /^data[-\w.:]+$/i, u = /-[a-z]/g, p = /[A-Z]/g; function c(e) { return "-" + e.toLowerCase() } function m(e) { return e.charAt(1).toUpperCase() } }, 90737: (e, t, r) => { "use strict"; var a = r(10579), n = r(42519), i = r(86244), o = r(48446), s = r(27155), u = r(68973); e.exports = a([i, n, o, s, u]) }, 27155: (e, t, r) => { "use strict"; var a = r(64530), n = r(15463), i = a.booleanish, o = a.number, s = a.spaceSeparated; e.exports = n({ transform: function(e, t) { return "role" === t ? t : "aria-" + t.slice(4).toLowerCase() }, properties: { ariaActiveDescendant: null, ariaAtomic: i, ariaAutoComplete: null, ariaBusy: i, ariaChecked: i, ariaColCount: o, ariaColIndex: o, ariaColSpan: o, ariaControls: s, ariaCurrent: null, ariaDescribedBy: s, ariaDetails: null, ariaDisabled: i, ariaDropEffect: s, ariaErrorMessage: null, ariaExpanded: i, ariaFlowTo: s, ariaGrabbed: i, ariaHasPopup: null, ariaHidden: i, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, ariaLabelledBy: s, ariaLevel: o, ariaLive: null, ariaModal: i, ariaMultiLine: i, ariaMultiSelectable: i, ariaOrientation: null, ariaOwns: s, ariaPlaceholder: null, ariaPosInSet: o, ariaPressed: i, ariaReadOnly: i, ariaRelevant: null, ariaRequired: i, ariaRoleDescription: s, ariaRowCount: o, ariaRowIndex: o, ariaRowSpan: o, ariaSelected: i, ariaSetSize: o, ariaSort: null, ariaValueMax: o, ariaValueMin: o, ariaValueNow: o, ariaValueText: null, role: null } }) }, 68973: (e, t, r) => { "use strict"; var a = r(64530), n = r(15463), i = r(56101), o = a.boolean, s = a.overloadedBoolean, u = a.booleanish, p = a.number, c = a.spaceSeparated, m = a.commaSeparated; e.exports = n({ space: "html", attributes: { acceptcharset: "accept-charset", classname: "class", htmlfor: "for", httpequiv: "http-equiv" }, transform: i, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { abbr: null, accept: m, acceptCharset: c, accessKey: c, action: null, allow: null, allowFullScreen: o, allowPaymentRequest: o, allowUserMedia: o, alt: null, as: null, async: o, autoCapitalize: null, autoComplete: c, autoFocus: o, autoPlay: o, capture: o, charSet: null, checked: o, cite: null, className: c, cols: p, colSpan: null, content: null, contentEditable: u, controls: o, controlsList: c, coords: p | m, crossOrigin: null, data: null, dateTime: null, decoding: null, default: o, defer: o, dir: null, dirName: null, disabled: o, download: s, draggable: u, encType: null, enterKeyHint: null, form: null, formAction: null, formEncType: null, formMethod: null, formNoValidate: o, formTarget: null, headers: c, height: p, hidden: o, high: p, href: null, hrefLang: null, htmlFor: c, httpEquiv: c, id: null, imageSizes: null, imageSrcSet: m, inputMode: null, integrity: null, is: null, isMap: o, itemId: null, itemProp: c, itemRef: c, itemScope: o, itemType: c, kind: null, label: null, lang: null, language: null, list: null, loading: null, loop: o, low: p, manifest: null, max: null, maxLength: p, media: null, method: null, min: null, minLength: p, multiple: o, muted: o, name: null, nonce: null, noModule: o, noValidate: o, onAbort: null, onAfterPrint: null, onAuxClick: null, onBeforePrint: null, onBeforeUnload: null, onBlur: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onContextMenu: null, onCopy: null, onCueChange: null, onCut: null, onDblClick: null, onDrag: null, onDragEnd: null, onDragEnter: null, onDragExit: null, onDragLeave: null, onDragOver: null, onDragStart: null, onDrop: null, onDurationChange: null, onEmptied: null, onEnded: null, onError: null, onFocus: null, onFormData: null, onHashChange: null, onInput: null, onInvalid: null, onKeyDown: null, onKeyPress: null, onKeyUp: null, onLanguageChange: null, onLoad: null, onLoadedData: null, onLoadedMetadata: null, onLoadEnd: null, onLoadStart: null, onMessage: null, onMessageError: null, onMouseDown: null, onMouseEnter: null, onMouseLeave: null, onMouseMove: null, onMouseOut: null, onMouseOver: null, onMouseUp: null, onOffline: null, onOnline: null, onPageHide: null, onPageShow: null, onPaste: null, onPause: null, onPlay: null, onPlaying: null, onPopState: null, onProgress: null, onRateChange: null, onRejectionHandled: null, onReset: null, onResize: null, onScroll: null, onSecurityPolicyViolation: null, onSeeked: null, onSeeking: null, onSelect: null, onSlotChange: null, onStalled: null, onStorage: null, onSubmit: null, onSuspend: null, onTimeUpdate: null, onToggle: null, onUnhandledRejection: null, onUnload: null, onVolumeChange: null, onWaiting: null, onWheel: null, open: o, optimum: p, pattern: null, ping: c, placeholder: null, playsInline: o, poster: null, preload: null, readOnly: o, referrerPolicy: null, rel: c, required: o, reversed: o, rows: p, rowSpan: p, sandbox: c, scope: null, scoped: o, seamless: o, selected: o, shape: null, size: p, sizes: null, slot: null, span: p, spellCheck: u, src: null, srcDoc: null, srcLang: null, srcSet: m, start: p, step: null, style: null, tabIndex: p, target: null, title: null, translate: null, type: null, typeMustMatch: o, useMap: null, value: u, width: p, wrap: null, align: null, aLink: null, archive: c, axis: null, background: null, bgColor: null, border: p, borderColor: null, bottomMargin: p, cellPadding: null, cellSpacing: null, char: null, charOff: null, classId: null, clear: null, code: null, codeBase: null, codeType: null, color: null, compact: o, declare: o, event: null, face: null, frame: null, frameBorder: null, hSpace: p, leftMargin: p, link: null, longDesc: null, lowSrc: null, marginHeight: p, marginWidth: p, noResize: o, noHref: o, noShade: o, noWrap: o, object: null, profile: null, prompt: null, rev: null, rightMargin: p, rules: null, scheme: null, scrolling: u, standby: null, summary: null, text: null, topMargin: p, valueType: null, version: null, vAlign: null, vLink: null, vSpace: p, allowTransparency: null, autoCorrect: null, autoSave: null, disablePictureInPicture: o, disableRemotePlayback: o, prefix: null, property: null, results: p, security: null, unselectable: null } }) }, 56101: (e, t, r) => { "use strict"; var a = r(20846); e.exports = function(e, t) { return a(e, t.toLowerCase()) } }, 20846: e => { "use strict"; e.exports = function(e, t) { return t in e ? e[t] : t } }, 15463: (e, t, r) => { "use strict"; var a = r(93877), n = r(14243), i = r(93991); e.exports = function(e) { var t, r, o = e.space, s = e.mustUseProperty || [], u = e.attributes || {}, p = e.properties, c = e.transform, m = {}, l = {}; for (t in p) r = new i(t, c(u, t), p[t], o), -1 !== s.indexOf(t) && (r.mustUseProperty = !0), m[t] = r, l[a(t)] = t, l[a(r.attribute)] = t; return new n(m, l, o) } }, 93991: (e, t, r) => { "use strict"; var a = r(53416), n = r(64530); e.exports = s, s.prototype = new a, s.prototype.defined = !0; var i = ["boolean", "booleanish", "overloadedBoolean", "number", "commaSeparated", "spaceSeparated", "commaOrSpaceSeparated"], o = i.length; function s(e, t, r, s) { var p, c = -1; for (u(this, "space", s), a.call(this, e, t); ++c < o;) u(this, p = i[c], (r & n[p]) === n[p]) } function u(e, t, r) { r && (e[t] = r) } }, 53416: e => { "use strict"; e.exports = r; var t = r.prototype; function r(e, t) { this.property = e, this.attribute = t } t.space = null, t.attribute = null, t.property = null, t.boolean = !1, t.booleanish = !1, t.overloadedBoolean = !1, t.number = !1, t.commaSeparated = !1, t.spaceSeparated = !1, t.commaOrSpaceSeparated = !1, t.mustUseProperty = !1, t.defined = !1 }, 10579: (e, t, r) => { "use strict"; var a = r(85887), n = r(14243); e.exports = function(e) { var t, r, i = e.length, o = [], s = [], u = -1; for (; ++u < i;) t = e[u], o.push(t.property), s.push(t.normal), r = t.space; return new n(a.apply(null, o), a.apply(null, s), r) } }, 14243: e => { "use strict"; e.exports = r; var t = r.prototype; function r(e, t, r) { this.property = e, this.normal = t, r && (this.space = r) } t.space = null, t.normal = {}, t.property = {} }, 64530: (e, t) => { "use strict"; var r = 0; function a() { return Math.pow(2, ++r) } t.boolean = a(), t.booleanish = a(), t.overloadedBoolean = a(), t.number = a(), t.spaceSeparated = a(), t.commaSeparated = a(), t.commaOrSpaceSeparated = a() }, 42519: (e, t, r) => { "use strict"; var a = r(15463); e.exports = a({ space: "xlink", transform: function(e, t) { return "xlink:" + t.slice(5).toLowerCase() }, properties: { xLinkActuate: null, xLinkArcRole: null, xLinkHref: null, xLinkRole: null, xLinkShow: null, xLinkTitle: null, xLinkType: null } }) }, 86244: (e, t, r) => { "use strict"; var a = r(15463); e.exports = a({ space: "xml", transform: function(e, t) { return "xml:" + t.slice(3).toLowerCase() }, properties: { xmlLang: null, xmlBase: null, xmlSpace: null } }) }, 48446: (e, t, r) => { "use strict"; var a = r(15463), n = r(56101); e.exports = a({ space: "xmlns", attributes: { xmlnsxlink: "xmlns:xlink" }, transform: n, properties: { xmlns: null, xmlnsXLink: null } }) }, 93877: e => { "use strict"; e.exports = function(e) { return e.toLowerCase() } }, 62533: (e, t) => { "use strict"; t.Q = function(e) { var t = String(e || r).trim(); return t === r ? [] : t.split(n) }; var r = "", a = " ", n = /[ \t\n\r\f]+/g }, 12534: e => { "function" === typeof Object.create ? e.exports = function(e, t) { t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })) } : e.exports = function(e, t) { if (t) { e.super_ = t; var r = function() {}; r.prototype = t.prototype, e.prototype = new r, e.prototype.constructor = e } } }, 11065: e => { var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, a = /^\s*/, n = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, u = /^\s+|\s+$/g, p = ""; function c(e) { return e ? e.replace(u, p) : p } e.exports = function(e, u) { if ("string" !== typeof e) throw new TypeError("First argument must be a string"); if (!e) return []; u = u || {}; var m = 1, l = 1; function d(e) { var t = e.match(r); t && (m += t.length); var a = e.lastIndexOf("\n"); l = ~a ? e.length - a : l + e.length } function y() { var e = { line: m, column: l }; return function(t) { return t.position = new b(e), f(), t } } function b(e) { this.start = e, this.end = { line: m, column: l }, this.source = u.source } b.prototype.content = e; var g = []; function h(t) { var r = new Error(u.source + ":" + m + ":" + l + ": " + t); if (r.reason = t, r.filename = u.source, r.line = m, r.column = l, r.source = e, !u.silent) throw r; g.push(r) } function S(t) { var r = t.exec(e); if (r) { var a = r[0]; return d(a), e = e.slice(a.length), r } } function f() { S(a) } function I(e) { var t; for (e = e || []; t = N();) !1 !== t && e.push(t); return e } function N() { var t = y(); if ("/" == e.charAt(0) && "*" == e.charAt(1)) { for (var r = 2; p != e.charAt(r) && ("*" != e.charAt(r) || "/" != e.charAt(r + 1));) ++r; if (r += 2, p === e.charAt(r - 1)) return h("End of comment missing"); var a = e.slice(2, r - 2); return l += 2, d(a), e = e.slice(r), l += 2, t({ type: "comment", comment: a }) } } function T() { var e = y(), r = S(n); if (r) { if (N(), !S(i)) return h("property missing ':'"); var a = S(o), u = e({ type: "declaration", property: c(r[0].replace(t, p)), value: a ? c(a[0].replace(t, p)) : p }); return S(s), u } } return f(), function() { var e, t = []; for (I(t); e = T();) !1 !== e && (t.push(e), I(t)); return t }() } }, 86517: e => { "use strict"; e.exports = function(e) { var t = "string" === typeof e ? e.charCodeAt(0) : e; return t >= 97 && t <= 122 || t >= 65 && t <= 90 } }, 4929: (e, t, r) => { "use strict"; var a = r(86517), n = r(17194); e.exports = function(e) { return a(e) || n(e) } }, 65450: (e, t, r) => { "use strict"; var a = r(4707)(), n = r(44037)("Object.prototype.toString"), i = function(e) { return !(a && e && "object" === typeof e && Symbol.toStringTag in e) && "[object Arguments]" === n(e) }, o = function(e) { return !!i(e) || null !== e && "object" === typeof e && "number" === typeof e.length && e.length >= 0 && "[object Array]" !== n(e) && "[object Function]" === n(e.callee) }, s = function() { return i(arguments) }(); i.isLegacyArguments = o, e.exports = s ? i : o }, 70460: e => { "use strict"; var t, r, a = Function.prototype.toString, n = "object" === typeof Reflect && null !== Reflect && Reflect.apply; if ("function" === typeof n && "function" === typeof Object.defineProperty) try { t = Object.defineProperty({}, "length", { get: function() { throw r } }), r = {}, n((function() { throw 42 }), null, t) } catch (d) { d !== r && (n = null) } else n = null; var i = /^\s*class\b/, o = function(e) { try { var t = a.call(e); return i.test(t) } catch (r) { return !1 } }, s = function(e) { try { return !o(e) && (a.call(e), !0) } catch (t) { return !1 } }, u = Object.prototype.toString, p = "function" === typeof Symbol && !!Symbol.toStringTag, c = !(0 in [, ]), m = function() { return !1 }; if ("object" === typeof document) { var l = document.all; u.call(l) === u.call(document.all) && (m = function(e) { if ((c || !e) && ("undefined" === typeof e || "object" === typeof e)) try { var t = u.call(e); return ("[object HTMLAllCollection]" === t || "[object HTML document.all class]" === t || "[object HTMLCollection]" === t || "[object Object]" === t) && null == e("") } catch (r) {} return !1 }) } e.exports = n ? function(e) { if (m(e)) return !0; if (!e) return !1; if ("function" !== typeof e && "object" !== typeof e) return !1; try { n(e, null, t) } catch (a) { if (a !== r) return !1 } return !o(e) && s(e) } : function(e) { if (m(e)) return !0; if (!e) return !1; if ("function" !== typeof e && "object" !== typeof e) return !1; if (p) return s(e); if (o(e)) return !1; var t = u.call(e); return !("[object Function]" !== t && "[object GeneratorFunction]" !== t && !/^\[object HTML/.test(t)) && s(e) } }, 17194: e => { "use strict"; e.exports = function(e) { var t = "string" === typeof e ? e.charCodeAt(0) : e; return t >= 48 && t <= 57 } }, 85718: (e, t, r) => { "use strict"; var a, n = Object.prototype.toString, i = Function.prototype.toString, o = /^\s*(?:function)?\*/, s = r(4707)(), u = Object.getPrototypeOf; e.exports = function(e) { if ("function" !== typeof e) return !1; if (o.test(i.call(e))) return !0; if (!s) return "[object GeneratorFunction]" === n.call(e); if (!u) return !1; if ("undefined" === typeof a) { var t = function() { if (!s) return !1; try { return Function("return function*() {}")() } catch (e) {} }(); a = !!t && u(t) } return u(e) === a } }, 65504: e => { "use strict"; e.exports = function(e) { var t = "string" === typeof e ? e.charCodeAt(0) : e; return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57 } }, 66218: (e, t, r) => { "use strict"; var a = r(58264); e.exports = function(e) { return !!a(e) } }, 24247: (e, t) => { ! function(e) { "use strict"; function t(e) { return null !== e && "[object Array]" === Object.prototype.toString.call(e) } function r(e) { return null !== e && "[object Object]" === Object.prototype.toString.call(e) } function a(e, n) { if (e === n) return !0; if (Object.prototype.toString.call(e) !== Object.prototype.toString.call(n)) return !1; if (!0 === t(e)) { if (e.length !== n.length) return !1; for (var i = 0; i < e.length; i++) if (!1 === a(e[i], n[i])) return !1; return !0 } if (!0 === r(e)) { var o = {}; for (var s in e) if (hasOwnProperty.call(e, s)) { if (!1 === a(e[s], n[s])) return !1; o[s] = !0 } for (var u in n) if (hasOwnProperty.call(n, u) && !0 !== o[u]) return !1; return !0 } return !1 } function n(e) { if ("" === e || !1 === e || null === e) return !0; if (t(e) && 0 === e.length) return !0; if (r(e)) { for (var a in e) if (e.hasOwnProperty(a)) return !1; return !0 } return !1 } var i; i = "function" === typeof String.prototype.trimLeft ? function(e) { return e.trimLeft() } : function(e) { return e.match(/^\s*(.*)/)[1] }; var o = 0, s = 1, u = 2, p = 3, c = 4, m = 6, l = 8, d = 9, y = { 0: "number", 1: "any", 2: "string", 3: "array", 4: "object", 5: "boolean", 6: "expression", 7: "null", 8: "Array", 9: "Array" }, b = "EOF", g = "UnquotedIdentifier", h = "QuotedIdentifier", S = "Rbracket", f = "Rparen", I = "Comma", N = "Colon", T = "Rbrace", k = "Number", C = "Current", A = "Expref", v = "Pipe", R = "Or", D = "And", x = "EQ", E = "GT", P = "LT", M = "GTE", q = "LTE", w = "NE", L = "Flatten", _ = "Star", O = "Filter", G = "Dot", B = "Not", U = "Lbrace", F = "Lbracket", V = "Lparen", z = "Literal", W = { ".": G, "*": _, ",": I, ":": N, "{": U, "}": T, "]": S, "(": V, ")": f, "@": C }, H = { "<": !0, ">": !0, "=": !0, "!": !0 }, K = { " ": !0, "\t": !0, "\n": !0 }; function j(e) { return e >= "0" && e <= "9" || "-" === e } function Q() {} Q.prototype = { tokenize: function(e) { var t, r, a, n, i = []; for (this._current = 0; this._current < e.length;) if ((n = e[this._current]) >= "a" && n <= "z" || n >= "A" && n <= "Z" || "_" === n) t = this._current, r = this._consumeUnquotedIdentifier(e), i.push({ type: g, value: r, start: t }); else if (void 0 !== W[e[this._current]]) i.push({ type: W[e[this._current]], value: e[this._current], start: this._current }), this._current++; else if (j(e[this._current])) a = this._consumeNumber(e), i.push(a); else if ("[" === e[this._current]) a = this._consumeLBracket(e), i.push(a); else if ('"' === e[this._current]) t = this._current, r = this._consumeQuotedIdentifier(e), i.push({ type: h, value: r, start: t }); else if ("'" === e[this._current]) t = this._current, r = this._consumeRawStringLiteral(e), i.push({ type: z, value: r, start: t }); else if ("`" === e[this._current]) { t = this._current; var o = this._consumeLiteral(e); i.push({ type: z, value: o, start: t }) } else if (void 0 !== H[e[this._current]]) i.push(this._consumeOperator(e)); else if (void 0 !== K[e[this._current]]) this._current++; else if ("&" === e[this._current]) t = this._current, this._current++, "&" === e[this._current] ? (this._current++, i.push({ type: D, value: "&&", start: t })) : i.push({ type: A, value: "&", start: t }); else { if ("|" !== e[this._current]) { var s = new Error("Unknown character:" + e[this._current]); throw s.name = "LexerError", s } t = this._current, this._current++, "|" === e[this._current] ? (this._current++, i.push({ type: R, value: "||", start: t })) : i.push({ type: v, value: "|", start: t }) } return i }, _consumeUnquotedIdentifier: function(e) { var t, r = this._current; for (this._current++; this._current < e.length && ((t = e[this._current]) >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || "_" === t);) this._current++; return e.slice(r, this._current) }, _consumeQuotedIdentifier: function(e) { var t = this._current; this._current++; for (var r = e.length; '"' !== e[this._current] && this._current < r;) { var a = this._current; "\\" !== e[a] || "\\" !== e[a + 1] && '"' !== e[a + 1] ? a++ : a += 2, this._current = a } return this._current++, JSON.parse(e.slice(t, this._current)) }, _consumeRawStringLiteral: function(e) { var t = this._current; this._current++; for (var r = e.length; "'" !== e[this._current] && this._current < r;) { var a = this._current; "\\" !== e[a] || "\\" !== e[a + 1] && "'" !== e[a + 1] ? a++ : a += 2, this._current = a } return this._current++, e.slice(t + 1, this._current - 1).replace("\\'", "'") }, _consumeNumber: function(e) { var t = this._current; this._current++; for (var r = e.length; j(e[this._current]) && this._current < r;) this._current++; var a = parseInt(e.slice(t, this._current)); return { type: k, value: a, start: t } }, _consumeLBracket: function(e) { var t = this._current; return this._current++, "?" === e[this._current] ? (this._current++, { type: O, value: "[?", start: t }) : "]" === e[this._current] ? (this._current++, { type: L, value: "[]", start: t }) : { type: F, value: "[", start: t } }, _consumeOperator: function(e) { var t = this._current, r = e[t]; return this._current++, "!" === r ? "=" === e[this._current] ? (this._current++, { type: w, value: "!=", start: t }) : { type: B, value: "!", start: t } : "<" === r ? "=" === e[this._current] ? (this._current++, { type: q, value: "<=", start: t }) : { type: P, value: "<", start: t } : ">" === r ? "=" === e[this._current] ? (this._current++, { type: M, value: ">=", start: t }) : { type: E, value: ">", start: t } : "=" === r && "=" === e[this._current] ? (this._current++, { type: x, value: "==", start: t }) : void 0 }, _consumeLiteral: function(e) { this._current++; for (var t, r = this._current, a = e.length; "`" !== e[this._current] && this._current < a;) { var n = this._current; "\\" !== e[n] || "\\" !== e[n + 1] && "`" !== e[n + 1] ? n++ : n += 2, this._current = n } var o = i(e.slice(r, this._current)); return o = o.replace("\\`", "`"), t = this._looksLikeJSON(o) ? JSON.parse(o) : JSON.parse('"' + o + '"'), this._current++, t }, _looksLikeJSON: function(e) { if ("" === e) return !1; if ('[{"'.indexOf(e[0]) >= 0) return !0; if (["true", "false", "null"].indexOf(e) >= 0) return !0; if (!("-0123456789".indexOf(e[0]) >= 0)) return !1; try { return JSON.parse(e), !0 } catch (t) { return !1 } } }; var $ = {}; function J() {} function Z(e) { this.runtime = e } function Y(e) { this._interpreter = e, this.functionTable = { abs: { _func: this._functionAbs, _signature: [{ types: [o] }] }, avg: { _func: this._functionAvg, _signature: [{ types: [l] }] }, ceil: { _func: this._functionCeil, _signature: [{ types: [o] }] }, contains: { _func: this._functionContains, _signature: [{ types: [u, p] }, { types: [s] }] }, ends_with: { _func: this._functionEndsWith, _signature: [{ types: [u] }, { types: [u] }] }, floor: { _func: this._functionFloor, _signature: [{ types: [o] }] }, length: { _func: this._functionLength, _signature: [{ types: [u, p, c] }] }, map: { _func: this._functionMap, _signature: [{ types: [m] }, { types: [p] }] }, max: { _func: this._functionMax, _signature: [{ types: [l, d] }] }, merge: { _func: this._functionMerge, _signature: [{ types: [c], variadic: !0 }] }, max_by: { _func: this._functionMaxBy, _signature: [{ types: [p] }, { types: [m] }] }, sum: { _func: this._functionSum, _signature: [{ types: [l] }] }, starts_with: { _func: this._functionStartsWith, _signature: [{ types: [u] }, { types: [u] }] }, min: { _func: this._functionMin, _signature: [{ types: [l, d] }] }, min_by: { _func: this._functionMinBy, _signature: [{ types: [p] }, { types: [m] }] }, type: { _func: this._functionType, _signature: [{ types: [s] }] }, keys: { _func: this._functionKeys, _signature: [{ types: [c] }] }, values: { _func: this._functionValues, _signature: [{ types: [c] }] }, sort: { _func: this._functionSort, _signature: [{ types: [d, l] }] }, sort_by: { _func: this._functionSortBy, _signature: [{ types: [p] }, { types: [m] }] }, join: { _func: this._functionJoin, _signature: [{ types: [u] }, { types: [d] }] }, reverse: { _func: this._functionReverse, _signature: [{ types: [u, p] }] }, to_array: { _func: this._functionToArray, _signature: [{ types: [s] }] }, to_string: { _func: this._functionToString, _signature: [{ types: [s] }] }, to_number: { _func: this._functionToNumber, _signature: [{ types: [s] }] }, not_null: { _func: this._functionNotNull, _signature: [{ types: [s], variadic: !0 }] } } } $[b] = 0, $[g] = 0, $[h] = 0, $[S] = 0, $[f] = 0, $[I] = 0, $[T] = 0, $[k] = 0, $[C] = 0, $[A] = 0, $[v] = 1, $[R] = 2, $[D] = 3, $[x] = 5, $[E] = 5, $[P] = 5, $[M] = 5, $[q] = 5, $[w] = 5, $[L] = 9, $[_] = 20, $[O] = 21, $[G] = 40, $[B] = 45, $[U] = 50, $[F] = 55, $[V] = 60, J.prototype = { parse: function(e) { this._loadTokens(e), this.index = 0; var t = this.expression(0); if (this._lookahead(0) !== b) { var r = this._lookaheadToken(0), a = new Error("Unexpected token type: " + r.type + ", value: " + r.value); throw a.name = "ParserError", a } return t }, _loadTokens: function(e) { var t = (new Q).tokenize(e); t.push({ type: b, value: "", start: e.length }), this.tokens = t }, expression: function(e) { var t = this._lookaheadToken(0); this._advance(); for (var r = this.nud(t), a = this._lookahead(0); e < $[a];) this._advance(), r = this.led(a, r), a = this._lookahead(0); return r }, _lookahead: function(e) { return this.tokens[this.index + e].type }, _lookaheadToken: function(e) { return this.tokens[this.index + e] }, _advance: function() { this.index++ }, nud: function(e) { var t, r; switch (e.type) { case z: return { type: "Literal", value: e.value }; case g: return { type: "Field", name: e.value }; case h: var a = { type: "Field", name: e.value }; if (this._lookahead(0) === V) throw new Error("Quoted identifier not allowed for function names."); return a; case B: return { type: "NotExpression", children: [t = this.expression($.Not)] }; case _: return t = null, { type: "ValueProjection", children: [{ type: "Identity" }, t = this._lookahead(0) === S ? { type: "Identity" } : this._parseProjectionRHS($.Star)] }; case O: return this.led(e.type, { type: "Identity" }); case U: return this._parseMultiselectHash(); case L: return { type: "Projection", children: [{ type: L, children: [{ type: "Identity" }] }, t = this._parseProjectionRHS($.Flatten)] }; case F: return this._lookahead(0) === k || this._lookahead(0) === N ? (t = this._parseIndexExpression(), this._projectIfSlice({ type: "Identity" }, t)) : this._lookahead(0) === _ && this._lookahead(1) === S ? (this._advance(), this._advance(), { type: "Projection", children: [{ type: "Identity" }, t = this._parseProjectionRHS($.Star)] }) : this._parseMultiselectList(); case C: return { type: C }; case A: return { type: "ExpressionReference", children: [r = this.expression($.Expref)] }; case V: for (var n = []; this._lookahead(0) !== f;) this._lookahead(0) === C ? (r = { type: C }, this._advance()) : r = this.expression(0), n.push(r); return this._match(f), n[0]; default: this._errorToken(e) } }, led: function(e, t) { var r; switch (e) { case G: var a = $.Dot; return this._lookahead(0) !== _ ? { type: "Subexpression", children: [t, r = this._parseDotRHS(a)] } : (this._advance(), { type: "ValueProjection", children: [t, r = this._parseProjectionRHS(a)] }); case v: return r = this.expression($.Pipe), { type: v, children: [t, r] }; case R: return { type: "OrExpression", children: [t, r = this.expression($.Or)] }; case D: return { type: "AndExpression", children: [t, r = this.expression($.And)] }; case V: for (var n, i = t.name, o = []; this._lookahead(0) !== f;) this._lookahead(0) === C ? (n = { type: C }, this._advance()) : n = this.expression(0), this._lookahead(0) === I && this._match(I), o.push(n); return this._match(f), { type: "Function", name: i, children: o }; case O: var s = this.expression(0); return this._match(S), { type: "FilterProjection", children: [t, r = this._lookahead(0) === L ? { type: "Identity" } : this._parseProjectionRHS($.Filter), s] }; case L: return { type: "Projection", children: [{ type: L, children: [t] }, this._parseProjectionRHS($.Flatten)] }; case x: case w: case E: case M: case P: case q: return this._parseComparator(t, e); case F: var u = this._lookaheadToken(0); return u.type === k || u.type === N ? (r = this._parseIndexExpression(), this._projectIfSlice(t, r)) : (this._match(_), this._match(S), { type: "Projection", children: [t, r = this._parseProjectionRHS($.Star)] }); default: this._errorToken(this._lookaheadToken(0)) } }, _match: function(e) { if (this._lookahead(0) !== e) { var t = this._lookaheadToken(0), r = new Error("Expected " + e + ", got: " + t.type); throw r.name = "ParserError", r } this._advance() }, _errorToken: function(e) { var t = new Error("Invalid token (" + e.type + '): "' + e.value + '"'); throw t.name = "ParserError", t }, _parseIndexExpression: function() { if (this._lookahead(0) === N || this._lookahead(1) === N) return this._parseSliceExpression(); var e = { type: "Index", value: this._lookaheadToken(0).value }; return this._advance(), this._match(S), e }, _projectIfSlice: function(e, t) { var r = { type: "IndexExpression", children: [e, t] }; return "Slice" === t.type ? { type: "Projection", children: [r, this._parseProjectionRHS($.Star)] } : r }, _parseSliceExpression: function() { for (var e = [null, null, null], t = 0, r = this._lookahead(0); r !== S && t < 3;) { if (r === N) t++, this._advance(); else { if (r !== k) { var a = this._lookahead(0), n = new Error("Syntax error, unexpected token: " + a.value + "(" + a.type + ")"); throw n.name = "Parsererror", n } e[t] = this._lookaheadToken(0).value, this._advance() } r = this._lookahead(0) } return this._match(S), { type: "Slice", children: e } }, _parseComparator: function(e, t) { return { type: "Comparator", name: t, children: [e, this.expression($[t])] } }, _parseDotRHS: function(e) { var t = this._lookahead(0); return [g, h, _].indexOf(t) >= 0 ? this.expression(e) : t === F ? (this._match(F), this._parseMultiselectList()) : t === U ? (this._match(U), this._parseMultiselectHash()) : void 0 }, _parseProjectionRHS: function(e) { var t; if ($[this._lookahead(0)] < 10) t = { type: "Identity" }; else if (this._lookahead(0) === F) t = this.expression(e); else if (this._lookahead(0) === O) t = this.expression(e); else { if (this._lookahead(0) !== G) { var r = this._lookaheadToken(0), a = new Error("Sytanx error, unexpected token: " + r.value + "(" + r.type + ")"); throw a.name = "ParserError", a } this._match(G), t = this._parseDotRHS(e) } return t }, _parseMultiselectList: function() { for (var e = []; this._lookahead(0) !== S;) { var t = this.expression(0); if (e.push(t), this._lookahead(0) === I && (this._match(I), this._lookahead(0) === S)) throw new Error("Unexpected token Rbracket") } return this._match(S), { type: "MultiSelectList", children: e } }, _parseMultiselectHash: function() { for (var e, t, r, a = [], n = [g, h];;) { if (e = this._lookaheadToken(0), n.indexOf(e.type) < 0) throw new Error("Expecting an identifier token, got: " + e.type); if (t = e.value, this._advance(), this._match(N), r = { type: "KeyValuePair", name: t, value: this.expression(0) }, a.push(r), this._lookahead(0) === I) this._match(I); else if (this._lookahead(0) === T) { this._match(T); break } } return { type: "MultiSelectHash", children: a } } }, Z.prototype = { search: function(e, t) { return this.visit(e, t) }, visit: function(e, i) { var o, s, u, p, c, m, l, d, y; switch (e.type) { case "Field": return null !== i && r(i) ? void 0 === (m = i[e.name]) ? null : m : null; case "Subexpression": for (u = this.visit(e.children[0], i), y = 1; y < e.children.length; y++) if (null === (u = this.visit(e.children[1], u))) return null; return u; case "IndexExpression": return l = this.visit(e.children[0], i), this.visit(e.children[1], l); case "Index": if (!t(i)) return null; var b = e.value; return b < 0 && (b = i.length + b), void 0 === (u = i[b]) && (u = null), u; case "Slice": if (!t(i)) return null; var g = e.children.slice(0), h = this.computeSliceParams(i.length, g), S = h[0], f = h[1], I = h[2]; if (u = [], I > 0) for (y = S; y < f; y += I) u.push(i[y]); else for (y = S; y > f; y += I) u.push(i[y]); return u; case "Projection": var N = this.visit(e.children[0], i); if (!t(N)) return null; for (d = [], y = 0; y < N.length; y++) null !== (s = this.visit(e.children[1], N[y])) && d.push(s); return d; case "ValueProjection": if (!r(N = this.visit(e.children[0], i))) return null; d = []; var T = function(e) { for (var t = Object.keys(e), r = [], a = 0; a < t.length; a++) r.push(e[t[a]]); return r }(N); for (y = 0; y < T.length; y++) null !== (s = this.visit(e.children[1], T[y])) && d.push(s); return d; case "FilterProjection": if (!t(N = this.visit(e.children[0], i))) return null; var k = [], R = []; for (y = 0; y < N.length; y++) n(o = this.visit(e.children[2], N[y])) || k.push(N[y]); for (var D = 0; D < k.length; D++) null !== (s = this.visit(e.children[1], k[D])) && R.push(s); return R; case "Comparator": switch (p = this.visit(e.children[0], i), c = this.visit(e.children[1], i), e.name) { case x: u = a(p, c); break; case w: u = !a(p, c); break; case E: u = p > c; break; case M: u = p >= c; break; case P: u = p < c; break; case q: u = p <= c; break; default: throw new Error("Unknown comparator: " + e.name) } return u; case L: var _ = this.visit(e.children[0], i); if (!t(_)) return null; var O = []; for (y = 0; y < _.length; y++) t(s = _[y]) ? O.push.apply(O, s) : O.push(s); return O; case "Identity": return i; case "MultiSelectList": if (null === i) return null; for (d = [], y = 0; y < e.children.length; y++) d.push(this.visit(e.children[y], i)); return d; case "MultiSelectHash": if (null === i) return null; var G; for (d = {}, y = 0; y < e.children.length; y++) d[(G = e.children[y]).name] = this.visit(G.value, i); return d; case "OrExpression": return n(o = this.visit(e.children[0], i)) && (o = this.visit(e.children[1], i)), o; case "AndExpression": return !0 === n(p = this.visit(e.children[0], i)) ? p : this.visit(e.children[1], i); case "NotExpression": return n(p = this.visit(e.children[0], i)); case "Literal": return e.value; case v: return l = this.visit(e.children[0], i), this.visit(e.children[1], l); case C: return i; case "Function": var B = []; for (y = 0; y < e.children.length; y++) B.push(this.visit(e.children[y], i)); return this.runtime.callFunction(e.name, B); case "ExpressionReference": var U = e.children[0]; return U.jmespathType = A, U; default: throw new Error("Unknown node type: " + e.type) } }, computeSliceParams: function(e, t) { var r = t[0], a = t[1], n = t[2], i = [null, null, null]; if (null === n) n = 1; else if (0 === n) { var o = new Error("Invalid slice, step cannot be 0"); throw o.name = "RuntimeError", o } var s = n < 0; return r = null === r ? s ? e - 1 : 0 : this.capSliceRange(e, r, n), a = null === a ? s ? -1 : e : this.capSliceRange(e, a, n), i[0] = r, i[1] = a, i[2] = n, i }, capSliceRange: function(e, t, r) { return t < 0 ? (t += e) < 0 && (t = r < 0 ? -1 : 0) : t >= e && (t = r < 0 ? e - 1 : e), t } }, Y.prototype = { callFunction: function(e, t) { var r = this.functionTable[e]; if (void 0 === r) throw new Error("Unknown function: " + e + "()"); return this._validateArgs(e, t, r._signature), r._func.call(this, t) }, _validateArgs: function(e, t, r) { var a, n, i, o; if (r[r.length - 1].variadic) { if (t.length < r.length) throw a = 1 === r.length ? " argument" : " arguments", new Error("ArgumentError: " + e + "() takes at least" + r.length + a + " but received " + t.length) } else if (t.length !== r.length) throw a = 1 === r.length ? " argument" : " arguments", new Error("ArgumentError: " + e + "() takes " + r.length + a + " but received " + t.length); for (var s = 0; s < r.length; s++) { o = !1, n = r[s].types, i = this._getTypeName(t[s]); for (var u = 0; u < n.length; u++) if (this._typeMatches(i, n[u], t[s])) { o = !0; break } if (!o) { var p = n.map((function(e) { return y[e] })).join(","); throw new Error("TypeError: " + e + "() expected argument " + (s + 1) + " to be type " + p + " but received type " + y[i] + " instead.") } } }, _typeMatches: function(e, t, r) { if (t === s) return !0; if (t !== d && t !== l && t !== p) return e === t; if (t === p) return e === p; if (e === p) { var a; t === l ? a = o : t === d && (a = u); for (var n = 0; n < r.length; n++) if (!this._typeMatches(this._getTypeName(r[n]), a, r[n])) return !1; return !0 } }, _getTypeName: function(e) { switch (Object.prototype.toString.call(e)) { case "[object String]": return u; case "[object Number]": return o; case "[object Array]": return p; case "[object Boolean]": return 5; case "[object Null]": return 7; case "[object Object]": return e.jmespathType === A ? m : c } }, _functionStartsWith: function(e) { return 0 === e[0].lastIndexOf(e[1]) }, _functionEndsWith: function(e) { var t = e[0], r = e[1]; return -1 !== t.indexOf(r, t.length - r.length) }, _functionReverse: function(e) { if (this._getTypeName(e[0]) === u) { for (var t = e[0], r = "", a = t.length - 1; a >= 0; a--) r += t[a]; return r } var n = e[0].slice(0); return n.reverse(), n }, _functionAbs: function(e) { return Math.abs(e[0]) }, _functionCeil: function(e) { return Math.ceil(e[0]) }, _functionAvg: function(e) { for (var t = 0, r = e[0], a = 0; a < r.length; a++) t += r[a]; return t / r.length }, _functionContains: function(e) { return e[0].indexOf(e[1]) >= 0 }, _functionFloor: function(e) { return Math.floor(e[0]) }, _functionLength: function(e) { return r(e[0]) ? Object.keys(e[0]).length : e[0].length }, _functionMap: function(e) { for (var t = [], r = this._interpreter, a = e[0], n = e[1], i = 0; i < n.length; i++) t.push(r.visit(a, n[i])); return t }, _functionMerge: function(e) { for (var t = {}, r = 0; r < e.length; r++) { var a = e[r]; for (var n in a) t[n] = a[n] } return t }, _functionMax: function(e) { if (e[0].length > 0) { if (this._getTypeName(e[0][0]) === o) return Math.max.apply(Math, e[0]); for (var t = e[0], r = t[0], a = 1; a < t.length; a++) r.localeCompare(t[a]) < 0 && (r = t[a]); return r } return null }, _functionMin: function(e) { if (e[0].length > 0) { if (this._getTypeName(e[0][0]) === o) return Math.min.apply(Math, e[0]); for (var t = e[0], r = t[0], a = 1; a < t.length; a++) t[a].localeCompare(r) < 0 && (r = t[a]); return r } return null }, _functionSum: function(e) { for (var t = 0, r = e[0], a = 0; a < r.length; a++) t += r[a]; return t }, _functionType: function(e) { switch (this._getTypeName(e[0])) { case o: return "number"; case u: return "string"; case p: return "array"; case c: return "object"; case 5: return "boolean"; case m: return "expref"; case 7: return "null" } }, _functionKeys: function(e) { return Object.keys(e[0]) }, _functionValues: function(e) { for (var t = e[0], r = Object.keys(t), a = [], n = 0; n < r.length; n++) a.push(t[r[n]]); return a }, _functionJoin: function(e) { var t = e[0]; return e[1].join(t) }, _functionToArray: function(e) { return this._getTypeName(e[0]) === p ? e[0] : [e[0]] }, _functionToString: function(e) { return this._getTypeName(e[0]) === u ? e[0] : JSON.stringify(e[0]) }, _functionToNumber: function(e) { var t, r = this._getTypeName(e[0]); return r === o ? e[0] : r !== u || (t = +e[0], isNaN(t)) ? null : t }, _functionNotNull: function(e) { for (var t = 0; t < e.length; t++) if (7 !== this._getTypeName(e[t])) return e[t]; return null }, _functionSort: function(e) { var t = e[0].slice(0); return t.sort(), t }, _functionSortBy: function(e) { var t = e[0].slice(0); if (0 === t.length) return t; var r = this._interpreter, a = e[1], n = this._getTypeName(r.visit(a, t[0])); if ([o, u].indexOf(n) < 0) throw new Error("TypeError"); for (var i = this, s = [], p = 0; p < t.length; p++) s.push([p, t[p]]); s.sort((function(e, t) { var o = r.visit(a, e[1]), s = r.visit(a, t[1]); if (i._getTypeName(o) !== n) throw new Error("TypeError: expected " + n + ", received " + i._getTypeName(o)); if (i._getTypeName(s) !== n) throw new Error("TypeError: expected " + n + ", received " + i._getTypeName(s)); return o > s ? 1 : o < s ? -1 : e[0] - t[0] })); for (var c = 0; c < s.length; c++) t[c] = s[c][1]; return t }, _functionMaxBy: function(e) { for (var t, r, a = e[1], n = e[0], i = this.createKeyFunction(a, [o, u]), s = -1 / 0, p = 0; p < n.length; p++)(r = i(n[p])) > s && (s = r, t = n[p]); return t }, _functionMinBy: function(e) { for (var t, r, a = e[1], n = e[0], i = this.createKeyFunction(a, [o, u]), s = 1 / 0, p = 0; p < n.length; p++)(r = i(n[p])) < s && (s = r, t = n[p]); return t }, createKeyFunction: function(e, t) { var r = this, a = this._interpreter; return function(n) { var i = a.visit(e, n); if (t.indexOf(r._getTypeName(i)) < 0) { var o = "TypeError: expected one of " + t + ", received " + r._getTypeName(i); throw new Error(o) } return i } } }, e.tokenize = function(e) { return (new Q).tokenize(e) }, e.compile = function(e) { return (new J).parse(e) }, e.search = function(e, t) { var r = new J, a = new Y, n = new Z(a); a._interpreter = n; var i = r.parse(t); return n.search(i, e) }, e.strictDeepEqual = a }(t) }, 86891: e => { "use strict"; var t; e.exports = function(e) { var r, a = "&" + e + ";"; if ((t = t || document.createElement("i")).innerHTML = a, 59 === (r = t.textContent).charCodeAt(r.length - 1) && "semi" !== e) return !1; return r !== a && r } }, 95434: (e, t, r) => { "use strict"; var a = r(21922), n = r(93580), i = r(17194), o = r(65504), s = r(4929), u = r(86891); e.exports = function(e, t) { var r, i, o = {}; t || (t = {}); for (i in l) r = t[i], o[i] = null === r || void 0 === r ? l[i] : r; (o.position.indent || o.position.start) && (o.indent = o.position.indent || [], o.position = o.position.start); return function(e, t) { var r, i, o, l, U, F, V, z, W, H, K, j, Q, $, J, Z, Y, X, ee, te = t.additional, re = t.nonTerminated, ae = t.text, ne = t.reference, ie = t.warning, oe = t.textContext, se = t.referenceContext, ue = t.warningContext, pe = t.position, ce = t.indent || [], me = e.length, le = 0, de = -1, ye = pe.column || 1, be = pe.line || 1, ge = "", he = []; "string" === typeof te && (te = te.charCodeAt(0)); Z = Se(), z = ie ? fe : m, le--, me++; for (; ++le < me;) if (U === y && (ye = ce[de] || 1), (U = e.charCodeAt(le)) === h) { if ((V = e.charCodeAt(le + 1)) === d || V === y || V === b || V === g || V === h || V === f || V !== V || te && V === te) { ge += c(U), ye++; continue } for (j = Q = le + 1, ee = Q, V === N ? (ee = ++j, (V = e.charCodeAt(ee)) === T || V === k ? ($ = v, ee = ++j) : $ = R) : $ = A, r = "", K = "", l = "", J = x[$], ee--; ++ee < me && J(V = e.charCodeAt(ee));) l += c(V), $ === A && p.call(a, l) && (r = l, K = a[l]); (o = e.charCodeAt(ee) === S) && (ee++, (i = $ === A && u(l)) && (r = l, K = i)), X = 1 + ee - Q, (o || re) && (l ? $ === A ? (o && !K ? z(w, 1) : (r !== l && (X = 1 + (ee = j + r.length) - j, o = !1), o || (W = r ? E : M, t.attribute ? (V = e.charCodeAt(ee)) === I ? (z(W, X), K = null) : s(V) ? K = null : z(W, X) : z(W, X))), F = K) : (o || z(P, X), G(F = parseInt(l, D[$])) ? (z(_, X), F = c(C)) : F in n ? (z(L, X), F = n[F]) : (H = "", B(F) && z(L, X), F > 65535 && (H += c((F -= 65536) >>> 10 | 55296), F = 56320 | 1023 & F), F = H + c(F))) : $ !== A && z(q, X)), F ? (Ie(), Z = Se(), le = ee - 1, ye += ee - Q + 1, he.push(F), (Y = Se()).offset++, ne && ne.call(se, F, { start: Z, end: Y }, e.slice(Q - 1, ee)), Z = Y) : (l = e.slice(Q - 1, ee), ge += l, ye += l.length, le = ee - 1) } else 10 === U && (be++, de++, ye = 0), U === U ? (ge += c(U), ye++) : Ie(); return he.join(""); function Se() { return { line: be, column: ye, offset: le + (pe.offset || 0) } } function fe(e, t) { var r = Se(); r.column += t, r.offset += t, ie.call(ue, O[e], r, e) } function Ie() { ge && (he.push(ge), ae && ae.call(oe, ge, { start: Z, end: Se() }), ge = "") } }(e, o) }; var p = {}.hasOwnProperty, c = String.fromCharCode, m = Function.prototype, l = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: !1, nonTerminated: !0 }, d = 9, y = 10, b = 12, g = 32, h = 38, S = 59, f = 60, I = 61, N = 35, T = 88, k = 120, C = 65533, A = "named", v = "hexadecimal", R = "decimal", D = {}; D[v] = 16, D[R] = 10; var x = {}; x[A] = s, x[R] = i, x[v] = o; var E = 1, P = 2, M = 3, q = 4, w = 5, L = 6, _ = 7, O = {}; function G(e) { return e >= 55296 && e <= 57343 || e > 1114111 } function B(e) { return e >= 1 && e <= 8 || 11 === e || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || 65535 === (65535 & e) || 65534 === (65535 & e) } O[E] = "Named character references must be terminated by a semicolon", O[P] = "Numeric character references must be terminated by a semicolon", O[M] = "Named character references cannot be empty", O[q] = "Numeric character references cannot be empty", O[w] = "Named character references must be known", O[L] = "Numeric character references cannot be disallowed", O[_] = "Numeric character references cannot be outside the permissible Unicode range" }, 80888: (e, t, r) => { "use strict"; var a = r(79047); function n() {} function i() {} i.resetWarningCache = n, e.exports = function() { function e(e, t, r, n, i, o) { if (o !== a) { var s = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"); throw s.name = "Invariant Violation", s } } function t() { return e } e.isRequired = e; var r = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, elementType: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, checkPropTypes: i, resetWarningCache: n }; return r.PropTypes = r, r } }, 52007: (e, t, r) => { e.exports = r(80888)() }, 79047: e => { "use strict"; e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED" }, 97059: e => { "use strict"; function t(e, t) { return Object.prototype.hasOwnProperty.call(e, t) } e.exports = function(e, r, a, n) { r = r || "&", a = a || "="; var i = {}; if ("string" !== typeof e || 0 === e.length) return i; var o = /\+/g; e = e.split(r); var s = 1e3; n && "number" === typeof n.maxKeys && (s = n.maxKeys); var u = e.length; s > 0 && u > s && (u = s); for (var p = 0; p < u; ++p) { var c, m, l, d, y = e[p].replace(o, "%20"), b = y.indexOf(a); b >= 0 ? (c = y.substr(0, b), m = y.substr(b + 1)) : (c = y, m = ""), l = decodeURIComponent(c), d = decodeURIComponent(m), t(i, l) ? Array.isArray(i[l]) ? i[l].push(d) : i[l] = [i[l], d] : i[l] = d } return i } }, 94297: e => { "use strict"; var t = function(e) { switch (typeof e) { case "string": return e; case "boolean": return e ? "true" : "false"; case "number": return isFinite(e) ? e : ""; default: return "" } }; e.exports = function(e, r, a, n) { return r = r || "&", a = a || "=", null === e && (e = void 0), "object" === typeof e ? Object.keys(e).map((function(n) { var i = encodeURIComponent(t(n)) + a; return Array.isArray(e[n]) ? e[n].map((function(e) { return i + encodeURIComponent(t(e)) })).join(r) : i + encodeURIComponent(t(e[n])) })).join(r) : n ? encodeURIComponent(t(n)) + a + encodeURIComponent(t(e)) : "" } }, 30863: (e, t, r) => { "use strict"; t.decode = t.parse = r(97059), t.encode = t.stringify = r(94297) }, 34463: (e, t, r) => { "use strict"; var a = r(72791), n = r(45296); function i(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, r = 1; r < arguments.length; r++) t += "&args[]=" + encodeURIComponent(arguments[r]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." } var o = new Set, s = {}; function u(e, t) { p(e, t), p(e + "Capture", t) } function p(e, t) { for (s[e] = t, e = 0; e < t.length; e++) o.add(t[e]) } var c = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), m = Object.prototype.hasOwnProperty, l = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, d = {}, y = {}; function b(e, t, r, a, n, i, o) { this.acceptsBooleans = 2 === t || 3 === t || 4 === t, this.attributeName = a, this.attributeNamespace = n, this.mustUseProperty = r, this.propertyName = e, this.type = t, this.sanitizeURL = i, this.removeEmptyString = o } var g = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e) { g[e] = new b(e, 0, !1, e, null, !1, !1) })), [ ["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"] ].forEach((function(e) { var t = e[0]; g[t] = new b(t, 1, !1, e[1], null, !1, !1) })), ["contentEditable", "draggable", "spellCheck", "value"].forEach((function(e) { g[e] = new b(e, 2, !1, e.toLowerCase(), null, !1, !1) })), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach((function(e) { g[e] = new b(e, 2, !1, e, null, !1, !1) })), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e) { g[e] = new b(e, 3, !1, e.toLowerCase(), null, !1, !1) })), ["checked", "multiple", "muted", "selected"].forEach((function(e) { g[e] = new b(e, 3, !0, e, null, !1, !1) })), ["capture", "download"].forEach((function(e) { g[e] = new b(e, 4, !1, e, null, !1, !1) })), ["cols", "rows", "size", "span"].forEach((function(e) { g[e] = new b(e, 6, !1, e, null, !1, !1) })), ["rowSpan", "start"].forEach((function(e) { g[e] = new b(e, 5, !1, e.toLowerCase(), null, !1, !1) })); var h = /[\-:]([a-z])/g; function S(e) { return e[1].toUpperCase() } function f(e, t, r, a) { var n = g.hasOwnProperty(t) ? g[t] : null; (null !== n ? 0 !== n.type : a || !(2 < t.length) || "o" !== t[0] && "O" !== t[0] || "n" !== t[1] && "N" !== t[1]) && (function(e, t, r, a) { if (null === t || "undefined" === typeof t || function(e, t, r, a) { if (null !== r && 0 === r.type) return !1; switch (typeof t) { case "function": case "symbol": return !0; case "boolean": return !a && (null !== r ? !r.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); default: return !1 } }(e, t, r, a)) return !0; if (a) return !1; if (null !== r) switch (r.type) { case 3: return !t; case 4: return !1 === t; case 5: return isNaN(t); case 6: return isNaN(t) || 1 > t } return !1 }(t, r, n, a) && (r = null), a || null === n ? function(e) { return !!m.call(y, e) || !m.call(d, e) && (l.test(e) ? y[e] = !0 : (d[e] = !0, !1)) }(t) && (null === r ? e.removeAttribute(t) : e.setAttribute(t, "" + r)) : n.mustUseProperty ? e[n.propertyName] = null === r ? 3 !== n.type && "" : r : (t = n.attributeName, a = n.attributeNamespace, null === r ? e.removeAttribute(t) : (r = 3 === (n = n.type) || 4 === n && !0 === r ? "" : "" + r, a ? e.setAttributeNS(a, t, r) : e.setAttribute(t, r)))) } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e) { var t = e.replace(h, S); g[t] = new b(t, 1, !1, e, null, !1, !1) })), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e) { var t = e.replace(h, S); g[t] = new b(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1) })), ["xml:base", "xml:lang", "xml:space"].forEach((function(e) { var t = e.replace(h, S); g[t] = new b(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1) })), ["tabIndex", "crossOrigin"].forEach((function(e) { g[e] = new b(e, 1, !1, e.toLowerCase(), null, !1, !1) })), g.xlinkHref = new b("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach((function(e) { g[e] = new b(e, 1, !1, e.toLowerCase(), null, !0, !0) })); var I = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, N = Symbol.for("react.element"), T = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), R = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), M = Symbol.for("react.lazy"); Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode"); var q = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"), Symbol.for("react.cache"), Symbol.for("react.tracing_marker"); var w = Symbol.iterator; function L(e) { return null === e || "object" !== typeof e ? null : "function" === typeof(e = w && e[w] || e["@@iterator"]) ? e : null } var _, O = Object.assign; function G(e) { if (void 0 === _) try { throw Error() } catch (r) { var t = r.stack.trim().match(/\n( *(at )?)/); _ = t && t[1] || "" } return "\n" + _ + e } var B = !1; function U(e, t) { if (!e || B) return ""; B = !0; var r = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (t) if (t = function() { throw Error() }, Object.defineProperty(t.prototype, "props", { set: function() { throw Error() } }), "object" === typeof Reflect && Reflect.construct) { try { Reflect.construct(t, []) } catch (p) { var a = p } Reflect.construct(e, [], t) } else { try { t.call() } catch (p) { a = p } e.call(t.prototype) } else { try { throw Error() } catch (p) { a = p } e() } } catch (p) { if (p && a && "string" === typeof p.stack) { for (var n = p.stack.split("\n"), i = a.stack.split("\n"), o = n.length - 1, s = i.length - 1; 1 <= o && 0 <= s && n[o] !== i[s];) s--; for (; 1 <= o && 0 <= s; o--, s--) if (n[o] !== i[s]) { if (1 !== o || 1 !== s) do { if (o--, 0 > --s || n[o] !== i[s]) { var u = "\n" + n[o].replace(" at new ", " at "); return e.displayName && u.includes("") && (u = u.replace("", e.displayName)), u } } while (1 <= o && 0 <= s); break } } } finally { B = !1, Error.prepareStackTrace = r } return (e = e ? e.displayName || e.name : "") ? G(e) : "" } function F(e) { switch (e.tag) { case 5: return G(e.type); case 16: return G("Lazy"); case 13: return G("Suspense"); case 19: return G("SuspenseList"); case 0: case 2: case 15: return e = U(e.type, !1); case 11: return e = U(e.type.render, !1); case 1: return e = U(e.type, !0); default: return "" } } function V(e) { if (null == e) return null; if ("function" === typeof e) return e.displayName || e.name || null; if ("string" === typeof e) return e; switch (e) { case k: return "Fragment"; case T: return "Portal"; case A: return "Profiler"; case C: return "StrictMode"; case x: return "Suspense"; case E: return "SuspenseList" } if ("object" === typeof e) switch (e.$$typeof) { case R: return (e.displayName || "Context") + ".Consumer"; case v: return (e._context.displayName || "Context") + ".Provider"; case D: var t = e.render; return (e = e.displayName) || (e = "" !== (e = t.displayName || t.name || "") ? "ForwardRef(" + e + ")" : "ForwardRef"), e; case P: return null !== (t = e.displayName || null) ? t : V(e.type) || "Memo"; case M: t = e._payload, e = e._init; try { return V(e(t)) } catch (r) {} } return null } function z(e) { var t = e.type; switch (e.tag) { case 24: return "Cache"; case 9: return (t.displayName || "Context") + ".Consumer"; case 10: return (t._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return e = (e = t.render).displayName || e.name || "", t.displayName || ("" !== e ? "ForwardRef(" + e + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: return t; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return V(t); case 8: return t === C ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if ("function" === typeof t) return t.displayName || t.name || null; if ("string" === typeof t) return t } return null } function W(e) { switch (typeof e) { case "boolean": case "number": case "string": case "undefined": case "object": return e; default: return "" } } function H(e) { var t = e.type; return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t) } function K(e) { e._valueTracker || (e._valueTracker = function(e) { var t = H(e) ? "checked" : "value", r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), a = "" + e[t]; if (!e.hasOwnProperty(t) && "undefined" !== typeof r && "function" === typeof r.get && "function" === typeof r.set) { var n = r.get, i = r.set; return Object.defineProperty(e, t, { configurable: !0, get: function() { return n.call(this) }, set: function(e) { a = "" + e, i.call(this, e) } }), Object.defineProperty(e, t, { enumerable: r.enumerable }), { getValue: function() { return a }, setValue: function(e) { a = "" + e }, stopTracking: function() { e._valueTracker = null, delete e[t] } } } }(e)) } function j(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var r = t.getValue(), a = ""; return e && (a = H(e) ? e.checked ? "true" : "false" : e.value), (e = a) !== r && (t.setValue(e), !0) } function Q(e) { if ("undefined" === typeof(e = e || ("undefined" !== typeof document ? document : void 0))) return null; try { return e.activeElement || e.body } catch (t) { return e.body } } function $(e, t) { var r = t.checked; return O({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != r ? r : e._wrapperState.initialChecked }) } function J(e, t) { var r = null == t.defaultValue ? "" : t.defaultValue, a = null != t.checked ? t.checked : t.defaultChecked; r = W(null != t.value ? t.value : r), e._wrapperState = { initialChecked: a, initialValue: r, controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value } } function Z(e, t) { null != (t = t.checked) && f(e, "checked", t, !1) } function Y(e, t) { Z(e, t); var r = W(t.value), a = t.type; if (null != r) "number" === a ? (0 === r && "" === e.value || e.value != r) && (e.value = "" + r) : e.value !== "" + r && (e.value = "" + r); else if ("submit" === a || "reset" === a) return void e.removeAttribute("value"); t.hasOwnProperty("value") ? ee(e, t.type, r) : t.hasOwnProperty("defaultValue") && ee(e, t.type, W(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked) } function X(e, t, r) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { var a = t.type; if (!("submit" !== a && "reset" !== a || void 0 !== t.value && null !== t.value)) return; t = "" + e._wrapperState.initialValue, r || t === e.value || (e.value = t), e.defaultValue = t } "" !== (r = e.name) && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, "" !== r && (e.name = r) } function ee(e, t, r) { "number" === t && Q(e.ownerDocument) === e || (null == r ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + r && (e.defaultValue = "" + r)) } var te = Array.isArray; function re(e, t, r, a) { if (e = e.options, t) { t = {}; for (var n = 0; n < r.length; n++) t["$" + r[n]] = !0; for (r = 0; r < e.length; r++) n = t.hasOwnProperty("$" + e[r].value), e[r].selected !== n && (e[r].selected = n), n && a && (e[r].defaultSelected = !0) } else { for (r = "" + W(r), t = null, n = 0; n < e.length; n++) { if (e[n].value === r) return e[n].selected = !0, void(a && (e[n].defaultSelected = !0)); null !== t || e[n].disabled || (t = e[n]) } null !== t && (t.selected = !0) } } function ae(e, t) { if (null != t.dangerouslySetInnerHTML) throw Error(i(91)); return O({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }) } function ne(e, t) { var r = t.value; if (null == r) { if (r = t.children, t = t.defaultValue, null != r) { if (null != t) throw Error(i(92)); if (te(r)) { if (1 < r.length) throw Error(i(93)); r = r[0] } t = r } null == t && (t = ""), r = t } e._wrapperState = { initialValue: W(r) } } function ie(e, t) { var r = W(t.value), a = W(t.defaultValue); null != r && ((r = "" + r) !== e.value && (e.value = r), null == t.defaultValue && e.defaultValue !== r && (e.defaultValue = r)), null != a && (e.defaultValue = "" + a) } function oe(e) { var t = e.textContent; t === e._wrapperState.initialValue && "" !== t && null !== t && (e.value = t) } function se(e) { switch (e) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml" } } function ue(e, t) { return null == e || "http://www.w3.org/1999/xhtml" === e ? se(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e } var pe, ce, me = (ce = function(e, t) { if ("http://www.w3.org/2000/svg" !== e.namespaceURI || "innerHTML" in e) e.innerHTML = t; else { for ((pe = pe || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = pe.firstChild; e.firstChild;) e.removeChild(e.firstChild); for (; t.firstChild;) e.appendChild(t.firstChild) } }, "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(e, t, r, a) { MSApp.execUnsafeLocalFunction((function() { return ce(e, t) })) } : ce); function le(e, t) { if (t) { var r = e.firstChild; if (r && r === e.lastChild && 3 === r.nodeType) return void(r.nodeValue = t) } e.textContent = t } var de = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, ye = ["Webkit", "ms", "Moz", "O"]; function be(e, t, r) { return null == t || "boolean" === typeof t || "" === t ? "" : r || "number" !== typeof t || 0 === t || de.hasOwnProperty(e) && de[e] ? ("" + t).trim() : t + "px" } function ge(e, t) { for (var r in e = e.style, t) if (t.hasOwnProperty(r)) { var a = 0 === r.indexOf("--"), n = be(r, t[r], a); "float" === r && (r = "cssFloat"), a ? e.setProperty(r, n) : e[r] = n } } Object.keys(de).forEach((function(e) { ye.forEach((function(t) { t = t + e.charAt(0).toUpperCase() + e.substring(1), de[t] = de[e] })) })); var he = O({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function Se(e, t) { if (t) { if (he[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) throw Error(i(137, e)); if (null != t.dangerouslySetInnerHTML) { if (null != t.children) throw Error(i(60)); if ("object" !== typeof t.dangerouslySetInnerHTML || !("__html" in t.dangerouslySetInnerHTML)) throw Error(i(61)) } if (null != t.style && "object" !== typeof t.style) throw Error(i(62)) } } function fe(e, t) { if (-1 === e.indexOf("-")) return "string" === typeof t.is; switch (e) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0 } } var Ie = null; function Ne(e) { return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e } var Te = null, ke = null, Ce = null; function Ae(e) { if (e = fn(e)) { if ("function" !== typeof Te) throw Error(i(280)); var t = e.stateNode; t && (t = Nn(t), Te(e.stateNode, e.type, t)) } } function ve(e) { ke ? Ce ? Ce.push(e) : Ce = [e] : ke = e } function Re() { if (ke) { var e = ke, t = Ce; if (Ce = ke = null, Ae(e), t) for (e = 0; e < t.length; e++) Ae(t[e]) } } function De(e, t) { return e(t) } function xe() {} var Ee = !1; function Pe(e, t, r) { if (Ee) return e(t, r); Ee = !0; try { return De(e, t, r) } finally { Ee = !1, (null !== ke || null !== Ce) && (xe(), Re()) } } function Me(e, t) { var r = e.stateNode; if (null === r) return null; var a = Nn(r); if (null === a) return null; r = a[t]; e: switch (t) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (a = !a.disabled) || (a = !("button" === (e = e.type) || "input" === e || "select" === e || "textarea" === e)), e = !a; break e; default: e = !1 } if (e) return null; if (r && "function" !== typeof r) throw Error(i(231, t, typeof r)); return r } var qe = !1; if (c) try { var we = {}; Object.defineProperty(we, "passive", { get: function() { qe = !0 } }), window.addEventListener("test", we, we), window.removeEventListener("test", we, we) } catch (ce) { qe = !1 } function Le(e, t, r, a, n, i, o, s, u) { var p = Array.prototype.slice.call(arguments, 3); try { t.apply(r, p) } catch (c) { this.onError(c) } } var _e = !1, Oe = null, Ge = !1, Be = null, Ue = { onError: function(e) { _e = !0, Oe = e } }; function Fe(e, t, r, a, n, i, o, s, u) { _e = !1, Oe = null, Le.apply(Ue, arguments) } function Ve(e) { var t = e, r = e; if (e.alternate) for (; t.return;) t = t.return; else { e = t; do { 0 !== (4098 & (t = e).flags) && (r = t.return), e = t.return } while (e) } return 3 === t.tag ? r : null } function ze(e) { if (13 === e.tag) { var t = e.memoizedState; if (null === t && (null !== (e = e.alternate) && (t = e.memoizedState)), null !== t) return t.dehydrated } return null } function We(e) { if (Ve(e) !== e) throw Error(i(188)) } function He(e) { return null !== (e = function(e) { var t = e.alternate; if (!t) { if (null === (t = Ve(e))) throw Error(i(188)); return t !== e ? null : e } for (var r = e, a = t;;) { var n = r.return; if (null === n) break; var o = n.alternate; if (null === o) { if (null !== (a = n.return)) { r = a; continue } break } if (n.child === o.child) { for (o = n.child; o;) { if (o === r) return We(n), e; if (o === a) return We(n), t; o = o.sibling } throw Error(i(188)) } if (r.return !== a.return) r = n, a = o; else { for (var s = !1, u = n.child; u;) { if (u === r) { s = !0, r = n, a = o; break } if (u === a) { s = !0, a = n, r = o; break } u = u.sibling } if (!s) { for (u = o.child; u;) { if (u === r) { s = !0, r = o, a = n; break } if (u === a) { s = !0, a = o, r = n; break } u = u.sibling } if (!s) throw Error(i(189)) } } if (r.alternate !== a) throw Error(i(190)) } if (3 !== r.tag) throw Error(i(188)); return r.stateNode.current === r ? e : t }(e)) ? Ke(e) : null } function Ke(e) { if (5 === e.tag || 6 === e.tag) return e; for (e = e.child; null !== e;) { var t = Ke(e); if (null !== t) return t; e = e.sibling } return null } var je = n.unstable_scheduleCallback, Qe = n.unstable_cancelCallback, $e = n.unstable_shouldYield, Je = n.unstable_requestPaint, Ze = n.unstable_now, Ye = n.unstable_getCurrentPriorityLevel, Xe = n.unstable_ImmediatePriority, et = n.unstable_UserBlockingPriority, tt = n.unstable_NormalPriority, rt = n.unstable_LowPriority, at = n.unstable_IdlePriority, nt = null, it = null; var ot = Math.clz32 ? Math.clz32 : function(e) { return e >>>= 0, 0 === e ? 32 : 31 - (st(e) / ut | 0) | 0 }, st = Math.log, ut = Math.LN2; var pt = 64, ct = 4194304; function mt(e) { switch (e & -e) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return 4194240 & e; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return 130023424 & e; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return e } } function lt(e, t) { var r = e.pendingLanes; if (0 === r) return 0; var a = 0, n = e.suspendedLanes, i = e.pingedLanes, o = 268435455 & r; if (0 !== o) { var s = o & ~n; 0 !== s ? a = mt(s) : 0 !== (i &= o) && (a = mt(i)) } else 0 !== (o = r & ~n) ? a = mt(o) : 0 !== i && (a = mt(i)); if (0 === a) return 0; if (0 !== t && t !== a && 0 === (t & n) && ((n = a & -a) >= (i = t & -t) || 16 === n && 0 !== (4194240 & i))) return t; if (0 !== (4 & a) && (a |= 16 & r), 0 !== (t = e.entangledLanes)) for (e = e.entanglements, t &= a; 0 < t;) n = 1 << (r = 31 - ot(t)), a |= e[r], t &= ~n; return a } function dt(e, t) { switch (e) { case 1: case 2: case 4: return t + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t + 5e3; default: return -1 } } function yt(e) { return 0 !== (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0 } function bt() { var e = pt; return 0 === (4194240 & (pt <<= 1)) && (pt = 64), e } function gt(e) { for (var t = [], r = 0; 31 > r; r++) t.push(e); return t } function ht(e, t, r) { e.pendingLanes |= t, 536870912 !== t && (e.suspendedLanes = 0, e.pingedLanes = 0), (e = e.eventTimes)[t = 31 - ot(t)] = r } function St(e, t) { var r = e.entangledLanes |= t; for (e = e.entanglements; r;) { var a = 31 - ot(r), n = 1 << a; n & t | e[a] & t && (e[a] |= t), r &= ~n } } var ft = 0; function It(e) { return 1 < (e &= -e) ? 4 < e ? 0 !== (268435455 & e) ? 16 : 536870912 : 4 : 1 } var Nt, Tt, kt, Ct, At, vt = !1, Rt = [], Dt = null, xt = null, Et = null, Pt = new Map, Mt = new Map, qt = [], wt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); function Lt(e, t) { switch (e) { case "focusin": case "focusout": Dt = null; break; case "dragenter": case "dragleave": xt = null; break; case "mouseover": case "mouseout": Et = null; break; case "pointerover": case "pointerout": Pt.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": Mt.delete(t.pointerId) } } function _t(e, t, r, a, n, i) { return null === e || e.nativeEvent !== i ? (e = { blockedOn: t, domEventName: r, eventSystemFlags: a, nativeEvent: i, targetContainers: [n] }, null !== t && (null !== (t = fn(t)) && Tt(t)), e) : (e.eventSystemFlags |= a, t = e.targetContainers, null !== n && -1 === t.indexOf(n) && t.push(n), e) } function Ot(e) { var t = Sn(e.target); if (null !== t) { var r = Ve(t); if (null !== r) if (13 === (t = r.tag)) { if (null !== (t = ze(r))) return e.blockedOn = t, void At(e.priority, (function() { kt(r) })) } else if (3 === t && r.stateNode.current.memoizedState.isDehydrated) return void(e.blockedOn = 3 === r.tag ? r.stateNode.containerInfo : null) } e.blockedOn = null } function Gt(e) { if (null !== e.blockedOn) return !1; for (var t = e.targetContainers; 0 < t.length;) { var r = $t(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (null !== r) return null !== (t = fn(r)) && Tt(t), e.blockedOn = r, !1; var a = new(r = e.nativeEvent).constructor(r.type, r); Ie = a, r.target.dispatchEvent(a), Ie = null, t.shift() } return !0 } function Bt(e, t, r) { Gt(e) && r.delete(t) } function Ut() { vt = !1, null !== Dt && Gt(Dt) && (Dt = null), null !== xt && Gt(xt) && (xt = null), null !== Et && Gt(Et) && (Et = null), Pt.forEach(Bt), Mt.forEach(Bt) } function Ft(e, t) { e.blockedOn === t && (e.blockedOn = null, vt || (vt = !0, n.unstable_scheduleCallback(n.unstable_NormalPriority, Ut))) } function Vt(e) { function t(t) { return Ft(t, e) } if (0 < Rt.length) { Ft(Rt[0], e); for (var r = 1; r < Rt.length; r++) { var a = Rt[r]; a.blockedOn === e && (a.blockedOn = null) } } for (null !== Dt && Ft(Dt, e), null !== xt && Ft(xt, e), null !== Et && Ft(Et, e), Pt.forEach(t), Mt.forEach(t), r = 0; r < qt.length; r++)(a = qt[r]).blockedOn === e && (a.blockedOn = null); for (; 0 < qt.length && null === (r = qt[0]).blockedOn;) Ot(r), null === r.blockedOn && qt.shift() } var zt = I.ReactCurrentBatchConfig, Wt = !0; function Ht(e, t, r, a) { var n = ft, i = zt.transition; zt.transition = null; try { ft = 1, jt(e, t, r, a) } finally { ft = n, zt.transition = i } } function Kt(e, t, r, a) { var n = ft, i = zt.transition; zt.transition = null; try { ft = 4, jt(e, t, r, a) } finally { ft = n, zt.transition = i } } function jt(e, t, r, a) { if (Wt) { var n = $t(e, t, r, a); if (null === n) za(e, t, a, Qt, r), Lt(e, a); else if (function(e, t, r, a, n) { switch (t) { case "focusin": return Dt = _t(Dt, e, t, r, a, n), !0; case "dragenter": return xt = _t(xt, e, t, r, a, n), !0; case "mouseover": return Et = _t(Et, e, t, r, a, n), !0; case "pointerover": var i = n.pointerId; return Pt.set(i, _t(Pt.get(i) || null, e, t, r, a, n)), !0; case "gotpointercapture": return i = n.pointerId, Mt.set(i, _t(Mt.get(i) || null, e, t, r, a, n)), !0 } return !1 }(n, e, t, r, a)) a.stopPropagation(); else if (Lt(e, a), 4 & t && -1 < wt.indexOf(e)) { for (; null !== n;) { var i = fn(n); if (null !== i && Nt(i), null === (i = $t(e, t, r, a)) && za(e, t, a, Qt, r), i === n) break; n = i } null !== n && a.stopPropagation() } else za(e, t, a, null, r) } } var Qt = null; function $t(e, t, r, a) { if (Qt = null, null !== (e = Sn(e = Ne(a)))) if (null === (t = Ve(e))) e = null; else if (13 === (r = t.tag)) { if (null !== (e = ze(t))) return e; e = null } else if (3 === r) { if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; e = null } else t !== e && (e = null); return Qt = e, null } function Jt(e) { switch (e) { case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch (Ye()) { case Xe: return 1; case et: return 4; case tt: case rt: return 16; case at: return 536870912; default: return 16 } default: return 16 } } var Zt = null, Yt = null, Xt = null; function er() { if (Xt) return Xt; var e, t, r = Yt, a = r.length, n = "value" in Zt ? Zt.value : Zt.textContent, i = n.length; for (e = 0; e < a && r[e] === n[e]; e++); var o = a - e; for (t = 1; t <= o && r[a - t] === n[i - t]; t++); return Xt = n.slice(e, 1 < t ? 1 - t : void 0) } function tr(e) { var t = e.keyCode; return "charCode" in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t, 10 === e && (e = 13), 32 <= e || 13 === e ? e : 0 } function rr() { return !0 } function ar() { return !1 } function nr(e) { function t(t, r, a, n, i) { for (var o in this._reactName = t, this._targetInst = a, this.type = r, this.nativeEvent = n, this.target = i, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(n) : n[o]); return this.isDefaultPrevented = (null != n.defaultPrevented ? n.defaultPrevented : !1 === n.returnValue) ? rr : ar, this.isPropagationStopped = ar, this } return O(t.prototype, { preventDefault: function() { this.defaultPrevented = !0; var e = this.nativeEvent; e && (e.preventDefault ? e.preventDefault() : "unknown" !== typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = rr) }, stopPropagation: function() { var e = this.nativeEvent; e && (e.stopPropagation ? e.stopPropagation() : "unknown" !== typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = rr) }, persist: function() {}, isPersistent: rr }), t } var ir, or, sr, ur = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) { return e.timeStamp || Date.now() }, defaultPrevented: 0, isTrusted: 0 }, pr = nr(ur), cr = O({}, ur, { view: 0, detail: 0 }), mr = nr(cr), lr = O({}, cr, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Cr, button: 0, buttons: 0, relatedTarget: function(e) { return void 0 === e.relatedTarget ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget }, movementX: function(e) { return "movementX" in e ? e.movementX : (e !== sr && (sr && "mousemove" === e.type ? (ir = e.screenX - sr.screenX, or = e.screenY - sr.screenY) : or = ir = 0, sr = e), ir) }, movementY: function(e) { return "movementY" in e ? e.movementY : or } }), dr = nr(lr), yr = nr(O({}, lr, { dataTransfer: 0 })), br = nr(O({}, cr, { relatedTarget: 0 })), gr = nr(O({}, ur, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), hr = O({}, ur, { clipboardData: function(e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData } }), Sr = nr(hr), fr = nr(O({}, ur, { data: 0 })), Ir = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, Nr = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, Tr = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function kr(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : !!(e = Tr[e]) && !!t[e] } function Cr() { return kr } var Ar = O({}, cr, { key: function(e) { if (e.key) { var t = Ir[e.key] || e.key; if ("Unidentified" !== t) return t } return "keypress" === e.type ? 13 === (e = tr(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? Nr[e.keyCode] || "Unidentified" : "" }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Cr, charCode: function(e) { return "keypress" === e.type ? tr(e) : 0 }, keyCode: function(e) { return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 }, which: function(e) { return "keypress" === e.type ? tr(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 } }), vr = nr(Ar), Rr = nr(O({}, lr, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 })), Dr = nr(O({}, cr, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Cr })), xr = nr(O({}, ur, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), Er = O({}, lr, { deltaX: function(e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0 }, deltaY: function(e) { return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0 }, deltaZ: 0, deltaMode: 0 }), Pr = nr(Er), Mr = [9, 13, 27, 32], qr = c && "CompositionEvent" in window, wr = null; c && "documentMode" in document && (wr = document.documentMode); var Lr = c && "TextEvent" in window && !wr, _r = c && (!qr || wr && 8 < wr && 11 >= wr), Or = String.fromCharCode(32), Gr = !1; function Br(e, t) { switch (e) { case "keyup": return -1 !== Mr.indexOf(t.keyCode); case "keydown": return 229 !== t.keyCode; case "keypress": case "mousedown": case "focusout": return !0; default: return !1 } } function Ur(e) { return "object" === typeof(e = e.detail) && "data" in e ? e.data : null } var Fr = !1; var Vr = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function zr(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return "input" === t ? !!Vr[e.type] : "textarea" === t } function Wr(e, t, r, a) { ve(a), 0 < (t = Ha(t, "onChange")).length && (r = new pr("onChange", "change", null, r, a), e.push({ event: r, listeners: t })) } var Hr = null, Kr = null; function jr(e) { Oa(e, 0) } function Qr(e) { if (j(In(e))) return e } function $r(e, t) { if ("change" === e) return t } var Jr = !1; if (c) { var Zr; if (c) { var Yr = "oninput" in document; if (!Yr) { var Xr = document.createElement("div"); Xr.setAttribute("oninput", "return;"), Yr = "function" === typeof Xr.oninput } Zr = Yr } else Zr = !1; Jr = Zr && (!document.documentMode || 9 < document.documentMode) } function ea() { Hr && (Hr.detachEvent("onpropertychange", ta), Kr = Hr = null) } function ta(e) { if ("value" === e.propertyName && Qr(Kr)) { var t = []; Wr(t, Kr, e, Ne(e)), Pe(jr, t) } } function ra(e, t, r) { "focusin" === e ? (ea(), Kr = r, (Hr = t).attachEvent("onpropertychange", ta)) : "focusout" === e && ea() } function aa(e) { if ("selectionchange" === e || "keyup" === e || "keydown" === e) return Qr(Kr) } function na(e, t) { if ("click" === e) return Qr(t) } function ia(e, t) { if ("input" === e || "change" === e) return Qr(t) } var oa = "function" === typeof Object.is ? Object.is : function(e, t) { return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t }; function sa(e, t) { if (oa(e, t)) return !0; if ("object" !== typeof e || null === e || "object" !== typeof t || null === t) return !1; var r = Object.keys(e), a = Object.keys(t); if (r.length !== a.length) return !1; for (a = 0; a < r.length; a++) { var n = r[a]; if (!m.call(t, n) || !oa(e[n], t[n])) return !1 } return !0 } function ua(e) { for (; e && e.firstChild;) e = e.firstChild; return e } function pa(e, t) { var r, a = ua(e); for (e = 0; a;) { if (3 === a.nodeType) { if (r = e + a.textContent.length, e <= t && r >= t) return { node: a, offset: t - e }; e = r } e: { for (; a;) { if (a.nextSibling) { a = a.nextSibling; break e } a = a.parentNode } a = void 0 } a = ua(a) } } function ca(e, t) { return !(!e || !t) && (e === t || (!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? ca(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t)))) } function ma() { for (var e = window, t = Q(); t instanceof e.HTMLIFrameElement;) { try { var r = "string" === typeof t.contentWindow.location.href } catch (a) { r = !1 } if (!r) break; t = Q((e = t.contentWindow).document) } return t } function la(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && ("input" === t && ("text" === e.type || "search" === e.type || "tel" === e.type || "url" === e.type || "password" === e.type) || "textarea" === t || "true" === e.contentEditable) } function da(e) { var t = ma(), r = e.focusedElem, a = e.selectionRange; if (t !== r && r && r.ownerDocument && ca(r.ownerDocument.documentElement, r)) { if (null !== a && la(r)) if (t = a.start, void 0 === (e = a.end) && (e = t), "selectionStart" in r) r.selectionStart = t, r.selectionEnd = Math.min(e, r.value.length); else if ((e = (t = r.ownerDocument || document) && t.defaultView || window).getSelection) { e = e.getSelection(); var n = r.textContent.length, i = Math.min(a.start, n); a = void 0 === a.end ? i : Math.min(a.end, n), !e.extend && i > a && (n = a, a = i, i = n), n = pa(r, i); var o = pa(r, a); n && o && (1 !== e.rangeCount || e.anchorNode !== n.node || e.anchorOffset !== n.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(n.node, n.offset), e.removeAllRanges(), i > a ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))) } for (t = [], e = r; e = e.parentNode;) 1 === e.nodeType && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); for ("function" === typeof r.focus && r.focus(), r = 0; r < t.length; r++)(e = t[r]).element.scrollLeft = e.left, e.element.scrollTop = e.top } } var ya = c && "documentMode" in document && 11 >= document.documentMode, ba = null, ga = null, ha = null, Sa = !1; function fa(e, t, r) { var a = r.window === r ? r.document : 9 === r.nodeType ? r : r.ownerDocument; Sa || null == ba || ba !== Q(a) || ("selectionStart" in (a = ba) && la(a) ? a = { start: a.selectionStart, end: a.selectionEnd } : a = { anchorNode: (a = (a.ownerDocument && a.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: a.anchorOffset, focusNode: a.focusNode, focusOffset: a.focusOffset }, ha && sa(ha, a) || (ha = a, 0 < (a = Ha(ga, "onSelect")).length && (t = new pr("onSelect", "select", null, t, r), e.push({ event: t, listeners: a }), t.target = ba))) } function Ia(e, t) { var r = {}; return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit" + e] = "webkit" + t, r["Moz" + e] = "moz" + t, r } var Na = { animationend: Ia("Animation", "AnimationEnd"), animationiteration: Ia("Animation", "AnimationIteration"), animationstart: Ia("Animation", "AnimationStart"), transitionend: Ia("Transition", "TransitionEnd") }, Ta = {}, ka = {}; function Ca(e) { if (Ta[e]) return Ta[e]; if (!Na[e]) return e; var t, r = Na[e]; for (t in r) if (r.hasOwnProperty(t) && t in ka) return Ta[e] = r[t]; return e } c && (ka = document.createElement("div").style, "AnimationEvent" in window || (delete Na.animationend.animation, delete Na.animationiteration.animation, delete Na.animationstart.animation), "TransitionEvent" in window || delete Na.transitionend.transition); var Aa = Ca("animationend"), va = Ca("animationiteration"), Ra = Ca("animationstart"), Da = Ca("transitionend"), xa = new Map, Ea = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); function Pa(e, t) { xa.set(e, t), u(t, [e]) } for (var Ma = 0; Ma < Ea.length; Ma++) { var qa = Ea[Ma]; Pa(qa.toLowerCase(), "on" + (qa[0].toUpperCase() + qa.slice(1))) } Pa(Aa, "onAnimationEnd"), Pa(va, "onAnimationIteration"), Pa(Ra, "onAnimationStart"), Pa("dblclick", "onDoubleClick"), Pa("focusin", "onFocus"), Pa("focusout", "onBlur"), Pa(Da, "onTransitionEnd"), p("onMouseEnter", ["mouseout", "mouseover"]), p("onMouseLeave", ["mouseout", "mouseover"]), p("onPointerEnter", ["pointerout", "pointerover"]), p("onPointerLeave", ["pointerout", "pointerover"]), u("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), u("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), u("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), u("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), u("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), u("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); var wa = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), La = new Set("cancel close invalid load scroll toggle".split(" ").concat(wa)); function _a(e, t, r) { var a = e.type || "unknown-event"; e.currentTarget = r, function(e, t, r, a, n, o, s, u, p) { if (Fe.apply(this, arguments), _e) { if (!_e) throw Error(i(198)); var c = Oe; _e = !1, Oe = null, Ge || (Ge = !0, Be = c) } }(a, t, void 0, e), e.currentTarget = null } function Oa(e, t) { t = 0 !== (4 & t); for (var r = 0; r < e.length; r++) { var a = e[r], n = a.event; a = a.listeners; e: { var i = void 0; if (t) for (var o = a.length - 1; 0 <= o; o--) { var s = a[o], u = s.instance, p = s.currentTarget; if (s = s.listener, u !== i && n.isPropagationStopped()) break e; _a(n, s, p), i = u } else for (o = 0; o < a.length; o++) { if (u = (s = a[o]).instance, p = s.currentTarget, s = s.listener, u !== i && n.isPropagationStopped()) break e; _a(n, s, p), i = u } } } if (Ge) throw e = Be, Ge = !1, Be = null, e } function Ga(e, t) { var r = t[bn]; void 0 === r && (r = t[bn] = new Set); var a = e + "__bubble"; r.has(a) || (Va(t, e, 2, !1), r.add(a)) } function Ba(e, t, r) { var a = 0; t && (a |= 4), Va(r, e, a, t) } var Ua = "_reactListening" + Math.random().toString(36).slice(2); function Fa(e) { if (!e[Ua]) { e[Ua] = !0, o.forEach((function(t) { "selectionchange" !== t && (La.has(t) || Ba(t, !1, e), Ba(t, !0, e)) })); var t = 9 === e.nodeType ? e : e.ownerDocument; null === t || t[Ua] || (t[Ua] = !0, Ba("selectionchange", !1, t)) } } function Va(e, t, r, a) { switch (Jt(t)) { case 1: var n = Ht; break; case 4: n = Kt; break; default: n = jt } r = n.bind(null, t, r, e), n = void 0, !qe || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (n = !0), a ? void 0 !== n ? e.addEventListener(t, r, { capture: !0, passive: n }) : e.addEventListener(t, r, !0) : void 0 !== n ? e.addEventListener(t, r, { passive: n }) : e.addEventListener(t, r, !1) } function za(e, t, r, a, n) { var i = a; if (0 === (1 & t) && 0 === (2 & t) && null !== a) e: for (;;) { if (null === a) return; var o = a.tag; if (3 === o || 4 === o) { var s = a.stateNode.containerInfo; if (s === n || 8 === s.nodeType && s.parentNode === n) break; if (4 === o) for (o = a.return; null !== o;) { var u = o.tag; if ((3 === u || 4 === u) && ((u = o.stateNode.containerInfo) === n || 8 === u.nodeType && u.parentNode === n)) return; o = o.return } for (; null !== s;) { if (null === (o = Sn(s))) return; if (5 === (u = o.tag) || 6 === u) { a = i = o; continue e } s = s.parentNode } } a = a.return } Pe((function() { var a = i, n = Ne(r), o = []; e: { var s = xa.get(e); if (void 0 !== s) { var u = pr, p = e; switch (e) { case "keypress": if (0 === tr(r)) break e; case "keydown": case "keyup": u = vr; break; case "focusin": p = "focus", u = br; break; case "focusout": p = "blur", u = br; break; case "beforeblur": case "afterblur": u = br; break; case "click": if (2 === r.button) break e; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": u = dr; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": u = yr; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": u = Dr; break; case Aa: case va: case Ra: u = gr; break; case Da: u = xr; break; case "scroll": u = mr; break; case "wheel": u = Pr; break; case "copy": case "cut": case "paste": u = Sr; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": u = Rr } var c = 0 !== (4 & t), m = !c && "scroll" === e, l = c ? null !== s ? s + "Capture" : null : s; c = []; for (var d, y = a; null !== y;) { var b = (d = y).stateNode; if (5 === d.tag && null !== b && (d = b, null !== l && (null != (b = Me(y, l)) && c.push(Wa(y, b, d)))), m) break; y = y.return } 0 < c.length && (s = new u(s, p, null, r, n), o.push({ event: s, listeners: c })) } } if (0 === (7 & t)) { if (u = "mouseout" === e || "pointerout" === e, (!(s = "mouseover" === e || "pointerover" === e) || r === Ie || !(p = r.relatedTarget || r.fromElement) || !Sn(p) && !p[yn]) && (u || s) && (s = n.window === n ? n : (s = n.ownerDocument) ? s.defaultView || s.parentWindow : window, u ? (u = a, null !== (p = (p = r.relatedTarget || r.toElement) ? Sn(p) : null) && (p !== (m = Ve(p)) || 5 !== p.tag && 6 !== p.tag) && (p = null)) : (u = null, p = a), u !== p)) { if (c = dr, b = "onMouseLeave", l = "onMouseEnter", y = "mouse", "pointerout" !== e && "pointerover" !== e || (c = Rr, b = "onPointerLeave", l = "onPointerEnter", y = "pointer"), m = null == u ? s : In(u), d = null == p ? s : In(p), (s = new c(b, y + "leave", u, r, n)).target = m, s.relatedTarget = d, b = null, Sn(n) === a && ((c = new c(l, y + "enter", p, r, n)).target = d, c.relatedTarget = m, b = c), m = b, u && p) e: { for (l = p, y = 0, d = c = u; d; d = Ka(d)) y++; for (d = 0, b = l; b; b = Ka(b)) d++; for (; 0 < y - d;) c = Ka(c), y--; for (; 0 < d - y;) l = Ka(l), d--; for (; y--;) { if (c === l || null !== l && c === l.alternate) break e; c = Ka(c), l = Ka(l) } c = null } else c = null; null !== u && ja(o, s, u, c, !1), null !== p && null !== m && ja(o, m, p, c, !0) } if ("select" === (u = (s = a ? In(a) : window).nodeName && s.nodeName.toLowerCase()) || "input" === u && "file" === s.type) var g = $r; else if (zr(s)) if (Jr) g = ia; else { g = aa; var h = ra } else(u = s.nodeName) && "input" === u.toLowerCase() && ("checkbox" === s.type || "radio" === s.type) && (g = na); switch (g && (g = g(e, a)) ? Wr(o, g, r, n) : (h && h(e, s, a), "focusout" === e && (h = s._wrapperState) && h.controlled && "number" === s.type && ee(s, "number", s.value)), h = a ? In(a) : window, e) { case "focusin": (zr(h) || "true" === h.contentEditable) && (ba = h, ga = a, ha = null); break; case "focusout": ha = ga = ba = null; break; case "mousedown": Sa = !0; break; case "contextmenu": case "mouseup": case "dragend": Sa = !1, fa(o, r, n); break; case "selectionchange": if (ya) break; case "keydown": case "keyup": fa(o, r, n) } var S; if (qr) e: { switch (e) { case "compositionstart": var f = "onCompositionStart"; break e; case "compositionend": f = "onCompositionEnd"; break e; case "compositionupdate": f = "onCompositionUpdate"; break e } f = void 0 } else Fr ? Br(e, r) && (f = "onCompositionEnd") : "keydown" === e && 229 === r.keyCode && (f = "onCompositionStart"); f && (_r && "ko" !== r.locale && (Fr || "onCompositionStart" !== f ? "onCompositionEnd" === f && Fr && (S = er()) : (Yt = "value" in (Zt = n) ? Zt.value : Zt.textContent, Fr = !0)), 0 < (h = Ha(a, f)).length && (f = new fr(f, e, null, r, n), o.push({ event: f, listeners: h }), S ? f.data = S : null !== (S = Ur(r)) && (f.data = S))), (S = Lr ? function(e, t) { switch (e) { case "compositionend": return Ur(t); case "keypress": return 32 !== t.which ? null : (Gr = !0, Or); case "textInput": return (e = t.data) === Or && Gr ? null : e; default: return null } }(e, r) : function(e, t) { if (Fr) return "compositionend" === e || !qr && Br(e, t) ? (e = er(), Xt = Yt = Zt = null, Fr = !1, e) : null; switch (e) { case "paste": default: return null; case "keypress": if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { if (t.char && 1 < t.char.length) return t.char; if (t.which) return String.fromCharCode(t.which) } return null; case "compositionend": return _r && "ko" !== t.locale ? null : t.data } }(e, r)) && (0 < (a = Ha(a, "onBeforeInput")).length && (n = new fr("onBeforeInput", "beforeinput", null, r, n), o.push({ event: n, listeners: a }), n.data = S)) } Oa(o, t) })) } function Wa(e, t, r) { return { instance: e, listener: t, currentTarget: r } } function Ha(e, t) { for (var r = t + "Capture", a = []; null !== e;) { var n = e, i = n.stateNode; 5 === n.tag && null !== i && (n = i, null != (i = Me(e, r)) && a.unshift(Wa(e, i, n)), null != (i = Me(e, t)) && a.push(Wa(e, i, n))), e = e.return } return a } function Ka(e) { if (null === e) return null; do { e = e.return } while (e && 5 !== e.tag); return e || null } function ja(e, t, r, a, n) { for (var i = t._reactName, o = []; null !== r && r !== a;) { var s = r, u = s.alternate, p = s.stateNode; if (null !== u && u === a) break; 5 === s.tag && null !== p && (s = p, n ? null != (u = Me(r, i)) && o.unshift(Wa(r, u, s)) : n || null != (u = Me(r, i)) && o.push(Wa(r, u, s))), r = r.return } 0 !== o.length && e.push({ event: t, listeners: o }) } var Qa = /\r\n?/g, $a = /\u0000|\uFFFD/g; function Ja(e) { return ("string" === typeof e ? e : "" + e).replace(Qa, "\n").replace($a, "") } function Za(e, t, r) { if (t = Ja(t), Ja(e) !== t && r) throw Error(i(425)) } function Ya() {} var Xa = null, en = null; function tn(e, t) { return "textarea" === e || "noscript" === e || "string" === typeof t.children || "number" === typeof t.children || "object" === typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && null != t.dangerouslySetInnerHTML.__html } var rn = "function" === typeof setTimeout ? setTimeout : void 0, an = "function" === typeof clearTimeout ? clearTimeout : void 0, nn = "function" === typeof Promise ? Promise : void 0, on = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof nn ? function(e) { return nn.resolve(null).then(e).catch(sn) } : rn; function sn(e) { setTimeout((function() { throw e })) } function un(e, t) { var r = t, a = 0; do { var n = r.nextSibling; if (e.removeChild(r), n && 8 === n.nodeType) if ("/$" === (r = n.data)) { if (0 === a) return e.removeChild(n), void Vt(t); a-- } else "$" !== r && "$?" !== r && "$!" !== r || a++; r = n } while (r); Vt(t) } function pn(e) { for (; null != e; e = e.nextSibling) { var t = e.nodeType; if (1 === t || 3 === t) break; if (8 === t) { if ("$" === (t = e.data) || "$!" === t || "$?" === t) break; if ("/$" === t) return null } } return e } function cn(e) { e = e.previousSibling; for (var t = 0; e;) { if (8 === e.nodeType) { var r = e.data; if ("$" === r || "$!" === r || "$?" === r) { if (0 === t) return e; t-- } else "/$" === r && t++ } e = e.previousSibling } return null } var mn = Math.random().toString(36).slice(2), ln = "__reactFiber$" + mn, dn = "__reactProps$" + mn, yn = "__reactContainer$" + mn, bn = "__reactEvents$" + mn, gn = "__reactListeners$" + mn, hn = "__reactHandles$" + mn; function Sn(e) { var t = e[ln]; if (t) return t; for (var r = e.parentNode; r;) { if (t = r[yn] || r[ln]) { if (r = t.alternate, null !== t.child || null !== r && null !== r.child) for (e = cn(e); null !== e;) { if (r = e[ln]) return r; e = cn(e) } return t } r = (e = r).parentNode } return null } function fn(e) { return !(e = e[ln] || e[yn]) || 5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag ? null : e } function In(e) { if (5 === e.tag || 6 === e.tag) return e.stateNode; throw Error(i(33)) } function Nn(e) { return e[dn] || null } var Tn = [], kn = -1; function Cn(e) { return { current: e } } function An(e) { 0 > kn || (e.current = Tn[kn], Tn[kn] = null, kn--) } function vn(e, t) { kn++, Tn[kn] = e.current, e.current = t } var Rn = {}, Dn = Cn(Rn), xn = Cn(!1), En = Rn; function Pn(e, t) { var r = e.type.contextTypes; if (!r) return Rn; var a = e.stateNode; if (a && a.__reactInternalMemoizedUnmaskedChildContext === t) return a.__reactInternalMemoizedMaskedChildContext; var n, i = {}; for (n in r) i[n] = t[n]; return a && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = i), i } function Mn(e) { return null !== (e = e.childContextTypes) && void 0 !== e } function qn() { An(xn), An(Dn) } function wn(e, t, r) { if (Dn.current !== Rn) throw Error(i(168)); vn(Dn, t), vn(xn, r) } function Ln(e, t, r) { var a = e.stateNode; if (t = t.childContextTypes, "function" !== typeof a.getChildContext) return r; for (var n in a = a.getChildContext()) if (!(n in t)) throw Error(i(108, z(e) || "Unknown", n)); return O({}, r, a) } function _n(e) { return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Rn, En = Dn.current, vn(Dn, e), vn(xn, xn.current), !0 } function On(e, t, r) { var a = e.stateNode; if (!a) throw Error(i(169)); r ? (e = Ln(e, t, En), a.__reactInternalMemoizedMergedChildContext = e, An(xn), An(Dn), vn(Dn, e)) : An(xn), vn(xn, r) } var Gn = null, Bn = !1, Un = !1; function Fn(e) { null === Gn ? Gn = [e] : Gn.push(e) } function Vn() { if (!Un && null !== Gn) { Un = !0; var e = 0, t = ft; try { var r = Gn; for (ft = 1; e < r.length; e++) { var a = r[e]; do { a = a(!0) } while (null !== a) } Gn = null, Bn = !1 } catch (n) { throw null !== Gn && (Gn = Gn.slice(e + 1)), je(Xe, Vn), n } finally { ft = t, Un = !1 } } return null } var zn = [], Wn = 0, Hn = null, Kn = 0, jn = [], Qn = 0, $n = null, Jn = 1, Zn = ""; function Yn(e, t) { zn[Wn++] = Kn, zn[Wn++] = Hn, Hn = e, Kn = t } function Xn(e, t, r) { jn[Qn++] = Jn, jn[Qn++] = Zn, jn[Qn++] = $n, $n = e; var a = Jn; e = Zn; var n = 32 - ot(a) - 1; a &= ~(1 << n), r += 1; var i = 32 - ot(t) + n; if (30 < i) { var o = n - n % 5; i = (a & (1 << o) - 1).toString(32), a >>= o, n -= o, Jn = 1 << 32 - ot(t) + n | r << n | a, Zn = i + e } else Jn = 1 << i | r << n | a, Zn = e } function ei(e) { null !== e.return && (Yn(e, 1), Xn(e, 1, 0)) } function ti(e) { for (; e === Hn;) Hn = zn[--Wn], zn[Wn] = null, Kn = zn[--Wn], zn[Wn] = null; for (; e === $n;) $n = jn[--Qn], jn[Qn] = null, Zn = jn[--Qn], jn[Qn] = null, Jn = jn[--Qn], jn[Qn] = null } var ri = null, ai = null, ni = !1, ii = null; function oi(e, t) { var r = Mp(5, null, null, 0); r.elementType = "DELETED", r.stateNode = t, r.return = e, null === (t = e.deletions) ? (e.deletions = [r], e.flags |= 16) : t.push(r) } function si(e, t) { switch (e.tag) { case 5: var r = e.type; return null !== (t = 1 !== t.nodeType || r.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && (e.stateNode = t, ri = e, ai = pn(t.firstChild), !0); case 6: return null !== (t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) && (e.stateNode = t, ri = e, ai = null, !0); case 13: return null !== (t = 8 !== t.nodeType ? null : t) && (r = null !== $n ? { id: Jn, overflow: Zn } : null, e.memoizedState = { dehydrated: t, treeContext: r, retryLane: 1073741824 }, (r = Mp(18, null, null, 0)).stateNode = t, r.return = e, e.child = r, ri = e, ai = null, !0); default: return !1 } } function ui(e) { return 0 !== (1 & e.mode) && 0 === (128 & e.flags) } function pi(e) { if (ni) { var t = ai; if (t) { var r = t; if (!si(e, t)) { if (ui(e)) throw Error(i(418)); t = pn(r.nextSibling); var a = ri; t && si(e, t) ? oi(a, r) : (e.flags = -4097 & e.flags | 2, ni = !1, ri = e) } } else { if (ui(e)) throw Error(i(418)); e.flags = -4097 & e.flags | 2, ni = !1, ri = e } } } function ci(e) { for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;) e = e.return; ri = e } function mi(e) { if (e !== ri) return !1; if (!ni) return ci(e), ni = !0, !1; var t; if ((t = 3 !== e.tag) && !(t = 5 !== e.tag) && (t = "head" !== (t = e.type) && "body" !== t && !tn(e.type, e.memoizedProps)), t && (t = ai)) { if (ui(e)) throw li(), Error(i(418)); for (; t;) oi(e, t), t = pn(t.nextSibling) } if (ci(e), 13 === e.tag) { if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(i(317)); e: { for (e = e.nextSibling, t = 0; e;) { if (8 === e.nodeType) { var r = e.data; if ("/$" === r) { if (0 === t) { ai = pn(e.nextSibling); break e } t-- } else "$" !== r && "$!" !== r && "$?" !== r || t++ } e = e.nextSibling } ai = null } } else ai = ri ? pn(e.stateNode.nextSibling) : null; return !0 } function li() { for (var e = ai; e;) e = pn(e.nextSibling) } function di() { ai = ri = null, ni = !1 } function yi(e) { null === ii ? ii = [e] : ii.push(e) } var bi = I.ReactCurrentBatchConfig; function gi(e, t) { if (e && e.defaultProps) { for (var r in t = O({}, t), e = e.defaultProps) void 0 === t[r] && (t[r] = e[r]); return t } return t } var hi = Cn(null), Si = null, fi = null, Ii = null; function Ni() { Ii = fi = Si = null } function Ti(e) { var t = hi.current; An(hi), e._currentValue = t } function ki(e, t, r) { for (; null !== e;) { var a = e.alternate; if ((e.childLanes & t) !== t ? (e.childLanes |= t, null !== a && (a.childLanes |= t)) : null !== a && (a.childLanes & t) !== t && (a.childLanes |= t), e === r) break; e = e.return } } function Ci(e, t) { Si = e, Ii = fi = null, null !== (e = e.dependencies) && null !== e.firstContext && (0 !== (e.lanes & t) && (Is = !0), e.firstContext = null) } function Ai(e) { var t = e._currentValue; if (Ii !== e) if (e = { context: e, memoizedValue: t, next: null }, null === fi) { if (null === Si) throw Error(i(308)); fi = e, Si.dependencies = { lanes: 0, firstContext: e } } else fi = fi.next = e; return t } var vi = null; function Ri(e) { null === vi ? vi = [e] : vi.push(e) } function Di(e, t, r, a) { var n = t.interleaved; return null === n ? (r.next = r, Ri(t)) : (r.next = n.next, n.next = r), t.interleaved = r, xi(e, a) } function xi(e, t) { e.lanes |= t; var r = e.alternate; for (null !== r && (r.lanes |= t), r = e, e = e.return; null !== e;) e.childLanes |= t, null !== (r = e.alternate) && (r.childLanes |= t), r = e, e = e.return; return 3 === r.tag ? r.stateNode : null } var Ei = !1; function Pi(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null } } function Mi(e, t) { e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects }) } function qi(e, t) { return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null } } function wi(e, t, r) { var a = e.updateQueue; if (null === a) return null; if (a = a.shared, 0 !== (2 & xu)) { var n = a.pending; return null === n ? t.next = t : (t.next = n.next, n.next = t), a.pending = t, xi(e, r) } return null === (n = a.interleaved) ? (t.next = t, Ri(a)) : (t.next = n.next, n.next = t), a.interleaved = t, xi(e, r) } function Li(e, t, r) { if (null !== (t = t.updateQueue) && (t = t.shared, 0 !== (4194240 & r))) { var a = t.lanes; r |= a &= e.pendingLanes, t.lanes = r, St(e, r) } } function _i(e, t) { var r = e.updateQueue, a = e.alternate; if (null !== a && r === (a = a.updateQueue)) { var n = null, i = null; if (null !== (r = r.firstBaseUpdate)) { do { var o = { eventTime: r.eventTime, lane: r.lane, tag: r.tag, payload: r.payload, callback: r.callback, next: null }; null === i ? n = i = o : i = i.next = o, r = r.next } while (null !== r); null === i ? n = i = t : i = i.next = t } else n = i = t; return r = { baseState: a.baseState, firstBaseUpdate: n, lastBaseUpdate: i, shared: a.shared, effects: a.effects }, void(e.updateQueue = r) } null === (e = r.lastBaseUpdate) ? r.firstBaseUpdate = t : e.next = t, r.lastBaseUpdate = t } function Oi(e, t, r, a) { var n = e.updateQueue; Ei = !1; var i = n.firstBaseUpdate, o = n.lastBaseUpdate, s = n.shared.pending; if (null !== s) { n.shared.pending = null; var u = s, p = u.next; u.next = null, null === o ? i = p : o.next = p, o = u; var c = e.alternate; null !== c && ((s = (c = c.updateQueue).lastBaseUpdate) !== o && (null === s ? c.firstBaseUpdate = p : s.next = p, c.lastBaseUpdate = u)) } if (null !== i) { var m = n.baseState; for (o = 0, c = p = u = null, s = i;;) { var l = s.lane, d = s.eventTime; if ((a & l) === l) { null !== c && (c = c.next = { eventTime: d, lane: 0, tag: s.tag, payload: s.payload, callback: s.callback, next: null }); e: { var y = e, b = s; switch (l = t, d = r, b.tag) { case 1: if ("function" === typeof(y = b.payload)) { m = y.call(d, m, l); break e } m = y; break e; case 3: y.flags = -65537 & y.flags | 128; case 0: if (null === (l = "function" === typeof(y = b.payload) ? y.call(d, m, l) : y) || void 0 === l) break e; m = O({}, m, l); break e; case 2: Ei = !0 } } null !== s.callback && 0 !== s.lane && (e.flags |= 64, null === (l = n.effects) ? n.effects = [s] : l.push(s)) } else d = { eventTime: d, lane: l, tag: s.tag, payload: s.payload, callback: s.callback, next: null }, null === c ? (p = c = d, u = m) : c = c.next = d, o |= l; if (null === (s = s.next)) { if (null === (s = n.shared.pending)) break; s = (l = s).next, l.next = null, n.lastBaseUpdate = l, n.shared.pending = null } } if (null === c && (u = m), n.baseState = u, n.firstBaseUpdate = p, n.lastBaseUpdate = c, null !== (t = n.shared.interleaved)) { n = t; do { o |= n.lane, n = n.next } while (n !== t) } else null === i && (n.shared.lanes = 0); Ou |= o, e.lanes = o, e.memoizedState = m } } function Gi(e, t, r) { if (e = t.effects, t.effects = null, null !== e) for (t = 0; t < e.length; t++) { var a = e[t], n = a.callback; if (null !== n) { if (a.callback = null, a = r, "function" !== typeof n) throw Error(i(191, n)); n.call(a) } } } var Bi = (new a.Component).refs; function Ui(e, t, r, a) { r = null === (r = r(a, t = e.memoizedState)) || void 0 === r ? t : O({}, t, r), e.memoizedState = r, 0 === e.lanes && (e.updateQueue.baseState = r) } var Fi = { isMounted: function(e) { return !!(e = e._reactInternals) && Ve(e) === e }, enqueueSetState: function(e, t, r) { e = e._reactInternals; var a = tp(), n = rp(e), i = qi(a, n); i.payload = t, void 0 !== r && null !== r && (i.callback = r), null !== (t = wi(e, i, n)) && (ap(t, e, n, a), Li(t, e, n)) }, enqueueReplaceState: function(e, t, r) { e = e._reactInternals; var a = tp(), n = rp(e), i = qi(a, n); i.tag = 1, i.payload = t, void 0 !== r && null !== r && (i.callback = r), null !== (t = wi(e, i, n)) && (ap(t, e, n, a), Li(t, e, n)) }, enqueueForceUpdate: function(e, t) { e = e._reactInternals; var r = tp(), a = rp(e), n = qi(r, a); n.tag = 2, void 0 !== t && null !== t && (n.callback = t), null !== (t = wi(e, n, a)) && (ap(t, e, a, r), Li(t, e, a)) } }; function Vi(e, t, r, a, n, i, o) { return "function" === typeof(e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(a, i, o) : !t.prototype || !t.prototype.isPureReactComponent || (!sa(r, a) || !sa(n, i)) } function zi(e, t, r) { var a = !1, n = Rn, i = t.contextType; return "object" === typeof i && null !== i ? i = Ai(i) : (n = Mn(t) ? En : Dn.current, i = (a = null !== (a = t.contextTypes) && void 0 !== a) ? Pn(e, n) : Rn), t = new t(r, i), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Fi, e.stateNode = t, t._reactInternals = e, a && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = n, e.__reactInternalMemoizedMaskedChildContext = i), t } function Wi(e, t, r, a) { e = t.state, "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(r, a), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(r, a), t.state !== e && Fi.enqueueReplaceState(t, t.state, null) } function Hi(e, t, r, a) { var n = e.stateNode; n.props = r, n.state = e.memoizedState, n.refs = Bi, Pi(e); var i = t.contextType; "object" === typeof i && null !== i ? n.context = Ai(i) : (i = Mn(t) ? En : Dn.current, n.context = Pn(e, i)), n.state = e.memoizedState, "function" === typeof(i = t.getDerivedStateFromProps) && (Ui(e, t, i, r), n.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof n.getSnapshotBeforeUpdate || "function" !== typeof n.UNSAFE_componentWillMount && "function" !== typeof n.componentWillMount || (t = n.state, "function" === typeof n.componentWillMount && n.componentWillMount(), "function" === typeof n.UNSAFE_componentWillMount && n.UNSAFE_componentWillMount(), t !== n.state && Fi.enqueueReplaceState(n, n.state, null), Oi(e, r, n, a), n.state = e.memoizedState), "function" === typeof n.componentDidMount && (e.flags |= 4194308) } function Ki(e, t, r) { if (null !== (e = r.ref) && "function" !== typeof e && "object" !== typeof e) { if (r._owner) { if (r = r._owner) { if (1 !== r.tag) throw Error(i(309)); var a = r.stateNode } if (!a) throw Error(i(147, e)); var n = a, o = "" + e; return null !== t && null !== t.ref && "function" === typeof t.ref && t.ref._stringRef === o ? t.ref : (t = function(e) { var t = n.refs; t === Bi && (t = n.refs = {}), null === e ? delete t[o] : t[o] = e }, t._stringRef = o, t) } if ("string" !== typeof e) throw Error(i(284)); if (!r._owner) throw Error(i(290, e)) } return e } function ji(e, t) { throw e = Object.prototype.toString.call(t), Error(i(31, "[object Object]" === e ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)) } function Qi(e) { return (0, e._init)(e._payload) } function $i(e) { function t(t, r) { if (e) { var a = t.deletions; null === a ? (t.deletions = [r], t.flags |= 16) : a.push(r) } } function r(r, a) { if (!e) return null; for (; null !== a;) t(r, a), a = a.sibling; return null } function a(e, t) { for (e = new Map; null !== t;) null !== t.key ? e.set(t.key, t) : e.set(t.index, t), t = t.sibling; return e } function n(e, t) { return (e = wp(e, t)).index = 0, e.sibling = null, e } function o(t, r, a) { return t.index = a, e ? null !== (a = t.alternate) ? (a = a.index) < r ? (t.flags |= 2, r) : a : (t.flags |= 2, r) : (t.flags |= 1048576, r) } function s(t) { return e && null === t.alternate && (t.flags |= 2), t } function u(e, t, r, a) { return null === t || 6 !== t.tag ? ((t = Gp(r, e.mode, a)).return = e, t) : ((t = n(t, r)).return = e, t) } function p(e, t, r, a) { var i = r.type; return i === k ? m(e, t, r.props.children, a, r.key) : null !== t && (t.elementType === i || "object" === typeof i && null !== i && i.$$typeof === M && Qi(i) === t.type) ? ((a = n(t, r.props)).ref = Ki(e, t, r), a.return = e, a) : ((a = Lp(r.type, r.key, r.props, null, e.mode, a)).ref = Ki(e, t, r), a.return = e, a) } function c(e, t, r, a) { return null === t || 4 !== t.tag || t.stateNode.containerInfo !== r.containerInfo || t.stateNode.implementation !== r.implementation ? ((t = Bp(r, e.mode, a)).return = e, t) : ((t = n(t, r.children || [])).return = e, t) } function m(e, t, r, a, i) { return null === t || 7 !== t.tag ? ((t = _p(r, e.mode, a, i)).return = e, t) : ((t = n(t, r)).return = e, t) } function l(e, t, r) { if ("string" === typeof t && "" !== t || "number" === typeof t) return (t = Gp("" + t, e.mode, r)).return = e, t; if ("object" === typeof t && null !== t) { switch (t.$$typeof) { case N: return (r = Lp(t.type, t.key, t.props, null, e.mode, r)).ref = Ki(e, null, t), r.return = e, r; case T: return (t = Bp(t, e.mode, r)).return = e, t; case M: return l(e, (0, t._init)(t._payload), r) } if (te(t) || L(t)) return (t = _p(t, e.mode, r, null)).return = e, t; ji(e, t) } return null } function d(e, t, r, a) { var n = null !== t ? t.key : null; if ("string" === typeof r && "" !== r || "number" === typeof r) return null !== n ? null : u(e, t, "" + r, a); if ("object" === typeof r && null !== r) { switch (r.$$typeof) { case N: return r.key === n ? p(e, t, r, a) : null; case T: return r.key === n ? c(e, t, r, a) : null; case M: return d(e, t, (n = r._init)(r._payload), a) } if (te(r) || L(r)) return null !== n ? null : m(e, t, r, a, null); ji(e, r) } return null } function y(e, t, r, a, n) { if ("string" === typeof a && "" !== a || "number" === typeof a) return u(t, e = e.get(r) || null, "" + a, n); if ("object" === typeof a && null !== a) { switch (a.$$typeof) { case N: return p(t, e = e.get(null === a.key ? r : a.key) || null, a, n); case T: return c(t, e = e.get(null === a.key ? r : a.key) || null, a, n); case M: return y(e, t, r, (0, a._init)(a._payload), n) } if (te(a) || L(a)) return m(t, e = e.get(r) || null, a, n, null); ji(t, a) } return null } function b(n, i, s, u) { for (var p = null, c = null, m = i, b = i = 0, g = null; null !== m && b < s.length; b++) { m.index > b ? (g = m, m = null) : g = m.sibling; var h = d(n, m, s[b], u); if (null === h) { null === m && (m = g); break } e && m && null === h.alternate && t(n, m), i = o(h, i, b), null === c ? p = h : c.sibling = h, c = h, m = g } if (b === s.length) return r(n, m), ni && Yn(n, b), p; if (null === m) { for (; b < s.length; b++) null !== (m = l(n, s[b], u)) && (i = o(m, i, b), null === c ? p = m : c.sibling = m, c = m); return ni && Yn(n, b), p } for (m = a(n, m); b < s.length; b++) null !== (g = y(m, n, b, s[b], u)) && (e && null !== g.alternate && m.delete(null === g.key ? b : g.key), i = o(g, i, b), null === c ? p = g : c.sibling = g, c = g); return e && m.forEach((function(e) { return t(n, e) })), ni && Yn(n, b), p } function g(n, s, u, p) { var c = L(u); if ("function" !== typeof c) throw Error(i(150)); if (null == (u = c.call(u))) throw Error(i(151)); for (var m = c = null, b = s, g = s = 0, h = null, S = u.next(); null !== b && !S.done; g++, S = u.next()) { b.index > g ? (h = b, b = null) : h = b.sibling; var f = d(n, b, S.value, p); if (null === f) { null === b && (b = h); break } e && b && null === f.alternate && t(n, b), s = o(f, s, g), null === m ? c = f : m.sibling = f, m = f, b = h } if (S.done) return r(n, b), ni && Yn(n, g), c; if (null === b) { for (; !S.done; g++, S = u.next()) null !== (S = l(n, S.value, p)) && (s = o(S, s, g), null === m ? c = S : m.sibling = S, m = S); return ni && Yn(n, g), c } for (b = a(n, b); !S.done; g++, S = u.next()) null !== (S = y(b, n, g, S.value, p)) && (e && null !== S.alternate && b.delete(null === S.key ? g : S.key), s = o(S, s, g), null === m ? c = S : m.sibling = S, m = S); return e && b.forEach((function(e) { return t(n, e) })), ni && Yn(n, g), c } return function e(a, i, o, u) { if ("object" === typeof o && null !== o && o.type === k && null === o.key && (o = o.props.children), "object" === typeof o && null !== o) { switch (o.$$typeof) { case N: e: { for (var p = o.key, c = i; null !== c;) { if (c.key === p) { if ((p = o.type) === k) { if (7 === c.tag) { r(a, c.sibling), (i = n(c, o.props.children)).return = a, a = i; break e } } else if (c.elementType === p || "object" === typeof p && null !== p && p.$$typeof === M && Qi(p) === c.type) { r(a, c.sibling), (i = n(c, o.props)).ref = Ki(a, c, o), i.return = a, a = i; break e } r(a, c); break } t(a, c), c = c.sibling } o.type === k ? ((i = _p(o.props.children, a.mode, u, o.key)).return = a, a = i) : ((u = Lp(o.type, o.key, o.props, null, a.mode, u)).ref = Ki(a, i, o), u.return = a, a = u) } return s(a); case T: e: { for (c = o.key; null !== i;) { if (i.key === c) { if (4 === i.tag && i.stateNode.containerInfo === o.containerInfo && i.stateNode.implementation === o.implementation) { r(a, i.sibling), (i = n(i, o.children || [])).return = a, a = i; break e } r(a, i); break } t(a, i), i = i.sibling }(i = Bp(o, a.mode, u)).return = a, a = i } return s(a); case M: return e(a, i, (c = o._init)(o._payload), u) } if (te(o)) return b(a, i, o, u); if (L(o)) return g(a, i, o, u); ji(a, o) } return "string" === typeof o && "" !== o || "number" === typeof o ? (o = "" + o, null !== i && 6 === i.tag ? (r(a, i.sibling), (i = n(i, o)).return = a, a = i) : (r(a, i), (i = Gp(o, a.mode, u)).return = a, a = i), s(a)) : r(a, i) } } var Ji = $i(!0), Zi = $i(!1), Yi = {}, Xi = Cn(Yi), eo = Cn(Yi), to = Cn(Yi); function ro(e) { if (e === Yi) throw Error(i(174)); return e } function ao(e, t) { switch (vn(to, t), vn(eo, e), vn(Xi, Yi), e = t.nodeType) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : ue(null, ""); break; default: t = ue(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName) } An(Xi), vn(Xi, t) } function no() { An(Xi), An(eo), An(to) } function io(e) { ro(to.current); var t = ro(Xi.current), r = ue(t, e.type); t !== r && (vn(eo, e), vn(Xi, r)) } function oo(e) { eo.current === e && (An(Xi), An(eo)) } var so = Cn(0); function uo(e) { for (var t = e; null !== t;) { if (13 === t.tag) { var r = t.memoizedState; if (null !== r && (null === (r = r.dehydrated) || "$?" === r.data || "$!" === r.data)) return t } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { if (0 !== (128 & t.flags)) return t } else if (null !== t.child) { t.child.return = t, t = t.child; continue } if (t === e) break; for (; null === t.sibling;) { if (null === t.return || t.return === e) return null; t = t.return } t.sibling.return = t.return, t = t.sibling } return null } var po = []; function co() { for (var e = 0; e < po.length; e++) po[e]._workInProgressVersionPrimary = null; po.length = 0 } var mo = I.ReactCurrentDispatcher, lo = I.ReactCurrentBatchConfig, yo = 0, bo = null, go = null, ho = null, So = !1, fo = !1, Io = 0, No = 0; function To() { throw Error(i(321)) } function ko(e, t) { if (null === t) return !1; for (var r = 0; r < t.length && r < e.length; r++) if (!oa(e[r], t[r])) return !1; return !0 } function Co(e, t, r, a, n, o) { if (yo = o, bo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, mo.current = null === e || null === e.memoizedState ? ss : us, e = r(a, n), fo) { o = 0; do { if (fo = !1, Io = 0, 25 <= o) throw Error(i(301)); o += 1, ho = go = null, t.updateQueue = null, mo.current = ps, e = r(a, n) } while (fo) } if (mo.current = os, t = null !== go && null !== go.next, yo = 0, ho = go = bo = null, So = !1, t) throw Error(i(300)); return e } function Ao() { var e = 0 !== Io; return Io = 0, e } function vo() { var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return null === ho ? bo.memoizedState = ho = e : ho = ho.next = e, ho } function Ro() { if (null === go) { var e = bo.alternate; e = null !== e ? e.memoizedState : null } else e = go.next; var t = null === ho ? bo.memoizedState : ho.next; if (null !== t) ho = t, go = e; else { if (null === e) throw Error(i(310)); e = { memoizedState: (go = e).memoizedState, baseState: go.baseState, baseQueue: go.baseQueue, queue: go.queue, next: null }, null === ho ? bo.memoizedState = ho = e : ho = ho.next = e } return ho } function Do(e, t) { return "function" === typeof t ? t(e) : t } function xo(e) { var t = Ro(), r = t.queue; if (null === r) throw Error(i(311)); r.lastRenderedReducer = e; var a = go, n = a.baseQueue, o = r.pending; if (null !== o) { if (null !== n) { var s = n.next; n.next = o.next, o.next = s } a.baseQueue = n = o, r.pending = null } if (null !== n) { o = n.next, a = a.baseState; var u = s = null, p = null, c = o; do { var m = c.lane; if ((yo & m) === m) null !== p && (p = p.next = { lane: 0, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null }), a = c.hasEagerState ? c.eagerState : e(a, c.action); else { var l = { lane: m, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null }; null === p ? (u = p = l, s = a) : p = p.next = l, bo.lanes |= m, Ou |= m } c = c.next } while (null !== c && c !== o); null === p ? s = a : p.next = u, oa(a, t.memoizedState) || (Is = !0), t.memoizedState = a, t.baseState = s, t.baseQueue = p, r.lastRenderedState = a } if (null !== (e = r.interleaved)) { n = e; do { o = n.lane, bo.lanes |= o, Ou |= o, n = n.next } while (n !== e) } else null === n && (r.lanes = 0); return [t.memoizedState, r.dispatch] } function Eo(e) { var t = Ro(), r = t.queue; if (null === r) throw Error(i(311)); r.lastRenderedReducer = e; var a = r.dispatch, n = r.pending, o = t.memoizedState; if (null !== n) { r.pending = null; var s = n = n.next; do { o = e(o, s.action), s = s.next } while (s !== n); oa(o, t.memoizedState) || (Is = !0), t.memoizedState = o, null === t.baseQueue && (t.baseState = o), r.lastRenderedState = o } return [o, a] } function Po() {} function Mo(e, t) { var r = bo, a = Ro(), n = t(), o = !oa(a.memoizedState, n); if (o && (a.memoizedState = n, Is = !0), a = a.queue, Wo(Lo.bind(null, r, a, e), [e]), a.getSnapshot !== t || o || null !== ho && 1 & ho.memoizedState.tag) { if (r.flags |= 2048, Bo(9, wo.bind(null, r, a, n, t), void 0, null), null === Eu) throw Error(i(349)); 0 !== (30 & yo) || qo(r, t, n) } return n } function qo(e, t, r) { e.flags |= 16384, e = { getSnapshot: t, value: r }, null === (t = bo.updateQueue) ? (t = { lastEffect: null, stores: null }, bo.updateQueue = t, t.stores = [e]) : null === (r = t.stores) ? t.stores = [e] : r.push(e) } function wo(e, t, r, a) { t.value = r, t.getSnapshot = a, _o(t) && Oo(e) } function Lo(e, t, r) { return r((function() { _o(t) && Oo(e) })) } function _o(e) { var t = e.getSnapshot; e = e.value; try { var r = t(); return !oa(e, r) } catch (a) { return !0 } } function Oo(e) { var t = xi(e, 1); null !== t && ap(t, e, 1, -1) } function Go(e) { var t = vo(); return "function" === typeof e && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Do, lastRenderedState: e }, t.queue = e, e = e.dispatch = rs.bind(null, bo, e), [t.memoizedState, e] } function Bo(e, t, r, a) { return e = { tag: e, create: t, destroy: r, deps: a, next: null }, null === (t = bo.updateQueue) ? (t = { lastEffect: null, stores: null }, bo.updateQueue = t, t.lastEffect = e.next = e) : null === (r = t.lastEffect) ? t.lastEffect = e.next = e : (a = r.next, r.next = e, e.next = a, t.lastEffect = e), e } function Uo() { return Ro().memoizedState } function Fo(e, t, r, a) { var n = vo(); bo.flags |= e, n.memoizedState = Bo(1 | t, r, void 0, void 0 === a ? null : a) } function Vo(e, t, r, a) { var n = Ro(); a = void 0 === a ? null : a; var i = void 0; if (null !== go) { var o = go.memoizedState; if (i = o.destroy, null !== a && ko(a, o.deps)) return void(n.memoizedState = Bo(t, r, i, a)) } bo.flags |= e, n.memoizedState = Bo(1 | t, r, i, a) } function zo(e, t) { return Fo(8390656, 8, e, t) } function Wo(e, t) { return Vo(2048, 8, e, t) } function Ho(e, t) { return Vo(4, 2, e, t) } function Ko(e, t) { return Vo(4, 4, e, t) } function jo(e, t) { return "function" === typeof t ? (e = e(), t(e), function() { t(null) }) : null !== t && void 0 !== t ? (e = e(), t.current = e, function() { t.current = null }) : void 0 } function Qo(e, t, r) { return r = null !== r && void 0 !== r ? r.concat([e]) : null, Vo(4, 4, jo.bind(null, t, e), r) } function $o() {} function Jo(e, t) { var r = Ro(); t = void 0 === t ? null : t; var a = r.memoizedState; return null !== a && null !== t && ko(t, a[1]) ? a[0] : (r.memoizedState = [e, t], e) } function Zo(e, t) { var r = Ro(); t = void 0 === t ? null : t; var a = r.memoizedState; return null !== a && null !== t && ko(t, a[1]) ? a[0] : (e = e(), r.memoizedState = [e, t], e) } function Yo(e, t, r) { return 0 === (21 & yo) ? (e.baseState && (e.baseState = !1, Is = !0), e.memoizedState = r) : (oa(r, t) || (r = bt(), bo.lanes |= r, Ou |= r, e.baseState = !0), t) } function Xo(e, t) { var r = ft; ft = 0 !== r && 4 > r ? r : 4, e(!0); var a = lo.transition; lo.transition = {}; try { e(!1), t() } finally { ft = r, lo.transition = a } } function es() { return Ro().memoizedState } function ts(e, t, r) { var a = rp(e); if (r = { lane: a, action: r, hasEagerState: !1, eagerState: null, next: null }, as(e)) ns(t, r); else if (null !== (r = Di(e, t, r, a))) { ap(r, e, a, tp()), is(r, t, a) } } function rs(e, t, r) { var a = rp(e), n = { lane: a, action: r, hasEagerState: !1, eagerState: null, next: null }; if (as(e)) ns(t, n); else { var i = e.alternate; if (0 === e.lanes && (null === i || 0 === i.lanes) && null !== (i = t.lastRenderedReducer)) try { var o = t.lastRenderedState, s = i(o, r); if (n.hasEagerState = !0, n.eagerState = s, oa(s, o)) { var u = t.interleaved; return null === u ? (n.next = n, Ri(t)) : (n.next = u.next, u.next = n), void(t.interleaved = n) } } catch (p) {} null !== (r = Di(e, t, n, a)) && (ap(r, e, a, n = tp()), is(r, t, a)) } } function as(e) { var t = e.alternate; return e === bo || null !== t && t === bo } function ns(e, t) { fo = So = !0; var r = e.pending; null === r ? t.next = t : (t.next = r.next, r.next = t), e.pending = t } function is(e, t, r) { if (0 !== (4194240 & r)) { var a = t.lanes; r |= a &= e.pendingLanes, t.lanes = r, St(e, r) } } var os = { readContext: Ai, useCallback: To, useContext: To, useEffect: To, useImperativeHandle: To, useInsertionEffect: To, useLayoutEffect: To, useMemo: To, useReducer: To, useRef: To, useState: To, useDebugValue: To, useDeferredValue: To, useTransition: To, useMutableSource: To, useSyncExternalStore: To, useId: To, unstable_isNewReconciler: !1 }, ss = { readContext: Ai, useCallback: function(e, t) { return vo().memoizedState = [e, void 0 === t ? null : t], e }, useContext: Ai, useEffect: zo, useImperativeHandle: function(e, t, r) { return r = null !== r && void 0 !== r ? r.concat([e]) : null, Fo(4194308, 4, jo.bind(null, t, e), r) }, useLayoutEffect: function(e, t) { return Fo(4194308, 4, e, t) }, useInsertionEffect: function(e, t) { return Fo(4, 2, e, t) }, useMemo: function(e, t) { var r = vo(); return t = void 0 === t ? null : t, e = e(), r.memoizedState = [e, t], e }, useReducer: function(e, t, r) { var a = vo(); return t = void 0 !== r ? r(t) : t, a.memoizedState = a.baseState = t, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, a.queue = e, e = e.dispatch = ts.bind(null, bo, e), [a.memoizedState, e] }, useRef: function(e) { return e = { current: e }, vo().memoizedState = e }, useState: Go, useDebugValue: $o, useDeferredValue: function(e) { return vo().memoizedState = e }, useTransition: function() { var e = Go(!1), t = e[0]; return e = Xo.bind(null, e[1]), vo().memoizedState = e, [t, e] }, useMutableSource: function() {}, useSyncExternalStore: function(e, t, r) { var a = bo, n = vo(); if (ni) { if (void 0 === r) throw Error(i(407)); r = r() } else { if (r = t(), null === Eu) throw Error(i(349)); 0 !== (30 & yo) || qo(a, t, r) } n.memoizedState = r; var o = { value: r, getSnapshot: t }; return n.queue = o, zo(Lo.bind(null, a, o, e), [e]), a.flags |= 2048, Bo(9, wo.bind(null, a, o, r, t), void 0, null), r }, useId: function() { var e = vo(), t = Eu.identifierPrefix; if (ni) { var r = Zn; t = ":" + t + "R" + (r = (Jn & ~(1 << 32 - ot(Jn) - 1)).toString(32) + r), 0 < (r = Io++) && (t += "H" + r.toString(32)), t += ":" } else t = ":" + t + "r" + (r = No++).toString(32) + ":"; return e.memoizedState = t }, unstable_isNewReconciler: !1 }, us = { readContext: Ai, useCallback: Jo, useContext: Ai, useEffect: Wo, useImperativeHandle: Qo, useInsertionEffect: Ho, useLayoutEffect: Ko, useMemo: Zo, useReducer: xo, useRef: Uo, useState: function() { return xo(Do) }, useDebugValue: $o, useDeferredValue: function(e) { return Yo(Ro(), go.memoizedState, e) }, useTransition: function() { return [xo(Do)[0], Ro().memoizedState] }, useMutableSource: Po, useSyncExternalStore: Mo, useId: es, unstable_isNewReconciler: !1 }, ps = { readContext: Ai, useCallback: Jo, useContext: Ai, useEffect: Wo, useImperativeHandle: Qo, useInsertionEffect: Ho, useLayoutEffect: Ko, useMemo: Zo, useReducer: Eo, useRef: Uo, useState: function() { return Eo(Do) }, useDebugValue: $o, useDeferredValue: function(e) { var t = Ro(); return null === go ? t.memoizedState = e : Yo(t, go.memoizedState, e) }, useTransition: function() { return [Eo(Do)[0], Ro().memoizedState] }, useMutableSource: Po, useSyncExternalStore: Mo, useId: es, unstable_isNewReconciler: !1 }; function cs(e, t) { try { var r = "", a = t; do { r += F(a), a = a.return } while (a); var n = r } catch (i) { n = "\nError generating stack: " + i.message + "\n" + i.stack } return { value: e, source: t, stack: n, digest: null } } function ms(e, t, r) { return { value: e, source: null, stack: null != r ? r : null, digest: null != t ? t : null } } function ls(e, t) { try { console.error(t.value) } catch (r) { setTimeout((function() { throw r })) } } var ds = "function" === typeof WeakMap ? WeakMap : Map; function ys(e, t, r) { (r = qi(-1, r)).tag = 3, r.payload = { element: null }; var a = t.value; return r.callback = function() { Hu || (Hu = !0, Ku = a), ls(0, t) }, r } function bs(e, t, r) { (r = qi(-1, r)).tag = 3; var a = e.type.getDerivedStateFromError; if ("function" === typeof a) { var n = t.value; r.payload = function() { return a(n) }, r.callback = function() { ls(0, t) } } var i = e.stateNode; return null !== i && "function" === typeof i.componentDidCatch && (r.callback = function() { ls(0, t), "function" !== typeof a && (null === ju ? ju = new Set([this]) : ju.add(this)); var e = t.stack; this.componentDidCatch(t.value, { componentStack: null !== e ? e : "" }) }), r } function gs(e, t, r) { var a = e.pingCache; if (null === a) { a = e.pingCache = new ds; var n = new Set; a.set(t, n) } else void 0 === (n = a.get(t)) && (n = new Set, a.set(t, n)); n.has(r) || (n.add(r), e = vp.bind(null, e, t, r), t.then(e, e)) } function hs(e) { do { var t; if ((t = 13 === e.tag) && (t = null === (t = e.memoizedState) || null !== t.dehydrated), t) return e; e = e.return } while (null !== e); return null } function Ss(e, t, r, a, n) { return 0 === (1 & e.mode) ? (e === t ? e.flags |= 65536 : (e.flags |= 128, r.flags |= 131072, r.flags &= -52805, 1 === r.tag && (null === r.alternate ? r.tag = 17 : ((t = qi(-1, 1)).tag = 2, wi(r, t, 1))), r.lanes |= 1), e) : (e.flags |= 65536, e.lanes = n, e) } var fs = I.ReactCurrentOwner, Is = !1; function Ns(e, t, r, a) { t.child = null === e ? Zi(t, null, r, a) : Ji(t, e.child, r, a) } function Ts(e, t, r, a, n) { r = r.render; var i = t.ref; return Ci(t, n), a = Co(e, t, r, a, i, n), r = Ao(), null === e || Is ? (ni && r && ei(t), t.flags |= 1, Ns(e, t, a, n), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n, Hs(e, t, n)) } function ks(e, t, r, a, n) { if (null === e) { var i = r.type; return "function" !== typeof i || qp(i) || void 0 !== i.defaultProps || null !== r.compare || void 0 !== r.defaultProps ? ((e = Lp(r.type, null, a, t, t.mode, n)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = i, Cs(e, t, i, a, n)) } if (i = e.child, 0 === (e.lanes & n)) { var o = i.memoizedProps; if ((r = null !== (r = r.compare) ? r : sa)(o, a) && e.ref === t.ref) return Hs(e, t, n) } return t.flags |= 1, (e = wp(i, a)).ref = t.ref, e.return = t, t.child = e } function Cs(e, t, r, a, n) { if (null !== e) { var i = e.memoizedProps; if (sa(i, a) && e.ref === t.ref) { if (Is = !1, t.pendingProps = a = i, 0 === (e.lanes & n)) return t.lanes = e.lanes, Hs(e, t, n); 0 !== (131072 & e.flags) && (Is = !0) } } return Rs(e, t, r, a, n) } function As(e, t, r) { var a = t.pendingProps, n = a.children, i = null !== e ? e.memoizedState : null; if ("hidden" === a.mode) if (0 === (1 & t.mode)) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, vn(wu, qu), qu |= r; else { if (0 === (1073741824 & r)) return e = null !== i ? i.baseLanes | r : r, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, vn(wu, qu), qu |= e, null; t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, a = null !== i ? i.baseLanes : r, vn(wu, qu), qu |= a } else null !== i ? (a = i.baseLanes | r, t.memoizedState = null) : a = r, vn(wu, qu), qu |= a; return Ns(e, t, n, r), t.child } function vs(e, t) { var r = t.ref; (null === e && null !== r || null !== e && e.ref !== r) && (t.flags |= 512, t.flags |= 2097152) } function Rs(e, t, r, a, n) { var i = Mn(r) ? En : Dn.current; return i = Pn(t, i), Ci(t, n), r = Co(e, t, r, a, i, n), a = Ao(), null === e || Is ? (ni && a && ei(t), t.flags |= 1, Ns(e, t, r, n), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n, Hs(e, t, n)) } function Ds(e, t, r, a, n) { if (Mn(r)) { var i = !0; _n(t) } else i = !1; if (Ci(t, n), null === t.stateNode) Ws(e, t), zi(t, r, a), Hi(t, r, a, n), a = !0; else if (null === e) { var o = t.stateNode, s = t.memoizedProps; o.props = s; var u = o.context, p = r.contextType; "object" === typeof p && null !== p ? p = Ai(p) : p = Pn(t, p = Mn(r) ? En : Dn.current); var c = r.getDerivedStateFromProps, m = "function" === typeof c || "function" === typeof o.getSnapshotBeforeUpdate; m || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== a || u !== p) && Wi(t, o, a, p), Ei = !1; var l = t.memoizedState; o.state = l, Oi(t, a, o, n), u = t.memoizedState, s !== a || l !== u || xn.current || Ei ? ("function" === typeof c && (Ui(t, r, c, a), u = t.memoizedState), (s = Ei || Vi(t, r, s, a, l, u, p)) ? (m || "function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), t.memoizedProps = a, t.memoizedState = u), o.props = a, o.state = u, o.context = p, a = s) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), a = !1) } else { o = t.stateNode, Mi(e, t), s = t.memoizedProps, p = t.type === t.elementType ? s : gi(t.type, s), o.props = p, m = t.pendingProps, l = o.context, "object" === typeof(u = r.contextType) && null !== u ? u = Ai(u) : u = Pn(t, u = Mn(r) ? En : Dn.current); var d = r.getDerivedStateFromProps; (c = "function" === typeof d || "function" === typeof o.getSnapshotBeforeUpdate) || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== m || l !== u) && Wi(t, o, a, u), Ei = !1, l = t.memoizedState, o.state = l, Oi(t, a, o, n); var y = t.memoizedState; s !== m || l !== y || xn.current || Ei ? ("function" === typeof d && (Ui(t, r, d, a), y = t.memoizedState), (p = Ei || Vi(t, r, p, a, l, y, u) || !1) ? (c || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(a, y, u), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(a, y, u)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && l === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && l === e.memoizedState || (t.flags |= 1024), t.memoizedProps = a, t.memoizedState = y), o.props = a, o.state = y, o.context = u, a = p) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && l === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && l === e.memoizedState || (t.flags |= 1024), a = !1) } return xs(e, t, r, a, i, n) } function xs(e, t, r, a, n, i) { vs(e, t); var o = 0 !== (128 & t.flags); if (!a && !o) return n && On(t, r, !1), Hs(e, t, i); a = t.stateNode, fs.current = t; var s = o && "function" !== typeof r.getDerivedStateFromError ? null : a.render(); return t.flags |= 1, null !== e && o ? (t.child = Ji(t, e.child, null, i), t.child = Ji(t, null, s, i)) : Ns(e, t, s, i), t.memoizedState = a.state, n && On(t, r, !0), t.child } function Es(e) { var t = e.stateNode; t.pendingContext ? wn(0, t.pendingContext, t.pendingContext !== t.context) : t.context && wn(0, t.context, !1), ao(e, t.containerInfo) } function Ps(e, t, r, a, n) { return di(), yi(n), t.flags |= 256, Ns(e, t, r, a), t.child } var Ms, qs, ws, Ls, _s = { dehydrated: null, treeContext: null, retryLane: 0 }; function Os(e) { return { baseLanes: e, cachePool: null, transitions: null } } function Gs(e, t, r) { var a, n = t.pendingProps, o = so.current, s = !1, u = 0 !== (128 & t.flags); if ((a = u) || (a = (null === e || null !== e.memoizedState) && 0 !== (2 & o)), a ? (s = !0, t.flags &= -129) : null !== e && null === e.memoizedState || (o |= 1), vn(so, 1 & o), null === e) return pi(t), null !== (e = t.memoizedState) && null !== (e = e.dehydrated) ? (0 === (1 & t.mode) ? t.lanes = 1 : "$!" === e.data ? t.lanes = 8 : t.lanes = 1073741824, null) : (u = n.children, e = n.fallback, s ? (n = t.mode, s = t.child, u = { mode: "hidden", children: u }, 0 === (1 & n) && null !== s ? (s.childLanes = 0, s.pendingProps = u) : s = Op(u, n, 0, null), e = _p(e, n, r, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = Os(r), t.memoizedState = _s, e) : Bs(t, u)); if (null !== (o = e.memoizedState) && null !== (a = o.dehydrated)) return function(e, t, r, a, n, o, s) { if (r) return 256 & t.flags ? (t.flags &= -257, Us(e, t, s, a = ms(Error(i(422))))) : null !== t.memoizedState ? (t.child = e.child, t.flags |= 128, null) : (o = a.fallback, n = t.mode, a = Op({ mode: "visible", children: a.children }, n, 0, null), (o = _p(o, n, s, null)).flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, 0 !== (1 & t.mode) && Ji(t, e.child, null, s), t.child.memoizedState = Os(s), t.memoizedState = _s, o); if (0 === (1 & t.mode)) return Us(e, t, s, null); if ("$!" === n.data) { if (a = n.nextSibling && n.nextSibling.dataset) var u = a.dgst; return a = u, Us(e, t, s, a = ms(o = Error(i(419)), a, void 0)) } if (u = 0 !== (s & e.childLanes), Is || u) { if (null !== (a = Eu)) { switch (s & -s) { case 4: n = 2; break; case 16: n = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: n = 32; break; case 536870912: n = 268435456; break; default: n = 0 } 0 !== (n = 0 !== (n & (a.suspendedLanes | s)) ? 0 : n) && n !== o.retryLane && (o.retryLane = n, xi(e, n), ap(a, e, n, -1)) } return gp(), Us(e, t, s, a = ms(Error(i(421)))) } return "$?" === n.data ? (t.flags |= 128, t.child = e.child, t = Dp.bind(null, e), n._reactRetry = t, null) : (e = o.treeContext, ai = pn(n.nextSibling), ri = t, ni = !0, ii = null, null !== e && (jn[Qn++] = Jn, jn[Qn++] = Zn, jn[Qn++] = $n, Jn = e.id, Zn = e.overflow, $n = t), t = Bs(t, a.children), t.flags |= 4096, t) }(e, t, u, n, a, o, r); if (s) { s = n.fallback, u = t.mode, a = (o = e.child).sibling; var p = { mode: "hidden", children: n.children }; return 0 === (1 & u) && t.child !== o ? ((n = t.child).childLanes = 0, n.pendingProps = p, t.deletions = null) : (n = wp(o, p)).subtreeFlags = 14680064 & o.subtreeFlags, null !== a ? s = wp(a, s) : (s = _p(s, u, r, null)).flags |= 2, s.return = t, n.return = t, n.sibling = s, t.child = n, n = s, s = t.child, u = null === (u = e.child.memoizedState) ? Os(r) : { baseLanes: u.baseLanes | r, cachePool: null, transitions: u.transitions }, s.memoizedState = u, s.childLanes = e.childLanes & ~r, t.memoizedState = _s, n } return e = (s = e.child).sibling, n = wp(s, { mode: "visible", children: n.children }), 0 === (1 & t.mode) && (n.lanes = r), n.return = t, n.sibling = null, null !== e && (null === (r = t.deletions) ? (t.deletions = [e], t.flags |= 16) : r.push(e)), t.child = n, t.memoizedState = null, n } function Bs(e, t) { return (t = Op({ mode: "visible", children: t }, e.mode, 0, null)).return = e, e.child = t } function Us(e, t, r, a) { return null !== a && yi(a), Ji(t, e.child, null, r), (e = Bs(t, t.pendingProps.children)).flags |= 2, t.memoizedState = null, e } function Fs(e, t, r) { e.lanes |= t; var a = e.alternate; null !== a && (a.lanes |= t), ki(e.return, t, r) } function Vs(e, t, r, a, n) { var i = e.memoizedState; null === i ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: a, tail: r, tailMode: n } : (i.isBackwards = t, i.rendering = null, i.renderingStartTime = 0, i.last = a, i.tail = r, i.tailMode = n) } function zs(e, t, r) { var a = t.pendingProps, n = a.revealOrder, i = a.tail; if (Ns(e, t, a.children, r), 0 !== (2 & (a = so.current))) a = 1 & a | 2, t.flags |= 128; else { if (null !== e && 0 !== (128 & e.flags)) e: for (e = t.child; null !== e;) { if (13 === e.tag) null !== e.memoizedState && Fs(e, r, t); else if (19 === e.tag) Fs(e, r, t); else if (null !== e.child) { e.child.return = e, e = e.child; continue } if (e === t) break e; for (; null === e.sibling;) { if (null === e.return || e.return === t) break e; e = e.return } e.sibling.return = e.return, e = e.sibling } a &= 1 } if (vn(so, a), 0 === (1 & t.mode)) t.memoizedState = null; else switch (n) { case "forwards": for (r = t.child, n = null; null !== r;) null !== (e = r.alternate) && null === uo(e) && (n = r), r = r.sibling; null === (r = n) ? (n = t.child, t.child = null) : (n = r.sibling, r.sibling = null), Vs(t, !1, n, r, i); break; case "backwards": for (r = null, n = t.child, t.child = null; null !== n;) { if (null !== (e = n.alternate) && null === uo(e)) { t.child = n; break } e = n.sibling, n.sibling = r, r = n, n = e } Vs(t, !0, r, null, i); break; case "together": Vs(t, !1, null, null, void 0); break; default: t.memoizedState = null } return t.child } function Ws(e, t) { 0 === (1 & t.mode) && null !== e && (e.alternate = null, t.alternate = null, t.flags |= 2) } function Hs(e, t, r) { if (null !== e && (t.dependencies = e.dependencies), Ou |= t.lanes, 0 === (r & t.childLanes)) return null; if (null !== e && t.child !== e.child) throw Error(i(153)); if (null !== t.child) { for (r = wp(e = t.child, e.pendingProps), t.child = r, r.return = t; null !== e.sibling;) e = e.sibling, (r = r.sibling = wp(e, e.pendingProps)).return = t; r.sibling = null } return t.child } function Ks(e, t) { if (!ni) switch (e.tailMode) { case "hidden": t = e.tail; for (var r = null; null !== t;) null !== t.alternate && (r = t), t = t.sibling; null === r ? e.tail = null : r.sibling = null; break; case "collapsed": r = e.tail; for (var a = null; null !== r;) null !== r.alternate && (a = r), r = r.sibling; null === a ? t || null === e.tail ? e.tail = null : e.tail.sibling = null : a.sibling = null } } function js(e) { var t = null !== e.alternate && e.alternate.child === e.child, r = 0, a = 0; if (t) for (var n = e.child; null !== n;) r |= n.lanes | n.childLanes, a |= 14680064 & n.subtreeFlags, a |= 14680064 & n.flags, n.return = e, n = n.sibling; else for (n = e.child; null !== n;) r |= n.lanes | n.childLanes, a |= n.subtreeFlags, a |= n.flags, n.return = e, n = n.sibling; return e.subtreeFlags |= a, e.childLanes = r, t } function Qs(e, t, r) { var a = t.pendingProps; switch (ti(t), t.tag) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return js(t), null; case 1: case 17: return Mn(t.type) && qn(), js(t), null; case 3: return a = t.stateNode, no(), An(xn), An(Dn), co(), a.pendingContext && (a.context = a.pendingContext, a.pendingContext = null), null !== e && null !== e.child || (mi(t) ? t.flags |= 4 : null === e || e.memoizedState.isDehydrated && 0 === (256 & t.flags) || (t.flags |= 1024, null !== ii && (sp(ii), ii = null))), qs(e, t), js(t), null; case 5: oo(t); var n = ro(to.current); if (r = t.type, null !== e && null != t.stateNode) ws(e, t, r, a, n), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152); else { if (!a) { if (null === t.stateNode) throw Error(i(166)); return js(t), null } if (e = ro(Xi.current), mi(t)) { a = t.stateNode, r = t.type; var o = t.memoizedProps; switch (a[ln] = t, a[dn] = o, e = 0 !== (1 & t.mode), r) { case "dialog": Ga("cancel", a), Ga("close", a); break; case "iframe": case "object": case "embed": Ga("load", a); break; case "video": case "audio": for (n = 0; n < wa.length; n++) Ga(wa[n], a); break; case "source": Ga("error", a); break; case "img": case "image": case "link": Ga("error", a), Ga("load", a); break; case "details": Ga("toggle", a); break; case "input": J(a, o), Ga("invalid", a); break; case "select": a._wrapperState = { wasMultiple: !!o.multiple }, Ga("invalid", a); break; case "textarea": ne(a, o), Ga("invalid", a) } for (var u in Se(r, o), n = null, o) if (o.hasOwnProperty(u)) { var p = o[u]; "children" === u ? "string" === typeof p ? a.textContent !== p && (!0 !== o.suppressHydrationWarning && Za(a.textContent, p, e), n = ["children", p]) : "number" === typeof p && a.textContent !== "" + p && (!0 !== o.suppressHydrationWarning && Za(a.textContent, p, e), n = ["children", "" + p]) : s.hasOwnProperty(u) && null != p && "onScroll" === u && Ga("scroll", a) } switch (r) { case "input": K(a), X(a, o, !0); break; case "textarea": K(a), oe(a); break; case "select": case "option": break; default: "function" === typeof o.onClick && (a.onclick = Ya) } a = n, t.updateQueue = a, null !== a && (t.flags |= 4) } else { u = 9 === n.nodeType ? n : n.ownerDocument, "http://www.w3.org/1999/xhtml" === e && (e = se(r)), "http://www.w3.org/1999/xhtml" === e ? "script" === r ? ((e = u.createElement("div")).innerHTML = "