PageSourceSearch

https://www.innotronik.com/assets/js/app.2tqqnfoeve.js

js innotronik.com collected 2026-10-04 04:13:35 UTC 1,004,064 bytes, 7,301 lines download raw bytes

1
2// Aliyun OSS SDK for JavaScript v6.18.0
3// Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved.
4// License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE
5!function(global){!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this).OSS=e()}(function(){return function n(s,i,o){function a(t,e){if(!i[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=i[t]={exports:{}},s[t][0].call(r.exports,function(e){return a(s[t][1][e]||e)},r,r.exports,n,s,i,o)}return i[t].exports}for(var c="function"==typeof require&&require,e=0;e<o.length;e++)a(o[e]);return a}({1:[function(e,t,r){"use strict";var n=e("./browser/client");n.Buffer=e("buffer").Buffer,n.urllib=e("../shims/xhr"),n.version=e("./browser/version").version,t.exports=n},{"../shims/xhr":449,"./browser/client":3,"./browser/version":6,buffer:89}],2:[function(e,t,r){"use strict";var n,d=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),h=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.slice.js"),e("assert")),s=e("../common/utils/checkBucketName").checkBucketName;function o(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function m(e){return e?o(e)?e:[e]:[]}(n=r).useBucket=function(e){return s(e),this.options.bucket=e,this},n.setBucket=function(e){return s(e),this.options.bucket=e,this},n.getBucket=function(){return this.options.bucket},n.deleteBucket=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n,s;return d.default.wrap(function(e){for(;;
vendor: 6,989 bytes, line 5
5)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("DELETE",t,"",r),e.next=3,this.request(n);case 3:if(200===(s=e.sent).status||204===s.status)return e.abrupt("return",{res:s.res});e.next=6;break;case 6:return e.next=8,this.requestError(s);case 8:throw e.sent;case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketACL=function(){var n=(0,i.default)(d.default.mark(function e(t,r,n){var s;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=this._bucketRequestParams("PUT",t,"acl",n)).headers={"x-oss-acl":r},s.successStatuses=[200],e.next=5,this.request(s);case 5:return s=e.sent,e.abrupt("return",{bucket:s.headers.location&&s.headers.location.substring(1)||null,res:s.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketACL=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"acl",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,e.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketLogging=function(){var n=(0,i.default)(d.default.mark(function e(t,r,n){var s,i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this._bucketRequestParams("PUT",t,"logging",n),i='<?xml version="1.0" encoding="UTF-8"?>\n<BucketLoggingStatus>\n<LoggingEnabled>\n<TargetBucket>'.concat(t,"</TargetBucket>\n"),r&&(i+="<TargetPrefix>".concat(r,"</TargetPrefix>\n")),i+="</LoggingEnabled>\n</BucketLoggingStatus>",s.content=i,s.mime="xml",s.successStatuses=[200],e.next=9,this.request(s);case 9:return i=e.sent,e.abrupt("return",{res:i.res});case 11:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketLogging=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n,s;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"logging",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,s=n.data.LoggingEnabled,e.abrupt("return",{enable:!!s,prefix:s&&s.TargetPrefix||null,res:n.res});case 8:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketLogging=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"logging",r)).successStatuses=[204,200],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketCORS=function(){var n=(0,i.default)(d.default.mark(function e(t,r,n){var s,i,o,a,c,l,u,p,f;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(h((r=r||[]).length,"rules is required"),r.forEach(function(e){h(e.allowedOrigin,"allowedOrigin is required"),h(e.allowedMethod,"allowedMethod is required")}),f=this._bucketRequestParams("PUT",t,"cors",n),s='<?xml version="1.0" encoding="UTF-8"?>\n<CORSConfiguration>',i=function(e){s+="<AllowedOrigin>".concat(e,"</AllowedOrigin>")},o=function(e){s+="<AllowedMethod>".concat(e,"</AllowedMethod>")},a=function(e){s+="<AllowedHeader>".concat(e,"</AllowedHeader>")},c=function(e){s+="<ExposeHeader>".concat(e,"</ExposeHeader>")},l=0,u=r.length;l<u;l++)p=r[l],s+="<CORSRule>",m(p.allowedOrigin).forEach(i),m(p.allowedMethod).forEach(o),m(p.allowedHeader).forEach(a),m(p.exposeHeader).forEach(c),p.maxAgeSeconds&&(s+="<MaxAgeSeconds>".concat(p.maxAgeSeconds,"</MaxAgeSeconds>")),s+="</CORSRule>";return s+="</CORSConfiguration>",f.content=s,f.mime="xml",f.successStatuses=[200],e.next=16,this.request(f);case 16:return f=e.sent,e.abrupt("return",{res:f.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketCORS=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n,s,i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"cors",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,s=[],n.data&&n.data.CORSRule&&(i=o(i=n.data.CORSRule)?i:[i]).forEach(function(t){var r={};Object.keys(t).forEach(function(e){r[e.slice(0,1).toLowerCase()+e.slice(1,e.length)]=t[e]}),s.push(r)}),e.abrupt("return",{rules:s,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketCORS=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"cors",r)).successStatuses=[204],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketReferer=function(){var s=(0,i.default)(d.default.mark(function e(t,r,n,s){var i,o,a;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this._bucketRequestParams("PUT",t,"referer",s),i='<?xml version="1.0" encoding="UTF-8"?>\n<RefererConfiguration>\n',i+="  <AllowEmptyReferer>".concat(r?"true":"false","</AllowEmptyReferer>\n"),n&&0<n.length){for(i+="  <RefererList>\n",o=0;o<n.length;o++)i+="    <Referer>".concat(n[o],"</Referer>\n");i+="  </RefererList>\n"}else i+="  <RefererList />\n";return i+="</RefererConfiguration>",a.content=i,a.mime="xml",a.successStatuses=[200],e.next=10,this.request(a);case 10:return a=e.sent,e.abrupt("return",{res:a.res});case 12:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),n.getBucketReferer=function(){var r=(0,i.default)(d.default.mark(function e(t,r){var n,s;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"referer",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,(s=n.data.RefererList.Referer||null)&&!o(s)&&(s=[s]),e.abrupt("return",{allowEmpty:"true"===n.data.AllowEmptyReferer,referers:s,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketReferer=function(){var r=(0,i.default)(d.default.mark(function e(t,r){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}
5(),n._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,assert:81,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],3:[function(E,_,e){(function(T,k){(function(){"use strict";var c=(e=E("@babel/runtime/helpers/interopRequireDefault"))(E("@babel/runtime/regenerator")),r=e(E("@babel/runtime/helpers/asyncToGenerator")),e=(E("core-js/modules/es.function.name.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.symbol.js"),E("core-js/modules/es.symbol.description.js"),E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.regexp.to-string.js"),E("debug")("ali-oss")),t=E("xml2js"),n=E("agentkeepalive"),s=E("merge-descriptors"),i=E("platform"),o=E("utility"),a=E("urllib"),l=E("./version"),u=E("bowser"),p=E("../common/signUtils"),f=E("../common/client/initOptions"),d=E("../common/utils/createRequest").createRequest,h=E("../common/utils/encoder").encoder,m=E("../common/client/getReqUrl").getReqUrl,y=E("../common/utils/setSTSToken").setSTSToken,b=E("../common/utils/retry").retry,g=E("../common/utils/isFunction").isFunction,v=new n;function j(e,t){var r,n;if(r=i.name,n=i.version,r&&r.toLowerCase&&"ie"===r.toLowerCase()&&n.split(".")[0]<10&&console.warn("ali-oss does not support the current browser"),!(this instanceof j))return new j(e,t);e&&e.inited?this.options=e:this.options=j.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=a,this.agent=this.options.agent||v),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}function w(e){return x.apply(this,arguments)}function x(){return(x=(0,r.default)(c.default.mark(function e(t){var r,n,s,i,o,a;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.stsToken&&g(this.options.refreshSTSToken))return e.next=3,y.call(this);e.next=3;break;case 3:return r=d.call(this,t),this.options.useFetch||(r.params.mode="disable-fetch"),i=!!t.stream,e.prev=6,e.next=9,this.urllib.request(r.url,r.params);case 9:n=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,r.url,n.status,n.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),s=e.t0;case 16:if(n&&t.successStatuses&&-1===t.successStatuses.indexOf(n.status))return e.next=19,this.requestError(n);e.next=28;break;case 19:if("RequestTimeTooSkewed"!==(o=e.sent).code||i){e.next=25;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:o.params=t,e.next=32;break;case 28:if(s)return e.next=31,this.requestError(s);e.next=32;break;case 31:o=e.sent;case 32:if(o)throw o;e.next=34;break;case 34:if(t.xmlResponse)return e.next=37,this.parseXML(n.data);e.next=39;break;case 37:a=e.sent,n.data=a;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}},e,this,[[6,13]])}))).apply(this,arguments)}(_.exports=j).initOptions=function(e){return e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html"),e=Object.assign({secure:location&&"https:"===location.protocol,useFetch:!1},e),f(e)},(n=j.prototype).debug=e,s(n,E("./object")),s(n,E("./bucket")),s(n,E("../common/bucket/getBucketWebsite")),s(n,E("../common/bucket/putBucketWebsite")),s(n,E("../common/bucket/deleteBucketWebsite")),s(n,E("../common/bucket/getBucketLifecycle")),s(n,E("../common/bucket/putBucketLifecycle")),s(n,E("../common/bucket/deleteBucketLifecycle")),s(n,E("../common/bucket/putBucketVersioning")),s(n,E("../common/bucket/getBucketVersioning")),s(n,E("../common/bucket/getBucketInventory")),s(n,E("../common/bucket/deleteBucketInventory")),s(n,E("../common/bucket/listBucketInventory")),s(n,E("../common/bucket/putBucketInventory")),s(n,E("../common/bucket/abortBucketWorm")),s(n,E("../common/bucket/completeBucketWorm")),s(n,E("../common/bucket/extendBucketWorm")),s(n,E("../common/bucket/getBucketWorm")),s(n,E("../common/bucket/initiateBucketWorm")),s(n,E("./managed-upload")),s(n,E("../common/multipart-copy")),s(n,E("../common/multipart")),s(n,E("../common/parallel")),n.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),p.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},n._getReqUrl=m,n.authorization=function(e,t,r,n){return e=p.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r}),p.authorization(this.options.accessKeyId,this.options.accessKeySecret,e,this.options.headerEncoding)},n.request=function(){var t=(0,r.default)(c.default.mark(function e(n){var s=this;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.retryMax)return e.next=3,b(w.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(n.stream)return!1;var t=[-1,-2].includes(e.status),r=s.options.requestErrorRetryHandle||function(){return!0};return t&&r(e)}(e)}})(n);e.next=6;break;case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",w.call(this,n));case 7:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),n._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=h(e.object,this.options.headerEncoding)),t},n._escape=function(e){return o.encodeURIComponent(e).replace(/%2F/g,"/")},n._getUserAgent=function(){var e=k&&k.browser?"js":"nodejs",t=(e="aliyun-sdk-".concat(e,"/").concat(l.version),i.description);return!t&&k&&(t="Node.js ".concat(k.version.slice(1)," on ").concat(k.platform," ").concat(k.arch)),this._checkUserAgent("".concat(e," ").concat(t))},n._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},n.checkBrowserAndVersion=function(e,t){return u.name===e&&u.version.split(".")[0]===t},n.parseXML=function(e){return new Promise(function(r,n){T.isBuffer(e)&&(e=e.toString()),t.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,t){e?n(e):r(t)})})},n.requestError=function(){var t=(0,r.default)(c.default.mark(function e(t){var r,n,s,i;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?((r=new Error(t.message)).name=t.name,r.status=t.status,r.code=t.name):(404===t.status?((r=new Error("Object not exists")).name="NoSuchKeyError",r.status=404,r.code="NoSuchKey"):412===t.status?((r=new Error("Pre condition failed")).name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed"):((r=new Error("Unknow error, status: ".concat(t.status))).name="UnknownError",r.status=t.status),r.requestId=t.headers["x-oss-request-id"],r.host=""),e.next=32;break;case 5:return n=String(t.data),this.debug("request response error data: %s",n,"error"),e.prev=7,e.next=10,this.parseXML(n);case 10:if(e.t0=e.sent,e.t0){e.next=13;break}e.t0={};case 13:s=e.t0,e.next=23;break;case 16:return e.prev=16,e.t1=e.catch(7),this.debug(n,"error"),e.t1.message+="\nraw xml: ".concat(n),e.t1.status=t.status,e.t1.requestId=t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 23:i=s.Message||"unknow request error, status: ".concat(t.status),s.Condition&&(i+=" (condition: ".concat(s.Condition,")")),(r=new Error(i)).name=s.Code?"".concat(s.Code,"Error"):"UnknownError",r.status=t.status,r.code=s.Code,r.requestId=s.RequestId,r.hostId=s.HostId,r.serverTime=s.ServerTime;case 32:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 34:case"end":return e.stop()}},e,this,[[7,16]])}));return function(e){return t.apply(this,arguments)}}()}).call(this)}).call(this,{isBuffer:E("../../node_modules/is-buffer/index.js")},E("_process"))},{"../../node_modules/is-buffer/index.js":354,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":55,"../common/utils/encoder":58,"../common/utils/isFunction":66,"../common/utils/retry":72,"../common/utils/setSTSToken":74,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,_process:441,agentkeepalive:80,bowser:86,"core-js/modules/es.array.
5concat.js":269,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.replace.js":304,"core-js/modules/es.string.split.js":306,"core-js/modules/es.symbol.description.js":309,"core-js/modules/es.symbol.js":312,debug:439,"merge-descriptors":357,platform:364,urllib:449,utility:448,xml2js:400}],4:[function(s,e,i){(function(o){(function(){"use strict";var b=(e=s("@babel/runtime/helpers/interopRequireDefault"))(s("@babel/runtime/regenerator")),g=(s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js"),e(s("@babel/runtime/helpers/asyncToGenerator"))),e=s("util"),p=s("path"),f=s("mime"),v=s("copy-to"),d=s("../common/utils/isBlob").isBlob,h=s("../common/utils/isFile").isFile,m=s("../common/utils/isBuffer").isBuffer,t=i;t.multipartUpload=function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,s,i,o,a,c,l,u=arguments;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=2<u.length&&void 0!==u[2]?u[2]:{},this.resetCancelFlag(),n.disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,n.checkpoint&&n.checkpoint.uploadId)return r&&h(r)&&(n.checkpoint.file=r),e.next=7,this._resumeMultipart(n.checkpoint,n);e.next=8;break;case 7:case 41:return e.abrupt("return",e.sent);case 8:return s=102400,n.mime||(h(r)?n.mime=f.getType(p.extname(r.name)):d(r)?n.mime=r.type:m(r)?n.mime="":n.mime=f.getType(p.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),e.next=14,this._getFileSize(r);case 14:if((i=e.sent)<s)return n.contentLength=i,e.next=19,this.put(t,r,n);e.next=26;break;case 19:if(o=e.sent,n&&n.progress)return e.next=23,n.progress(1);e.next=23;break;case 23:return a={res:o.res,bucket:this.options.bucket,name:t,etag:o.res.headers.etag},(n.headers&&n.headers["x-oss-callback"]||n.callback)&&(a.data=o.data),e.abrupt("return",a);case 26:if(n.partSize&&parseInt(n.partSize,10)!==n.partSize)throw new Error("partSize must be int number");e.next=28;break;case 28:if(n.partSize&&n.partSize<s)throw new Error("partSize must not be smaller than ".concat(s));e.next=30;break;case 30:return e.next=32,this.initMultipartUpload(t,n);case 32:if(a=e.sent,c=a.uploadId,l=this._getPartSize(i,n.partSize),l={file:r,name:t,fileSize:i,partSize:l,uploadId:c,doneParts:[]},n&&n.progress)return e.next=39,n.progress(0,l,a.res);e.next=39;break;case 39:return e.next=41,this._resumeMultipart(l,n);case 42:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),t._resumeMultipart=function(){var r=(0,g.default)(b.default.mark(function e(c,l){var n,u,p,f,d,s,h,m,y,i,t,r,o,a;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=this).isCancel())throw this._makeCancelEvent();e.next=3;break;case 3:return u=c.file,r=c.fileSize,a=c.partSize,p=c.uploadId,f=c.doneParts,d=c.name,s=[],0<f.length&&v(f).to(s),h=this._divideParts(r,a),m=h.length,y=!1,i=function(o,a){return new Promise(function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,s,i;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o.isCancel()){e.next=29;break}return n=h[a-1],e.next=5,o._createBuffer(u,n.start,n.end);case 5:return i={content:i=e.sent,size:n.end-n.start},e.prev=7,e.next=10,o._uploadPart(d,p,a,i,l);case 10:s=e.sent,e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(7),404===e.t0.status)throw o._makeAbortEvent();e.next=17;break;case 17:throw e.t0;case 18:if(o.isCancel()||y){e.next=26;break}if(c.doneParts.push({number:a,etag:s.res.headers.etag}),l.progress)return e.next=23,l.progress(f.length/(m+1),c,s.res);e.next=23;break;case 23:t({number:a,etag:s.res.headers.etag}),e.next=27;break;case 26:t();case 27:e.next=30;break;case 29:t();case 30:e.next=41;break;case 32:e.prev=32,e.t1=e.catch(0),(i=new Error).name=e.t1.name,i.message=e.t1.message,i.stack=e.t1.stack,i.partNum=a,v(e.t1).to(i),r(i);case 41:case"end":return e.stop()}},e,null,[[0,32],[7,13]])}));return function(e,t){return r.apply(this,arguments)}}())},r=Array.from(new Array(m),function(e,t){return t+1}),t=s.map(function(e){return e.number}),a=r.filter(function(e){return t.indexOf(e)<0}),r=l.parallel||5,e.next=17,this._parallel(a,r,function(e){return new Promise(function(t,r){i(n,e).then(function(e){e&&s.push(e),t()}).catch(function(e){r(e)})})});case 17:if(o=e.sent,y=!0,a=o.find(function(e){return"abort"===e.name}))throw a;e.next=22;break;case 22:if(this.isCancel())throw i=null,this._makeCancelEvent();e.next=25;break;case 25:if(o&&0<o.length)throw o[0].message="Failed to upload some parts with error: ".concat(o[0].toString()," part_num: ").concat(o[0].partNum),o[0];e.next=28;break;case 28:return e.next=30,this.completeMultipartUpload(d,p,s,l);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),t._getFileSize=function(){var t=(0,g.default)(b.default.mark(function e(t){return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(m(t))return e.abrupt("return",t.length);e.next=4;break;case 4:if(d(t)||h(t))return e.abrupt("return",t.size);e.next=6;break;case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}();var r=s("stream").Readable;function n(e,t){if(!(this instanceof n))return new n(e,t);r.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}e.inherits(n,r),n.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.start<this.fileBuffer.length;){var r=this.start,n=(n=r+e)>this.fileBuffer.length?this.fileBuffer.length:n;this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},n.prototype._read=function(t){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);t=t||16384;var r=this;this.reader.onload=function(e){r.fileBuffer=o.from(new Uint8Array(e.target.result)),r.file=null,r.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},t._createBuffer=function(){var n=(0,g.default)(b.default.mark(function e(t,r,s){var i;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!d(t)&&!h(t)){e.next=8;break}i=t.slice(r,s),e.next=4;var n=i;return n.arrayBuffer?n.arrayBuffer():new Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e)},e.readAsArrayBuffer(n)});case 4:return i=e.sent,e.abrupt("return",o.from(i));case 8:if(m(t))return e.abrupt("return",t.subarray(r,s));e.next=12;break;case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}},e)}));return function(e,t,r){return n.apply(this,arguments)}}(),t._getPartSize=function(e,t){return(t=t||1048576)<(e=Math.ceil(e/1e4))&&(t=e,console.warn("partSize has been set to ".concat(t,", because the partSize you provided causes partNumber to be greater than 10,000"))),t},t._divideParts=function(e,t){for(var r=Math.ceil(e/t),n=[],s=0;s<r;s++){var i=t*s,o=Math.min(i+t,e);n.push({start:i,end:o})}return n}}).call(this)}).call(this,s("buffer").Buffer)},{"../common/utils/isBlob":63,"../common/utils/isBuffer":64,"../common/utils/isFile":65,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,buffer:89,"copy-to":91,"core-js/modules/es.array-buffer.slice.js":268,"core-js/modules/es.array.
5concat.js":269,"core-js/modules/es.array.filter.js":271,"core-js/modules/es.array.find.js":272,"core-js/modules/es.array.from.js":273,"core-js/modules/es.array.iterator.js":275,"core-js/modules/es.array.map.js":277,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.iterator.js":302,"core-js/modules/es.typed-array.copy-within.js":314,"core-js/modules/es.typed-array.every.js":315,"core-js/modules/es.typed-array.fill.js":316,"core-js/modules/es.typed-array.filter.js":317,"core-js/modules/es.typed-array.find-index.js":318,"core-js/modules/es.typed-array.find.js":319,"core-js/modules/es.typed-array.for-each.js":320,"core-js/modules/es.typed-array.includes.js":321,"core-js/modules/es.typed-array.index-of.js":322,"core-js/modules/es.typed-array.iterator.js":323,"core-js/modules/es.typed-array.join.js":324,"core-js/modules/es.typed-array.last-index-of.js":325,"core-js/modules/es.typed-array.map.js":326,"core-js/modules/es.typed-array.reduce-right.js":327,"core-js/modules/es.typed-array.reduce.js":328,"core-js/modules/es.typed-array.reverse.js":329,"core-js/modules/es.typed-array.set.js":330,"core-js/modules/es.typed-array.slice.js":331,"core-js/modules/es.typed-array.some.js":332,"core-js/modules/es.typed-array.sort.js":333,"core-js/modules/es.typed-array.subarray.js":334,"core-js/modules/es.typed-array.to-locale-string.js":335,"core-js/modules/es.typed-array.to-string.js":336,"core-js/modules/es.typed-array.uint8-array.js":337,mime:359,path:363,stream:387,util:394}],5:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),c=(e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.promise.js"),n(e("@babel/runtime/regenerator"))),s=n(e("@babel/runtime/helpers/asyncToGenerator")),i=e("fs"),o=e("copy-to"),l=e("path"),u=e("mime"),p=e("../common/callback"),f=(n=e("merge-descriptors"),e("../common/utils/isBlob").isBlob),d=e("../common/utils/isFile").isFile,h=e("../common/utils/isBuffer").isBuffer,a=e("../common/utils/obj2xml").obj2xml;r.append=function(){var n=(0,s.default)(c.default.mark(function e(t,r,n){var s;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(n=n||{}).position&&(n.position="0"),n.subres={append:"",position:n.position},n.method="POST",e.next=6,this.put(t,r,n);case 6:return(s=e.sent).nextAppendPosition=s.res.headers["x-oss-next-append-position"],e.abrupt("return",s);case 9:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),r.put=function(){var n=(0,s.default)(c.default.mark(function e(t,r,n){var s,i,o,a;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=n||{}).disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,n.headers=n.headers||{},t=this._objectName(t),!h(r)){e.next=8;break}s=r,e.next=19;break;case 8:if(f(r)||d(r))return n.mime||(d(r)?n.mime=u.getType(l.extname(r.name)):n.mime=r.type),e.next=12,this._createBuffer(r,0,r.size);e.next=18;break;case 12:return s=e.sent,e.next=15,this._getFileSize(r);case 15:n.contentLength=e.sent,e.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(n.meta,n.headers),i=n.method||"PUT",i=this._objectRequestParam
vendor: 4,826 bytes, line 5
5s(i,t,n),p.encodeCallback(i,n),i.mime=n.mime,i.disabledMD5=n.disabledMD5,i.content=s,i.successStatuses=[200],e.next=29,this.request(i);case 29:return o=e.sent,a={name:t,url:this._objectUrl(t),res:o.res},i.headers&&i.headers["x-oss-callback"]&&(a.data=JSON.parse(o.data.toString())),e.abrupt("return",a);case 33:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),r.putStream=function(){var n=(0,s.default)(c.default.mark(function e(t,r,n){var s,i,o;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},t=this._objectName(t),n.contentLength?n.headers["Content-Length"]=n.contentLength:n.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(n.meta,n.headers),s=n.method||"PUT",s=this._objectRequestParams(s,t,n),p.encodeCallback(s,n),s.mime=n.mime,s.stream=r,s.successStatuses=[200],e.next=13,this.request(s);case 13:return i=e.sent,o={name:t,url:this._objectUrl(t),res:i.res},s.headers&&s.headers["x-oss-callback"]&&(o.data=JSON.parse(i.data.toString())),e.abrupt("return",o);case 17:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n(r,e("../common/object/copyObject")),n(r,e("../common/object/getObjectTagging")),n(r,e("../common/object/putObjectTagging")),n(r,e("../common/object/deleteObjectTagging")),n(r,e("../common/image")),n(r,e("../common/object/getBucketVersions")),n(r,e("../common/object/getACL")),n(r,e("../common/object/putACL")),n(r,e("../common/object/head")),n(r,e("../common/object/delete")),n(r,e("../common/object/get")),n(r,e("../common/object/putSymlink")),n(r,e("../common/object/getSymlink")),n(r,e("../common/object/deleteMulti")),n(r,e("../common/object/getObjectMeta")),n(r,e("../common/object/getObjectUrl")),n(r,e("../common/object/generateObjectUrl")),n(r,e("../common/object/signatureUrl")),n(r,e("../common/object/asyncSignatureUrl")),r.putMeta=function(){var n=(0,s.default)(c.default.mark(function e(t,r,n){var s;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.copy(t,t,{meta:r||{},timeout:n&&n.timeout,ctx:n&&n.ctx});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),r.list=function(){var r=(0,s.default)(c.default.mark(function e(t,r){var n,s,i,o;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._objectRequestParams("GET","",r)).query=t,n.xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return n=e.sent,s=n.data.Contents||[],i=this,s=s&&(s=Array.isArray(s)?s:[s]).map(function(e){return{name:e.Key,url:i._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}),o=(o=n.data.CommonPrefixes||null)&&(o=Array.isArray(o)?o:[o]).map(function(e){return e.Prefix}),e.abrupt("return",{res:n.res,objects:s,prefixes:o,nextMarker:n.data.NextMarker||null,isTruncated:"true"===n.data.IsTruncated});case 13:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.listV2=function(){var t=(0,s.default)(c.default.mark(function e(t){var r,n,s,i,o=arguments;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=1<o.length&&void 0!==o[1]?o[1]:{},(n=t["continuation-token"]||t.continuationToken)&&(r.subres=Object.assign({"continuation-token":n},r.subres)),(n=this._objectRequestParams("GET","",r)).query=Object.assign({"list-type":2},t),delete n.query["continuation-token"],delete n.query.continuationToken,n.xmlResponse=!0,n.successStatuses=[200],e.next=11,this.request(n);case 11:return r=e.sent,n=r.data.Contents||[],s=this,n=n&&(n=Array.isArray(n)?n:[n]).map(function(e){var t=null;return e.Owner&&(t={id:e.Owner.ID,displayName:e.Owner.DisplayName}),{name:e.Key,url:s._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:t}}),i=(i=r.data.CommonPrefixes||null)&&(i=Array.isArray(i)?i:[i]).map(function(e){return e.Prefix}),e.abrupt("return",{res:r.res,objects:n,prefixes:i,isTruncated:"true"===r.data.IsTruncated,keyCount:+r.data.KeyCount,continuationToken:r.data.ContinuationToken||null,nextContinuationToken:r.data.NextContinuationToken||null});case 18:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),r.restore=function(){var t=(0,s.default)(c.default.mark(function e(t){var r,n,s=arguments;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=1<s.length&&void 0!==s[1]?s[1]:{type:"Archive"})||{}).subres=Object.assign({restore:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),r=this._objectRequestParam
5s("POST",t,n),"ColdArchive"===n.type&&(n={RestoreRequest:{Days:n.Days||2,JobParameters:{Tier:n.JobParameters||"Standard"}}},r.content=a(n,{headers:!0}),r.mime="xml"),r.successStatuses=[202],e.next=9,this.request(r);case 9:return n=e.sent,e.abrupt("return",{res:n.res});case 11:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),r._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},r._objectRequestParams=function(e,t,r){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");return r=r||{},t={object:t=this._objectName(t),bucket:this.options.bucket,method:e,subres:r&&r.subres,timeout:r&&r.timeout,ctx:r&&r.ctx},r.headers&&(t.headers={},o(r.headers).to(t.headers)),t},r._objectName=function(e){return e.replace(/^\/+/,"")},r._convertMetaToHeaders=function(t,r){t&&Object.keys(t).forEach(function(e){r["x-oss-meta-".concat(e)]=t[e]})},r._deleteFileSafe=function(r){var n=this;return new Promise(function(t){i.exists(r,function(e){e?i.unlink(r,function(e){e&&n.debug("unlink %j error: %s",r,e,"error"),t()}):t()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":63,"../common/utils/isBuffer":64,"../common/utils/isFile":65,"../common/utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"copy-to":91,"core-js/modules/es.array.map.js":277,"core-js/modules/es.function.name.js":281,"core-js/modules/es.number.constructor.js":283,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338,fs:87,"merge-descriptors":357,mime:359,path:363}],6:[function(e,t,r){"use strict";r.version="6.18.0"},{}],7:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.abortBucketWorm=void 0,e("../utils/checkBucketName"));function a(){return(a=(0,i.default)(s.default.mark(function e(t,r){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.checkBucketName(t),n=this._bucketRequestParam
vendor: 16,520 bytes, line 5
5s("DELETE",t,"worm",r),e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res,status:n.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.abortBucketWorm=function(e,t){return a.apply(this,arguments)}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],8:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.completeBucketWorm=void 0,e("../utils/checkBucketName"));function a(){return(a=(0,s.default)(i.default.mark(function e(t,r,n){var s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.checkBucketName(t),s=this._bucketRequestParams("POST",t,{wormId:r},n),e.next=4,this.request(s);case 4:return s=e.sent,e.abrupt("return",{res:s.res,status:s.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.completeBucketWorm=function(e,t,r){return a.apply(this,arguments)}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],9:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),a=(Object.defineProperty(r,"__esModule",{value:!0}),r.deleteBucketInventory=void 0,e("../utils/checkBucketName"));function i(){return(i=(0,s.default)(o.default.mark(function e(t,r){var n,s,i=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=2<i.length&&void 0!==i[2]?i[2]:{},n=Object.assign({inventory:"",inventoryId:r},s.subres),a.checkBucketName(t),(n=this._bucketRequestParams("DELETE",t,n,s)).successStatuses=[204],e.next=7,this.request(n);case 7:return s=e.sent,e.abrupt("return",{status:s.status,res:s.res});case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.deleteBucketInventory=function(e,t){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],10:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName").checkBucketName;r.deleteBucketLifecycle=function(){var r=(0,i.default)(s.default.mark(function e(t,r){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o(t),(n=this._bucketRequestParams("DELETE",t,"lifecycle",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return n=e.sent,e.abrupt("return",{res:n.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],11:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName").checkBucketName;r.deleteBucketWebsite=function(){var r=(0,i.default)(s.default.mark(function e(t,r){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o(t),(n=this._bucketRequestParams("DELETE",t,"website",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return n=e.sent,e.abrupt("return",{res:n.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],12:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),c=(Object.defineProperty(r,"__esModule",{value:!0}),r.extendBucketWorm=void 0,e("../utils/checkBucketName")),l=e("../utils/obj2xml");function i(){return(i=(0,s.default)(a.default.mark(function e(t,r,n,s){var i,o;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c.checkBucketName(t),i=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:r},s),o={ExtendWormConfiguration:{RetentionPeriodInDays:n}},i.mime="xml",i.content=l.obj2xml(o,{headers:!0}),i.successStatuses=[200],e.next=8,this.request(i);case 8:return o=e.sent,e.abrupt("return",{res:o.res,status:o.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.extendBucketWorm=function(e,t,r,n){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],13:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),a=(Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketInventory=void 0,e("../utils/checkBucketName")),c=e("../utils/formatInventoryConfig");function i(){return(i=(0,s.default)(o.default.mark(function e(t,r){var n,s,i=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=2<i.length&&void 0!==i[2]?i[2]:{},n=Object.assign({inventory:"",inventoryId:r},s.subres),a.checkBucketName(t),(n=this._bucketRequestParams("GET",t,n,s)).successStatuses=[200],n.xmlResponse=!0,e.next=8,this.request(n);case 8:return s=e.sent,e.abrupt("return",{status:s.status,res:s.res,inventory:c.formatInventoryConfig(s.data)});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.getBucketInventory=function(e,t){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":59,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],14:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.array.map.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),o=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isArray").isArray,c=e("../utils/formatObjKey").formatObjKey;r.getBucketLifecycle=function(){var r=(0,s.default)(i.default.mark(function e(t,r){var n,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o(t),(n=this._bucketRequestParams("GET",t,"lifecycle",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return n=e.sent,s=(s=n.data.Rule||null)&&(s=a(s)?s:[s]).map(function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!a(e.Tag)&&(e.Tag=[e.Tag]),c(e,"firstLowerCase")}),e.abrupt("return",{rules:s,res:n.res});case 10:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":60,"../utils/isArray":62,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.map.js":277}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName").checkBucketName;r.getBucketVersioning=function(){var r=(0,s.default)(i.default.mark(function e(t,r){var n,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o(t),(n=this._bucketRequestParams("GET",t,"versioning",r)).xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return n=e.sent,s=n.data.Status,e.abrupt("return",{status:n.status,versionStatus:s,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],16:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isObject").isObject;r.getBucketWebsite=function(){var r=(0,s.default)(i.default.mark(function e(t,r){var n,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o(t),(n=this._bucketRequestParams("GET",t,"website",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return n=e.sent,s=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(s=a(n.data.RoutingRules.RoutingRule)?[n.data.RoutingRules.RoutingRule]:n.data.RoutingRules.RoutingRule),e.abrupt("return",{index:n.data.IndexDocument&&n.data.IndexDocument.Suffix||"",supportSubDir:n.data.IndexDocument&&n.data.IndexDocument.SupportSubDir||"false",type:n.data.IndexDocument&&n.data.IndexDocument.Type,routingRules:s,error:n.data.ErrorDocument&&n.data.ErrorDocument.Key||null,res:n.res});case 10:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"../utils/isObject":68,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],17:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketWorm=void 0,e("../utils/checkBucketName")),a=e("../utils/dataFix");function c(){return(c=(0,i.default)(s.default.mark(function e(t,r){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.checkBucketName(t),(n=this._bucketRequestParams("GET",t,"worm",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return n=e.sent,a.dataFix(n.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},n.data),{res:n.res,status:n.status}));case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.getBucketWorm=function(e,t){return c.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/dataFix":56,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],18:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),a=(Object.defineProperty(r,"__esModule",{value:!0}),r.initiateBucketWorm=void 0,e("../utils/obj2xml")),c=e("../utils/checkBucketName");function i(){return(i=(0,s.default)(o.default.mark(function e(t,r,n){var s,i;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c.checkBucketName(t),s=this._bucketRequestParams("POST",t,"worm",n),i={InitiateWormConfiguration:{RetentionPeriodInDays:r}},s.mime="xml",s.content=a.obj2xml(i,{headers:!0}),s.successStatuses=[200],e.next=8,this.request(s);case 8:return i=e.sent,e.abrupt("return",{res:i.res,wormId:i.res.headers["x-oss-worm-id"],status:i.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.initiateBucketWorm=function(e,t,r){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],19:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),c=(Object.defineProperty(r,"__esModule",{value:!0}),r.listBucketInventory=void 0,e("../utils/checkBucketName")),l=e("../utils/formatInventoryConfig");function i(){return(i=(0,s.default)(a.default.mark(function e(t){var r,n,s,i,o=arguments;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=1<o.length&&void 0!==o[1]?o[1]:{}).continuationToken,n=Object.assign({inventory:""},n&&{"continuation-token":n},r.subres),c.checkBucketName(t),(n=this._bucketRequestParams("GET",t,n,r)).successStatuses=[200],n.xmlResponse=!0,e.next=9,this.request(n);case 9:return r=e.sent,n=r.data,s=r.res,i=r.status,e.abrupt("return",{isTruncated:"true"===n.IsTruncated,nextContinuationToken:n.NextContinuationToken,inventoryList:l.formatInventoryConfig(n.InventoryConfiguration,!0),status:i,res:s});case 12:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.listBucketInventory=function(e){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":59,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],20:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),u=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),p=(Object.defineProperty(r,"__esModule",{value:!0}),r.putBucketInventory=void 0,e("../utils/checkBucketName")),f=e("../utils/obj2xml");function i(){return(i=(0,s.default)(u.default.mark(function e(t,r){var n,s,i,o,a,c,l=arguments;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<l.length&&void 0!==l[2]?l[2]:{},s=Object.assign({inventory:"",inventoryId:r.id},n.subres),p.checkBucketName(t),o=r.OSSBucketDestination,c=r.optionalFields,a=r.includedObjectVersions,i="acs:ram::".concat(o.accountId,":role/"),i={InventoryConfiguration:{Id:r.id,IsEnabled:r.isEnabled,Filter:{Prefix:r.prefix||""},Destination:{OSSBucketDestination:{Format:o.format,AccountId:o.accountId,RoleArn:"".concat(i).concat(o.rolename),Bucket:"".concat("acs:oss:::").concat(o.bucket),Prefix:o.prefix||"",Encryption:o.encryption||""}},Schedule:{Frequency:r.frequency},IncludedObjectVersions:a,OptionalFields:{Field:(null==c?void 0:c.field)||[]}}},o=f.obj2xml(i,{headers:!0,firstUpperCase:!0}),(a=this._bucketRequestParams("PUT",t,s,n)).successStatuses=[200],a.mime="xml",a.content=o,e.next=14,this.request(a);case 14:return c=e.sent,e.abrupt("return",{status:c.status,res:c.res});case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.putBucketInventory=function(e,t){return i.apply(this,arguments)}},{"../utils/checkBucketName":51,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.object.assign.js":284}],21:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array.includes.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),c=e("../utils/checkBucketName").checkBucketName,l=e("../utils/isArray").isArray,u=e("../utils/deepCopy").deepCopy,p=e("../utils/isObject").isObject,f=e("../utils/obj2xml").obj2xml,d=e("../utils/checkObjectTag").checkObjectTag,h=e("../utils/getStrBytesCount").getStrBytesCount;function m(e,t){var r=e.days;e=e.createdBeforeDate;if(!r&&!e)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(r&&!/^[1-9][0-9]*$/.test(r))throw new Error("days must be a positive integer");if(e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}r.putBucketLifecycle=function(){var n=(0,s.default)(a.default.mark(function e(t,r,n){var s,i,o;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c(t),l(r)){e.next=3;break}throw new Error("rules must be Array");
5case 3:return s=this._bucketRequestParams("PUT",t,"lifecycle",n),o={LifecycleConfiguration:{Rule:i=[]}},r.forEach(function(e){var t;if((t=((t=e).days&&(t.expiration={days:t.days}),t.date&&(t.expiration={createdBeforeDate:t.date}),e)).id&&255<h(t.id))throw new Error("ID is composed of 255 bytes at most");if(void 0===t.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(t.status))throw new Error("Status must be  Enabled or Disabled");if(t.transition){if(!["IA","Archive"].includes(t.transition.storageClass))throw new Error("StorageClass must be  IA or Archive");m(t.transition,"Transition")}if(t.expiration)if(t.expiration.expiredObjectDeleteMarker){if(t.expiration.days||t.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else m(t.expiration,"Expiration");if(t.abortMultipartUpload&&m(t.abortMultipartUpload,"AbortMultipartUpload"),!(t.expiration||t.abortMultipartUpload||t.transition||t.noncurrentVersionTransition))throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(t.tag){if(t.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");!function(e){if(!l(e)&&!p(e))throw new Error("tag must be Object or Array");e=p(e)?[e]:e;var t={};u(e).forEach(function(e){t[e.key]=e.value}),d(t)}(t.tag)}e.id&&(e.ID=e.id,delete e.id),i.push(e)}),o=f(o,{headers:!0,firstUpperCase:!0}),s.content=o,s.mime="xml",s.successStatuses=[200],e.next=13,this.request(s);case 13:return o=e.sent,e.abrupt("return",{res:o.res});case 15:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"../utils/checkObjectTag":53,"../utils/deepCopy":57,"../utils/getStrBytesCount":61,"../utils/isArray":62,"../utils/isObject":68,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/web.dom-collections.for-each.js":338}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.array.includes.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),c=e("../utils/checkBucketName").checkBucketName,l=e("../utils/obj2xml").obj2xml;r.putBucketVersioning=function(){var r=(0,s.default)(a.default.mark(function e(t,r){var n,s,i,o=arguments;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=2<o.length&&void 0!==o[2]?o[2]:{},c(t),["Enabled","Suspended"].includes(r)){e.next=4;break}throw new Error("status must be Enabled or Suspended");
vendor: 1,073 bytes, line 5
5case 4:return s=this._bucketRequestParams("PUT",t,"versioning",n),i={VersioningConfiguration:{Status:r}},s.mime="xml",s.content=l(i,{headers:!0}),e.next=10,this.request(s);case 10:return i=e.sent,e.abrupt("return",{res:i.res,status:i.status});case 12:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.includes.js":274}],23:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),c=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName").checkBucketName,u=e("../utils/obj2xml").obj2xml,p=e("../utils/isArray").isArray;r.putBucketWebsite=function(){var t=(0,s.default)(c.default.mark(function e(t){var r,n,s,i,o,a=arguments;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=1<a.length&&void 0!==a[1]?a[1]:{}
5,n=2<a.length?a[2]:void 0,l(t),n=this._bucketRequestParams("PUT",t,"website",n),o={Suffix:r.index||"index.html"},i={WebsiteConfiguration:s={IndexDocument:o}},r.supportSubDir&&(o.SupportSubDir=r.supportSubDir),r.type&&(o.Type=r.type),r.error&&(s.ErrorDocument={Key:r.error}),void 0===r.routingRules){e.next=14;break}if(p(r.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:s.RoutingRules={RoutingRule:r.routingRules};case 14:return i=u(i),n.content=i,n.mime="xml",n.successStatuses=[200],e.next=20,this.request(n);case 20:return o=e.sent,e.abrupt("return",{res:o.res});case 22:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"../utils/checkBucketName":51,"../utils/isArray":62,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79}],24:[function(e,t,r){(function(s){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),r.encodeCallback=function(e,t){var r,n;e.headers=e.headers||{},Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")||t.callback&&(r={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body},t.callback.host&&(r.callbackHost=t.callback.host),t.callback.contentType&&(r.callbackBodyType=t.callback.contentType),r=s.from(JSON.stringify(r)).toString("base64"),e.headers["x-oss-callback"]=r,t.callback.customValue&&(n={},Object.keys(t.callback.customValue).forEach(function(e){n["x:".concat(e)]=t.callback.customValue[e].toString()}),e.headers["x-oss-callback-var"]=s.from(JSON.stringify(n)).toString("base64")))}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:89,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/web.dom-collections.for-each.js":338}],25:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var n=function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.getReqUrl=void 0,n(e("copy-to"))),i=n(e("url")),o=n(e("merge-descriptors")),a=n(e("is-type-of")),c=e("../utils/isIP"),l=e("../utils/checkConfigValid");r.getReqUrl=function(e){var t,r={},n=this.options.cname;l.checkConfigValid(this.options.endpoint,"endpoint"),s.default(this.options.endpoint,!1).to(r),!e.bucket||n||c.isIP(r.hostname)||this.options.sldEnable||(r.host="".concat(e.bucket,".").concat(r.host)),n="/",e.bucket&&this.options.sldEnable&&(n+="".concat(e.bucket,"/")),e.object&&(n+=this._escape(e.object).replace(/\+/g,"%2B")),r.pathname=n,n={};return e.query&&o.default(n,e.query),e.subres&&(t={},a.default.string(e.subres)?t[e.subres]="":a.default.array(e.subres)?e.subres.forEach(function(e){t[e]=""}):t=e.subres,o.default(n,t)),r.query=n,i.default.format(r)}},{"../utils/checkConfigValid":52,"../utils/isIP":67,"copy-to":91,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338,"is-type-of":440,"merge-descriptors":357,url:446}],26:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var n=e("humanize-ms"),s=e("url"),i=e("../utils/checkBucketName").checkBucketName,o=e("../utils/setRegion").setRegion,a=e("../utils/checkConfigValid").checkConfigValid;t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");if(!e.stsToken||e.refreshSTSToken||e.refreshSTSTokenInterval||console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken、accessKeyId、accessKeySecret automatically when sts token has expired"),e.bucket&&i(e.bucket),(e=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0},e)).accessKeyId=e.accessKeyId.trim(),e.accessKeySecret=e.accessKeySecret.trim(),e.timeout&&(e.timeout=n(e.timeout)),e.endpoint)e.endpoint=function(e,t){a(e,"endpoint");var r=s.parse(e);if("http:"!==(r=r.protocol?r:s.parse("http".concat(t?"s":"","://").concat(e))).protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}(e.endpoint,e.secure);else{if(!e.region)throw new Error("require options.endpoint or options.region");e.endpoint=o(e.region,e.internal,e.secure)}return e.inited=!0,e}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":73,"core-js/modules/es.array.
5concat.js":269,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.string.trim.js":307,"humanize-ms":345,url:446}],27:[function(e,t,r){"use strict";e("merge-descriptors")(r,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":357}],28:[function(e,t,r){"use strict";var s,n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.array.concat.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),c=e("../utils/checkBucketName").checkBucketName,l=e("querystring"),u=e("js-base64").Base64.encode;function p(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!=typeof e)throw new Error("".concat(t," must be String"))}r.processObjectSave=(s=(0,i.default)(a.default.mark(function e(t,r,n,s){var i,o;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return p(t,"sourceObject"),p(r,"targetObject"),p(n,"process"),r=this._objectName(r),s&&c(s),i=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),o=s?",b_".concat(u(s)):"",r=u(r),o={"x-oss-process":"".concat(n,"|sys/saveas,o_").concat(r).concat(o)},i.content=l.stringify(o),e.next=12,this.request(i);case 12:return o=e.sent,e.abrupt("return",{res:o.res,status:o.res.status});case 14:case"end":return e.stop()}},e,this)})),function(e,t,r,n){return s.apply(this,arguments)})},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.concat.js":269,"js-base64":356,querystring:370}],29:[function(e,t,r){"use strict";var n,i,b=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),g=(e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),v=e("debug")("ali-oss:multipart-copy"),j=e("copy-to");(n=r).uploadPartCopy=(i=(0,g.default)(b.default.mark(function e(t,r,n,s,i){var o,a,c=arguments;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=5<c.length&&void 0!==c[5]?c[5]:{}).headers=a.headers||{},o=(o=a.versionId||a.subres&&a.subres.versionId||null)?"/".concat(i.sourceBucketName,"/").concat(encodeURIComponent(i.sourceKey),"?versionId=").concat(o):"/".concat(i.sourceBucketName,"/").concat(encodeURIComponent(i.sourceKey)),a.headers["x-oss-copy-source"]=o,s&&(a.headers["x-oss-copy-source-range"]="bytes=".concat(s)),a.subres={partNumber:n,uploadId:r}
vendor: 4,738 bytes, line 5
5,(o=this._objectRequestParams("PUT",t,a)).mime=a.mime,o.successStatuses=[200],e.next=12,this.request(o);case 12:return a=e.sent,e.abrupt("return",{name:t,etag:a.res.headers.etag,res:a.res});case 14:case"end":return e.stop()}},e,this)})),function(e,t,r,n,s){return i.apply(this,arguments)}),n.multipartUploadCopy=function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,s,i,o,a,c,l,u=arguments;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<u.length&&void 0!==u[2]?u[2]:{},this.resetCancelFlag(),s={versionId:void 0===(s=n.versionId)?null:s},e.next=6,this._getObjectMeta(r.sourceBucketName,r.sourceKey,s);case 6:if(s=e.sent,a=s.res.headers["content-length"],r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||a,n.checkpoint&&n.checkpoint.uploadId)return e.next=13,this._resumeMultipartCopy(n.checkpoint,r,n);e.next=14;break;case 13:case 31:return e.abrupt("return",e.sent);case 14:if(i=102400,(o=r.endOffset-r.startOffset)<i)throw new Error("copySize must not be smaller than ".concat(i));e.next=18;break;case 18:if(n.partSize&&n.partSize<i)throw new Error("partSize must not be smaller than ".concat(i));e.next=20;break;case 20:return e.next=22,this.initMultipartUpload(t,n);case 22:if(a=e.sent,c=a.uploadId,l=this._getPartSize(o,n.partSize),l={name:t,copySize:o,partSize:l,uploadId:c,doneParts:[]},n&&n.progress)return e.next=29,n.progress(0,l,a.res);e.next=29;break;case 29:return e.next=31,this._resumeMultipartCopy(l,r,n);case 32:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n._resumeMultipartCopy=function(){var n=(0,g.default)(b.default.mark(function e(c,t,l){var u,p,f,d,h,m,r,n,s,i,o,a,y;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isCancel())throw this._makeCancelEvent();e.next=2;break;case 2:if(s=l.versionId,i={versionId:s=void 0===s?null:s},r=c.copySize,o=c.partSize,u=c.uploadId,p=c.doneParts,f=c.name,d=this._divideMultipartCopyParts(r,o,t.startOffset),h=d.length,m={headers:{}},l.copyheaders&&j(l.copyheaders).to(m.headers),s&&j(i).to(m),r=function(i,o,a){return new Promise(function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,s;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i.isCancel()){e.next=22;break}return n=d[o-1],n="".concat(n.start,"-").concat(n.end-1),e.prev=4,e.next=7,i.uploadPartCopy(f,u,o,n,a,m);case 7:s=e.sent,e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(4),404===e.t0.status)throw i._makeAbortEvent();e.next=14;break;case 14:throw e.t0;case 15:if(i.isCancel()){e.next=22;break}if(v("content-range ".concat(s.res.headers["content-range"])),p.push({number:o,etag:s.res.headers.etag}),c.doneParts=p,l&&l.progress)return e.next=22,l.progress(p.length/h,c,s.res);e.next=22;break;case 22:t(),e.next=29;break;case 25:e.prev=25,e.t1=e.catch(0),e.t1.partNum=o,r(e.t1);case 29:case"end":return e.stop()}},e,null,[[0,25],[4,10]])}));return function(e,t){return r.apply(this,arguments)}}())},o=Array.from(new Array(h),function(e,t){return t+1}),n=p.map(function(e){return e.number}),s=o.filter(function(e){return n.indexOf(e)<0}),i=l.parallel||5,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==i){e.next=28;break}o=0;case 18:if(!(o<s.length)){e.next=26;break}if(this.isCancel())throw this._makeCancelEvent();e.next=21;break;case 21:return e.next=23,r(this,s[o],t);case 23:o++,e.next=18;break;case 26:e.next=40;break;case 28:return e.next=30,this._parallelNode(s,i,r,t);case 30:if(a=e.sent,y=a.find(function(e){return"abort"===e.name}))throw y;e.next=34;break;case 34:if(this.isCancel())throw this._makeCancelEvent();e.next=36;break;case 36:if(a&&0<a.length)throw(y=a[0]).message="Failed to copy some parts with error: ".concat(y.toString()," part_num: ").concat(y.partNum),y;e.next=40;break;case 40:return e.next=42,this.completeMultipartUpload(f,u,p,l);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n._divideMultipartCopyParts=function(e,t,r){for(var n=Math.ceil(e/t),s=[],i=0;i<n;i++){var o=t*i+r,a=Math.min(o+t,e+r);s.push({start:o,end:a})}return s},n._getObjectMeta=function(){var n=(0,g.default)(b.default.mark(function e(t,r,n){var s,i;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this.getBucket(),this.setBucket(t),e.next=4,this.head(r,n);case 4:return i=e.sent,this.setBucket(s),e.abrupt("return",i);case 7:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"copy-to":91,"core-js/modules/es.array.
5concat.js":269,"core-js/modules/es.array.filter.js":271,"core-js/modules/es.array.find.js":272,"core-js/modules/es.array.from.js":273,"core-js/modules/es.array.map.js":277,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.iterator.js":302,debug:439}],30:[function(r,e,i){(function(p){(function(){"use strict";r("core-js/modules/es.object.keys.js"),r("core-js/modules/es.symbol.js"),r("core-js/modules/es.object.get-own-property-descriptor.js"),r("core-js/modules/web.dom-collections.for-each.js"),r("core-js/modules/es.object.get-own-property-descriptors.js");var f=(e=r("@babel/runtime/helpers/interopRequireDefault"))(r("@babel/runtime/regenerator")),n=(r("core-js/modules/es.array.map.js"),r("core-js/modules/es.array.filter.js"),r("core-js/modules/es.object.to-string.js"),r("core-js/modules/es.array.sort.js"),r("core-js/modules/es.array.concat.js"),r("core-js/modules/es.regexp.to-string.js"),e(r("@babel/runtime/helpers/defineProperty"))),t=e(r("@babel/runtime/helpers/asyncToGenerator"));function s(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var e,a,u=r("copy-to"),d=r("./callback"),h=r("./utils/deepCopy").deepCopyWith,m=r("./utils/isBuffer").isBuffer,y=r("./utils/omit").omit;(e=i).listUploads=function(){var r=(0,t.default)(f.default.mark(function e(t,r){var n,s;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},u(r=r||{}
vendor: 7,930 bytes, line 5
5).to(n),n.subres="uploads",(n=this._objectRequestParams("GET","",n)).query=t,n.xmlResponse=!0,n.successStatuses=[200],e.next=10,this.request(n);case 10:return n=e.sent,s=n.data.Upload||[],s=(s=Array.isArray(s)?s:[s]).map(function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}}),e.abrupt("return",{res:n.res,uploads:s,bucket:n.data.Bucket,nextKeyMarker:n.data.NextKeyMarker,nextUploadIdMarker:n.data.NextUploadIdMarker,isTruncated:"true"===n.data.IsTruncated});case 15:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),e.listParts=function(){var s=(0,t.default)(f.default.mark(function e(t,r,n,s){var i;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i={},u(s=s||{}).to(i),i.subres={uploadId:r},(i=this._objectRequestParams("GET",t,i)).query=n,i.xmlResponse=!0,i.successStatuses=[200],e.next=10,this.request(i);case 10:return i=e.sent,e.abrupt("return",{res:i.res,uploadId:i.data.UploadId,bucket:i.data.Bucket,name:i.data.Key,partNumberMarker:i.data.PartNumberMarker,nextPartNumberMarker:i.data.NextPartNumberMarker,maxParts:i.data.MaxParts,isTruncated:i.data.IsTruncated,parts:i.data.Part||[]});case 12:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),e.abortMultipartUpload=function(){var n=(0,t.default)(f.default.mark(function e(t,r,n){var s;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._stop(),s={},u(n=n||{}).to(s),s.subres={uploadId:r},(s=this._objectRequestParams("DELETE",t,s)).successStatuses=[204],e.next=9,this.request(s);case 9:return s=e.sent,e.abrupt("return",{res:s.res});case 11:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),e.initMultipartUpload=function(){var r=(0,t.default)(f.default.mark(function e(t,r){var n;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},u(r=r||{}).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(r.meta,n.headers),n.subres="uploads",(n=this._objectRequestParams("POST",t,n)).mime=r.mime,n.xmlResponse=!0,n.successStatuses=[200],e.next=12,this.request(n);case 12:return n=e.sent,e.abrupt("return",{res:n.res,bucket:n.data.Bucket,name:n.data.Key,uploadId:n.data.UploadId});case 14:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),e.uploadPart=(a=(0,t.default)(f.default.mark(function e(t,r,n,s,i,o,a){var c;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c={size:o-i},p&&p.browser)return e.next=5,this._createBuffer(s,i,o);e.next=8;break;case 5:c.content=e.sent,e.next=11;break;case 8:return e.next=10,this._createStream(s,i,o);case 10:c.stream=e.sent;case 11:return e.next=13,this._uploadPart(t,r,n,c,a);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}},e,this)})),function(e,t,r,n,s,i,o){return a.apply(this,arguments)}),e.completeMultipartUpload=function(){var s=(0,t.default)(f.default.mark(function e(t,r,n,s){var i,o,a,c,l,u,p;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(i=n.concat().sort(function(e,t){return e.number-t.number}).filter(function(e,t,r){return!t||e.number!==r[t-1].number}),o='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',a=0;a<i.length;a++)c=i[a],o=(o=(o+="<Part>\n")+"<PartNumber>".concat(c.number,"</PartNumber>\n"))+"<ETag>".concat(c.etag,"</ETag>\n")+"</Part>\n";return o+="</CompleteMultipartUpload>",p={},(p=h(s=s||{},function(e){if(m(e))return null})).subres={uploadId:r},p.headers=y(p.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),l=this._objectRequestParams("POST",t,p),d.encodeCallback(l,p),l.mime="xml",l.content=o,l.headers&&l.headers["x-oss-callback"]||(l.xmlResponse=!0),l.successStatuses=[200],e.next=17,this.request(l);case 17:if(u=e.sent,s.progress)return e.next=21,s.progress(1,null,u.res);e.next=21;break;case 21:return p={res:u.res,bucket:l.bucket,name:t,etag:u.res.headers.etag},l.headers&&l.headers["x-oss-callback"]&&(p.data=JSON.parse(u.data.toString())),e.abrupt("return",p);case 24:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),e._uploadPart=function(){var i=(0,t.default)(f.default.mark(function e(t,r,n,s,i){var o,a,c;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={},u(i=i||{}).to(o),o.headers=o.headers||{},o.headers=l(l({},o.headers),{},{"Content-Length":s.size}),o.headers=y(o.headers,["x-oss-server-side-encryption"]),o.subres={partNumber:n,uploadId:r},(a=this._objectRequestParams("PUT",t,o)).mime=o.mime,p&&p.browser?a.content=s.content:a.stream=s.stream,a.successStatuses=[200],a.disabledMD5=i.disabledMD5,e.next=15,this.request(a);case 15:if((c=e.sent).res.headers.etag){e.next=18;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 18:return s.stream&&(s.stream=null,a.stream=null),e.abrupt("return",{name:t,etag:c.res.headers.etag,res:c.res});case 20:case"end":return e.stop()}},e,this)}));return function(e,t,r,n,s){return i.apply(this,arguments)}}()}).call(this)}).call(this,r("_process"))},{"./callback":24,"./utils/deepCopy":57,"./utils/isBuffer":64,"./utils/omit":71,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/defineProperty":76,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,_process:441,"copy-to":91,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.filter.js":271,"core-js/modules/es.array.map.js":277,"core-js/modules/es.array.sort.js":279,"core-js/modules/es.object.get-own-property-descriptor.js":286,"core-js/modules/es.object.get-own-property-descriptors.js":287,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.symbol.js":312,"core-js/modules/web.dom-collections.for-each.js":338}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),c=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),l=e("url"),u=e("utility"),p=e("copy-to"),f=e("../../common/signUtils"),d=e("../utils/isIP").isIP,h=e("../utils/setSTSToken").setSTSToken,m=e("../utils/isFunction").isFunction;r.asyncSignatureUrl=function(){var r=(0,s.default)(c.default.mark(function e(t,r){var n,s,i,o,a;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");e.next=2;break;case 2:if(r=r||{},t=this._objectName(t),r.method=r.method||"GET",n=u.timestamp()+(r.expires||1800),s={bucket:this.options.bucket,object:t},i=this._getResource(s),this.options.stsToken&&m(this.options.refreshSTSToken))return e.next=11,h.call(this);e.next=11;break;case 11:return this.options.stsToken&&(r["security-token"]=this.options.stsToken),o=f._signatureForURL(this.options.accessKeySecret,r,i,n),(a=l.parse(this._getReqUrl(s))).query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:o.Signature},p(o.subResource).to(a.query),e.abrupt("return",a.format());case 17:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../../common/signUtils":50,"../utils/isFunction":66,"../utils/isIP":67,"../utils/setSTSToken":74,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"copy-to":91,url:446,utility:448}],32:[function(e,t,r){"use strict";var n,a=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),c=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.
5concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),n(e("@babel/runtime/helpers/typeof"))),i=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,l=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];(n=r).copy=function(){var s=(0,i.default)(a.default.mark(function e(t,r,n,s){var i,o;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=(s="object"===(0,c.default)(n)?n:s)||{}).headers=s.headers||{},Object.keys(s.headers).forEach(function(e){s.headers["x-oss-copy-source-".concat(e.toLowerCase())]=s.headers[e]}),(s.meta||Object.keys(s.headers).find(function(e){return l.includes(e.toLowerCase())}))&&(s.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(s.meta,s.headers),r=this._getSourceName(r,n),s.versionId&&(r="".concat(r,"?versionId=").concat(s.versionId)),s.headers["x-oss-copy-source"]=r,(i=this._objectRequestParams("PUT",t,s)).xmlResponse=!0,i.successStatuses=[200,304],e.next=14,this.request(i);case 14:return i=e.sent,o=(o=i.data)&&{etag:o.ETag,lastModified:o.LastModified},e.abrupt("return",{data:o,res:i.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),n._getSourceName=function(e,t){return"string"==typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),s(t),e=encodeURIComponent(e),"/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,"@babel/runtime/regenerator":79,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.find.js":272,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.delete=function(){var t=(0,i.default)(s.default.mark(function e(t){var r,n=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1<n.length&&void 0!==n[1]?n[1]:{}).subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(r=this._objectRequestParam
vendor: 5,493 bytes, line 5
5s("DELETE",t,r)).successStatuses=[204],e.next=7,this.request(r);case 7:return r=e.sent,e.abrupt("return",{res:r.res});case 9:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],34:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),f=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),d=e("utility"),h=e("../utils/obj2xml").obj2xml;r.deleteMulti=function(){var t=(0,s.default)(f.default.mark(function e(t){var r,n,s,i,o,a,c,l,u,p=arguments;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=1<p.length&&void 0!==p[1]?p[1]:{},n=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(s=0;s<t.length;s++)i={},"string"==typeof t[s]?i.Key=d.escape(this._objectName(t[s])):(a=t[s],o=a.key,a=a.versionId,i.Key=d.escape(this._objectName(o)),i.VersionId=a),n.push(i);return c={Delete:{Quiet:!!r.quiet,Object:n}},c=h(c,{headers:!0}),r.subres=Object.assign({delete:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(l=this._objectRequestParams("POST","",r)).mime="xml",l.content=c,l.xmlResponse=!0,l.successStatuses=[200],e.next=16,this.request(l);case 16:return c=e.sent,l=c.data,(u=l&&l.Deleted||null)&&!Array.isArray(u)&&(u=[u]),e.abrupt("return",{res:c.res,deleted:u||[]});case 21:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284,utility:448}],35:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.deleteObjectTagging=function(){var t=(0,i.default)(s.default.mark(function e(t){var r,n=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1<n.length&&void 0!==n[1]?n[1]:{}).subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(r=this._objectRequestParams("DELETE",t,r)).successStatuses=[204],e.next=8,this.request(r);case 8:return r=e.sent,e.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],36:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js");var s=e("url"),i=e("../utils/isIP").isIP;r.generateObjectUrl=function(e,t){if(i(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");var r,n;return t?"/"!==t[t.length-1]&&(t+="/"):(t=this.options.endpoint.format(),r=s.parse(t),n=this.options.bucket,r.hostname="".concat(n,".").concat(r.hostname),r.host="".concat(n,".").concat(r.host),t=r.format()),t+this._escape(this._objectName(e))}},{"../utils/isIP":67,"core-js/modules/es.array.concat.js":269,url:446}],37:[function(r,e,n){(function(d){(function(){"use strict";var e=r("@babel/runtime/helpers/interopRequireDefault"),u=e(r("@babel/runtime/regenerator")),t=(r("core-js/modules/es.object.assign.js"),e(r("@babel/runtime/helpers/asyncToGenerator"))),p=r("fs"),f=r("is-type-of");n.get=function(){var r=(0,t.default)(u.default.mark(function e(t,r){var n,s,i,o,a,c,l=arguments;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<l.length&&void 0!==l[2]?l[2]:{},s=null,i=!1,f.writableStream(r)?s=r:f.string(r)?(s=p.createWriteStream(r),i=!0):n=r,n=n||{},o=d&&d.browser,c=null===n.responseCacheControl?"":"no-cache",o=o&&c?{"response-cache-control":c}:{},n.subres=Object.assign(o,n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),e.prev=11,(c=this._objectRequestParams("GET",t,n)).writeStream=s,c.successStatuses=[200,206,304],e.next=17,this.request(c);case 17:a=e.sent,i&&s.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e.catch(11),i)return s.destroy(),e.next=27,this._deleteFileSafe(r);e.next=27;break;case 27:throw e.t0;case 28:return e.abrupt("return",{res:a.res,content:a.data});case 29:case"end":return e.stop()}},e,this,[[11,21]])}));return function(e,t){return r.apply(this,arguments)}}()}).call(this)}).call(this,r("_process"))},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,_process:441,"core-js/modules/es.object.assign.js":284,fs:87,"is-type-of":440}],38:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.getACL=function(){var t=(0,i.default)(s.default.mark(function e(t){var r,n=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1<n.length&&void 0!==n[1]?n[1]:{}).subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(r=this._objectRequestParam
5s("GET",t,r)).successStatuses=[200],r.xmlResponse=!0,e.next=9,this.request(r);case 9:return r=e.sent,e.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 11:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],39:[function(e,t,r){"use strict";var l=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),n=r,u=e("../utils/isObject").isObject,p=e("../utils/isArray").isArray;function i(){return o.apply(this,arguments)}function o(){return(o=(0,s.default)(l.default.mark(function e(){var t,r,n,s,i,o,a,c=arguments;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=1<c.length&&void 0!==c[1]?c[1]:{},(t=0<c.length&&void 0!==c[0]?c[0]:{}).versionIdMarker&&void 0===t.keyMarker)throw new Error("A version-id marker cannot be specified without a key marker");e.next=4;break;case 4:return r.subres=Object.assign({versions:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParam
vendor: 14,552 bytes, line 5
5s("GET","",r)).xmlResponse=!0,n.successStatuses=[200],n.query=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r={};return u(t)&&Object.keys(t).forEach(function(e){r[e.replace(/([A-Z])/g,"-$1").toLowerCase()]=t[e]}),r}(t),e.next=12,this.request(n);case 12:return n=e.sent,s=n.data.Version||[],i=n.data.DeleteMarker||[],o=this,s=s&&(s=Array.isArray(s)?s:[s]).map(function(e){return{name:e.Key,url:o._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}),i=i&&(i=p(i)?i:[i]).map(function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}),a=(a=n.data.CommonPrefixes||null)&&(a=p(a)?a:[a]).map(function(e){return e.Prefix}),e.abrupt("return",{res:n.res,objects:s,deleteMarker:i,prefixes:a,nextMarker:n.data.NextKeyMarker||null,NextVersionIdMarker:n.data.NextVersionIdMarker||null,nextKeyMarker:n.data.NextKeyMarker||null,nextVersionIdMarker:n.data.NextVersionIdMarker||null,isTruncated:"true"===n.data.IsTruncated});case 21:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.getBucketVersions=i,n.listObjectVersions=i},{"../utils/isArray":62,"../utils/isObject":68,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.map.js":277,"core-js/modules/es.number.constructor.js":283,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338}],40:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.getObjectMeta=function(){var r=(0,i.default)(s.default.mark(function e(t,r){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},t=this._objectName(t),r.subres=Object.assign({objectMeta:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParams("HEAD",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return n=e.sent,e.abrupt("return",{status:n.status,res:n.res});case 10:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],41:[function(e,t,r){"use strict";var a=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),n=r,c=e("../utils/isObject").isObject;n.getObjectTagging=function(){var t=(0,s.default)(a.default.mark(function e(t){var r,n,s,i,o=arguments;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=1<o.length&&void 0!==o[1]?o[1]:{}).subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(n=this._objectRequestParams("GET",t,n)).successStatuses=[200],e.next=8,this.request(n);case 8:return r=e.sent,e.next=11,this.parseXML(r.data);case 11:return n=e.sent,s=(s=n.TagSet.Tag)&&c(s)?[s]:s||[],i={},s.forEach(function(e){i[e.Key]=e.Value}),e.abrupt("return",{status:r.status,res:r.res,tag:i});case 17:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"../utils/isObject":68,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],42:[function(e,t,r){"use strict";var n=e("../utils/isIP").isIP;r.getObjectUrl=function(e,t){if(n(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":67}],43:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.getSymlink=function(){var t=(0,s.default)(i.default.mark(function e(t){var r,n,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1<s.length&&void 0!==s[1]?s[1]:{}).subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(r=this._objectRequestParams("GET",t,r)).successStatuses=[200],e.next=8,this.request(r);case 8:return r=e.sent,n=r.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(n),res:r.res});case 11:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],44:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.head=function(){var t=(0,s.default)(o.default.mark(function e(t){var r,n,s,i=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1<i.length&&void 0!==i[1]?i[1]:{}).subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(r=this._objectRequestParams("HEAD",t,r)).successStatuses=[200,304],e.next=7,this.request(r);case 7:return n=e.sent,s={meta:null,res:n.res,status:n.status},200===n.status&&Object.keys(n.headers).forEach(function(e){0===e.indexOf("x-oss-meta-")&&(s.meta||(s.meta={}),s.meta[e.substring(11)]=n.headers[e])}),e.abrupt("return",s);case 11:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],45:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.putACL=function(){var n=(0,s.default)(i.default.mark(function e(t,r,n){var s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).subres=Object.assign({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=r,t=this._objectName(t),(s=this._objectRequestParams("PUT",t,n)).successStatuses=[200],e.next=10,this.request(s);case 10:return s=e.sent,e.abrupt("return",{res:s.res});case 12:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),a=e("../utils/obj2xml").obj2xml,c=e("../utils/checkObjectTag").checkObjectTag;r.putObjectTagging=function(){var r=(0,s.default)(o.default.mark(function e(t,r){var n,s,i=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<i.length&&void 0!==i[2]?i[2]:{},c(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(n=this._objectRequestParams("PUT",t,n)).successStatuses=[200],r=Object.keys(r).map(function(e){return{Key:e,Value:r[e]}}),s={Tagging:{TagSet:{Tag:r}}},n.mime="xml",n.content=a(s),e.next=13,this.request(n);case 13:return s=e.sent,e.abrupt("return",{res:s.res,status:s.status});case 15:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../utils/checkObjectTag":53,"../utils/obj2xml":70,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.map.js":277,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.keys.js":289}],47:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.putSymlink=function(){var n=(0,s.default)(i.default.mark(function e(t,r,n){var s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},r=this._escape(this._objectName(r)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=r,n.subres=Object.assign({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),t=this._objectName(t),(s=this._objectRequestParams("PUT",t,n)).successStatuses=[200],e.next=13,this.request(s);case 13:return s=e.sent,e.abrupt("return",{res:s.res});case 15:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.object.assign.js":284}],48:[function(e,t,r){"use strict";var s=e("url"),i=e("utility"),o=e("copy-to"),a=e("../../common/signUtils"),c=e("../utils/isIP").isIP;r.signatureUrl=function(e,t){if(c(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");t=t||{},e=this._objectName(e),t.method=t.method||"GET";var r=i.timestamp()+(t.expires||1800),n=(e={bucket:this.options.bucket,object:e},this._getResource(e));this.options.stsToken&&(t["security-token"]=this.options.stsToken),t=a._signatureForURL(this.options.accessKeySecret,t,n,r);return(n=s.parse(this._getReqUrl(e))).query={OSSAccessKeyId:this.options.accessKeyId,Expires:r,Signature:t.Signature},o(t.subResource).to(n.query),n.format()}},{"../../common/signUtils":50,"../utils/isIP":67,"copy-to":91,url:446,utility:448}],49:[function(e,t,r){"use strict";var n,p=(n=e("@babel/runtime/helpers/interopRequireDefault"))(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),s=e("./utils/isArray").isArray;(n=r)._parallelNode=function(){var s=(0,i.default)(p.default.mark(function e(t,r,n,s){var i,o,a,c,l,u;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=this,o=[],a=[],c=t.length/r,l=t.length%r,c=0==l?c:(t.length-l)/r+1,l=1,u=0;case 8:if(!(u<t.length)){e.next=26;break}if(i.isCancel())return e.abrupt("break",26);e.next=11;break;case 11:if(s?a.push(n(i,t[u],s)):a.push(n(i,t[u])),a.length===r||l===c&&u===t.length-1)return e.prev=13,l+=1,e.next=17,Promise.all(a);e.next=23;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(13),o.push(e.t0);case 22:a=[];case 23:u++,e.next=8;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}},e,this,[[13,19]])}));return function(e,t,r,n){return s.apply(this,arguments)}}(),n._parallel=function(p,f,d){var h=this;return new Promise(function(t){var r,e,n,s,i,o,a,c=[];function l(e){--o,e?(i=!0,c.push(e),t(c)):i&&o<=0?(i=!0,t(c)):a||(h.isCancel()?t(c):u())}function u(){for(a=!0;o<f&&!i&&!h.isCancel();){var e=r();if(null===e||0<c.length)return i=!0,void(o<=0&&t(c));o+=1,function(e,t){d(e).then(function(e){t(null,e)}).catch(function(e){t(e)})}(e.value,function(s){return function(){if(null===s)throw new Error("Callback was already called.");var e=s;s=null;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e.apply(this,r)}}(l))}a=!1}f<=0||!p?t(c):(n=-1,s=(e=p).length,o=0,a=i=!(r=function(){return++n<s&&!h.isCancel()?{value:e[n],key:n}:null}),u())})},n.cancel=function(e){this.options.cancelFlag=!0,s(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(e){!1===e.destroyed&&e.destroy({name:"cancel",message:"cancel"})}),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},n.isCancel=function(){return this.options.cancelFlag},n.resetCancelFlag=function(){this.options.cancelFlag=!1},n._stop=function(){this.options.cancelFlag=!0},n._makeCancelEvent=function(){return{status:0,name:"cancel"}},n._makeAbortEvent=function(){return{status:0,name:"abort",message:"upload task has been abort"}}},{"./utils/isArray":62,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.iterator.js":275,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.string.iterator.js":302,"core-js/modules/web.dom-collections.for-each.js":338,"core-js/modules/web.dom-collections.iterator.js":339}],50:[function(e,t,r){(function(l){(function(){"use strict";e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.
5concat.js"),e("core-js/modules/es.regexp.to-string.js");var n=e("./../../shims/crypto/crypto.js"),s=e("is-type-of"),a=e("./utils/lowercaseKeyHeader").lowercaseKeyHeader;r.buildCanonicalizedResource=function(e,t){var r="".concat(e),n="?";return s.string(t)&&""!==t.trim()?r+=n+t:s.array(t)?(t.sort(),r+=n+t.join("&")):t&&Object.keys(t).sort(function(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:0}).forEach(function(e){r+=n+e,!t[e]&&0!==t[e]||(r+="=".concat(t[e])),n="&"}),r},r.buildCanonicalString=function(e,t,r,n){var s=a((r=r||{}).headers),i=[],o={};e=[e.toUpperCase(),s["content-md5"]||"",s["content-type"],n||s["x-oss-date"]];return Object.keys(s).forEach(function(e){var t=e.toLowerCase();0===t.indexOf("x-oss-")&&(o[t]=String(s[e]).trim())}),Object.keys(o).sort().forEach(function(e){i.push("".concat(e,":").concat(o[e]))}),(e=e.concat(i)).push(this.buildCanonicalizedResource(t,r.parameters)),e.join("\n")},r.computeSignature=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"utf-8";return n.createHmac("sha1",e).update(l.from(t,r)).digest("base64")},r.authorization=function(e,t,r,n){return"OSS ".concat(e,":").concat(this.computeSignature(t,r,n))},r._signatureForURL=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,s=3<arguments.length?arguments[3]:void 0,i=4<arguments.length?arguments[4]:void 0,o={},c=void 0===(a=n.subResource)?{}:a,a=(n.process&&(c["x-oss-process"]=n.process),n.trafficLimit&&(c["x-oss-traffic-limit"]=n.trafficLimit),n.response&&Object.keys(n.response).forEach(function(e){var t="response-".concat(e.toLowerCase());c[t]=n.response[e]}),Object.keys(n).forEach(function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?o[t]=r:0!==t.indexOf("content-md5")&&0!==t.indexOf("content-type")||(o[e]=r)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(c["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")&&(a={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body},n.callback.host&&(a.callbackHost=n.callback.host),n.callback.contentType&&(a.callbackBodyType=n.callback.contentType),c.callback=l.from(JSON.stringify(a)).toString("base64"),n.callback.customValue&&(t={},Object.keys(n.callback.customValue).forEach(function(e){t["x:".concat(e)]=n.callback.customValue[e]}),c["callback-var"]=l.from(JSON.stringify(t)).toString("base64"))),this.buildCanonicalString(n.method,r,{headers:o,parameters:c},s.toString()));return{Signature:this.computeSignature(e,a,i),subResource:c}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":435,"./utils/lowercaseKeyHeader":69,buffer:89,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.join.js":276,"core-js/modules/es.array.sort.js":279,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.trim.js":307,"core-js/modules/web.dom-collections.for-each.js":338,"is-type-of":440}],51:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(e){if(!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(e))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":299}],52:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkConfigValid=void 0;var n={endpoint:function(e){return"string"==typeof e?/^[a-zA-Z0-9._:/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:/-]+$/.test(e.host)},region:/^[a-zA-Z0-9\-_]+$/};r.checkConfigValid=function(e,t){if(n[t]&&!(n[t]instanceof Function?n[t](e):n[t].test(e)))throw new Error("The ".concat(t," must be conform to the specifications"))}},{"core-js/modules/es.regexp.exec.js":299}],53:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(r,"__esMo
5dule",{value:!0}),r.checkObjectTag=void 0;var n=e("./checkValid").checkValid,s=e("./isObject").isObject,i={key:[].concat(e=[{validator:function(e){if("string"!=typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(e,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};r.checkObjectTag=function(e){if(!s(e))throw new Error("tag must be Object");if(10<(e=Object.entries(e)).length)throw new Error("maximum of 10 tags for a object");var r=["key","value"];e.forEach(function(e){e.forEach(function(e,t){n(e,i[r[t]])})})}},{"./checkValid":54,"./isObject":68,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.object.entries.js":285,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],54:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkValid=void 0,r.checkValid=function(t,e){e.forEach(function(e){if(e.validator)e.validator(t);else if(e.pattern&&!e.pattern.test(t))throw new Error(e.msg)})}},{"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/web.dom-collections.for-each.js":338}],55:[function(e,t,r){(function(v){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var c=e("./../../../shims/crypto/crypto.js"),l=e("debug")("ali-oss"),u=e("mime"),p=e("dateformat"),f=e("copy-to"),d=e("path"),h=e("./encoder").encoder,m=e("./isIP").isIP,y=e("./setRegion").setRegion,b=e("../client/getReqUrl").getReqUrl;function g(e,t){return e[t]||e[t.toLowerCase()]}r.createRequest=function(e){var t,r=new Date,n=(this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed),{"x-oss-date":p(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")}),s=("undefined"!=typeof window&&(n["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(n["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(n,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(n["x-oss-security-token"]=this.options.stsToken),f(e.headers).to(n),g(n,"Content-Type")||(e.mime&&0<e.mime.indexOf("/")?n["Content-Type"]=e.mime:n["Content-Type"]=u.getType(e.mime||d.extname(e.object||""))),g(n,"Content-Type")||(delete(r=n)[i="Content-Type"],delete r[i.toLowerCase()]),e.content&&(e.disabledMD5||(e.headers&&e.headers["Content-MD5"]?n["Content-MD5"]=e.headers["Content-MD5"]:n["Content-MD5"]=c.createHash("md5").update(v.from(e.content,"utf8")).digest("base64")),n["Content-Length"]||(n["Content-Length"]=e.content.length)),Object.prototype.hasOwnProperty);for(t in n)n[t]&&s.call(n,t)&&(n[t]=h(String(n[t]),this.options.headerEncoding));r=this._getResource(e);var i,o=(n.authorization=this.authorization(e.method,r,e.subres,n,this.options.headerEncoding),m(this.options.endpoint.hostname)&&(r=(i=this.options).region,o=i.internal,a=i.secure,r=y(r,o,a),n.host="".concat(e.bucket,".").concat(r.host)),b.bind(this)(e)),a=(l("request %s %s, with headers %j, !!stream: %s",e.method,o,n,!!e.stream),e.timeout||this.options.timeout);r={method:e.method,content:e.content,stream:e.stream,headers:n,timeout:a,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(r.agent=this.agent),this.httpsAgent&&(r.httpsAgent=this.httpsAgent),r.enableProxy=!!this.options.enableProxy,r.proxy=this.options.proxy||null,{url:o,params:r}}}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":435,"./encoder":58,"./isIP":67,"./setRegion":73,buffer:89,"copy-to":91,"core-js/modules/es.array.
5concat.js":269,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.string.includes.js":301,dateformat:341,debug:439,mime:359,path:363}],56:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.dataFix=void 0;var l=e("./isObject"),u=["true","TRUE","1",1],p=["false","FALSE","0",0];r.dataFix=function e(r,t,n){var s,i,o,a,c;if(l.isObject(r))return s=void 0===(s=t.remove)?[]:s,i=void 0===(i=t.rename)?{}:i,o=void 0===(o=t.camel)?[]:o,a=void 0===(a=t.bool)?[]:a,t=void 0!==(t=t.lowerFirst)&&t,s.forEach(function(e){return delete r[e]}),Object.entries(i).forEach(function(e){r[e[0]]&&!r[e[1]]&&(r[e[1]]=r[e[0]],delete r[e[0]])}),o.forEach(function(e){var t;r[e]&&(t=e.replace(/^(.)/,function(e){return e.toLowerCase()}).replace(/-(\w)/g,function(e,t){return t.toUpperCase()}),r[t]||(r[t]=r[e]))}),a.forEach(function(e){r[e]=!!(e=r[e])&&(!!u.includes(e)||!p.includes(e)&&e)}),"function"==typeof n&&n(r),c=r,t&&Object.keys(c).forEach(function(e){var t=e.replace(/^\w/,function(e){return e.toLowerCase()});void 0===c[t]&&(c[t]=c[e],delete c[e])}),e}},{"./isObject":68,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.object.entries.js":285,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338}],57:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),o=(e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),r(e("@babel/runtime/helpers/typeof"))),a=(Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopyWith=n.deepCopy=void 0,e("./isBuffer"));n.deepCopy=function(t){if(null===t||"object"!==(0,o.default)(t))return t;if(a.isBuffer(t))return t.slice();var r=Array.isArray(t)?[]:{};return Object.keys(t).forEach(function(e){r[e]=n.deepCopy(t[e])}),r},n.deepCopyWith=function(e,i){return i?function t(r,e,n){if(void 0!==(e=i(r,e,n)))return e;if(null===r||"object"!==(0,o.default)(r))return r;if(a.isBuffer(r))return r.slice();var s=Array.isArray(r)?[]:{};return Object.keys(r).forEach(function(e){s[e]=t(r[e],e,r)}),s}(e,"",null):n.deepCopy(e)}},{"./isBuffer":64,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],58:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.encoder=void 0,r.encoder=function(e){return"utf-8"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"utf-8")?e:t.from(e).toString("latin1")}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:89,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.to-string.js":300}],59:[function(e,t,r){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.formatInventoryConfig=void 0;var n=e("../utils/dataFix"),s=e("../utils/isObject"),i=e("../utils/isArray"),o=e("../utils/formatObjKey");function a(e){return n.dataFix(e,{bool:["IsEnabled"]},function(e){var t;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,null!=(t=null==e?void 0:e.OptionalFields)&&t.Field&&!i.isArray(null==(t=e.OptionalFields)?void 0:t.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])}),o.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]})}r.formatInventoryConfig=function(e){return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&s.isObject(e)&&(e=[e]),i.isArray(e)?e.map(a):a(e)}},{"../utils/dataFix":56,"../utils/formatObjKey":60,"../utils/isArray":62,"../utils/isObject":68,"core-js/modules/es.array.map.js":277,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.replace.js":304}],60:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),n(e("@babel/runtime/helpers/typeof")));
5Object.defineProperty(r,"__esModule",{value:!0}),r.formatObjKey=void 0,r.formatObjKey=function t(r,n,s){if(null===r||"object"!==(0,o.default)(r))return r;if(Array.isArray(r))for(var i=[],e=0;e<r.length;e++)i.push(t(r[e],n,s));else i={},Object.keys(r).forEach(function(e){i[function(e,t,r){return r&&r.exclude&&r.exclude.includes(e)||("firstUpperCase"===t?e=e.replace(/^./,function(e){return e.toUpperCase()}):"firstLowerCase"===t&&(e=e.replace(/^./,function(e){return e.toLowerCase()}))),e}(e,n,s)]=t(r[e],n,s)});return i}},{"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,"core-js/modules/es.array.includes.js":274,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.includes.js":301,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338}],61:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.getStrBytesCount=void 0,r.getStrBytesCount=function(e){for(var t=0,r=0;r<e.length;r++){var n=e.charAt(r);/^[\u00-\uff]$/.test(n)?t+=1:t+=2}return t}},{"core-js/modules/es.regexp.exec.js":299}],62:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=void 0,r.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":290}],63:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBlob=void 0,r.isBlob=function(e){return"undefined"!=typeof Blob&&e instanceof Blob}},{}],64:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBuffer=void 0,r.isBuffer=function(e){return t.isBuffer(e)}}).call(this)}).call(this,{isBuffer:e("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":354}],65:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFile=void 0,r.isFile=function(e){return"undefined"!=typeof File&&e instanceof File}},{}],66:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"==typeof e}},{}],67:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isIP=void 0,r.isIP=function(e){return/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/.test(e)||/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(e)}},{"core-js/modules/es.regexp.exec.js":299}],68:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=void 0,r.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":290}],69:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esMo
5dule",{value:!0}),r.lowercaseKeyHeader=void 0;var n=e("./isObject");r.lowercaseKeyHeader=function(t){var r={};return n.isObject(t)&&Object.keys(t).forEach(function(e){r[e.toLowerCase()]=t[e]}),r}},{"./isObject":68,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/web.dom-collections.for-each.js":338}],70:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.obj2xml=void 0;var s=e("./formatObjKey");function i(e){return Object.prototype.toString.call(e).replace(/(.*? |])/g,"").toLowerCase()}r.obj2xml=function r(e,t){var n="";return t&&t.headers&&(n='<?xml version="1.0" encoding="UTF-8"?>\n'),"object"===i(e=t&&t.firstUpperCase?s.formatObjKey(e,"firstUpperCase"):e)?Object.keys(e).forEach(function(t){"undefined"!==i(e[t])&&"null"!==i(e[t])&&("string"===i(e[t])||"number"===i(e[t])?n+="<".concat(t,">").concat(e[t],"</").concat(t,">"):"object"===i(e[t])?n+="<".concat(t,">").concat(r(e[t]),"</").concat(t,">"):"array"===i(e[t])?n+=e[t].map(function(e){return"<".concat(t,">").concat(r(e),"</").concat(t,">")}).join(""):n+="<".concat(t,">").concat(e[t].toString(),"</").concat(t,">"))}):n+=e.toString(),n}},{"./formatObjKey":60,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.join.js":276,"core-js/modules/es.array.map.js":277,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.replace.js":304,"core-js/modules/web.dom-collections.for-each.js":338}],71:[function(e,t,r){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.object.assign.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.omit=void 0,r.omit=function(e,t){var r,n=Object.assign({},e),s=function(e,t){var r,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw s}}}}(t);try{for(s.s();!(r=s.n()).done;)delete n[r.value]}catch(e){s.e(e)}finally{s.f()}return n}},{"core-js/modules/es.array.from.js":273,"core-js/modules/es.array.iterator.js":275,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.iterator.js":302,"core-js/modules/es.symbol.description.js":309,"core-js/modules/es.symbol.iterator.js":311,"core-js/modules/es.symbol.js":312,"core-js/modules/web.dom-collections.iterator.js":339}],72:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),Object.defineProperty(r,"__esMo
5dule",{value:!0}),r.retry=void 0,r.retry=function(i,o){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a=0,t=e.retryDelay,c=void 0===t?500:t,l=void 0===(t=e.errorHandler)?function(){return!0}:t;return function n(){for(var e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];return new Promise(function(t,r){i.apply(void 0,s).then(function(e){a=0,t(e)}).catch(function(e){a<o&&l(e)?(a++,setTimeout(function(){t(n.apply(void 0,s))},c)):(a=0,r(e))})})}}},{"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294}],73:[function(e,t,r){"use strict";var s=(Object.defineProperty(r,"__esModule",{value:!0}),r.setRegion=void 0,function(e){return e&&e.__esModule?e:{default:e}}(e("url"))),i=e("./checkConfigValid");r.setRegion=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=(r=(i.checkConfigValid(e,"region"),r?"https://":"http://"),t=t?"-internal.aliyuncs.com":".aliyuncs.com","vpc100-oss-cn-");return e.substr(0,14)===n&&(t=".aliyuncs.com"),s.default.parse(r+e+t)}},{"./checkConfigValid":52,url:446}],74:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),i=(e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator"))),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.checkCredentials=r.setSTSToken=void 0,e("./formatObjKey"));function a(){return(a=(0,i.default)(s.default.mark(function e(){var t,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();e.next=12;break;case 7:r=e.sent,(r=o.formatObjKey(r,"firstLowerCase")).securityToken&&(r.stsToken=r.securityToken),c(r),Object.assign(this.options,r);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function c(e){var r=Object.keys(e);["accessKeySecret","accessKeyId","stsToken"].forEach(function(t){if(!r.find(function(e){return e===t}))throw Error("refreshSTSToken must return contains ".concat(t))})}r.setSTSToken=function(){return a.apply(this,arguments)},r.checkCredentials=c},{"./formatObjKey":60,"@babel/runtime/helpers/asyncToGenerator":75,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/regenerator":79,"core-js/modules/es.array.find.js":272,"core-js/modules/es.object.assign.js":284,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290}],75:[function(e,t,r){function c(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}t.exports=function(a){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=a.apply(e,o);function s(e){c(n,t,r,s,i,"next",e)}function i(e){c(n,t,r,s,i,"throw",e)}s(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],76:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],77:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],78:[function(e,t,r){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],79:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":384}],80:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],81:[function(x,T,e){(function(f){(function(){"use strict";var e=x("object-assign");function d(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);s<i;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0}function h(e){return f.Buffer&&"function"==typeof f.Buffer.isBuffer?f.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var m=x("util/"),n=Object.prototype.hasOwnProperty,y=Array.prototype.slice,t="foo"===function(){}.name;function b(e){return Object.prototype.toString.call(e)}function g(e){return!h(e)&&"function"==typeof f.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var i=T.exports=l,r=/\s*function\s+([^\(\s]*)\s*/;function s(e){if(m.isFunction(e))return t?e.name:(e=e.toString().match(r))&&e[1]}function o(e,t){return"string"!=typeof e||e.length<t?e:e.slice(0,t)}function a(e){return t||!m.isFunction(e)?m.inspect(e):"[Function"+((e=s(e))?": "+e:"")+"]"}function c(e,t,r,n,s){throw new i.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:s})}function l(e,t){e||c(e,!0,t,"==",i.ok)}function v(e,t,r,n){if(e===t)return!0;
vendor: 5,560 bytes, line 5
5if(h(e)&&h(t))return 0===d(e,t);if(m.isDate(e)&&m.isDate(t))return e.getTime()===t.getTime();if(m.isRegExp(e)&&m.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(g(e)&&g(t)&&b(e)===b(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===d(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(h(e)!==h(t))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(e);if(-1!==s&&s===n.expected.indexOf(t))return!0;n.actual.push(e),n.expected.push(t);var i=e,o=t,a=r,c=n;if(null==i||null==o)return!1;if(m.isPrimitive(i)||m.isPrimitive(o))return i===o;if(a&&Object.getPrototypeOf(i)!==Object.getPrototypeOf(o))return!1;if(s=j(i),n=j(o),s&&!n||!s&&n)return!1;if(s)return v(i=y.call(i),o=y.call(o),a);var l,u,p=w(i),f=w(o);if(p.length!==f.length)return!1;for(p.sort(),f.sort(),u=p.length-1;0<=u;u--)if(p[u]!==f[u])return!1;for(u=p.length-1;0<=u;u--)if(!v(i[l=p[u]],o[l],a,c))return!1;return!0}return r?e===t:e==t}function j(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function u(e,t){if(e&&t){if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return 1}catch(e){}return Error.isPrototypeOf(t)?void 0:!0===t.call({},e)}}function p(e,t,r,n){if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),t=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!t&&c(t,r,"Missing expected exception"+n);var s="string"==typeof n,i=!e&&t&&!r;if((!e&&m.isError(t)&&s&&u(t,r)||i)&&c(t,r,"Got unwanted exception"+n),e&&t&&r&&!u(t,r)||!e&&t)throw t}i.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=o(a((r=this).actual),128)+" "+r.operator+" "+o(a(r.expected),128),this.generatedMessage=!0);var t,r=e.stackStartFunction||c;Error.captureStackTrace?Error.captureStackTrace(this,r):(e=new Error).stack&&(e=e.stack,t=s(r),0<=(t=e.indexOf("\n"+t))&&(t=e.indexOf("\n",t+1),e=e.substring(t+1)),this.stack=e)},m.inherits(i.AssertionError,Error),i.fail=c,i.ok=l,i.equal=function(e,t,r){e!=t&&c(e,t,r,"==",i.equal)},i.notEqual=function(e,t,r){e==t&&c(e,t,r,"!=",i.notEqual)},i.deepEqual=function(e,t,r){v(e,t,!1)||c(e,t,r,"deepEqual",i.deepEqual)},i.deepStrictEqual=function(e,t,r){v(e,t,!0)||c(e,t,r,"deepStrictEqual",i.deepStrictEqual)},i.notDeepEqual=function(e,t,r){v(e,t,!1)&&c(e,t,r,"notDeepEqual",i.notDeepEqual)},i.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&c(t,r,n,"notDeepStrictEqual",e)},i.strictEqual=function(e,t,r){e!==t&&c(e,t,r,"===",i.strictEqual)},i.notStrictEqual=function(e,t,r){e===t&&c(e,t,r,"!==",i.notStrictEqual)},i.throws=function(e,t,r){p(!0,e,t,r)},i.doesNotThrow=function(e,t,r){p(!1,e,t,r)},i.ifError=function(e){if(e)throw e},i.strict=e(function e(t,r){t||c(t,!0,r,"==",e)},i,{equal:i.strictEqual,deepEqual:i.deepStrictEqual,notEqual:i.notStrictEqual,notDeepEqual:i.notDeepStrictEqual}),i.strict.strict=i.strict;var w=Object.keys||function(e){var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return r}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":362,"util/":84}],82:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){function r(){}e.super_=t,r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],83:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],84:[function(_,e,S){(function(k,E){(function(){var e,a=/%[sdj%]/g,n=(S.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,s=n.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(s<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<s;o=n[++r])m(o)||!l(o)?i+=" "+o:i+=" "+c(o);return i},S.deprecate=function(e,t){if(g(E.process))return function(){return S.deprecate(e,t).apply(this,arguments)};if(!0===k.noDeprecation)return e;var r=!1;return function(){if(!r){if(k.throwDeprecation)throw new Error(t);k.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}},{});function c(e,t){var r={seen:[],stylize:i};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&S._extend(r,t),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,e,r.depth)}function s(e,t){return(t=c.styles[t])?"�["+c.colors[t][0]+"m"+e+"�["+c.colors[t][1]+"m":e}function i(e,t){return e}function u(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==S.inspect&&(!r.constructor||r.constructor.prototype!==r))return b(e=r.inspect(n,t))?e:u(t,e,n);var e=function(e,t){return g(t)?e.stylize("undefined","undefined"):b(t)?(r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(r,"
5string")):y(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0;var r}(t,r);if(e)return e;e=Object.keys(r);var s,i=(s={},e.forEach(function(e,t){s[e]=!0}),s);if(t.showHidden&&(e=Object.getOwnPropertyNames(r)),w(r)&&(0<=e.indexOf("message")||0<=e.indexOf("description")))return p(r);if(0===e.length){if(x(r))return o=r.name?": "+r.name:"",t.stylize("[Function"+o+"]","special");if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return t.stylize(Date.prototype.toString.call(r),"date");if(w(r))return p(r)}var l,o="",a=!1,c=["{","}"];return d(r)&&(a=!0,c=["[","]"]),x(r)&&(o=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(o=" "+RegExp.prototype.toString.call(r)),j(r)&&(o=" "+Date.prototype.toUTCString.call(r)),w(r)&&(o=" "+p(r)),0!==e.length||a&&0!=r.length?n<0?v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=a?function(t,r,n,s,e){for(var i=[],o=0,a=r.length;o<a;++o)T(r,String(o))?i.push(f(t,r,n,s,String(o),!0)):i.push("");return e.forEach(function(e){e.match(/^\d+$/)||i.push(f(t,r,n,s,e,!0))}),i}(t,r,n,i,e):e.map(function(e){return f(t,r,n,i,e,a)}),t.seen.pop(),60<l.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)?c[0]+(""===o?"":o+"\n ")+" "+l.join(",\n  ")+" "+c[1]:c[0]+o+" "+l.join(", ")+" "+c[1]):c[0]+o+c[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,s,i){var o,a;if((t=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(a=e.stylize("[Setter]","special")),T(n,s)||(o="["+s+"]"),a||(e.seen.indexOf(t.value)<0?-1<(a=m(r)?u(e,t.value,null):u(e,t.value,r-1)).indexOf("\n")&&(a=i?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),g(o)){if(i&&s.match(/^\d+$/))return a;o=(o=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+a}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return l(e)&&"[object RegExp]"===t(e)}function l(e){return"object"==typeof e&&null!==e}function j(e){return l(e)&&"[object Date]"===t(e)}function w(e){return l(e)&&("[object Error]"===t(e)||e instanceof Error)}function x(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function r(e){return e<10?"0"+e.toString(10):e.toString(10)}S.debuglog=function(t){var r;return g(e)&&(e=k.env.NODE_DEBUG||""),t=t.toUpperCase(),n[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=k.pid,n[t]=function(){var e=S.format.apply(S,arguments);console.error("%s %d: %s",t,r,e)}):n[t]=function(){}),n[t]},(S.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=d,S.isBoolean=h,S.isNull=m,S.isNullOrUndefined=function(e){return null==e},S.isNumber=y,S.isString=b,S.isSymbol=function(e){return"symbol"==typeof e},S.isUndefined=g,S.isRegExp=v,S.isObject=l,S.isDate=j,S.isError=w,S.isFunction=x,S.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},S.isBuffer=_("./support/isBuffer");var o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}S.log=function(){var e,t;console.log("%s - %s",(t=[r((e=new Date).getHours()),r(e.getMinutes()),r(e.getSeconds())].join(":"),[e.getDate(),o[e.getMonth()],t].join(" ")),S.format.apply(S,arguments))},S.inherits=_("inherits"),S._extend=function(e,t){if(!t||!l(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,_("_process"),void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":83,_process:441,inherits:82}],85:[function(e,t,r){"use strict";r.byteLength=function(e){return 3*((e=u(e))[0]+(e=e[1]))/4-e},r.toByteArray=function(e){var t,r,s=(n=u(e))[0],n=n[1],i=new l(function(e,t){return 3*(e+t)/4-t}(s,n)),o=0,a=0<n?s-4:s;for(r=0;r<a;r+=4)t=c[e.charCodeAt(r)]<<18|c[e.charCodeAt(r+1)]<<12|c[e.charCodeAt(r+2)]<<6|c[e.charCodeAt(r+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=255&t;return 2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,i[o++]=255&t),1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,i[o++]=t>>8&255,i[o++]=255&t),i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],i=0,o=r-n;i<o;i+=16383)s.push(function(e,t,r){for(var n,s=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),s.push(function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n));return s.join("")}(e,i,o<i+16383?o:i+16383));return 1==n?(t=e[r-1],s.push(a[t>>2]+a[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],s.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),s.join("")};for(var a=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+/",s=0;s<64;++s)a[s]=n[s],c[n.charCodeAt(s)]=s;function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return t=(e=-1===(e=e.indexOf("="))?t:e)===t?0:4-e%4,[e,t]}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],86:[function(e,t,r){var s;s=function(){function o(t){function e(e){return(e=t.match(e))&&1<e.length&&e[1]||""}function r(e){return(e=t.match(e))&&1<e.length&&e[2]||""}var n,s=e(/(ipod|iphone|ipad)/i).toLowerCase(),i=!/like android/i.test(t)&&/android/i.test(t),o=/nexus\s*[0-6]\s*/i.test(t),a=!o&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),l=/silk/i.test(t),u=/sailfish/i.test(t),p=/tizen/i.test(t),f=/(web|hpw)(o|0)s/i.test(t),d=/windows phone/i.test(t),h=(/SamsungBrowser/i.test(t),!d&&/windows/i.test(t)),m=!s&&!l&&/macintosh/i.test(t),y=!i&&!u&&!p&&!f&&/linux/i.test(t),b=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),g=e(/version\/(\d+(\.\d+)?)/i),v=/tablet/i.test(t)&&!/tablet pc/i.test(t),j=!v&&/[^-]mobi/i.test(t),w=/xbox/i.test(t);return/opera/i.test(t)?n={name:"Opera",opera:!0,version:g||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?n={name:"Opera",opera:!0,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||g}:/SamsungBrowser/i.test(t)?n={name:"Samsung Internet for Android",samsungBrowser:!0,version:g||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?n={name:"NAVER Whale browser",whale:!0,version:e(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?n={name:"MZ Browser",mzbrowser:!0,version:e(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?n={name:"Opera Coast",coast:!0,version:g||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?n={name:"Focus",focus:!0,version:e(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?n={name:"Yandex Browser",yandexbrowser:!0,version:g||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?n={name:"UC Browser",ucbrowser:!0,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?n={name:"Maxthon",maxthon:!0,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?n={name:"Epiphany",epiphany:!0,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?n={name:"Puffin",puffin:!0,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?n={name:"Sleipnir",sleipnir:!0,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?n={name:"K-Meleon",kMeleon:!0,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:d?(n={name:"Windows Phone",osname:"Windows Phone",windowsphone:!0},b?(n.msedge=!0,n.version=b):(n.msie=!0,n.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?n={name:"Internet Explorer",msie:!0,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?n={name:"Chrome",osname:"Chrome OS",chromeos:!0,chromeBook:!0,chrome:!0,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?n={name:"Microsoft Edge",msedge:!0,version:b}:/vivaldi/i.test(t)?n={name:"Vivaldi",vivaldi:!0,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||g}:u?n={name:"Sailfish",osname:"Sailfish OS",sailfish:!0,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?n={name:"SeaMonkey",seamonkey:!0,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(n={name:"Firefox",firefox:!0,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(n.firefoxos=!0,n.osname="Firefox OS")):l?n={name:"Amazon Silk",silk:!0,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?n={name:"PhantomJS",phantom:!0,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?n={name:"SlimerJS",slimer:!0,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?n={name:"BlackBerry",osname:"BlackBerry OS",blackberry:!0,version:g||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(n={name:"WebOS",osname:"WebOS",webos:!0,version:g||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(n.touchpad=!0)):/bada/i.test(t)?n={name:"Bada",osname:"Bada",bada:!0,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:p?n={name:"Tizen",osname:"Tizen",tizen:!0,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||g}:/qupzilla/i.test(t)?n={name:"QupZilla",qupzilla:!0,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||g}:/chromium/i.test(t)?n={name:"Chromium",chromium:!0,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||g}:/chrome|crios|crmo/i.test(t)?n={name:"Chrome",chrome:!0,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?n={name:"Android",version:g}:/safari|applewebkit/i.test(t)?(n={name:"Safari",safari:!0},g&&(n.version=g)):s?(n={name:"iphone"==s?"iPhone":"ipad"==s?"iPad":"iPod"},g&&(n.version=g)):n=/googlebot/i.test(t)?{name:"Googlebot",googlebot:!0,version:e(/googlebot\/(\d+(\.\d+))/i)||g}:{name:e(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!n.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(n.name=n.name||"Blink",n.blink=!0):(n.name=n.name||"Webkit",n.webkit=!0),!n.version&&g&&(n.version=g)):!n.opera&&/gecko\//i.test(t)&&(n.name=n.name||"Gecko",n.gecko=!0,n.version=n.version||e(/gecko\/(\d+(\.\d+)?)/i)),n.windowsphone||!i&&!n.silk?!n.windowsphone&&s?(n[s]=!0,n.ios=!0,n.osname="iOS"):m?(n.mac=!0,n.osname="macOS"):w?(n.xbox=!0,n.osname="Xbox"):h?(n.windows=!0,n.osname="Windows"):y&&(n.linux=!0,n.osname="Linux"):(n.android=!0,n.osname="Android"),d="",n.windows?d=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):n.windowsphone?d=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):n.mac?d=(d=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):s?d=(d=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):i?d=e(/android[ \/-](\d+(\.\d+)*)/i):n.webos?d=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):n.blackberry?d=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):n.bada?d=e(/bada\/(\d+(\.\d+)*)/i):n.tizen&&(d=e(/tizen[\/\s](\d+(\.\d+)*)/i)),d&&(n.osversion=d),c=!n.windows&&d.split(".")[0],v||a||"ipad"==s||i&&(3==c||4<=c&&!j)||n.silk?n.tablet=!0:(j||"iphone"==s||"ipod"==s||i||o||n.blackberry||n.webos||n.bada)&&(n.mobile=!0),n.msedge||n.msie&&10<=n.version||n.yandexbrowser&&15<=n.version||n.vivaldi&&1<=n.version||n.chrome&&20<=n.version||n.samsungBrowser&&4<=n.version||n.whale&&1===x([n.version,"1.0"])||n.mzbrowser&&1===x([n.version,"6.0"])||n.focus&&1===x([n.version,"1.0"])||n.firefox&&20<=n.version||n.safari&&6<=n.version||n.opera&&10<=n.version||n.ios&&n.osversion&&6<=n.osversion.split(".")[0]||n.blackberry&&10.1<=n.version||n.chromium&&20<=n.version?n.a=!0:n.msie&&n.version<10||n.chrome&&n.version<20||n.firefox&&n.version<20||n.safari&&n.version<6||n.opera&&n.version<10||n.ios&&n.osversion&&n.osversion.split(".")[0]<6||n.chromium&&n.version<20?n.c=!0:n.x=!0,n}var a=o("undefined"!=typeof navigator&&navigator.userAgent||"");function n(e){return e.split(".").length}function s(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function x(e){for(var r=Math.max(n(e[0]),n(e[1])),t=s(e,function(e){var t=r-n(e);return s((e+=new Array(1+t).join(".0")).split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});0<=--r;){if(t[0][r]>t[1][r])return 1;if(t[0][r]!==t[1][r])return-1;if(0===r)return 0}}function i(e,t,r){var n,s=a,i=("string"==typeof t&&(r=t,t=void 0),void 0===t&&(t=!1),""+(s=r?o(r):s).version);for(n in e)if(e.hasOwnProperty(n)&&s[n]){if("string"!=typeof e[n])throw new Error("Browser version in the minVersion map should be a string: "+n+": "+String(e));return x([i,e[n]])<0}return t}return a.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in a)return!0}return!1},a.isUnsupportedBrowser=i,a.compareVersions=x,a.check=function(e,t,r){return!i(e,t,r)},a._detect=o,a.detect=o,a},void 0!==t&&t.exports?t.exports=s():this.bowser=s()},{}],87:[function(e,t,r){},{}],88:[function(e,t,r){var n=e("buffer").Buffer,s=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}(e=r.StringDecoder=function(e){if(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),e&&!s(e))throw new Error("Unknown encoding: "+e);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0}).prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!(55296<=(n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCo
5deAt(t.length-1))&&n<=56319)){if((this.charReceived=this.charLength=0)===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,s,i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1;return 55296<=(n=t.charCodeAt(i))&&n<=56319?(s=this.surrogateSize,this.charLength+=s,this.charReceived+=s,this.charBuffer.copy(this.charBuffer,s,0,s),e.copy(this.charBuffer,0,0,s),t.substring(0,i)):t},e.prototype.detectIncompleteChar=function(e){for(var t=3<=e.length?3:e.length;0<t;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},e.prototype.end=function(e){var t,r,n="";return e&&e.length&&(n=this.write(e)),this.charReceived&&(e=this.charReceived,t=this.charBuffer,r=this.encoding,n+=t.slice(0,e).toString(r)),n}},{buffer:89}],89:[function(C,e,N){(function(e,t){(function(){"use strict";var k=C("base64-js"),i=C("ieee754"),a=C("isarray");function r(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=p.prototype:(e=null===e?new p(t):e).length=t,e}function p(e,t,r){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(e,t,r);if("number"!=typeof e)return n(this,e,t,r);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return o(this,e)}function n(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer){var s=e,i=t,o=r;if(i.byteLength,o<0||i.byteLength<o)throw new RangeError("'offset' is out of bounds");if(i.byteLength<o+(n||0))throw new RangeError("'length' is out of bounds");return i=void 0===o&&void 0===n?new Uint8Array(i):void 0===n?new Uint8Array(i,o):new Uint8Array(i,o,n),p.TYPED_ARRAY_SUPPORT?(s=i).__proto__=p.prototype:s=l(s,i),s}if("string"!=typeof t){if(o=e,n=t,p.isBuffer(n))return 0===(o=c(o,i=0|u(n.length))).length||n.copy(o,0,0,i),o;if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function(e){return e!=e}(n.length)?c(o,0):l(o,n);if("Buffer"===n.type&&a(n.data))return l(o,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}if(s=e,n=t,e=r,!p.isEncoding(e="string"==typeof e&&""!==e?e:"utf8"))throw new TypeError('"encoding" must be a valid string encoding');return(n=(s=c(s,t=0|f(n,e))).write(n,e))!==t?s.slice(0,n):s}function s(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 o(e,t){if(s(t),e=c(e,t<0?0:0|u(t)),!p.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|u(t.length);e=c(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function u(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function f(e,t){if(p.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var r=(e="string"!=typeof e?""+e:e).length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(n)return A(e).length;t=(""+t).toLowerCase(),n=!0}}function t(e,t,r){var n,s=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var o=t,a=r,c=this.length;(!a||a<0||c<a)&&(a=c);for(var l="",u=o=!o||o<0?0:o;u<a;++u)l+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(this[u]);return l;case"utf8":case"utf-8":return E(this,t,r);case"ascii":c=t;var f=r,d="";f=Math.min(this.length,f);for(var h=c;h<f;
vendor: 14,861 bytes, line 5
5++h)d+=String.fromCharCode(127&this[h]);return d;case"latin1":case"binary":o=t;var y=r,b="";y=Math.min(this.length,y);for(var g=o;g<y;++g)b+=String.fromCharCode(this[g]);return b;case"base64":return v=this,n=r,0===(j=t)&&n===v.length?k.fromByteArray(v):k.fromByteArray(v.slice(j,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var v=t,j=r,w=this.slice(v,j),x="",T=0;T<w.length;T+=2)x+=String.fromCharCode(w[T]+256*w[T+1]);return x;default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function h(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,(r=(r=isNaN(r)?s?0:e.length-1:r)<0?e.length+r:r)>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=p.from(t,n)),p.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,s);if("number"==typeof t)return t&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(s?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):m(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,s){var i=1,o=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o/=i=2,a/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s)for(var l=-1,u=r;u<o;u++)if(c(e,u)===c(t,-1===l?0:u-l)){if(u-(l=-1===l?u:l)+1===a)return l*i}else-1!==l&&(u-=u-l),l=-1;else for(u=r=o<r+a?o-a:r;0<=u;u--){for(var p=!0,f=0;f<a;f++)if(c(e,u+f)!==c(t,f)){p=!1;break}if(p)return u}return-1}function y(e,t,r,n){return I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function b(e,t,r,n){return I(function(e,t){for(var r,n,s=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,n%=256,s.push(n),s.push(r);return s}(t,e.length-r),e,r,n)}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var i,o,a,c,l=e[s],u=null,p=239<l?4:223<l?3:191<l?2:1;if(s+p<=r)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[s+1]))&&127<(c=(31&l)<<6|63&i)&&(u=c);break;case 3:i=e[s+1],o=e[s+2],128==(192&i)&&128==(192&o)&&2047<(c=(15&l)<<12|(63&i)<<6|63&o)&&(c<55296||57343<c)&&(u=c);break;case 4:i=e[s+1],o=e[s+2],a=e[s+3],128==(192&i)&&128==(192&o)&&128==(192&a)&&65535<(c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&a)&&c<1114112&&(u=c)}null===u?(u=65533,p=1):65535<u&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),s+=p}var f=n,d=f.length;if(d<=g)return String.fromCharCode.apply(String,f);for(var h="",m=0;m<d;)h+=String.fromCharCode.apply(String,f.slice(m,m+=g));return h}N.Buffer=p,N.SlowBuffer=function(e){return+e!=e&&(e=0),p.alloc(+e)},N.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.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(e){return!1}}(),N.kMaxLength=r(),p.poolSize=8192,p._augment=function(e){return e.__proto__=p.prototype,e},p.from=function(e,t,r){return n(null,e,t,r)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(e,t,r){return n=null,s(e),e<=0||void 0===t?c(n,e):"string"==typeof r?c(n,e).fill(t,r):c(n,e).fill(t);var n},p.allocUnsafe=function(e){return o(null,e)},p.allocUnsafeSlow=function(e){return o(null,e)},p.isBuffer=function(e){return!(null==e||!e._isBuffer)},p.compare=function(e,t){if(!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);s<i;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},p.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}},p.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);if(void 0===t)for(s=t=0;s<e.length;++s)t+=e[s].length;for(var r=p.allocUnsafe(t),n=0,s=0;s<e.length;++s){var i=e[s];if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,n),n+=i.length}return r},p.byteLength=f,p.prototype._isBuffer=!0,p.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)d(this,t,t+1);return this},p.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)d(this,t,t+3),d(this,t+1,t+2);return this},p.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)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},p.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?E(this,0,e):t.apply(this,arguments)},p.prototype.equals=function(e){if(p.isBuffer(e))return this===e||0===p.compare(this,e);throw new TypeError("Argument must be a Buffer")},p.prototype.inspect=function(){var e="",t=N.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},p.prototype.compare=function(e,t,r,n,s){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(s<=n&&r<=t)return 0;if(s<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(s>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),a=Math.min(i,o),c=this.slice(n,s),l=e.slice(t,r),u=0;u<a;++u)if(c[u]!==l[u]){i=c[u],o=l[u];break}return i<o?-1:o<i?1:0},p.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},p.prototype.indexOf=function(e,t,r){return h(this,e,t,r,!0)},p.prototype.lastIndexOf=function(e,t,r){return h(this,e,t,r,!1)},p.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=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===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((void 0===r||s<r)&&(r=s),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,o,a,c=!1;;)switch(n){case"hex":var u=e,p=t,f=r,d=(p=Number(p)||0,this.length-p);if((!f||d<(f=Number(f)))&&(f=d),(d=u.length)%2!=0)throw new TypeError("Invalid hex string");d/2<f&&(f=d/2);for(var h=0;h<f;++h){var m=parseInt(u.substr(2*h,2),16);if(isNaN(m))return h;this[p+h]=m}return h;case"utf8":case"utf-8":return d=t,a=r,I(A(e,(o=this).length-d),o,d,a);case"ascii":case"latin1":case"binary":return y(this,e,t,r);case"base64":return o=this,a=t,i=r,I(D(e),o,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var g=4096;function v(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,s,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(s<t||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function w(e,t,r,n){t<0&&(t=65535+t+1);for(var s=0,i=Math.min(e.length-r,2);s<i;++s)e[r+s]=(t&255<<8*(n?s:1-s))>>>8*(n?s:1-s)}function x(e,t,r,n){t<0&&(t=4294967295+t+1);for(var s=0,i=Math.min(e.length-r,4);s<i;++s)e[r+s]=t>>>8*(n?s:3-s)&255}function T(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,n,s){return s||T(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,s){return s||T(e,0,r,8),i.write(e,t,r,n,52,8),r+8}p.prototype.slice=function(e,t){var r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),p.TYPED_ARRAY_SUPPORT)(s=this.subarray(e,t)).__proto__=p.prototype;else for(var n=t-e,s=new p(n,void 0),i=0;i<n;++i)s[i]=this[i+e];return s},p.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||v(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return n},p.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||v(e,t,this.length);for(var n=this[e+--t],s=1;0<t&&(s*=256);)n+=this[e+--t]*s;return n},p.prototype.readUInt8=function(e,t){return t||v(e,1,this.length),this[e]},p.prototype.readUInt16LE=function(e,t){return t||v(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUInt16BE=function(e,t){return t||v(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUInt32LE=function(e,t){return t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUInt32BE=function(e,t){return t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||v(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return(s*=128)<=n&&(n-=Math.pow(2,8*t)),n},p.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||v(e,t,this.length);for(var n=t,s=1,i=this[e+--n];0<n&&(s*=256);)i+=this[e+--n]*s;return(s*=128)<=i&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return t||v(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){return t||v(e,2,this.length),32768&(t=this[e]|this[e+1]<<8)?4294901760|t:t},p.prototype.readInt16BE=function(e,t){return t||v(e,2,this.length),32768&(t=this[e+1]|this[e]<<8)?4294901760|t:t},p.prototype.readInt32LE=function(e,t){return t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readFloatLE=function(e,t){return t||v(e,4,this.length),i.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return t||v(e,4,this.length),i.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return t||v(e,8,this.length),i.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return t||v(e,8,this.length),i.read(this,e,!1,52,8)},p.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[t]=255&e;++i<r&&(s*=256);)this[t+i]=e/s&255;return t+r},p.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[t+s]=255&e;0<=--s&&(i*=256);)this[t+s]=e/i&255;return t+r},p.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),p.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},p.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},p.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},p.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},p.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},p.prototype.writeIntLE=function(e,t,r,n){e=+e,t|=0,n||j(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var s=0,i=1,o=0;for(this[t]=255&e;++s<r&&(i*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/i|0)-o&255;return t+r},p.prototype.writeIntBE=function(e,t,r,n){e=+e,t|=0,n||j(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var s=r-1,i=1,o=0;for(this[t+s]=255&e;0<=--s&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i|0)-o&255;return t+r},p.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),p.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},p.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},p.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},p.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},p.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},p.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},p.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},p.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},p.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},p.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),(n=0<n&&n<r?r:n)===r)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var s,i=(n=e.length-t<n-r?e.length-t+r:n)-r;if(this===e&&r<t&&t<n)for(s=i-1;0<=s;--s)e[s+t]=this[s+r];else if(i<1e3||!p.TYPED_ARRAY_SUPPORT)for(s=0;s<i;++s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},p.prototype.fill=function(e,t,r,n){if("string"==typeof e){var s;if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1!==e.length||(s=e.charCodeAt(0))<256&&(e=s),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}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;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(a=t;a<r;++a)this[a]=e;
5else for(var i=p.isBuffer(e)?e:A(new p(e,n).toString()),o=i.length,a=0;a<r-t;++a)this[a+t]=i[a%o];return this};var O=/[^+\/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var r,n=e.length,s=null,i=[],o=0;o<n;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!s){if(56319<r){-1<(t-=3)&&i.push(239,191,189);continue}if(o+1===n){-1<(t-=3)&&i.push(239,191,189);continue}s=r;continue}if(r<56320){-1<(t-=3)&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&-1<(t-=3)&&i.push(239,191,189);if(s=null,r<128){if(--t<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 D(e){return k.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},C("buffer").Buffer)},{"base64-js":85,buffer:89,ieee754:346,isarray:355}],90:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],91:[function(e,t,r){"use strict";var n=Array.prototype.slice;function s(e,t){if(!(this instanceof s))return new s(e,t);this.src=e,this._withAccess=t}(t.exports=s).prototype.withAccess=function(e){return this._withAccess=!1!==e,this},s.prototype.pick=function(e){return(e=Array.isArray(e)?e:n.call(arguments)).length&&(this.keys=e),this},s.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r<t.length;r++)void 0===e[i=t[r]]&&(e[i]=this.src[i]);return e}for(r=0;r<t.length;r++){var n,s,i=t[r];void 0===(n=e)[s=i]&&void 0===n.__lookupGetter__(s)&&void 0===n.__lookupSetter__(s)&&(n=this.src.__lookupGetter__(i),s=this.src.__lookupSetter__(i),n&&e.__defineGetter__(i,n),s&&e.__defineSetter__(i,s),n||s||(e[i]=this.src[i]))}return e},s.prototype.override=s.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),r=0;r<t.length;r++){var n=t[r],s=(delete e[n],this.src.__lookupGetter__(n)),i=this.src.__lookupSetter__(n);s&&e.__defineGetter__(n,s),i&&e.__defineSetter__(n,i),s||i||(e[n]=this.src[n])}},s.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],92:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=n.TypeError;t.exports=function(e){if(s(e))return e;throw o(i(e)+" is not a function")}},{"../internals/global":160,"../internals/is-callable":173,"../internals/try-to-string":254}],93:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=n.TypeError;t.exports=function(e){if(s(e))return e;throw o(i(e)+" is not a constructor")}}
5,{"../internals/global":160,"../internals/is-constructor":174,"../internals/try-to-string":254}],94:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-callable"),i=n.String,o=n.TypeError;t.exports=function(e){if("object"==typeof e||s(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},{"../internals/global":160,"../internals/is-callable":173}],95:[function(e,t,r){var n=e("../internals/well-known-symbol"),s=e("../internals/object-create"),i=(e=e("../internals/object-define-property"),n("unscopables")),o=Array.prototype;null==o[i]&&e.f(o,i,{configurable:!0,value:s(null)}),t.exports=function(e){o[i][e]=!0}},{"../internals/object-create":193,"../internals/object-define-property":195,"../internals/well-known-symbol":265}],96:[function(e,t,r){"use strict";var n=e("../internals/string-multibyte").charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},{"../internals/string-multibyte":236}],97:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/object-is-prototype-of"),i=n.TypeError;t.exports=function(e,t){if(s(t,e))return e;throw i("Incorrect invocation")}},{"../internals/global":160,"../internals/object-is-prototype-of":201}],98:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-object"),i=n.String,o=n.TypeError;t.exports=function(e){if(s(e))return e;throw o(i(e)+" is not an object")}},{"../internals/global":160,"../internals/is-object":177}],99:[function(e,t,r){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],100:[function(e,t,r){"use strict";function n(e){return!!p(e)&&(e=d(e),f(I,e)||f(C,e))}var s,i,o,a=e("../internals/array-buffer-native"),c=e("../internals/descriptors"),l=e("../internals/global"),u=e("../internals/is-callable"),p=e("../internals/is-object"),f=e("../internals/has-own-property"),d=e("../internals/classof"),h=e("../internals/try-to-string"),m=e("../internals/create-non-enumerable-property"),y=e("../internals/redefine"),b=e("../internals/object-define-property").f,g=e("../internals/object-is-prototype-of"),v=e("../internals/object-get-prototype-of"),j=e("../internals/object-set-prototype-of"),w=e("../internals/well-known-symbol"),T=(e=e("../internals/uid"),(x=l.Int8Array)&&x.prototype),k=(k=l.Uint8ClampedArray)&&k.prototype,E=x&&v(x),_=T&&v(T),x=Object.prototype,S=l.TypeError,O=(w=w("toStringTag"),e("TYPED_ARRAY_TAG")),A=e("TYPED_ARRAY_CONSTRUCTOR"),D=a&&!!j&&"Opera"!==d(l.opera),I=(e=!1,{Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}),C={BigInt64Array:8,BigUint64Array:8};for(s in I)(o=(i=l[s])&&i.prototype)?m(o,A,i):D=!1;for(s in C)(o=(i=l[s])&&i.prototype)&&m(o,A,i);if((!D||!u(E)||E===Function.prototype)&&(E=function(){throw S("Incorrect invocation")},D))for(s in I)l[s]&&j(l[s],E);if((!D||!_||_===x)&&(_=E.prototype,D))for(s in I)l[s]&&j(l[s].prototype,_);if(D&&v(k)!==_&&j(k,_),c&&!f(_,w))for(s in e=!0,b(_,w,{get:function(){return p(this)?this[O]:void 0}}),I)l[s]&&m(l[s],O,s);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_CONSTRUCTOR:A,TYPED_ARRAY_TAG:e&&O,aTypedArray:function(e){if(n(e))return e;throw S("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!u(e)||j&&!g(E,e))throw S(h(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(t,r,e,n){if(c){if(e)for(var s in I)if((s=l[s])&&f(s.prototype,t))try{delete s.prototype[t]}catch(e){try{s.prototype[t]=r}catch(e){}}_[t]&&!e||y(_,t,!e&&D&&T[t]||r,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,s;if(c){if(j){if(r)for(n in I)if((s=l[n])&&f(s,e))try{delete s[e]}catch(e){}if(E[e]&&!r)return;try{return y(E,e,!r&&D&&E[e]||t)}catch(e){}}for(n in I)!(s=l[n])||s[e]&&!r||y(s,e,t)}},isView:function(e){return!!p(e)&&("DataView"===(e=d(e))||f(I,e)||f(C,e))},isTypedArray:n,TypedArray:E,TypedArrayPrototype:_}},{"../internals/array-buffer-native":99,"../internals/classof":121,"../internals/create-non-enumerable-property":126,"../internals/descriptors":131,"../internals/global":160,"../internals/has-own-property":161,"../internals/is-callable":173,"../internals/is-object":177,"../internals/object-define-property":195,"../internals/object-get-prototype-of":200,"../internals/object-is-prototype-of":201,"../internals/object-set-prototype-of":205,"../internals/redefine":219,"../internals/try-to-string":254,"../internals/uid":260,"../internals/well-known-symbol":265}],101:[function(e,M,L){"use strict";function r(e){return[255&e]}function n(e){return[255&e,e>>8&255]}function s(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function t(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function B(e){return C(e,23,4)}function q(e){return C(e,52,8)}function i(e,t){z(e[T],t,{get:function(){return w(this)[t]}})}function o(e,t,r,n){if((r=y(r))+t>(e=w(e)).byteLength)throw I(k);var s=w(e.buffer).bytes;r+=e.byteOffset,e=H(s,r,r+t);return n?e:J(e)}function a(e,t,r,n,s,i){if((r=y(r))+t>(e=w(e)).byteLength)throw I(k);for(var o=w(e.buffer).bytes,a=r+e.byteOffset,c=n(+s),l=0;l<t;l++)o[a+l]=c[i?l:t-l-1]}var c=e("../internals/global"),l=e("../internals/function-uncurr
5y-this"),u=e("../internals/descriptors"),F=e("../internals/array-buffer-native"),p=e("../internals/function-name"),f=e("../internals/create-non-enumerable-property"),d=e("../internals/redefine-all"),h=e("../internals/fails"),m=e("../internals/an-instance"),U=e("../internals/to-integer-or-infinity"),G=e("../internals/to-length"),y=e("../internals/to-index"),b=e("../internals/ieee754"),X=e("../internals/object-get-prototype-of"),g=e("../internals/object-set-prototype-of"),V=e("../internals/object-get-own-property-names").f,z=e("../internals/object-define-property").f,W=e("../internals/array-fill"),H=e("../internals/array-slice-simple"),v=e("../internals/set-to-string-tag"),K=(e=e("../internals/internal-state"),p.PROPER),j=p.CONFIGURABLE,w=e.get,x=e.set,T=(e="DataView","prototype"),k="Wrong index",E=c[p="ArrayBuffer"],_=E,S=_&&_[T],O=c[e],A=O&&O[T],D=Object.prototype,Y=c.Array,I=c.RangeError,$=l(W),J=l([].reverse),C=b.pack,N=b.unpack;if(F){var R=K&&E.name!==p;if(h(function(){E(1)})&&h(function(){new E(-1)})&&!h(function(){return new E,new E(1.5),new E(NaN),R&&!j}))R&&j&&f(E,"name",p);else{(_=function(e){return m(this,S),new E(y(e))})[T]=S;for(var P,Z=V(E),Q=0;Z.length>Q;)(P=Z[Q++])in _||f(_,P,E[P]);S.constructor=_}g&&X(A)!==D&&g(A,D);c=new O(new _(2));var ee=l(A.setInt8);c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||d(A,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else S=(_=function(e){m(this,S),e=y(e),x(this,{bytes:$(Y(e),0),byteLength:e}),u||(this.byteLength=e)})[T],A=(O=function(e,t,r){m(this,A),m(e,S);var n=w(e).byteLength;if((t=U(t))<0||n<t)throw I("Wrong offset");if(n<t+(r=void 0===r?n-t:G(r)))throw I("Wrong length");x(this,{buffer:e,byteLength:r,byteOffset:t}),u||(this.buffer=e,this.byteLength=r,this.byteOffset=t)})[T],u&&(i(_,"byteLength"),i(O,"buffer"),i(O,"byteLength"),i(O,"byteOffset")),d(A,{getInt8:function(e){return o(this,1,e)[0]<<24>>24},getUint8:function(e){return o(this,1,e)[0]},getInt16:function(e){return((e=o(this,2,e,1<arguments.length?arguments[1]:void 0))[1]<<8|e[0])<<16>>16},getUint16:function(e){return(e=o(this,2,e,1<arguments.length?arguments[1]:void 0))[1]<<8|e[0]},getInt32:function(e){return t(o(this,4,e,1<arguments.length?arguments[1]:void 0))},getUint32:function(e){return t(o(this,4,e,1<arguments.length?arguments[1]:void 0))>>>0},getFloat32:function(e){return N(o(this,4,e,1<arguments.length?arguments[1]:void 0),23)},getFloat64:function(e){return N(o(this,8,e,1<arguments.length?arguments[1]:void 0),52)},setInt8:function(e,t){a(this,1,e,r,t)},setUint8:function(e,t){a(this,1,e,r,t)},setInt16:function(e,t){a(this,2,e,n,t,2<arguments.length?arguments[2]:void 0)},setUint16:function(e,t){a(this,2,e,n,t,2<arguments.length?arguments[2]:void 0)},setInt32:function(e,t){a(this,4,e,s,t,2<arguments.length?arguments[2]:void 0)},setUint32:function(e,t){a(this,4,e,s,t,2<arguments.length?arguments[2]:void 0)},setFloat32:function(e,t){a(this,4,e,B,t,2<arguments.length?arguments[2]:void 0)},setFloat64:function(e,t){a(this,8,e,q,t,2<arguments.length?arguments[2]:void 0)}});v(_,p),v(O,e),M.exports={ArrayBuffer:_,DataView:O}},{"../internals/an-instance":97,"../internals/array-buffer-native":99,"../internals/array-fill":103,"../internals/array-slice-simple":113,"../internals/create-non-enumerable-property":126,"../internals/descriptors":131,"../internals/fails":147,"../internals/function-name":153,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/ieee754":166,"../internals/internal-state":170,"../internals/object-define-property":195,"../internals/object-get-own-property-names":198,"../internals/object-get-prototype-of":200,"../internals/object-set-prototype-of":205,"../internals/redefine-all":218,"../internals/set-to-string-tag":231,"../internals/to-index":243,"../internals/to-integer-or-infinity":245,"../internals/to-length":246}],102:[function(e,t,r){"use strict";var c=e("../internals/to-object"),l=e("../internals/to-absolute-index"),u=e("../internals/length-of-array-like"),p=Math.min;t.exports=[].copyWithin||function(e,t){var r=c(this),n=u(r),s=l(e,n),i=l(t,n),o=p((void 0===(e=2<arguments.length?arguments[2]:void 0)?n:l(e,n))-i,n-s),a=1;for(i<s&&s<i+o&&(a=-1,i+=o-1,s+=o-1);0<o--;)i in r?r[s]=r[i]:delete r[s],s+=a,i+=a;return r}},{"../internals/length-of-array-like":185,"../internals/to-absolute-index":242,"../internals/to-object":247}],103:[function(e,t,r){"use strict";var o=e("../internals/to-object"),a=e("../internals/to-absolute-index"),c=e("../internals/length-of-array-like");t.exports=function(e){for(var n,t=o(this),r=c(t),s=a(1<(n=arguments.length)?arguments[1]:void 0,r),i=void 0===(n=2<n?arguments[2]:void 0)?r:a(n,r);s<i;)t[s++]=e;return t}},{"../internals/length-of-array-like":185,"../internals/to-absolute-index":242,"../internals/to-object":247}],104:[function(e,t,r){"use strict";var n=e("../internals/array-iteration").forEach;
5e=e("../internals/array-method-is-strict")("forEach");t.exports=e?[].forEach:function(e){return n(this,e,1<arguments.length?arguments[1]:void 0)}},{"../internals/array-iteration":108,"../internals/array-method-is-strict":111}],105:[function(e,t,r){var i=e("../internals/length-of-array-like");t.exports=function(e,t){for(var r=0,n=i(t),s=new e(n);r<n;)s[r]=t[r++];return s}},{"../internals/length-of-array-like":185}],106:[function(e,t,r){"use strict";var n=e("../internals/global"),f=e("../internals/function-bind-context"),d=e("../internals/function-call"),h=e("../internals/to-object"),m=e("../internals/call-with-safe-iteration-closing"),y=e("../internals/is-array-iterator-method"),b=e("../internals/is-constructor"),g=e("../internals/length-of-array-like"),v=e("../internals/create-property"),j=e("../internals/get-iterator"),w=e("../internals/get-iterator-method"),x=n.Array;t.exports=function(e){var t,r,n,s,i,o,c,a=h(e),l=(e=b(this),1<(c=arguments.length)?arguments[1]:void 0),u=void 0!==l,p=0;if(!(c=(u&&(l=f(l,2<c?arguments[2]:void 0)),w(a)))||this==x&&y(c))for(t=g(a),r=e?new this(t):x(t);p<t;p++)o=u?l(a[p],p):a[p],v(r,p,o);else for(i=(s=j(a,c)).next,r=e?new this:[];!(n=d(i,s)).done;p++)o=u?m(s,l,[n.value,p],!0):n.value,v(r,p,o);return r.length=p,r}},{"../internals/call-with-safe-iteration-closing":118,"../internals/create-property":128,"../internals/function-bind-context":150,"../internals/function-call":152,"../internals/get-iterator":157,"../internals/get-iterator-method":156,"../internals/global":160,"../internals/is-array-iterator-method":171,"../internals/is-constructor":174,"../internals/length-of-array-like":185,"../internals/to-object":247}],107:[function(e,t,r){function n(a){return function(e,t,r){var n,s=c(e),i=u(s),o=l(r,i);if(a&&t!=t){for(;o<i;)if((n=s[o++])!=n)return!0}else for(;o<i;o++)if((a||o in s)&&s[o]===t)return a||o||0;return!a&&-1}}var c=e("../internals/to-indexed-object"),l=e("../internals/to-absolute-index"),u=e("../internals/length-of-array-like");t.exports={includes:n(!0),indexOf:n(!1)}},{"../internals/length-of-array-like":185,"../internals/to-absolute-index":242,"../internals/to-indexed-object":244}],108:[function(e,t,r){function n(f){var d=1==f,h=2==f,m=3==f,y=4==f,b=6==f,g=7==f,v=5==f||b;return function(e,t,r,n){for(var s,i,o=x(e),a=w(o),c=j(t,r),l=T(a),u=0,p=(t=n||k,d?t(e,l):h||g?t(e,0):void 0);u<l;u++)if((v||u in a)&&(i=c(s=a[u],u,o),f))if(d)p[u]=i;else if(i)switch(f){case 3:return!0;case 5:return s;case 6:return u;case 2:E(p,s)}else switch(f){case 4:return!1;case 7:E(p,s)}return b?-1:m||y?y:p}}var j=e("../internals/function-bind-context"),s=e("../internals/function-uncurry-this"),w=e("../internals/indexed-object"),x=e("../internals/to-object"),T=e("../internals/length-of-array-like"),k=e("../internals/array-species-create"),E=s([].push);t.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6),filterReject:n(7)}},{"../internals/array-species-create":117,"../internals/function-bind-context":150,"../internals/function-uncurry-this":154,"../internals/indexed-object":167,"../internals/length-of-array-like":185,"../internals/to-object":247}],109:[function(e,t,r){"use strict";var s=e("../internals/function-apply"),i=e("../internals/to-indexed-object"),o=e("../internals/to-integer-or-infinity"),a=e("../internals/length-of-array-like"),c=(e=e("../internals/array-method-is-strict"),Math.min),l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0;e=e("lastIndexOf");t.exports=u||!e?function(e){if(u)return s(l,this,arguments)||0;var t=i(this),r=a(t),n=r-1;for((n=1<arguments.length?c(n,o(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:l},{"../internals/array-method-is-strict":111,"../internals/function-apply":149,"../internals/length-of-array-like":185,"../internals/to-indexed-object":244,"../internals/to-integer-or-infinity":245}],110:[function(e,t,r){var n=e("../internals/fails"),s=e("../internals/well-known-symbol"),i=e("../internals/engine-v8-version"),o=s("species");t.exports=function(t){return 51<=i||!n(function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}
5},1!==e[t](Boolean).foo})}},{"../internals/engine-v8-version":143,"../internals/fails":147,"../internals/well-known-symbol":265}],111:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}},{"../internals/fails":147}],112:[function(e,t,r){function n(l){return function(e,t,r,n){u(t);var s=p(e),i=f(s),o=d(s),a=l?o-1:0,c=l?-1:1;if(r<2)for(;;){if(a in i){n=i[a],a+=c;break}if(a+=c,l?a<0:o<=a)throw h("Reduce of empty array with no initial value")}for(;l?0<=a:a<o;a+=c)a in i&&(n=t(n,i[a],a,s));return n}}var s=e("../internals/global"),u=e("../internals/a-callable"),p=e("../internals/to-object"),f=e("../internals/indexed-object"),d=e("../internals/length-of-array-like"),h=s.TypeError;t.exports={left:n(!1),right:n(!0)}},{"../internals/a-callable":92,"../internals/global":160,"../internals/indexed-object":167,"../internals/length-of-array-like":185,"../internals/to-object":247}],113:[function(e,t,r){var n=e("../internals/global"),c=e("../internals/to-absolute-index"),l=e("../internals/length-of-array-like"),u=e("../internals/create-property"),p=n.Array,f=Math.max;t.exports=function(e,t,r){for(var n=l(e),s=c(t,n),i=c(void 0===r?n:r,n),o=p(f(i-s,0)),a=0;s<i;s++,a++)u(o,a,e[s]);return o.length=a,o}},{"../internals/create-property":128,"../internals/global":160,"../internals/length-of-array-like":185,"../internals/to-absolute-index":242}],114:[function(e,t,r){e=e("../internals/function-uncurry-this"),t.exports=e([].slice)},{"../internals/function-uncurry-this":154}],115:[function(e,t,r){var v=e("../internals/array-slice-simple"),j=Math.floor;t.exports=function g(e,t){var r=e.length,n=j(r/2);if(r<8){for(var s,i,o=e,a=t,c=o.length,l=1;l<c;){for(s=o[i=l];i&&0<a(o[i-1],s);)o[i]=o[--i];i!==l++&&(o[i]=s)}return o}for(var u=e,p=g(v(e,0,n),t),f=g(v(e,n),t),d=t,h=p.length,m=f.length,y=0,b=0;y<h||b<m;)u[y+b]=y<h&&b<m?d(p[y],f[b])<=0?p[y++]:f[b++]:y<h?p[y++]:f[b++];return u}},{"../internals/array-slice-simple":113}],116:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),a=e("../internals/well-known-symbol")("species"),c=n.Array;t.exports=function(e){var t;return s(e)&&(t=e.constructor,(i(t)&&(t===c||s(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?c:t}},{"../internals/global":160,"../internals/is-array":172,"../internals/is-constructor":174,"../internals/is-object":177,"../internals/well-known-symbol":265}],117:[function(e,t,r){var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":116}],118:[function(e,t,r){var s=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(t,e,r,n){try{return n?e(s(r)[0],r[1]):e(r)}catch(e){i(t,"throw",e)}}},{"../internals/an-object":98,"../internals/iterator-close":182}],119:[function(e,t,r){var s=e("../internals/well-known-symbol")("iterator"),i=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){i=!0}};o[s]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[s]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},{"../internals/well-known-symbol":265}],120:[function(e,t,r){var n=(e=e("../internals/function-uncurry-this"))({}.toString),s=e("".slice);t.exports=function(e){return s(n(e),8,-1)}},{"../internals/function-uncurry-this":154}],121:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("toStringTag"),c=n.Object,l="Arguments"==o(function(){return arguments}());t.exports=s?o:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=c(e),a))?t:l?o(e):"Object"==(t=o(e))&&i(e.callee)?"Arguments":t}},{"../internals/classof-raw":120,"../internals/global":160,"../internals/is-callable":173,"../internals/to-string-tag-support":252,"../internals/well-known-symbol":265}],122:[function(e,t,r){var c=e("../internals/has-own-property"),l=e("../internals/own-keys"),u=e("../internals/object-get-own-property-descriptor"),p=e("../internals/object-define-property");t.exports=function(e,t,r){for(var n=l(t),s=p.f,i=u.f,o=0;o<n.length;o++){var a=n[o];c(e,a)||r&&c(r,a)||s(e,a,i(t,a))}}},{"../internals/has-own-property":161,"../internals/object-define-property":195,"../internals/object-get-own-property-descriptor":196,"../internals/own-keys":209}],123:[function(e,t,r){var n=e("../internals/well-known-symbol")("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(e){}}return!1}},{"../internals/well-known-symbol":265}
5],124:[function(e,t,r){e=e("../internals/fails"),t.exports=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":147}],125:[function(e,t,r){"use strict";function s(){return this}var i=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),c=e("../internals/set-to-string-tag"),l=e("../internals/iterators");t.exports=function(e,t,r,n){return t+=" Iterator",e.prototype=o(i,{next:a(+!n,r)}),c(e,t,!1,!0),l[t]=s,e}},{"../internals/create-property-descriptor":127,"../internals/iterators":184,"../internals/iterators-core":183,"../internals/object-create":193,"../internals/set-to-string-tag":231}],126:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":127,"../internals/descriptors":131,"../internals/object-define-property":195}],127:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],128:[function(e,t,r){"use strict";var n=e("../internals/to-property-key"),s=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,r){(t=n(t))in e?s.f(e,t,i(0,r)):e[t]=r}},{"../internals/create-property-descriptor":127,"../internals/object-define-property":195,"../internals/to-property-key":251}],129:[function(e,t,r){"use strict";function m(){return this}var y=e("../internals/export"),b=e("../internals/function-call"),g=e("../internals/is-pure"),n=e("../internals/function-name"),v=e("../internals/is-callable"),j=e("../internals/create-iterator-constructor"),w=e("../internals/object-get-prototype-of"),x=e("../internals/object-set-prototype-of"),T=e("../internals/set-to-string-tag"),k=e("../internals/create-non-enumerable-property"),E=e("../internals/redefine"),s=e("../internals/well-known-symbol"),_=e("../internals/iterators"),S=(e=e("../internals/iterators-core"),n.PROPER),O=n.CONFIGURABLE,A=e.IteratorPrototype,D=e.BUGGY_SAFARI_ITERATORS,I=s("iterator"),C="values";t.exports=function(e,t,r,n,s,i,o){function a(e){if(e===s&&d)return d;if(!D&&e in p)return p[e];switch(e){case"keys":case C:case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}j(r,t,n);n=t+" Iterator";var c,l,u=!1,p=e.prototype,f=p[I]||p["@@iterator"]||s&&p[s],d=!D&&f||a(s),h="Array"==t&&p.entries||f;if(h&&(h=w(h.call(new e)))!==Object.prototype&&h.next&&(g||w(h)===A||(x?x(h,A):v(h[I])||E(h,I,m)),T(h,n,!0,!0),g&&(_[n]=m)),S&&s==C&&f&&f.name!==C&&(!g&&O?k(p,"name",C):(u=!0,d=function(){return b(f,this)})),s)if(c={values:a(C),keys:i?d:a("keys"),entries:a("entries")},o)for(l in c)!D&&!u&&l in p||E(p,l,c[l]);else y({target:t,proto:!0,forced:D||u},c);return g&&!o||p[I]===d||E(p,I,d,{name:s}),_[t]=d,c}},{"../internals/create-iterator-constructor":125,"../internals/create-non-enumerable-property":126,"../internals/export":146,"../internals/function-call":152,"../internals/function-name":153,"../internals/is-callable":173,"../internals/is-pure":178,"../internals/iterators":184,"../internals/iterators-core":183,"../internals/object-get-prototype-of":200,"../internals/object-set-prototype-of":205,"../internals/redefine":219,"../internals/set-to-string-tag":231,"../internals/well-known-symbol":265}],130:[function(e,t,r){var n=e("../internals/path"),s=e("../internals/has-own-property"),i=e("../internals/well-known-symbol-wrapped"),o=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},{"../internals/has-own-property":161,"../internals/object-define-property":195,"../internals/path":210,"../internals/well-known-symbol-wrapped":264}],131:[function(e,t,r){e=e("../internals/fails"),t.exports=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":147}],132:[function(e,t,r){var n=e("../internals/global"),s=(e=e("../internals/is-object"),n.document),i=e(s)&&e(s.createElement);t.exports=function(e){return i?s.createElement(e):{}}},{"../internals/global":160,"../internals/is-object":177}],133:[function(e,t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],134:[function(e,t,r){e=(e=e("../internals/document-create-element")("span").classList)&&e.constructor&&e.constructor.prototype,t.exports=e===Object.prototype?void 0:e},{"../internals/document-create-element":132}],135:[function(e,t,r){e=e("../internals/engine-user-agent").match(/firefox\/(\d+)/i),t.exports=!!e&&+e[1]},{"../internals/engine-user-agent":142}],136:[function(e,t,r){t.exports="object"==typeof window&&"object"!=typeof Deno},{}],137:[function(e,t,r){e=e("../internals/engine-user-agent"),t.exports=/MSIE|Trident/.test(e)},{"../internals/engine-user-agent":142}],138:[function(e,t,r){var n=e("../internals/engine-user-agent");e=e("../internals/global");t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==e.Pebble},{"../internals/engine-user-agent":142,"../internals/global":160}],139:[function(e,t,r){e=e("../internals/engine-user-agent"),t.exports=/(?:ip
5ad|iphone|ipod).*applewebkit/i.test(e)},{"../internals/engine-user-agent":142}],140:[function(e,t,r){var n=e("../internals/classof-raw");e=e("../internals/global");t.exports="process"==n(e.process)},{"../internals/classof-raw":120,"../internals/global":160}],141:[function(e,t,r){e=e("../internals/engine-user-agent"),t.exports=/web0s(?!.*chrome)/i.test(e)},{"../internals/engine-user-agent":142}],142:[function(e,t,r){e=e("../internals/get-built-in"),t.exports=e("navigator","userAgent")||""},{"../internals/get-built-in":155}],143:[function(e,t,r){var n,s,i=e("../internals/global"),o=(e=e("../internals/engine-user-agent"),i.process);i=i.Deno;!(s=(i=(o=o&&o.versions||i&&i.version)&&o.v8)?0<(n=i.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):s)&&e&&(!(n=e.match(/Edge\/(\d+)/))||74<=n[1])&&(n=e.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},{"../internals/engine-user-agent":142,"../internals/global":160}],144:[function(e,t,r){e=e("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./),t.exports=!!e&&+e[1]},{"../internals/engine-user-agent":142}],145:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],146:[function(e,t,r){var l=e("../internals/global"),u=e("../internals/object-get-own-property-descriptor").f,p=e("../internals/create-non-enumerable-property"),f=e("../internals/redefine"),d=e("../internals/set-global"),h=e("../internals/copy-constructor-properties"),m=e("../internals/is-forced");t.exports=function(e,t){var r,n,s,i=e.target,o=e.global,a=e.stat,c=o?l:a?l[i]||d(i,{}):(l[i]||{}).prototype;if(c)for(r in t){if(n=t[r],s=e.noTargetGet?(s=u(c,r))&&s.value:c[r],!m(o?r:i+(a?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;h(n,s)}(e.sham||s&&s.sham)&&p(n,"sham",!0),f(c,r,n,e)}}},{"../internals/copy-constructor-properties":122,"../internals/create-non-enumerable-property":126,"../internals/global":160,"../internals/is-forced":175,"../internals/object-get-own-property-descriptor":196,"../internals/redefine":219,"../internals/set-global":229}],147:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],148:[function(e,t,r){"use strict";e("../modules/es.regexp.exec");var c=e("../internals/function-uncurry-this"),l=e("../internals/redefine"),u=e("../internals/regexp-exec"),p=e("../internals/fails"),f=e("../internals/well-known-symbol"),d=e("../internals/create-non-enumerable-property"),h=f("species"),m=RegExp.prototype;t.exports=function(r,e,t,n){var o,s=f(r),a=!p(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),i=a&&!p(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[h]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});a&&i&&!t||(o=c(/./[s]),i=e(s,""[r],function(e,t,r,n,s){e=c(e);var i=t.exec;return i===u||i===m.exec?a&&!s?{done:!0,value:o(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),l(String.prototype,r,i[0]),l(m,s,i[1])),n&&d(m[s],"sham",!0)}},{"../internals/create-non-enumerable-property":126,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/redefine":219,"../internals/regexp-exec":221,"../internals/well-known-symbol":265,"../modules/es.regexp.exec":299}],149:[function(e,t,r){e=e("../internals/function-bind-native");var n=Function.prototype,s=n.apply,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?i.bind(s):function(){return i.apply(s,arguments)})},{"../internals/function-bind-native":151}],150:[function(e,t,r){var n=e("../internals/function-uncurry-this"),s=e("../internals/a-callable"),i=e("../internals/function-bind-native"),o=n(n.bind);t.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":92,"../internals/function-bind-native":151,"../internals/function-uncurry-this":154}],151:[function(e,t,r){e=e("../internals/fails"),t.exports=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":147}],152:[function(e,t,r){e=e("../internals/function-bind-native");var n=Function.prototype.call;t.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},{"../internals/function-bind-native":151}],153:[function(e,t,r){var n=e("../internals/descriptors"),s=(e=e("../internals/has-own-property"),Function.prototype),i=n&&Object.getOwnPropertyDescriptor,o=(e=e(s,"name"))&&"something"===function(){}.name;n=e&&(!n||i(s,"name").configurable);t.exports={EXISTS:e,PROPER:o,CONFIGURABLE:n}},{"../internals/descriptors":131,"../internals/has-own-property":161}],154:[function(e,t,r){e=e("../internals/function-bind-native");var n=Function.prototype,s=n.bind,i=n.call,o=e&&s.bind(i,i);t.exports=e?function(e){return e&&o(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},{"../internals/function-bind-native":151}],155:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(r=n[e],s(r)?r:void 0):n[e]&&n[e][t];var r}},{"../internals/global":160,"../internals/is-callable":173}],156:[function(e,t,r){var n=e("../internals/classof"),s=e("../internals/get-method"),i=e("../internals/iterators"),o=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return s(e,o)||s(e,"@@iterator")||i[n(e)]}},{"../internals/classof":121,"../internals/get-method":158,"../internals/iterators":184,"../internals/well-known-symbol":265}],157:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/try-to-string"),c=e("../internals/get-iterator-method"),l=n.TypeError;t.exports=function(e,t){var r=arguments.length<2?c(e):t;if(i(r))return o(s(r,e));throw l(a(e)+" is not iterable")}},{"../internals/a-callable":92,"../internals/an-object":98,"../internals/function-call":152,"../internals/get-iterator-method":156,"../internals/global":160,"../internals/try-to-string":254}],158:[function(e,t,r){var n=e("../internals/a-callable");t.exports=function(e,t){return null==(e=e[t])?void 0:n(e)}},{"../internals/a-callable":92}
5],159:[function(e,t,r){var n=e("../internals/function-uncurry-this"),s=e("../internals/to-object"),f=Math.floor,d=n("".charAt),h=n("".replace),m=n("".slice),y=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;t.exports=function(i,o,a,c,l,e){var u=a+i.length,p=c.length,t=b;return void 0!==l&&(l=s(l),t=y),h(e,t,function(e,t){var r;switch(d(t,0)){case"$":return"$";case"&":return i;case"`":return m(o,0,a);case"'":return m(o,u);case"<":r=l[m(t,1,-1)];break;default:var n,s=+t;if(0==s)return e;if(p<s)return 0!==(n=f(s/10))&&n<=p?void 0===c[n-1]?d(t,1):c[n-1]+d(t,1):e;r=c[s-1]}return void 0===r?"":r})}},{"../internals/function-uncurry-this":154,"../internals/to-object":247}],160:[function(e,r,t){(function(t){(function(){function e(e){return e&&e.Math==Math&&e}r.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],161:[function(e,t,r){var n=e("../internals/function-uncurry-this"),s=e("../internals/to-object"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},{"../internals/function-uncurry-this":154,"../internals/to-object":247}],162:[function(e,t,r){t.exports={}},{}],163:[function(e,t,r){var n=e("../internals/global");t.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},{"../internals/global":160}],164:[function(e,t,r){e=e("../internals/get-built-in"),t.exports=e("document","documentElement")},{"../internals/get-built-in":155}],165:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!n&&!s(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":131,"../internals/document-create-element":132,"../internals/fails":147}],166:[function(e,t,r){var f=e("../internals/global").Array,d=Math.abs,h=Math.pow,m=Math.floor,y=Math.log,b=Math.LN2;t.exports={pack:function(e,t,r){var n,s,i,o=f(r),a=8*r-t-1,c=(r=(1<<a)-1)>>1,l=23===t?h(2,-24)-h(2,-77):0,u=e<0||0===e&&1/e<0?1:0,p=0;for((e=d(e))!=e||e===1/0?(s=e!=e?1:0,n=r):(n=m(y(e)/b),e*(i=h(2,-n))<1&&(n--,i*=2),2<=(e+=1<=n+c?l/i:l*h(2,1-c))*i&&(n++,i/=2),r<=n+c?(s=0,n=r):1<=n+c?(s=(e*i-1)*h(2,t),n+=c):(s=e*h(2,c-1)*h(2,t),n=0));8<=t;)o[p++]=255&s,s/=256,t-=8;for(n=n<<t|s,a+=t;0<a;)o[p++]=255&n,n/=256,a-=8;return o[--p]|=128*u,o},unpack:function(e,t){var r,s,n=e.length,i=(1<<(s=8*n-t-1))-1,o=i>>1,a=s-7,c=n-1,l=127&(s=e[c--]);for(s>>=7;0<a;)l=256*l+e[c--],a-=8;for(r=l&(1<<-a)-1,l>>=-a,a+=t;0<a;)r=256*r+e[c--],a-=8;if(0===l)l=1-o;else{if(l===i)return r?NaN:s?-1/0:1/0;r+=h(2,t),l-=o}return(s?-1:1)*r*h(2,l-t)}}},{"../internals/global":160}],167:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),a=n.Object,c=s("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?c(e,""):a(e)}:a},{"../internals/classof-raw":120,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160}],168:[function(e,t,r){var n=e("../internals/is-callable"),s=e("../internals/is-object"),i=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){return i&&n(t=t.constructor)&&t!==r&&s(t=t.prototype)&&t!==r.prototype&&i(e,t),e}},{"../internals/is-callable":173,"../internals/is-object":177,"../internals/object-set-prototype-of":205}],169:[function(e,t,r){var n=e("../internals/function-uncurry-this"),s=e("../internals/is-callable"),i=(e=e("../internals/shared-store"),n(Function.toString));s(e.inspectSource)||(e.inspectSource=function(e){return i(e)}),t.exports=e.inspectSource},{"../internals/function-uncurry-this":154,"../internals/is-callable":173,"../internals/shared-store":233}],170:[function(e,t,r){var n,s,i,o,a,c,l,u,p=e("../internals/native-weak-map"),f=e("../internals/global"),d=e("../internals/function-uncurr
5y-this"),h=e("../internals/is-object"),m=e("../internals/create-non-enumerable-property"),y=e("../internals/has-own-property"),b=e("../internals/shared-store"),g=e("../internals/shared-key"),v=(e=e("../internals/hidden-keys"),"Object already initialized"),j=f.TypeError;f=f.WeakMap;l=p||b.state?(n=b.state||(b.state=new f),s=d(n.get),i=d(n.has),o=d(n.set),a=function(e,t){if(i(n,e))throw new j(v);return t.facade=e,o(n,e,t),t},c=function(e){return s(n,e)||{}},function(e){return i(n,e)}):(e[u=g("state")]=!0,a=function(e,t){if(y(e,u))throw new j(v);return t.facade=e,m(e,u,t),t},c=function(e){return y(e,u)?e[u]:{}},function(e){return y(e,u)}),t.exports={set:a,get:c,has:l,enforce:function(e){return l(e)?c(e):a(e,{})},getterFor:function(t){return function(e){if(h(e)&&(e=c(e)).type===t)return e;throw j("Incompatible receiver, "+t+" required")}}}},{"../internals/create-non-enumerable-property":126,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/has-own-property":161,"../internals/hidden-keys":162,"../internals/is-object":177,"../internals/native-weak-map":189,"../internals/shared-key":232,"../internals/shared-store":233}],171:[function(e,t,r){var n=e("../internals/well-known-symbol"),s=e("../internals/iterators"),i=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},{"../internals/iterators":184,"../internals/well-known-symbol":265}],172:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":120}],173:[function(e,t,r){t.exports=function(e){return"function"==typeof e}},{}],174:[function(e,t,r){function n(){}function s(e){if(!c(e))return!1;try{return d(n,f,e),!0}catch(e){return!1}}function i(e){if(!c(e))return!1;switch(l(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!m(h,p(e))}catch(e){return!0}}var o=e("../internals/function-uncurry-this"),a=e("../internals/fails"),c=e("../internals/is-callable"),l=e("../internals/classof"),u=e("../internals/get-built-in"),p=e("../internals/inspect-source"),f=[],d=u("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=o(h.exec),y=!h.exec(n);i.sham=!0,t.exports=!d||a(function(){var e;return s(s.call)||!s(Object)||!s(function(){e=!0})||e})?i:s},{"../internals/classof":121,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/get-built-in":155,"../internals/inspect-source":169,"../internals/is-callable":173}],175:[function(e,t,r){function n(e,t){return(e=c[a(e)])==u||e!=l&&(i(t)?s(t):!!t)}var s=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,a=n.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=n.data={},l=n.NATIVE="N",u=n.POLYFILL="P";t.exports=n},{"../internals/fails":147,"../internals/is-callable":173}],176:[function(e,t,r){var n=e("../internals/is-object"),s=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&s(e)===e}},{"../internals/is-object":177}],177:[function(e,t,r){var n=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/is-callable":173}],178:[function(e,t,r){t.exports=!1},{}],179:[function(e,t,r){var n=e("../internals/is-object"),s=e("../internals/classof-raw"),i=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==s(e))}},{"../internals/classof-raw":120,"../internals/is-object":177,"../internals/well-known-symbol":265}],180:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),a=(e=e("../internals/use-symbol-as-uid"),n.Object);t.exports=e?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":155,"../internals/global":160,"../internals/is-callable":173,"../internals/object-is-prototype-of":201,"../internals/use-symbol-as-uid":261}],181:[function(e,t,r){function y(e,t){this.stopped=e,this.result=t}var n=e("../internals/global"),b=e("../internals/function-bind-context"),g=e("../internals/function-call"),v=e("../internals/an-object"),j=e("../internals/try-to-string"),w=e("../internals/is-array-iterator-method"),x=e("../internals/length-of-array-like"),T=e("../internals/object-is-prototype-of"),k=e("../internals/get-iterator"),E=e("../internals/get-iterator-method"),_=e("../internals/iterator-close"),S=n.TypeError,O=y.prototype;
5t.exports=function(e,t,r){function n(e){return i&&_(i,"normal",e),new y(!0,e)}function s(e){return f?(v(e),h?m(e[0],e[1],n):m(e[0],e[1])):h?m(e,n):m(e)}var i,o,a,c,l,u,p=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=b(t,p);if(d)i=e;else{if(!(r=E(e)))throw S(j(e)+" is not iterable");if(w(r)){for(o=0,a=x(e);o<a;o++)if((c=s(e[o]))&&T(O,c))return c;return new y(!1)}i=k(e,r)}for(l=i.next;!(u=g(l,i)).done;){try{c=s(u.value)}catch(e){_(i,"throw",e)}if("object"==typeof c&&c&&T(O,c))return c}return new y(!1)}},{"../internals/an-object":98,"../internals/function-bind-context":150,"../internals/function-call":152,"../internals/get-iterator":157,"../internals/get-iterator-method":156,"../internals/global":160,"../internals/is-array-iterator-method":171,"../internals/iterator-close":182,"../internals/length-of-array-like":185,"../internals/object-is-prototype-of":201,"../internals/try-to-string":254}],182:[function(e,t,r){var i=e("../internals/function-call"),o=e("../internals/an-object"),a=e("../internals/get-method");t.exports=function(e,t,r){var n,s;o(e);try{if(!(n=a(e,"return"))){if("throw"===t)throw r;return r}n=i(n,e)}catch(e){s=!0,n=e}if("throw"===t)throw r;if(s)throw n;return o(n),r}},{"../internals/an-object":98,"../internals/function-call":152,"../internals/get-method":158}],183:[function(e,t,r){"use strict";var n,s,i=e("../internals/fails"),o=e("../internals/is-callable"),a=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),l=e("../internals/redefine"),u=e("../internals/well-known-symbol"),p=(e=e("../internals/is-pure"),u("iterator"));u=!1;[].keys&&("next"in(s=[].keys())?(c=c(c(s)))!==Object.prototype&&(n=c):u=!0),null==n||i(function(){var e={};return n[p].call(e)!==e})?n={}:e&&(n=a(n)),o(n[p])||l(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:u}},{"../internals/fails":147,"../internals/is-callable":173,"../internals/is-pure":178,"../internals/object-create":193,"../internals/object-get-prototype-of":200,"../internals/redefine":219,"../internals/well-known-symbol":265}],184:[function(e,t,r){arguments[4][162][0].apply(r,arguments)},{dup:162}],185:[function(e,t,r){var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":246}],186:[function(e,t,r){var n,s,i,o,a,c,l,u=e("../internals/global"),p=e("../internals/function-bind-context"),f=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,h=e("../internals/engine-is-ios"),m=e("../internals/engine-is-ios-pebble"),y=e("../internals/engine-is-webos-webkit"),b=e("../internals/engine-is-node"),g=(e=u.MutationObserver||u.WebKitMutationObserver,u.document),v=u.process,j=u.Promise;(f=(f=f(u,"queueMicrotask"))&&f.value)||(n=function(){var e,t;for(b&&(e=v.domain)&&e.exit();s;){t=s.fn,s=s.next;try{t()}catch(e){throw s?o():i=void 0,e}}i=void 0,e&&e.enter()},o=h||b||y||!e||!g?!m&&j&&j.resolve?((h=j.resolve(void 0)).constructor=j,l=p(h.then,h),function(){l(n)}):b?function(){v.nextTick(n)}:(d=p(d,u),function(){d(n)}):(a=!0,c=g.createTextNode(""),new e(n).observe(c,{characterData:!0}),function(){c.data=a=!a})),t.exports=f||function(e){e={fn:e,next:void 0},i&&(i.next=e),s||(s=e,o()),i=e}},{"../internals/engine-is-ios":139,"../internals/engine-is-ios-pebble":138,"../internals/engine-is-node":140,"../internals/engine-is-webos-webkit":141,"../internals/function-bind-context":150,"../internals/global":160,"../internals/object-get-own-property-descriptor":196,"../internals/task":240}],187:[function(e,t,r){e=e("../internals/native-symbol"),t.exports=e&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":188}],188:[function(e,t,r){var n=e("../internals/engine-v8-version");e=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":143,"../internals/fails":147}],189:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-callable");e=e("../internals/inspect-source"),n=n.WeakMap;t.exports=s(n)&&/native code/.test(e(n))},{"../internals/global":160,"../internals/inspect-source":169,"../internals/is-callable":173}],190:[function(e,t,r){"use strict";function n(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=s(r),this.reject=s(n)}var s=e("../internals/a-callable");t.exports.f=function(e){return new n(e)}},{"../internals/a-callable":92}],191:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/is-regexp"),i=n.TypeError;t.exports=function(e){if(s(e))throw i("The method doesn't accept regular expressions");return e}},{"../internals/global":160,"../internals/is-regexp":179}],192:[function(e,t,r){"use strict";var f=e("../internals/descriptors"),n=e("../internals/function-uncurr
5y-this"),d=e("../internals/function-call"),s=e("../internals/fails"),h=e("../internals/object-keys"),m=e("../internals/object-get-own-property-symbols"),y=e("../internals/object-property-is-enumerable"),b=e("../internals/to-object"),g=e("../internals/indexed-object"),i=Object.assign,o=Object.defineProperty,v=n([].concat);t.exports=!i||s(function(){if(f&&1!==i({b:1},i(o({},"a",{enumerable:!0,get:function(){o(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=i({},e)[r]||h(i({},t)).join("")!=n})?function(e,t){for(var r=b(e),n=arguments.length,s=1,i=m.f,o=y.f;s<n;)for(var a,c=g(arguments[s++]),l=i?v(h(c),i(c)):h(c),u=l.length,p=0;p<u;)a=l[p++],f&&!d(o,c,a)||(r[a]=c[a]);return r}:i},{"../internals/descriptors":131,"../internals/fails":147,"../internals/function-call":152,"../internals/function-uncurry-this":154,"../internals/indexed-object":167,"../internals/object-get-own-property-symbols":199,"../internals/object-keys":203,"../internals/object-property-is-enumerable":204,"../internals/to-object":247}],193:[function(e,t,r){function n(){}var i,o=e("../internals/an-object"),a=e("../internals/object-define-properties"),c=e("../internals/enum-bug-keys"),l=e("../internals/hidden-keys"),u=e("../internals/html"),p=e("../internals/document-create-element"),f=(e=e("../internals/shared-key"),"prototype"),d="script",h=e("IE_PROTO"),m=function(e){return"<"+d+">"+e+"</"+d+">"},y=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}y="undefined"==typeof document||document.domain&&i?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):(e=p("iframe"),t="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var e,t,r=c.length;r--;)delete y[f][c[r]];return y()};
5l[h]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(n[f]=o(e),r=new n,n[f]=null,r[h]=e):r=y(),void 0===t?r:a.f(r,t)}},{"../internals/an-object":98,"../internals/document-create-element":132,"../internals/enum-bug-keys":145,"../internals/hidden-keys":162,"../internals/html":164,"../internals/object-define-properties":194,"../internals/shared-key":232}],194:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),c=e("../internals/an-object"),l=e("../internals/to-indexed-object"),u=e("../internals/object-keys");r.f=n&&!s?Object.defineProperties:function(e,t){c(e);for(var r,n=l(t),s=u(t),i=s.length,o=0;o<i;)a.f(e,r=s[o++],n[r]);return e}},{"../internals/an-object":98,"../internals/descriptors":131,"../internals/object-define-property":195,"../internals/object-keys":203,"../internals/to-indexed-object":244,"../internals/v8-prototype-define-bug":262}],195:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),a=e("../internals/an-object"),c=e("../internals/to-property-key"),l=n.TypeError,u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";r.f=s?o?function(e,t,r){var n;return a(e),t=c(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]&&(n=p(e,t))&&n[h]&&(e[t]=r.value,r={configurable:(d in r?r:n)[d],enumerable:(f in r?r:n)[f],writable:!1}),u(e,t,r)}:u:function(e,t,r){if(a(e),t=c(t),a(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":98,"../internals/descriptors":131,"../internals/global":160,"../internals/ie8-dom-define":165,"../internals/to-property-key":251,"../internals/v8-prototype-define-bug":262}],196:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/function-call"),i=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),c=e("../internals/to-property-key"),l=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},{"../internals/create-property-descriptor":127,"../internals/descriptors":131,"../internals/function-call":152,"../internals/has-own-property":161,"../internals/ie8-dom-define":165,"../internals/object-property-is-enumerable":204,"../internals/to-indexed-object":244,"../internals/to-property-key":251}],197:[function(e,t,r){var n=e("../internals/classof-raw"),s=e("../internals/to-indexed-object"),i=e("../internals/object-get-own-property-names").f,o=e("../internals/array-slice-simple"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){if(!a||"Window"!=n(e))return i(s(e));try{return i(e)}catch(e){return o(a)}}},{"../internals/array-slice-simple":113,"../internals/classof-raw":120,"../internals/object-get-own-property-names":198,"../internals/to-indexed-object":244}],198:[function(e,t,r){var n=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},{"../internals/enum-bug-keys":145,"../internals/object-keys-internal":202}],199:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],200:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),a=e("../internals/shared-key"),c=(e=e("../internals/correct-prototype-getter"),a("IE_PROTO")),l=n.Object,u=l.prototype;t.exports=e?l.getPrototypeOf:function(e){if(e=o(e),s(e,c))return e[c];var t=e.constructor;return i(t)&&e instanceof t?t.prototype:e instanceof l?u:null}},{"../internals/correct-prototype-getter":124,"../internals/global":160,"../internals/has-own-property":161,"../internals/is-callable":173,"../internals/shared-key":232,"../internals/to-object":247}
5],201:[function(e,t,r){e=e("../internals/function-uncurry-this"),t.exports=e({}.isPrototypeOf)},{"../internals/function-uncurry-this":154}],202:[function(e,t,r){var n=e("../internals/function-uncurry-this"),o=e("../internals/has-own-property"),a=e("../internals/to-indexed-object"),c=e("../internals/array-includes").indexOf,l=e("../internals/hidden-keys"),u=n([].push);t.exports=function(e,t){var r,n=a(e),s=0,i=[];for(r in n)!o(l,r)&&o(n,r)&&u(i,r);for(;t.length>s;)!o(n,r=t[s++])||~c(i,r)||u(i,r);return i}},{"../internals/array-includes":107,"../internals/function-uncurry-this":154,"../internals/has-own-property":161,"../internals/hidden-keys":162,"../internals/to-indexed-object":244}],203:[function(e,t,r){var n=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,s)}},{"../internals/enum-bug-keys":145,"../internals/object-keys-internal":202}],204:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!n.call({1:2},1);r.f=i?function(e){return!!(e=s(this,e))&&e.enumerable}:n},{}],205:[function(e,t,r){var s=e("../internals/function-uncurry-this"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");
5t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=s(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return i(e),o(t),n?r(e,t):e.__proto__=t,e}}():void 0)},{"../internals/a-possible-prototype":94,"../internals/an-object":98,"../internals/function-uncurry-this":154}],206:[function(e,t,r){function n(a){return function(e){for(var t,r=u(e),n=l(r),s=n.length,i=0,o=[];i<s;)t=n[i++],c&&!p(r,t)||f(o,a?[t,r[t]]:r[t]);return o}}var c=e("../internals/descriptors"),s=e("../internals/function-uncurry-this"),l=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),p=s(e("../internals/object-property-is-enumerable").f),f=s([].push);t.exports={entries:n(!0),values:n(!1)}},{"../internals/descriptors":131,"../internals/function-uncurry-this":154,"../internals/object-keys":203,"../internals/object-property-is-enumerable":204,"../internals/to-indexed-object":244}],207:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),s=e("../internals/classof");t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},{"../internals/classof":121,"../internals/to-string-tag-support":252}],208:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),a=n.TypeError;t.exports=function(e,t){var r,n;if("string"===t&&i(r=e.toString)&&!o(n=s(r,e)))return n;if(i(r=e.valueOf)&&!o(n=s(r,e)))return n;if("string"!==t&&i(r=e.toString)&&!o(n=s(r,e)))return n;throw a("Can't convert object to primitive value")}},{"../internals/function-call":152,"../internals/global":160,"../internals/is-callable":173,"../internals/is-object":177}],209:[function(e,t,r){var n=e("../internals/get-built-in"),s=e("../internals/function-uncurry-this"),i=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),c=s([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},{"../internals/an-object":98,"../internals/function-uncurry-this":154,"../internals/get-built-in":155,"../internals/object-get-own-property-names":198,"../internals/object-get-own-property-symbols":199}],210:[function(e,t,r){e=e("../internals/global"),t.exports=e},{"../internals/global":160}],211:[function(e,t,r){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],212:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/promise-native-constructor"),i=e("../internals/is-callable"),o=e("../internals/is-forced"),a=e("../internals/inspect-source"),c=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),u=e("../internals/is-pure"),p=e("../internals/engine-v8-version"),f=s&&s.prototype,d=c("species"),h=!1,m=i(n.PromiseRejectionEvent);e=o("Promise",function(){var e=a(s),t=e!==String(s);if(!t&&66===p)return!0;if(u&&(!f.catch||!f.finally))return!0;if(51<=p&&/native code/.test(e))return!1;function r(e){e(function(){},function(){})}return((e=new s(function(e){e(1)})).constructor={})[d]=r,!(h=e.then(function(){})instanceof r)||!t&&l&&!m});t.exports={CONSTRUCTOR:e,REJECTION_EVENT:m,SUBCLASSING:h}},{"../internals/engine-is-browser":136,"../internals/engine-v8-version":143,"../internals/global":160,"../internals/inspect-source":169,"../internals/is-callable":173,"../internals/is-forced":175,"../internals/is-pure":178,"../internals/promise-native-constructor":213,"../internals/well-known-symbol":265}],213:[function(e,t,r){e=e("../internals/global"),t.exports=e.Promise},{"../internals/global":160}],214:[function(e,t,r){var n=e("../internals/an-object"),s=e("../internals/is-object"),i=e("../internals/new-promise-capability");t.exports=function(e,t){return n(e),s(t)&&t.constructor===e?t:((0,(e=i.f(e)).resolve)(t),e.promise)}},{"../internals/an-object":98,"../internals/is-object":177,"../internals/new-promise-capability":190}],215:[function(e,t,r){var n=e("../internals/promise-native-constructor"),s=e("../internals/check-correctness-of-iteration");e=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=e||!s(function(e){n.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":119,"../internals/promise-constructor-detection":212,"../internals/promise-native-constructor":213}],216:[function(e,t,r){var n=e("../internals/object-define-property").f;
5t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},{"../internals/object-define-property":195}],217:[function(e,t,r){function n(){this.head=null,this.tail=null}n.prototype={add:function(e){e={item:e,next:null},this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},t.exports=n},{}],218:[function(e,t,r){var s=e("../internals/redefine");t.exports=function(e,t,r){for(var n in t)s(e,n,t[n],r);return e}},{"../internals/redefine":219}],219:[function(e,t,r){var c=e("../internals/global"),l=e("../internals/is-callable"),u=e("../internals/has-own-property"),p=e("../internals/create-non-enumerable-property"),f=e("../internals/set-global"),n=e("../internals/inspect-source"),s=e("../internals/internal-state"),d=e("../internals/function-name").CONFIGURABLE,i=s.get,h=s.enforce,m=String(String).split("String");(t.exports=function(e,t,r,n){var s,i=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;n=n&&void 0!==n.name?n.name:t;l(r)&&("Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!u(r,"name")||d&&r.name!==n)&&p(r,"name",n),(s=h(r)).source||(s.source=m.join("string"==typeof n?n:""))),e===c?o?e[t]=r:f(t,r):(i?!a&&e[t]&&(o=!0):delete e[t],o?e[t]=r:p(e,t,r))})(Function.prototype,"toString",function(){return l(this)&&i(this).source||n(this)})},{"../internals/create-non-enumerable-property":126,"../internals/function-name":153,"../internals/global":160,"../internals/has-own-property":161,"../internals/inspect-source":169,"../internals/internal-state":170,"../internals/is-callable":173,"../internals/set-global":229}],220:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/is-callable"),a=e("../internals/classof-raw"),c=e("../internals/regexp-exec"),l=n.TypeError;t.exports=function(e,t){var r=e.exec;if(o(r))return null!==(r=s(r,e,t))&&i(r),r;if("RegExp"===a(e))return s(c,e,t);throw l("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":98,"../internals/classof-raw":120,"../internals/function-call":152,"../internals/global":160,"../internals/is-callable":173,"../internals/regexp-exec":221}],221:[function(e,t,r){"use strict";var h=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),m=e("../internals/to-string"),y=e("../internals/regexp-flags"),s=e("../internals/regexp-sticky-helpers"),i=e("../internals/shared"),b=e("../internals/object-create"),g=e("../internals/internal-state").get,o=e("../internals/regexp-unsupported-dot-all"),v=(e=e("../internals/regexp-unsupported-ncg"),i("native-string-replace",String.prototype.replace)),j=RegExp.prototype.exec,w=j,x=n("".charAt),T=n("".indexOf),k=n("".replace),E=n("".slice),_=(i=/b*/g,h(j,n=/a/,"a"),h(j,i,"a"),0!==n.lastIndex||0!==i.lastIndex),S=s.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(_||O||S||o||e)&&(w=function(e){var t,r,n,s,i,o,a=this,c=g(a);e=m(e);if(l=c.raw)return l.lastIndex=a.lastIndex,p=h(w,l,e),a.lastIndex=l.lastIndex,p;var u=c.groups,l=S&&a.sticky,p=h(y,a),f=(c=a.source,0),d=e;if(l&&(p=k(p,"y",""),-1===T(p,"g")&&(p+="g"),d=E(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==x(e,a.lastIndex-1))&&(c="(?: "+c+")",d=" "+d,f++),t=new RegExp("^(?:"+c+")",p)),O&&(t=new RegExp("^"+c+"$(?!\\s)",p)),_&&(r=a.lastIndex),n=h(j,l?t:a,d),l?n?(n.input=E(n.input,f),n[0]=E(n[0],f),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:_&&n&&(a.lastIndex=a.global?n.index+n[0].length:r),O&&n&&1<n.length&&h(v,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=i=b(null),s=0;s<u.length;s++)i[(o=u[s])[0]]=n[o[1]];return n}),t.exports=w},{"../internals/function-call":152,"../internals/function-uncurry-this":154,"../internals/internal-state":170,"../internals/object-create":193,"../internals/regexp-flags":222,"../internals/regexp-sticky-helpers":224,"../internals/regexp-unsupported-dot-all":225,"../internals/regexp-unsupported-ncg":226,"../internals/shared":234,"../internals/to-string":253}],222:[function(e,t,r){"use strict";var n=e("../internals/an-object");t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"../internals/an-object":98}],223:[function(e,t,r){var n=e("../internals/function-call"),s=e("../internals/has-own-property"),i=e("../internals/object-is-prototype-of"),o=e("../internals/regexp-flags"),a=RegExp.prototype;
5t.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||s(e,"flags")||!i(a,e)?t:n(o,e)}},{"../internals/function-call":152,"../internals/has-own-property":161,"../internals/object-is-prototype-of":201,"../internals/regexp-flags":222}],224:[function(e,t,r){var n=e("../internals/fails"),s=e("../internals/global").RegExp,i=(e=n(function(){var e=s("a","y");return e.lastIndex=2,null!=e.exec("abcd")}))||n(function(){return!s("a","y").sticky});n=e||n(function(){var e=s("^r","gy");return e.lastIndex=2,null!=e.exec("str")});t.exports={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:e}},{"../internals/fails":147,"../internals/global":160}],225:[function(e,t,r){var n=e("../internals/fails"),s=e("../internals/global").RegExp;t.exports=n(function(){var e=s(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},{"../internals/fails":147,"../internals/global":160}],226:[function(e,t,r){var n=e("../internals/fails"),s=e("../internals/global").RegExp;t.exports=n(function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},{"../internals/fails":147,"../internals/global":160}],227:[function(e,t,r){var n=e("../internals/global").TypeError;t.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},{"../internals/global":160}],228:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],229:[function(e,t,r){var n=e("../internals/global"),s=Object.defineProperty;t.exports=function(t,r){try{s(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},{"../internals/global":160}],230:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),s=e("../internals/object-define-property"),i=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),a=i("species");t.exports=function(e){e=n(e);var t=s.f;o&&e&&!e[a]&&t(e,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":131,"../internals/get-built-in":155,"../internals/object-define-property":195,"../internals/well-known-symbol":265}],231:[function(e,t,r){var n=e("../internals/object-define-property").f,s=e("../internals/has-own-property"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){(e=e&&!r?e.prototype:e)&&!s(e,i)&&n(e,i,{configurable:!0,value:t})}},{"../internals/has-own-property":161,"../internals/object-define-property":195,"../internals/well-known-symbol":265}],232:[function(e,t,r){var n=e("../internals/shared"),s=e("../internals/uid"),i=n("keys");t.exports=function(e){return i[e]||(i[e]=s(e))}},{"../internals/shared":234,"../internals/uid":260}],233:[function(e,t,r){var n=e("../internals/global"),s=(e=e("../internals/set-global"),"__core-js_shared__");n=n[s]||e(s,{});t.exports=n},{"../internals/global":160,"../internals/set-global":229}],234:[function(e,t,r){var n=e("../internals/is-pure"),s=e("../internals/shared-store");(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":178,"../internals/shared-store":233}],235:[function(e,t,r){var n=e("../internals/an-object"),s=e("../internals/a-constructor"),i=e("../internals/well-known-symbol")("species");t.exports=function(e,t){return void 0===(e=n(e).constructor)||null==(e=n(e)[i])?t:s(e)}},{"../internals/a-constructor":93,"../internals/an-object":98,"../internals/well-known-symbol":265}],236:[function(e,t,r){function n(s){return function(e,t){e=o(a(e)),t=i(t);var r,n=e.length;return t<0||n<=t?s?"":void 0:(r=l(e,t))<55296||56319<r||t+1===n||(n=l(e,t+1))<56320||57343<n?s?c(e,t):r:s?u(e,t,t+2):n-56320+(r-55296<<10)+65536}}var s=e("../internals/function-uncurry-this"),i=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),a=e("../internals/require-object-coercible"),c=s("".charAt),l=s("".charCodeAt),u=s("".slice);t.exports={codeAt:n(!1),charAt:n(!0)}}
5,{"../internals/function-uncurry-this":154,"../internals/require-object-coercible":227,"../internals/to-integer-or-infinity":245,"../internals/to-string":253}],237:[function(e,t,r){var n=e("../internals/function-name").PROPER,s=e("../internals/fails"),i=e("../internals/whitespaces");t.exports=function(e){return s(function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e})}},{"../internals/fails":147,"../internals/function-name":153,"../internals/whitespaces":266}],238:[function(e,t,r){function n(t){return function(e){return e=o(i(e)),1&t&&(e=a(e,c,"")),2&t?a(e,l,""):e}}var s=e("../internals/function-uncurry-this"),i=e("../internals/require-object-coercible"),o=e("../internals/to-string"),a=(e=e("../internals/whitespaces"),s("".replace)),c=(s="["+e+"]",RegExp("^"+s+s+"*")),l=RegExp(s+s+"*$");t.exports={start:n(1),end:n(2),trim:n(3)}},{"../internals/function-uncurry-this":154,"../internals/require-object-coercible":227,"../internals/to-string":253,"../internals/whitespaces":266}],239:[function(e,t,r){var n=e("../internals/function-call"),s=e("../internals/get-built-in"),i=e("../internals/well-known-symbol"),o=e("../internals/redefine");t.exports=function(){var e,t=(e=(e=s("Symbol"))&&e.prototype)&&e.valueOf,r=i("toPrimitive");e&&!e[r]&&o(e,r,function(e){return n(t,this)})}},{"../internals/function-call":152,"../internals/get-built-in":155,"../internals/redefine":219,"../internals/well-known-symbol":265}],240:[function(e,t,r){var n,s,i=e("../internals/global"),o=e("../internals/function-apply"),a=e("../internals/function-bind-context"),c=e("../internals/is-callable"),l=e("../internals/has-own-property"),u=e("../internals/fails"),p=e("../internals/html"),f=e("../internals/array-slice"),d=e("../internals/document-create-element"),h=e("../internals/validate-arguments-length"),m=e("../internals/engine-is-ios"),y=(e=e("../internals/engine-is-node"),i.setImmediate),b=i.clearImmediate,g=i.process,v=i.Dispatch,j=i.Function,w=i.MessageChannel,x=i.Str
5ing,T=0,k={},E="onreadystatechange";try{n=i.location}catch(e){}function _(e){return function(){A(e)}}function S(e){A(e.data)}function O(e){i.postMessage(x(e),n.protocol+"//"+n.host)}var A=function(e){var t;l(k,e)&&(t=k[e],delete k[e],t())};y&&b||(y=function(e){h(arguments.length,1);var t=c(e)?e:j(e),r=f(arguments,1);return k[++T]=function(){o(t,void 0,r)},s(T),T},b=function(e){delete k[e]},e?s=function(e){g.nextTick(_(e))}:v&&v.now?s=function(e){v.now(_(e))}:w&&!m?(m=(e=new w).port2,e.port1.onmessage=S,s=a(m.postMessage,m)):i.addEventListener&&c(i.postMessage)&&!i.importScripts&&n&&"file:"!==n.protocol&&!u(O)?(s=O,i.addEventListener("message",S,!1)):s=E in d("script")?function(e){p.appendChild(d("script"))[E]=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(_(e),0)}),t.exports={set:y,clear:b}},{"../internals/array-slice":114,"../internals/document-create-element":132,"../internals/engine-is-ios":139,"../internals/engine-is-node":140,"../internals/fails":147,"../internals/function-apply":149,"../internals/function-bind-context":150,"../internals/global":160,"../internals/has-own-property":161,"../internals/html":164,"../internals/is-callable":173,"../internals/validate-arguments-length":263}],241:[function(e,t,r){e=e("../internals/function-uncurry-this"),t.exports=e(1..valueOf)},{"../internals/function-uncurry-this":154}],242:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),s=Math.max,i=Math.min;t.exports=function(e,t){return(e=n(e))<0?s(e+t,0):i(e,t)}},{"../internals/to-integer-or-infinity":245}],243:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/to-integer-or-infinity"),i=e("../internals/to-length"),o=n.RangeError;t.exports=function(e){if(void 0===e)return 0;e=s(e);var t=i(e);if(e!==t)throw o("Wrong length or index");return t}},{"../internals/global":160,"../internals/to-integer-or-infinity":245,"../internals/to-length":246}],244:[function(e,t,r){var n=e("../internals/indexed-object"),s=e("../internals/require-object-coercible");t.exports=function(e){return n(s(e))}},{"../internals/indexed-object":167,"../internals/require-object-coercible":227}],245:[function(e,t,r){var n=Math.ceil,s=Math.floor;t.exports=function(e){return(e=+e)!=e||0==e?0:(0<e?s:n)(e)}},{}],246:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),s=Math.min;t.exports=function(e){return 0<e?s(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":245}],247:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/require-object-coercible"),i=n.Object;t.exports=function(e){return i(s(e))}},{"../internals/global":160,"../internals/require-object-coercible":227}],248:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/to-positive-integer"),i=n.RangeError;t.exports=function(e,t){if((e=s(e))%t)throw i("Wrong offset");return e}},{"../internals/global":160,"../internals/to-positive-integer":249}],249:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/to-integer-or-infinity"),i=n.RangeError;t.exports=function(e){if((e=s(e))<0)throw i("The argument can't be less than 0");return e}},{"../internals/global":160,"../internals/to-integer-or-infinity":245}],250:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),a=e("../internals/get-method"),c=e("../internals/ordinary-to-primitive"),l=(e=e("../internals/well-known-symbol"),n.TypeError),u=e("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var r=a(e,u);if(r){if(r=s(r,e,t=void 0===t?"default":t),!i(r)||o(r))return r;throw l("Can't convert object to primitive value")}return c(e,t=void 0===t?"number":t)}},{"../internals/function-call":152,"../internals/get-method":158,"../internals/global":160,"../internals/is-object":177,"../internals/is-symbol":180,"../internals/ordinary-to-primitive":208,"../internals/well-known-symbol":265}],251:[function(e,t,r){var n=e("../internals/to-primitive"),s=e("../internals/is-symbol");t.exports=function(e){return e=n(e,"string"),s(e)?e:e+""}},{"../internals/is-symbol":180,"../internals/to-primitive":250}],252:[function(e,t,r){var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":265}],253:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/classof"),i=n.String;t.exports=function(e){if("Symbol"===s(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":121,"../internals/global":160}
5],254:[function(e,t,r){var n=e("../internals/global").String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}},{"../internals/global":160}],255:[function(e,t,M){"use strict";function d(e,t){re(e);for(var r=0,n=t.length,s=new e(n);r<n;)s[r]=t[r++];return s}function r(e,t){_(e,t,{get:function(){return E(this)[t]}})}function h(e){return z(Q,e)||"ArrayBuffer"==(e=G(e))||"SharedArrayBuffer"==e}function n(e,t){return N(e)&&!X(t)&&t in e&&F(+t)&&0<=t}function s(e,t){return n(e,t=l(t))?q(2,e[t]):J(e,t)}function i(e,t,r){return!(n(e,t=l(t))&&w(r)&&u(r,"value"))||u(r,"get")||u(r,"set")||r.configurable||u(r,"writable")&&!r.writable||u(r,"enumerable")&&!r.enumerable?_(e,t,r):(e[t]=r.value,e)}var c=e("../internals/export"),m=e("../internals/global"),y=e("../internals/function-call"),L=e("../internals/descriptors"),B=e("../internals/typed-array-constructors-require-wrappers"),o=e("../internals/array-buffer-view-core"),a=e("../internals/array-buffer"),b=e("../internals/an-instance"),q=e("../internals/create-property-descriptor"),g=e("../internals/create-non-enumerable-property"),F=e("../internals/is-integral-number"),U=e("../internals/to-length"),v=e("../internals/to-index"),j=e("../internals/to-offset"),l=e("../internals/to-property-key"),u=e("../internals/has-own-property"),G=e("../internals/classof"),w=e("../internals/is-object"),X=e("../internals/is-symbol"),V=e("../internals/object-create"),z=e("../internals/object-is-prototype-of"),x=e("../internals/object-set-prototype-of"),W=e("../internals/object-get-own-property-names").f,T=e("../internals/typed-array-from"),H=e("../internals/array-iteration").forEach,K=e("../internals/set-species"),p=e("../internals/object-define-property"),f=e("../internals/object-get-own-property-descriptor"),k=e("../internals/internal-state"),Y=e("../internals/inherit-if-required"),E=k.get,$=k.set,_=p.f,J=f.f,Z=Math.round,S=m.RangeError,O=a.ArrayBuffer,Q=O.prototype,ee=a.DataView,A=o.NATIVE_ARRAY_BUFFER_VIEWS,te=o.TYPED_ARRAY_CONSTRUCTOR,D=o.TYPED_ARRAY_TAG,I=o.TypedArray,C=o.TypedArrayPrototype,re=o.aTypedArrayConstructor,N=o.isTypedArray,R="BYTES_PER_ELEMENT",P="Wrong length";L?(A||(f.f=s,p.f=i,r(C,"buffer"),r(C,"byteOffset"),r(C,"byteLength"),r(C,"length")),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyDescriptor:s,defineProperty:i}),t.exports=function(e,t,s){function l(e,n){_(e,n,{get:function(){var e=this,t=n;return(e=E(e)).view[i](t*u+e.byteOffset,!0)},set:function(e){var t=this,r=n;t=E(t),s&&(e=(e=Z(e))<0?0:255<e?255:255&e),t.view[o](r*u+t.byteOffset,e,!0)},enumerable:!0})}var u=e.match(/\d+$/)[0]/8,r=e+(s?"Clamped":"")+"Array",i="get"+e,o="set"+e,a=m[r],p=a,f=p&&p.prototype;e={};A?B&&(p=t(function(e,t,r,n){return b(e,f),Y(w(t)?h(t)?void 0!==n?new a(t,j(r,u),n):void 0!==r?new a(t,j(r,u)):new a(t):N(t)?d(p,t):y(T,p,t):new a(v(t)),e,p)}),x&&x(p,I),H(W(a),function(e){e in p||g(p,e,a[e])}),p.prototype=f):(p=t(function(e,t,r,n){b(e,f);var s,i,o=0,a=0;if(w(t)){if(!h(t))return N(t)?d(p,t):y(T,p,t);var c=t;a=j(r,u),r=t.byteLength;if(void 0===n){if(r%u)throw S(P);if((s=r-a)<0)throw S(P)}else if(r<(s=U(n)*u)+a)throw S(P);i=s/u}else i=v(t),c=new O(s=i*u);for($(e,{buffer:c,byteOffset:a,byteLength:s,length:i,view:new ee(c)});o<i;)l(e,o++)}),x&&x(p,I),f=p.prototype=V(C)),f.constructor!==p&&g(f,"constructor",p),g(f,te,p),D&&g(f,D,r),e[r]=p,c({global:!0,forced:p!=a,sham:!A},e),R in p||g(p,R,u),R in f||g(f,R,u),K(r)}):t.exports=function(){}},{"../internals/an-instance":97,"../internals/array-buffer":101,"../internals/array-buffer-view-core":100,"../internals/array-iteration":108,"../internals/classof":121,"../internals/create-non-enumerable-property":126,"../internals/create-property-descriptor":127,"../internals/descriptors":131,"../internals/export":146,"../internals/function-call":152,"../internals/global":160,"../internals/has-own-property":161,"../internals/inherit-if-required":168,"../internals/internal-state":170,"../internals/is-integral-number":176,"../internals/is-object":177,"../internals/is-symbol":180,"../internals/object-create":193,"../internals/object-define-property":195,"../internals/object-get-own-property-descriptor":196,"../internals/object-get-own-property-names":198,"../internals/object-is-prototype-of":201,"../internals/object-set-prototype-of":205,"../internals/set-species":230,"../internals/to-index":243,"../internals/to-length":246,"../internals/to-offset":248,"../internals/to-property-key":251,"../internals/typed-array-constructors-require-wrappers":256,"../internals/typed-array-from":258}],256:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/fails"),i=e("../internals/check-correctness-of-iteration"),o=(e=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,n.ArrayBuffer),a=n.Int8Array;t.exports=!e||!s(function(){a(1)})||!s(function(){new a(-1)})||!i(function(e){new a,new a(null),new a(1.5),new a(e)},!0)||s(function(){return 1!==new a(new o(2),1,void 0).length})},{"../internals/array-buffer-view-core":100,"../internals/check-correctness-of-iteration":119,"../internals/fails":147,"../internals/global":160}],257:[function(e,t,r){var n=e("../internals/array-from-constructor-and-list"),s=e("../internals/typed-array-species-constructor");t.exports=function(e,t){return n(s(e),t)}},{"../internals/array-from-constructor-and-list":105,"../internals/typed-array-species-constructor":259}],258:[function(e,t,r){var d=e("../internals/function-bind-context"),h=e("../internals/function-call"),m=e("../internals/a-constructor"),y=e("../internals/to-object"),b=e("../internals/length-of-array-like"),g=e("../internals/get-iterator"),v=e("../internals/get-iterator-method"),j=e("../internals/is-array-iterator-method"),w=e("../internals/array-buffer-view-core").aTypedArrayConstructor;t.exports=function(e){var t,r,n,s,i,o,a=m(this),c=y(e),l=arguments.length,u=1<l?arguments[1]:void 0,p=void 0!==u,f=v(c);if(f&&!j(f))for(o=(i=g(c,f)).next,c=[];!(s=h(o,i)).done;)c.push(s.value);for(p&&2<l&&(u=d(u,arguments[2])),r=b(c),n=new(w(a))(r),t=0;t<r;t++)n[t]=p?u(c[t],t):c[t];return n}},{"../internals/a-constructor":93,"../internals/array-buffer-view-core":100,"../internals/function-bind-context":150,"../internals/function-call":152,"../internals/get-iterator":157,"../internals/get-iterator-method":156,"../internals/is-array-iterator-method":171,"../internals/length-of-array-like":185,"../internals/to-object":247}],259:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),s=e("../internals/species-constructor"),i=n.TYPED_ARRAY_CONSTRUCTOR,o=n.aTypedArrayConstructor;t.exports=function(e){return o(s(e,e[i]))}},{"../internals/array-buffer-view-core":100,"../internals/species-constructor":235}
5],260:[function(e,t,r){e=e("../internals/function-uncurry-this");var n=0,s=Math.random(),i=e(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+s,36)}},{"../internals/function-uncurry-this":154}],261:[function(e,t,r){e=e("../internals/native-symbol"),t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":188}],262:[function(e,t,r){var n=e("../internals/descriptors");e=e("../internals/fails");t.exports=n&&e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":131,"../internals/fails":147}],263:[function(e,t,r){var n=e("../internals/global").TypeError;t.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},{"../internals/global":160}],264:[function(e,t,r){e=e("../internals/well-known-symbol"),r.f=e},{"../internals/well-known-symbol":265}],265:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/shared"),i=e("../internals/has-own-property"),o=e("../internals/uid"),a=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),l=s("wks"),u=n.Symbol,p=u&&u.for,f=c?u:u&&u.withoutSetter||o;t.exports=function(e){var t;return i(l,e)&&(a||"string"==typeof l[e])||(t="Symbol."+e,a&&i(u,e)?l[e]=u[e]:l[e]=(c&&p?p:f)(t)),l[e]}},{"../internals/global":160,"../internals/has-own-property":161,"../internals/native-symbol":188,"../internals/shared":234,"../internals/uid":260,"../internals/use-symbol-as-uid":261}],266:[function(e,t,r){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},{}],267:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/global"),i=e("../internals/array-buffer"),o=(e=e("../internals/set-species"),"ArrayBuffer");i=i[o];n({global:!0,forced:s[o]!==i},{ArrayBuffer:i}),e(o)},{"../internals/array-buffer":101,"../internals/export":146,"../internals/global":160,"../internals/set-species":230}],268:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/array-buffer"),c=e("../internals/an-object"),l=e("../internals/to-absolute-index"),u=e("../internals/to-length"),p=e("../internals/species-constructor"),f=o.ArrayBuffer,d=o.DataView,h=(e=d.prototype,s(f.prototype.slice)),m=s(e.getUint8),y=s(e.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i(function(){return!new f(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(h&&void 0===t)return h(c(this),e);for(var r=c(this).byteLength,n=l(e,r),s=l(void 0===t?r:t,r),i=(e=new(p(this,f))(u(s-n)),new d(this)),o=new d(e),a=0;n<s;)y(o,a++,m(i,n++));return e}})},{"../internals/an-object":98,"../internals/array-buffer":101,"../internals/export":146,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/species-constructor":235,"../internals/to-absolute-index":242,"../internals/to-length":246}],269:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/global"),i=e("../internals/fails"),l=e("../internals/is-array"),u=e("../internals/is-object"),p=e("../internals/to-object"),f=e("../internals/length-of-array-like"),d=e("../internals/create-property"),h=e("../internals/array-species-create"),o=e("../internals/array-method-has-species-support"),a=e("../internals/well-known-symbol"),m=(e=e("../internals/engine-v8-version"),a("isConcatSpreadable")),y=9007199254740991,b="Maximum allowed index exceeded",g=s.TypeError;a=51<=e||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),s=o("concat");n({target:"Array",proto:!0,forced:!a||!s},{concat:function(e){for(var t,r,n,s=p(this),i=h(s,0),o=0,a=-1,c=arguments.length;a<c;a++)if(function(e){if(!u(e))return!1;var t=e[m];return void 0!==t?!!t:l(e)}(n=-1===a?s:arguments[a])){if(r=f(n),y<o+r)throw g(b);for(t=0;t<r;t++,o++)t in n&&d(i,o,n[t])}else{if(y<=o)throw g(b);d(i,o++,n)}return i.length=o,i}})},{"../internals/array-method-has-species-support":110,"../internals/array-species-create":117,"../internals/create-property":128,"../internals/engine-v8-version":143,"../internals/export":146,"../internals/fails":147,"../internals/global":160,"../internals/is-array":172,"../internals/is-object":177,"../internals/length-of-array-like":185,"../internals/to-object":247,"../internals/well-known-symbol":265}],270:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/array-fill");
5e=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:s}),e("fill")},{"../internals/add-to-unscopables":95,"../internals/array-fill":103,"../internals/export":146}],271:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/array-iteration").filter;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("filter")},{filter:function(e){return s(this,e,1<arguments.length?arguments[1]:void 0)}})},{"../internals/array-iteration":108,"../internals/array-method-has-species-support":110,"../internals/export":146}],272:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/array-iteration").find,i=(e=e("../internals/add-to-unscopables"),!0);"find"in[]&&Array(1).find(function(){i=!1}),n({target:"Array",proto:!0,forced:i},{find:function(e){return s(this,e,1<arguments.length?arguments[1]:void 0)}}),e("find")},{"../internals/add-to-unscopables":95,"../internals/array-iteration":108,"../internals/export":146}],273:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/array-from");n({target:"Array",stat:!0,forced:!e("../internals/check-correctness-of-iteration")(function(e){Array.from(e)})},{from:s})},{"../internals/array-from":106,"../internals/check-correctness-of-iteration":119,"../internals/export":146}],274:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/array-includes").includes;e=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{includes:function(e){return s(this,e,1<arguments.length?arguments[1]:void 0)}}),e("includes")},{"../internals/add-to-unscopables":95,"../internals/array-includes":107,"../internals/export":146}],275:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),s=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),o=e("../internals/internal-state"),a=e("../internals/object-define-property").f,c=e("../internals/define-iterator"),l=e("../internals/is-pure"),u=(e=e("../internals/descriptors"),"Array Iterator"),p=o.set,f=o.getterFor(u);t.exports=c(Array,"Array",function(e,t){p(this,{type:u,target:n(e),index:0,kind:t})},function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),o=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&e&&"values"!==o.name)try{a(o,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":95,"../internals/define-iterator":129,"../internals/descriptors":131,"../internals/internal-state":170,"../internals/is-pure":178,"../internals/iterators":184,"../internals/object-define-property":195,"../internals/to-indexed-object":244}],276:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/function-uncurry-this"),i=e("../internals/indexed-object"),o=e("../internals/to-indexed-object"),a=(e=e("../internals/array-method-is-strict"),s([].join));s=i!=Object,i=e("join",",");n({target:"Array",proto:!0,forced:s||!i},{join:function(e){return a(o(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":111,"../internals/export":146,"../internals/function-uncurry-this":154,"../internals/indexed-object":167,"../internals/to-indexed-object":244}],277:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("map")},{map:function(e){return s(this,e,1<arguments.length?arguments[1]:void 0)}})},{"../internals/array-iteration":108,"../internals/array-method-has-species-support":110,"../internals/export":146}],278:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/global"),l=e("../internals/is-array"),u=e("../internals/is-constructor"),p=e("../internals/is-object"),f=e("../internals/to-absolute-index"),d=e("../internals/length-of-array-like"),h=e("../internals/to-indexed-object"),m=e("../internals/create-property"),i=e("../internals/well-known-symbol"),o=e("../internals/array-method-has-s
5pecies-support"),y=e("../internals/array-slice"),b=(e=o("slice"),i("species")),g=s.Array,v=Math.max;n({target:"Array",proto:!0,forced:!e},{slice:function(e,t){var r,n,s,i=h(this),o=d(i),a=f(e,o),c=f(void 0===t?o:t,o);if(l(i)&&(r=i.constructor,(r=u(r)&&(r===g||l(r.prototype))||p(r)&&null===(r=r[b])?void 0:r)===g||void 0===r))return y(i,a,c);for(n=new(void 0===r?g:r)(v(c-a,0)),s=0;a<c;a++,s++)a in i&&m(n,s,i[a]);return n.length=s,n}})},{"../internals/array-method-has-species-support":110,"../internals/array-slice":114,"../internals/create-property":128,"../internals/export":146,"../internals/global":160,"../internals/is-array":172,"../internals/is-constructor":174,"../internals/is-object":177,"../internals/length-of-array-like":185,"../internals/to-absolute-index":242,"../internals/to-indexed-object":244,"../internals/well-known-symbol":265}],279:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/function-uncurry-this"),a=e("../internals/a-callable"),c=e("../internals/to-object"),l=e("../internals/length-of-array-like"),u=e("../internals/to-string"),i=e("../internals/fails"),p=e("../internals/array-sort"),o=e("../internals/array-method-is-strict"),f=e("../internals/engine-ff-version"),d=e("../internals/engine-is-ie-or-edge"),h=e("../internals/engine-v8-version"),m=e("../internals/engine-webkit-version"),y=[],b=s(y.sort),g=s(y.push),v=(e=i(function(){y.sort(void 0)}),s=i(function(){y.sort(null)}),o=o("sort"),!i(function(){if(h)return h<70;if(!(f&&3<f)){if(d)return!0;if(m)return m<603;for(var e,t,r,n="",s=65;s<76;
5s++){switch(e=String.fromCharCode(s),s){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)y.push({k:e+r,v:t})}for(y.sort(function(e,t){return t.v-e.v}),r=0;r<y.length;r++)e=y[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));n({target:"Array",proto:!0,forced:e||!s||!o||!v},{sort:function(e){void 0!==e&&a(e);var t=c(this);if(v)return void 0===e?b(t):b(t,e);for(var r,n,s=[],i=l(t),o=0;o<i;o++)o in t&&g(s,t[o]);for(p(s,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:u(e)>u(t)?1:-1})),r=s.length,o=0;o<r;)t[o]=s[o++];for(;o<i;)delete t[o++];return t}})},{"../internals/a-callable":92,"../internals/array-method-is-strict":111,"../internals/array-sort":115,"../internals/engine-ff-version":135,"../internals/engine-is-ie-or-edge":137,"../internals/engine-v8-version":143,"../internals/engine-webkit-version":144,"../internals/export":146,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/length-of-array-like":185,"../internals/to-object":247,"../internals/to-string":253}],280:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/global"),p=e("../internals/to-absolute-index"),f=e("../internals/to-integer-or-infinity"),d=e("../internals/length-of-array-like"),h=e("../internals/to-object"),m=e("../internals/array-species-create"),y=e("../internals/create-property"),b=(e=e("../internals/array-method-has-species-support")("splice"),s.TypeError),g=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!e},{splice:function(e,t){var r,n,s,i,o,a,c=h(this),l=d(c),u=p(e,l);if(0===(e=arguments.length)?r=n=0:n=1===e?(r=0,l-u):(r=e-2,v(g(f(t),0),l-u)),9007199254740991<l+r-n)throw b("Maximum allowed length exceeded");for(s=m(c,n),i=0;i<n;i++)(o=u+i)in c&&y(s,i,c[o]);if(r<(s.length=n)){for(i=u;i<l-n;i++)a=i+r,(o=i+n)in c?c[a]=c[o]:delete c[a];for(i=l;l-n+r<i;i--)delete c[i-1]}else if(n<r)for(i=l-n;u<i;i--)a=i+r-1,(o=i+n-1)in c?c[a]=c[o]:delete c[a];for(i=0;i<r;i++)c[i+u]=arguments[i+2];return c.length=l-n+r,s}})},{"../internals/array-method-has-species-support":110,"../internals/array-species-create":117,"../internals/create-property":128,"../internals/export":146,"../internals/global":160,"../internals/length-of-array-like":185,"../internals/to-absolute-index":242,"../internals/to-integer-or-infinity":245,"../internals/to-object":247}],281:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/function-name").EXISTS,i=e("../internals/function-uncurry-this"),o=(e=e("../internals/object-define-property").f,Function.prototype),a=i(o.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);n&&!s&&e(o,"name",{configurable:!0,get:function(){try{return l(c,a(this))[1]}catch(e){return""}}})},{"../internals/descriptors":131,"../internals/function-name":153,"../internals/function-uncurry-this":154,"../internals/object-define-property":195}],282:[function(e,t,r){function s(e,t){var r=m(arguments),n=t;if((d(t)||void 0!==e)&&!h(e))return p(t)||(t=function(e,t){if(f(n)&&(t=c(n,this,e,t)),!h(t))return t}),r[1]=t,a(y,null,r)}function i(e,t,r){var n=g(r,t-1);r=g(r,t+1);return b(T,e)&&!b(k,r)||b(k,e)&&!b(T,n)?"\\u"+w(v(e,0),16):e}var n=e("../internals/export"),o=e("../internals/get-built-in"),a=e("../internals/function-apply"),c=e("../internals/function-call"),l=e("../internals/function-uncurry-this"),u=e("../internals/fails"),p=e("../internals/is-array"),f=e("../internals/is-callable"),d=e("../internals/is-object"),h=e("../internals/is-symbol"),m=e("../internals/array-slice"),y=(e=e("../internals/native-symbol"),o("JSON","stringify")),b=l(/./.exec),g=l("".charAt),v=l("".charCodeAt),j=l("".replace),w=l(1..toString),x=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,E=!e||u(function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))}),_=u(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")});y&&n({target:"JSON",stat:!0,forced:E||_},{stringify:function(e,t,r){var n=m(arguments);n=a(E?s:y,null,n);return _&&"string"==typeof n?j(n,x,i):n}})},{"../internals/array-slice":114,"../internals/export":146,"../internals/fails":147,"../internals/function-apply":149,"../internals/function-call":152,"../internals/function-uncurr
5y-this":154,"../internals/get-built-in":155,"../internals/is-array":172,"../internals/is-callable":173,"../internals/is-object":177,"../internals/is-symbol":180,"../internals/native-symbol":188}],283:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),s=e("../internals/global"),i=e("../internals/function-uncurry-this"),o=e("../internals/is-forced"),a=e("../internals/redefine"),c=e("../internals/has-own-property"),l=e("../internals/inherit-if-required"),u=e("../internals/object-is-prototype-of"),p=e("../internals/is-symbol"),f=e("../internals/to-primitive"),d=e("../internals/fails"),h=e("../internals/object-get-own-property-names").f,m=e("../internals/object-get-own-property-descriptor").f,y=e("../internals/object-define-property").f,b=e("../internals/this-number-value"),g=e("../internals/string-trim").trim,v=s[e="Number"],j=v.prototype,w=s.TypeError,x=i("".slice),T=i("".charCodeAt);if(o(e,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var E,_=function(e){e=arguments.length<1?0:v(function(e){return"bigint"==typeof(e=f(e,"number"))?e:function(e){var t,r,n,s,i,o,a,c=f(e,"number");if(p(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&2<c.length)if(c=g(c),43===(e=T(c,0))||45===e){if(88===(t=T(c,2))||120===t)return NaN}else if(48===e){switch(T(c,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(i=(s=x(c,2)).length,o=0;o<i;o++)if((a=T(s,o))<48||n<a)return NaN;return parseInt(s,r)}return+c}(e)}(e));var t=this;return u(j,t)&&d(function(){b(t)})?l(Object(e),t,_):e},S=n?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;S.length>O;O++)c(v,E=S[O])&&!c(_,E)&&y(_,E,m(v,E));a(s,e,(_.prototype=j).constructor=_)}},{"../internals/descriptors":131,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/has-own-property":161,"../internals/inherit-if-required":168,"../internals/is-forced":175,"../internals/is-symbol":180,"../internals/object-define-property":195,"../internals/object-get-own-property-descriptor":196,"../internals/object-get-own-property-names":198,"../internals/object-is-prototype-of":201,"../internals/redefine":219,"../internals/string-trim":238,"../internals/this-number-value":241,"../internals/to-primitive":250}],284:[function(e,t,r){var n=e("../internals/export");e=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==e},{assign:e})},{"../internals/export":146,"../internals/object-assign":192}],285:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(e){return s(e)}})},{"../internals/export":146,"../internals/object-to-array":206}],286:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/fails"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-descriptor").f;e=e("../internals/descriptors"),s=s(function(){o(1)});n({target:"Object",stat:!0,forced:!e||s,sham:!e},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},{"../internals/descriptors":131,"../internals/export":146,"../internals/fails":147,"../internals/object-get-own-property-descriptor":196,"../internals/to-indexed-object":244}],287:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/descriptors"),c=e("../internals/own-keys"),l=e("../internals/to-indexed-object"),u=e("../internals/object-get-own-property-descriptor"),p=e("../internals/create-property");n({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,r,n=l(e),s=u.f,i=c(n),o={},a=0;i.length>a;)void 0!==(r=s(n,t=i[a++]))&&p(o,t,r);return o}})},{"../internals/create-property":128,"../internals/descriptors":131,"../internals/export":146,"../internals/object-get-own-property-descriptor":196,"../internals/own-keys":209,"../internals/to-indexed-object":244}],288:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/native-symbol"),i=e("../internals/fails"),o=e("../internals/object-get-own-property-symbol
5s"),a=e("../internals/to-object");n({target:"Object",stat:!0,forced:!s||i(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},{"../internals/export":146,"../internals/fails":147,"../internals/native-symbol":188,"../internals/object-get-own-property-symbols":199,"../internals/to-object":247}],289:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/to-object"),i=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){i(1)})},{keys:function(e){return i(s(e))}})},{"../internals/export":146,"../internals/fails":147,"../internals/object-keys":203,"../internals/to-object":247}],290:[function(e,t,r){var n=e("../internals/to-string-tag-support"),s=e("../internals/redefine");e=e("../internals/object-to-string");n||s(Object.prototype,"toString",e,{unsafe:!0})},{"../internals/object-to-string":207,"../internals/redefine":219,"../internals/to-string-tag-support":252}],291:[function(e,t,r){"use strict";var n=e("../internals/export"),u=e("../internals/function-call"),p=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),i=e("../internals/perform"),f=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var a=this,t=s.f(a),c=t.resolve,l=t.reject,r=i(function(){var n=p(a.resolve),s=[],i=0,o=1;f(e,function(e){var t=i++,r=!1;o++,u(n,a,e).then(function(e){r||(r=!0,s[t]=e,--o||c(s))},l)}),--o||c(s)});return r.error&&l(r.value),t.promise}})},{"../internals/a-callable":92,"../internals/export":146,"../internals/function-call":152,"../internals/iterate":181,"../internals/new-promise-capability":190,"../internals/perform":211,"../internals/promise-statics-incorrect-iteration":215}],292:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/is-pure"),i=e("../internals/promise-constructor-detection").CONSTRUCTOR,o=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),c=e("../internals/is-callable"),l=(e=e("../internals/redefine"),o&&o.prototype);n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!s&&c(o)&&(n=a("Promise").prototype.catch,l.catch!==n&&e(l,"catch",n,{unsafe:!0}))},{"../internals/export":146,"../internals/get-built-in":155,"../internals/is-callable":173,"../internals/is-pure":178,"../internals/promise-constructor-detection":212,"../internals/promise-native-constructor":213,"../internals/redefine":219}],293:[function(e,M,L){"use strict";function i(e,t){var r,n,s,i,o=t.value,a=t.state==_,c=a?e.ok:e.fail,l=e.resolve,u=e.reject,p=e.domain;try{c?(a||(t.rejection===O&&(i=t,h(m,d,function(){var e=i.facade;f?T.emit("rejectionHandled",e):I(ee,e,i.value)})),t.rejection=S),!0===c?r=o:(p&&p.enter(),r=c(o),p&&(p.exit(),s=!0)),r===e.promise?u(w("Promise-chain cycle")):(n=A(r))?h(n,r,l,u):l(r)):u(o)}catch(e){p&&!s&&p.exit(),u(e)}}var r,t,n,s=e("../internals/export"),B=e("../internals/is-pure"),f=e("../internals/engine-is-node"),d=e("../internals/global"),h=e("../internals/function-call"),q=e("../internals/redefine"),F=e("../internals/redefine-all"),o=e("../internals/object-set-prototype-of"),U=e("../internals/set-to-string-tag"),G=e("../internals/set-species"),X=e("../internals/a-callable"),a=e("../internals/is-callable"),V=e("../internals/is-object"),z=e("../internals/an-instance"),W=e("../internals/species-constructor"),m=e("../internals/task").set,c=e("../internals/microtask"),H=e("../internals/host-report-errors"),K=e("../internals/perform"),Y=e("../internals/queue"),l=e("../internals/internal-state"),u=e("../internals/promise-native-constructor"),p=e("../internals/promise-constructor-detection"),y=(e=e("../internals/new-promise-capability"),"Promise"),b=p.CONSTRUCTOR,$=p.REJECTION_EVENT,g=(p=p.SUBCLASSING,l.getterFor(y)),J=l.set,v=(l=u&&u.prototype,u),j=l,w=d.TypeError,x=d.document,T=d.process,k=e.f,Z=k,Q=!!(x&&x.createEvent&&d.dispatchEvent),E="unhandledrejection",ee="rejectionhandled",_=1,S=1,O=2,A=function(e){var t;return!(!V(e)||!a(t=e.then))&&t},D=function(r,s){r.notified||(r.notified=!0,c(function(){for(var e,n,t=r.reactions;e=t.get();)i(e,r);
5r.notified=!1,s&&!r.rejection&&(n=r,h(m,d,function(){var e=n.facade,t=n.value,r=C(n);if(r&&(r=K(function(){f?T.emit("unhandledRejection",t,e):I(E,e,t)}),n.rejection=f||C(n)?O:S,r.error))throw r.value}))}))},I=function(e,t,r){var n;Q?((n=x.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),d.dispatchEvent(n)):n={promise:t,reason:r},!$&&(t=d["on"+e])?t(n):e===E&&H("Unhandled promise rejection",r)},C=function(e){return e.rejection!==S&&!e.parent},N=function(t,r,n){return function(e){t(r,e,n)}},R=function(e,t,r){e.done||(e.done=!0,(e=r||e).value=t,e.state=2,D(e,!0))},P=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw w("Promise can't be resolved itself");var n=A(e);n?c(function(){var t={done:!1};try{h(n,e,N(P,t,r),N(R,t,r))}catch(e){R(t,e,r)}}):(r.value=e,r.state=_,D(r,!1))}catch(e){R({done:!1},e,r)}}};if(b&&(j=(v=function(e){z(this,j),X(e),h(r,this);var t=g(this);try{e(N(P,t),N(R,t))}catch(e){R(t,e)}}).prototype,(r=function(e){J(this,{type:y,done:!1,notified:!1,parent:!1,reactions:new Y,rejection:!1,state:0,value:void 0})}).prototype=F(j,{then:function(e,t){var r=g(this),n=k(W(this,v));return r.parent=!0,n.ok=!a(e)||e,n.fail=a(t)&&t,n.domain=f?T.domain:void 0,0==r.state?r.reactions.add(n):c(function(){i(n,r)}),n.promise}}),t=function(){var e=new r,t=g(e);this.promise=e,this.resolve=N(P,t),this.reject=N(R,t)},e.f=k=function(e){return e===v||void 0===e?new t:Z(e)},!B&&a(u)&&l!==Object.prototype)){n=l.then,p||q(l,"then",function(e,t){var r=this;return new v(function(e,t){h(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete l.constructor}catch(e){}o&&o(l,j)}s({global:!0,wrap:!0,forced:b},{Promise:v}),U(v,y,!1,!0),G(y)},{"../internals/a-callable":92,"../internals/an-instance":97,"../internals/engine-is-node":140,"../internals/export":146,"../internals/function-call":152,"../internals/global":160,"../internals/host-report-errors":163,"../internals/internal-state":170,"../internals/is-callable":173,"../internals/is-object":177,"../internals/is-pure":178,"../internals/microtask":186,"../internals/new-promise-capability":190,"../internals/object-set-prototype-of":205,"../internals/perform":211,"../internals/promise-constructor-detection":212,"../internals/promise-native-constructor":213,"../internals/queue":217,"../internals/redefine":219,"../internals/redefine-all":218,"../internals/set-species":230,"../internals/set-to-string-tag":231,"../internals/species-constructor":235,"../internals/task":240}],294:[function(e,t,r){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":291,"../modules/es.promise.catch":292,"../modules/es.promise.constructor":293,"../modules/es.promise.race":295,"../modules/es.promise.reject":296,"../modules/es.promise.resolve":297}],295:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),c=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var r=this,n=a.f(r),s=n.reject,t=c(function(){var t=o(r.resolve);l(e,function(e){i(t,r,e).then(n.resolve,s)})});return t.error&&s(t.value),n.promise}})},{"../internals/a-callable":92,"../internals/export":146,"../internals/function-call":152,"../internals/iterate":181,"../internals/new-promise-capability":190,"../internals/perform":211,"../internals/promise-statics-incorrect-iteration":215}],296:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/function-call"),i=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=i.f(this);return s(t.reject,void 0,e),t.promise}})},{"../internals/export":146,"../internals/function-call":152,"../internals/new-promise-capability":190,"../internals/promise-constructor-detection":212}],297:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/get-built-in"),i=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,c=e("../internals/promise-resolve"),l=s("Promise"),u=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return c(u&&this===l?o:this,e)}})},{"../internals/export":146,"../internals/get-built-in":155,"../internals/is-pure":178,"../internals/promise-constructor-detection":212,"../internals/promise-native-constructor":213,"../internals/promise-resolve":214}],298:[function(e,M,L){var t=e("../internals/descriptors"),r=e("../internals/global"),n=e("../internals/function-uncurr
5y-this"),s=e("../internals/is-forced"),l=e("../internals/inherit-if-required"),u=e("../internals/create-non-enumerable-property"),i=e("../internals/object-get-own-property-names").f,p=e("../internals/object-is-prototype-of"),f=e("../internals/is-regexp"),d=e("../internals/to-string"),h=e("../internals/regexp-get-flags"),o=e("../internals/regexp-sticky-helpers"),a=e("../internals/proxy-accessor"),c=e("../internals/redefine"),m=e("../internals/fails"),y=e("../internals/has-own-property"),b=e("../internals/internal-state").enforce,g=e("../internals/set-species"),v=e("../internals/well-known-symbol"),j=e("../internals/regexp-unsupported-dot-all"),w=e("../internals/regexp-unsupported-ncg"),x=v("match"),T=r.RegExp,k=T.prototype,E=r.SyntaxError,_=n(k.exec),S=n("".charAt),O=n("".replace),A=n("".indexOf),B=n("".slice),q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,I=/a/g,C=(e=new T(D)!==D,o.MISSED_STICKY),F=o.UNSUPPORTED_Y;if(s("RegExp",v=t&&(!e||C||j||w||m(function(){return I[x]=!1,T(D)!=D||T(I)==I||"/a/i"!=T(D,"i")})))){function N(e,t){var r,n,s=p(k,this),i=f(e),o=void 0===t,a=[],c=e;if(!s&&i&&o&&e.constructor===N)return e;if((i||p(k,e))&&(e=e.source,o&&(t=h(c))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),c=e,i=t=j&&"dotAll"in D&&(r=!!t&&-1<A(t,"s"))?O(t,/s/g,""):t,C&&"sticky"in D&&(n=!!t&&-1<A(t,"y"))&&F&&(t=O(t,/y/g,"")),w&&(e=(o=function(e){for(var t,r=e.length,n=0,s="",i=[],o={},a=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(t=S(e,n)))t+=S(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:_(q,B(e,n+1))&&(n+=2,c=!0),s+=t,l++;continue;case">"===t&&c:if(""===u||y(o,u))throw new E("Invalid capture group name");o[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=t:s+=t}return[s,i]}(e))[0],a=o[1]),o=l(T(e,t),s?this:k,N),(r||n||a.length)&&(t=b(o),r&&(t.dotAll=!0,t.raw=N(function(e){for(var t,r=e.length,n=0,s="",i=!1;n<=r;n++)"\\"===(t=S(e,n))?s+=t+S(e,++n):i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),s+=t):s+="[\\s\\S]";return s}(e),i)),n&&(t.sticky=!0),a.length&&(t.groups=a)),e!==c)try{u(o,"source",""===c?"(?:)":c)}catch(e){}return o}for(var R=i(T),P=0;R.length>P;)a(N,T,R[P++]);(k.constructor=N).prototype=k,c(r,"RegExp",N)}g("RegExp")},{"../internals/create-non-enumerable-property":126,"../internals/descriptors":131,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/has-own-property":161,"../internals/inherit-if-required":168,"../internals/internal-state":170,"../internals/is-forced":175,"../internals/is-regexp":179,"../internals/object-get-own-property-names":198,"../internals/object-is-prototype-of":201,"../internals/proxy-accessor":216,"../internals/redefine":219,"../internals/regexp-get-flags":223,"../internals/regexp-sticky-helpers":224,"../internals/regexp-unsupported-dot-all":225,"../internals/regexp-unsupported-ncg":226,"../internals/set-species":230,"../internals/to-string":253,"../internals/well-known-symbol":265}],299:[function(e,t,r){"use strict";var n=e("../internals/export");e=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})},{"../internals/export":146,"../internals/regexp-exec":221}],300:[function(e,t,r){"use strict";var n=e("../internals/function-name").PROPER,s=e("../internals/redefine"),i=e("../internals/an-object"),o=e("../internals/to-string"),a=e("../internals/fails"),c=e("../internals/regexp-get-flags"),l=(e="toString",RegExp.prototype[e]);a=a(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),n=n&&l.name!=e;(a||n)&&s(RegExp.prototype,e,function(){var e=i(this);return"/"+o(e.source)+"/"+o(c(e))},{unsafe:!0})},{"../internals/an-object":98,"../internals/fails":147,"../internals/function-name":153,"../internals/redefine":219,"../internals/regexp-get-flags":223,"../internals/to-string":253}],301:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/function-uncurry-this"),i=e("../internals/not-a-regexp"),o=e("../internals/require-object-coercible"),a=e("../internals/to-string"),c=(e=e("../internals/correct-is-regexp-logic"),s("".indexOf));n({target:"String",proto:!0,forced:!e("includes")}
5,{includes:function(e){return!!~c(a(o(this)),a(i(e)),1<arguments.length?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":123,"../internals/export":146,"../internals/function-uncurry-this":154,"../internals/not-a-regexp":191,"../internals/require-object-coercible":227,"../internals/to-string":253}],302:[function(e,t,r){"use strict";var n=e("../internals/string-multibyte").charAt,s=e("../internals/to-string"),i=e("../internals/internal-state"),o=(e=e("../internals/define-iterator"),"String Iterator"),a=i.set,c=i.getterFor(o);e(String,"String",function(e){a(this,{type:o,string:s(e),index:0})},function(){var e=c(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=n(t,r),e.index+=t.length,{value:t,done:!1})})},{"../internals/define-iterator":129,"../internals/internal-state":170,"../internals/string-multibyte":236,"../internals/to-string":253}],303:[function(e,t,r){"use strict";var s=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),l=e("../internals/an-object"),u=e("../internals/to-length"),p=e("../internals/to-string"),i=e("../internals/require-object-coercible"),o=e("../internals/get-method"),f=e("../internals/advance-string-index"),d=e("../internals/regexp-exec-abstract");n("match",function(n,a,c){return[function(e){var t=i(this),r=null==e?void 0:o(e,n);return r?s(r,e,t):new RegExp(e)[n](p(t))},function(e){var t=l(this),r=p(e);
5if((e=c(a,t,r)).done)return e.value;if(!t.global)return d(t,r);for(var n=t.unicode,s=[],i=t.lastIndex=0;null!==(o=d(t,r));){var o=p(o[0]);""===(s[i]=o)&&(t.lastIndex=f(r,u(t.lastIndex),n)),i++}return 0===i?null:s}]})},{"../internals/advance-string-index":96,"../internals/an-object":98,"../internals/fix-regexp-well-known-symbol-logic":148,"../internals/function-call":152,"../internals/get-method":158,"../internals/regexp-exec-abstract":220,"../internals/require-object-coercible":227,"../internals/to-length":246,"../internals/to-string":253}],304:[function(e,t,r){"use strict";var x=e("../internals/function-apply"),s=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),i=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/fails"),T=e("../internals/an-object"),k=e("../internals/is-callable"),E=e("../internals/to-integer-or-infinity"),_=e("../internals/to-length"),S=e("../internals/to-string"),a=e("../internals/require-object-coercible"),O=e("../internals/advance-string-index"),c=e("../internals/get-method"),A=e("../internals/get-substitution"),D=e("../internals/regexp-exec-abstract"),l=e("../internals/well-known-symbol")("replace"),I=Math.max,C=Math.min,N=n([].concat),R=n([].push),P=n("".indexOf),M=n("".slice),u=(e="$0"==="a".replace(/./,"$0"),!!/./[l]&&""===/./[l]("a","$0"));i("replace",function(e,v,j){var w=u?"$":"$0";return[function(e,t){var r=a(this),n=null==e?void 0:c(e,l);return n?s(n,e,r,t):s(v,S(r),e,t)},function(e,t){var r=T(this),n=S(e);if("string"==typeof t&&-1===P(t,w)&&-1===P(t,"$<")&&(e=j(v,r,n,t)).done)return e.value;for(var s,i=k(t),o=(i||(t=S(t)),r.global),a=(o&&(s=r.unicode,r.lastIndex=0),[]);null!==(f=D(r,n))&&(R(a,f),o);)""===S(f[0])&&(r.lastIndex=O(n,_(r.lastIndex),s));for(var c,l="",u=0,p=0;p<a.length;p++){for(var f,d=S((f=a[p])[0]),h=I(C(E(f.index),n.length),0),m=[],y=1;y<f.length;y++)R(m,void 0===(c=f[y])?c:String(c));var b=f.groups,g=i?(g=N([d],m,h,n),void 0!==b&&R(g,b),S(x(t,void 0,g))):A(d,n,h,m,b,t);u<=h&&(l+=M(n,u,h)+g,u=h+d.length)}return l+M(n,u)}]},!!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!e||u)},{"../internals/advance-string-index":96,"../internals/an-object":98,"../internals/fails":147,"../internals/fix-regexp-well-known-symbol-logic":148,"../internals/function-apply":149,"../internals/function-call":152,"../internals/function-uncurry-this":154,"../internals/get-method":158,"../internals/get-substitution":159,"../internals/is-callable":173,"../internals/regexp-exec-abstract":220,"../internals/require-object-coercible":227,"../internals/to-integer-or-infinity":245,"../internals/to-length":246,"../internals/to-string":253,"../internals/well-known-symbol":265}],305:[function(e,t,r){"use strict";var o=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/an-object"),c=e("../internals/require-object-coercible"),l=e("../internals/same-value"),u=e("../internals/to-string"),p=e("../internals/get-method"),f=e("../internals/regexp-exec-abstract");n("search",function(n,s,i){return[function(e){var t=c(this),r=null==e?void 0:p(e,n);return r?o(r,e,t):new RegExp(e)[n](u(t))},function(e){var t=a(this),r=(e=u(e),i(s,t,e));return r.done?r.value:(r=t.lastIndex,l(r,0)||(t.lastIndex=0),e=f(t,e),l(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]})},{"../internals/an-object":98,"../internals/fix-regexp-well-known-symbol-logic":148,"../internals/function-call":152,"../internals/get-method":158,"../internals/regexp-exec-abstract":220,"../internals/require-object-coercible":227,"../internals/same-value":228,"../internals/to-string":253}],306:[function(e,t,r){"use strict";var u=e("../internals/function-apply"),p=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),f=e("../internals/is-regexp"),b=e("../internals/an-object"),d=e("../internals/require-object-coercible"),g=e("../internals/species-constructor"),v=e("../internals/advance-string-index"),j=e("../internals/to-length"),w=e("../internals/to-string"),i=e("../internals/get-method"),x=e("../internals/array-slice-simple"),T=e("../internals/regexp-exec-abstract"),k=e("../internals/regexp-exec"),o=e("../internals/regexp-sticky-helpers"),E=(e=e("../internals/fails"),o.UNSUPPORTED_Y),_=Math.min,S=[].push,O=n(/./.exec),A=n(S),D=n("".slice);s("split",function(s,h,m){var y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=w(d(this)),n=void 0===t?4294967295:t>>>0;if(0==n)return[];if(void 0===e)return[r];if(!f(e))return p(h,r,e,n);for(var s,i,o,a=[],c=(t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),0),l=new RegExp(e.source,t+"g");(s=p(k,l,r))&&!(c<(i=l.lastIndex)&&(A(a,D(r,c,s.index)),1<s.length&&s.index<r.length&&u(S,a,x(s,1)),o=s[0].length,c=i,n<=a.length));)l.lastIndex===s.index&&l.lastIndex++;return c===r.length?!o&&O(l,"")||A(a,""):A(a,D(r,c)),n<a.length?x(a,0,n):a}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:p(h,this,e,t)}:h;return[function(e,t){var r=d(this),n=null==e?void 0:i(e,s);return n?p(n,e,r,t):p(y,w(r),e,t)},function(e,t){var r=b(this),n=w(e);
5if((e=m(y,r,n,t,y!==h)).done)return e.value;e=g(r,RegExp);var s=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(E?"g":"y"),o=new e(E?"^(?:"+r.source+")":r,i),a=void 0===t?4294967295:t>>>0;if(0==a)return[];if(0===n.length)return null===T(o,n)?[n]:[];for(var c=0,l=0,u=[];l<n.length;){o.lastIndex=E?0:l;var p,f=T(o,E?D(n,l):n);if(null===f||(p=_(j(o.lastIndex+(E?l:0)),n.length))===c)l=v(n,l,s);else{if(A(u,D(n,c,l)),u.length===a)return u;for(var d=1;d<=f.length-1;d++)if(A(u,f[d]),u.length===a)return u;l=c=p}}return A(u,D(n,c)),u}]},!!e(function(){var t=(e=/(?:)/).exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),E)},{"../internals/advance-string-index":96,"../internals/an-object":98,"../internals/array-slice-simple":113,"../internals/fails":147,"../internals/fix-regexp-well-known-symbol-logic":148,"../internals/function-apply":149,"../internals/function-call":152,"../internals/function-uncurry-this":154,"../internals/get-method":158,"../internals/is-regexp":179,"../internals/regexp-exec":221,"../internals/regexp-exec-abstract":220,"../internals/regexp-sticky-helpers":224,"../internals/require-object-coercible":227,"../internals/species-constructor":235,"../internals/to-length":246,"../internals/to-string":253}],307:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/string-trim").trim;n({target:"String",proto:!0,forced:e("../internals/string-trim-forced")("trim")},{trim:function(){return s(this)}})},{"../internals/export":146,"../internals/string-trim":238,"../internals/string-trim-forced":237}],308:[function(e,M,L){"use strict";function n(e,t){var r=C[e]=g(D);return te(r,{type:O,tag:e,description:t}),p||(r.description=t),r}function s(e,t,r){return e===A&&s(N,t,r),h(e),t=y(t),h(r),d(C,t)?(r.enumerable?(d(e,S)&&e[S][t]&&(e[S][t]=!1),r=g(r,{enumerable:b(0,!1)})):(d(e,S)||I(e,S,b(1,{})),e[S][t]=!0),P(e,t,r)):I(e,t,r)}function r(t,e){h(t);var r=m(e);e=v(r).concat(a(r));return _(e,function(e){p&&!u(i,r,e)||s(t,e,r[e])}),t}function i(e){e=y(e);var t=u(oe,this,e);return!(this===A&&d(C,e)&&!d(N,e))&&(!(t||!d(this,e)||!d(C,e)||d(this,S)&&this[S][e])||t)}function t(e,t){var r;e=m(e),t=y(t);if(e!==A||!d(C,t)||d(N,t))return!(r=se(e,t))||!d(C,t)||d(e,S)&&e[S][t]||(r.enumerable=!0),r}function o(e){e=ie(m(e));var t=[];return _(e,function(e){d(C,e)||d(K,e)||ae(t,e)}),t}function a(e){var t=e===A,r=(e=ie(t?N:m(e)),[]);return _(e,function(e){!d(C,e)||t&&!d(A,e)||ae(r,C[e])}),r}var c=e("../internals/export"),l=e("../internals/global"),u=e("../internals/function-call"),B=e("../internals/function-uncurry-this"),q=e("../internals/is-pure"),p=e("../internals/descriptors"),f=e("../internals/native-symbol"),F=e("../internals/fails"),d=e("../internals/has-own-property"),U=e("../internals/object-is-prototype-of"),h=e("../internals/an-object"),m=e("../internals/to-indexed-object"),y=e("../internals/to-property-key"),G=e("../internals/to-string"),b=e("../internals/create-property-descriptor"),g=e("../internals/object-create"),v=e("../internals/object-keys"),X=e("../internals/object-get-own-property-names"),j=e("../internals/object-get-own-property-names-external"),V=e("../internals/object-get-own-property-symbols"),w=e("../internals/object-get-own-property-descriptor"),z=e("../internals/object-define-property"),W=e("../internals/object-define-properties"),H=e("../internals/object-property-is-enumerable"),x=e("../internals/redefine"),T=e("../internals/shared"),k=e("../internals/shared-key"),K=e("../internals/hidden-keys"),Y=e("../internals/uid"),$=e("../internals/well-known-symbol"),J=e("../internals/well-known-symbol-wrapped"),Z=e("../internals/define-well-known-symbol"),Q=e("../internals/symbol-define-to-primitive"),ee=e("../internals/set-to-string-tag"),E=e("../internals/internal-state"),_=e("../internals/array-iteration").forEach,S=k("hidden"),O="Symbol",te=(e="prototype",E.set),re=E.getterFor(O),A=Object[e],D=(k=l.Symbol)&&k[e],ne=l.TypeError,se=(E=l.QObject,w.f),I=z.f,ie=j.f,oe=H.f,ae=B([].push),C=T("symbols"),N=T("op-symbols"),R=(l=T("wks"),!E||!E[e]||!E[e].findChild),P=p&&F(function(){return 7!=g(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=se(A,t);
5n&&delete A[t],I(e,t,r),n&&e!==A&&I(A,t,n)}:I;f||(x(D=(k=function(){if(U(D,this))throw ne("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?G(arguments[0]):void 0,t=Y(e),r=function(e){this===A&&u(r,N,e),d(this,S)&&d(this[S],t)&&(this[S][t]=!1),P(this,t,b(1,e))};return p&&R&&P(A,t,{configurable:!0,set:r}),n(t,e)})[e],"toString",function(){return re(this).tag}),x(k,"withoutSetter",function(e){return n(Y(e),e)}),H.f=i,z.f=s,W.f=r,w.f=t,X.f=j.f=o,V.f=a,J.f=function(e){return n($(e),e)},p&&(I(D,"description",{configurable:!0,get:function(){return re(this).description}}),q||x(A,"propertyIsEnumerable",i,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:k}),_(v(l),function(e){Z(e)}),c({target:O,stat:!0,forced:!f},{useSetter:function(){R=!0},useSimple:function(){R=!1}}),c({target:"Object",stat:!0,forced:!f,sham:!p},{create:function(e,t){return void 0===t?g(e):r(g(e),t)},defineProperty:s,defineProperties:r,getOwnPropertyDescriptor:t}),c({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:o}),Q(),ee(k,O),K[S]=!0},{"../internals/an-object":98,"../internals/array-iteration":108,"../internals/create-property-descriptor":127,"../internals/define-well-known-symbol":130,"../internals/descriptors":131,"../internals/export":146,"../internals/fails":147,"../internals/function-call":152,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/has-own-property":161,"../internals/hidden-keys":162,"../internals/internal-state":170,"../internals/is-pure":178,"../internals/native-symbol":188,"../internals/object-create":193,"../internals/object-define-properties":194,"../internals/object-define-property":195,"../internals/object-get-own-property-descriptor":196,"../internals/object-get-own-property-names":198,"../internals/object-get-own-property-names-external":197,"../internals/object-get-own-property-symbols":199,"../internals/object-is-prototype-of":201,"../internals/object-keys":203,"../internals/object-property-is-enumerable":204,"../internals/redefine":219,"../internals/set-to-string-tag":231,"../internals/shared":234,"../internals/shared-key":232,"../internals/symbol-define-to-primitive":239,"../internals/to-indexed-object":244,"../internals/to-property-key":251,"../internals/to-string":253,"../internals/uid":260,"../internals/well-known-symbol":265,"../internals/well-known-symbol-wrapped":264}],309:[function(e,t,r){"use strict";var n,s,i,o,a,c,l,u=e("../internals/export"),p=e("../internals/descriptors"),f=e("../internals/global"),d=e("../internals/function-uncurry-this"),h=e("../internals/has-own-property"),m=e("../internals/is-callable"),y=e("../internals/object-is-prototype-of"),b=e("../internals/to-string"),g=e("../internals/object-define-property").f,v=(e=e("../internals/copy-constructor-properties"),f.Symbol),j=v&&v.prototype;!p||!m(v)||"description"in j&&void 0===v().description||(n={},e(f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:b(arguments[0]),t=y(j,this)?new v(e):void 0===e?v():v(e);return""===e&&(n[t]=!0),t},v),(f.prototype=j).constructor=f,s="Symbol(test)"==String(v("test")),i=d(j.toString),o=d(j.valueOf),a=/^Symbol\((.*)\)[^)]+$/,c=d("".replace),l=d("".slice),g(j,"description",{configurable:!0,get:function(){var e=o(this),t=i(e);return h(n,e)?"":""===(e=s?l(t,7,-1):c(t,a,"$1"))?void 0:e}}),u({global:!0,forced:!0},{Symbol:f}))},{"../internals/copy-constructor-properties":122,"../internals/descriptors":131,"../internals/export":146,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/has-own-property":161,"../internals/is-callable":173,"../internals/object-define-property":195,"../internals/object-is-prototype-of":201,"../internals/to-string":253}],310:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/get-built-in"),i=e("../internals/has-own-property"),o=e("../internals/to-string"),a=e("../internals/shared"),c=(e=e("../internals/native-symbol-registry"),a("string-to-symbol-registry")),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!e},{for:function(e){if(e=o(e),i(c,e))return c[e];var t=s("Symbol")(e);return c[e]=t,l[t]=e,t}})},{"../internals/export":146,"../internals/get-built-in":155,"../internals/has-own-property":161,"../internals/native-symbol-registry":187,"../internals/shared":234,"../internals/to-string":253}],311:[function(e,t,r){e("../internals/define-well-known-symbol")("iterator")},{"../internals/define-well-known-symbol":130}],312:[function(e,t,r){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.ke
5y-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":282,"../modules/es.object.get-own-property-symbols":288,"../modules/es.symbol.constructor":308,"../modules/es.symbol.for":310,"../modules/es.symbol.key-for":313}],313:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/has-own-property"),i=e("../internals/is-symbol"),o=e("../internals/try-to-string"),a=e("../internals/shared"),c=(e=e("../internals/native-symbol-registry"),a("symbol-to-string-registry"));n({target:"Symbol",stat:!0,forced:!e},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(c,e))return c[e]}})},{"../internals/export":146,"../internals/has-own-property":161,"../internals/is-symbol":180,"../internals/native-symbol-registry":187,"../internals/shared":234,"../internals/try-to-string":254}],314:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),s=e("../internals/array-buffer-view-core"),i=n(e("../internals/array-copy-within")),o=s.aTypedArray;(0,s.exportTypedArrayMethod)("copyWithin",function(e,t){return i(o(this),e,t,2<arguments.length?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-copy-within":102,"../internals/function-uncurry-this":154}],315:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108}],316:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/function-call"),i=e("../internals/array-fill"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",function(e){var t=arguments.length;return s(i,o(this),e,1<t?arguments[1]:void 0,2<t?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-fill":103,"../internals/function-call":152}],317:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").filter,i=e("../internals/typed-array-from-species-and-list"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",function(e){return e=s(o(this),e,1<arguments.length?arguments[1]:void 0),i(this,e)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108,"../internals/typed-array-from-species-and-list":257}],318:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108}],319:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108}],320:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",function(e){s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108}],321:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-includes").includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-includes":107}],322:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-includes").indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-includes":107}],323:[function(e,t,r){"use strict";function n(){return u(d(this))}var s=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurr
5y-this"),a=e("../internals/array-buffer-view-core"),c=e("../modules/es.array.iterator"),l=e("../internals/well-known-symbol")("iterator"),u=(e=s.Uint8Array,o(c.values)),p=o(c.keys),f=o(c.entries),d=a.aTypedArray,h=(s=a.exportTypedArrayMethod,e&&e.prototype);o=!i(function(){h[l].call([1])}),c=!!h&&h.values&&h[l]===h.values&&"values"===h.values.name;s("entries",function(){return f(d(this))},o),s("keys",function(){return p(d(this))},o),s("values",n,o||!c,{name:"values"}),s(l,n,o||!c,{name:"values"})},{"../internals/array-buffer-view-core":100,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160,"../internals/well-known-symbol":265,"../modules/es.array.iterator":275}],324:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=(e=e("../internals/function-uncurry-this"),n.aTypedArray),i=(n=n.exportTypedArrayMethod,e([].join));n("join",function(e){return i(s(this),e)})},{"../internals/array-buffer-view-core":100,"../internals/function-uncurry-this":154}],325:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/function-apply"),i=e("../internals/array-last-index-of"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return s(i,o(this),1<t?[e,arguments[1]]:[e])})},{"../internals/array-buffer-view-core":100,"../internals/array-last-index-of":109,"../internals/function-apply":149}],326:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").map,i=e("../internals/typed-array-species-constructor"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",function(e){return s(o(this),e,1<arguments.length?arguments[1]:void 0,function(e,t){return new(i(e))(t)})})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108,"../internals/typed-array-species-constructor":259}],327:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-reduce").right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return s(i(this),e,t,1<t?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-reduce":112}],328:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-reduce").left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return s(i(this),e,t,1<t?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-reduce":112}],329:[function(e,t,r){"use strict";var s=(e=e("../internals/array-buffer-view-core")).aTypedArray,i=(e=e.exportTypedArrayMethod,Math.floor);e("reverse",function(){for(var e,t=s(this).length,r=i(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this})},{"../internals/array-buffer-view-core":100}],330:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/function-call"),s=e("../internals/array-buffer-view-core"),o=e("../internals/length-of-array-like"),a=e("../internals/to-offset"),c=e("../internals/to-object"),l=(e=e("../internals/fails"),n.RangeError),u=n.Int8Array,p=(n=u&&u.prototype)&&n.set,f=s.aTypedArray,d=(n=s.exportTypedArrayMethod,!e(function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]}));s=d&&s.NATIVE_ARRAY_BUFFER_VIEWS&&e(function(){var e=new u(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});n("set",function(e){f(this);var t=a(1<arguments.length?arguments[1]:void 0,1),r=c(e);if(d)return i(p,this,r,t);e=this.length;var n=o(r),s=0;if(e<n+t)throw l("Wrong length");for(;s<n;)this[t+s]=r[s++]},!d||s)},{"../internals/array-buffer-view-core":100,"../internals/fails":147,"../internals/function-call":152,"../internals/global":160,"../internals/length-of-array-like":185,"../internals/to-object":247,"../internals/to-offset":248}],331:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),o=e("../internals/typed-array-species-constructor"),s=e("../internals/fails"),a=e("../internals/array-slice"),c=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",function(e,t){for(var r=a(c(this),e,t),n=(e=o(this),0),s=r.length,i=new e(s);n<s;)i[n]=r[n++];return i},s(function(){new Int8Array(1).slice()}))},{"../internals/array-buffer-view-core":100,"../internals/array-slice":114,"../internals/fails":147,"../internals/typed-array-species-constructor":259}],332:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",function(e){return s(i(this),e,1<arguments.length?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":100,"../internals/array-iteration":108}],333:[function(e,t,r){"use strict";var n=e("../internals/global"),s=e("../internals/function-uncurr
5y-this"),i=e("../internals/fails"),o=e("../internals/a-callable"),a=e("../internals/array-sort"),c=e("../internals/array-buffer-view-core"),l=e("../internals/engine-ff-version"),u=e("../internals/engine-is-ie-or-edge"),p=e("../internals/engine-v8-version"),f=e("../internals/engine-webkit-version"),d=c.aTypedArray,h=(e=c.exportTypedArrayMethod,n.Uint16Array),m=h&&s(h.prototype.sort),y=(c=!(!m||i(function(){m(new h(2),null)})&&i(function(){m(new h(2),{})})),!!m&&!i(function(){if(p)return p<74;if(l)return l<67;if(u)return!0;if(f)return f<602;for(var e,t=new h(516),r=Array(516),n=0;n<516;n++)e=n%4,t[n]=515-n,r[n]=n-2*e+3;for(m(t,function(e,t){return(e/4|0)-(t/4|0)}),n=0;n<516;n++)if(t[n]!==r[n])return!0}));e("sort",function(e){return void 0!==e&&o(e),y?m(this,e):a(d(this),(r=e,function(e,t){return void 0!==r?+r(e,t)||0:t!=t?-1:e!=e?1:0===e&&0===t?0<1/e&&1/t<0?1:-1:t<e}));var r},!y||c)},{"../internals/a-callable":92,"../internals/array-buffer-view-core":100,"../internals/array-sort":115,"../internals/engine-ff-version":135,"../internals/engine-is-ie-or-edge":137,"../internals/engine-v8-version":143,"../internals/engine-webkit-version":144,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160}],334:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),s=e("../internals/to-length"),i=e("../internals/to-absolute-index"),o=e("../internals/typed-array-species-constructor"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",function(e,t){var r=a(this),n=r.length;e=i(e,n);return new(o(r))(r.buffer,r.byteOffset+e*r.BYTES_PER_ELEMENT,s((void 0===t?n:i(t,n))-e))})},{"../internals/array-buffer-view-core":100,"../internals/to-absolute-index":242,"../internals/to-length":246,"../internals/typed-array-species-constructor":259}],335:[function(e,t,r){"use strict";var n=e("../internals/global"),s=e("../internals/function-apply"),i=e("../internals/array-buffer-view-core"),o=e("../internals/fails"),a=e("../internals/array-slice"),c=n.Int8Array,l=i.aTypedArray,u=(e=i.exportTypedArrayMethod,[].toLocaleString),p=!!c&&o(function(){u.call(new c(1))});e("toLocaleString",function(){return s(u,p?a(l(this)):l(this),a(arguments))},o(function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()})||!o(function(){c.prototype.toLocaleString.call([1,2])}))},{"../internals/array-buffer-view-core":100,"../internals/array-slice":114,"../internals/fails":147,"../internals/function-apply":149,"../internals/global":160}],336:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core").exportTypedArrayMethod,s=e("../internals/fails"),i=e("../internals/global"),o=(e=e("../internals/function-uncurry-this"),i=(i=i.Uint8Array)&&i.prototype||{},[].toString),a=e([].join);s(function(){o.call({})})&&(o=function(){return a(this)}),e=i.toString!=o;n("toString",o,e)},{"../internals/array-buffer-view-core":100,"../internals/fails":147,"../internals/function-uncurry-this":154,"../internals/global":160}],337:[function(e,t,r){e("../internals/typed-array-constructor")("Uint8",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":255}],338:[function(e,t,r){function n(t){if(t&&t.forEach!==c)try{l(t,"forEach",c)}catch(e){t.forEach=c}}var s,i=e("../internals/global"),o=e("../internals/dom-iterables"),a=e("../internals/dom-token-list-prototype"),c=e("../internals/array-for-each"),l=e("../internals/create-non-enumerable-property");for(s in o)o[s]&&n(i[s]&&i[s].prototype);n(a)},{"../internals/array-for-each":104,"../internals/create-non-enumerable-property":126,"../internals/dom-iterables":133,"../internals/dom-token-list-prototype":134,"../internals/global":160}],339:[function(e,t,r){function n(t,e){if(t){if(t[u]!==f)try{l(t,u,f)}catch(e){t[u]=f}if(t[p]||l(t,p,e),o[e])for(var r in c)if(t[r]!==c[r])try{l(t,r,c[r])}catch(e){t[r]=c[r]}}}var s,i=e("../internals/global"),o=e("../internals/dom-iterables"),a=e("../internals/dom-token-list-prototype"),c=e("../modules/es.array.iterator"),l=e("../internals/create-non-enumerable-property"),u=(e=e("../internals/well-known-symbol"))("iterator"),p=e("toStringTag"),f=c.values;for(s in o)n(i[s]&&i[s].prototype,s);n(a,"DOMTokenList")},{"../internals/create-non-enumerable-property":126,"../internals/dom-iterables":133,"../internals/dom-token-list-prototype":134,"../internals/global":160,"../internals/well-known-symbol":265,"../modules/es.array.iterator":275}],340:[function(e,t,r){function n(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e}
5,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===n(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===n(e)},r.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:89}],341:[function(e,t,r){!function(e){"use strict";b=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,g=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,v=/[^-+\dA-Z]/g;var b,g,v,j=function(e,t,r,n){if(1!==arguments.length||"string"!==function(e){return null===e?"null":void 0===e?"undefined":"object"!=typeof e?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var s,o=e[(i=("UTC:"!==(i=(t=String(j.masks[t]||t||j.masks.default)).slice(0,4))&&"GMT:"!==i||(t=t.slice(4),r=!0,"GMT:"===i&&(n=!0)),r?"getUTC":"get"))+"Date"](),a=e[i+"Day"](),c=e[i+"Month"](),l=e[i+"FullYear"](),u=e[i+"Hours"](),p=e[
5i+"Minutes"](),f=e[i+"Seconds"](),i=e[i+"Milliseconds"](),d=r?0:e.getTimezoneOffset(),h=(h=e,(h=new Date(h.getFullYear(),h.getMonth(),h.getDate())).setDate(h.getDate()-(h.getDay()+6)%7+3),(m=new Date(h.getFullYear(),0,4)).setDate(m.getDate()-(m.getDay()+6)%7+3),s=h.getTimezoneOffset()-m.getTimezoneOffset(),h.setHours(h.getHours()-s),s=(h-m)/6048e5,1+Math.floor(s)),m=function(e){return 0===(e=e.getDay())&&(e=7),e}(e),y={d:o,dd:w(o),ddd:j.i18n.dayNames[a],dddd:j.i18n.dayNames[a+7],m:c+1,mm:w(c+1),mmm:j.i18n.monthNames[c],mmmm:j.i18n.monthNames[c+12],yy:String(l).slice(2),yyyy:l,h:u%12||12,hh:w(u%12||12),H:u,HH:w(u),M:p,MM:w(p),s:f,ss:w(f),l:w(i,3),L:w(Math.round(i/10)),t:u<12?"a":"p",tt:u<12?"am":"pm",T:u<12?"A":"P",TT:u<12?"AM":"PM",Z:n?"GMT":r?"UTC":(String(e).match(g)||[""]).pop().replace(v,""),o:(0<d?"-":"+")+w(100*Math.floor(Math.abs(d)/60)+Math.abs(d)%60,4),S:["th","st","nd","rd"][3<o%10?0:(o%100-o%10!=10)*o%10],W:h,N:m};return t.replace(b,function(e){return e in y?y[e]:e.slice(1,e.length-1)})};function w(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}j.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},j.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},"object"==typeof r?t.exports=j:e.dateFormat=j}(this)},{}],342:[function(e,t,r){"use strict";var o=/["'&<>]/;t.exports=function(e){var t,r=""+e;if(!(e=o.exec(r)))return r;var n="",s=0,i=0;for(s=e.index;s<r.length;s++){switch(r.charCodeAt(s)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==s&&(n+=r.substring(i,s)),i=s+1,n+=t}return i!==s?n+r.substring(i,s):n}},{}],343:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function c(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function u(e){return void 0===e}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.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},n.prototype.emit=function(e){var t,r,n,s,i,o,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length))throw(a=arguments[1])instanceof Error?a:((o=new Error('Uncaught, unspecified "error" event. ('+a+")")).context=a,o);if(u(t=this._events[e]))return!1;if(c(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),t.apply(this,n)}else if(l(t))for(n=Array.prototype.slice.call(arguments,1),r=(i=t.slice()).length,s=0;s<r;s++)i[s].apply(this,n);return!0},n.prototype.on=n.prototype.addListener=function(e,t){if(c(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,c(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(t=u(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(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;throw TypeError("listener must be a function")},n.prototype.once=function(e,t){if(!c(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,s,i;if(!c(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,n=-1,r===t||c(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit
5("removeListener",e,t);else if(l(r)){for(i=s;0<i--;)if(r[i]===t||r[i].listener&&r[i].listener===t){n=i;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;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(c(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return e=this._events&&this._events[e]?c(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){if(c(e=this._events[e]))return 1;if(e)return e.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],344:[function(e,t,r){var n,s=e("http"),i=t.exports;for(n in s)s.hasOwnProperty(n)&&(i[n]=s[n]);i.request=function(e,t){return(e=e||{}).scheme="https",e.protocol="https:",s.request.call(this,e,t)}},{http:442}],345:[function(e,t,r){"use strict";var n=e("util"),s=e("ms");t.exports=function(e){if("number"==typeof e)return e;var t=s(e);return void 0===t&&(e=new Error(n.format("humanize-ms(%j) result undefined",e)),console.warn(e.stack)),t}},{ms:361,util:394}],346:[function(e,t,r){r.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,c=(1<<a)-1,l=c>>1,u=-7,p=r?s-1:0,f=r?-1:1;s=e[t+p];for(p+=f,i=s&(1<<-u)-1,s>>=-u,u+=a;0<u;i=256*i+e[t+p],p+=f,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;0<u;o=256*o+e[t+p],p+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return o?NaN:1/0*(s?-1:1);o+=Math.pow(2,n),i-=l}return(s?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,s,i){var o,a,c=8*i-s-1,l=(1<<c)-1,u=l>>1,p=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,d=n?1:-1;i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+u?p/n:p*Math.pow(2,1-u))*n&&(o++,n/=2),l<=o+u?(a=0,o=l):1<=o+u?(a=(t*n-1)*Math.pow(2,s),o+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,s),o=0));8<=s;e[r+f]=255&a,f+=d,a/=256,s-=8);for(o=o<<s|a,c+=s;0<c;e[r+f]=255&o,f+=d,o/=256,c-=8);e[r+f-d]|=128*i}},{}],347:[function(e,t,r){"use strict";var n,s,i,o=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,c=[],l=!1;function u(){n&&s&&(n=!1,s.length?c=s.concat(c):a=-1,c.length&&p())}function p(){if(!n){n=!(l=!1);for(var e=c.length,t=setTimeout(u);e;){for(s=c,c=[];s&&++a<e;)s[a].run();a=-1,e=c.length}s=null,n=!(a=-1),clearTimeout(t)}}for(var f=-1,d=o.length;++f<d;)if(o[f]&&o[f].test&&o[f].test()){i=o[f].install(p);break}function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},t.exports=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),l||n||(l=!0,i())}},{"./messageChannel":348,"./mutation.js":349,"./nextTick":87,"./queueMicrotask":350,"./stateChange":351,"./timeout":352}],348:[function(e,t,n){(function(r){(function(){"use strict";n.test=function(){return!r.setImmediate&&void 0!==r.MessageChannel},n.install=function(e){var t=new r.MessageChannel;return t.port1.onmessage=e,function(){t.port2.postMessage(0)}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],349:[function(e,t,r){(function(s){(function(){"use strict";var n=s.MutationObserver||s.WebKitMutationObserver;r.test=function(){return n},r.install=function(e){var t=0,r=(e=new n(e),s.document.createTextNode(""));return e.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],350:[function(e,t,r){(function(t){(function(){"use strict";r.test=function(){return"function"==typeof t.queueMicrotask},r.install=function(e){return function(){t.queueMicrotask(e)}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],351:[function(e,t,n){(function(r){(function(){"use strict";n.test=function(){return"document"in r&&"onreadystatechange"in r.document.createElement("script")},n.install=function(t){return function(){var e=r.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},r.document.documentElement.appendChild(e),t}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],352:[function(e,t,r){"use strict";r.test=function(){return!0},r.install=function(e){return function(){setTimeout(e,0)}}},{}],353:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},{}],354:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))||!!e._isBuffer);var t}},{}],355:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],356:[function(e,k,n){(function(r){(function(){var e,t;e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:this,t=function(t){"use strict";function r(e){var t;return e.length<2?(t=e.charCodeAt(0))<128?e:t<2048?b(192|t>>>6)+b(128|63&t):b(224|t>>>12&15)+b(128|t>>>6&63)+b(128|63&t):(t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320),b(240|t>>>18&7)+b(128|t>>>12&63)+b(128|t>>>6&63)+b(128|63&t))}function n(e){var t=[0,2,1][e.length%3];e=e.charCodeAt(0)<<16|(1<e.length?e.charCodeAt(1):0)<<8|(2<e.length?e.charCodeAt(2):0);return[m.charAt(e>>>18),m.charAt(e>>>12&63),2<=t?"=":m.charAt(e>>>6&63),1<=t?"=":m.charAt(63&e)].join("")}function s(e){return j(v(String(e)))}function c(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")}function i(e,t){return t?c(s(e)):s(e)}function o(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return b(55296+(t>>>10))+b(56320+(1023&t));case 3:return b((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return b((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}}function a(e){var t=(r=e.length)%4,r=(0<r?y[e.charAt(0)]<<18:0)|(1<r?y[e.charAt(1)]<<12:0)|(2<r?y[e.charAt(2)]<<6:0)|(3<r?y[e.charAt(3)]:0);return(e=[b(r>>>16),b(r>>>8&255),b(255&r)]).length-=[0,0,2,1][t],e.join("")}function l(e){return T(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))}function u(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")}function e(e){return e=u(e),x(T(e))}var p,f,d,h=(t=t||{}).Base64,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+/",y=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(m),b=String.fromCharCode,g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(g,r)},j=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,n)},w=(t.Uint8Array&&(p=function(e,t){for(var r="",n=0,s=e.length;n<s;n+=3){var i=e[n],o=e[n+1],a=e[n+2];i=i<<16|o<<8|a;r+=m.charAt(i>>>18)+m.charAt(i>>>12&63)+(void 0!==o?m.charAt(i>>>6&63):"=")+(void 0!==a?m.charAt(63&i):"=")}return t?c(r):r}),/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g),x=function(e){return e.replace(w,o)},T=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,a)};return t.Uint8Array&&(f=function(e){return Uint8Array.from(l(u(e)),function(e){return e.charCodeAt(0)})}),t.Base64={VERSION:"2.6.4",atob:l,btoa:j,fromBase64:e,toBase64:i,utob:v,encode:i,encodeURI:function(e){return i(e,!0)},btou:x,decode:e,noConflict:function(){var e=t.Base64;return t.Base64=h,e},fromUint8Array:p,toUint8Array:f},"function"==typeof Object.defineProperty&&(d=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",d(function(){return e(this)})),Object.defineProperty(String.prototype,"toBase64",d(function(e){return i(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",d(function(){return i(this,!0)}))}),t.Meteor&&(Base64=t.Base64),void 0!==k&&k.exports&&(k.exports.Base64=t.Base64),{Base64:t.Base64}},"object"==typeof n&&void 0!==k?k.exports=t(e):t(e)}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],357:[function(e,t,r){"use strict";t.exports=function(r,n,s){if(!r)throw new TypeError("argument dest is required");if(!n)throw new TypeError("argument src is required");return void 0===s&&(s=!0),Object.getOwnPropertyNames(n).forEach(function(e){var t;!s&&i.call(r,e)||(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t))}),r};var i=Object.prototype.hasOwnProperty},{}],358:[function(e,t,r){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.regexp.constructor.js"),e("core-js/modules/es.regexp.to-string.js"),n.prototype.define=function(e,t){for(var r in e){for(var n,s=e[r].map(function(e){return e.toLowerCase()}),i=(r=r.toLowerCase(),0);i<s.length;i++){var o=s[i];
vendor: 7,690 bytes, line 5
5if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}!t&&this._extensions[r]||(n=s[0],this._extensions[r]="*"!==n[0]?n:n.substr(1))}},n.prototype.getType=function(e){var t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase();e=t.length<e.length;return(r.length<t.length-1||!e)&&this._types[r]||null},n.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},t.exports=n},{"core-js/modules/es.array.map.js":277,"core-js/modules/es.regexp.constructor.js":298,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.replace.js":304}],359:[function(e,t,r){"use strict";var n=e("./Mime");t.exports=new n(e("./types/standard"))},{"./Mime":358,"./types/standard":360}],360:[function(e,t,r){"use strict";t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
5off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],361:[function(e,t,r){var s=864e5;function i(e,t,r,n){return t=1.5*r<=t,Math.round(e/r)+" "+n+(t?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if(!("string"==r&&0<e.length)){if("number"==r&&isFinite(e))return(t.long?function(e){var t=Math.abs(e);return s<=t?i(e,t,s,"day"):36e5<=t?i(e,t,36e5,"hour"):6e4<=t?i(e,t,6e4,"minute"):1e3<=t?i(e,t,1e3,"second"):e+" ms"}:function(e){var t=Math.abs(e);return s<=t?Math.round(e/s)+"d":36e5<=t?Math.round(e/36e5)+"h":6e4<=t?Math.round(e/6e4)+"m":1e3<=t?Math.round(e/1e3)+"s":e+"ms"})(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}if(r=e,!(100<(r=String(r)).length)&&(r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r))){var n=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*s;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}},{}],362:[function(e,t,r){"use strict";var c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var i in r=Object(arguments[s]))l.call(r,i)&&(n[i]=r[i]);if(c)for(var o=c(r),a=0;a<o.length;a++)u.call(r,o[a])&&(n[o[a]]=r[o[a]])}return n}},{}],363:[function(e,t,l){(function(o){(function(){function s(e,t){for(var r=0,n=e.length-1;0<=n;n--){var s=e[n];"."===s?e.splice(n,1):".."===s?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}l.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:o.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=s(i(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},l.normalize=function(e){var t=l.isAbsolute(e),r="/"===n(e,-1);
5return(e=(e=s(i(e.split("/"),function(e){return!!e}),!t).join("/"))||t?e:".")&&r&&(e+="/"),(t?"/":"")+e},l.isAbsolute=function(e){return"/"===e.charAt(0)},l.join=function(){var e=Array.prototype.slice.call(arguments,0);return l.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},l.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=l.resolve(e).substr(1),t=l.resolve(t).substr(1);for(var n=r(e.split("/")),s=r(t.split("/")),i=Math.min(n.length,s.length),o=i,a=0;a<i;a++)if(n[a]!==s[a]){o=a;break}var c=[];for(a=o;a<n.length;a++)c.push("..");return(c=c.concat(s.slice(o))).join("/")},l.sep="/",l.delimiter=":",l.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=47===e.charCodeAt(0),r=-1,n=!0,s=e.length-1;1<=s;--s)if(47===e.charCodeAt(s)){if(!n){r=s;break}}else n=!1;return-1===r?t?"/":".":t&&1===r?"/":e.slice(0,r)},l.basename=function(e,t){return e=function(e){"string"!=typeof e&&(e+="");for(var t=0,r=-1,n=!0,s=e.length-1;0<=s;--s)if(47===e.charCodeAt(s)){if(!n){t=s+1;break}}else-1===r&&(n=!1,r=s+1);return-1===r?"":e.slice(t,r)}(e),t&&e.substr(-1*t.length)===t?e.substr(0,e.length-t.length):e},l.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,s=!0,i=0,o=e.length-1;0<=o;--o){var a=e.charCodeAt(o);if(47===a){if(s)continue;r=o+1;break}-1===n&&(s=!1,n=o+1),46===a?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1)}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var n="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this)}).call(this,e("_process"))},{_process:441}],364:[function(e,o,c){(function(i){(function(){(function(){"use strict";var t,D=(e={function:!0,object:!0})[typeof window]&&window||this,r=e[typeof c]&&c,e=e[typeof o]&&o&&!o.nodeType&&o,a=(!(t=r&&e&&"object"==typeof i&&i)||t.global!==t&&t.window!==t&&t.self!==t||(D=t),Math.pow(2,53)-1),I=/\bOpera/,n=(t=Object.prototype).hasOwnProperty,C=t.toString;function s(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function N(e){return e=B(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:s(e)}function R(e,t){for(var r in e)n.call(e,r)&&t(e[r],r,e)}function P(e){return null==e?s(e):C.call(e).slice(8,-1)}function M(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function L(r,n){var s=null,e=r,t=function(e,t){s=n(s,e,t,r)},i=-1,o=e?e.length:0;if("number"==typeof o&&-1<o&&o<=a)for(;++i<o;)t(e[i],i);else R(e,t);return s}function B(e){return String(e).replace(/^ +| +$/g,"")}t=function q(i){var t,r,e,n,s=D,a=((o=i&&"object"==typeof i&&"String"!=P(i))&&(s=i,i=null),s.navigator||{}),c=a.userAgent||"",l=(i=i||c,o?!!a.likeChrome:/\bChrome\b/.test(i)&&!/internal|\n/i.test(C.toString())),u="Object",p=o?u:"ScriptBridgingProxyObject",f=o?u:"Environment",d=o&&s.java?"JavaPackage":P(s.java),h=(u=o?u:"RuntimeObject",f=(d=/\bJava/.test(d)&&s.java)&&P(s.environment)==f,d?"a":"α"),m=d?"b":"β",y=s.document||{},b=s.operamini||s.opera,o=I.test(o=o&&b?b["[[Class]]"]:P(b))?o:b=null,g=i,v=[],j=null,w=(c=i==c)&&b&&"function"==typeof b.version&&b.version(),x=L([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(e,t){return e||RegExp("\\b"+(t.pattern||M(t))+"\\b","i").exec(i)&&(t.label||t)}),T=L(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(e,t){return e||RegExp("\\b"+(t.pattern||M(t))+"\\b","i").exec(i)&&(t.label||t)}
vendor: 14,465 bytes, line 5
5),k=S([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),E=L({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(e,t,r){return e||(t[k]||t[/^[a-z]+(?: +[a-z]+\b)*/i.exec(k)]||RegExp("\\b"+M(r)+"(?:\\b|\\w*\\d)","i").exec(i))&&r}),_=L(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(e,t){var r,n,s=t.pattern||M(t);return!e&&(e=RegExp("\\b"+s+"(?:/[\\d.]+|[ \\w.]*)","i").exec(i))&&(r=e,t=t.label||t,n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},s&&t&&/^Win/i.test(r)&&!/^Windows Phone /i.test(r)&&(n=n[/[\d.]+$/.exec(r)])&&(r="Windows "+n),r=String(r),e=r=N((r=s&&t?r.replace(RegExp(s,"i"),t):r).replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),e});function S(e){return L(e,function(e,t){var r=t.pattern||M(t);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(i)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(i)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(i))&&((e=String(t.label&&!RegExp(r,"i").test(t.label)?t.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),t=t.label||t,e=N(e[0].replace(RegExp(r,"i"),t).replace(RegExp("; *(?:"+t+"[_-])?","i")," ").replace(RegExp("("+t+")[-_.]?(\\w)","i"),"$1 $2"))),e})}function O(e){return L(e,function(e,t){return e||(RegExp(t+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(i)||0)[1]||null})}if(x=x&&[x],/\bAndroid\b/.test(_)&&!k&&(t=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(i))&&(k=B(t[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),E&&!k?k=S([E]):E&&k&&(k=k.replace(RegExp("^("+M(E)+")[-_.\\s]","i"),E+" ").replace(RegExp("^("+M(E)+")[-_.]?(\\w)","i"),E+" $2")),(t=/\bGoogle TV\b/.exec(k))&&(k=t[0]),/\bSimulator\b/i.test(i)&&(k=(k?k+" ":"")+"Simulator"),"Opera Mini"==T&&/\bOPiOS\b/.test(i)&&v.push("running in Turbo/Uncompressed mode"),"IE"==T&&/\blike iPhone OS\b/.test(i)?(E=(t=q(i.replace(/like iPhone OS/,""))).manufacturer,k=t.product):/^iP/.test(k)?(T=T||"Safari",_="iOS"+((t=/ OS ([\d_]+)/i.exec(i))?" "+t[1].replace(/_/g,"."):"")):"Konqueror"==T&&/^Linux\b/i.test(_)?_="Kubuntu":E&&"Google"!=E&&(/Chrome/.test(T)&&!/\bMobile Safari\b/i.test(i)||/\bVita\b/.test(k))||/\bAndroid\b/.test(_)&&/^Chrome/.test(T)&&/\bVersion\//i.test(i)?(T="Android Browser",_=/\bAndroid\b/.test(_)?_:"Android"):"Silk"==T?(/\bMobi/i.test(i)||(_="Android",v.unshift("desktop mode")),/Accelerated *= *true/i.test(i)&&v.unshift("accelerated")):"UC Browser"==T&&/\bUCWEB\b/.test(i)?v.push("speed mode"):"PaleMoon"==T&&(t=/\bFirefox\/([\d.]+)\b/.exec(i))?v.push("identifying as Firefox "+t[1]):"Firefox"==T&&(t=/\b(Mobile|Tablet|TV)\b/i.exec(i))?(_=_||"Firefox OS",k=k||t[1]):!T||(t=!/\bMinefield\b/i.test(i)&&/\b(?:Firefox|Safari)\b/.exec(T))?(T&&!k&&/[\/,]|^[^(]+?\)/.test(i.slice(i.indexOf(t+"/")+8))&&(T=null),(t=k||E||_)&&(k||E||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(_))&&(T=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(_)?_:t)+" Browser")):"Electron"==T&&(t=(/\bChrome\/([\d.]+)\b/.exec(i)||0)[1])&&v.push("Chromium "+t),w=w||O(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",M(T),"(?:Firefox|Minefield|NetFront)"]),(t=("iCab"==x&&3<parseFloat(w)?"WebKit":/\bOpera\b/.test(T)&&(/\bOPR\b/.test(i)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(i)&&!/^(?:Trident|EdgeHTML)$/.test(x)&&"WebKit"||!x&&/\bMSIE\b/i.test(i)&&("Mac OS"==_?"Tasman":"Trident")||"WebKit"==x&&/\bPlayStation\b(?! Vita\b)/i.test(T)&&"NetFront")&&(x=[t]),"IE"==T&&(t=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(i)||0)[1])?(T+=" Mobile",_="Windows Phone "+(/\+$/.test(t)?t:t+".x"),v.unshift("desktop mode")):/\bWPDesktop\b/i.test(i)?(T="IE Mobile",_="Windows Phone 8.x",v.unshift("desktop mode"),w=w||(/\brv:([\d.]+)/.exec(i)||0)[1]):"IE"!=T&&"Trident"==x&&(t=/\brv:([\d.]+)/.exec(i))&&(T&&v.push("identifying as "+T+(w?" "+w:"")),T="IE",w=t[1]),c){if(n="global",A=null!=(e=s)?typeof e[n]:"number",/^(?:boolean|number|string|undefined)$/.test(A)||"object"==A&&!e[n])P(t=s.runtime)==p?(T="Adobe AIR",_=t.flash.system.Capabilities.os):P(t=s.phantom)==u?(T="PhantomJS",w=(t=t.version||null)&&t.major+"."+t.minor+"."+t.patch):"number"==typeof y.documentMode&&(t=/\bTrident\/(\d+)/i.exec(i))?(w=[w,y.documentMode],(t=+t[1]+4)!=w[1]&&(v.push("IE "+w[1]+" mode"),x&&(x[1]=""),w[1]=t),w="IE"==T?String(w[1].toFixed(1)):w[0]):"number"==typeof y.documentMode&&/^(?:Chrome|Firefox)\b/.test(T)&&(v.push("masking as "+T+" "+w),T="IE",w="11.0",x=["Trident"],_="Windows");else if(d&&(g=(t=d.lang.System).getProperty("os.arch"),_=_||t.getProperty("os.name")+" "+t.getProperty("os.version")),f){try{w=s.require("ringo/engine").version.join("."),T="RingoJS"}catch(e){(t=s.system)&&t.global.system==s.system&&(T="Narwhal",_=_||t[0].os||null)}T=T||"Rhino"}else"object"==typeof s.process&&!s.process.browser&&(t=s.process)&&("object"==typeof t.versions&&("string"==typeof t.versions.electron?(v.push("Node "+t.versions.node),T="Electron",w=t.versions.electron):"string"==typeof t.versions.nw&&(v.push("Chromium "+w,"Node "+t.versions.node),T="NW.js",w=t.versions.nw)),T||(T="Node.js",g=t.arch,_=t.platform,w=(w=/[\d.]+/.exec(t.version))?w[0]:null));_=_&&N(_)}if(w&&(t=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(w)||/(?:alpha|beta)(?: ?\d)?/i.exec(i+";"+(c&&a.appMinorVersion))||/\bMinefield\b/i.test(i)&&"a")&&(j=/b/i.test(t)?"beta":"alpha",w=w.replace(RegExp(t+"\\+?$"),"")+("beta"==j?m:h)+(/\d+\+?/.exec(t)||"")),"Fennec"==T||"Firefox"==T&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(_))T="Firefox Mobile";else if("Maxthon"==T&&w)w=w.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(k))"Xbox 360"==k&&(_=null),"Xbox 360"==k&&/\bIEMobile\b/.test(i)&&v.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(T)&&(!T||k||/Browser|Mobi/.test(T))||"Windows CE"!=_&&!/Mobi/i.test(i))if("IE"==T&&c)try{null===s.external&&v.unshift("platform preview")}catch(e){v.unshift("embedded")}else(/\bBlackBerry\b/.test(k)||/\bBB10\b/.test(i))&&(t=(RegExp(k.replace(/ +/g," *")+"/([.\\d]+)","i").exec(i)||0)[1]||w)?(_=((t=[t,/BB10/.test(i)])[1]?(k=null,E="BlackBerry"):"Device Software")+" "+t[0],w=null):this!=R&&"Wii"!=k&&(c&&b||/Opera/.test(T)&&/\b(?:MSIE|Firefox)\b/i.test(i)||"Firefox"==T&&/\bOS X (?:\d+\.){2,}/.test(_)||"IE"==T&&(_&&!/^Win/.test(_)&&5.5<w||/\bWindows XP\b/.test(_)&&8<w||8==w&&!/\bTrident\b/.test(i)))&&!I.test(t=q.call(R,i.replace(I,"")+";"))&&t.name&&(t="ing as "+t.name+((t=t.version)?" "+t:""),I.test(T)?(/\bIE\b/.test(t)&&"Mac OS"==_&&(_=null),t="identify"+t):(t="mask"+t,T=o?N(o.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(t)&&(_=null),c||(w=null)),x=["Presto"],v.push(t));else T+=" Mobile";(t=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(i)||0)[1])&&(t=[parseFloat(t.replace(/\.(\d)$/,".0$1")),t],"Safari"==T&&"+"==t[1].slice(-1)?(T="WebKit Nightly",j="alpha",w=t[1].slice(0,-1)):w!=t[1]&&w!=(t[2]=(/\bSafari\/([\d.]+\+?)/i.exec(i)||0)[1])||(w=null),t[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(i)||0)[1],537.36==t[0]&&537.36==t[2]&&28<=parseFloat(t[1])&&"WebKit"==x&&(x=["Blink"]),t=c&&(l||t[1])?(x&&(x[1]="like Chrome"),t[1]||((t=t[0])<530?1:t<532?2:t<532.05?3:t<533?4:t<534.03?5:t<534.07?6:t<534.1?7:t<534.13?8:t<534.16?9:t<534.24?10:t<534.3?11:t<535.01?12:t<535.02?"13+":t<535.07?15:t<535.11?16:t<535.19?17:t<536.05?18:t<536.1?19:t<537.01?20:t<537.11?"21+":t<537.13?23:t<537.18?24:t<537.24?25:t<537.36?26:"Blink"!=x?"27":"28")):(x&&(x[1]="like Safari"),(t=t[0])<400?1:t<500?2:t<526?3:t<533?4:t<534?"4+":t<535?5:t<537?6:t<538?7:t<601?8:t<602?9:t<604?10:t<606?11:t<608?12:"12"),x&&(x[1]+=" "+(t+="number"==typeof t?".x":/[.+]/.test(t)?"":"+")),"Safari"==T&&(!w||45<parseInt(w))?w=t:"Chrome"==T&&/\bHeadlessChrome/i.test(i)&&v.unshift("headless")),"Opera"==T&&(t=/\bzbov|zvav$/.exec(_))?(T+=" ",v.unshift("desktop mode"),"zvav"==t?(T+="Mini",w=null):T+="Mobile",_=_.replace(RegExp(" *"+t+"$"),"")):"Safari"==T&&/\bChrome\b/.exec(x&&x[1])?(v.unshift("desktop mode"),T="Chrome Mobile",w=null,_=/\bOS X\b/.test(_)?(E="Apple","iOS 4.3+"):null):/\bSRWare Iron\b/.test(T)&&!w&&(w=O("Chrome")),(_=w&&0==w.indexOf(t=/[\d.]+$/.exec(_))&&-1<i.indexOf("/"+t+"-")?B(_.replace(t,"")):_)&&-1!=_.indexOf(T)&&!RegExp(T+" OS").test(_)&&(_=_.replace(RegExp(" *"+M(T)+" *"),"")),x&&!/\b(?:Avant|Nook)\b/.test(T)&&(/Browser|Lunascape|Maxthon/.test(T)||"Safari"!=T&&/^iOS/.test(_)&&/\bSafari\b/.test(x[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(T)&&x[1])&&(t=x[x.length-1])&&v.push(t),v.length&&(v=["("+v.join("; ")+")"]),E&&k&&k.indexOf(E)<0&&v.push("on "+E),k&&v.push((/^on /.test(v[v.length-1])?"":"on ")+k),_&&(t=/ ([\d.+]+)$/.exec(_),r=t&&"/"==_.charAt(_.length-t[0].length-1),_={architecture:32,family:t&&!r?_.replace(t[0],""):_,version:t?t[1]:null,toString:function(){var e=this.version;return this.family+(e&&!r?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(t=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(g))&&!/\bi686\b/i.test(g)?(_&&(_.architecture=64,_.family=_.family.replace(RegExp(" *"+t),"")),T&&(/\bWOW64\b/i.test(i)||c&&/\w(?:86|32)$/.test(a.cpuClass||a.platform)&&!/\bWin64; x64\b/i.test(i))&&v.unshift("32-bit")):_&&/^OS X/.test(_.family)&&"Chrome"==T&&39<=parseFloat(w)&&(_.architecture=64),i=i||null;var A={};return A.description=i,A.layout=x&&x[0],A.manufacturer=E,A.name=T,A.prerelease=j,A.product=k,A.ua=i,A.version=T&&w,A.os=_||{architecture:null,family:null,version:null,toString:function(){return"null"}},A.parse=q,A.toString=function(){return this.description||""},A.version&&v.unshift(w),A.name&&v.unshift(T),_&&T&&(_!=String(_).split(" ")[0]||_!=T.split(" ")[0]&&!k)&&v.push(k?"("+_+")":"on "+_),v.length&&(A.description=v.join(" ")),A}(),r&&e?R(t,function(e,t){r[t]=e}):D.platform=t}).call(this)}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],365:[function(e,t,r){(function(a){(function(){"use strict";void 0===a||!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,i,o=arguments.length;switch(o){case 0:case 1:return a.nextTick(e);case 2:return a.nextTick(function(){e.call(null,t)});case 3:return a.nextTick(function(){e.call(null,t,r)});case 4:return a.nextTick(function(){e.call(null,t,r,n)});default:for(s=new Array(o-1),i=0;i<s.length;)s[i++]=arguments[i];return a.nextTick(function(){e.apply(null,s)})}}}:t.exports=a}).call(this)}).call(this,e("_process"))},{_process:441}],366:[function(e,t,r){var n,s;t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{s="function"==typeof clearTimeout?clearTimeout:o}catch(e){s=o}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var c,l=[],u=!1,p=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!u){for(var e=a(f),t=(u=!0,l.length);t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,u=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===o||!s)&&clearTimeout)return(s=clearTimeout)(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||u||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],367:[function(e,O,A){(function(S){(function(){var e=this,t="object"==typeof A&&A&&!A.nodeType&&A,r="object"==typeof O&&O&&!O.nodeType&&O,n="object"==typeof S&&S;n.global!==n&&n.window!==n&&n.self!==n||(e=n);var s,i,y=2147483647,b=36,c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
5= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,j=String.fromCharCode;function w(e){throw new RangeError(p[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function h(e,t){var n="",r=(1<(r=e.split("@")).length&&(n=r[0]+"@",e=r[1]),(e=e.replace(u,".")).split("."));return n+d(r,t).join(".")}function x(e){for(var t,r,n=[],s=0,i=e.length;s<i;)55296<=(t=e.charCodeAt(s++))&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function m(e){return d(e,function(e){var t="";return 65535<e&&(t+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+j(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,r){var n=0;for(e=r?v(e/700):e>>1,e+=v(e/t);455<e;n+=b)e=v(e/35);return v(n+36*e/(e+38))}function E(e){var t,r,n,s,i,o,a,c=[],l=e.length,u=0,p=128,f=72,d=e.lastIndexOf("-");for(d<0&&(d=0),r=0;r<d;++r)128<=e.charCodeAt(r)&&w("not-basic"),c.push(e.charCodeAt(r));for(n=0<d?d+1:0;n<l;){for(s=u,i=1,o=b;l<=n&&w("invalid-input"),a=e.charCodeAt(n++),(b<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:b)||a>v((y-u)/i))&&w("overflow"),u+=a*i,!(a<(a=o<=f?1:f+26<=o?26:o-f));o+=b)i>v(y/(a=b-a))&&w("overflow"),i*=a;f=k(u-s,t=c.length+1,0==s),v(u/t)>y-p&&w("overflow"),p+=v(u/t),u%=t,c.splice(u++,0,p)}return m(c)}function _(e){for(var t,r,n,s,i,o,a,c,l,u,p=[],f=(e=x(e)).length,d=128,h=72,m=t=0;m<f;++m)(a=e[m])<128&&p.push(j(a));for(r=n=p.length,n&&p.push("-");r<f;){for(s=y,m=0;m<f;++m)d<=(a=e[m])&&a<s&&(s=a);for(s-d>v((y-t)/(c=r+1))&&w("overflow"),t+=(s-d)*c,d=s,m=0;m<f;++m)if((a=e[m])<d&&++t>y&&w("overflow"),a==d){for(i=t,o=b;!(i<(l=o<=h?1:h+26<=o?26:o-h));o+=b)p.push(j(T(l+(u=i-l)%(l=b-l),0))),i=v(u/l);p.push(j(T(i,0))),h=k(t,c,r==n),t=0,++r}++t,++d}return p.join("")}if(s={version:"1.4.1",ucs2:{decode:x,encode:m},decode:E,encode:_,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return h(e,function(e){return c.test(e)?E(e.slice(4).toLowerCase()):e})}},t&&r)if(O.exports==t)r.exports=s;else for(i in s)s.hasOwnProperty(i)&&(t[i]=s[i]);else e.punycode=s}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],368:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g,o=(t=(e=e.split(t=t||"&"),1e3),n&&"number"==typeof n.maxKeys&&(t=n.maxKeys),e.length);0<t&&t<o&&(o=t);for(var a=0;a<o;++a){var c,u=0<=(u=(l=e[a].replace(i,"%20")).indexOf(r))?(c=l.substr(0,u),l.substr(u+1)):(c=l,""),l=decodeURIComponent(c);u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(s,l)?p(s[l])?s[l].push(u):s[l]=[s[l],u]:s[l]=u}return s};var p=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],369:[function(e,t,r){"use strict";function i(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}t.exports=function(r,n,s,e){return n=n||"&",s=s||"=","object"==typeof(r=null===r?void 0:r)?a(c(r),function(e){var t=encodeURIComponent(i(e))+s;return o(r[e])?a(r[e],function(e){return t+encodeURIComponent(i(e))}).join(n):t+encodeURIComponent(i(r[e]))}).join(n):e?encodeURIComponent(i(e))+s+encodeURIComponent(i(r)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var c=Object.keys||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}},{}],370:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":368,"./encode":369}],371:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":372}],372:[function(e,t,r){"use strict";var n=e("process-nextick-args"),s=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},i=((t=(t.exports=u,Object.create(e("core-util-is")))).inherits=e("inherits"),e("./_stream_readable")),o=e("./_
5stream_writable");t.inherits(u,i);for(var a=s(o.prototype),c=0;c<a.length;c++){var l=a[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":374,"./_stream_writable":376,"core-util-is":340,inherits:353,"process-nextick-args":365}],373:[function(e,t,r){"use strict";t.exports=s;var n=e("./_stream_transform");function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}(t=Object.create(e("core-util-is"))).inherits=e("inherits"),t.inherits(s,n),s.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":375,"core-util-is":340,inherits:353}],374:[function(C,N,e){(function(D,I){(function(){"use strict";function m(e,t){return e.listeners(t).length}var i,o,y=C("process-nextick-args"),b=(N.exports=s,C("isarray")),r=(s.ReadableState=n,C("events").EventEmitter,C("./internal/streams/stream")),u=C("safe-buffer").Buffer,p=I.Uint8Array||function(){},e=Object.create(C("core-util-is")),t=(e.inherits=C("inherits"),C("util")),g=void 0,a=(g=t&&t.debuglog?t.debuglog("stream"):function(){},C("./internal/streams/BufferList")),c=(t=C("./internal/streams/destroy"),e.inherits(s,r),["error","close","destroy","pause","resume"]);function n(e,t){t=t instanceof(i=i||C("./_stream_duplex"));var r=(this.objectMode=!!(e=e||{}).objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||C("string_decoder/").StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function s(e){if(i=i||C("./_stream_duplex"),!(this instanceof s))return new s(e);this._readableState=new n(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),r.call(this)}function l(e,t,r,n,s){var i,o,a,c,l=e._readableState;return null===t?(l.reading=!1,o=e,(c=l).ended||(c.decoder&&(a=c.decoder.end())&&a.length&&(c.buffer.push(a),c.length+=c.objectMode?1:a.length),c.ended=!0,v(o))):(i=s?i:function(e,t){var r;return!function(e){return u.isBuffer(e)||e instanceof p}(t)&&"string"!=typeof t&&void 0!==t&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}(l,t))?e.emit("error",i):l.objectMode||t&&0<t.length?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===u.prototype||(a=t,t=u.from(a)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):f(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?f(e,l,t,!1):w(e,l)):f(e,l,t,!1))):n||(l.reading=!1),!(c=l).ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function f(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&v(e)),w(e,t)}Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),s.prototype.destroy=t.destroy,s.prototype._undestroy=t.undestroy,s.prototype._destroy=function(e,t){this.push(null),t(e)},s.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),l(this,e,t,!1,r)},s.prototype.unshift=function(e){return l(this,e,null,!0,!1)},s.prototype.isPaused=function(){return!1===this._readableState.flowing}
5,s.prototype.setEncoding=function(e){return o=o||C("string_decoder/").StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this};var d=8388608;function h(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(d<=(r=e)?r=d:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function v(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(j,e):j(e))}function j(e){g("emit readable"),e.emit("readable"),E(e)}function w(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(g("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){g("readable nexttick read 0"),e.read(0)}function k(e,t){t.reading||(g("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(g("flow",t.flowing);t.flowing&&null!==e.read(););}function _(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():(r?function(e,t){var r=t.head,n=1,s=r.data;for(e-=s.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?s+=i:s+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,s}:function(e,t){var r=u.allocUnsafe(e),n=t.head,s=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++s,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++s}return t.length-=s,r})(e,t),n}(e,t.buffer,t.decoder),r);var r}function S(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,y.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s.prototype.read=function(e){g("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?S:v)(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&S(this),null;var n=t.needReadable;return g("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&g("length less than watermark",n=!0),t.ended||t.reading?g("reading or ended",n=!1):n&&(g("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(r,t))),null===(n=0<e?_(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&S(this)),null!==n&&this.emit("data",n),n},s.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(r,e){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=r;break;case 1:s.pipes=[s.pipes,r];break;default:s.pipes.push(r)}function o(){g("onend"),r.end()}s.pipesCount+=1,g("pipe count=%d opts=%j",s.pipesCount,e),e=e&&!1===e.end||r===D.stdout||r===D.stderr?h:o,s.endEmitted?y.nextTick(e):n.once("end",e),r.on("unpipe",function i(e,t){g("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,g("cleanup"),r.removeListener("close",f),r.removeListener("finish",d),r.removeListener("drain",a),r.removeListener("error",p),r.removeListener("unpipe",i),n.removeListener("end",o),n.removeListener("end",h),n.removeListener("data",u),c=!0,!s.awaitDrain||r._writableState&&!r._writableState.needDrain||a())}),t=n;var t,a=function(){var e=t._readableState;g("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&m(t,"data")&&(e.flowing=!0,E(t))},c=(r.on("drain",a),!1),l=!1;function u(e){g("ondata"),(l=!1)!==r.write(e)||l||((1===s.pipesCount&&s.pipes===r||1<s.pipesCount&&-1!==A(s.pipes,r))&&!c&&(g("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function p(e){g("onerror",e),h(),r.removeListener("error",p),0===m(r,"error")&&r.emit("error",e)}function f(){r.removeListener("finish",d),h()}function d(){g("onfinish"),r.removeListener("close",f),h()}function h(){g("unpipe"),n.unpipe(r)}return n.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
5ndListener(t,r);e._events&&e._events[t]?b(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(r,"error",p),r.once("close",f),r.once("finish",d),r.emit("pipe",n),s.flowing||(g("pipe resume"),n.resume()),r},s.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<s;i++)n[i].emit("unpipe",this,r);return this}var o=A(t.pipes,e);return-1===o||(t.pipes.splice(o,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},s.prototype.addListener=s.prototype.on=function(e,t){return t=r.prototype.on.call(this,e,t),"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&v(this):y.nextTick(T,this)),t},s.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!0,t.resumeScheduled||(t.resumeScheduled=!0,y.nextTick(k,this,t))),this},s.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(t){var e,r=this,n=this._readableState,s=!1;for(e in t.on("end",function(){var e;g("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){g("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(s=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<c.length;i++)t.on(c[i],this.emit.bind(this,c[i]));return this._read=function(e){g("wrapped _read",e),s&&(s=!1,t.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=_}).call(this)}).call(this,C("_process"),void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":372,"./internal/streams/BufferList":377,"./internal/streams/destroy":378,"./internal/streams/stream":379,_process:441,"core-util-is":340,events:343,inherits:353,isarray:355,"process-nextick-args":365,"safe-buffer":385,"string_decoder/":388,util:87}],375:[function(e,t,r){"use strict";t.exports=s;var n=e("./_stream_duplex");function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}(t=Object.create(e("core-util-is"))).inherits=e("inherits"),t.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,n.transforming||(r=this._readableState,(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark))},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":372,"core-util-is":340,inherits:353}],376:[function(T,k,e){(function(l,u,x){(function(){"use strict";var d=T("process-nextick-args");function p(i){var o=this;this.next=null,this.entry=null,this.finish=function(){var e=o,t=i,n=e.entry;for(e.entry=null;n;){var s=n.callback;t.pendingcb--,s(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}k.exports=a;var i,n,f=!l.browser&&-1<["v0.10","v0.9."].indexOf(l.version.slice(0,5))?x:d.nextTick,e=(a.WritableState=o,Object.create(T("core-util-is"))),t=(e.inherits=T("inherits"),{deprecate:T("util-deprecate")}
5),r=T("./internal/streams/stream"),h=T("safe-buffer").Buffer,m=u.Uint8Array||function(){},s=T("./internal/streams/destroy");function y(){}function o(e,u){i=i||T("./_stream_duplex");var t=u instanceof i,r=(this.objectMode=!!(e=e||{}).objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,r=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){n=(r=(t=u)._writableState).sync,s=r.writecb;var t,r,n,s,o,a,c,l,i=r;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e?(i=t,a=n,c=e,l=s,--(o=r).pendingcb,a?(d.nextTick(l,c),d.nextTick(w,i,o),i._writableState.errorEmitted=!0,i.emit("error",c)):(l(c),i._writableState.errorEmitted=!0,i.emit("error",c),w(i,o))):((e=j(r))||r.corked||r.bufferProcessing||!r.bufferedRequest||v(t,r),n?f(g,t,r,e,s):g(t,r,e,s))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}e.inherits(a,r),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function a(e){if(i=i||T("./_stream_duplex"),!(n.call(a,this)||this instanceof i))return new a(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function b(e,t,r,n,s,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(s,t.onwrite):e._write(s,i,t.onwrite),t.sync=!1}function g(e,t,r,n){var s;r||(r=e,0===(s=t).length&&s.needDrain&&(s.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){for(var n=t.bufferedRequestCount,s=new Array(n),i=((n=t.corkedRequestsFree).entry=r,0),o=!0;r;)(s[i]=r).isBuf||(o=!1),r=r.next,i+=1;s.allBuffers=o,b(e,t,!0,t.length,s,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new p(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,c=r.encoding,l=r.callback;if(b(e,t,!1,t.objectMode?1:a.length,a,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function c(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,s=j(t);return s&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,d.nextTick(c,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),s}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===a&&e&&e._writableState instanceof o}})):n=function(e){return e instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(e,t,r){var n,s,i,o,a,c,l,u=this._writableState,p=!1,f=!u.objectMode&&(f=e,h.isBuffer(f)||f instanceof m);return f&&!h.isBuffer(e)&&(a=e,e=h.from(a)),"function"==typeof t&&(r=t,t=null),t=f?"buffer":t||u.defaultEncoding,"function"!=typeof r&&(r=y),u.ended?(a=this,c=r,l=ne
5w Error("write after end"),a.emit("error",l),d.nextTick(c,l)):(f||(c=this,l=u,s=r,o=!(i=!0),null===(n=e)?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||l.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(c.emit("error",o),d.nextTick(s,o),i=!1),i))&&(u.pendingcb++,p=function(e,t,r,n,s,i){r||(o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,s),n!==o&&(r=!0,s="buffer",n=o));var c,o=t.objectMode?1:n.length,a=(t.length+=o,t.length<t.highWaterMark);return a||(t.needDrain=!0),t.writing||t.corked?(c=t.lastBufferedRequest,t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):b(e,t,!1,o,n,s,i),a}(this,u,f,e,t,r)),p},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},a.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||(e=this,t=n,n=r,t.ending=!0,w(e,t),n&&(t.finished?d.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),a.prototype.destroy=s.destroy,a.prototype._undestroy=s.undestroy,a.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,T("_process"),void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},T("timers").setImmediate)},{"./_stream_duplex":372,"./internal/streams/destroy":378,"./internal/streams/stream":379,_process:441,"core-util-is":340,inherits:353,"process-nextick-args":365,"safe-buffer":385,timers:389,"util-deprecate":391}],377:[function(e,t,r){"use strict";var o=e("safe-buffer").Buffer,n=e("util");function s(){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(s.prototype.push=function(e){e={data:e,next:null},0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},s.prototype.unshift=function(e){e={data:e,next:this.head},0===this.length&&(this.tail=e),this.head=e,++this.length},s.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},s.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var r,n=o.allocUnsafe(e>>>0),s=this.head,i=0;s;)r=i,s.data.copy(n,r),i+=s.data.length,s=s.next;return n},s),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":385,util:87}],378:[function(e,t,r){"use strict";var i=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return n||s?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":365}],379:[function(e,t,r){t.exports=e("events").EventEmitter},{events:343}],380:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":381}],381:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":372,"./lib/_stream_passthrough.js":373,"./lib/_stream_readable.js":374,"./lib/_stream_transform.js":375,"./lib/_stream_writable.js":376}],382:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":381}],383:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":376}],384:[function(e,t,r){t=function(o){"use strict";var c,e=Object.prototype,l=e.hasOwnProperty,n=(t="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",s=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function a(e,t,r,n){var s,i,o,a;t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new E(n||[]);return t._invoke=(s=e,i=r,o=n,a=p,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===e)throw t;return S()}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r&&(r=function e(t,r){var n=t.iterator[r.method];if(n===c){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&
5(r.method="return",r.arg=c,e(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}return"throw"===(n=u(n,t.iterator,r.arg)).type?(r.method="throw",r.arg=n.arg,r.delegate=null,m):(n=n.arg)?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=c),r.delegate=null,m):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,o),r)){if(r===m)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(a===p)throw a=h,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(a=d,"normal"===(r=u(s,i,o)).type){if(a=o.done?h:f,r.arg!==m)return{value:r.arg,done:o.done}}else"throw"===r.type&&(a=h,o.method="throw",o.arg=r.arg)}}),t}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=a;var p="suspendedStart",f="suspendedYield",d="executing",h="completed",m={};function y(){}function b(){}function g(){}var t,v,j=((v=(v=(i(t={},n,function(){return this}),Object.getPrototypeOf))&&v(v(_([]))))&&v!==e&&l.call(v,n)&&(t=v),g.prototype=y.prototype=Object.create(t));function w(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function x(o,a){var t;this._invoke=function(r,n){function e(){return new a(function(e,t){!function t(e,r,n,s){var i;if("throw"!==(e=u(o[e],o,r)).type)return(r=(i=e.arg).value)&&"object"==typeof r&&l.call(r,"__await")?a.resolve(r.__await).then(function(e){t("next",e,n,s)},function(e){t("throw",e,n,s)}):a.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,s)});s(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(l.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=c,e.done=!0,e}).next=e}return{next:S}}function S(){return{value:c,done:!0}}return i(j,"constructor",b.prototype=g),i(g,"constructor",b),b.displayName=i(g,s,"GeneratorFunction"),o.isGeneratorFunction=function(e){return!!(e="function"==typeof e&&e.constructor)&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,i(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},o.awrap=function(e){return{__await:e}},w(x.prototype),i(x.prototype,r,function(){return this}),o.AsyncIterator=x,o.async=function(e,t,r,n,s){void 0===s&&(s=Promise);var i=new x(a(e,t,r,n),s);return o.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(j),i(j,s,"Generator"),i(j,n,function(){return this}),i(j,"toString",function(){return"[object Generator]"}),o.keys=function(r){var e,n=[];for(e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=_,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=c)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=c),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var s=this.tryEntries[t],i=s.completion;if("root"===s.tryLoc)return e("end");if(s.tryLoc<=this.prev){var o=l.call(s,"catchLoc"),a=l.call(s,"finallyLoc");if(o&&a){if(this.prev<s.catchLoc)return e(s.catchLoc,!0);if(this.prev<s.finallyLoc)return e(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return e(s.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return e(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}var i=(s=s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc?null:s)?s.completion:{};return i.type=e,i.arg=t,s?(this.method="next",this.next=s.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];
vendor: 14,059 bytes, line 5
5if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,s=this.tryEntries[t];if(s.tryLoc===e)return"throw"===(r=s.completion).type&&(n=r.arg,k(s)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=c),m}},o}("object"==typeof t?t.exports:{});try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},{}],385:[function(e,t,r){var n=e("buffer"),s=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),i(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");return e=s(e),void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:89}],386:[function(L,e,B){(function(r){(function(){var a=void 0===B?this.sax={}:B;a.parser=function(e,t){return new o(e,t)},a.SAXParser=o,a.SAXStream=i,a.createStream=function(e,t){return new i(e,t)},a.MAX_BUFFER_LENGTH=65536;var n,c=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,t){if(!(this instanceof o))return new o(e,t);for(var r=this,n=r,s=0,i=c.length;s<i;s++)n[c[s]]="";r.q=r.c="",r.bufferCheckPosition=a.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=T.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(d)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),k(r,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t,r=[];for(t in e)e.hasOwnProperty(t)&&r.push(t);return r}),o.prototype={end:function(){A(this)},write:function(e){var t=this;if(this.error)throw this.error;if(t.closed)return O(t,"Cannot write after close. Assign an onready handler.");if(null===e)return A(t);"object"==typeof e&&(e=e.toString());for(var r,n,s=0,i="";i=M(e,s++),t.c=i;)switch(t.trackPosition&&(t.position++,"\n"===i?(t.line++,t.column=0):t.column++),t.state){case T.BEGIN:if(t.state=T.BEGIN_WHITESPACE,"\ufeff"===i)continue;P(t,i);continue;case T.BEGIN_WHITESPACE:P(t,i);continue;case T.TEXT:if(t.sawRoot&&!t.closedRoot){for(var o=s-1;i&&"<"!==i&&"&"!==i;)(i=M(e,s++))&&t.trackPosition&&(t.position++,"\n"===i?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(o,s-1)}"<"!==i||t.sawRoot&&t.closedRoot&&!t.strict?(g(i)||t.sawRoot&&!t.closedRoot||D(t,"Text data outside of root node."),"&"===i?t.state=T.TEXT_ENTITY:t.textNode+=i):(t.state=T.OPEN_WAKA,t.startTagPosition=t.position);continue;case T.SCRIPT:"<"===i?t.state=T.SCRIPT_ENDING:t.script+=i;continue;case T.SCRIPT_ENDING:"/"===i?t.state=T.CLOSE_TAG:(t.script+="<"+i,t.state=T.SCRIPT);continue;case T.OPEN_WAKA:"!"===i?(t.state=T.SGML_DECL,t.sgmlDecl=""):g(i)||(j(h,i)?(t.state=T.OPEN_TAG,t.tagName=i):"/"===i?(t.state=T.CLOSE_TAG,t.tagName=""):"?"===i?(t.state=T.PROC_INST,t.procInstName=t.procInstBody=""):(D(t,"Unencoded <"),t.startTagPosition+1<t.position&&(o=t.position-t.startTagPosition,i=new Array(o).join(" ")+i),t.textNode+="<"+i,t.state=T.TEXT));continue;case T.SGML_DECL:(t.sgmlDecl+i).toUpperCase()===l?(E(t,"onopencdata"),t.state=T.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+i==="--"?(t.state=T.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+i).toUpperCase()===u?(t.state=T.DOCTYPE,(t.doctype||t.sawRoot)&&D(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===i?(E(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=T.TEXT):(v(i)&&(t.state=T.SGML_DECL_QUOTED),t.sgmlDecl+=i);continue;case T.SGML_DECL_QUOTED:i===t.q&&(t.state=T.SGML_DECL,t.q=""),t.sgmlDecl+=i;continue;case T.DOCTYPE:">"===i?(t.state=T.TEXT,E(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=i,"["===i?t.state=T.DOCTYPE_DTD:v(i)&&(t.state=T.DOCTYPE_QUOTED,t.q=i));continue;case T.DOCTYPE_QUOTED:t.doctype+=i,i===t.q&&(t.q="",t.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:t.doctype+=i,"]"===i?t.state=T.DOCTYPE:v(i)&&(t.state=T.DOCTYPE_DTD_QUOTED,t.q=i);continue;case T.DOCTYPE_DTD_QUOTED:t.doctype+=i,i===t.q&&(t.state=T.DOCTYPE_DTD,t.q="");continue;case T.COMMENT:"-"===i?t.state=T.COMMENT_ENDING:t.comment+=i;continue;case T.COMMENT_ENDING:"-"===i?(t.state=T.COMMENT_ENDED,t.comment=S(t.opt,t.comment),t.comment&&E(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+i,t.state=T.COMMENT);continue;case T.COMMENT_ENDED:">"!==i?(D(t,"Malformed comment"),t.comment+="--"+i,t.state=T.COMMENT):t.state=T.TEXT;continue;case T.CDATA:"]"===i?t.state=T.CDATA_ENDING:t.cdata+=i;continue;case T.CDATA_ENDING:"]"===i?t.state=T.CDATA_ENDING_2:(t.cdata+="]"+i,t.state=T.CDATA);continue;case T.CDATA_ENDING_2:">"===i?(t.cdata&&E(t,"oncdata",t.cdata),E(t,"onclosecdata"),t.cdata="",t.state=T.TEXT):"]"===i?t.cdata+="]":(t.cdata+="]]"+i,t.state=T.CDATA);continue;case T.PROC_INST:"?"===i?t.state=T.PROC_INST_ENDING:g(i)?t.state=T.PROC_INST_BODY:t.procInstName+=i;continue;case T.PROC_INST_BODY:if(!t.procInstBody&&g(i))continue;"?"===i?t.state=T.PROC_INST_ENDING:t.procInstBody+=i;continue;case T.PROC_INST_ENDING:">"===i?(E(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=T.TEXT):(t.procInstBody+="?"+i,t.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:j(m,i)?t.tagName+=i:(function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,E(e,"onopentagstart",r)}(t),">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:(g(i)||D(t,"Invalid character in tag name"),t.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:">"===i?(N(t,!0),R(t)):(D(t,"Forward-slash in opening tag not followed by >"),t.state=T.ATTRIB);continue;case T.ATTRIB:if(g(i))continue;">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:j(h,i)?(t.attribName=i,t.attribValue="",t.state=T.ATTRIB_NAME):D(t,"Invalid attribute name");continue;case T.ATTRIB_NAME:"="===i?t.state=T.ATTRIB_VALUE:">"===i?(D(t,"Attribute without value"),t.attribValue=t.attribName,C(t),N(t)):g(i)?t.state=T.ATTRIB_NAME_SAW_WHITE:j(m,i)?t.attribName+=i:D(t,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if("="===i)t.state=T.ATTRIB_VALUE;else{if(g(i))continue;D(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",E(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===i?N(t):j(h,i)?(t.attribName=i,t.state=T.ATTRIB_NAME):(D(t,"Invalid attribute name"),t.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(g(i))continue;v(i)?(t.q=i,t.state=T.ATTRIB_VALUE_QUOTED):(D(t,"Unquoted attribute value"),t.state=T.ATTRIB_VALUE_UNQUOTED,t.attribValue=i);continue;case T.ATTRIB_VALUE_QUOTED:if(i!==t.q){"&"===i?t.state=T.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=i;continue}C(t),t.q="",t.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:g(i)?t.state=T.ATTRIB:">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:j(h,i)?(D(t,"No whitespace between attributes"),t.attribName=i,t.attribValue="",t.state=T.ATTRIB_NAME):D(t,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!function(e){return">"===e||g(e)}(i)){"&"===i?t.state=T.ATTRIB_VALUE_ENTITY_U:t.attribValue+=i;continue}C(t),">"===i?N(t):t.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(t.tagName)">"===i?R(t):j(m,i)?t.tagName+=i:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=T.SCRIPT):(g(i)||D(t,"Invalid tagname in closing tag"),t.state=T.CLOSE_TAG_SAW_WHITE);else{if(g(i))continue;!function(e,t){return!j(e,t)}(h,i)?t.tagName=i:t.script?(t.script+="</"+i,t.state=T.SCRIPT):D(t,"Invalid tagname in closing tag.")}continue;case T.CLOSE_TAG_SAW_WHITE:if(g(i))continue;">"===i?R(t):D(t,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:switch(t.state){case T.TEXT_ENTITY:r=T.TEXT,n="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:r=T.ATTRIB_VALUE_QUOTED,n="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:r=T.ATTRIB_VALUE_UNQUOTED,n="attribValue"}";"===i?(t[n]+=function(e){var t,r=e.entity,n=r.toLowerCase(),s="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&(s="x"===r.charAt(1)?(r=r.slice(2),(t=parseInt(r,16)).toString(16)):(r=r.slice(1),(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||s.toLowerCase()!==r?(D(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}(t),t.entity="",t.state=r):j(t.entity.length?b:y,i)?t.entity+=i:(D(t,"Invalid character in entity name"),t[n]+="&"+t.entity+i,t.entity="",t.state=r);continue;default:throw new Error(t,"Unknown state: "+t.state)}return t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(a.MAX_BUFFER_LENGTH,10),r=0,n=0,s=c.length;n<s;n++){var i=e[c[n]].length;if(t<i)switch(c[n]){case"textNode":_(e);break;case"cdata":E(e,"oncdata",e.cdata),e.cdata="";break;case"script":E(e,"onscript",e.script),e.script="";break;default:O(e,"Max buffer length exceeded: "+c[n])}r=Math.max(r,i)}var o=a.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=o+e.position}(t),t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;_(e=this),""!==e.cdata&&(E(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(E(e,"onscript",e.script),e.script="")}};try{n=L("stream").Stream}catch(e){n=function(){}}var s=a.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function i(e,t){if(!(this instanceof i))return new i(e,t);n.apply(this),this._parser=new o(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,s.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e;r.on(t,e)},enumerable:!0,configurable:!1})})}(i.prototype=Object.create(n.prototype,{constructor:{value:i}})).write=function(e){var t;return"function"==typeof r&&"function"==typeof r.isBuffer&&r.isBuffer(e)&&(this._decoder||(t=L("string_decoder").StringDecoder,this._decoder=new t("utf8")),e=this._decoder.write(e)),this._parser.write(e.toString()),this.emit("data",e),!0},i.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},i.prototype.on=function(t,e){var r=this;return r._parser["on"+t]||-1===s.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),n.prototype.on.call(r,t,e)};var l="[CDATA[",u="DOCTYPE",p="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/2000/xmlns/",d={xml:p,xmlns:f},h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function v(e){return'"'===e||"'"===e}function j(e,t){return e.test(t)}var e,w,x,T=0;for(e in a.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
574,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach(function(e){var t="number"==typeof(t=a.ENTITIES[e])?String.fromCharCode(t):t;a.ENTITIES[e]=t}),a.STATE)a.STATE[a.STATE[e]]=e;function k(e,t,r){e[t]&&e[t](r)}function E(e,t,r){e.textNode&&_(e),k(e,t,r)}function _(e){e.textNode=S(e.opt,e.textNode),e.textNode&&k(e,"ontext",e.textNode),e.textNode=""}function S(e,t){return e.trim&&(t=t.trim()),e.normalize?t.replace(/\s+/g," "):t}function O(e,t){return _(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,k(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&D(e,"Unclosed root tag"),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&O(e,"Unexpected end"),_(e),e.c="",e.closed=!0,k(e,"onend"),o.call(e,e.strict,e.opt),e}function D(e,t){if("object"!=typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function I(e,t){var n=(r=e.indexOf(":")<0?["",e]:e.split(":"))[0],r=r[1];return t&&"xmlns"===e&&(n="xmlns",r=""),{prefix:n,local:r}}function C(e){var t,r,n;e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)||(e.opt.xmlns?(r=(t=I(e.attribName,!0)).prefix,t=t.local,"xmlns"===r&&("xml"===t&&e.attribValue!==p?D(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue):"xmlns"===t&&e.attribValue!==f?D(e,"xmlns: prefix must be bound to "+f+"\nActual: "+e.attribValue):(r=e.tag,n=e.tags[e.tags.length-1]||e,r.ns===n.ns&&(r.ns=Object.create(n.ns)),r.ns[t]=e.attribValue)),e.attribList.push([e.attribName,e.attribValue])):(e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue}))),e.attribName=e.attribValue=""}function N(t,e){if(t.opt.xmlns){var r=t.tag,n=I(t.tagName);n=(r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix),t.tags[t.tags.length-1]||t);r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){E(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var s=0,i=t.attribList.length;s<i;s++){var a=(o=t.attribList[s])[0],o=o[1],l=(c=I(a,!0)).prefix,c=c.local,u=""!==l&&r.ns[l]||"";o={name:a,value:o,prefix:l,local:c,uri:u};l&&"xmlns"!==l&&!u&&(D(t,"Unbound namespace prefix: "+JSON.stringify(l)),o.uri=l),t.tag.attributes[a]=o,E(t,"onattribute",o)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),E(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=T.TEXT:t.state=T.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function R(r){if(!r.tagName)return D(r,"Weird empty close tag."),r.textNode+="</>",void(r.state=T.TEXT);if(r.script){if("script"!==r.tagName)return r.script+="</"+r.tagName+">",r.tagName="",void(r.state=T.SCRIPT);E(r,"onscript",r.script),r.script=""}for(var e=r.tags.length,t=r.tagName,n=t=r.strict?t:t[r.looseCase]();e--&&r.tags[e].name!==n;)D(r,"Unexpected close tag");if(e<0)return D(r,"Unmatched closing tag: "+r.tagName),r.textNode+="</"+r.tagName+">",void(r.state=T.TEXT);r.tagName=t;for(var s=r.tags.length;s-- >e;){var i,o=r.tag=r.tags.pop(),a=(r.tagName=r.tag.name,E(r,"onclosetag",r.tagName),{});for(i in o.ns)a[i]=o.ns[i];var c=r.tags[r.tags.length-1]||r;
5r.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(e){var t=o.ns[e];E(r,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0,r.state=T.TEXT}function P(e,t){"<"===t?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):g(t)||(D(e,"Non-whitespace before first tag."),e.textNode=t,e.state=T.TEXT)}function M(e,t){var r="";return t<e.length?e.charAt(t):r}function t(){var e=[],t=-1,r=arguments.length;if(!r)return"";for(var n="";++t<r;){var s=Number(arguments[t]);if(!isFinite(s)||s<0||1114111<s||x(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?e.push(s):(s-=65536,e.push(55296+(s>>10),s%1024+56320)),(t+1===r||16384<e.length)&&(n+=w.apply(null,e),e.length=0)}return n}T=a.STATE,String.fromCodePoint||(w=String.fromCharCode,x=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:t,configurable:!0,writable:!0}):String.fromCodePoint=t)}).call(this)}).call(this,L("buffer").Buffer)},{buffer:89,stream:387,string_decoder:88}],387:[function(e,t,r){t.exports=n;var u=e("events").EventEmitter;function n(){u.call(this)}e("inherits")(n,u),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",s),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",a));var i=!1;function o(){i||(i=!0,t.end())}function a(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function c(e){if(l(),0===u.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",n),t.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",c),t.on("error",c),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}},{events:343,inherits:353,"readable-stream/duplex.js":371,"readable-stream/passthrough.js":380,"readable-stream/readable.js":381,"readable-stream/transform.js":382,"readable-stream/writable.js":383}],388:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==s&&s(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=p,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);if(t=e.toString("utf16le",t)){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t;e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function p(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){return e=e&&e.length?this.write(e):"",this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(r.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){return e=e&&e.length?this.write(e):"",this.lastNeed?e+"�":e},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=a(t[n]);return 0<=s?(0<s&&(e.lastNeed=s-1),s):--n<r||-2===s?0:0<=(s=a(t[n]))?(0<s&&(e.lastNeed=s-2),s):--n<r||-2===s?0:0<=(s=a(t[n]))?(0<s&&(2===s?s=0:e.lastNeed=s-3),s):0}(this,e,t);return this.lastNeed?(this.lastTotal=r,r=e.length-(r-this.lastNeed),e.copy(this.lastChar,0,r),e.toString("utf8",t,r)):e.toString("utf8",t)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":385}],389:[function(c,e,l){(function(r,a){(function(){var n=c("process/browser.js").nextTick,e=Function.prototype.apply,s=Array.prototype.slice,i={},o=0;function t(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof r?r:function(e){var t=o++,r=!(arguments.length<2)&&s.call(arguments,1
5);return i[t]=!0,n(function(){i[t]&&(r?e.apply(null,r):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof a?a:function(e){delete i[e]}}).call(this)}).call(this,c("timers").setImmediate,c("timers").clearImmediate)},{"process/browser.js":366,timers:389}],390:[function(e,t,r){var s=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(s.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,n=0;n<r;n++)t[n]=e[n];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:89}],391:[function(e,r,t){(function(t){(function(){function n(e){try{if(!t.localStorage)return}catch(e){return}return null!=(e=t.localStorage[e])&&"true"===String(e).toLowerCase()}r.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],392:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],393:[function(e,t,r){arguments[4][83][0].apply(r,arguments)},{dup:83}],394:[function(e,t,r){arguments[4][84][0].apply(r,arguments)},{"./support/isBuffer":393,_process:441,dup:84,inherits:392}],395:[function(e,t,r){(function(){"use strict";r.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(this)},{}],396:[function(n,e,i){(function(){"use strict";var r,s,t,f,d,h={}.hasOwnProperty;function e(e){var t,r,n;for(t in this.options={},r=s[.2])h.call(r,t)&&(n=r[t],this.options[t]=n);for(t in e)h.call(e,t)&&(n=e[t],this.options[t]=n)}r=n("xmlbuilder"),s=n("./defaults").defaults,f=function(e){return"string"==typeof e&&(0<=e.indexOf("&")||0<=e.indexOf(">")||0<=e.indexOf("<"))},d=function(e){return"<![CDATA["+t(e)+"]]>"},t=function(e){return e.replace("]]>","]]]]><![CDATA[>")},i.Builder=(e.prototype.buildObject=function(e){var c,t,l,u=this.options.attrkey,p=this.options.charkey;return 1===Object.keys(e).length&&this.options.rootName===s[.2].rootName?e=e[t=Object.keys(e)[0]]:t=this.options.rootName,l=this,c=function(e,t){var r,n,s,i,o,a;if("object"!=typeof t)l.options.cdata&&f(t)?e.raw(d(t)):e.txt(t);else if(Array.isArray(t)){for(i in t)if(h.call(t,i))for(o in n=t[i])s=n[o],e=c(e.ele(o),s).up()}else for(o in t)if(h.call(t,o))if(n=t[o],o===u){if("object"==typeof n)for(r in n)a=n[r],e=e.att(r,a)}else if(o===p)e=l.options.cdata&&f(n)?e.raw(d(n)):e.txt(n);else if(Array.isArray(n))for(i in n)h.call(n,i)&&(e=("string"==typeof(s=n[i])?l.options.cdata&&f(s)?e.ele(o).raw(d(s)):e.ele(o,s):c(e.ele(o),s)).up());else e="object"==typeof n?c(e.ele(o),n).up():"string"==typeof n&&l.options.cdata&&f(n)?e.ele(o).raw(d(n)).up():(null==n&&(n=""),e.ele(o,n.toString()).up());return e},t=r.create(t,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(t,e).end(this.options.renderOpts)},e)}).call(this)},{"./defaults":397,xmlbuilder:433}],397:[function(e,t,r){(function(){r.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:"  ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],398:[function(e,t,m){(function(){"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}var f={}.hasOwnProperty,c=e("sax"),o=e("events"),a=e("./bom"),l=e("./processors"),u=e("timers").setImmediate,p=e("./defaults").defaults,h=function(e,t,r){for(var n=0,s=e.length;n<s;n++)t=(0,e[n])(t,r);return t};m.Parser=function(){var e,t=s,r=o;for(e in r)f.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e){var t,r,n;if(this.parseStringPromise=i(this.parseStringPromise,this),this.parseString=i(this.parseString,this),this.reset=i(this.reset,this),this.assignOrPush=i(this.assignOrPush,this),this.processAsync=i(this.processAsync,this),!(this instanceof m.Parser))return new m.Parser(e);for(t in this.options={},r=p[.2])f.call(r,t)&&(n=r[t],this.options[t]=n);for(t in e)f.call(e,t)&&(n=e[t],this.options[t]=n);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(l.normalize)),this.reset()}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.processAsync=function(){var t;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),u(this.processAsync))}catch(e){if(t=e,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit
5(t)}},s.prototype.assignOrPush=function(e,t,r){return t in e?(e[t]instanceof Array||(e[t]=[e[t]]),e[t].push(r)):this.options.explicitArray?e[t]=[r]:e[t]=r},s.prototype.reset=function(){var o,l,t,u,r,e,a,p,n;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(r=this,function(e){if(r.saxParser.resume(),!r.saxParser.errThrown)return r.saxParser.errThrown=!0,r.emit("error",e)}),this.saxParser.onend=(e=this,function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit("end",e.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,u=[],o=this.options.attrkey,l=this.options.charkey,this.saxParser.onopentag=(a=this,function(e){var t,r,n,s,i={};if(i[l]="",!a.options.ignoreAttrs)for(t in s=e.attributes)f.call(s,t)&&(o in i||a.options.mergeAttrs||(i[o]={}),r=a.options.attrValueProcessors?h(a.options.attrValueProcessors,e.attributes[t],t):e.attributes[t],n=a.options.attrNameProcessors?h(a.options.attrNameProcessors,t):t,a.options.mergeAttrs?a.assignOrPush(i,n,r):i[o][n]=r);return i["#name"]=a.options.tagNameProcessors?h(a.options.tagNameProcessors,e.name):e.name,a.options.xmlns&&(i[a.options.xmlnskey]={uri:e.uri,local:e.local}),u.push(i)}),this.saxParser.onclosetag=(p=this,function(){var e,t,n,r,s,i,o,a=u.pop(),c=a["#name"];if(p.options.explicitChildren&&p.options.preserveChildrenOrder||delete a["#name"],!0===a.cdata&&(s=a.cdata,delete a.cdata),i=u[u.length-1],a[l].match(/^\s*$/)&&!s?(e=a[l],delete a[l]):(p.options.trim&&(a[l]=a[l].trim()),p.options.normalize&&(a[l]=a[l].replace(/\s{2,}/g," ").trim()),a[l]=p.options.valueProcessors?h(p.options.valueProcessors,a[l],c):a[l],1===Object.keys(a).length&&l in a&&!p.EXPLICIT_CHARKEY&&(a=a[l])),function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length}(a)&&(a=""!==p.options.emptyTag?p.options.emptyTag:e),null!=p.options.validator&&(o="/"+function(){for(var e=[],t=0,r=u.length;t<r;t++)n=u[t],e.push(n["#name"]);return e}().concat(c).join("/"),function(){try{a=p.options.validator(o,i&&i[c],a)}catch(e){return p.emit("error",e)}}()),p.options.explicitChildren&&!p.options.mergeAttrs&&"object"==typeof a)if(p.options.preserveChildrenOrder){if(i){for(t in i[p.options.childkey]=i[p.options.childkey]||[],r={},a)f.call(a,t)&&(r[t]=a[t]);i[p.options.childkey].push(r),delete a["#name"],1===Object.keys(a).length&&l in a&&!p.EXPLICIT_CHARKEY&&(a=a[l])}}else n={},p.options.attrkey in a&&(n[p.options.attrkey]=a[p.options.attrkey],delete a[p.options.attrkey]),!p.options.charsAsChildren&&p.options.charkey in a&&(n[p.options.charkey]=a[p.options.charkey],delete a[p.options.charkey]),0<Object.getOwnPropertyNames(a).length&&(n[p.options.childkey]=a),a=n;return 0<u.length?p.assignOrPush(i,c,a):(p.options.explicitRoot&&(s=a,(a={})[c]=s),p.resultObject=a,p.saxParser.ended=!0,p.emit("end",p.resultObject))}),t=function(e){var t,r=u[u.length-1];if(r)return r[l]+=e,n.options.explicitChildren&&n.options.preserveChildrenOrder&&n.options.charsAsChildren&&(n.options.includeWhiteChars||""!==e.replace(/\\n
5/g,"").trim())&&(r[n.options.childkey]=r[n.options.childkey]||[],(t={"#name":"__text__"})[l]=e,n.options.normalize&&(t[l]=t[l].replace(/\s{2,}/g," ").trim()),r[n.options.childkey].push(t)),r},(n=this).saxParser.ontext=t,this.saxParser.oncdata=function(e){if(e=t(e))return e.cdata=!0}},s.prototype.parseString=function(t,r){null!=r&&"function"==typeof r&&(this.on("end",function(e){return this.reset(),r(null,e)}),this.on("error",function(e){return this.reset(),r(e)}));try{return""===(t=t.toString()).trim()?(this.emit("end",null),!0):(t=a.stripBOM(t),this.options.async?(this.remaining=t,u(this.processAsync),this.saxParser):this.saxParser.write(t).close())}catch(e){if(t=e,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",t),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw t}},s.prototype.parseStringPromise=function(e){return new Promise((t=this,function(r,n){return t.parseString(e,function(e,t){return e?n(e):r(t)})}));var t},s}(),m.parseString=function(e,t,r){var n,s;return null!=r?("function"==typeof r&&(n=r),"object"==typeof t&&(s=t)):("function"==typeof t&&(n=t),s={}),new m.Parser(s).parseString(e,n)},m.parseStringPromise=function(e,t){var r;return new m.Parser(r="object"==typeof t?t:r).parseStringPromise(e)}}).call(this)},{"./bom":395,"./defaults":397,"./processors":399,events:343,sax:386,timers:389}],399:[function(e,t,r){(function(){"use strict";var t=new RegExp(/(?!xmlns)^.*:/);r.normalize=function(e){return e.toLowerCase()},r.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},r.stripPrefix=function(e){return e.replace(t,"")},r.parseNumbers=function(e){return isNaN(e)?e:e%1==0?parseInt(e,10):parseFloat(e)},r.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)?"true"===e.toLowerCase():e}}).call(this)},{}],400:[function(s,e,i){(function(){"use strict";var o={}.hasOwnProperty,e=s("./defaults"),t=s("./builder"),r=s("./parser"),n=s("./processors");i.defaults=e.defaults,i.processors=n,i.ValidationError=function(e){var t,r=i,n=e;for(t in n)o.call(n,t)&&(r[t]=n[t]);function s(){this.constructor=r}function i(e){this.message=e}return s.prototype=n.prototype,r.prototype=new s,r.__super__=n.prototype,i}(Error),i.Builder=t.Builder,i.Parser=r.Parser,i.parseString=r.parseString,i.parseStringPromise=r.parseStringPromise}).call(this)},{"./builder":396,"./defaults":397,"./parser":398,"./processors":399}],401:[function(e,t,r){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],402:[function(e,t,r){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],403:[function(e,i,t){(function(){var o=[].slice,a={}.hasOwnProperty,c=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},t=function(e){return!!e&&("function"==(e=typeof e)||"object"==e)},r=function(e){return c(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)};i.exports.assign=function(){var e,t,r,n,s=arguments[0],i=2<=arguments.length?o.call(arguments,1):[];if(c(Object.assign))Object.assign.apply(null,arguments);else for(e=0,r=i.length;e<r;e++)if(null!=(n=i[e]))for(t in n)a.call(n,t)&&(s[t]=n[t]);return s},i.exports.isFunction=c,i.exports.isObject=t,i.exports.isArray=r,i.exports.isEmpty=function(e){if(r(e))return!e.length;for(var t in e)if(a.call(e,t))return!1;return!0},i.exports.isPlainObject=function(e){return t(e)&&(e=Object.getPrototypeOf(e))&&(e=e.constructor)&&"function"==typeof e&&e instanceof e&&Function.prototype.toString.call(e)===Function.prototype.toString.call(Object)},i.exports.getValue=function(e){return c(e.valueOf)?e.valueOf():e}}).call(this)},{}],404:[function(e,t,r){(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],405:[function(t,r,e){(function(){var n;function e(e,t,r){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));this.name=this.stringify.name(t),this.value=this.stringify.attValue(r),this.type=n.Attribute,this.isId=!1,this.schemaTypeInfo=null}n=t("./NodeType"),t("./XMLNode"),r.exports=(Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value},e)}
vendor: 63,469 bytes, line 5
5).call(this)},{"./NodeType":402,"./XMLNode":424}],406:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=o.CData,this.value=this.stringify.cdata(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./XMLCharacterData":407}],407:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./XMLNode");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e){s.__super__.constructor.call(this,e),this.value=""}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(s.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(s.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(e){return!!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},s}()}).call(this)},{"./XMLNode":424}],408:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=o.Comment,this.value=this.stringify.comment(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./XMLCharacterData":407}],409:[function(n,s,e){(function(){var e,t;function r(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}e=n("./XMLDOMErrorHandler"),t=n("./XMLDOMStringList"),s.exports=(Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new t(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},r.prototype.canSetParameter=function(e,t){return!0},r.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},r)}).call(this)},{"./XMLDOMErrorHandler":410,"./XMLDOMStringList":412}],410:[function(e,t,r){(function(){function e(){}t.exports=(e.prototype.handleError=function(e){throw new Error(e)},e)}).call(this)},{}],411:[function(e,t,r){(function(){function e(){}t.exports=(e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e)}).call(this)},{}],412:[function(e,t,r){(function(){function e(e){this.arr=e||[]}t.exports=(Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e)}).call(this)},{}],413:[function(e,t,r){(function(){var s={}.hasOwnProperty,i=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=o,r=i;for(e in r)s.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function o(e,t,r,n,s,i){if(o.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(t));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(t));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(t));if(!(s=0!==s.indexOf("#")?"#"+s:s).match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(i&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.name(t),this.type=a.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(n),i&&(this.defaultValue=this.stringify.dtdAttDefault(i)),this.defaultValueType=s}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,o.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},o}()}).call(this)},{"./NodeType":402,"./XMLNode":424}],414:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());r=r||"(#PCDATA)",Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(t),this.type=a.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./XMLNode":424}],415:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./Utility").isObject,a=e("./XMLNode"),c=e("./NodeType");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r,n){if(s.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==n)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!t,this.name=this.stringify.name(r),this.type=c.EntityDeclaration,o(n)){if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID)),null!=n.nData&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(n),this.internal=!0}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(s.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return null}}),s.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./Utility":403,"./XMLNode":424}],416:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD notation name. "+this.debugInfo(t));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));this.name=this.stringify.name(t),this.type=a.NotationDeclaration,null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./XMLNode":424}],417:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./Utility").isObject,a=e("./XMLNode"),c=e("./NodeType");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r,n){s.__super__.constructor.call(this,e),o(t)&&(t=(e=t).version,r=e.encoding,n=e.standalone),t=t||"1.0",this.type=c.Declaration,this.version=this.stringify.xmlVersion(t),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=n&&(this.standalone=this.stringify.xmlStandalone(n))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./Utility":403,"./XMLNode":424}],418:[function(e,t,r){(function(){var s={}.hasOwnProperty,c=e("./Utility").isObject,i=e("./XMLNode"),l=e("./NodeType"),o=e("./XMLDTDAttList"),u=e("./XMLDTDEntity"),p=e("./XMLDTDElement"),f=e("./XMLDTDNotation"),d=e("./XMLNamedNodeMap");t.exports=function(){var e,t=a,r=i;for(e in r)s.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function a(e,t,r){var n,s,i,o;if(a.__super__.constructor.call(this,e),this.type=l.DocType,e.children)for(s=0,i=(o=e.children).length;s<i;s++)if((n=o[s]).type===l.Element){this.name=n.name;break}this.documentObject=e,c(t)&&(t=(e=t).pubID,r=e.sysID),null==r&&(r=(e=[t,r])[0],t=e[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(a.prototype,"entities",{get:function(){for(var e,t={},r=this.children,n=0,s=r.length;n<s;n++)(e=r[n]).type!==l.EntityDeclaration||e.pe||(t[e.name]=e);return new d(t)}}),Object.defineProperty(a.prototype,"notations",{get:function(){for(var e,t={},r=this.children,n=0,s=r.length;n<s;n++)(e=r[n]).type===l.NotationDeclaration&&(t[e.name]=e);return new d(t)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.element=function(e,t){return e=new p(this,e,t),this.children.push(e),this},a.prototype.attList=function(e,t,r,n,s){return e=new o(this,e,t,r,n,s),this.children.push(e),this},a.prototype.entity=function(e,t){return e=new u(this,!1,e,t),this.children.push(e),this},a.prototype.pEntity=function(e,t){return e=new u(this,!0,e,t),this.children.push(e),this},a.prototype.notation=function(e,t){return e=new f(this,e,t),this.children.push(e),this},a.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))},a.prototype.ele=function(e,t){return this.element(e,t)},a.prototype.att=function(e,t,r,n,s){return this.attList(e,t,r,n,s)},a.prototype.ent=function(e,t){return this.entity(e,t)},a.prototype.pent=function(e,t){return this.pEntity(e,t)},a.prototype.not=function(e,t){return this.notation(e,t)},a.prototype.up=function(){return this.root()||this.documentObject},a.prototype.isEqualNode=function(e){return!!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.name===this.name&&e.publicId===this.publicId&&e.systemId===this.systemId},a}()}).call(this)},{"./NodeType":402,"./Utility":403,"./XMLDTDAttList":413,"./XMLDTDElement":414,"./XMLDTDEntity":415,"./XMLDTDNotation":416,"./XMLNamedNodeMap":423,"./XMLNode":424}],419:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./Utility").isPlainObject,a=e("./XMLDOMImplementation"),c=e("./XMLDOMConfiguration"),l=e("./XMLNode"),u=e("./NodeType"),p=e("./XMLStringifier"),f=e("./XMLStringWriter");t.exports=function(){var e,t=s,r=l;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e){s.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new c,(e=e||{}).writer||(e.writer=new f),this.options=e,this.stringify=new p(e)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(s.prototype,"implementation",{value:new a}),Object.defineProperty(s.prototype,"doctype",{get:function(){for(var e,t=this.children,r=0,n=t.length;r<n;r++)if((e=t[r]).type===u.DocType)return e;return null}}),Object.defineProperty(s.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(s.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===u.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(s.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(s.prototype,"origin",{get:function(){return null}}),Object.defineProperty(s.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(s.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(s.prototype,"contentType",{get:function(){return null}}),s.prototype.end=function(e){var t={};return e?o(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},s.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},s.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}()}).call(this)},{"./NodeType":402,"./Utility":403,"./XMLDOMConfiguration":409,"./XMLDOMImplementation":411,"./XMLNode":424,"./XMLStringWriter":429,"./XMLStringifier":430}],420:[function(E,_,e){(function(){var l,i,s,t,r,o,n,a,c,u,p,f,d,h,m,y,b,g,v,j,w,x,e,T={}.hasOwnProperty;function k(e,t,r){var n;this.name="?xml",this.type=l.Document,n={},(e=e||{}).writer?x(e.writer)&&(n=e.writer,e.writer=new y):e.writer=new y,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(n),this.stringify=new b(e),this.onDataCallback=t||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}e=E("./Utility"),w=e.isObject,j=e.isFunction,x=e.isPlainObject,v=e.getValue,l=E("./NodeType"),f=E("./XMLDocument"),d=E("./XMLElement"),t=E("./XMLCData"),r=E("./XMLComment"),m=E("./XMLRaw"),g=E("./XMLText"),h=E("./XMLProcessingInstruction"),u=E("./XMLDeclaration"),p=E("./XMLDocType"),o=E("./XMLDTDAttList"),a=E("./XMLDTDEntity"),n=E("./XMLDTDElement"),c=E("./XMLDTDNotation"),s=E("./XMLAttribute"),b=E("./XMLStringifier"),y=E("./XMLStringWriter"),i=E("./WriterState"),_.exports=(k.prototype.createChildNode=function(e){var t,r,n,s,i,o,a,c;switch(e.type){case l.CData:this.cdata(e.value);break;case l.Comment:this.comment(e.value);break;case l.Element:for(r in n={},a=e.attribs)T.call(a,r)&&(t=a[r],n[r]=t.value);this.node(e.name,n);break;case l.Dummy:this.dummy();break;case l.Raw:this.raw(e.value);break;case l.Text:this.text(e.value);break;case l.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(i=0,o=(c=e.children).length;i<o;i++)s=c[i],this.createChildNode(s),s.type===l.Element&&this.up();return this},k.prototype.dummy=function(){return this},k.prototype.node=function(e,t,r){var n;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=v(e),t=v(t=null==t?{}:t),w(t)||(r=(n=[t,r])[0],t=n[1]),this.currentNode=new d(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},k.prototype.element=function(e,t,r){var n,s,i,o,a,c;if(this.currentNode&&this.currentNode.type===l.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(e)||w(e)||j(e))for(o=this.options.noValidation,this.options.noValidation=!0,(c=new f(this.options).element("TEMP_ROOT")).element(e),this.options.noValidation=o,s=0,i=(a=c.children).length;s<i;s++)n=a[s],this.createChildNode(n),n.type===l.Element&&this.up();else this.node(e,t,r);return this},k.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=v(e)),w(e))for(r in e)T.call(e,r)&&(n=e[r],this.attribute(r,n));else j(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.currentNode.attribs[e]=new s(this,e,""):null!=t&&(this.currentNode.attribs[e]=new s(this,e,t));return this},k.prototype.text=function(e){return this.openCurrent(),e=new g(this,e),this.onData(this.writer.text(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.cdata=function(e){return this.openCurrent(),e=new t(this,e),this.onData(this.writer.cdata(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.comment=function(e){return this.openCurrent(),e=new r(this,e),this.onData(this.writer.comment(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.raw=function(e){return this.openCurrent(),e=new m(this,e),this.onData(this.writer.raw(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.instruction=function(e,t){var r,n,s,i;if(this.openCurrent(),null!=e&&(e=v(e)),null!=t&&(t=v(t)),Array.isArray(e))for(r=0,i=e.length;r<i;r++)n=e[r],this.instruction(n);else if(w(e))for(n in e)T.call(e,n)&&(s=e[n],this.instruction(n,s));else j(t)&&(t=t.apply()),t=new h(this,e,t),this.onData(this.writer.processingInstruction(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},k.prototype.declaration=function(e,t,r){if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return e=new u(this,e,t,r),this.onData(this.writer.declaration(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.doctype=function(e,t,r){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new p(this,t,r),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},k.prototype.dtdElement=function(e,t){return this.openCurrent(),e=new n(this,e,t),this.onData(this.writer.dtdElement(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.attList=function(e,t,r,n,s){return this.openCurrent(),e=new o(this,e,t,r,n,s),this.onData(this.writer.dtdAttList(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.entity=function(e,t){return this.openCurrent(),e=new a(this,!1,e,t),this.onData(this.writer.dtdEntity(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.pEntity=function(e,t){return this.openCurrent(),e=new a(this,!0,e,t),this.onData(this.writer.dtdEntity(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.notation=function(e,t){return this.openCurrent(),e=new c(this,e,t),this.onData(this.writer.dtdNotation(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},k.prototype.end=function(){for(;0<=this.currentLevel;)this.up();return this.onEnd()},k.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},k.prototype.openNode=function(e){var t,r,n,s;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==l.Element||(this.root=e),r="",e.type===l.Element){for(n in this.writerOptions.state=i.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,s=e.attribs)T.call(s,n)&&(t=s[n],r+=this.writer.attribute(t,this.writerOptions,this.currentLevel));r+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.InsideTag}else this.writerOptions.state=i.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?r+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(r+=' SYSTEM "'+e.sysID+'"'),e.children?(r+=" [",this.writerOptions.state=i.InsideTag):(this.writerOptions.state=i.CloseTag,r+=">"),r+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(r,this.currentLevel),e.isOpen=!0}},k.prototype.closeNode=function(e){var t;if(!e.isClosed)return"",this.writerOptions.state=i.CloseTag,t=e.type===l.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.None,this.onData(t,this.currentLevel),e.isClosed=!0},k.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},k.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},k.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},k.prototype.ele=function(){return this.element.apply(this,arguments)},k.prototype.nod=function(e,t,r){return this.node(e,t,r)},k.prototype.txt=function(e){return this.text(e)},k.prototype.dat=function(e){return this.cdata(e)},k.prototype.com=function(e){return this.comment(e)},k.prototype.ins=function(e,t){return this.instruction(e,t)},k.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},k.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)},k.prototype.e=function(e,t,r){return this.element(e,t,r)},k.prototype.n=function(e,t,r){return this.node(e,t,r)},k.prototype.t=function(e){return this.text(e)},k.prototype.d=function(e){return this.cdata(e)},k.prototype.c=function(e){return this.comment(e)},k.prototype.r=function(e){return this.raw(e)},k.prototype.i=function(e,t){return this.instruction(e,t)},k.prototype.att=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},k.prototype.a=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},k.prototype.ent=function(e,t){return this.entity(e,t)},k.prototype.pent=function(e,t){return this.pEntity(e,t)},k.prototype.not=function(e,t){return this.notation(e,t)},k)}).call(this)},{"./NodeType":402,"./Utility":403,"./WriterState":404,"./XMLAttribute":405,"./XMLCData":406,"./XMLComment":408,"./XMLDTDAttList":413,"./XMLDTDElement":414,"./XMLDTDEntity":415,"./XMLDTDNotation":416,"./XMLDeclaration":417,"./XMLDocType":418,"./XMLDocument":419,"./XMLElement":422,"./XMLProcessingInstruction":426,"./XMLRaw":427,"./XMLStringWriter":429,"./XMLStringifier":430,"./XMLText":431}],421:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e){s.__super__.constructor.call(this,e),this.type=a.Dummy}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return""},s}()}).call(this)},{"./NodeType":402,"./XMLNode":424}],422:[function(t,r,e){(function(){var s={}.hasOwnProperty,e=t("./Utility"),i=e.isObject,o=e.isFunction,c=e.getValue,l=t("./XMLNode"),u=t("./NodeType"),p=t("./XMLAttribute"),f=t("./XMLNamedNodeMap");r.exports=function(){var e,t=a,r=l;for(e in r)s.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function a(e,t,r){var n,s,i,o;if(a.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(t),this.type=u.Element,this.attribs={},(this.schemaTypeInfo=null)!=r&&this.attribute(r),e.type===u.Document&&(this.isRoot=!0,(this.documentObject=e).rootObject=this,e.children))for(s=0,i=(o=e.children).length;s<i;s++)if((n=o[s]).type===u.DocType){n.name=this.name;break}}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new f(this.attribs)),this.attributeMap}}),a.prototype.clone=function(){var e,t,r,n=Object.create(this);for(t in n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs)s.call(r,t)&&(e=r[t],n.attribs[t]=e.clone());return n.children=[],this.children.forEach(function(e){return((e=e.clone()).parent=n).children.push(e)}),n},a.prototype.attribute=function(e,t){var r,n;if(null!=e&&(e=c(e)),i(e))for(r in e)s.call(e,r)&&(n=e[r],this.attribute(r,n));else o(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.attribs[e]=new p(this,e,""):null!=t&&(this.attribs[e]=new p(this,e,t));return this},a.prototype.removeAttribute=function(e){var t,r,n;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=c(e),Array.isArray(e))for(r=0,n=e.length;r<n;r++)t=e[r],delete this.attribs[t];else delete this.attribs[e];return this},a.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},a.prototype.att=function(e,t){return this.attribute(e,t)},a.prototype.a=function(e,t){return this.attribute(e,t)},a.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},a.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},a.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},a.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},a.prototype.setIdAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(e){var t,r,n;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(e))return!1;if(e.namespaceURI!==this.namespaceURI)return!1;if(e.prefix!==this.prefix)return!1;if(e.localName!==this.localName)return!1;if(e.attribs.length!==this.attribs.length)return!1;for(t=r=0,n=this.attribs.length-1;0<=n?r<=n:n<=r;t=0<=n?++r:--r)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0},a}()}).call(this)},{"./NodeType":402,"./Utility":403,"./XMLAttribute":405,"./XMLNamedNodeMap":423,"./XMLNode":424}],423:[function(e,t,r){(function(){function e(e){this.nodes=e}t.exports=(Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t=this.nodes[e.nodeName];return this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t=this.nodes[e];return delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e)}).call(this)},{}],424:[function(v,j,e){(function(){var r,p,t,n,s,f,i,o,a,c,l,u,d,h,m,y,e,b={}.hasOwnProperty;function g(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,o||(o=v("./XMLElement"),t=v("./XMLCData"),n=v("./XMLComment"),s=v("./XMLDeclaration"),f=v("./XMLDocType"),l=v("./XMLRaw"),u=v("./XMLText"),c=v("./XMLProcessingInstruction"),i=v("./XMLDummy"),p=v("./NodeType"),a=v("./XMLNodeList"),v("./XMLNamedNodeMap"),r=v("./DocumentPosition"))}e=v("./Utility"),y=e.isObject,m=e.isFunction,h=e.isEmpty,d=e.getValue,r=a=p=i=c=u=l=f=s=n=t=o=null,j.exports=(Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var e,t,r,n,s;if(this.nodeType!==p.Element&&this.nodeType!==p.DocumentFragment)return null;for(s="",t=0,r=(n=this.children).length;t<r;t++)(e=n[t]).textContent&&(s+=e.textContent);return s},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),g.prototype.setParent=function(e){var t,r,n,s,i;for((this.parent=e)&&(this.options=e.options,this.stringify=e.stringify),i=[],r=0,n=(s=this.children).length;r<n;r++)t=s[r],i.push(t.setParent(this));return i},g.prototype.element=function(e,t,r){var n,s,i,o,a,c,l,u,p,f=null;if(null===t&&null==r&&(t=(u=[{},null])[0],r=u[1]),t=d(t=null==t?{}:t),y(t)||(r=(u=[t,r])[0],t=u[1]),null!=e&&(e=d(e)),Array.isArray(e))for(i=0,c=e.length;i<c;i++)s=e[i],f=this.element(s);else if(m(e))f=this.element(e.apply());else if(y(e)){for(a in e)if(b.call(e,a))if(p=e[a],m(p)&&(p=p.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))f=this.attribute(a.substr(this.stringify.convertAttKey.length),p);else if(!this.options.separateArrayItems&&Array.isArray(p)&&h(p))f=this.dummy();else if(y(p)&&h(p))f=this.element(a);else if(this.options.keepNullNodes||null!=p)if(!this.options.separateArrayItems&&Array.isArray(p))for(o=0,l=p.length;o<l;o++)s=p[o],(n={})[a]=s,f=this.element(n);else y(p)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?f=this.element(p):(f=this.element(a)).element(p):f=this.element(a,p);else f=this.dummy()}else f=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),r):this.node(e,t,r):this.dummy();if(null==f)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return f},g.prototype.insertBefore=function(e,t,r){var n,s,i,o;if(null!=e&&e.type)return i=t,(s=e).setParent(this),i?(n=children.indexOf(i),o=children.splice(n),children.push(s),Array.prototype.push.apply(children,o)):children.push(s),s;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return n=this.parent.children.indexOf(this),o=this.parent.children.splice(n),i=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,o),i},g.prototype.insertAfter=function(e,t,r){var n;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return n=this.parent.children.indexOf(this),n=this.parent.children.splice(n+1),e=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,n),e},g.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},g.prototype.node=function(e,t,r){var n;return null!=e&&(e=d(e)),t=d(t=t||{}),y(t)||(r=(n=[t,r])[0],t=n[1]),n=new o(this,e,t),null!=r&&n.text(r),this.children.push(n),n},g.prototype.text=function(e){return y(e)&&this.element(e),e=new u(this,e),this.children.push(e),this},g.prototype.cdata=function(e){return e=new t(this,e),this.children.push(e),this},g.prototype.comment=function(e){return e=new n(this,e),this.children.push(e),this},g.prototype.commentBefore=function(e){var t=this.parent.children.indexOf(this);t=this.parent.children.splice(t);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,t),this},g.prototype.commentAfter=function(e){var t=this.parent.children.indexOf(this);t=this.parent.children.splice(t+1);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,t),this},g.prototype.raw=function(e){return e=new l(this,e),this.children.push(e),this},g.prototype.dummy=function(){return new i(this)},g.prototype.instruction=function(e,t){var r,n,s,i;if(null!=e&&(e=d(e)),null!=t&&(t=d(t)),Array.isArray(e))for(s=0,i=e.length;s<i;s++)r=e[s],this.instruction(r);else if(y(e))for(r in e)b.call(e,r)&&(n=e[r],this.instruction(r,n));else m(t)&&(t=t.apply()),t=new c(this,e,t),this.children.push(t);return this},g.prototype.instructionBefore=function(e,t){var r=this.parent.children.indexOf(this);r=this.parent.children.splice(r);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},g.prototype.instructionAfter=function(e,t){var r=this.parent.children.indexOf(this);r=this.parent.children.splice(r+1);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},g.prototype.declaration=function(e,t,r){var n=this.document();e=new s(n,e,t,r);return 0!==n.children.length&&n.children[0].type===p.Declaration?n.children[0]=e:n.children.unshift(e),n.root()||n},g.prototype.dtd=function(e,t){for(var r,n,s,i,o=this.document(),a=new f(o,e,t),c=o.children,l=r=0,u=c.length;r<u;l=++r)if(c[l].type===p.DocType)return o.children[l]=a;for(l=n=0,s=(i=o.children).length;n<s;l=++n)if(i[l].isRoot)return o.children.splice(l,0,a),a;return o.children.push(a),a},g.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},g.prototype.root=function(){for(var e=this;e;){if(e.type===p.Document)return e.rootObject;if(e.isRoot)return e;e=e.parent}},g.prototype.document=function(){for(var e=this;e;){if(e.type===p.Document)return e;e=e.parent}},g.prototype.end=function(e){return this.document().end(e)},g.prototype.prev=function(){var e=this.parent.children.indexOf(this);if(e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},g.prototype.next=function(){var e=this.parent.children.indexOf(this);if(-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},g.prototype.importDocument=function(e){return(e=e.root().clone()).parent=this,e.isRoot=!1,this.children.push(e),this},g.prototype.debugInfo=function(e){var t;return null!=(e=e||this.name)||null!=(t=this.parent)&&t.name?null==e?"parent: <"+this.parent.name+">":null!=(t=this.parent)&&t.name?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},g.prototype.ele=function(e,t,r){return this.element(e,t,r)},g.prototype.nod=function(e,t,r){return this.node(e,t,r)},g.prototype.txt=function(e){return this.text(e)},g.prototype.dat=function(e){return this.cdata(e)},g.prototype.com=function(e){return this.comment(e)},g.prototype.ins=function(e,t){return this.instruction(e,t)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},g.prototype.e=function(e,t,r){return this.element(e,t,r)},g.prototype.n=function(e,t,r){return this.node(e,t,r)},g.prototype.t=function(e){return this.text(e)},g.prototype.d=function(e){return this.cdata(e)},g.prototype.c=function(e){return this.comment(e)},g.prototype.r=function(e){return this.raw(e)},g.prototype.i=function(e,t){return this.instruction(e,t)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(e){return this.importDocument(e)},g.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return 0!==this.children.length},g.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(e,t){return!0},g.prototype.hasAttributes=function(){return 0!==this.attribs.length},g.prototype.compareDocumentPosition=function(e){var t;return this===e?0:this.document()!==e.document()?(t=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?t|=r.Preceding:t|=r.Following,t):this.isAncestor(e)?r.Contains|r.Preceding:this.isDescendant(e)?r.Contains|r.Following:this.isPreceding(e)?r.Preceding:r.Following},g.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:n<=r;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},g.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},g.prototype.isDescendant=function(e){for(var t,r=this.children,n=0,s=r.length;n<s;n++){if(e===(t=r[n]))return!0;if(t.isDescendant(e))return!0}return!1},g.prototype.isAncestor=function(e){return e.isDescendant(this)},g.prototype.isPreceding=function(e){e=this.treePosition(e);var t=this.treePosition(this);return-1!==e&&-1!==t&&e<t},g.prototype.isFollowing=function(e){e=this.treePosition(e);var t=this.treePosition(this);return-1!==e&&-1!==t&&t<e},g.prototype.treePosition=function(t){var r=0,n=!1;return this.foreachTreeNode(this.document(),function(e){if(r++,!n&&e===t)return n=!0}),n?r:-1},g.prototype.foreachTreeNode=function(e,t){for(var r,n,s,i=0,o=(n=(e=e||this.document()).children).length;i<o;i++){if(s=t(r=n[i]))return s;if(s=this.foreachTreeNode(r,t))return s}},g)}).call(this)},{"./DocumentPosition":401,"./NodeType":402,"./Utility":403,"./XMLCData":406,"./XMLComment":408,"./XMLDeclaration":417,"./XMLDocType":418,"./XMLDummy":421,"./XMLElement":422,"./XMLNamedNodeMap":423,"./XMLNodeList":425,"./XMLProcessingInstruction":426,"./XMLRaw":427,"./XMLText":431}],425:[function(e,t,r){(function(){function e(e){this.nodes=e}t.exports=(Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e)}).call(this)},{}],426:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing instruction target. "+this.debugInfo());this.type=o.ProcessingInstruction,this.target=this.stringify.insTarget(t),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},s.prototype.isEqualNode=function(e){return!!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.target===this.target},s}()}).call(this)},{"./NodeType":402,"./XMLCharacterData":407}],427:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./NodeType"),a=e("./XMLNode");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing raw text. "+this.debugInfo());this.type=o.Raw,this.value=this.stringify.raw(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},s}()}).call(this)},{"./NodeType":402,"./XMLNode":424}],428:[function(e,t,r){(function(){var f={}.hasOwnProperty,d=e("./NodeType"),i=e("./XMLWriterBase"),h=e("./WriterState");t.exports=function(){var e,t=s,r=i;for(e in r)f.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t){this.stream=e,s.__super__.constructor.call(this,t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.endline=function(e,t,r){return e.isLastRootNode&&t.state===h.CloseTag?"":s.__super__.endline.call(this,e,t,r)},s.prototype.document=function(e,t){for(var r,n,s,i,o,a,c=e.children,l=n=0,u=c.length;n<u;l=++n)(r=c[l]).isLastRootNode=l===e.children.length-1;for(t=this.filterOptions(t),a=[],s=0,i=(o=e.children).length;s<i;s++)r=o[s],a.push(this.writeChildNode(r,t,0));return a},s.prototype.attribute=function(e,t,r){return this.stream.write(s.__super__.attribute.call(this,e,t,r))},s.prototype.cdata=function(e,t,r){return this.stream.write(s.__super__.cdata.call(this,e,t,r))},s.prototype.comment=function(e,t,r){return this.stream.write(s.__super__.comment.call(this,e,t,r))},s.prototype.declaration=function(e,t,r){return this.stream.write(s.__super__.declaration.call(this,e,t,r))},s.prototype.docType=function(e,t,r){var n,s,i,o;if(this.openNode(e,t,r=r||0),t.state=h.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),0<e.children.length){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,r)),t.state=h.InsideTag,s=0,i=(o=e.children).length;s<i;s++)n=o[s],this.writeChildNode(n,t,r+1);t.state=h.CloseTag,this.stream.write("]")}return t.state=h.CloseTag,this.stream.write(t.spaceBeforeSlash+">"),this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},s.prototype.element=function(e,t,r){var n,s,i,o,a,c,l,u,p;for(l in this.openNode(e,t,r=r||0),t.state=h.OpenTag,this.stream.write(this.indent(e,t,r)+"<"+e.name),u=e.attribs)f.call(u,l)&&(n=u[l],this.attribute(n,t,r));if(o=0===(i=e.children.length)?null:e.children[0],0===i||e.children.every(function(e){return(e.type===d.Text||e.type===d.Raw)&&""===e.value}))t.allowEmpty?(this.stream.write(">"),t.state=h.CloseTag,this.stream.write("</"+e.name+">")):(t.state=h.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==i||o.type!==d.Text&&o.type!==d.Raw||null==o.value){for(this.stream.write(">"+this.endline(e,t,r)),t.state=h.InsideTag,a=0,c=(p=e.children).length;a<c;a++)s=p[a],this.writeChildNode(s,t,r+1);t.state=h.CloseTag,this.stream.write(this.indent(e,t,r)+"</"+e.name+">")}else this.stream.write(">"),t.state=h.InsideTag,t.suppressPrettyCount++,this.writeChildNode(o,t,r+1),t.suppressPrettyCount--,t.state=h.CloseTag,this.stream.write("</"+e.name+">");return this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},s.prototype.processingInstruction=function(e,t,r){return this.stream.write(s.__super__.processingInstruction.call(this,e,t,r))},s.prototype.raw=function(e,t,r){return this.stream.write(s.__super__.raw.call(this,e,t,r))},s.prototype.text=function(e,t,r){return this.stream.write(s.__super__.text.call(this,e,t,r))},s.prototype.dtdAttList=function(e,t,r){return this.stream.write(s.__super__.dtdAttList.call(this,e,t,r))},s.prototype.dtdElement=function(e,t,r){return this.stream.write(s.__super__.dtdElement.call(this,e,t,r))},s.prototype.dtdEntity=function(e,t,r){return this.stream.write(s.__super__.dtdEntity.call(this,e,t,r))},s.prototype.dtdNotation=function(e,t,r){return this.stream.write(s.__super__.dtdNotation.call(this,e,t,r))},s}()}).call(this)},{"./NodeType":402,"./WriterState":404,"./XMLWriterBase":432}],429:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./XMLWriterBase");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e){s.__super__.constructor.call(this,e)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.document=function(e,t){var r,n,s,i,o;for(t=this.filterOptions(t),i="",n=0,s=(o=e.children).length;n<s;n++)r=o[n],i+=this.writeChildNode(r,t,0);return t.pretty&&i.slice(-t.newline.length)===t.newline?i.slice(0,-t.newline.length):i},s}()}).call(this)},{"./XMLWriterBase":432}],430:[function(e,t,r){(function(){function s(e,t){return function(){return e.apply(t,arguments)}}var i={}.hasOwnProperty;function e(e){var t,r,n;for(t in this.assertLegalName=s(this.assertLegalName,this),this.assertLegalChar=s(this.assertLegalChar,this),this.options=e=e||{},this.options.version||(this.options.version="1.0"),r=e.stringify||{})i.call(r,t)&&(n=r[t],this[t]=n)}t.exports=(e.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},e.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},e.prototype.cdata=function(e){return this.options.noValidation?e:(e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e))},e.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/1\.[0-9]+/))return e;throw new Error("Invalid version number: "+e)},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))return this.assertLegalChar(e);throw new Error("Invalid encoding: "+e)},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(this.options.noValidation)return e;if("1.0"===this.options.version){if(t=e.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index)}else if("1.1"===this.options.version&&(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.assertLegalName=function(e){if(this.options.noValidation)return e;if(this.assertLegalChar(e),e.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))return e;throw new Error("Invalid character in name")},e.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},e)}).call(this)},{}],431:[function(e,t,r){(function(){var i={}.hasOwnProperty,o=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=s,r=a;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=o.Text,this.value=this.stringify.text(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){for(var e,t="",r=this.previousSibling;r;)t=r.data+t,r=r.previousSibling;for(t+=this.data,e=this.nextSibling;e;)t+=e.data,e=e.nextSibling;return t}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},s.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}()}).call(this)},{"./NodeType":402,"./XMLCharacterData":407}],432:[function(t,r,e){(function(){var b,g,n,v={}.hasOwnProperty;function e(e){var t,r,n;for(t in r=(this.options=e=e||{}).writer||{})v.call(r,t)&&(n=r[t],this["_"+t]=this[t],this[t]=n)}n=t("./Utility").assign,b=t("./NodeType"),t("./XMLDeclaration"),t("./XMLDocType"),t("./XMLCData"),t("./XMLComment"),t("./XMLElement"),t("./XMLRaw"),t("./XMLText"),t("./XMLProcessingInstruction"),t("./XMLDummy"),t("./XMLDTDAttList"),t("./XMLDTDElement"),t("./XMLDTDEntity"),t("./XMLDTDNotation"),g=t("./WriterState"),r.exports=(e.prototype.filterOptions=function(e){var t,r;return e=n({},this.options,e=e||{}),(t={writer:this}).pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=null!=(r=e.indent)?r:"  ",t.newline=null!=(r=e.newline)?r:"\n",t.offset=null!=(r=e.offset)?r:0,t.dontPrettyTextNodes=null!=(r=null!=(r=e.dontPrettyTextNodes)?r:e.dontprettytextnodes)?r:0,t.spaceBeforeSlash=null!=(r=null!=(r=e.spaceBeforeSlash)?r:e.spacebeforeslash)?r:"",!0===t.spaceBeforeSlash&&(t.spaceBeforeSlash=" "),t.suppressPrettyCount=0,t.user={},t.state=g.None,t},e.prototype.indent=function(e,t,r){return t.pretty&&!t.suppressPrettyCount&&t.pretty&&0<(r=(r||0)+t.offset+1)?new Array(r).join(t.indent):""},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,r){var n;return this.openAttribute(e,t,r),n=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),n},e.prototype.cdata=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<![CDATA[",t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+="]]>"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.comment=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"\x3c!-- ",t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=" --\x3e"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.declaration=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<?xml",t.state=g.InsideTag,n+=' version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),t.state=g.CloseTag,n=(n+=t.spaceBeforeSlash+"?>")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.docType=function(e,t,r){var n,s,i,o,a;if(this.openNode(e,t,r=r||0),t.state=g.OpenTag,o=this.indent(e,t,r),o+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?o+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(o+=' SYSTEM "'+e.sysID+'"'),0<e.children.length){for(o=(o+=" [")+this.endline(e,t,r),t.state=g.InsideTag,s=0,i=(a=e.children).length;s<i;s++)n=a[s],o+=this.writeChildNode(n,t,r+1);t.state=g.CloseTag,o+="]"}return t.state=g.CloseTag,o=(o+=t.spaceBeforeSlash+">")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),o},e.prototype.element=function(e,t,r){var n,s,i,o,a,c,l,u,p,f,d,h,m=!1,y="";for(p in this.openNode(e,t,r=r||0),t.state=g.OpenTag,y+=this.indent(e,t,r)+"<"+e.name,f=e.attribs)v.call(f,p)&&(n=f[p],y+=this.attribute(n,t,r));if(o=0===(i=e.children.length)?null:e.children[0],0===i||e.children.every(function(e){return(e.type===b.Text||e.type===b.Raw)&&""===e.value}))t.allowEmpty?(y+=">",t.state=g.CloseTag,y+="</"+e.name+">"+this.endline(e,t,r)):(t.state=g.CloseTag,y+=t.spaceBeforeSlash+"/>"+this.endline(e,t,r));else if(!t.pretty||1!==i||o.type!==b.Text&&o.type!==b.Raw||null==o.value){if(t.dontPrettyTextNodes)for(a=0,l=(d=e.children).length;a<l;a++)if(((s=d[a]).type===b.Text||s.type===b.Raw)&&null!=s.value){t.suppressPrettyCount++,m=!0;break}for(y+=">"+this.endline(e,t,r),t.state=g.InsideTag,c=0,u=(h=e.children).length;c<u;c++)s=h[c],y+=this.writeChildNode(s,t,r+1);t.state=g.CloseTag,y+=this.indent(e,t,r)+"</"+e.name+">",m&&t.suppressPrettyCount--,y+=this.endline(e,t,r),t.state=g.None}else y+=">",t.state=g.InsideTag,t.suppressPrettyCount++,m=!0,y+=this.writeChildNode(o,t,r+1),t.suppressPrettyCount--,m=!1,t.state=g.CloseTag,y+="</"+e.name+">"+this.endline(e,t,r);return this.closeNode(e,t,r),y
vendor: 3,160 bytes, line 5
5},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case b.CData:return this.cdata(e,t,r);case b.Comment:return this.comment(e,t,r);case b.Element:return this.element(e,t,r);case b.Raw:return this.raw(e,t,r);case b.Text:return this.text(e,t,r);case b.ProcessingInstruction:return this.processingInstruction(e,t,r);case b.Dummy:return"";case b.Declaration:return this.declaration(e,t,r);case b.DocType:return this.docType(e,t,r);case b.AttributeDeclaration:return this.dtdAttList(e,t,r);case b.ElementDeclaration:return this.dtdElement(e,t,r);case b.EntityDeclaration:return this.dtdEntity(e,t,r);case b.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<?",t.state=g.InsideTag,n+=e.target,e.value&&(n+=" "+e.value),t.state=g.CloseTag,n=(n+=t.spaceBeforeSlash+"?>")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.raw=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.text=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdAttList=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<!ATTLIST",t.state=g.InsideTag,n+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),t.state=g.CloseTag,n+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdElement=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<!ELEMENT",t.state=g.InsideTag,n+=" "+e.name+" "+e.value,t.state=g.CloseTag,n+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdEntity=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<!ENTITY",t.state=g.InsideTag,e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" NDATA "+e.nData)),t.state=g.CloseTag,n+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdNotation=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"<!NOTATION",t.state=g.InsideTag,n+=" "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),t.state=g.CloseTag,n+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e)}
5).call(this)},{"./NodeType":402,"./Utility":403,"./WriterState":404,"./XMLCData":406,"./XMLComment":408,"./XMLDTDAttList":413,"./XMLDTDElement":414,"./XMLDTDEntity":415,"./XMLDTDNotation":416,"./XMLDeclaration":417,"./XMLDocType":418,"./XMLDummy":421,"./XMLElement":422,"./XMLProcessingInstruction":426,"./XMLRaw":427,"./XMLText":431}],433:[function(l,u,e){(function(){var s=(e=l("./Utility")).assign,i=e.isFunction,e=l("./XMLDOMImplementation"),o=l("./XMLDocument"),a=l("./XMLDocumentCB"),t=l("./XMLStringWriter"),r=l("./XMLStreamWriter"),n=l("./NodeType"),c=l("./WriterState");u.exports.create=function(e,t,r,n){if(null==e)throw new Error("Root element needs a name.");return n=s({}
5,t,r,n),r=(t=new o(n)).element(e),n.headless||(t.declaration(n),null==n.pubID&&null==n.sysID||t.dtd(n)),r},u.exports.begin=function(e,t,r){var n;return i(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t?new a(e,t,r):new o(e)},u.exports.stringWriter=function(e){return new t(e)},u.exports.streamWriter=function(e,t){return new r(e,t)},u.exports.implementation=new e,u.exports.nodeType=n,u.exports.writerState=c}).call(this)},{"./NodeType":402,"./Utility":403,"./WriterState":404,"./XMLDOMImplementation":411,"./XMLDocument":419,"./XMLDocumentCB":420,"./XMLStreamWriter":428,"./XMLStringWriter":429}],434:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r,n=arguments[t];for(r in n)s.call(n,r)&&(e[r]=n[r])}return e};var s=Object.prototype.hasOwnProperty},{}],435:[function(e,t,r){"use strict";e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.slice.js");var o=e("buffer").Buffer,i={sha1:e("./sha"),md5:e("./md5")},a=64,c=o.alloc(a);function n(e,r){var n=i[e=e||"sha1"],s=[];return n||l("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=o.from(e)),s.push(e),e.length,this},digest:function(e){var t=o.concat(s);t=r?function(e,t,r){o.isBuffer(t)||(t=o.from(t)),o.isBuffer(r)||(r=o.from(r)),t.length>a?t=e(t):t.length<a&&(t=o.concat([t,c],a));for(var n=o.alloc(a),s=o.alloc(a),i=0;i<a;i++)n[i]=54^t[i],s[i]=92^t[i];return r=e(o.concat([n,r])),e(o.concat([s,r]))}(n,r,t):n(t);return s=null,e?t.toString(e):t}}}function l(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}c.fill(0),r.createHash=function(e){return n(e)},r.createHmac=n,r.createCredentials=function(){l("sorry,createCredentials is not implemented yet")},r.createCipher=function(){l("sorry,createCipher is not implemented yet")},r.createCipheriv=function(){l("sorry,createCipheriv is not implemented yet")},r.createDecipher=function(){l("sorry,createDecipher is not implemented yet")},r.createDecipheriv=function(){l("sorry,createDecipheriv is not implemented yet")},r.createSign=function(){l("sorry,createSign is not implemented yet")},r.createVerify=function(){l("sorry,createVerify is not implemented yet")},r.createDiffieHellman=function(){l("sorry,createDiffieHellman is not implemented yet")},r.pbkdf2=function(){l("sorry,pbkdf2 is not implemented yet")}},{"./md5":437,"./sha":438,buffer:89,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.fill.js":270,"core-js/modules/es.array.join.js":276,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.regexp.to-string.js":300}],436:[function(e,t,r){"use strict";e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js");var c=e("buffer").Buffer,u=c.alloc(4);u.fill(0),t.exports={hash:function(e,t,r,n){for(var s=t(function(e,t){e.length%4!=0&&(r=e.length+(4-e.length%4),e=c.concat([e,u],r));for(var r,n=[],s=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=4)n.push(s.call(e,i));return n}(e=c.isBuffer(e)?e:c.from(e),n),8*e.length),i=(t=r,e=n,c.alloc(t)),o=e?i.writeInt32BE:i.writeInt32LE,a=0;a<s.length;a++)o.call(i,s[a],4*a,!0);return i}}},{buffer:89,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.fill.js":270}],437:[function(e,t,r){"use strict";var n=e("./helpers");function s(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,s=-1732584194,i=271733878,o=0;o<e.length;o+=16){var a=r,c=n,l=s,u=i;r=p(r,n,s,i,e[o+0],7,-680876936),i=p(i,r,n,s,e[o+1],12,-389564586),s=p(s,i,r,n,e[o+2],17,606105819),n=p(n,s,i,r,e[o+3],22,-1044525330);r=p(r,n,s,i,e[o+4],7,-176418897),i=p(i,r,n,s,e[o+5],12,1200080426),s=p(s,i,r,n,e[o+6],17,-1473231341),n=p(n,s,i,r,e[o+7],22,-45705983),r=p(r,n,s,i,e[o+8],7,1770035416),i=p(i,r,n,s,e[o+9],12,-1958414417),s=p(s,i,r,n,e[o+10],17,-42063),n=p(n,s,i,r,e[o+11],22,-1990404162),r=p(r,n,s,i,e[o+12],7,1804603682),i=p(i,r,n,s,e[o+13],12,-40341101),s=p(s,i,r,n,e[o+14],17,-1502002290),r=f(r,n=p(n,s,i,r,e[o+15],22,1236535329),s,i,e[o+1],5,-165796510),i=f(i,r,n,s,e[o+6],9,-1069501632),s=f(s,i,r,n,e[o+11],14,643717713),n=f(n,s,i,r,e[o+0],20,-373897302),r=f(r,
5n,s,i,e[o+5],5,-701558691),i=f(i,r,n,s,e[o+10],9,38016083),s=f(s,i,r,n,e[o+15],14,-660478335),n=f(n,s,i,r,e[o+4],20,-405537848),r=f(r,n,s,i,e[o+9],5,568446438),i=f(i,r,n,s,e[o+14],9,-1019803690),s=f(s,i,r,n,e[o+3],14,-187363961),n=f(n,s,i,r,e[o+8],20,1163531501),r=f(r,n,s,i,e[o+13],5,-1444681467),i=f(i,r,n,s,e[o+2],9,-51403784),s=f(s,i,r,n,e[o+7],14,1735328473),r=d(r,n=f(n,s,i,r,e[o+12],20,-1926607734),s,i,e[o+5],4,-378558),i=d(i,r,n,s,e[o+8],11,-2022574463),s=d(s,i,r,n,e[o+11],16,1839030562),n=d(n,s,i,r,e[o+14],23,-35309556),r=d(r,n,s,i,e[o+1],4,-1530992060),i=d(i,r,n,s,e[o+4],11,1272893353),s=d(s,i,r,n,e[o+7],16,-155497632),n=d(n,s,i,r,e[o+10],23,-1094730640),r=d(r,n,s,i,e[o+13],4,681279174),i=d(i,r,n,s,e[o+0],11,-358537222),s=d(s,i,r,n,e[o+3],16,-722521979),n=d(n,s,i,r,e[o+6],23,76029189),r=d(r,n,s,i,e[o+9],4,-640364487),i=d(i,r,n,s,e[o+12],11,-421815835),s=d(s,i,r,n,e[o+15],16,530742520),r=h(r,n=d(n,s,i,r,e[o+2],23,-995338651),s,i,e[o+0],6,-198630844),i=h(i,r,n,s,e[o+7],10,1126891415),s=h(s,i,r,n,e[o+14],15,-1416354905),n=h(n,s,i,r,e[o+5],21,-57434055),r=h(r,n,s,i,e[o+12],6,1700485571),i=h(i,r,n,s,e[o+3],10,-1894986606),s=h(s,i,r,n,e[o+10],15,-1051523),n=h(n,s,i,r,e[o+1],21,-2054922799),r=h(r,n,s,i,e[o+8],6,1873313359),i=h(i,r,n,s,e[o+15],10,-30611744),s=h(s,i,r,n,e[o+6],15,-1560198380),n=h(n,s,i,r,e[o+13],21,1309151649),r=h(r,n,s,i,e[o+4],6,-145523070),i=h(i,r,n,s,e[o+11],10,-1120210379),s=h(s,i,r,n,e[o+2],15,718787259),n=h(n,s,i,r,e[o+9],21,-343485551),r=m(r,a),n=m(n,c),s=m(s,l),i=m(i,u)}return Array(r,n,s,i)}function a(e,t,r,n,s,i){return m((t=m(m(t,e),m(n,i)))<<s|t>>>32-s,r)}function p(e,t,r,n,s,i,o){return a(t&r|~t&n,e,t,s,i,o)}function f(e,t,r,n,s,i,o){return a(t&n|r&~n,e,t,s,i,o)}function d(e,t,r,n,s,i,o){return a(t^r^n,e,t,s,i,o)}function h(e,t,r,n,s,i,o){return a(r^(t|~n),e,t,s,i,o)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n.hash(e,s,16)}},{"./helpers":436}],438:[function(e,t,r){"use strict";var n=e("./helpers");function s(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,s,i=Array(80),o=1732584193,a=-271733879,c=-1732584194,l=271733878,u=-1009589776,p=0;p<e.length;p+=16){for(var f=o,d=a,h=c,m=l,y=u,b=0;b<80;b++){i[b]=b<16?e[p+b]:j(i[b-3]^i[b-8]^i[b-14]^i[b-16],1);var g=v(v(j(o,5),(g=a,n=c,s=l,(r=b)<20?g&n|~g&s:!(r<40)&&r<60?g&n|g&s|n&s:g^n^s)),v(v(u,i[b]),(r=b)<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514));u=l,l=c,c=j(a,30),a=o,o=g}o=v(o,f),a=v(a,d),c=v(c,h),l=v(l,m),u=v(u,y)}return Array(o,a,c,l,u)}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function j(e,t){return e<<t|e>>>32-t}t.exports=function(e){return n.hash(e,s,20,!0)}},{"./helpers":436}],439:[function(e,t,r){"use strict";t.exports=function(){return function(){}}},{}],440:[function(s,i,e){(function(n){(function(){"use strict";var t=s("@babel/runtime/helpers/interopRequireDefault")(s("@babel/runtime/helpers/typeof")),r=s("stream").Stream,e=s("../lib/common/utils/isArray").isArray;i.exports.string=function(e){return"string"==typeof e},i.exports.array=e,i.exports.buffer=n.isBuffer,i.exports.writableStream=function(e){return e instanceof r&&"function"==typeof e._write&&"object"===(0,t.default)(e._writableState)}}).call(this)}).call(this,{isBuffer:s("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":62,"../node_modules/is-buffer/index.js":354,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,stream:387}],441:[function(e,t,r){"use strict";function n(){}e=e("immediate"),(t=t.exports={}).nextTick=e,t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.prependListener=n,t.prependOnceListener=n,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{immediate:347}],442:[function(n,e,s){(function(l){(function(){"use strict";n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.search.js");var o=n("./lib/request"),e=n("./lib/response"),a=n("xtend"),t=n("builtin-status-codes"),c=n("url"),r=s;r.request=function(e,t){e="string"==typeof e?c.parse(e):a(e);var r=-1===l.location.protocol.search(/^https?:$/)?"http:":"",n=(r=e.protocol||r,e.hostname||e.host),s=e.port,i=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(s?":"+s:"")+i,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{},r=new o(e);return t&&r.on("response",t),r},r.get=function(e,t){return(e=r.request(e,t)).end(),e},r.ClientRequest=o,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){}
5,r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":444,"./lib/response":445,"builtin-status-codes":90,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.search.js":305,url:446,xtend:434}],443:[function(a,e,c){(function(o){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),c.fetch=i(o.fetch)&&i(o.ReadableStream),c.writableStream=i(o.WritableStream),c.abortController=i(o.AbortController),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var t;function r(){if(void 0!==t)return t;if(o.XMLHttpRequest){t=new o.XMLHttpRequest;try{t.open("GET",o.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function e(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var n=void 0!==o.ArrayBuffer,s=n&&i(o.ArrayBuffer.prototype.slice);function i(e){return"function"==typeof e}c.arraybuffer=c.fetch||n&&e("arraybuffer"),c.msstream=!c.fetch&&s&&e("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&n&&e("moz-chunked-arraybuffer"),c.overrideMimeType=c.fetch||!!r()&&i(r().overrideMimeType),c.vbArray=i(o.VBArray),t=null}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":267,"core-js/modules/es.array-buffer.slice.js":268,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294}],444:[function(i,o,e){(function(p,f,d){(function(){"use strict";i("core-js/modules/es.object.to-string.js"),i("core-js/modules/es.regexp.to-string.js"),i("core-js/modules/web.dom-collections.for-each.js"),i("core-js/modules/es.object.keys.js"),i("core-js/modules/es.array.concat.js"),i("core-js/modules/es.array.map.js"),i("core-js/modules/es.function.name.js"),i("core-js/modules/es.promise.js"),i("core-js/modules/es.regexp.exec.js"),i("core-js/modules/es.string.split.js");var c=i("./capability"),e=i("inherits"),t=i("./response"),s=i("readable-stream"),l=i("to-arraybuffer"),r=t.IncomingMessage,u=t.readyStates;t=o.exports=function(t){var e,r=this,n=(s.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new d(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])}),!0);if("disable-fetch"===t.mode||"requestTimeout"in t&&!c.abortController)e=!(n=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!c.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=c.fetch&&n?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":c.vbArray&&e?"text:vbarray":"text",r._fetchTimer=null,r.on("finish",function(){r._onFinish()})},e(t,s.Writable),t.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===n.indexOf(r)&&(this._headers[r]={name:e,value:t})},t.prototype.getHeader=function(e){return(e=this._headers[e.toLowerCase()])?e.value:null},t.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},t.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,n=null,s=("GET"!==e.method&&"HEAD"!==e.method&&(n=c.arraybuffer?l(d.concat(t._body)):c.blobConstructor?new f.Blob(t._body.map(function(e){return l(e)}),{type:(r["content-type"]||{}).value||""}):d.concat(t._body).toString()),[]);if(Object.keys(r).forEach(function(e){var t=r[e].name;e=r[e].value;Array.isArray(e)?e.forEach(function(e){s.push([t,e])}):s.push([t,e])}),"fetch"===t._mode){var i,o=null;c.abortController&&(o=(i=new AbortController).signal,t._fetchAbortController=i,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=f.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))),f.fetch(t._opts.url,{method:t._opts.method,headers:s,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){f.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var a=t._xhr=new f.XMLHttpRequest;try{a.open(t._opts.method,t._opts.url,!0)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}"responseType"in a&&(a.responseType=t._mode.split(":")[0]),"withCredentials"in a&&(a.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in a&&a.overrideMimeType("text/plain;
5 charset=x-user-defined"),"requestTimeout"in e&&(a.timeout=e.requestTimeout,a.ontimeout=function(){t.emit("requestTimeout")}),s.forEach(function(e){a.setRequestHeader(e[0],e[1])}),t._response=null,a.onreadystatechange=function(){switch(a.readyState){case u.LOADING:case u.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(a.onprogress=function(){t._onXHRProgress()}),a.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{a.send(n)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}}}},t.prototype._onXHRProgress=function(){!function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},t.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},t.prototype._write=function(e,t,r){this._body.push(e),r()},t.prototype.abort=t.prototype.destroy=function(){this._destroyed=!0,f.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},t.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var n=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,i("_process"),void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},i("buffer").Buffer)},{"./capability":443,"./response":445,_process:441,buffer:89,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.map.js":277,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.regexp.to-string.js":300,"core-js/modules/es.string.split.js":306,"core-js/modules/web.dom-collections.for-each.js":338,inherits:353,"readable-stream":381,"to-arraybuffer":390}],445:[function(r,e,n){(function(u,p,f){(function(){"use strict";r("core-js/modules/es.object.to-string.js"),r("core-js/modules/web.dom-collections.for-each.js"),r("core-js/modules/es.promise.js"),r("core-js/modules/es.regexp.exec.js"),r("core-js/modules/es.string.split.js"),r("core-js/modules/es.string.match.js"),r("core-js/modules/es.array.iterator.js"),r("core-js/modules/es.array-buffer.slice.js"),r("core-js/modules/es.typed-array.uint8-array.js"),r("core-js/modules/es.typed-array.copy-within.js"),r("core-js/modules/es.typed-array.every.js"),r("core-js/modules/es.typed-array.fill.js"),r("core-js/modules/es.typed-array.filter.js"),r("core-js/modules/es.typed-array.find.js"),r("core-js/modules/es.typed-array.find-index.js"),r("core-js/modules/es.typed-array.for-each.js"),r("core-js/modules/es.typed-array.includes.js"),r("core-js/modules/es.typed-array.index-of.js"),r("core-js/modules/es.typed-array.iterator.js"),r("core-js/modules/es.typed-array.join.js"),r("core-js/modules/es.typed-array.last-index-of.js"),r("core-js/modules/es.typed-array.map.js"),r("core-js/modules/es.typed-array.reduce.js"),r("core-js/modules/es.typed-array.reduce-right.js"),r("core-js/modules/es.typed-array.reverse.js"),r("core-js/modules/es.typed-array.set.js"),r("core-js/modules/es.typed-array.slice.js"),r("core-js/modules/es.typed-array.some.js"),r("core-js/modules/es.typed-array.sort.js"),r("core-js/modules/es.typed-array.subarray.js"),r("core-js/modules/es.typed-array.to-locale-string.js"),r("core-js/modules/es.typed-array.to-string.js"),r("core-js/modules/es.array.slice.js");var a=r("./capability"),e=r("inherits"),c=r("readable-stream"),l=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var s=this;if(c.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){u.nextTick(function(){s.emit("close")})}),"fetch"===r){if(r=function t(){o.read().then(function(e){if(!s._destroyed){
5if(e.done)return p.clearTimeout(n),void s.push(null);s.push(new f(e.value)),t()}}).catch(function(e){p.clearTimeout(n),s._destroyed||s.emit("error",e)})},s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)}),a.writableStream){var i=new WritableStream({write:function(r){return new Promise(function(e,t){s._destroyed?t():s.push(new f(r))?e():s._resumeFetch=e})},close:function(){p.clearTimeout(n),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(i).catch(function(e){p.clearTimeout(n),s._destroyed||s.emit("error",e)})}catch(e){}}var o=t.body.getReader();r()}else s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t;(e=e.match(/^([^:]+):\s*(.*)/))&&("set-cookie"===(t=e[1].toLowerCase())?(void 0===s.headers[t]&&(s.headers[t]=[]),s.headers[t].push(e[2])):void 0!==s.headers[t]?s.headers[t]+=", "+e[2]:s.headers[t]=e[2],s.rawHeaders.push(e[1],e[2]))}),s._charset="x-user-defined",a.overrideMimeType||((i=s.rawHeaders["mime-type"])&&(t=i.match(/;\s*charset=([^;])(;|$)/))&&(s._charset=t[1].toLowerCase()),s._charset||(s._charset="utf-8"))};e(t,c.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{r=new p.VBArray(e.responseBody).toArray()}catch(e){}if(null!==r){t.push(new f(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var s=new f(n.length),i=0;i<n.length;i++)s[i]=255&n.charCodeAt(i);t.push(s)}else t.push(n,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==l.DONE||!e.response)break;r=e.response,t.push(new f(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==l.LOADING||!r)break;t.push(new f(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==l.LOADING)break;var o=new p.MSStreamReader;o.onprogress=function(){o.result.byteLength>t._pos&&(t.push(new f(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(r)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this)}).call(this,r("_process"),void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":443,_process:441,buffer:89,"core-js/modules/es.array-buffer.slice.js":268,"core-js/modules/es.array.iterator.js":275,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.match.js":303,"core-js/modules/es.string.split.js":306,"core-js/modules/es.typed-array.copy-within.js":314,"core-js/modules/es.typed-array.every.js":315,"core-js/modules/es.typed-array.fill.js":316,"core-js/modules/es.typed-array.filter.js":317,"core-js/modules/es.typed-array.find-index.js":318,"core-js/modules/es.typed-array.find.js":319,"core-js/modules/es.typed-array.for-each.js":320,"core-js/modules/es.typed-array.includes.js":321,"core-js/modules/es.typed-array.index-of.js":322,"core-js/modules/es.typed-array.iterator.js":323,"core-js/modules/es.typed-array.join.js":324,"core-js/modules/es.typed-array.last-index-of.js":325,"core-js/modules/es.typed-array.map.js":326,"core-js/modules/es.typed-array.reduce-right.js":327,"core-js/modules/es.typed-array.reduce.js":328,"core-js/modules/es.typed-array.reverse.js":329,"core-js/modules/es.typed-array.set.js":330,"core-js/modules/es.typed-array.slice.js":331,"core-js/modules/es.typed-array.some.js":332,"core-js/modules/es.typed-array.sort.js":333,"core-js/modules/es.typed-array.subarray.js":334,"core-js/modules/es.typed-array.to-locale-string.js":335,"core-js/modules/es.typed-array.to-string.js":336,"core-js/modules/es.typed-array.uint8-array.js":337,"core-js/modules/web.dom-collections.for-each.js":338,inherits:353,"readable-stream":381}],446:[function(e,t,r){"use strict";var T=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof")),k=(e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.
5concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js"),e("punycode")),E=e("./util");function w(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=s,r.resolve=function(e,t){return s(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?s(e,!1,!0).resolveObject(t):t},r.format=function(e){return E.isString(e)&&(e=s(e)),e instanceof w?e.format():w.prototype.format.call(e)},r.Url=w;var _=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,S=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,O=(r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),["'"].concat(r)),A=["%","/","?",";","#"].concat(O),D=["/","?","#"],I=/^[+a-z0-9A-Z_-]{0,63}$/,C=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},M=e("querystring");function s(e,t,r){if(e&&E.isObject(e)&&e instanceof w)return e;var n=new w;return n.parse(e,t,r),n}w.prototype.parse=function(e,t,r){if(!E.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,T.default)(e));var n=-1!==(n=e.indexOf("?"))&&n<e.indexOf("#")?"?":"#",s=e.split(n);s[0]=s[0].replace(/\\/g,"/");var o,i=(i=e=s.join(n)).trim();if(!r&&1===e.split("#").length&&(s=S.exec(i)))return this.path=i,this.href=i,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?M.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this;if((n=_.exec(i))&&(o=(n=n[0]).toLowerCase(),this.protocol=o,i=i.substr(n.length)),!(r||n||i.match(/^\/\/[^@\/]+@[^@\/]+/))||!(j="//"===i.substr(0,2))||n&&R[n]||(i=i.substr(2),this.slashes=!0),!R[n]&&(j||n&&!P[n])){for(var a=-1,c=0;c<D.length;c++)-1!==(l=i.indexOf(D[c]))&&(-1===a||l<a)&&(a=l);-1!==(e=-1===a?i.lastIndexOf("@"):i.lastIndexOf("@",a))&&(s=i.slice(0,e),i=i.slice(e+1),this.auth=decodeURIComponent(s));var l;for(a=-1,c=0;c<A.length;c++)-1!==(l=i.indexOf(A[c]))&&(-1===a||l<a)&&(a=l);if(-1===a&&(a=i.length),this.host=i.slice(0,a),i=i.slice(a),this.parseHost(),this.hostname=this.hostname||"",!(r="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]))for(var u=this.hostname.split("."),p=(c=0,u.length);c<p;c++){var f=u[c];if(f&&!f.match(I)){for(var d="",h=0,m=f.length;h<m;h++)127<f.charCodeAt(h)?d+="x":d+=f[h];if(!d.match(I)){var y=u.slice(0,c),b=u.slice(c+1),g=f.match(C);g&&(y.push(g[1]),b.unshift(g[2])),b.length&&(i="/"+b.join(".")+i),this.hostname=y.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),r||(this.hostname=k.toASCII(this.hostname));var v=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+v,this.href+=this.host,r&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!N[o])for(c=0,p=O.length;c<p;c++){var w,x=O[c];-1!==i.indexOf(x)&&((w=encodeURIComponent(x))===x&&(w=escape(x)),i=i.split(x).join(w))}return-1!==(n=i.indexOf("#"))&&(this.hash=i.substr(n),i=i.slice(0,n)),-1!==(e=i.indexOf("?"))?(this.search=i.substr(e),this.query=i.substr(e+1),t&&(this.query=M.parse(this.query)),i=i.slice(0,e)):t&&(this.search="",this.query={}),i&&(this.pathname=i),P[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(v=this.pathname||"",s=this.search||"",this.path=v+s),this.href=this.format(),this},w.prototype.format=function(){var t=((e=this.auth||"")&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@"),this.protocol||""),r=this.pathname||"",n=this.hash||"",s=!1,i="",e=(this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&E.isObject(this.query)&&Object.keys(this.query).length&&(i=M.stringify(this.query)),this.search||i&&"?"+i||"");return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||P[t])&&
5!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s=s||"",n&&"#"!==n.charAt(0)&&(n="#"+n),e&&"?"!==e.charAt(0)&&(e="?"+e),t+s+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(e=e.replace("#","%23"))+n},w.prototype.resolve=function(e){return this.resolveObject(s(e,!1,!0)).format()},w.prototype.resolveObject=function(e){E.isString(e)&&((f=new w).parse(e,!1,!0),e=f);for(var t=new w,r=Object.keys(this),n=0;n<r.length;n++){var s=r[n];t[s]=this[s]}if(t.hash=e.hash,""===e.href)return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),o=0;o<i.length;o++){var a=i[o];"protocol"!==a&&(t[a]=e[a])}return P[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!P[e.protocol]){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];t[u]=e[u]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||R[e.protocol])t.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),t.pathname=p.join("/")}return t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(f=t.pathname||"",d=t.search||"",t.path=f+d),t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var f=t.pathname&&"/"===t.pathname.charAt(0),h=f=(d=e.host||e.pathname&&"/"===e.pathname.charAt(0))||f||t.host&&e.pathname,m=t.pathname&&t.pathname.split("/")||[],y=(p=e.pathname&&e.pathname.split("/")||[],t.protocol&&!P[t.protocol]);if(y&&(t.hostname="",t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),f=f&&(""===p[0]||""===m[0])),d)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,m=p;else if(p.length)(m=m||[]).pop(),m=m.concat(p),t.search=e.search,t.query=e.query;else if(!E.isNullOrUndefined(e.search))return y&&(t.hostname=t.host=m.shift(),(j=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=j.shift(),t.host=t.hostname=j.shift())),t.search=e.search,t.query=e.query,E.isNull(t.pathname)&&E.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(!m.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var b=m.slice(-1)[0],d=(t.host||e.host||1<m.length)&&("."===b||".."===b)||""===b,g=0,v=m.length;0<=v;v--)"."===(b=m[v])?m.splice(v,1):".."===b?(m.splice(v,1),g++):g&&(m.splice(v,1),g--);if(!f&&!h)for(;g--;)m.unshift("..");!f||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),d&&"/"!==m.join("/").substr(-1)&&m.push("");var j;h=""===m[0]||m[0]&&"/"===m[0].charAt(0);return y&&(t.hostname=t.host=!h&&m.length?m.shift():"",(j=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=j.shift(),t.host=t.hostname=j.shift())),(f=f||t.host&&m.length)&&!h&&m.unshift(""),m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),E.isNull(t.pathname)&&E.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},w.prototype.parseHost=function(){var e=this.host,t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":447,"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,"core-js/modules/es.array.concat.js":269,"core-js/modules/es.array.join.js":276,"core-js/modules/es.array.slice.js":278,"core-js/modules/es.array.splice.js":280,"core-js/modules/es.object.keys.js":289,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.match.js":303,"core-js/modules/es.string.replace.js":304,"core-js/modules/es.string.search.js":305,"core-js/modules/es.string.split.js":306,"core-js/modules/es.string.trim.js":307,punycode:367,querystring:370}],447:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===(0,n.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78}],448:[function(e,t,r){"use strict";e("core-js/modules/es.number.constructor.js"),r.encodeURIComponent=function(t){try{return encodeURIComponent(t)}catch(e){return t}},r.escape=e("escape-html"),r.timestamp=function(e){var t;return e?("string"==typeof(t=e)&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)):Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":283,"escape-html":342}],449:[function(e,t,J){(function(Y,$){(function(){"use strict";var L=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof")),B=(e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.
5concat.js"),e("util")),q=e("url"),F=e("http"),U=e("https"),G=e("debug")("urllib"),X=e("humanize-ms"),V=0,z=Math.pow(2,31)-10,W=/^https?:\/\//i;function H(e,t){return void 0===e?t:e}J.TIMEOUTS=[X("300s"),X("300s")];var K=["json","text"];J.request=function(r,i,e){return 2===arguments.length&&"function"==typeof i&&(e=i,i=null),"function"==typeof e?J.requestWithCallback(r,i,e):new Promise(function(e,t){var n,s;J.requestWithCallback(r,i,(n=e,s=t,function(e,t,r){if(e)return s(e);n({data:t,status:r.statusCode,headers:r.headers,res:r})}))})},J.requestWithCallback=function(a,c,l){if(!a||"string"!=typeof a&&"object"!==(0,L.default)(a))throw t=B.format("expect request url to be a string or a http request options, but got %j",a),new Error(t);2===arguments.length&&"function"==typeof c&&(l=c,c=null),z<=V&&(V=0);var e,u=++V,p=((c=c||{}).requestUrls=c.requestUrls||[],{requestId:u,url:a,args:c,ctx:c.ctx}),f=(c.emitter&&c.emitter.emit("request",p),c.timeout=c.timeout||J.TIMEOUTS,c.maxRedirects=c.maxRedirects||10,c.streaming=c.streaming||c.customResponse,Date.now()),t="string"==typeof a?(W.test(a)||(a="https://"+a),q.parse(a)):a,r=(c.type||c.method||t.method||"GET").toUpperCase(),n=t.port||80,s=F,d=H(c.agent,J.agent),M=c.fixJSONCtlChars,h=("https:"===t.protocol&&(s=U,d=H(c.httpsAgent,J.httpsAgent),t.port||(n=443)),{host:t.hostname||t.host||"localhost",path:t.path||"/",method:r,port:n,agent:d,headers:c.headers||{},lookup:c.lookup}),i=(n=((n=(Array.isArray(c.timeout)?h.requestTimeout=c.timeout[c.timeout.length-1]:void 0!==c.timeout&&(h.requestTimeout=c.timeout),c.auth||t.auth))&&(h.auth=n),c.content||c.data),"GET"===r||"HEAD"===r||c.dataAsQueryString),m=(c.content||n&&"string"!=typeof n&&!$.isBuffer(n)&&(n=i?(c.nestedQuerystring?qs:querystring).stringify(n):((e=h.headers["Content-Type"]||h.headers["content-type"])||(e="json"===c.contentType?"application/json":"application/x-www-form-urlencoded",h.headers["Content-Type"]=e),("application/json"===(e?e.split(";")[0].trim().toLowerCase():"")?JSON:c.nestedQuerystring?qs:querystring).stringify(n))),i&&n&&(h.path+=(t.query?"&":"?")+n,n=null),0),o=(n&&(e=n.length,$.isBuffer(n)||(e=$.byteLength(n)),m=h.headers["Content-Length"]=e),"json"===c.dataType&&(h.headers.Accept="application/json"),"function"==typeof c.beforeRequest&&c.beforeRequest(h),null),y=null,b=null,g=!1,v=!1,j=0,w=-1,x=!1,T="",k="",E=null;function _(){o&&(clearTimeout(o),o=null)}function S(){y&&(clearTimeout(y),y=null)}function O(e,t,r){if(S(),!l)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),u,Y.pid,h.method,a),void(e&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),u,Y.pid,e.name,e.message,e.stack));var n,s=l,i=(l=null,{}),o=(r&&(w=r.statusCode,i=r.headers),Date.now()-f);E&&(E.contentDownload=o),G("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",o,j,w,h.method,h.host,h.path,v,E),o={status:w,statusCode:w,headers:i,size:j,aborted:x,rt:o,keepAliveSocket:v,data:t,requestUrls:c.requestUrls,timing:E,remoteAddress:T,remotePort:k};e&&(n="",d&&"function"==typeof d.getCurrentStatus&&(n=", agent status: "+JSON.stringify(d.getCurrentStatus())),e.message+=", "+h.method+" "+a+" "+w+" (connected: "+g+", keepalive socket: "+v+n+")\nheaders: "+JSON.stringify(i),e.data=t,e.path=h.path,e.status=w,e.headers=i,e.res=o),s(e,t,c.streaming?r:o),c.emitter&&(p.url=a,p.socket=C&&C.connection,p.options=h,p.size=m,c.emitter.emit("response",{requestId:u,error:e,ctx:c.ctx,req:p,res:o}))}function A(e){var t=null;if(c.followRedirect&&statuses.redirect[e.statusCode]){c._followRedirectCount=(c._followRedirectCount||0)+1;var r,n=e.headers.location;if(n){if(!(c._followRedirectCount>c.maxRedirects))return r=c.formatRedirectUrl?c.formatRedirectUrl(a,n):q.resolve(a,n),G("Request#%d %s: `redirected` from %s to %s",u,h.path,a,r),S(),c.headers&&c.headers.Host&&W.test(n)&&(c.headers.Host=null),n=l,l=null,J.requestWithCallback(r,c,n),{redirect:!0,error:null};(t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+a)).name="MaxRedirectError"}else(t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:t}}
5c.timing&&(E={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),!c.gzip||h.headers["Accept-Encoding"]||h.headers["accept-encoding"]||(h.headers["Accept-Encoding"]="gzip");var D,I,C,N=c.writeStream;function R(){G("Response timer ticking, timeout: %d",I),y=setTimeout(function(){y=null;var e="Response timeout for "+I+"ms";(b=new Error(e)).name="ResponseTimeoutError",b.requestId=u,G("ResponseTimeout: Request#%d %s %s: %s, connected: %s",u,a,b.name,e,g),P()},I)}G("Request#%d %s %s with headers %j, options.path: %s",u,r,a,h.headers,h.path),c.requestUrls.push(a),Array.isArray(c.timeout)?(D=X(c.timeout[0]),I=X(c.timeout[1])):D=I=X(c.timeout),G("ConnectTimeout: %d, ResponseTimeout: %d",D,I),h.mode=c.mode||"";try{C=s.request(h,function(s){var e;if(E&&(E.waiting=Date.now()-f),G("Request#%d %s `req response` event emit: status %d, headers: %j",u,a,s.statusCode,s.headers),c.streaming)return(e=A(s)).redirect?void s.resume():e.error?(s.resume(),O(e.error,null,s)):O(null,null,s);if(s.on("close",function(){G("Request#%d %s: `res close` event emit, total size %d",u,a,j)}),s.on("error",function(){G("Request#%d %s: `res error` event emit, total size %d",u,a,j)}),s.on("aborted",function(){x=!0,G("Request#%d %s: `res aborted` event emit, total size %d",u,a,j)}),N)return(e=A(s)).redirect?void s.resume():e.error?(s.resume(),N.end(),O(e.error,null,s)):(!1===c.consumeWriteStream?s.on("end",O.bind(null,null,null,s)):N.on("close",function(){G("Request#%d %s: writeStream close event emitted",u,a),O(b||null,null,s)}),s.pipe(N));var t=[];s.on("data",function(e){G("Request#%d %s: `res data` event emit, size %d",u,a,e.length),j+=e.length,t.push(e)}),s.on("end",function(){var e,n=$.concat(t,j);return G("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",u,a,j,s._dumped),b?O(b,n,s):(e=A(s)).error?O(e.error,n,s):void(e.redirect||function(e,t,r){if(e)return O(e,n,s);if(!r&&0<=K.indexOf(c.dataType)){try{t=decodeBodyByCharset(t,s)}catch(e){return G("decodeBodyByCharset error: %s",e),O(null,t,s)}"json"===c.dataType&&(0===j?t=null:(r=parseJSON(t,M)).error?e=r.error:t=r.data)}x&&G("Request#%d %s: Remote socket was terminated before `response.end()` was called",u,a),O(e,t,s)}(null,n,s.headers["content-encoding"]))})})}catch(e){return O(e)}function P(){G("Request#%d %s abort, connected: %s",u,a,g),C.socket||(b.noSocket=!0,O(b)),C.abort()}return"undefined"==typeof window?(G("Connect timer ticking, timeout: %d",D),o=setTimeout(function(){o=null,-1===w&&(w=-2);var e="Connect timeout for "+D+"ms",t="ConnectionTimeoutError";C.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),(b=new Error(e)).name=t,b.requestId=u,G("ConnectTimeout: Request#%d %s %s: %s, connected: %s",u,a,b.name,e,g),P()},D)):C.on("requestTimeout",function(){-1===w&&(w=-2),(b=new Error("Connect timeout for "+D+"ms")).name="ConnectionTimeoutError",b.requestId=u,P()}),E&&C.on("finish",function(){E.requestSent=Date.now()-f}),C.once("socket",function(e){E&&(E.queuing=Date.now()-f);var t=e.readyState;if("opening"===t)return e.once("lookup",function(e,t,r){G("Request#%d %s lookup: %s, %s, %s",u,a,e,t,r),E&&(E.dnslookup=Date.now()-f),t&&(T=t)}),void e.once("connect",function(){E&&(E.connected=Date.now()-f),_(),R(),G("Request#%d %s new socket connected",u,a),g=!0,T=T||e.remoteAddress,k=e.remotePort});G("Request#%d %s reuse socket connected, readyState: %s",u,a,t),v=g=!0,T=T||e.remoteAddress,k=e.remotePort,_(),R()}),C.on("error",function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=g?"ResponseError":"RequestError"),e.message+=' (req "error")',G("Request#%d %s `req error` event emit, %s: %s",u,a,e.name,e.message),O(b||e)}),N&&N.once("error",function(e){e.message+=' (writeStream "error")',G("Request#%d %s `writeStream error` event emit, %s: %s",u,a,(b=e).name,e.message),P()}),c.stream?(c.stream.pipe(C),c.stream.once("error",function(e){e.message+=' (stream "error")',G("Request#%d %s `readStream error` event emit, %s: %s",u,a,(b=e).name,e.message),P()})):C.end(n),C.requestId=u,C}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":77,"@babel/runtime/helpers/typeof":78,_process:441,buffer:89,"core-js/modules/es.array.
vendor: 6,408 bytes, lines 5-6
5concat.js":269,"core-js/modules/es.function.name.js":281,"core-js/modules/es.object.to-string.js":290,"core-js/modules/es.promise.js":294,"core-js/modules/es.regexp.exec.js":299,"core-js/modules/es.string.split.js":306,"core-js/modules/es.string.trim.js":307,debug:439,http:442,https:344,"humanize-ms":345,url:446,util:394}]},{},[1])(1)})}(window);
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s={},a={}){Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}class n extends Array{constructor(e){super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this)}}function l(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...l(e)):t.push(e)})),t}function o(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){const s=r(),i=a();let l=[];if(!t&&e instanceof n)return e;if(!e)return new n(l);if("string"==typeof e){const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let e="div";0===s.indexOf("<li")&&(e="ul"),0===s.indexOf("<tr")&&(e="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(e="tr"),0===s.indexOf("<tbody")&&(e="table"),0===s.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=s;for(let e=0;e<t.childNodes.length;e+=1)l.push(t.childNodes[e])}else l=function(e,t){if("string"!=typeof e)return[e];const s=[],a=t.querySelectorAll(e);for(let e=0;e<a.length;e+=1)s.push(a[e]);return s}(e.trim(),t||i)}else if(e.nodeType||e===s||e===i)l.push(e);else if(Array.isArray(e)){if(e instanceof n)return e;l=e}return new n(function(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}(l))}d.fn=n.prototype;const c={addClass:function(...e){const t=l(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=l(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=l(e.map((e=>e.split(" "))));return o(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=l(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let[t,s,a,i]=e;function r(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),d(t).is(s))a.apply(t,i);else{const e=d(t).parents();for(let t=0;t<e.length;t+=1)d(e[t]).is(s)&&a.apply(e[t],i)}}function n(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof e[1]&&([t,a,i]=e,s=void 0),i||(i=!1);const l=t.split(" ");let o;for(let e=0;e<this.length;e+=1){const t=this[e];if(s)for(o=0;o<l.length;o+=1){const e=l[o];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:a,proxyListener:r}),t.addEventListener(e,r,i)}else for(o=0;o<l.length;o+=1){const e=l[o];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:a,proxyListener:n}),t.addEventListener(e,n,i)}}return this},off:function(...e){let[t,s,a,i]=e;"function"==typeof e[1]&&([t,a,i]=e,s=void 0),i||(i=!1);const r=t.split(" ");for(let e=0;e<r.length;e+=1){const t=r[e];for(let e=0;e<this.length;e+=1){const r=this[e];let n;if(!s&&r.dom7Listeners?n=r.dom7Listeners[t]:s&&r.dom7LiveListeners&&(n=r.dom7LiveListeners[t]),n&&n.length)for(let e=n.length-1;e>=0;e-=1){const s=n[e];a&&s.listener===a||a&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===a?(r.removeEventListener(t,s.proxyListener,i),n.splice(e,1)):a||(r.removeEventListener(t,s.proxyListener,i),n.splice(e,1))}}}return this},trigger:function(...e){const t=r(),s=e[0].split(" "),a=e[1];for(let i=0;i<s.length;i+=1){const r=s[i];for(let s=0;s<this.length;s+=1){const i=this[s];if(t.CustomEvent){const s=new t.CustomEvent(r,{detail:a,bubbles:!0,cancelable:!0});i.dom7EventData=e.filter(((e,t)=>t>0)),i.dispatchEvent(s),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function s(a){a.target===this&&(e.call(this,a),t.off("transitionend",s))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+
vendor: 10,611 bytes, line 6
6parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=r();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=r(),t=a(),s=this[0],i=s.getBoundingClientRect(),n=t.body,l=s.clientTop||n.clientTop||0,o=s.clientLeft||n.clientLeft||0,d=s===e?e.scrollY:s.scrollTop,c=s===e?e.scrollX:s.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}return null},css:function(e,t){const s=r();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(const t in e)this[a].style[t]=e[t];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,s)=>{e.apply(t,[t,s])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=r(),s=a(),i=this[0];let l,o;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(l=d(e),o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}if(e===s)return i===s;if(e===t)return i===t;if(e.nodeType||e instanceof n){for(l=e.nodeType?[e]:e,o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return d([]);if(e<0){const s=t+e;return d(s<0?[]:[this[s]])}return d([this[e]])},append:function(...e){let t;const s=a();for(let a=0;a<e.length;a+=1){t=e[a];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const a=s.createElement("div");for(a.innerHTML=t;a.firstChild;)this[e].appendChild(a.firstChild)}else if(t instanceof n)for(let s=0;s<t.length;s+=1)this[e].appendChild(t[s]);else this[e].appendChild(t)}return this},prepend:function(e){const t=a();let s,i;for(s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,i=a.childNodes.length-1;i>=0;i-=1)this[s].insertBefore(a.childNodes[i],this[s].childNodes[0])}else if(e instanceof n)for(i=0;i<e.length;i+=1)this[s].insertBefore(e[i],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]):this[0].nextElementSibling?d([this[0].nextElementSibling]):d([]):d([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.nextElementSibling;){const a=s.nextElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]):t.previousElementSibling?d([t.previousElementSibling]):d([])}return d([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.previousElementSibling;){const a=s.previousElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?d(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return d(t)},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let a=this[s].parentNode;for(;a;)e?d(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return d(t)},closest:function(e){let t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return d(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].children;for(let s=0;s<a.length;s+=1)e&&!d(a[s]).is(e)||t.push(a[s])}return d(t)},filter:function(e){return d(o(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function p(e,t=0){return setTimeout(e,t)}function u(){return Date.now()}function h(e,t="x"){const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(...e){const t=Object(e[0]),s=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const r=e[i];if(null!=r&&(a=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?a instanceof HTMLElement:a&&(1===a.nodeType||11===a.nodeType)))){const e=Object.keys(Object(r)).filter((e=>s.indexOf(e)<0));for(let s=0,a=e.length;s<a;s+=1){const a=e[s],i=Object.getOwnPropertyDescriptor(r,a);void 0!==i&&i.enumerable&&(m(t[a])&&m(r[a])?r[a].__swiper__?t[a]=r[a]:f(t[a],r[a]):!m(t[a])&&m(r[a])?(t[a]={},r[a].__swiper__?t[a]=r[a]:f(t[a],r[a])):t[a]=r[a])}}}var a;return t}function g(e,t,s){e.style.setProperty(t,s)}function v({swiper:e,targetPosition:t,side:s}){const a=r(),i=-e.translate;let n,l=null;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const d=t>i?"next":"prev",c=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,p=()=>{n=(new Date).getTime(),null===l&&(l=n);const r=Math.max(Math.min((n-l)/o,1),0),d=.5-Math.cos(r*Math.PI)/2;let u=i+d*(t-i);if(c(u,t)&&(u=t),e.wrapperEl.scrollTo({[s]:u}),c(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:u})})),void a.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=a.requestAnimationFrame(p)};p()}let w,b,x;function y(){return w||(w=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const s=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,s)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),w}function E(e={}){return b||(b=function({userAgent:e}={}){const t=y(),s=r(),a=s.navigator.platform,i=e||s.navigator.userAgent,n={ios:!1,android:!1},l=s.screen.width,o=s.screen.height,d=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const p=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===a;let m="MacIntel"===a;return!c&&m&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${o}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),m=!1),d&&!h&&(n.os="android",n.android=!0),(c||u||p)&&(n.os="ios",n.ios=!0),n}(e)),b}function T(){return x||(x=function(){const e=r();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),x}Object.keys(c).forEach((e=>{Object.defineProperty(d.fn,e,{value:c[e],writable:!0})}));var C={on(e,t,s){const a=this;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if("function"!=typeof t)return a;function i(...s){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(a,s)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(...e){const t=this;if(!t.eventsListeners)return t;let s,a,i;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],a=e.slice(1,e.length),i=t):(s=e[0].events,a=e[0].data,i=e[0].context||t),a.unshift(i);return(Array.isArray(s)?s:s.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(i,[e,...a])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(i,a)}))})),t}};function $({swiper:e,runCallbacks:t,direction:s,step:a}){const{activeIndex:i,previousIndex:r}=e;let n=s;if(n||(n=i>r?"next":i<r?"prev":"reset"),e.emit(`transition${a}`),t&&i!==r){if("reset"===n)return void e.emit(`slideResetTransition${a}`);e.emit(`slideChangeTransition${a}`),"next"===n?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function S(e){const t=this,s=a(),i=r(),n=t.touchEventsData,{params:l,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=e;p.originalEvent&&(p=p.originalEvent);let h=d(p.target);if("wrapper"===l.touchEventsTarget&&!h.closest(t.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===p.type,!n.isTouchEvent&&"which"in p&&3===p.which)return;if(!n.isTouchEvent&&"button"in p&&p.button>0)return;if(n.isTouched&&n.isMoved)return;
vendor: 9,612 bytes, line 6
6!!l.noSwipingClass&&""!==l.noSwipingClass&&p.target&&p.target.shadowRoot&&e.path&&e.path[0]&&(h=d(e.path[0]));const m=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!p.target||!p.target.shadowRoot);if(l.noSwiping&&(f?function(e,t=this){return function t(s){return s&&s!==a()&&s!==r()?(s.assignedSlot&&(s=s.assignedSlot),s.closest(e)||t(s.getRootNode().host)):null}(t)}(m,p.target):h.closest(m)[0]))return void(t.allowClick=!0);if(l.swipeHandler&&!h.closest(l.swipeHandler)[0])return;o.currentX="touchstart"===p.type?p.targetTouches[0].pageX:p.pageX,o.currentY="touchstart"===p.type?p.targetTouches[0].pageY:p.pageY;const g=o.currentX,v=o.currentY,w=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,b=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(w&&(g<=b||g>=i.innerWidth-b)){if("prevent"!==w)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=v,n.touchStartTime=u(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==p.type){let e=!0;h.is(n.focusableElements)&&(e=!1),s.activeElement&&d(s.activeElement).is(n.focusableElements)&&s.activeElement!==h[0]&&s.activeElement.blur();const a=e&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!a||h[0].isContentEditable||p.preventDefault()}t.emit("touchStart",p)}function M(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=s;if(!o)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",c));if(i.isTouchEvent&&"touchmove"!==c.type)return;const p="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?p.pageX:c.pageX,m="touchmove"===c.type?p.pageY:c.pageY;if(c.preventedByNestedSwiper)return n.startX=h,void(n.startY=m);if(!s.allowTouchMove)return s.allowClick=!1,void(i.isTouched&&(Object.assign(n,{startX:h,startY:m,currentX:h,currentY:m}),i.touchStartTime=u()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<n.startX&&s.translate<=s.maxTranslate()||h>n.startX&&s.translate>=s.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&d(c.target).is(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);if(i.allowTouchCallbacks&&s.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;n.currentX=h,n.currentY=m;const f=n.currentX-n.startX,g=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(f**2+g**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",c),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&s.loopFix(),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating&&s.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",c)),s.emit("sliderMove",c),i.isMoved=!0;let v=s.isHorizontal()?f:g;n.diff=v,v*=r.touchRatio,l&&(v=-v),s.swipeDirection=v>0?"prev":"next",i.currentTranslate=v+i.startTranslate;let w=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),v>0&&i.currentTranslate>s.minTranslate()?(w=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+v)**b)):v<0&&i.currentTranslate<s.maxTranslate()&&(w=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-v)**b)),w&&(c.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),s.params.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function P(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,slidesGrid:n,enabled:l}=t;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",o),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);a.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=u(),c=d-s.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(o),t.emit("tap click",o),c<300&&d-s.lastClickTime<300&&t.emit("doubleTap doubleClick",o)),s.lastClickTime=u(),p((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===i.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=a.followFinger?r?t.translate:-t.translate:-s.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let m=0,f=t.slidesSizesGrid[0];for(let e=0;e<n.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==n[e+t]?h>=n[e]&&h<n[e+t]&&(m=e,f=n[e+t]-n[e]):h>=n[e]&&(m=e,f=n[n.length-1]-n[n.length-2])}const g=(h-n[m])/f,v=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(c>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=a.longSwipesRatio?t.slideTo(m+v):t.slideTo(m)),"prev"===t.swipeDirection&&(g>1-a.longSwipesRatio?t.slideTo(m+v):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(m+v):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(m+v),"prev"===t.swipeDirection&&t.slideTo(m))}}function k(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function z(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function O(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let I=!1;function L(){}const A=(e,t)=>{const s=a(),{params:i,touchEvents:r,el:n,wrapperEl:l,device:o,support:d}=e,c=!!i.nested,p="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};n[p](r.start,e.onTouchStart,t),n[p](r.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),n[p](r.end,e.onTouchEnd,t),r.cancel&&n[p](r.cancel,e.onTouchEnd,t)}else n[p](r.start,e.onTouchStart,!1),s[p](r.move,e.onTouchMove,c),s[p](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&n[p]("click",e.onClick,!0),i.cssMode&&l[p]("scroll",e.onScroll),i.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",k,!0):e[u]("observerUpdate",k,!0)};const D=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var G={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 10,951 bytes, line 6
6spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function N(e,t){return function(s={}){const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(a)>=0&&!0===e[a]&&(e[a]={auto:!0}),a in e&&"enabled"in i?(!0===e[a]&&(e[a]={enabled:!0}),"object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),f(t,s)):f(t,s)):f(t,s)}}const B={eventsEmitter:C,update:{updateSize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a[0].clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),s=s-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function s(e,s){return parseFloat(e.getPropertyValue(t(s))||0)}const a=e.params,{$wrapperEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&a.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=i.children(`.${e.params.slideClass}`),p=o?e.virtual.slides.length:c.length;let u=[];const h=[],m=[];let f=a.slidesOffsetBefore;"function"==typeof f&&(f=a.slidesOffsetBefore.call(e));let v=a.slidesOffsetAfter;"function"==typeof v&&(v=a.slidesOffsetAfter.call(e));const w=e.snapGrid.length,b=e.slidesGrid.length;let x=a.spaceBetween,y=-f,E=0,T=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*r),e.virtualSize=-x,n?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),a.centeredSlides&&a.cssMode&&(g(e.wrapperEl,"--swiper-centered-offset-before",""),g(e.wrapperEl,"--swiper-centered-offset-after",""));const C=a.grid&&a.grid.rows>1&&e.grid;let $;C&&e.grid.initSlides(p);const S="auto"===a.slidesPerView&&a.breakpoints&&Object.keys(a.breakpoints).filter((e=>void 0!==a.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<p;i+=1){$=0;const n=c.eq(i);if(C&&e.grid.updateSlide(i,n,p,t),"none"!==n.css("display")){if("auto"===a.slidesPerView){S&&(c[i].style[t("width")]="");const r=getComputedStyle(n[0]),l=n[0].style.transform,o=n[0].style.webkitTransform;if(l&&(n[0].style.transform="none"),o&&(n[0].style.webkitTransform="none"),a.roundLengths)$=e.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else{const e=s(r,"width"),t=s(r,"padding-left"),a=s(r,"padding-right"),i=s(r,"margin-left"),l=s(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)$=e+i+l;else{const{clientWidth:s,offsetWidth:r}=n[0];$=e+t+a+i+l+(r-s)}}l&&(n[0].style.transform=l),o&&(n[0].style.webkitTransform=o),a.roundLengths&&($=Math.floor($))}else $=(r-(a.slidesPerView-1)*x)/a.slidesPerView,a.roundLengths&&($=Math.floor($)),c[i]&&(c[i].style[t("width")]=`${$}px`);c[i]&&(c[i].swiperSlideSize=$),m.push($),a.centeredSlides?(y=y+$/2+E/2+x,0===E&&0!==i&&(y=y-r/2-x),0===i&&(y=y-r/2-x),Math.abs(y)<.001&&(y=0),a.roundLengths&&(y=Math.floor(y)),T%a.slidesPerGroup==0&&u.push(y),h.push(y)):(a.roundLengths&&(y=Math.floor(y)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup==0&&u.push(y),h.push(y),y=y+$+x),e.virtualSize+=$+x,E=$,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+v,n&&l&&("slide"===a.effect||"coverflow"===a.effect)&&i.css({width:`${e.virtualSize+a.spaceBetween}px`}),a.setWrapperSize&&i.css({[t("width")]:`${e.virtualSize+a.spaceBetween}px`}),C&&e.grid.updateWrapperSize($,u,t),!a.centeredSlides){const t=[];for(let s=0;s<u.length;s+=1){let i=u[s];a.roundLengths&&(i=Math.floor(i)),u[s]<=e.virtualSize-r&&t.push(i)}u=t,Math.floor(e.virtualSize-r)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-r)}if(0===u.length&&(u=[0]),0!==a.spaceBetween){const s=e.isHorizontal()&&n?"marginLeft":t("marginRight");c.filter(((e,t)=>!a.cssMode||t!==c.length-1)).css({[s]:`${x}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+v:e))}if(a.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween,e<r){const t=(r-e)/2;u.forEach(((e,s)=>{u[s]=e-t})),h.forEach(((e,s)=>{h[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){g(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),g(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}p!==d&&e.emit("slidesLengthChange"),u.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}r&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),a.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<a.length;e+=1){const l=a[e];let o=l.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(o-=a[0].swiperSlideOffset);const d=(n+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),c=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),p=-(n-o),u=p+t.slidesSizesGrid[e];(p>=0&&p<t.size-1||u>1&&u<=t.size||p<=0&&u>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),a.eq(e).addClass(s.slideVisibleClass)),l.progress=i?-d:d,l.originalProgress=i?-c:c}t.visibleSlides=d(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n}=t;const l=r,o=n;0===a?(i=0,r=!0,n=!0):(i=(e-t.minTranslate())/a,r=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),n&&!o&&t.emit("reachEnd toEdge"),(l&&!r||o&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:a,activeIndex:i,realIndex:r}=e,n=e.virtual&&s.virtual.enabled;let l;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),l=n?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),l.addClass(s.slideActiveClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass));let o=l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass);s.loop&&0===o.length&&(o=t.eq(0),o.addClass(s.slideNextClass));let d=l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(o.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let d,c=e;if(void 0===c){for(let e=0;e<a.length;e+=1)void 0!==a[e+1]?s>=a[e]&&s<a[e+1]-(a[e+1]-a[e])/2?c=e:s>
vendor: 11,991 bytes, line 6
6=a[e]&&s<a[e+1]&&(c=e+1):s>=a[e]&&(c=e);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(s)>=0)d=i.indexOf(s);else{const e=Math.min(r.slidesPerGroupSkip,c);d=e+Math.floor((c-e)/r.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===n)return void(d!==o&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:d,realIndex:p,previousIndex:n,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==p&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,a=d(e.target).closest(`.${s.slideClass}`)[0];let i,r=!1;if(a)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===a){r=!0,i=e;break}if(!a||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(d(a).attr("data-swiper-slide-index"),10):t.clickedIndex=i,s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:s,translate:a,$wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=h(i[0],e);return s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,$wrapperEl:r,wrapperEl:n,progress:l}=s;let o,d=0,c=0;s.isHorizontal()?d=a?-e:e:c=e,i.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),i.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-c:i.virtualTranslate||r.transform(`translate3d(${d}px, ${c}px, 0px)`),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:c;const p=s.maxTranslate()-s.minTranslate();o=0===p?0:(e-s.minTranslate())/p,o!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,s=!0,a=!0,i){const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return v({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,s&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const s=this;s.params.cssMode||s.$wrapperEl.transition(e),s.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),$({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),$({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,s=!0,a,i){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:m}=r;if(r.animating&&l.preventInteractionOnTransition||!m&&!a&&!i)return!1;const f=Math.min(r.params.slidesPerGroupSkip,n);let g=f+Math.floor((n-f)/r.params.slidesPerGroup);g>=o.length&&(g=o.length-1),(p||l.initialSlide||0)===(c||0)&&s&&r.emit("beforeSlideChangeStart");const w=-o[g];if(r.updateProgress(w),l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&w<r.translate&&w<r.minTranslate())return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(b=n>p?"next":n<p?"prev":"reset",u&&-w===r.translate||!u&&w===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return v({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),r.transitionEnd(s,b)):(r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e=0,t=this.params.speed,s=!0,a){const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,s,a)},slideNext:function(e=this.params.speed,t=!0,s){const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<n.slidesPerGroupSkip?1:l;if(n.loop){if(i&&n.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}return a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e=this.params.speed,t=!0,s){const a=this,{params:i,animating:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:d}=a;if(!d)return a;if(i.loop){if(r&&i.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=c(o?a.translate:-a.translate),u=n.map((e=>c(e)));let h=n[u.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;n.forEach(((t,s)=>{p>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let m=0;return void 0!==h&&(m=l.indexOf(h),m<0&&(m=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-a.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),a.slideTo(m,e,t,s)},slideReset:function(e=this.params.speed,t=!0,s){return this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e=this.params.speed,t=!0,s,a=.5){const i=this;let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}},loop:{loopCreate:function(){const e=this,t=a(),{params:s,$wrapperEl:i}=e,r=d(i.children()[0].parentNode);r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove();let n=r.children(`.${s.slideClass}`);if(s.loopFillGroupWithBlank){const e=s.slidesPerGroup-n.length%s.slidesPerGroup;if(e!==s.slidesPerGroup){for(let a=0;a<e;a+=1){const e=d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`);r.append(e)}n=r.children(`.${s.slideClass}`)}}"auto"!==s.slidesPerView||s.loopedSlides||(s.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(s.loopedSlides||s.slidesPerView,10)),e.loopedSlides+=s.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);const l=[],o=[];n.each(((t,s)=>{const a=d(t);s<e.loopedSlides&&o.push(t),s<n.length&&s>=n.length-e.loopedSlides&&l.push(t),a.attr("data-swiper-slide-index",s)}));for(let e=0;e<o.length;e+=1)r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass));for(let e=l.length-1;e>=0;e-=1)r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:s,loopedSlides:a,allowSlidePrev:i,allowSlideNext:r,snapGrid:n,rtlTranslate:l}=e;let o;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-n[t]-e.getTranslate();if(t<a){o=s.length-3*a+t,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}else if(t>=s.length-a){o=-s.length+t+a,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}e.allowSlidePrev=i,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;s.style.cursor="move",s.style.cursor=e?"-webkit-grabbing":"-webkit-grab",s.style.cursor=e?"-moz-grabbin":"-moz-grab",s.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=a(),{params:s,support:i}=e;e.onTouchStart=S.bind(e),e.onTouchMove=M.bind(e),e.onTouchEnd=P.bind(e),s.cssMode&&(e.onScroll=O.bind(e)),e.onClick=z.bind(e),i.touch&&!I&&(t.addEventListener("touchstart",L),I=!0),A(e,"on")},detachEvents:function(){A(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:a=0,params:i,$el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;
vendor: 26,930 bytes, line 6
6const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const o=(l in n?n[l]:void 0)||e.originalParams,d=D(e,i),c=D(e,o),p=i.enabled;d&&!c?(r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&c&&(r.addClass(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses());const u=o.direction&&o.direction!==i.direction,h=i.loop&&(o.slidesPerView!==i.slidesPerView||u);u&&s&&e.changeDirection(),f(e.params,o);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!m?e.disable():!p&&m&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",o),h&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",o)},getBreakpoint:function(e,t="window",s){if(!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,$el:i,device:r,support:n}=e,l=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"pointer-events":!n.touch},{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides}],s.containerModifierClass);t.push(...l),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,s,a,i,n){const l=r();let o;function c(){n&&n()}d(e).parent("picture")[0]||e.complete&&i?c():t?(o=new l.Image,o.onload=c,o.onerror=c,a&&(o.sizes=a),s&&(o.srcset=s),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const a=e.imagesToLoad[s];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},X={};class H{constructor(...e){let t,s;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?s=e[0]:[t,s]=e,s||(s={}),s=f({},s),t&&!s.el&&(s.el=t),s.el&&d(s.el).length>1){const e=[];return d(s.el).each((t=>{const a=f({},s,{el:t});e.push(new H(a))})),e}const a=this;a.__swiper__=!0,a.support=y(),a.device=E({userAgent:s.userAgent}),a.browser=T(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],s.modules&&Array.isArray(s.modules)&&a.modules.push(...s.modules);const i={};a.modules.forEach((e=>{e({swiper:a,extendParams:N(s,i),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const r=f({},G,i);return a.params=f({},r,X,s),a.originalParams=f({},a.params),a.passedParams=f({},s),a.params&&a.params.on&&Object.keys(a.params.on).forEach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=d,Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:d(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return a.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},a.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:u(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if(s.centeredSlides){let e,t=a[l].swiperSlideSize;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(a(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||a()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}mount(e){const t=this;if(t.mounted)return!0;const s=d(e||t.params.el);if(!(e=s[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=d(e.shadowRoot.querySelector(i()));return t.children=e=>s.children(e),t}return s.children(i())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=d(e),e.className=t.params.wrapperClass,s.append(e),s.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:s,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const s=this,{params:a,$el:i,$wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){f(X,e)}static get extendedDefaults(){return X}static get defaults(){return G}static installModule(e){H.prototype.__modules__||(H.prototype.__modules__=[]);const t=H.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>H.installModule(e))),H):(H.installModule(e),H)}}function Y(e,t,s,i){const r=a();return e.params.createElements&&Object.keys(i).forEach((a=>{if(!s[a]&&!0===s.auto){let n=e.$el.children(`.${i[a]}`)[0];n||(n=r.createElement("div"),n.className=i[a],e.$el.append(n)),s[a]=n,t[a]=n}})),s}function W(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function R(e){const t=this,{$wrapperEl:s,params:a}=t;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);else s.append(e);a.loop&&t.loopCreate(),a.observer||t.update()}function j(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;s.loop&&t.loopDestroy();let r=i+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a.prepend(e[t]);r=i+e.length}else a.prepend(e);s.loop&&t.loopCreate(),s.observer||t.update(),t.slideTo(r,0,!1)}function _(e,t){const s=this,{$wrapperEl:a,params:i,activeIndex:r}=s;let n=r;i.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.slides=a.children(`.${i.slideClass}`));const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);o=n>e?n+t.length:n}else a.append(t);for(let e=0;e<d.length;e+=1)a.append(d[e]);i.loop&&s.loopCreate(),i.observer||s.update(),i.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function V(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;let r=i;s.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${s.slideClass}`));let n,l=r;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)n=e[s],t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1);l=Math.max(l,0)}else n=e,t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1),l=Math.max(l,0);s.loop&&t.loopCreate(),s.observer||t.update(),s.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function q(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function F(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l}=e;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)}))}function U(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function K({swiper:e,duration:t,transformEl:s,allSlides:a}){const{slides:i,activeIndex:r,$wrapperEl:n}=e;if(e.params.virtualTranslate&&0!==t){let t,l=!1;t=a?s?i.find(s):i:s?i.eq(r).find(s):i.eq(r),t.transitionEnd((()=>{if(l)return;if(!e||e.destroyed)return;l=!0,e.animating=!1;const t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)n.trigger(t[e])}))}}function Z(e,t,s){const a="swiper-slide-shadow"+(s?`-${s}`:""),i=e.transformEl?t.find(e.transformEl):t;let r=i.children(`.${a}`);return r.length||(r=d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`),i.append(r)),r}Object.keys(B).forEach((e=>{Object.keys(B[e]).forEach((t=>{H.prototype[t]=B[e][t]}))})),H.use([function({swiper:e,on:t,emit:s}){const a=r();let i=null;const n=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeResize"),s("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==a.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver((t=>{const{width:s,height:a}=e;let i=s,r=a;t.forEach((({contentBoxSize:t,contentRect:s,target:a})=>{a&&a!==e.el||(i=s?s.width:(t[0]||t).inlineSize,r=s?s.height:(t[0]||t).blockSize)})),i===s&&r===a||n()})),i.observe(e.el)):(a.addEventListener("resize",n),a.addEventListener("orientationchange",l))})),t("destroy",(()=>{i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),a.removeEventListener("resize",n),a.removeEventListener("orientationchange",l)}))},function({swiper:e,extendParams:t,on:s,emit:a}){const i=[],n=r(),l=(e,t={})=>{const s=new(n.MutationObserver||n.WebkitMutationObserver)((e=>{if(1===e.length)return void a("observerUpdate",e[0]);const t=function(){a("observerUpdate",e[0])};n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,0)}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(s)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)l(t[e])}l(e.$el[0],{childList:e.params.observeSlideChildren}),l(e.$wrapperEl[0],{attributes:!1})}})),s("destroy",(()=>{i.forEach((e=>{e.disconnect()})),i.splice(0,i.length)}))}]);const J=[function({swiper:e,extendParams:t,on:s}){let a;function i(t,s){const a=e.params.virtual;if(a.cache&&e.virtual.cache[s])return e.virtual.cache[s];const i=a.renderSlide?d(a.renderSlide.call(e,t,s)):d(`<div class="${e.params.slideClass}" data-swiper-slide-index="${s}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",s),a.cache&&(e.virtual.cache[s]=i),i}function r(t){const{slidesPerView:s,slidesPerGroup:a,centeredSlides:r}=e.params,{addSlidesBefore:n,addSlidesAfter:l}=e.params.virtual,{from:o,to:d,slides:c,slidesGrid:p,offset:u}=e.virtual;e.params.cssMode||e.updateActiveIndex();const h=e.activeIndex||0;let m,f,g;m=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",r?(f=Math.floor(s/2)+a+l,g=Math.floor(s/2)+a+n):(f=s+(a-1)+l,g=a+n);const v=Math.max((h||0)-g,0),w=Math.min((h||0)+f,c.length-1),b=(e.slidesGrid[v]||0)-(e.slidesGrid[0]||0);function x(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(Object.assign(e.virtual,{from:v,to:w,offset:b,slidesGrid:e.slidesGrid}),o===v&&d===w&&!t)return e.slidesGrid!==p&&b!==u&&e.slides.css(m,`${b}px`),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:b,from:v,to:w,slides:function(){const e=[];for(let t=v;t<=w;t+=1)e.push(c[t]);return e}()}),void(e.params.virtual.renderExternalUpdate&&x());const y=[],E=[];if(t)e.$wrapperEl.find(`.${e.params.slideClass}`).remove();else for(let t=o;t<=d;t+=1)(t<v||t>w)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e<c.length;e+=1)e>=v&&e<=w&&(void 0===d||t?E.push(e):(e>d&&E.push(e),e<o&&y.push(e)));E.forEach((t=>{e.$wrapperEl.append(i(c[t],t))})),y.sort(((e,t)=>t-e)).forEach((t=>{e.$wrapperEl.prepend(i(c[t],t))})),e.$wrapperEl.children(".swiper-slide").css(m,`${b}px`),x()}t({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},s("beforeInit",(()=>{e.params.virtual.enabled&&(e.virtual.slides=e.params.virtual.slides,e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,e.params.initialSlide||r())})),s("setTranslate",(()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(a),a=setTimeout((()=>{r()}),100)):r())})),s("init update resize",(()=>{e.params.virtual.enabled&&e.params.cssMode&&g(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)})),Object.assign(e.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&e.virtual.slides.push(t[s]);else e.virtual.slides.push(t);r(!0)},prependSlide:function(t){const s=e.activeIndex;let a=s+1,i=1;if(Array.isArray(t)){for(let s=0;s<t.length;s+=1)t[s]&&e.virtual.slides.unshift(t[s]);a=s+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,s={};Object.keys(t).forEach((e=>{const a=t[e],r=a.attr("data-swiper-slide-index");r&&a.attr("data-swiper-slide-index",parseInt(r,10)+i),s[parseInt(e,10)+i]=a})),e.virtual.cache=s}r(!0),e.slideTo(a,0)},removeSlide:function(t){if(null==t)return;let s=e.activeIndex;if(Array.isArray(t))for(let a=t.length-1;a>=0;a-=1)e.virtual.slides.splice(t[a],1),e.params.virtual.cache&&delete e.virtual.cache[t[a]],t[a]<s&&(s-=1),s=Math.max(s,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<s&&(s-=1),s=Math.max(s,0);r(!0),e.slideTo(s,0)},removeAllSlides:function(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),r(!0),e.slideTo(0,0)},update:r})},function({swiper:e,extendParams:t,on:s,emit:i}){const n=a(),l=r();function o(t){if(!e.enabled)return;const{rtlTranslate:s}=e;let a=t;a.originalEvent&&(a=a.originalEvent);const r=a.keyCode||a.charCode,o=e.params.keyboard.pageUpDown,d=o&&33===r,c=o&&34===r,p=37===r,u=39===r,h=38===r,m=40===r;if(!e.allowSlideNext&&(e.isHorizontal()&&u||e.isVertical()&&m||c))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&h||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||n.activeElement&&n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(d||c||p||u||h||m)){let t=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&0===e.$el.parents(`.${e.params.slideActiveClass}`).length)return;const a=e.$el,i=a[0].clientWidth,r=a[0].clientHeight,n=l.innerWidth,o=l.innerHeight,d=e.$el.offset();s&&(d.left-=e.$el[0].scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let e=0;e<c.length;e+=1){const s=c[e];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=o){if(0===s[0]&&0===s[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&e.slideNext(),((d||p)&&!s||(c||u)&&s)&&e.slidePrev()):((d||c||h||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||m)&&e.slideNext(),(d||h)&&e.slidePrev()),i("keyPress",r)}}function c(){e.keyboard.enabled||(d(n).on("keydown",o),e.keyboard.enabled=!0)}function p(){e.keyboard.enabled&&(d(n).off("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),s("init",(()=>{e.params.keyboard.enabled&&c()})),s("destroy",(()=>{e.keyboard.enabled&&p()})),Object.assign(e.keyboard,{enable:c,disable:p})},function({swiper:e,extendParams:t,on:s,emit:a}){const i=r();let n;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let l,o=u();const c=[];function h(){e.enabled&&(e.mouseEntered=!0)}function m(){e.enabled&&(e.mouseEntered=!1)}function f(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&u()-o<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&u()-o<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),a("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),a("scroll",t.raw)),o=(new i.Date).getTime(),!1)))}function g(t){let s=t,i=!0;if(!e.enabled)return;const r=e.params.mousewheel;e.params.cssMode&&s.preventDefault();let o=e.$el;if("container"!==e.params.mousewheel.eventsTarget&&(o=d(e.params.mousewheel.eventsTarget)),!e.mouseEntered&&!o[0].contains(s.target)&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let h=0;const m=e.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;h=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;h=-g.pixelY}else h=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===h)return!0;r.invert&&(h=-h);let v=e.getTranslate()+h*r.sensitivity;if(v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),i=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),i&&e.params.nested&&s.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:u(),delta:Math.abs(h),direction:Math.sign(h)},i=l&&t.time<l.time+500&&t.delta<=l.delta&&t.direction===l.direction;if(!i){l=void 0,e.params.loop&&e.loopFix();let o=e.getTranslate()+h*r.sensitivity;const d=e.isBeginning,u=e.isEnd;if(o>=e.minTranslate()&&(o=e.minTranslate()),o<=e.maxTranslate()&&(o=e.maxTranslate()),e.setTransition(0),e.setTranslate(o),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!d&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.freeMode.sticky){clearTimeout(n),n=void 0,c.length>=15&&c.shift();const s=c.length?c[c.length-1]:void 0,a=c[0];if(c.push(t),s&&(t.delta>s.delta||t.direction!==s.direction))c.splice(0);else if(c.length>=15&&t.time-a.time<500&&a.delta-t.delta>=1&&t.delta<=6){const s=h>0?.8:.2;l=t,c.splice(0),n=p((()=>{e.slideToClosest(e.params.speed,!0,void 0,s)}),0)}n||(n=p((()=>{l=t,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)}),500))}if(i||a("scroll",s),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),o===e.minTranslate()||o===e.maxTranslate())return!0}}else{const s={time:u(),delta:Math.abs(h),direction:Math.sign(h),raw:t};c.length>=2&&c.shift();const a=c.length?c[c.length-1]:void 0;if(c.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(t){const s=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&s.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(t){let s=e.$el;"container"!==e.params.mousewheel.eventsTarget&&(s=d(e.params.mousewheel.eventsTarget)),s[t]("mouseenter",h),s[t]("mouseleave",m),s[t]("wheel",g)}function w(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):!e.mousewheel.enabled&&(v("on"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):!!e.mousewheel.enabled&&(v("off"),e.mousewheel.enabled=!1,!0)}s("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&w()})),s("destroy",(()=>{e.params.cssMode&&w(),e.mousewheel.enabled&&b()})),Object.assign(e.mousewheel,{enable:w,disable:b})},function({swiper:e,extendParams:t,on:s,emit:a}){function i(t){let s;return t&&(s=d(t),e.params.uniqueNavElements&&"string"==typeof t&&s.length>1&&1===e.$el.find(t).length&&(s=e.$el.find(t))),s}function r(t,s){const a=e.params.navigation;t&&t.length>0&&(t[s?"addClass":"removeClass"](a.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=s),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](a.lockClass))}function n(){if(e.params.loop)return;const{$nextEl:t,$prevEl:s}=e.navigation;r(s,e.isBeginning),r(t,e.isEnd)}function l(t){t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()}function o(t){t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()}function c(){const t=e.params.navigation;if(e.params.navigation=Y(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const s=i(t.nextEl),a=i(t.prevEl);s&&s.length>0&&s.on("click",o),a&&a.length>0&&a.on("click",l),Object.assign(e.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:a,prevEl:a&&a[0]}),e.enabled||(s&&s.addClass(t.lockClass),a&&a.addClass(t.lockClass))}function p(){const{$nextEl:t,$prevEl:s}=e.navigation;t&&t.length&&(t.off("click",o),t.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("
6click",l),s.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},s("init",(()=>{c(),n()})),s("toEdge fromEdge lock unlock",(()=>{n()})),s("destroy",(()=>{p()})),s("enable disable",(()=>{const{$nextEl:t,$prevEl:s}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),s&&s[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),s("click",((t,s)=>{const{$nextEl:i,$prevEl:r}=e.navigation,n=s.target;if(e.params.navigation.hideOnClick&&!d(n).is(r)&&!d(n).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===n||e.pagination.el.contains(n)))return;let t;i?t=i.hasClass(e.params.navigation.hiddenClass):r&&(t=r.hasClass(e.params.navigation.hiddenClass)),a(!0===t?"navigationShow":"navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),r&&r.toggleClass(e.params.navigation.hiddenClass)}})),Object.assign(e.navigation,{update:n,init:c,destroy:p})},function({swiper:e,extendParams:t,on:s,emit:a}){const i="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`}}),e.pagination={el:null,$el:null,bullets:[]};let n=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function o(t,s){const{bulletActiveClass:a}=e.params.pagination;t[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`)}function c(){const t=e.rtl,s=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let p;const u=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(p=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),p>i-1-2*e.loopedSlides&&(p-=i-2*e.loopedSlides),p>u-1&&(p-=u),p<0&&"bullets"!==e.params.paginationType&&(p=u+p)):p=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===s.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const a=e.pagination.bullets;let i,l,u;if(s.dynamicBullets&&(r=a.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",r*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==e.previousIndex&&(n+=p-e.previousIndex,n>s.dynamicMainBullets-1?n=s.dynamicMainBullets-1:n<0&&(n=0)),i=p-n,l=i+(Math.min(a.length,s.dynamicMainBullets)-1),u=(l+i)/2),a.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`)).join(" ")),c.length>1)a.each((e=>{const t=d(e),a=t.index();a===p&&t.addClass(s.bulletActiveClass),s.dynamicBullets&&(a>=i&&a<=l&&t.addClass(`${s.bulletActiveClass}-main`),a===i&&o(t,"prev"),a===l&&o(t,"next"))}));else{const t=a.eq(p),r=t.index();if(t.addClass(s.bulletActiveClass),s.dynamicBullets){const t=a.eq(i),n=a.eq(l);for(let e=i;e<=l;e+=1)a.eq(e).addClass(`${s.bulletActiveClass}-main`);if(e.params.loop)if(r>=a.length-s.dynamicMainBullets){for(let e=s.dynamicMainBullets;e>=0;e-=1)a.eq(a.length-e).addClass(`${s.bulletActiveClass}-main`);a.eq(a.length-s.dynamicMainBullets-1).addClass(`${s.bulletActiveClass}-prev`)}else o(t,"prev"),o(n,"next");else o(t,"prev"),o(n,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),n=(r*i-r)/2-u*r,l=t?"right":"left";a.css(e.isHorizontal()?l:"top",`${n}px`)}}if("fraction"===s.type&&(c.find(W(s.currentClass)).text(s.formatFractionCurrent(p+1)),c.find(W(s.totalClass)).text(s.formatFractionTotal(u))),"progressbar"===s.type){let t;t=s.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const a=(p+1)/u;let i=1,r=1;"horizontal"===t?i=a:r=a,c.find(W(s.progressbarFillClass)).transform(`translate3d(0,
60,0) scaleX(${i}) scaleY(${r})`).transition(e.params.speed)}"custom"===s.type&&s.renderCustom?(c.html(s.renderCustom(e,p+1,u)),a("paginationRender",c[0])):a("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](s.lockClass)}function p(){const t=e.params.pagination;if(l())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let r="";if("bullets"===t.type){let a=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&a>s&&(a=s);for(let s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;i.html(r),e.pagination.bullets=i.find(W(t.bulletClass))}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,i.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,i.html(r)),"custom"!==t.type&&a("paginationRender",e.pagination.$el[0])}function u(){e.params.pagination=Y(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let s=d(t.el);0!==s.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&s.length>1&&(s=e.$el.find(t.el),s.length>1&&(s=s.filter((t=>d(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&s.addClass(t.clickableClass),s.addClass(t.modifierClass+t.type),s.addClass(t.modifierClass+e.params.direction),"bullets"===t.type&&t.dynamicBullets&&(s.addClass(`${t.modifierClass}${t.type}-dynamic`),n=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&s.addClass(t.progressbarOppositeClass),t.clickable&&s.on("click",W(t.bulletClass),(function(t){t.preventDefault();let s=d(this).index()*e.params.slidesPerGroup;e.params.loop&&(s+=e.loopedSlides),e.slideTo(s)})),Object.assign(e.pagination,{$el:s,el:s[0]}),e.enabled||s.addClass(t.lockClass))}function h(){const t=e.params.pagination;if(l())return;const s=e.pagination.$el;s.removeClass(t.hiddenClass),s.removeClass(t.modifierClass+t.type),s.removeClass(t.modifierClass+e.params.direction),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&s.off("click",W(t.bulletClass))}s("init",(()=>{u(),p(),c()})),s("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),s("snapIndexChange",(()=>{e.params.loop||c()})),s("slidesLengthChange",(()=>{e.params.loop&&(p(),c())})),s("snapGridLengthChange",(()=>{e.params.loop||(p(),c())})),s("destroy",(()=>{h()})),s("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),s("lock unlock",(()=>{c()})),s("click",((t,s)=>{const i=s.target,{$el:r}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r.length>0&&!d(i).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=r.hasClass(e.params.pagination.hiddenClass);a(!0===t?"paginationShow":"paginationHide"),r.toggleClass(e.params.pagination.hiddenClass)}})),Object.assign(e.pagination,{render:p,update:c,init:u,destroy:h})},function({swiper:e,extendParams:t,on:s,emit:i}){const r=a();let n,l,o,c,u=!1,h=null,m=null;function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:s,progress:a}=e,{$dragEl:i,$el:r}=t,n=e.params.scrollbar;let d=l,c=(o-l)*a;s?(c=-c,c>0?(d=l-c,c=0):-c+l>o&&(d=o+c)):c<0?(d=l+c,c=0):c+l>o&&(d=o-c),e.isHorizontal()?(i.transform(`translate3d(${c}px, 0, 0)`),i[0].style.width=`${d}px`):(i.transform(`translate3d(0px, ${c}px, 0)`),i[0].style.height=`${d}px`),n.hide&&(clearTimeout(h),r[0].style.opacity=1,h=setTimeout((()=>{r[0].style.opacity=0,r.transition(400)}),1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:s,$el:a}=t;s[0].style.width="",s[0].style.height="",o=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,c=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===e.params.scrollbar.dragSize?o*c:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?s[0].style.width=`${l}px`:s[0].style.height=`${l}px`,a[0].style.display=c>=1?"none":"",e.params.scrollbar.hide&&(a[0].style.opacity=0),e.params.watchOverflow&&e.enabled&&t.$el[e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY}function w(t){const{scrollbar:s,rtlTranslate:a}=e,{$el:i}=s;let r;r=(v(t)-i.offset()[e.isHorizontal()?"left":"top"]-(null!==n?n:l/2))/(o-l),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const d=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(d),e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}function b(t){const s=e.params.scrollbar,{scrollbar:a,$wrapperEl:r}=e,{$el:l,$dragEl:o}=a;u=!0,n=t.target===o[0]||t.target===o?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.transition(100),o.transition(100),w(t),
vendor: 6,185 bytes, line 6
6clearTimeout(m),l.transition(0),s.hide&&l.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),i("scrollbarDragStart",t)}function x(t){const{scrollbar:s,$wrapperEl:a}=e,{$el:r,$dragEl:n}=s;u&&(t.preventDefault?t.preventDefault():t.returnValue=!1,w(t),a.transition(0),r.transition(0),n.transition(0),i("scrollbarDragMove",t))}function y(t){const s=e.params.scrollbar,{scrollbar:a,$wrapperEl:r}=e,{$el:n}=a;u&&(u=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),r.transition("")),s.hide&&(clearTimeout(m),m=p((()=>{n.css("opacity",0),n.transition(400)}),1e3)),i("scrollbarDragEnd",t),s.snapOnRelease&&e.slideToClosest())}function E(t){const{scrollbar:s,touchEventsTouch:a,touchEventsDesktop:i,params:n,support:l}=e,o=s.$el[0],d=!(!l.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},c=!(!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};if(!o)return;const p="on"===t?"addEventListener":"removeEventListener";l.touch?(o[p](a.start,b,d),o[p](a.move,x,d),o[p](a.end,y,c)):(o[p](i.start,b,d),r[p](i.move,x,d),r[p](i.end,y,c))}function T(){const{scrollbar:t,$el:s}=e;e.params.scrollbar=Y(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const a=e.params.scrollbar;if(!a.el)return;let i=d(a.el);e.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el));let r=i.find(`.${e.params.scrollbar.dragClass}`);0===r.length&&(r=d(`<div class="${e.params.scrollbar.dragClass}"></div>`),i.append(r)),Object.assign(t,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&e.params.scrollbar.el&&E("on"),i&&i[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}function C(){e.params.scrollbar.el&&E("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),e.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},s("init",(()=>{T(),g(),f()})),s("update resize observerUpdate lock unlock",(()=>{g()})),s("setTranslate",(()=>{f()})),s("setTransition",((t,s)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)}(s)})),s("enable disable",(()=>{const{$el:t}=e.scrollbar;t&&t[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)})),s("destroy",(()=>{C()})),Object.assign(e.scrollbar,{updateSize:g,setTranslate:f,init:T,destroy:C})},function({swiper:e,extendParams:t,on:s}){t({parallax:{enabled:!1}});const a=(t,s)=>{const{rtl:a}=e,i=d(t),r=a?-1:1,n=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),p=i.attr("data-swiper-parallax-opacity");if(l||o?(l=l||"0",o=o||"0"):e.isHorizontal()?(l=n,o="0"):(o=n,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*s*r+"%":l*s*r+"px",o=o.indexOf("%")>=0?parseInt(o,10)*s+"%":o*s+"px",null!=p){const e=p-(p-1)*(1-Math.abs(s));i[0].style.opacity=e}if(null==c)i.transform(`translate3d(${l}, ${o}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(s));i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`)}},i=()=>{const{$el:t,slides:s,progress:i,snapGrid:r}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{a(e,i)})),s.each(((t,s)=>{let n=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(s/2)-i*(r.length-1)),n=Math.min(Math.max(n,-1),1),d(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{a(e,n)}))}))};s("beforeInit",(()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)})),s("init",(()=>{e.params.parallax.enabled&&i()})),s("setTranslate",(()=>{e.params.parallax.enabled&&i()})),s("setTransition",((t,s)=>{e.params.parallax.enabled&&((t=e.params.speed)=>{const{$el:s}=e;s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{const s=d(e);let a=parseInt(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),s.transition(a)}))})(s)}))},function({swiper:e,extendParams:t,on:s,emit:a}){const i=r();t({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let n,l,o,c=1,p=!1;const u={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;function v(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-s)**2)}function w(t){const s=e.support,a=e.params.zoom;if(l=!1,o=!1,!s.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;l=!0,u.scaleStart=v(t)}u.$slideEl&&u.$slideEl.length||(u.$slideEl=d(t.target).closest(`.${e.params.slideClass}`),0===u.$slideEl.length&&(u.$slideEl=e.slides.eq(e.activeIndex)),u.$imageEl=u.$slideEl.find(`.${a.containerClass}`).eq(0).find("img, svg, canvas, picture, .swiper-zoom-target"),u.$imageWrapEl=u.$imageEl.parent(`.${a.containerClass}`),u.maxRatio=u.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==u.$imageWrapEl.length)?(u.$imageEl&&u.$imageEl.transition(0),p=!0):u.$imageEl=void 0}function b(t){const s=e.support,a=e.params.zoom,i=e.zoom;if(!s.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;o=!0,u.scaleMove=v(t)}u.$imageEl&&0!==u.$imageEl.length?(s.gestures?i.scale=t.scale*c:i.scale=u.scaleMove/u.scaleStart*c,i.scale>u.maxRatio&&(i.scale=u.maxRatio-1+(i.scale-u.maxRatio+1)**.5),i.scale<a.minRatio&&(i.scale=a.minRatio+1-(a.minRatio-i.scale+1)**.5),u.$imageEl.transform(`translate3d(0,
60,0) scale(${i.scale})`)):"gesturechange"===t.type&&w(t)}function x(t){const s=e.device,a=e.support,i=e.params.zoom,r=e.zoom;if(!a.gestures){if(!l||!o)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!s.android)return;l=!1,o=!1}u.$imageEl&&0!==u.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,u.maxRatio),i.minRatio),u.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),c=r.scale,p=!1,1===r.scale&&(u.$slideEl=void 0))}function y(t){const s=e.zoom;if(!u.$imageEl||0===u.$imageEl.length)return;if(e.allowClick=!1,!m.isTouched||!u.$slideEl)return;m.isMoved||(m.width=u.$imageEl[0].offsetWidth,m.height=u.$imageEl[0].offsetHeight,m.startX=h(u.$imageWrapEl[0],"x")||0,m.startY=h(u.$imageWrapEl[0],"y")||0,u.slideWidth=u.$slideEl[0].offsetWidth,u.slideHeight=u.$slideEl[0].offsetHeight,u.$imageWrapEl.transition(0));const a=m.width*s.scale,i=m.height*s.scale;if(!(a<u.slideWidth&&i<u.slideHeight)){if(m.minX=Math.min(u.slideWidth/2-a/2,0),m.maxX=-m.minX,m.minY=Math.min(u.slideHeight/2-i/2,0),m.maxY=-m.minY,m.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,m.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!m.isMoved&&!p){if(e.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x))return void(m.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y))return void(m.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),m.isMoved=!0,m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX,m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY,m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=m.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=m.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(m.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(m.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(m.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(m.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=m.touchesCurrent.x,f.prevPositionY=m.touchesCurrent.y,f.prevTime=Date.now(),u.$imageWrapEl.transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`)}}function E(){const t=e.zoom;u.$slideEl&&e.previousIndex!==e.activeIndex&&(u.$imageEl&&u.$imageEl.transform("translate3d(0,0,0) scale(1)"),u.$imageWrapEl&&u.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,c=1,u.$slideEl=void 0,u.$imageEl=void 0,u.$imageWrapEl=void 0)}function T(t){const s=e.zoom,a=e.params.zoom;if(u.$slideEl||(t&&t.target&&(u.$slideEl=d(t.target).closest(`.${e.params.slideClass}`)),u.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):u.$slideEl=e.slides.eq(e.activeIndex)),u.$imageEl=u.$slideEl.find(`.${a.containerClass}`).eq(0).find("img, svg, canvas, picture, .swiper-zoom-target"),u.$imageWrapEl=u.$imageEl.parent(`.${a.containerClass}`)),!u.$imageEl||0===u.$imageEl.length||!u.$imageWrapEl||0===u.$imageWrapEl.length)return;let r,n,l,o,p,h,f,g,v,w,b,x,y,E,T,C,$,S;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.$slideEl.addClass(`${a.zoomedSlideClass}`),void 0===m.touchesStart.x&&t?(r="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,n="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(r=m.touchesStart.x,n=m.touchesStart.y),s.scale=u.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,c=u.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,t?($=u.$slideEl[0].offsetWidth,S=u.$slideEl[0].offsetHeight,l=u.$slideEl.offset().left+i.scrollX,o=u.$slideEl.offset().top+i.scrollY,p=l+$/2-r,h=o+S/2-n,v=u.$imageEl[0].offsetWidth,w=u.$imageEl[0].offsetHeight,b=v*s.scale,x=w*s.scale,y=Math.min($/2-b/2,0),E=Math.min(S/2-x/2,0),T=-y,C=-E,f=p*s.scale,g=h*s.scale,f<y&&(f=y),f>T&&(f=T),g<E&&(g=E),g>C&&(g=C)):(f=0,g=0),u.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${g}
6px,0)`),u.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)}function C(){const t=e.zoom,s=e.params.zoom;u.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):u.$slideEl=e.slides.eq(e.activeIndex),u.$imageEl=u.$slideEl.find(`.${s.containerClass}`).eq(0).find("img, svg, canvas, picture, .swiper-zoom-target"),u.$imageWrapEl=u.$imageEl.parent(`.${s.containerClass}`)),u.$imageEl&&0!==u.$imageEl.length&&u.$imageWrapEl&&0!==u.$imageWrapEl.length&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,c=1,u.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),u.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),u.$slideEl.removeClass(`${s.zoomedSlideClass}`),u.$slideEl=void 0)}function $(t){const s=e.zoom;s.scale&&1!==s.scale?C():T(t)}function S(){const t=e.support;return{passiveListener:!("touchstart"!==e.touchEvents.start||!t.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!t.passiveListener||{passive:!1,capture:!0}}}function M(){return`.${e.params.slideClass}`}function P(t){const{passiveListener:s}=S(),a=M();e.$wrapperEl[t]("gesturestart",a,w,s),e.$wrapperEl[t]("gesturechange",a,b,s),e.$wrapperEl[t]("gestureend",a,x,s)}function k(){n||(n=!0,P("on"))}function z(){n&&(n=!1,P("off"))}function O(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const s=e.support,{passiveListener:a,activeListenerWithCapture:i}=S(),r=M();s.gestures?(e.$wrapperEl.on(e.touchEvents.start,k,a),e.$wrapperEl.on(e.touchEvents.end,z,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,r,w,a),e.$wrapperEl.on(e.touchEvents.move,r,b,i),e.$wrapperEl.on(e.touchEvents.end,r,x,a),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,r,x,a)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,y,i)}function I(){const t=e.zoom;if(!t.enabled)return;const s=e.support;t.enabled=!1;const{passiveListener:a,activeListenerWithCapture:i}=S(),r=M();s.gestures?(e.$wrapperEl.off(e.touchEvents.start,k,a),e.$wrapperEl.off(e.touchEvents.end,z,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,r,w,a),e.$wrapperEl.off(e.touchEvents.move,r,b,i),e.$wrapperEl.off(e.touchEvents.end,r,x,a),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,r,x,a)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,y,i)}Object.defineProperty(e.zoom,"scale",{get:()=>g,set(e){if(g!==e){const t=u.$imageEl?u.$imageEl[0]:void 0,s=u.$slideEl?u.$slideEl[0]:void 0;a("zoomChange",e,t,s)}g=e}}),s("init",(()=>{e.params.zoom.enabled&&O()})),s("destroy",(()=>{I()})),s("touchStart",((t,s)=>{e.zoom.enabled&&function(t){const s=e.device;u.$imageEl&&0!==u.$imageEl.length&&(m.isTouched||(s.android&&t.cancelable&&t.preventDefault(),m.isTouched=!0,m.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,m.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))}(s)})),s("touchEnd",((t,s)=>{e.zoom.enabled&&function(){const t=e.zoom;if(!u.$imageEl||0===u.$imageEl.length)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let s=300,a=300;const i=f.x*s,r=m.currentX+i,n=f.y*a,l=m.currentY+n;0!==f.x&&(s=Math.abs((r-m.currentX)/f.x)),0!==f.y&&(a=Math.abs((l-m.currentY)/f.y));const o=Math.max(s,a);m.currentX=r,m.currentY=l;const d=m.width*t.scale,c=m.height*t.scale;m.minX=Math.min(u.slideWidth/2-d/2,0),m.maxX=-m.minX,m.minY=Math.min(u.slideHeight/2-c/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),u.$imageWrapEl.transition(o).transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`)}()})),s("doubleTap",((t,s)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&$(s)})),s("transitionEnd",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&E()})),s("slideChange",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&E()})),Object.assign(e.zoom,{enable:O,disable:I,in:T,out:C,toggle:$})},function({swiper:e,extendParams:t,on:s,emit:a}){t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let i=!1,n=!1;function l(t,s=!0){const i=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const r=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),n=r.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!r.hasClass(i.elementClass)||r.hasClass(i.loadedClass)||r.hasClass(i.loadingClass)||n.push(r[0]),0!==n.length&&n.each((t=>{const n=d(t);n.addClass(i.loadingClass);const o=n.attr("data-background"),c=n.attr("data-src"),p=n.attr("data-srcset"),u=n.attr("data-sizes"),h=n.parent("picture");
vendor: 30,519 bytes, line 6
6e.loadImage(n[0],c||o,p,u,!1,(()=>{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(o?(n.css("background-image",`url("${o}")`),n.removeAttr("data-background")):(p&&(n.attr("srcset",p),n.removeAttr("data-srcset")),u&&(n.attr("sizes",u),n.removeAttr("data-sizes")),h.length&&h.children("source").each((e=>{const t=d(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(n.attr("src",c),n.removeAttr("data-src"))),n.addClass(i.loadedClass).removeClass(i.loadingClass),r.find(`.${i.preloaderClass}`).remove(),e.params.loop&&s){const t=r.attr("data-swiper-slide-index");if(r.hasClass(e.params.slideDuplicateClass)){l(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1)}else{l(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)}}a("lazyImageReady",r[0],n[0]),e.params.autoHeight&&e.updateAutoHeight()}})),a("lazyImageLoad",r[0],n[0])}))}function o(){const{$wrapperEl:t,params:s,slides:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,o=s.lazy;let c=s.slidesPerView;function p(e){if(r){if(t.children(`.${s.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(a[e])return!0;return!1}function u(e){return r?d(e).attr("data-swiper-slide-index"):d(e).index()}if("auto"===c&&(c=0),n||(n=!0),e.params.watchSlidesProgress)t.children(`.${s.slideVisibleClass}`).each((e=>{l(r?d(e).attr("data-swiper-slide-index"):d(e).index())}));else if(c>1)for(let e=i;e<i+c;e+=1)p(e)&&l(e);else l(i);if(o.loadPrevNext)if(c>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){const e=o.loadPrevNextAmount,t=c,s=Math.min(i+t+Math.max(e,t),a.length),r=Math.max(i-Math.max(t,e),0);for(let e=i+c;e<s;e+=1)p(e)&&l(e);for(let e=r;e<i;e+=1)p(e)&&l(e)}else{const e=t.children(`.${s.slideNextClass}`);e.length>0&&l(u(e));const a=t.children(`.${s.slidePrevClass}`);a.length>0&&l(u(a))}}function c(){const t=r();if(!e||e.destroyed)return;const s=e.params.lazy.scrollingElement?d(e.params.lazy.scrollingElement):d(t),a=s[0]===t,n=a?t.innerWidth:s[0].offsetWidth,l=a?t.innerHeight:s[0].offsetHeight,p=e.$el.offset(),{rtlTranslate:u}=e;let h=!1;u&&(p.left-=e.$el[0].scrollLeft);const m=[[p.left,p.top],[p.left+e.width,p.top],[p.left,p.top+e.height],[p.left+e.width,p.top+e.height]];for(let e=0;e<m.length;e+=1){const t=m[e];if(t[0]>=0&&t[0]<=n&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;h=!0}}const f=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};h?(o(),s.off("scroll",c,f)):i||(i=!0,s.on("scroll",c,f))}s("beforeInit",(()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)})),s("init",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():o())})),s("scroll",(()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&o()})),s("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():o())})),s("transitionStart",(()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!n)&&(e.params.lazy.checkInView?c():o())})),s("transitionEnd",(()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?c():o())})),s("slideChange",(()=>{const{lazy:t,cssMode:s,watchSlidesProgress:a,touchReleaseOnEdges:i,resistanceRatio:r}=e.params;t.enabled&&(s||a&&(i||0===r))&&o()})),Object.assign(e.lazy,{load:o,loadInSlide:l})},function({swiper:e,extendParams:t,on:s}){function a(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function i(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},s("beforeInit",(()=>{e.controller.control=e.params.controller.control})),s("update",(()=>{i()})),s("resize",(()=>{i()})),s("observerUpdate",(()=>{i()})),s("setTranslate",((t,s,a)=>{e.controller.control&&e.controller.setTranslate(s,a)})),s("setTransition",((t,s,a)=>{e.controller.control&&e.controller.setTransition(s,a)})),Object.assign(e.controller,{setTranslate:function(t,s){const i=e.controller.control;let r,n;const l=e.constructor;function o(t){const s=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline||(e.controller.spline=e.params.loop?new a(e.slidesGrid,t.slidesGrid):new a(e.snapGrid,t.snapGrid))}(t),n=-e.controller.spline.interpolate(-s)),n&&"container"!==e.params.controller.by||(r=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),n=(s-e.minTranslate())*r+t.minTranslate()),e.params.controller.inverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setTranslate(n,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==s&&i[e]instanceof l&&o(i[e]);else i instanceof l&&s!==i&&o(i)},setTransition:function(t,s){const a=e.constructor,i=e.controller.control;let r;function n(s){s.setTransition(t,e),0!==t&&(s.transitionStart(),s.params.autoHeight&&p((()=>{s.updateAutoHeight()})),s.$wrapperEl.transitionEnd((()=>{i&&(s.params.loop&&"slide"===e.params.controller.by&&s.loopFix(),s.transitionEnd())})))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function({swiper:e,extendParams:t,on:s}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}});let a=null;function i(e){const t=a;0!==t.length&&(t.html(""),t.html(e))}function r(e){e.attr("tabIndex","0")}function n(e){e.attr("tabIndex","-1")}function l(e,t){e.attr("role",t)}function o(e,t){e.attr("aria-roledescription",t)}function c(e,t){e.attr("aria-label",t)}function p(e){e.attr("aria-disabled",!0)}function u(e){e.attr("aria-disabled",!1)}function h(t){if(13!==t.keyCode&&32!==t.keyCode)return;const s=e.params.a11y,a=d(t.target);e.navigation&&e.navigation.$nextEl&&a.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?i(s.lastSlideMessage):i(s.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&a.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?i(s.firstSlideMessage):i(s.prevSlideMessage)),e.pagination&&a.is(W(e.params.pagination.bulletClass))&&a[0].click()}function m(){if(e.params.loop||!e.navigation)return;const{$nextEl:t,$prevEl:s}=e.navigation;s&&s.length>0&&(e.isBeginning?(p(s),n(s)):(u(s),r(s))),t&&t.length>0&&(e.isEnd?(p(t),n(t)):(u(t),r(t)))}function f(){return e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length}const g=(e,t,s)=>{r(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",h)),c(e,s),function(e,t){e.attr("aria-controls",t)}(e,t)};function v(){const t=e.params.a11y;e.$el.append(a);const s=e.$el;t.containerRoleDescriptionMessage&&o(s,t.containerRoleDescriptionMessage),t.containerMessage&&c(s,t.containerMessage);const i=e.$wrapperEl,r=i.attr("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,n=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var p;p=r,i.attr("id",p),function(e,t){e.attr("aria-live",t)}(i,n),t.itemRoleDescriptionMessage&&o(d(e.slides),t.itemRoleDescriptionMessage),l(d(e.slides),t.slideRole);const u=e.params.loop?e.slides.filter((t=>!t.classList.contains(e.params.slideDuplicateClass))).length:e.slides.length;let m,v;e.slides.each(((s,a)=>{const i=d(s),r=e.params.loop?parseInt(i.attr("data-swiper-slide-index"),10):a;c(i,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,u))})),e.navigation&&e.navigation.$nextEl&&(m=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(v=e.navigation.$prevEl),m&&m.length&&g(m,r,t.nextSlideMessage),v&&v.length&&g(v,r,t.prevSlideMessage),f()&&e.pagination.$el.on("keydown",W(e.params.pagination.bulletClass),h)}s("beforeInit",(()=>{a=d(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),s("afterInit",(()=>{e.params.a11y.enabled&&(v(),m())})),s("toEdge",(()=>{e.params.a11y.enabled&&m()})),s("fromEdge",(()=>{e.params.a11y.enabled&&m()})),s("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;f()&&e.pagination.bullets.each((s=>{const a=d(s);r(a),e.params.pagination.renderBullet||(l(a,"button"),c(a,t.paginationBulletMessage.replace(/\{\{index\}\}/,a.index()+1)))}))}()})),s("destroy",(()=>{e.params.a11y.enabled&&function(){let t,s;a&&a.length>0&&a.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(s=e.navigation.$prevEl),t&&t.off("keydown",h),s&&s.off("keydown",h),f()&&e.pagination.$el.off("keydown",W(e.params.pagination.bulletClass),h)}()}))},function({swiper:e,extendParams:t,on:s}){t({history:{enabled:!1,root:"",replaceState:!1,key:"slides"}});let a=!1,i={};const n=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},o=(t,s)=>{const i=r();if(!a||!e.params.history.enabled)return;let l;l=e.params.url?new URL(e.params.url):i.location;const o=e.slides.eq(s);let d=n(o.attr("data-history"));if(e.params.history.root.length>0){let s=e.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${t}/${d}`}else l.pathname.includes(t)||(d=`${t}/${d}`);const c=i.history.state;c&&c.value===d||(e.params.history.replaceState?i.history.replaceState({value:d},null,d):i.history.pushState({value:d},null,d))},d=(t,s,a)=>{if(s)for(let i=0,r=e.slides.length;i<r;i+=1){const r=e.slides.eq(i);if(n(r.attr("data-history"))===s&&!r.hasClass(e.params.slideDuplicateClass)){const s=r.index();e.slideTo(s,t,a)}}else e.slideTo(0,t,a)},c=()=>{i=l(e.params.url),d(e.params.speed,e.paths.value,!1)};s("init",(()=>{e.params.history.enabled&&(()=>{const t=r();if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);a=!0,i=l(e.params.url),(i.key||i.value)&&(d(0,i.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",c))}})()})),s("destroy",(()=>{e.params.history.enabled&&(()=>{const t=r();e.params.history.replaceState||t.removeEventListener("popstate",c)})()})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{a&&o(e.params.history.key,e.activeIndex)})),s("slideChange",(()=>{a&&e.params.cssMode&&o(e.params.history.key,e.activeIndex)}))},function({swiper:e,extendParams:t,emit:s,on:i}){let n=!1;const l=a(),o=r();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const c=()=>{s("hashChange");const t=l.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const s=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===s)return;e.slideTo(s)}},p=()=>{if(n&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState)o.history.replaceState(null,null,`#${e.slides.eq(e.activeIndex).attr("data-hash")}`||""),s("hashSet");else{const t=e.slides.eq(e.activeIndex),a=t.attr("data-hash")||t.attr("data-history");l.location.hash=a||"",s("hashSet")}};i("init",(()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;n=!0;const t=l.location.hash.replace("#","");if(t){const s=0;for(let a=0,i=e.slides.length;a<i;a+=1){const i=e.slides.eq(a);if((i.attr("data-hash")||i.attr("data-history"))===t&&!i.hasClass(e.params.slideDuplicateClass)){const t=i.index();e.slideTo(t,s,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&d(o).on("hashchange",c)})()})),i("destroy",(()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&d(o).off("hashchange",c)})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{n&&p()})),i("slideChange",(()=>{n&&e.params.cssMode&&p()}))},function({swiper:e,extendParams:t,on:s,emit:i}){let r;function n(){const t=e.slides.eq(e.activeIndex);let s=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(s=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(r),r=p((()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?o():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),i("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?o():(t=e.slideTo(0,e.params.speed,!0,!0),i("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&n()}),s)}function l(){return void 0===r&&(!e.autoplay.running&&(e.autoplay.running=!0,i("autoplayStart"),n(),!0))}function o(){return!!e.autoplay.running&&(void 0!==r&&(r&&(clearTimeout(r),r=void 0),e.autoplay.running=!1,i("autoplayStop"),!0))}function d(t){e.autoplay.running&&(e.autoplay.paused||(r&&clearTimeout(r),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,u)})):(e.autoplay.paused=!1,n())))}function c(){const t=a();"hidden"===t.visibilityState&&e.autoplay.running&&d(),"visible"===t.visibilityState&&e.autoplay.paused&&(n(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)})),e.autoplay.paused=!1,e.autoplay.running?n():o())}function h(){e.params.autoplay.disableOnInteraction?o():d(),["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)}))}function m(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,n())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),s("init",(()=>{if(e.params.autoplay.enabled){l();a().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",h),e.$el.on("mouseleave",m))}})),s("beforeTransitionStart",((t,s,a)=>{e.autoplay.running&&(a||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(s):o())})),s("sliderFirstMove",(()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?o():d())})),s("touchEnd",(()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&n()})),s("destroy",(()=>{e.$el.off("mouseenter",h),e.$el.off("mouseleave",m),e.autoplay.running&&o();a().removeEventListener("visibilitychange",c)})),Object.assign(e.autoplay,{pause:d,run:n,start:l,stop:o})},function({swiper:e,extendParams:t,on:s}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let a=!1,i=!1;function r(){const t=e.thumbs.swiper;if(!t)return;const s=t.clickedIndex,a=t.clickedSlide;if(a&&d(a).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;if(i=t.params.loop?parseInt(d(t.clickedSlide).attr("data-swiper-slide-index"),10):s,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const s=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-t<t-s?a:s}e.slideTo(i)}function n(){const{thumbs:t}=e.params;if(a)return!1;a=!0;const s=e.constructor;if(t.swiper instanceof s)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(m(t.swiper)){const a=Object.assign({},t.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new s(a),i=!0}return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",r),!0}function l(t){const s=e.thumbs.swiper;if(!s)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView,i=e.params.thumbs.autoScrollOffset,r=i&&!s.params.loop;if(e.realIndex!==s.realIndex||r){let n,l,o=s.activeIndex;if(s.params.loop){s.slides.eq(o).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,o=s.activeIndex);const t=s.slides.eq(o).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),a=s.slides.eq(o).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();n=void 0===t?a:void 0===a?t:a-o==o-t?s.params.slidesPerGroup>1?a:o:a-o<o-t?a:t,l=e.activeIndex>e.previousIndex?"next":"prev"}else n=e.realIndex,l=n>e.previousIndex?"next":"prev";r&&(n+="next"===l?i:-1*i),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(n)<0&&(s.params.centeredSlides?n=n>o?n-Math.floor(a/2)+1:n+Math.floor(a/2)-1:n>o&&s.params.slidesPerGroup,s.slideTo(n,t?0:void 0))}let n=1;const l=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(n=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),s.slides.removeClass(l),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let t=0;t<n;t+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(l);else for(let t=0;t<n;t+=1)s.slides.eq(e.realIndex+t).addClass(l)}e.thumbs={swiper:null},s("beforeInit",(()=>{const{thumbs:t}=e.params;t&&t.swiper&&(n(),l(!0))})),s("slideChange update resize observerUpdate",(()=>{e.thumbs.swiper&&l()})),s("setTransition",((t,s)=>{const a=e.thumbs.swiper;a&&a.setTransition(s)})),s("beforeDestroy",(()=>{const t=e.thumbs.swiper;t&&i&&t&&t.destroy()})),Object.assign(e.thumbs,{init:n,update:l})},function({swiper:e,extendParams:t,emit:s,once:a}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchMove:function(){const{touchEventsData:t,touches:s}=e;0===t.velocities.length&&t.velocities.push({position:s[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:s[e.isHorizontal()?"currentX":"currentY"],time:u()})},onTouchEnd:function({currentPos:t}){const{params:i,$wrapperEl:r,rtlTranslate:n,snapGrid:l,touchEventsData:o}=e,d=u()-o.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);else{if(i.freeMode.momentum){if(o.velocities.length>1){const t=o.velocities.pop(),s=o.velocities.pop(),a=t.position-s.position,r=t.time-s.time;e.velocity=a/r,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(r>150||u()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,o.velocities.length=0;let t=1e3*i.freeMode.momentumRatio;const d=e.velocity*t;let c=e.translate+d;n&&(c=-c);let p,h=!1;const m=20*Math.abs(e.velocity)*i.freeMode.momentumBounceRatio;let f;if(c<e.maxTranslate())i.freeMode.momentumBounce?(c+e.maxTranslate()<-m&&(c=e.maxTranslate()-m),p=e.maxTranslate(),h=!0,o.allowMomentumBounce=!0):c=e.maxTranslate(),i.loop&&i.centeredSlides&&(f=!0);else if(c>e.minTranslate())i.freeMode.momentumBounce?(c-e.minTranslate()>m&&(c=e.minTranslate()+m),p=e.minTranslate(),h=!0,o.allowMomentumBounce=!0):c=e.minTranslate(),i.loop&&i.centeredSlides&&(f=!0);else if(i.freeMode.sticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-c){t=e;break}c=Math.abs(l[t]-c)<Math.abs(l[t-1]-c)||"next"===e.swipeDirection?l[t]:l[t-1],c=-c}if(f&&a("transitionEnd",(()=>{e.loopFix()})),0!==e.velocity){if(t=n?Math.abs((-c-e.translate)/e.velocity):Math.abs((c-e.translate)/e.velocity),i.freeMode.sticky){const s=Math.abs((n?-c:c)-e.translate),a=e.slidesSizesGrid[e.activeIndex];t=s<a?i.speed:s<2*a?1.5*i.speed:2.5*i.speed}}else if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode.momentumBounce&&h?(e.updateProgress(p),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating=!0,r.transitionEnd((()=>{e&&!e.destroyed&&o.allowMomentumBounce&&(s("momentumBounce"),e.setTransition(i.speed),setTimeout((()=>{e.setTranslate(p),r.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(s("_freeModeNoMomentumRelease"),e.updateProgress(c),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,r.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(c),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode&&s("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||d>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function({swiper:e,extendParams:t}){let s,a,i;t({grid:{rows:1,fill:"column"}}),e.grid={initSlides:t=>{const{slidesPerView:r}=e.params,{rows:n,fill:l}=e.params.grid;a=s/n,i=Math.floor(t/n),s=Math.floor(t/n)===t/n?t:Math.ceil(t/n)*n,"auto"!==r&&"row"===l&&(s=Math.max(s,r*n))},updateSlide:(t,r,n,l)=>{const{slidesPerGroup:o,spaceBetween:d}=e.params,{rows:c,fill:p}=e.params.grid;let u,h,m;if("row"===p&&o>1){const e=Math.floor(t/(o*c)),a=t-c*o*e,i=0===e?o:Math.min(Math.ceil((n-e*c*o)/c),o);m=Math.floor(a/i),h=a-m*i+e*o,u=h+m*s/c,r.css({"-webkit-order":u,order:u})}else"column"===p?(h=Math.floor(t/c),m=t-h*c,(h>i||h===i&&m===c-1)&&(m+=1,m>=c&&(m=0,h+=1))):(m=Math.floor(t/a),h=t-m*a);r.css(l("margin-top"),0!==m?d&&`${d}px`:"")},updateWrapperSize:(t,a,i)=>{const{spaceBetween:r,centeredSlides:n,roundLengths:l}=e.params,{rows:o}=e.params.grid;if(e.virtualSize=(t+r)*s,e.virtualSize=Math.ceil(e.virtualSize/o)-r,e.$wrapperEl.css({[i("width")]:`${e.virtualSize+r}px`}),n){a.splice(0,a.length);const t=[];for(let s=0;s<a.length;s+=1){let i=a[s];l&&(i=Math.floor(i)),a[s]<e.virtualSize+a[0]&&t.push(i)}a.push(...t)}}}},function({swiper:e}){Object.assign(e,{appendSlide:R.bind(e),prependSlide:j.bind(e),addSlide:_.bind(e),removeSlide:V.bind(e),removeAllSlides:q.bind(e)})},function({swiper:e,extendParams:t,on:s}){t({fadeEffect:{crossFade:!1,transformEl:null}}),F({effect:"fade",swiper:e,on:s,setTranslate:()=>{const{slides:t}=e,s=e.params.fadeEffect;for(let a=0;a<t.length;a+=1){const t=e.slides.eq(a);let i=-t[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);let r=0;e.isHorizontal()||(r=i,i=0);const n=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);U(s,t).css({opacity:n}).transform(`translate3d(${i}px, ${r}px, 0px)`)}},setTransition:t=>{const{transformEl:s}=e.params.fadeEffect;(s?e.slides.find(s):e.slides).transition(t),K({swiper:e,duration:t,transformEl:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),F({effect:"cube",swiper:e,on:s,setTranslate:()=>{const{$el:t,$wrapperEl:s,slides:a,width:i,height:r,rtlTranslate:n,size:l,browser:o}=e,c=e.params.cubeEffect,p=e.isHorizontal(),u=e.virtual&&e.params.virtual.enabled;let h,m=0;c.shadow&&(p?(h=s.find(".swiper-cube-shadow"),0===h.length&&(h=d('<div class="swiper-cube-shadow"></div>'),s.append(h)),h.css({height:`${i}px`})):(h=t.find(".swiper-cube-shadow"),0===h.length&&(h=d('<div class="swiper-cube-shadow"></div>'),t.append(h))));for(let e=0;e<a.length;e+=1){const t=a.eq(e);let s=e;u&&(s=parseInt(t.attr("data-swiper-slide-index"),10));let i=90*s,r=Math.floor(i/360);n&&(i=-i,r=Math.floor(-i/360));const o=Math.max(Math.min(t[0].progress,1),-1);let h=0,f=0,g=0;s%4==0?(h=4*-r*l,g=0):(s-1)%4==0?(h=0,g=4*-r*l):(s-2)%4==0?(h=l+4*r*l,g=l):(s-3)%4==0&&(h=-l,g=3*l+4*l*r),n&&(h=-h),p||(f=h,h=0);const v=`rotateX(${p?0:-i}deg) rotateY(${p?i:0}deg) translate3d(${h}px, ${f}px, ${g}px)`;if(o<=1&&o>-1&&(m=90*s+90*o,n&&(m=90*-s-90*o)),t.transform(v),c.slideShadows){let e=p?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=p?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=d(`<div class="swiper-slide-shadow-${p?"left":"top"}"></div>`),t.append(e)),0===s.length&&(s=d(`<div class="swiper-slide-shadow-${p?"right":"bottom"}"></div>`),t.append(s)),e.length&&(e[0].style.opacity=Math.max(-o,0)),s.length&&(s[0].style.opacity=Math.max(o,0))}}if(s.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),c.shadow)if(p)h.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=c.shadowScale,a=c.shadowScale/t,i=c.shadowOffset;h.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${r/2+i}px, ${-r/2/a}px) rotateX(-90deg)`)}const f=o.isSafari||o.isWebView?-l/2:0;s.transform(`translate3d(0px,0,${f}px) rotateX(${e.isHorizontal()?0:m}deg) rotateY(${e.isHorizontal()?-m:0}deg)`)},setTransition:t=>{const{$el:s,slides:a}=e;a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&s.find(".swiper-cube-shadow").transition(t)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:e,extendParams:t,on:s}){t({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),F({effect:"flip",swiper:e,on:s,setTranslate:()=>{const{slides:t,rtlTranslate:s}=e,a=e.params.flipEffect;for(let i=0;i<t.length;i+=1){const r=t.eq(i);let n=r[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(r[0].progress,1),-1));const l=r[0].swiperSlideOffset;let o=-180*n,d=0,c=e.params.cssMode?-l-e.translate:-l,p=0;if(e.isHorizontal()?s&&(o=-o):(p=c,c=0,d=-o,o=0),r[0].style.zIndex=-Math.abs(Math.round(n))+t.length,a.slideShadows){let t=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),s=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Z(a,r,e.isHorizontal()?"left":"top")),0===s.length&&(s=Z(a,r,e.isHorizontal()?"right":"bottom")),t.length&&(t[0].style.opacity=Math.max(-n,0)),s.length&&(s[0].style.opacity=Math.max(n,0))}const u=`translate3d(${c}px, ${p}px, 0px) rotateX(${d}deg) rotateY(${o}deg)`;U(a,r).transform(u)}},setTransition:t=>{const{transformEl:s}=e.params.flipEffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),K({swiper:e,duration:t,transformEl:s})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),F({effect:"coverflow",swiper:e,on:s,setTranslate:()=>{const{width:t,height:s,slides:a,slidesSizesGrid:i}=e,r=e.params.coverflowEffect,n=e.isHorizontal(),l=e.translate,o=n?t/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,t=a.length;e<t;e+=1){const t=a.eq(e),s=i[e],l=(o-t[0].swiperSlideOffset-s/2)/s*r.modifier;let p=n?d*l:0,u=n?0:d*l,h=-c*Math.abs(l),m=r.stretch;"string"==typeof m&&-1!==m.indexOf("%")&&(m=parseFloat(r.stretch)/100*s);let f=n?0:m*l,g=n?m*l:0,v=1-(1-r.scale)*Math.abs(l);Math.abs(g)<.001&&(g=0),Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(p)<.001&&(p=0),Math.abs(u)<.001&&(u=0),Math.abs(v)<.001&&(v=0);const w=`translate3d(${g}px,${f}px,${h}px)  rotateX(${u}deg) rotateY(${p}deg) scale(${v})`;if(U(r,t).transform(w),t[0].style.zIndex=1-Math.abs(Math.round(l)),r.slideShadows){let e=n?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=n?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=Z(r,t,n?"left":"top")),0===s.length&&(s=Z(r,t,n?"right":"bottom")),e.length&&(e[0].style.opacity=l>0?l:0),s.length&&(s[0].style.opacity=-l>0?-l:0)}}},setTransition:t=>{const{transformEl:s}=e.params.coverflowEffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:e,extendParams:t,on:s}){t({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const a=e=>"string"==typeof e?e:`${e}px`;F({effect:"creative",swiper:e,on:s,setTranslate:()=>{const{slides:t,$wrapperEl:s,slidesSizesGrid:i}=e,r=e.params.creativeEffect,{progressMultiplier:n}=r,l=e.params.centeredSlides;if(l){const t=i[0]/2-e.params.slidesOffsetBefore||0;s.transform(`translateX(calc(50% - ${t}px))`)}for(let s=0;s<t.length;s+=1){const i=t.eq(s),o=i[0].progress,d=Math.min(Math.max(i[0].progress,-r.limitProgress),r.limitProgress);let c=d;l||(c=Math.min(Math.max(i[0].originalProgress,-r.limitProgress),r.limitProgress));const p=i[0].swiperSlideOffset,u=[e.params.cssMode?-p-e.translate:-p,0,0],h=[0,0,0];let m=!1;e.isHorizontal()||(u[1]=u[0],u[0]=0);
6let f={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(f=r.next,m=!0):d>0&&(f=r.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${a(f.translate[t])} * ${Math.abs(d*n)}))`})),h.forEach(((e,t)=>{h[t]=f.rotate[t]*Math.abs(d*n)})),i[0].style.zIndex=-Math.abs(Math.round(o))+t.length;const g=u.join(", "),v=`rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,x=`translate3d(${g}) ${v} ${w}`;if(m&&f.shadow||!m){let e=i.children(".swiper-slide-shadow");if(0===e.length&&f.shadow&&(e=Z(r,i)),e.length){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const y=U(r,i);y.transform(x).css({opacity:b}),f.origin&&y.css("transform-origin",f.origin)}},setTransition:t=>{const{transformEl:s}=e.params.creativeEffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),K({swiper:e,duration:t,transformEl:s,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({cardsEffect:{slideShadows:!0,transformEl:null}}),F({effect:"cards",swiper:e,on:s,setTranslate:()=>{const{slides:t,activeIndex:s}=e,a=e.params.cardsEffect,{startTranslate:i,isTouched:r}=e.touchEventsData,n=e.translate;for(let l=0;l<t.length;l+=1){const o=t.eq(l),d=o[0].progress,c=Math.min(Math.max(d,-4),4);let p=o[0].swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(p-=t[0].swiperSlideOffset);let u=e.params.cssMode?-p-e.translate:-p,h=0;const m=-100*Math.abs(c);let f=1,g=-2*c,v=8-.75*Math.abs(c);const w=(l===s||l===s-1)&&c>0&&c<1&&(r||e.params.cssMode)&&n<i,b=(l===s||l===s+1)&&c<0&&c>-1&&(r||e.params.cssMode)&&n>i;if(w||b){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,f+=-.5*e,v+=96*e,h=-25*e*Math.abs(c)+"%"}if(u=c<0?`calc(${u}px + (${v*Math.abs(c)}%))`:c>0?`calc(${u}px + (-${v*Math.abs(c)}%))`:`${u}px`,!e.isHorizontal()){const e=h;h=u,u=e}const x=`\n        translate3d(${u}, ${h}, ${m}px)\n        rotateZ(${g}deg)\n        scale(${c<0?""+(1+(1-f)*c):""+(1-(1-f)*c)})\n      `;if(a.slideShadows){let e=o.find(".swiper-slide-shadow");0===e.length&&(e=Z(a,o)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}o[0].style.zIndex=-Math.abs(Math.round(d))+t.length;U(a,o).transform(x)}},setTransition:t=>{const{transformEl:s}=e.params.cardsEffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),K({swiper:e,duration:t,transformEl:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}];return H.use(J),H}));
7/*! WOW wow.js - v1.3.0 - 2016-10-04
8* https://wowjs.uk
9* Copyright (c) 2016 Thomas Grainger; Licensed MIT */!function(a,b){if("function"==typeof define&&define.amd)define(["module","exports"],b);else if("undefined"!=typeof exports)b(module,exports);else{var c={exports:{}};b(c,c.exports),a.WOW=c.exports}}(this,function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){return b.indexOf(a)>=0}function e(a,b){for(var c in b)if(null==a[c]){var d=b[c];a[c]=d}return a}function f(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}function g(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],d=arguments.length<=3||void 0===arguments[3]?null:arguments[3],e=void 0;return null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e}function h(a,b){null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)&&a["on"+b]()}function i(a,b,c){null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c}function j(a,b,c){null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}function k(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}
vendor: 6,891 bytes, lines 9-14
9Object.defineProperty(b,"__esModule",{value:!0});var l,m,n=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),o=window.WeakMap||window.MozWeakMap||function(){function a(){c(this,a),this.keys=[],this.values=[]}return n(a,[{key:"get",value:function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b];if(c===a)return this.values[b]}}},{key:"set",value:function(a,b){for(var c=0;c<this.keys.length;c++){var d=this.keys[c];if(d===a)return this.values[c]=b,this}return this.keys.push(a),this.values.push(b),this}}]),a}(),p=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(m=l=function(){function a(){c(this,a),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return n(a,[{key:"observe",value:function(){}}]),a}(),l.notSupported=!0,m),q=window.getComputedStyle||function(a){var b=/(\-([a-z]){1})/g;return{getPropertyValue:function(c){"float"===c&&(c="styleFloat"),b.test(c)&&c.replace(b,function(a,b){return b.toUpperCase()});var d=a.currentStyle;return(null!=d?d[c]:void 0)||null}}},r=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c(this,a),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null,resetAnimation:!0},this.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=e(b,this.defaults),null!=b.scrollContainer&&(this.config.scrollContainer=document.querySelector(b.scrollContainer)),this.animationNameCache=new o,this.wowEvent=g(this.config.boxClass)}return n(a,[{key:"init",value:function(){this.element=window.document.documentElement,d(document.readyState,["interactive","complete"])?this.start():i(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var a=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var b=0;b<this.boxes.length;b++){var c=this.boxes[b];this.applyStyle(c,!0)}if(this.disabled()||(i(this.config.scrollContainer||window,"scroll",this.scrollHandler),i(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live){var d=new p(function(b){for(var c=0;c<b.length;c++)for(var d=b[c],e=0;e<d.addedNodes.length;e++){var f=d.addedNodes[e];a.doSync(f)}});d.observe(document.body,{childList:!0,subtree:!0})}}},{key:"stop",value:function(){this.stopped=!0,j(this.config.scrollContainer||window,"scroll",this.scrollHandler),j(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){p.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(a){if("undefined"!=typeof a&&null!==a||(a=this.element),1===a.nodeType){a=a.parentNode||a;for(var b=a.querySelectorAll("."+this.config.boxClass),c=0;c<b.length;c++){var e=b[c];d(e,this.all)||(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),this.scrolled=!0)}}}},{key:"show",value:function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),h(a,this.wowEvent),this.config.resetAnimation&&(i(a,"animationend",this.resetAnimation),i(a,"oanimationend",this.resetAnimation),i(a,"webkitAnimationEnd",this.resetAnimation),i(a,"MSAnimationEnd",this.resetAnimation)),a}},{key:"applyStyle",value:function(a,b){var c=this,d=a.getAttribute("data-wow-duration"),e=a.getAttribute("data-wow-delay"),f=a.getAttribute("data-wow-iteration");return this.animate(function(){return c.customStyle(a,b,d,e,f)})}},{key:"resetStyle",value:function(){for(var a=0;a<this.boxes.length;a++){var b=this.boxes[a];b.style.visibility="visible"}}},{key:"resetAnimation",value:function(a){if(a.type.toLowerCase().indexOf("animationend")>=0){var b=a.target||a.srcElement;b.className=b.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}},{key:"vendorSet",value:function(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];a[""+c]=d;for(var e=0;e<this.vendors.length;e++){var f=this.vendors[e];a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=d}}}},{key:"vendorCSS",value:function(a,b){for(var c=q(a),d=c.getPropertyCSSValue(b),e=0;e<this.vendors.length;e++){var f=this.vendors[e];d=d||c.getPropertyCSSValue("-"+f+"-"+b)}return d}},{key:"animationName",value:function(a){var b=void 0;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=q(a).getPropertyValue("animation-name")}return"none"===b?"":b}},{key:"cacheAnimationName",value:function(a){return this.animationNameCache.set(a,this.animationName(a))}},{key:"cachedAnimationName",value:function(a){return this.animationNameCache.get(a)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var a=[],b=0;b<this.boxes.length;b++){var c=this.boxes[b];if(c){if(this.isVisible(c)){this.show(c);continue}a.push(c)}}this.boxes=a,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(a){for(;void 0===a.offsetTop;)a=a.parentNode;for(var b=a.offsetTop;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop;return b}},{key:"isVisible",value:function(a){var b=a.getAttribute("data-wow-offset")||this.config.offset,c=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,d=c+Math.min(this.element.clientHeight,k())-b,e=this.offsetTop(a),f=e+a.clientHeight;return d>=e&&f>=c}},{key:"disabled",value:function(){return!this.config.mobile&&f(navigator.userAgent)}}]),a}();b["default"]=r,a.exports=b["default"]});
10// Copyright (C) Microsoft Corporation. All rights reserved.
11// Use of this source code is governed by a BSD-style license that can be
12// found in the LICENSE file.
13
14// This code is used in conjunction with the Google Translate Element script.
15// It is executed in an isolated world of a page to translate it from one
16// language to another.
17// It should be included in the page before the Translate Element script.
18
19// eslint-disable-next-line no-var
20var cr = cr || {};
21
22/**
23 * An object to provide functions to interact with the Translate library.
24 * @type {object}
25 */
26cr.googleTranslate = (function() {
27    /**
28   * Error definitions for |errorCode|. See chrome/common/translate_errors.h
29   * to modify the definition.
30   * @const
31   */
32    const ERROR = {
33        'NONE': 0,
34        'INITIALIZATION_ERROR': 2,
35        'UNSUPPORTED_LANGUAGE': 4,
36        'TRANSLATION_ERROR': 6,
37        'TRANSLATION_TIMEOUT': 7,
38        'UNEXPECTED_SCRIPT_ERROR': 8,
39        'BAD_ORIGIN': 9,
40        'SCRIPT_LOAD_ERROR': 10,
41    };
42
43    /**
44   * Result definition for edgeScriptResult.
45   * See component/translate/core/common/edge_translate_script_results.h
46   * @const
47   */
48    const EDGE_SCRIPT_RESULT = {
49        'SUCCESSFUL': 0,
50        'TIMEOUT': 1,
51        'BAD_REQUEST': 2,
52        'SERVICE_UNAVAILABLE': 3,
53        'SERVICE_ERROR': 4,
54        'NETWORK': 5,
55        'UNKNOWN': 6,
56        'SCRIPT_TIMEOUT': 7,
57    };
58
59    /**
60   * Result definition for badRequestError.
61   * See component/translate/core/common/edge_translate_script_results.h
62   * @const
63   */
64    const BAD_REQUEST_ERROR = {
65        'OTHERS': 0,
66        'INVALID_INPUT': 1,
67        'INVALID_CREDENTIALS': 2,
68        'TOO_MANY_REQUESTS': 3,
69    };
70
71    /**
72    * An error code happened in translate.js and the Translate Element library.
73    */
74    let errorCode = ERROR['NONE'];
75
76    /**
77   * The result for translation script run.
78   */
79    let edgeScriptResult = EDGE_SCRIPT_RESULT['SUCCESSFUL'];
80
81    /**
82   * Stores server side languages detected on the page, along with the
83   * percentages of their detection on the page.
84   * e.g. [['en', 0.75], ['fr', 0.25]]
85   */
86    let languageDetectionResults = [];
87
88    /**
89   * The bad request error code.
90   */
91    let badRequestError = BAD_REQUEST_ERROR['OTHERS'];
92
93    /**
94    * A flag representing if the Translate Element has finished a translation.
95    * @type {boolean}
96    */
97    let finished = false;
98
99    /**
100   * A flag representing if the Translate Element has finished the revert.
101   */
102    let revertCompleted = false;
103
104    /**
105    * Time in msec when this script is injected.
106    * @type {number}
107    */
108    const injectedTime = performance.now();
109
110    /**
111    * Time in msec when the Translate Element library is loaded completely.
112    * @type {number}
113    */
114    const loadedTime = 0.0;
115
116    /**
117    * Time in msec when the Translate Element library is initialized and ready
118    * for performing translation.
119    * @type {number}
120    */
121    const readyTime = 0.0;
122
123    /**
124    * Time in msec when the Translate Element library starts a translation.
125    * @type {number}
126    */
127    let startTime = 0.0;
128
129    /**
130    * Time in msec when the Translate Element library ends a translation.
131    * @type {number}
132    */
133    let endTime = 0.0;
134
135    /**
136   * Count of characters translated so far.
137   * @type {number}
138   */
139    let totalCharactersSentForTranslationSoFar = 0;
140
141    /**
142   * Boolean value to determine whether there was exception
143   * while trying to parse cache data.
144   */
145    let unableToParseCacheData = false;
146
147    /**
148   * Count of characters translated due to retries.
149   */
150    let totalCharactersTranslatedByRetry = 0;
151
152    /**
153   * Total number of characters translated on the page so far.
154   */
155    let totalCharactersTranslatedOnPageSoFar = 0;
156
157    /**
158   * Count of number of translate calls made to bing.
159   */
160    let translateCallCount = 0;
161
162    // The translate subscription key for enterprise translate and
163    // authentication from ACS
164    let translateServiceSubscriptionKey = null;
165
166    // Boolean flag to represent whether unsupported languages UX fix is enabled.
167    let unsupportedLanguagesUxFixEnabled = false;
168
169    // Map of originalText -> translatedText for the current translated web page.
170    // These are the translations that are to be cached.
171    const translationsToCacheInMemory = new Map();
172
173    // HTML lang attribute name.
174    const kHtmlLangAttribute = 'lang';
175
176    // A flag to indicate whether full page translation was initiated.
177    let fullPageTranslationInitiated = false;
178
179    // Target language code sent from C++ side when full page translation is initiated.
180    let fullPageTranslateTargetLang = '';
181
182    // Store the original value of html lang attribute.
183    const originalLangAttributeValue = document.documentElement?.hasAttribute(kHtmlLangAttribute) ? document.documentElement.getAttribute(kHtmlLangAttribute) : null;
184
185    // map to chrome system language code to the edge translate
186    //
187    const kChromeCodeToEdgeCode = {
188        'zh-CN': 'zh-CHS',
189        'zh-TW': 'zh-CHT',
190    };
191
192    // This is needed as some language codes are different between edge translate API
193    // and chrome. So, when the source language is auto detected by API then to map
194    // the detected language code back to chrome language code.
195    const kEdgeCodeToChromeCode = {
196        // translate V2 api language Code
197        'zh-chs': 'zh-CN',
198        'zh-cht': 'zh-TW',
199
200        // translate V3 api language Code
201        'pt': 'pt-BR',
202        'pt-pt': 'pt-PT',
203        'sr-Latn': 'sr-Latn-RS',
204        'zh-hans': 'zh-CN',
205        'zh-hant': 'zh-TW',
206    };
207
208    // This should be in sync with kAzureToEdgeLangCodeMappings in translate_language_list.cc.
209    const languageCodeMapping = {
210        'fr-ca': 'fr-CA',
211        'gom': 'kok',
212        'nya': 'ny',
213        'pt-pt': 'pt-PT',
214        'sr-Latn': 'sr-Latn-RS',
215        'uz': 'uz-Latn',
216        'zh-Hans': 'zh-CN',
217        'zh-Hant': 'zh-TW',
218        'mn-Cyrl': 'mn',
219    };
220
221    // This is needed as some language codes are different between Azure Translator API
222    // and edge. So, when the source language is auto detected by API then to map
223    // the detected language code back to edge language code.
224    // Used when msUnsupportedLanguageUXFix flag is enabled.
225    const kAzureTranslatorCodeToEdgeCode = {
226        ...languageCodeMapping
227    };
228
229    // This is mapping of edge language codes to Azure language codes.
230    // Before sending request to Azure cognitive service we need to convert the edge language code
231    // to azure translator language code.
232    const kEdgeCodeToAzureTranslatorCode = Object.fromEntries(Object.entries(languageCodeMapping).map( ([key,value]) => [value, key]), );
233
234    // This is returned when source language is not detected. Empty string
235    // is chosen as value, so that we don't have any merge conflict in translate_helper.
236    const kLanguageNotDetectedCode = '';
237
238    /**
239   * Translation script returns some custom error codes along with standard
240   * HTTP status code.
241   * @const
242   */
243    const SCRIPT_CUSTOM_STATUS_CODE = {
244        'NETWORK_TIMEOUT': -1,
245        'SCRIPT_TIMEOUT': -2,
246    };
247
248    // Functions to classify HTTP response codes to appropriate error buckets.
249    function isBadRequest(errorData) {
250        return (errorData.status != null && errorData.status >= 400 && errorData.status < 500);
251    }
252
253    function classifyBadRequestError(statusCode) {
254        switch (statusCode) {
255        case 400:
256            return BAD_REQUEST_ERROR['INVALID_INPUT'];
257        case 401:
258            return BAD_REQUEST_ERROR['INVALID_CREDENTIALS'];
259        case 429:
260            return BAD_REQUEST_ERROR['TOO_MANY_REQUESTS'];
261        default:
262            return BAD_REQUEST_ERROR['OTHERS'];
263        }
264    }
265
266    function isServiceUnavailable(errorData) {
267        return errorData.status != null && errorData.status === 503;
268    }
269
270    function isServerError(errorData) {
271        return (errorData.status != null && errorData.status >= 500 && errorData.status < 600);
272    }
273
274    /**
275  * This will map language code which azure translator understands
276  * @type {string}
277  */
278    function GetAzureLanguageCode(language) {
279        if (unsupportedLanguagesUxFixEnabled) {
280            if (language in kEdgeCodeToAzureTranslatorCode) {
281                return kEdgeCodeToAzureTranslatorCode[language];
282            } else {
283                return language;
284            }
285        } else {
286            if (language in kChromeCodeToEdgeCode) {
287                return kChromeCodeToEdgeCode[language];
288            } else {
289                return language;
290            }
291        }
292    }
293
294    /**
295  * This will map azure translate language code to edge language code
296  * @type {string}
297  */
298    function GetEdgeLanguageCode(language) {
299        if (unsupportedLanguagesUxFixEnabled) {
300            if (language in kAzureTranslatorCodeToEdgeCode) {
301                return kAzureTranslatorCodeToEdgeCode[language];
302            } else {
303                return language;
304            }
305        } else {
306            if (language in kEdgeCodeToChromeCode) {
307                return kEdgeCodeToChromeCode[language];
308            } else {
309                return language;
310            }
311        }
312    }
313
314    function invokeResultCallback() {
315        if (cr.googleTranslate.resultCallback) {
316            cr.googleTranslate.resultCallback();
317            cr.googleTranslate.resultCallback = null;
318        }
319    }
320
321    // Success callback called when the translation is done successfully and
322    // completely by edge.
323    function onSuccessCallback() {
324        finished = true;
325        endTime = performance.now();
326        invokeResultCallback();
327        updateLanguageDetectionResults();
328        updateHtmlLangAttribute(false /* isRevert */
329        );
330    }
331
332    // Fetched instances of detected languages, and sorts them with count of instances.
333    // Computes percentage of such instance for each language, and updates
334    // languageDetectionResults with [language, percentage] pairs
335    function updateLanguageDetectionResults() {
336        const allDetectedLanguages = Microsoft?.Translator?.getAllDetectedLanguages?.();
337        if (allDetectedLanguages) {
338            const detectedLangEntries = Object.entries(allDetectedLanguages);
339            detectedLangEntries.sort( ([lang1,count1], [lang2,count2]) => count2 - count1, );
340            const totalDetections = detectedLangEntries.reduce( (sum, [lang,count]) => sum + count, 0);
341            if (totalDetections === 0) {
342                languageDetectionResults = [];
343            } else {
344                languageDetectionResults = detectedLangEntries.map( ([lang,count]) => [GetEdgeLanguageCode(lang), (count / totalDetections) * 100, ]);
345            }
346        }
347    }
348
349    /*
350  * Update the HTML lang attribute based on the current translation state.
351  */
352    function updateHtmlLangAttribute(isRevert) {
353        const htmlElement = document.documentElement;
354        if (htmlElement == null || !htmlElement.hasAttribute(kHtmlLangAttribute)) {
355            return;
356        }
357
358        if (isRevert && originalLangAttributeValue !== null) {
359            htmlElement.setAttribute(kHtmlLangAttribute, originalLangAttributeValue);
360            return;
361        }
362
363        if (fullPageTranslationInitiated) {
364            htmlElement.setAttribute(kHtmlLangAttribute, fullPageTranslateTargetLang);
365        }
366    }
367
368    // Function to increment the count of total characters translated on the page.
369    function incrementTotalCharacterTranslated(totalCharactersTranslated) {
370        totalCharactersTranslatedOnPageSoFar += totalCharactersTranslated;
371    }
372
373    /**
374   * Function to report that there was an error in parsing
375   * cached translations given by translate agent.
376   */
377    function reportCacheDataParsingException() {
378        unableToParseCacheData = true;
379    }
380
381    // Callback function that sends new translations to be cached in memory.
382    function onElementTextTranslated(translations) {
383        translationsToCacheInMemory.set(translations.originalText, translations.translatedText);
384    }
385
386    // Callback called when bing api to translate is called.
387    function onTranslateApiCalled(translationDetails) {
388        if (translationDetails.isRetry) {
389            totalCharactersTranslatedByRetry += translationDetails.charactersToTranslateCount;
390        }
391        totalCharactersSentForTranslationSoFar += translationDetails.charactersToTranslateCount;
392        translateCallCount++;
393    }
394
395    // Error callback called when the translation results in error by edge.
396    function onErrorCallback(error) {
397        errorCode = ERROR['TRANSLATION_ERROR'];
398        try {
399            const errorData = JSON.parse(error);
400            if (errorData.status === SCRIPT_CUSTOM_STATUS_CODE['SCRIPT_TIMEOUT']) {
401                edgeScriptResult = EDGE_SCRIPT_RESULT['SCRIPT_TIMEOUT'];
402            } else if (errorData.status === SCRIPT_CUSTOM_STATUS_CODE['NETWORK_TIMEOUT']) {
403                edgeScriptResult = EDGE_SCRIPT_RESULT['TIMEOUT'];
404            } else if (isBadRequest(errorData)) {
405                edgeScriptResult = EDGE_SCRIPT_RESULT['BAD_REQUEST'];
406                badRequestError = classifyBadRequestError(errorData.status);
407            } else if (isServiceUnavailable(errorData)) {
408                edgeScriptResult = EDGE_SCRIPT_RESULT['SERVICE_UNAVAILABLE'];
409            } else if (isServerError(errorData)) {
410                edgeScriptResult = EDGE_SCRIPT_RESULT['SERVICE_ERROR'];
411            } else if (errorData.status === 0) {
412                edgeScriptResult = EDGE_SCRIPT_RESULT['NETWORK'];
413            }
414        } catch (e) {
415            edgeScriptResult = EDGE_SCRIPT_RESULT['UNKNOWN'];
416        }
417        finished = false;
418        invokeResultCallback();
419    }
420
421    function translateInternal(originalLang, targetLang, shouldTranslateFullPageInOneGo, ) {
422        resetDataBeforeTranslateCall();
423        fullPageTranslationInitiated = true;
424        fullPageTranslateTargetLang = targetLang;
425        try {
426            originalLang = GetAzureLanguageCode(originalLang);
427            targetLang = GetAzureLanguageCode(targetLang);
428            /**
429           * Sets the value of translate service key used for enterprise translate
430           * if the subscription key is not null and not an empty string.
431           */
432            if (translateServiceSubscriptionKey != null && translateServiceSubscriptionKey !== '') {
433                Microsoft.Translator.setTranslateServiceSubscriptionKey(translateServiceSubscriptionKey, );
434            }
435            /**
436            * This will call the startPageTranslation function of edge script
437            */
438            Microsoft.Translator.startPageTranslation({
439                fromLang: originalLang,
440                toLang: targetLang,
441                translateFullPageInOneGo: shouldTranslateFullPageInOneGo,
442            }, {
443                onTranslateApiCalled: onTranslateApiCalled,
444                incrementTotalCharacterTranslated: incrementTotalCharacterTranslated,
445                onElementTextTranslated: onElementTextTranslated,
446                onComplete: onSuccessCallback,
447                onError: onErrorCallback,
448            }, );
449        } catch (err) {
450            console.error('Translate: ' + err);
451            errorCode = ERROR['UNEXPECTED_SCRIPT_ERROR'];
452            return false;
453        }
454        return true;
455    }
456
457    function resetDataBeforeTranslateCall(shouldResetTelemetryData=true) {
458        finished = false;
459        revertCompleted = false;
460        errorCode = ERROR['NONE'];
461        startTime = performance.now();
462        unableToParseCacheData = false;
463        translationsToCacheInMemory.clear();
464        fullPageTranslationInitiated = false;
465        fullPageTranslateTargetLang = '';
466
467        if (shouldResetTelemetryData) {
468            resetTelemetryData();
469        }
470    }
471
472    function resetTelemetryData() {
473        totalCharactersSentForTranslationSoFar = 0;
474        totalCharactersTranslatedOnPageSoFar = 0;
475        totalCharactersTranslatedByRetry = 0;
476        translateCallCount = 0;
477    }
478
479    // Public API.
480    return {
481        /**
482     * Whether the current translate has finished successfully.
483     * @type {boolean}
484     */
485        get finished() {
486            return finished;
487        },
488
489        /**
490     * Whether revert has completed
491     * @type {boolean}
492     */
493        get revertCompleted() {
494            return revertCompleted;
495        },
496
497        /**
498      * Whether an error occured initializing the library of translating the
499      * page.
500      * @type {boolean}
501      */
502        get error() {
503            return errorCode !== ERROR['NONE'];
504        },
505
506        /**
507      * Returns a number to represent error type.
508      * @type {number}
509      */
510        get errorCode() {
511            return errorCode;
512        },
513
514        /**
515   * In case of auto detect page language, it returns the language code
516   * determined by translate API.
517   * @type {string}
518   */
519        get sourceLang() {
520            const detectedLang = Microsoft?.Translator?.getDetectedLanguage?.();
521            if (detectedLang && errorCode === ERROR['NONE']) {
522                return GetEdgeLanguageCode(detectedLang);
523            } else {
524                return kLanguageNotDetectedCode;
525            }
526        },
527
528        /**
529     * In case of multiple language detections from server side, in languages
530     * sorted by number of detected instance (descending), this returns language
531     * at the given index.
532     */
533        sourceLangDetectedAt(index) {
534            if (index !== parseInt(index, 10) || index < 0 || index >= languageDetectionResults.length) {
535                return '';
536            }
537            return languageDetectionResults[index][0];
538        },
539
540        /**
541     * In case of multiple language detections from server side, in languages
542     * sorted by number of detected instance (descending), this returns percent
543     * at a language at the given index.
544     */
545        sourceLangDetectionPercentAt(index) {
546            if (index !== parseInt(index, 10) || index < 0 || index >= languageDetectionResults.length) {
547                return 0.0;
548            }
549            return languageDetectionResults[index][1];
550        },
551
552        /*
553     * Function executed by translate agent to enable unsupported languages UX fix experiment.
554     */
555        setUnsupportedLanguageUXFixEnabled() {
556            unsupportedLanguagesUxFixEnabled = true;
557        },
558
559        /**
560     * Returns result of Edge translation script run.
561     */
562        get edgeScriptResult() {
563            return edgeScriptResult;
564        },
565
566        /**
567     * Returns the client side error status.
568     */
569        get badRequestError() {
570            return badRequestError;
571        },
572
573        /**
574      * Time in msec from this script being injected to all server side scripts
575      * being loaded.
576      * @type {number}
577      */
578        get loadTime() {
579            if (loadedTime === 0) {
580                return 0;
581            }
582            return loadedTime - injectedTime;
583        },
584
585        /**
586      * Time in msec from this script being injected to the Translate Element
587      * library being ready.
588      * @type {number}
589      */
590        get readyTime() {
591            return readyTime - injectedTime;
592        },
593
594        /**
595      * Time in msec to perform translation.
596      * @type {number}
597      */
598        get translationTime() {
599            if (!finished) {
600                return 0;
601            }
602            return endTime - startTime;
603        },
604
605        /**
606     * Characters sent for translation.
607     * @type {number}
608     */
609        get totalCharactersSentForTranslationSoFar() {
610            return totalCharactersSentForTranslationSoFar;
611        },
612
613        // This function is called by the TranslateAgent to get all the
614        // translations that are done on the current origin.
615        get translationsToCacheInMemory() {
616            const data = JSON.stringify(Object.fromEntries(translationsToCacheInMemory));
617            translationsToCacheInMemory.clear();
618            return data;
619        },
620
621        /**
622     * Characters translated due to retries.
623     * @type {number}
624     */
625        get totalCharactersTranslatedByRetry() {
626            return totalCharactersTranslatedByRetry;
627        },
628
629        /**
630     * Total characters translated on the page.
631     */
632        get totalCharactersTranslatedOnPageSoFar() {
633            return totalCharactersTranslatedOnPageSoFar;
634        },
635
636        /**
637     * Returns count of bing translate calls made.
638     */
639        get translateCallCount() {
640            return translateCallCount;
641        },
642
643        /**
644     * Initializes the translateServiceSubscriptionKey variable.
645     * Called on the c++ side (translate_agent.cc) where the translateServiceKey
646     * is passed as parameter.
647     */
648        setTranslationServiceKey(translateServicekey) {
649            if (translateServicekey != null && translateServicekey !== '') {
650                translateServiceSubscriptionKey = translateServicekey;
651            }
652        },
653
654        /**
655     * Sets the isEnterpriseClient flag.
656     * Called on the c++ side (translate_agent.cc) where the isEnterpriseClient
657     * flag is passed as parameter.
658     */
659        setIsEnterpriseClient(isEnterpriseClientFlag) {
660            if (typeof Microsoft?.Translator?.setIsEnterpriseClient === 'function' && isEnterpriseClientFlag) {
661                Microsoft.Translator.setIsEnterpriseClient(isEnterpriseClientFlag);
662            }
663        },
664
665        /**
666     * Set the value of cached translations in LRUCache on js
667     */
668        setCachedTranslations(cachedTranslations, targetLang) {
669            Microsoft.Translator.setTranslateCacheData(cachedTranslations, targetLang, reportCacheDataParsingException);
670        },
671
672        /**
673     * Returns a boolean value whether code tag was present on the translated page
674     */
675        get isCodeTagPresentOnPage() {
676            return document.querySelectorAll('code').length !== 0;
677        },
678
679        /**
680     * Returns whether cache data send from translate agent was successfully parsed.
681     */
682        get cacheDataParsingSuccess() {
683            return !unableToParseCacheData;
684        },
685
686        /**
687      * Translate the page contents.  Note that the translation is asynchronous.
688      * You need to regularly check the state of |finished| and |errorCode| to
689      * know if the translation finished or if there was an error.
690      * @param {string} originalLang The language the page is in.
691      * @param {string} targetLang The language the page should be translated to.
692      * @return {boolean} False if the translate library was not ready, in which
693      *                   case the translation is not started.  True otherwise.
694      */
695        translate(originalLang, targetLang) {
696            return translateInternal(originalLang, targetLang, false, /*shouldTranslateFullPageInOneGo*/
697            );
698        },
699
700        translateFullPageInOneGo(originalLang, targetLang) {
701            return translateInternal(originalLang, targetLang, true, /*shouldTranslateFullPageInOneGo*/
702            );
703        },
704
705        /**
706     * Translates a selected text on a page.
707     * @param {string} targetLang is language in which selected text will get
708     *                            translated into.
709     */
710        translateSelection(targetLang) {
711            resetDataBeforeTranslateCall(false /* shouldResetTelemetryData */
712            );
713            try {
714                targetLang = GetAzureLanguageCode(targetLang);
715                /**
716           * Sets the value of translate service key used for enterprise translate
717           * if the subscription key is not null and not an empty string.
718           */
719                if (translateServiceSubscriptionKey != null && translateServiceSubscriptionKey !== '') {
720                    Microsoft.Translator.setTranslateServiceSubscriptionKey(translateServiceSubscriptionKey, );
721                }
722                /**
723          * This will call the startSelectionTranslation function of edge script
724          */
725                Microsoft.Translator.startSelectionTranslation({
726                    toLang: targetLang,
727                }, {
728                    onTranslateApiCalled: onTranslateApiCalled,
729                    incrementTotalCharacterTranslated: incrementTotalCharacterTranslated,
730                    onElementTextTranslated: onElementTextTranslated,
731                    onComplete: onSuccessCallback,
732                    onError: onErrorCallback,
733                }, );
734            } catch (err) {
735                console.error('Translate Selection: ' + err);
736                errorCode = ERROR['UNEXPECTED_SCRIPT_ERROR'];
737                return false;
738            }
739            return true;
740        },
741
742        /**
743      * Reverts the page contents to its original value, effectively reverting
744      * any performed translation.  Does nothing if the page was not translated.
745      */
746        revert() {
747            Microsoft.Translator.stopPageTranslation().then( () => {
748                revertCompleted = true;
749                console.info('Edge revert page translation.');
750            }
751            );
752            resetTelemetryData();
753            updateHtmlLangAttribute(true /* isRevert */
754            );
755        },
756
757        /**
758      * Called when an error is caught while executing script fetched in
759      * translate_script.cc.
760      */
761        onTranslateElementError(error) {
762            errorCode = ERROR['UNEXPECTED_SCRIPT_ERROR'];
763        },
764
765        /**
766      * Entry point called by the Translate Element when it want to load an
767      * external CSS resource into the page.
768      * @param {string} url URL of an external CSS resource to load.
769      */
770        onLoadCSS(url) {
771            const element = document.createElement('link');
772            element.type = 'text/css';
773            element.rel = 'stylesheet';
774            element.charset = 'UTF-8';
775            element.href = url;
776            document.head.appendChild(element);
777        },
778
779        /**
780      * Entry point called by the Translate Element when it want to load and run
781      * an external JavaScript on the page.
782      * @param {string} url URL of an external JavaScript to load.
783      */
784        onLoadJavascript(url) {
785            // securityOrigin is predefined by translate_script.cc.
786            if (!url.startsWith(securityOrigin)) {
787                console.error('Translate: ' + url + ' is not allowed to load.');
788                errorCode = ERROR['BAD_ORIGIN'];
789                return;
790            }
791
792            const xhr = new XMLHttpRequest();
793            xhr.open('GET', url, true);
794            xhr.onreadystatechange = function() {
795                if (this.readyState !== this.DONE) {
796                    return;
797                }
798                if (this.status !== 200) {
799                    errorCode = ERROR['SCRIPT_LOAD_ERROR'];
800                    return;
801                }
802                eval(this.responseText);
803            }
804            ;
805            xhr.send();
806        },
807    };
808}
809)();
810try {
811    var Microsoft;
812    ( () => {
813        "use strict";
814        var e, t = {
815            d: (e, n) => {
816                for (var s in n)
817                    t.o(n, s) && !t.o(e, s) && Object.defineProperty(e, s, {
818                        enumerable: !0,
819                        get: n[s]
820                    })
821            }
822            ,
823            o: (e, t) => Object.prototype.hasOwnProperty.call(e, t),
824            r: e => {
825                "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
826                    value: "Module"
827                }),
828                Object.defineProperty(e, "__esModule", {
829                    value: !0
830                })
831            }
832        }, n = {};
833        t.r(n),
834        t.d(n, {
835            Translator: () => Ke
836        }),
837        function(e) {
838            e[e.Off = 0] = "Off",
839            e[e.Error = 1] = "Error",
840            e[e.Warning = 2] = "Warning",
841            e[e.Info = 4] = "Info",
842            e[e.Debug = 8] = "Debug",
843            e[e.Assert = 16] = "Assert",
844            e[e.All = 4294967295] = "All"
845        }(e || (e = {}));
846        class s {
847            constructor(e) {
848                if (this.translationUrl = e,
849                null == e || 0 === e.length)
850                    throw new Error("The URL can not be empty")
851            }
852            asyncFetchHelper(e, t, n, s, r) {
853                if (null == t || 0 === t.length)
854                    return Promise.reject(new Ye("toLang cannot be null or empty"));
855                if (null == n)
856                    return Promise.reject(new Ye("Must specify an array of text items to translate"));
857                const o = {
858                    from: e || "",
859                    to: t
860                }
861                  , a = et();
862                let l;
863                void 0 !== a && (o.isEnterpriseClient = "true" === a ? "true" : "false");
864                let u = 0;
865                for (l = 0; l < n.length; ++l)
866                    u += n[l].length;
867                return s({
868                    charactersToTranslateCount: u,
869                    isRetry: r
870                }),
871                h = Ge.POST,
872                d = this.translationUrl,
873                c = {
874                    query: o,
875                    contentType: "application/json",
876                    body: JSON.stringify(n),
877                    parser(t) {
878                        const n = function(e, t) {
879                            let n;
880                            try {
881                                n = JSON.parse(e.responseText)
882                            } catch (t) {
883                                throw new Ye(e.responseText)
884                            }
885                            if (ze(n) !== t)
886                                throw new Ye($e(n));
887                            return n
888                        }(t, "array")
889                          , s = [];
890                        for (let t = 0; n.length && t < n.length; t++) {
891                            const r = n[t];
892                            s.push({
893                                From: e || r.detectedLanguage?.language,
894                                TranslatedText: r.translations[0].text
895                            })
896                        }
897                        return s
898                    }
899                },
900                c = c || {},
901                null == h || null == d ? Promise.reject(new Ye("HTTP method or URL are not set")) : null != c.timeoutInMs && c.timeoutInMs < 0 ? Promise.reject(new Ye("Cannot have a negative timeout. Set to 0 to have no timeout")) : new Promise((function(e, t) {
902                    const n = new XMLHttpRequest;
903                    !function(e, t, n, s) {
904                        if (s.query) {
905                            const e = function(e) {
906                                let t = ""
907                                  , n = 0;
908                                if (e)
909                                    for (const s in e)
910                                        n++ && (t += "&"),
911                                        t += encodeURIComponent(s),
912                                        null != e[s] && (t += "=" + encodeURIComponent(e[s]));
913                                return t
914                            }(s.query);
915                            e.length > 0 && (t += (t.indexOf("?") < 0 ? "?" : "&") + e)
916                        }
917                        if (s.timeoutInMs && "number" === ze(s.timeoutInMs) && (e.timeout = s.timeoutInMs),
918                        e.open(Ge[n], t, !0),
919                        s.headers)
920                            for (const t in s.headers)
921                                e.setRequestHeader(t, s.headers[t]);
922                        s.contentType && e.setRequestHeader("Content-Type", s.c
922ontentType)
923                    }(n, d, h, c);
924                    let s = null;
925                    h != Ge.GET && h != Ge.HEAD && (s = c.body),
926                    n.send(s),
927                    n.onload = function() {
928                        if (n.status >= 200 && n.status < 300) {
929                            let s = n.response;
930                            if (c.parser)
931                                try {
932                                    s = c.parser(n)
933                                } catch (e) {
934                                    return i.debug(e),
935                                    void t(e)
936                                }
937                            e(s)
938                        } else
939                            t(new Ye(n.statusText,n.status,n))
940                    }
941                    ,
942                    n.onerror = function() {
943                        const e = n.statusText || "Failed to send the request";
944                        t(new Ye(e,n.status,n))
945                    }
946                    ,
947                    n.ontimeout = function() {
948                        t(new Ye("Timed out",-1,n))
949                    }
950                }
951                ));
952                var h, d, c
953            }
954            translateAsync(e, t, n, r) {
955                return this.translateAsyncHelper(e, t, n, s.NETWORK_ATTEMPTS, r, !1)
956            }
957            translateAsyncHelper(e, t, n, s, r, i) {
958                return this.asyncFetchHelper(e, t, n, r, i).then((e => e)).catch((i => 1 === s || 0 !== i.status ? Promise.reject(i) : this.translateAsyncHelper(e, t, n, s - 1, r, !0)))
959            }
960        }
961        s.NETWORK_ATTEMPTS = 5,
962        s.TEXT_CONTENT = "text/plain",
963        s.XML_CONTENT = "text/xml",
964        s.HTML_CONTENT = "text/html";
965        class r {
966            translateAsync(e, t, n, s) {
967                if (null == t || 0 === t.length)
968                    return Promise.reject(new Ye("toLang cannot be null or empty"));
969                if (null == n)
970                    return Promise.reject(new Ye("Must specify an array of text items to translate"));
971                let r = 0;
972                n.forEach((e => {
973                    r += e.length
974                }
975                )),
976                s({
977                    charactersToTranslateCount: r,
978                    isRetry: !1
979                });
980                const o = [];
981                for (const s of n)
982                    if (window.mockApiMap[s] && window.mockApiMap[s][t]) {
983                        const e = window.mockApiMap[s][t];
984                        o.push({
985                            TranslatedText: e,
986                            From: window.mockApiMap[s].detectedLang
987                        })
988                    } else {
989                        const n = et();
990                        let r = "Could not translate: " + s + " from " + e + " to " + t;
991                        void 0 !== n && (r += "true" === n ? " for Enterprise client." : " for Consumer client."),
992                        i.error(r),
993                        o.push({
994                            From: e,
995                            TranslatedText: ""
996                        })
997                    }
998                return Promise.resolve(o)
999            }
1000        }
1001        const i = {
1002            info(...t) {
1003                o.logLevel & e.Info && console.info(...t)
1004            },
1005            warning(...t) {
1006                o.logLevel & e.Warning && console.warn(...t)
1007            },
1008            error(...t) {
1009                o.logLevel & e.Error && console.error(...t)
1010            },
1011            assert(t, ...n) {
1012                o.logLevel & e.Debug && (n.unshift(t),
1013                console.assert(t, ...n))
1014            },
1015            debug(...t) {
1016                o.logLevel & e.Debug && console.debug(...t)
1017            }
1018        }
1019          , o = {
1020            logLevel: e.Error,
1021            debug: !1
1022        }
1023          , a = {
1024            translationStartTime: 0,
1025            requestsInitiated: !1
1026        };
1027        let l;
1028        function u(e) {
1029            l = e
1030        }
1031        var h;
1032        function d(e) {
1033            switch (e) {
1034            case h.AzureAPIV3:
1035                return i.debug("Using Translate V3 APIs"),
1036                new s("https://api.cognitive.microsofttranslator.com/translate");
1037            case h.TranslateTestAPI:
1038                return i.debug("Using Translate Test Client"),
1039                new r;
1040            case h.WebXtServerTranslateAPI:
1041                return i.debug("Using WebXt Server Translate API"),
1042                new s("https://edge.microsoft.com/translate/translatetext");
1043            default:
1044                return void i.debug("Incorrect translate version passed from CPP !")
1045            }
1046        }
1047        let c;
1048        function m(e) {
1049            return Object.freeze(new Map(Object.entries(e)))
1050        }
1051        function f(e) {
1052            return Object.freeze(e)
1053        }
1054        !function(e) {
1055            e[e.BingAPIV2 = 1] = "BingAPIV2",
1056            e[e.AzureAPIV3 = 2] = "AzureAPIV3",
1057            e[e.EdgeTranslateAPI = 3] = "EdgeTranslateAPI",
1058            e[e.TranslateTestAPI = 4] = "TranslateTestAPI",
1059            e[e.WebXtServerTranslateAPI = 5] = "WebXtServerTranslateAPI"
1060        }(h || (h = {})),
1061        c = d(Number("$$VERSIONTOUSE")) ?? d(h.WebXtServerTranslateAPI);
1062        const g = m({
1063            head: 1,
1064            script: 1,
1065            style: 1,
1066            code: 1,
1067            samp: 1,
1068            var: 1,
1069            kbd: 1,
1070            pre: 1,
1071            object: 1,
1072            address: 1,
1073            noscript: 1,
1074            embed: 1,
1075            map: 1
1076        })
1077          , p = m({
1078            textarea: 1
1079        });
1080        var T;
1081        !function(e) {
1082            e[e.Inherit = 0] = "Inherit",
1083            e[e.On = 1] = "On",
1084            e[e.Off = 2] = "Off"
1085        }(T || (T = {}));
1086        const b = Object.assign(m({
1087            hr: 1,
1088            input: 1,
1089            title: 1,
1090            br: 1,
1091            frame: 1,
1092            iframe: 1,
1093            textarea: 1
1094        }), g)
1095          , E = () => !0
1096          , N = m({
1097            INPUT: [{
1098                predicate: e => ["button", "submit", "reset"].includes(e?.type),
1099                attributes: ["value"]
1100            }, {
1101                predicate: e => ["image"].includes(e?.type),
1102                attributes: ["alt"]
1103            }, {
1104                predicate: E,
1105                attributes: ["placeholder"]
1106            }],
1107            TEXTAREA: [{
1108                predicate: E,
1109                attributes: ["placeholder"]
1110            }],
1111            IMG: [{
1112                predicate: E,
1113                attributes: ["alt"]
1114            }],
1115            AREA: [{
1116                predicate: E,
1117                attributes: ["alt"]
1118            }],
1119            OPTION: [{
1120                predicate: E,
1121                attributes: ["label"]
1122            }],
1123            OPTGROUP: [{
1124                predicate: E,
1125                attributes: ["label"]
1126            }],
1127            TRACK: [{
1128                predicate: E,
1129                attributes: ["label"]
1130            }]
1131        })
1132          , _ = m({
1133            true: T.On,
1134            yes: T.On,
1135            false: T.Off,
1136            no: T.Off,
1137            skip: T.Off
1138        })
1139          , y = m({
1140            translate: _
1141        })
1142          , A = m({
1143            skiptranslate: T.Off,
1144            notranslate: T.Off
1145        })
1146          , C = "_mstHidden"
1147          , v = "_mstVisible"
1148          , S = f(["_mstTextHash", "_msthash", C, v, ...new Set(Object.values(N).flat().map((e => e.attributes)).flat().map((e => "_mst" + e)))])
1149          , w = f(["style", "class"]);
1150        var O;
1151        function x(e, t) {
1152            if (e.nodeType != Node.ELEMENT_NODE)
1153                return "";
1154            const n = window.getComputedStyle(e);
1155            return n && n[t = t.replace(/([A-Z])/g, "-$1").toLowerCase()] || ""
1156        }
1157        function k(e) {
1158            return e ? encodeURIComponent(e).replace(/%\w\w/g, " ").length : 0
1159        }
1160        function M(e, t) {
1161            return e.nodeType === Node.ELEMENT_NODE ? e.getAttribute(t) || e[t] : null
1162        }
1163        function D(e, ...t) {
1164            Promise.resolve().then(( () => e(...t)))
1165        }
1166        !function(e) {
1167            e[e.Auto = 0] = "Auto",
1168            e[e.Scrolled = 1] = "Scrolled",
1169            e[e.Mutation = 2] = "Mutation",
1170            e[e.VisibilityChange = 3] = "VisibilityChange"
1171        }(O || (O = {}));
1172        const L = window;
1173        let R, I;
1174        function P(e) {
1175            V(),
1176            R = new AbortController,
1177            L.addEventListener("scroll", e, {
1178                capture: !0,
1179                once: !0,
1180                signal: R.signal
1181            })
1182        }
1183        function V() {
1184            R?.abort(),
1185            R = void 0
1186        }
1187        function F() {
1188            I?.abort(),
1189            I = void 0
1190        }
1191        function H(e) {
1192            try {
1193                let t = 0
1194                  , n = e.contentWindow;
1195                for (; n && n != top; )
1196                    t++,
1197                    n = n.parent;
1198                return t
1199            } catch (e) {
1200                return i.debug(e),
1201                11
1202            }
1203        }
1204        function j(e) {
1205            try {
1206                return e.contentWindow && e.contentWindow.document && e.contentWindow.document.documentElement && e.contentWindow.document.body && H(e) <= 10
1207            } catch (e) {}
1208            return !1
1209        }
1210        function B(e) {
1211            try {
1212                return e && e.contentWindow && e.contentWindow.document || !1
1213            } catch (e) {}
1214            return !1
1215        }
1216        const q = {
1217            ar: !0,
1218            fa: !0,
1219            he: !0,
1220            ku: !0,
1221            ps: !0,
1222            ur: !0
1223        };
1224        class J {
1225            constructor(e, t) {
1226                this.name = t,
1227                this.code = J.normalizeCode(e)
1228            }
1229            toString() {
1230                return `${this.code}: ${this.name}`
1231            }
1232            static isRtl(e) {
1233                return (e = J.normalizeCode(e)).toLowerCase()in q
1234            }
1235            static equals(e, t) {
1236                return null != e && null != t && e.code === t.code
1237            }
1238            static normalizeCode(e) {
1239                let t = ""
1240                  , n = ""
1241                  , s = "";
1242                const r = e.split("-");
1243                t = r[0].toLowerCase();
1244                for (let e = 1; e < r.length && !s && !n; e++)
1245                    2 === r[e].length ? (n = r[e].toUpperCase(),
1246                    "zh" === t && "CN" === n ? s = "Hans" : "zh" == t && "TW" === n && (s = "Hant")) : 3 !== r[e].length || n ? 4 
1246!== r[e].length || n || (s = r[e][0].toUpperCase() + r[e].substring(1).toLowerCase()) : "CHS" === r[e].toUpperCase() ? s = "Hans" : "CHT" === r[e] && (s = "Hant");
1247                "nb" === t ? t = "no" : "und" === t && (t = "");
1248                let i = t;
1249                return s && (i += "-" + s),
1250                i
1251            }
1252        }
1253        const U = /[^\S\r\n]+/g
1254          , z = /&/g
1255          , W = /</g
1256          , X = />/g
1257          , Q = /<\s*(\/)?\s*(\w+)\s*(\d*)\s*>/g
1258          , $ = /&amp;/gi
1259          , G = /&lt;/gi
1260          , K = /&gt;/gi
1261          , Y = /<\/?\w+>/g
1262          , Z = /<(?!\/?b\d+>)[^>]*>/g
1263          , ee = new Set;
1264        function te(e) {
1265            if (!e || "string" != typeof e.nodeName)
1266                return [];
1267            const t = new Set
1268              , n = N.get(e.nodeName);
1269            for (let s = 0; n && s < n.length; s++)
1270                if (!0 === n[s].predicate(e))
1271                    for (let r = 0; r < n[s].attributes.length; r++) {
1272                        const i = e.getAttribute(n[s].attributes[r]);
1273                        i && i.length > 0 && i.trim().length > 0 && t.add(n[s].attributes[r])
1274                    }
1275            if (e.hasAttribute("aria-label")) {
1276                const n = e.getAttribute("aria-label");
1277                n && n.length > 0 && t.add("aria-label")
1278            }
1279            return [...t]
1280        }
1281        function ne(e, t=!1) {
1282            if (e.nodeType == Node.TEXT_NODE || e.nodeType == Node.DOCUMENT_FRAGMENT_NODE)
1283                return !0;
1284            if (e.nodeType != Node.ELEMENT_NODE)
1285                return !1;
1286            const n = e;
1287            return !!(j(n) || n.hasChildNodes() || n.nodeName in N) && (!g.has(n.nodeName.toLowerCase()) && (!t && n.getAttribute("contenteditable") && n.isContentEditable ? (ee.add(n),
1288            !1) : se(n) != T.Off && (!!j(n) || function(e, t) {
1289                if (!e || !e.children && !e.shadowRoot)
1290                    return !1;
1291                const n = [0];
1292                for (; n.length > 0 && e; ) {
1293                    if (n.length >= 5)
1294                        return !0;
1295                    const t = n.length - 1;
1296                    if (e.shadowRoot)
1297                        return !0;
1298                    if (!e.children || n[t] >= e.children.length) {
1299                        if (n.pop(),
1300                        0 === n.length)
1301                            break;
1302                        e = e.parentNode
1303                    } else {
1304                        if (j(e.children[n[t]]))
1305                            return !0;
1306                        if (te(e.children[n[t]]).length > 0)
1307                            return !0;
1308                        e = e.children[n[t]],
1309                        n[t] = n[t] + 1,
1310                        n.push(0)
1311                    }
1312                }
1313                const s = e?.textContent;
1314                return !!s && ie(s)
1315            }(n))))
1316        }
1317        function se(e) {
1318            let t = T.Inherit;
1319            if (!e || e.nodeType != Node.ELEMENT_NODE)
1320                return t;
1321            for (const n of y.keys()) {
1322                const s = M(e, n);
1323                if (null != s) {
1324                    const e = y.get(n);
1325                    if (t = e && e.get(s.toString().toLowerCase()) || t,
1326                    t == T.Off)
1327                        return t
1328                }
1329            }
1330            const n = M(e, "class") || M(e, "className");
1331            if (null != n) {
1332                const e = n.toString().split(" ");
1333                for (let n = 0; n < e.length; n++) {
1334                    const s = e[n];
1335                    if (t = A.get(s.toLowerCase()) || t,
1336                    t == T.Off)
1337                        return t
1338                }
1339            }
1340            return t
1341        }
1342        function re(e) {
1343            if (!e)
1344                return !1;
1345            for (const t of ee)
1346                if (t.contains(e))
1347                    return !0;
1348            return !1
1349        }
1350        function ie(e) {
1351            return new RegExp("[a-zA-Z0-9\\?!" + String.fromCodePoint(191) + String.fromCodePoint(161) + ".,:\\|" + String.fromCodePoint(192) + "-" + String.fromCodePoint(65535) + "]").test(e)
1352        }
1353        function oe(e) {
1354            return e.nodeType == Node.TEXT_NODE || !(!e.nodeName || !b.has(e.nodeName.toLowerCase())) || e.nodeType == Node.ELEMENT_NODE && !e._mstChunk && "inline" == x(e, "display").toLowerCase() && "static" == x(e, "position").toLowerCase() && ![...e.childNodes].some((e => !oe(e)))
1355        }
1356        function ae(e, t, n=1) {
1357            if (n > 9)
1358                return "";
1359            const s = [];
1360            let r = 0;
1361            for (let i = 0; i < e.childNodes.length; ++i)
1362                switch (e.childNodes[i].nodeType) {
1363                case Node.ELEMENT_NODE:
1364                    {
1365                        const o = t + n.toString() + r.toString()
1366                          , a = se(e.childNodes[i])
1367                          , l = e.childNodes[i].previousSibling
1368                          , u = e.childNodes[i].nextSibling;
1369                        a == T.Off && l && l.nodeType == Node.ELEMENT_NODE ? l._mstSkipNext = r : a == T.Off && u && u.nodeType == Node.ELEMENT_NODE ? u._mstSkipPrev = r : (s.push("<"),
1370                        s.push(o),
1371                        s.push(">"),
1372                        a != T.Off && s.push(ae(e.childNodes[i], t, n + 1)),
1373                        s.push("</"),
1374                        s.push(o),
1375                        s.push(">")),
1376                        ++r;
1377                        break
1378                    }
1379                case Node.TEXT_NODE:
1380                    {
1381                        const t = e.childNodes[i].nodeValue;
1382                        t && s.push(le(t));
1383                        break
1384                    }
1385                }
1386            return s.join("")
1387        }
1388        function le(e) {
1389            if (!e)
1390                return e;
1391            const t = e.replace(z, "&amp;").replace(W, "&lt;").replace(X, "&gt;").replace(U, " ")
1392              , n = /^\s/.test(t)
1393              , s = /\s$/.test(t);
1394            return (n ? " " : "") + t.trim() + (s ? " " : "")
1395        }
1396        function ue(e) {
1397            return e?.replace(Z, (function(e) {
1398                return e.replace(z, "&amp;").replace(W, "&lt;").replace(X, "&gt;")
1399            }
1400            ))
1401        }
1402        function he(e) {
1403            if (e) {
1404                if (e.shadowRoot)
1405                    for (const t of e.shadowRoot.children)
1406                        he(t);
1407                if ("frame" == e.nodeName.toLowerCase() || "iframe" == e.nodeName.toLowerCase()) {
1408                    const t = e.contentWindow?.document.documentElement;
1409                    try {
1410                        t && he(t)
1411                    } catch (e) {}
1412                } else {
1413                    if (e._mstStyle)
1414                        for (const t in e._mstStyle)
1415                            try {
1416                                e.style[t] = e._mstStyle[t]
1417                            } catch (e) {
1418                                i.error(e)
1419                            }
1420                    if (e._mstStyle = null,
1421                    e._mstSrcAttribute)
1422                        for (const t in e._mstSrcAttribute)
1423                            de(e, t, e._mstSrcAttribute[t]);
1424                    if (S.forEach((t => e.removeAttribute?.(t))),
1425                    e._mstSrcHtml && e._mstSrcHtml.childNodes.length > 0) {
1426                        for (; e.childNodes.length > 0 && e.lastChild; )
1427                            e.removeChild(e.lastChild);
1428                        for (; e._mstSrcHtml.childNodes.length > 0; )
1429                            e.appendChild(e._mstSrcHtml.childNodes[0]);
1430                        e._mstSrcHtml = void 0
1431                    } else
1432                        for (let t = 0; t < e.childNodes.length; ++t)
1433                            try {
1434                                const n = e.childNodes[t];
1435                                n.nodeType == Node.ELEMENT_NODE && he(n)
1436                            } catch (e) {}
1437                }
1438            }
1439        }
1440        function de(e, t, n) {
1441            switch (t) {
1442            case "aria-label":
1443                e.setAttribute("aria-label", n);
1444                break;
1445            case "value":
1446                e.setAttribute("value", n);
1447                break;
1448            case "alt":
1449                e.setAttribute("alt", n);
1450                break;
1451            case "placeholder":
1452                e.setAttribute("placeholder", n);
1453                break;
1454            case "label":
1455                e.setAttribute("label", n);
1456                break;
1457            case "_mstvalue":
1458                e.setAttribute("_mstvalue", n);
1459                break;
1460            case "_mstalt":
1461                e.setAttribute("_mstalt", n);
1462                break;
1463            case "_mstplaceholder":
1464                e.setAttribute("_mstplaceholder", n);
1465                break;
1466            case "_mstaria-label":
1467                e.setAttribute("_mstaria-label", n);
1468                break;
1469            case "_mstlabel":
1470                e.setAttribute("_mstlabel", n)
1471            }
1472        }
1473        function ce(e, t, n=1) {
1474            if (!(n > 9))
1475                for (const s of e.childNodes)
1476                    s.nodeType == Node.ELEMENT_NODE && (t(s),
1477                    ce(s, t, n + 1))
1478        }
1479        let me = 0;
1480        const fe = /[\s\xA0]/g;
1481        function ge(e) {
1482            let t = 0;
1483            if (e) {
1484                e = e.replace(fe, "");
1485                for (let n = 0; n < e.length; ++n)
1486                    t += 13 * e.charCodeAt(n) * (n + 7)
1487            }
1488            return t.toString()
1489        }
1490        function pe(e) {
1491            return e.getAttribute("_mstHash")
1492        }
1493        class Te {
1494            constructor(e, t, n, s, r, i, o=!1) {
1495                this._sFrom = e,
1496                this._sTo = t,
1497                this._aTextArray = n,
1498                this._oJobData = s,
1499                this._fOnSuccess = r,
1500                this._fOnError = i,
1501                this._bBuffered = o
1502            }
1503            isBufferedRequest() {
1504                return this._bBuffered
1505            }
1506            onSuccess(e) {
1507                this._fOnSuccess && this._fOnSuccess(this._oJobData, e)
1508            }
1509            onError(e) {
1510                this._fOnError && this._fOnError(this._oJobData, e)
1511            }
1512        }
1513        const be = new Map;
1514        let Ee = null
1515          , Ne = 0;
1516        function _e(e, t) {
1517            for (be.set(e, t),
1518            Ne += e.length + t.TranslatedText.length; !(be.size <= 1e3 && Ne <= 4e5); ) {
1519                const e = be.keys().next().value;
1520                Ne -= e.length + be.get(e)?.TranslatedText.length,
1521                be.delete(e)
1522            }
1523        }
1524        function ye(e) {
1525            return (null == Ee || Ee != e) && (Ee = e,
1526            be.clear(),
1527            !0)
1528        }
1529        const Ae = 3500
1530          , Ce = 4e3;
1531        let ve = []
1532          , Se = 0;
1533        const we = new Map;
1534        let Oe;
1535        const xe = new class {
1536            constructor(e, t, n) {
1537                this._iMaxParallelJobs = e,
1538                this._iMaxChunkSize = t,
1539                this._fOnTranslateApiCalled = n,
1540                this._aJobs = [],
1541                this._iActiveJobs = 0,
1542                this._iTotalTriggeredJobs = 0
1543            }
1544            purgeQueue() {
1545                this._aJobs = [],
1546                i.debug("Purging jobQueue. Having", this._iActiveJobs, "active jobs currently.")
1547            }
1548            addJob(e) {
1549                this._aJobs.push(e),
1550                i.debug("Adding job to jobQueue. Active Jobs: ", this._iActiveJobs, ", Remaining Jobs: ", this._aJobs.length),
1551                this.startProcessing()
1552            }
1553            startProcessing() {
1554                if (this._aJobs.length > 0 && this._iActiveJobs < this._iMaxParallelJobs) {
1555                    const e = this._aJobs.shift();
1556                    if (e.isBufferedRequest())
1557                        return void this.processBufferedRequest(e);
1558                    c.translateAsync(e._sFrom, e._sTo, e._aTextArray, this._fOnTranslateApiCalled).then((t => {
1559                        this._iActiveJobs -= 1,
1560                        e.onSuccess(t),
1561                        this.startProcessing()
1562                    }
1563                    ), (t => {
1564                        this._iActiveJobs -= 1,
1565                        e.onError(t),
1566                        this.startProcessing()
1567                    }
1568                    )),
1569                    this._iActiveJobs += 1,
1570                    this._iTotalTriggeredJobs += 1,
1571                    this.optimizeParallelRequestsAmount()
1572                }
1573            }
1574            processBufferedRequest(e) {
1575                const t = function(e, t) {
1576                    const n = [];
1577                    for (; e.length > t; )
1578                        n.push(e.substr(0, t)),
1579                        e = e.substr(t);
1580                    return 0 == e.length && 0 != n.length || n.push(e),
1581                    n
1582                }(e._aTextArray[0], this._iMaxChunkSize)
1583                  , n = {};
1584                let s = !1;
1585                t.forEach(( (r, i) => {
1586                    const o = new Te(e._sFrom,e._sTo,[r],i,( (r, i) => {
1587                        if (n[r] = i,
1588                        !s && Object.keys(n).length == t.length) {
1589                            const s = [{
1590                                From: "",
1591                                TranslatedText: ""
1592                            }];
1593                            for (let e = 0; e < t.length; e++) {
1594                                const t = n[e][0];
1595                                s[0].From = t.From,
1596                                s[0].TranslatedText += t.TranslatedText
1597                            }
1598                            e.onSuccess(s)
1599                        }
1600                    }
1601                    ),( (t, n) => {
1602                        s = !0,
1603                        e.onError(n),
1604                        this.startProcessing()
1605                    }
1606                    ));
1607                    this.addJob(o)
1608                }
1609                ))
1610            }
1611            numOfTotalJobsInQueue() {
1612                return this._aJobs.length + this._iActiveJobs
1613            }
1614            optimizeParallelRequestsAmount() {
1615                this._iTotalTriggeredJobs > 33 ? this._iMaxParallelJobs = 2 : this._iMaxParallelJobs > 3 && this._iTotalTriggeredJobs % 10 == 0 && (this._iMaxParallelJobs = this._iMaxParallelJobs - this._iMaxParallelJobs / 3)
1616            }
1617        }
1618        (4,Ae,( (...e) => Oe && Oe(...e)));
1619        function ke(e, t) {
1620            for (const n of e)
1621                we.get(n.originalText)?.reject(t),
1622                we.delete(n.originalText)
1623        }
1624        function Me(e, t) {
1625            t.TranslatedText = ue(t.TranslatedText),
1626            _e(e.originalText, lt(t));
1627            const n = we.get(e.originalText);
1628            n ? n.resolve(t) : i.error("Promise does not exist for the provided text."),
1629            we.delete(e.originalText)
1630        }
1631        function De() {
1632            return xe.numOfTotalJobsInQueue()
1633        }
1634        class Le {
1635            constructor(e=[]) {
1636                this.pop = () => this.items.pop(),
1637                this.shift = () => this.items.shift(),
1638                this.push = e => this.items.push(e),
1639                this.items = [...e]
1640            }
1641            get first() {
1642                return 0 == this.length ? void 0 : this.items[0]
1643            }
1644            get top() {
1645                return 0 == this.length ? void 0 : this.items[this.length - 1]
1646            }
1647            get length() {
1648                return this.items.length
1649            }
1650            *[Symbol.iterator]() {
1651                for (const e of this.items)
1652                    yield e
1653            }
1654            get(e) {
1655                return this.length <= e ? void 0 : this.items[e]
1656            }
1657            clear() {
1658                this.items.length = 0
1659            }
1660            isEmpty() {
1661                return 0 == this.items.length
1662            }
1663        }
1664        const Re = Object.freeze({
1665            outsideView: 1,
1666            insideView: 2,
1667            hidden: 4,
1668            unknown: 64
1669        });
1670        function Ie(e) {
1671            try {
1672                const t = (e = function(e) {
1673                    return e && e.nodeType == Node.ELEMENT_NODE && ["option", "optgroup"].includes(e.nodeName.toLowerCase()) && (e = e.closest("select")),
1674                    e
1675                }(e)).nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
1676                let n;
1677                if (!["title"].includes(e.nodeName.toLowerCase()) && t && t.nodeType === Node.ELEMENT_NODE && (n = t.getBoundingClientRect())) {
1678                    if (0 === n.height || 0 === n.width)
1679                        return Re.hidden;
1680                    const e = window.innerHeight || document.documentElement.clientHeight;
1681                    return n.top >= 0 && n.top <= e + 1e3 || n.bottom >= 0 && n.bottom <= e + 1e3 ? Re.insideView : Re.outsideView
1682                }
1683                return Re.insideView
1684            } catch (e) {
1685                return Re.insideView
1686            }
1687        }
1688        function Pe(e) {
1689            return Ie(e) == Re.insideView
1690        }
1691        function Ve(e, t, n) {
1692            e & Re.unknown || (n.items[n.length - 1]++,
1693            e & Re.hidden && t.items[t.length - 1]++)
1694        }
1695        function Fe(e, t, n) {
1696            t.top && t.top > 0 && t.top === n.top && e.length > 0 && e.top?.nodeType == Node.ELEMENT_NODE && e.top.setAttribute(C, t.top.toString());
1697            let s = t.pop();
1698            t.length > 0 && (t.items[t.length - 1] += s),
1699            s = n.pop(),
1700            n.length > 0 && (n.items[n.length - 1] += s)
1701        }
1702        function He(e, t, n, s) {
1703            const r = new Le;
1704            r.push({
1705                node: e,
1706                depth: 0
1707            });
1708            let o = 0;
1709            for (; !r.isEmpty(); ) {
1710                const e = r.pop();
1711                if (e.node.hasAttribute(v))
1712                    continue;
1713                e.node.setAttribute(v, e.depth.toString()),
1714                e.node.removeAttribute(C);
1715                const a = s.getElementChunk(e.node);
1716                if (s.removeElementChunk(e.node),
1717                a) {
1718                    for (const n of a.getAllAttributes())
1719                        t(e.node, n, a.getAttribute(n));
1720                    o++
1721                }
1722                if (a && a.elementText)
1723                    n(e.node, a.elementText),
1724                    o++;
1725                else {
1726                    if (e.node.shadowRoot)
1727                        for (const t of e.node.shadowRoot.children)
1728                            r.push({
1729                                node: t,
1730                                depth: e.depth + 1
1731                            });
1732                    for (let t = 0; t < e.node.children.length; t++) {
1733                        const n = e.depth + 1;
1734                        n > 5 && i.debug("Element contains children deeper than threshold while marking visible. Depth: " + n),
1735                        r.push({
1736                            node: e.node.children[t],
1737                            depth: n
1738                        })
1739                    }
1740                }
1741            }
1742            return o
1743        }
1744        var je;
1745        !function(e) {
1746            e[e.ELEMENT_REQUEST = 0] = "ELEMENT_REQUEST",
1747            e[e.ATTRIBUTE_REQUEST = 1] = "ATTRIBUTE_REQUEST"
1748        }(je || (je = {}));
1749        class Be {
1750            constructor(e) {
1751                this.element = e,
1752                this.text = null,
1753                this.attributes = new Map,
1754                this.numBytes = 0
1755            }
1756            getAllAttributes() {
1757                return this.attributes.keys()
1758            }
1759            get elementText() {
1760                return this.text
1761            }
1762            set elementText(e) {
1763                this.numBytes -= k(this.text),
1764                this.text = e,
1765                this.numBytes += k(e)
1766            }
1767            addAttribute(e, t) {
1768                this.numBytes -= k(this.getAttribute(e)),
1769                this.attributes.set(e, t),
1770                this.numBytes += k(t)
1771            }
1772            removeAttribute(e) {
1773                this.numBytes -= k(this.getAttribute(e)),
1774                this.attributes.delete(e)
1775            }
1776            getAttribute(e) {
1777                return this.attributes.get(e)
1778            }
1779            getStringBytes() {
1780                return this.numBytes
1781            }
1782            getNextAttribute() {
1783                const e = this.getAllAttributes().next();
1784                return e.done ? null : e.value
1785            }
1786            removeNextAttribute() {
1787                const e = this.getNextAttribute();
1788                e && this.removeAttribute(e)
1789            }
1790            isEmpty() {
1791                return !this.text && 0 == this.attributes.size
1792            }
1793            removeElementText() {
1794                this.numBytes -= k(this.text),
1795                this.text = null
1796            }
1797        }
1798        class qe {
1799            constructor() {
1800                this.elementChunkMap = new Map
1801            }
1802            ensureElementChunk(e) {
1803                const t = function(e) {
1804                    let t = pe(e);
1805                    return null == t && (t = (me++).toString(),
1806                    e.setAttribute("_mstHash", t)),
1807                    t
1808                }(e);
1809                let n = this.elementChunkMap.get(t);
1810                return null == n && (n = new Be(e),
1811                this.elementChunkMap.set(t, n)),
1812                n
1813            }
1814            addElementText(e, t) {
1815                this.ensureElementChunk(e).elementText = t
1816            }
1817            addElementAttributes(e, t, n) {
1818                this.ensureElementChunk(e).addAttribute(t, n)
1819            }
1820            removeElementChunk(e) {
1821                const t = pe(e);
1822                t && this.elementChunkMap.delete(t)
1823            }
1824            getElementChunk(e) {
1825                let t;
1826                const n = pe(e);
1827                return n && (t = this.elementChunkMap.get(n)),
1828                t
1829            }
1830            getNextElementChunk() {
1831                const e = this.getAllElementChunks().next();
1832                return e.done ? null : e.value
1833            }
1834            getAllElementChunks() {
1835                return this.elementChunkMap.values()
1836            }
1837            get size() {
1838                return this.elementChunkMap.size
1839            }
1840        }
1841        class Je {
1842            constructor(e, t, n, s, r, o, a, l, u) {
1843                var h, d, c, m;
1844                this._allDetectedLanguages = {},
1845                this.bTranslateSelectedTextOnly = !1,
1846                this.bTranslateFullPageInOneGo = !1,
1847                this.iScrolledElementsTranslated = 0,
1848                this.iHiddenElementsTranslated = 0,
1849                this.bOnIntermediateCompleteCalled = !1,
1850                this.bAutoTraversalCompleted = !1,
1851                this._oMObservers = [],
1852                this.oTranslateMutationTask = null,
1853                this._maxIframeDepthSupported = 10,
1854                this._maxTraversalIterations = 1e4,
1855                this._aTranslatedNodes = [],
1856                this.bFlushedStartTerminalNode = !1,
1857                this.isTraverseDOMActive = !1,
1858                this.bSentTranslationComplete = !1,
1859                this.bSentTranslationError = !1,
1860                this._iVisibleTxtLength = 0,
1861                this._bAborted = !1,
1862                this.outsideElementChunks = new qe,
1863                this.visibleElementChunks = new qe,
1864                this.hiddenElementChunks = new qe,
1865                this._bScrollingStopped = !1,
1866                this._bTxtChunksFlushed = !1,
1867                this.fontMutation = new Map,
1868                this.translateMutation = new Map,
1869                this.attributeMutation = new Map,
1870                this.traverseDOMRecursive = (e, t, n) => {
1871                    const s = e.domStack
1872                      , r = e.properties
1873                      , i = e.offsetFromStart
1874                      , o = e.hidden
1875                      , a = e.elements
1876                      , l = e => {
1877                        Ve(this.flushChunk([e], !0), o, a)
1878                    }
1879                    ;
1880                    let u = 0;
1881                    for (; u < this._maxTraversalIterations && s.length > 0 && (this._iVisibleTxtLength < Ae || n.length); ) {
1882                        s.top.shadowRoot && this.traverseDOM(this.getTraversalStack(s.top.shadowRoot), t);
1883                        const h = ne(s.top, this.bTranslateSelectedTextOnly);
1884                        if (h || se(s.top) == T.Off && ee.add(s.top),
1885                        j(s.top) && h) {
1886                            const e = s.top;
1887                            s.push(e.contentWindow.document.body),
1888                            r.push({
1889                                isRoot: !1,
1890                                traverseTerminalOnly: r.top.traverseTerminalOnly
1891                            }),
1892                            i.push(0),
1893                            this.flush(n, o, a),
1894                            o.push(0),
1895                            a.push(0)
1896                        } else if (!s.top.firstChild || !r.top.isRoot && r.top.traverseTerminalOnly || oe(s.top) || !h) {
1897                            for (; s.length && s.top && r.top && !0 !== r.top.isRoot && !s.top.nextSibling && (1 != s.top.nodeType || !s.top.nextElementSibling); )
1898                                s.pop(),
1899                                r.pop(),
1900                                i.pop(),
1901                                this.flush(n, o, a),
1902                                Fe(s, o, a);
1903                            !1 === r.top.isRoot ? (s.push(s.pop().nextSibling),
1904                            oe(s.top) ? ce(s.top, l) : l(s.top)) : (s.pop(),
1905                            r.pop(),
1906                            i.pop(),
1907                            this.flush(n, o, a),
1908                            Fe(s, o, a))
1909                        } else
1910                            s.push(s.top.firstChild),
1911                            r.push({
1912                                isRoot: !1,
1913                                traverseTerminalOnly: r.top.traverseTerminalOnly
1914                            }),
1915                            i.push(0),
1916                            this.flush(n, o, a),
1917                            o.push(0),
1918                            a.push(0),
1919                            oe(s.top) ? ce(s.top, l) : l(s.top);
1920                        if (s.length) {
1921                            const e = (s.top.nodeName || "").toLowerCase();
1922                            oe(s.top) && !g.has(e) && "iframe" != e && "frame" != e && (++i.items[i.length - 1],
1923                            n.push(s.top))
1924                        }
1925                        if (0 === n.length && !s.isEmpty() && B(s.top)) {
1926                            if (window.requestAnimationFrame(( () => {
1927                                D(this.traverseDOMRecursive, e, t, n)
1928                            }
1929                            )),
1930                            this._bScrollingStopped)
1931                                break;
1932                            return
1933                        }
1934                        u++
1935                    }
1936                    if (u != this._maxTraversalIterations)
1937                        if (this.isTranslationPaused() || this.migrateOutsideChunksToVisible(),
1938                        this.visibleElementChunks.size > 0 || this._bTxtChunksFlushed || this._bScrollingStopped)
1939                            this._bTxtChunksFlushed = !1,
1940                            this._bScrollingStopped = !1,
1941                            this.translate(e, t);
1942                        else {
1943                            if (this.bAutoTraversalCompleted = this.bAutoTraversalCompleted || t === O.Auto && 0 === s.length,
1944                            De() > 0)
1945                                return;
1946                            this.isTraverseDOMActive = !1,
1947                            this.bAutoTraversalCompleted && this.translationComplete()
1948                        }
1949                    else
1950                        this.traverseDOMRecursive(e, t, n)
1951                }
1952                ,
1953                this.traverseDOM = (e, t) => {
1954                    try {
1955                        const n = [];
1956                        this._eDomRoot && oe(this._eDomRoot) && !this.bFlushedStartTerminalNode && (this.bFlushedStartTerminalNode = !0,
1957                        this.flushChunk([this._eDomRoot])),
1958                        D(this.traverseDOMRecursive, e, t, n)
1959                    } catch (e) {
1960                        i.error("Unknown error in traverseDom.", e)
1961                    }
1962                }
1963                ,
1964                this._sFrom = t,
1965                this._sTo = n,
1966                this._eDomRoot = e,
1967                this._fComplete = s,
1968                this._fVisibleComplete = l,
1969                this._fTranslateCallbacks = u,
1970                this._fError = function(e) {
1971                    if ("function" == typeof r)
1972                        try {
1973                            r($e(e))
1974                        } catch (e) {
1975                            i.error("Encountered exception while calling error handler", e)
1976                        }
1977                }
1978                ,
1979                this.bTranslateSelectedTextOnly = !0 === o,
1980                this.bTranslateFullPageInOneGo = !0 === a,
1981                h = u.onTranslateApiCalled,
1982                Oe = h,
1983                this._oApplyStyle = (d = this._sFrom,
1984                c = this._sTo,
1985                J.isRtl(d) === J.isRtl(c) ? null : (m = c,
1986                J.isRtl(m) ? {
1987                    direction: "rtl",
1988                    textAlign: "right"
1989                } : {
1990                    direction: "ltr",
1991                    textAlign: "left"
1992                }))
1993            }
1994            getFromLanguage() {
1995                return this._sFrom
1996            }
1997            getToLanguage() {
1998                return this._sTo
1999            }
2000            translationComplete() {
2001                if (a.requestsInitiated && (i.info("Took " + (performance.now() - a.translationStartTime) + " ms to translate"),
2002                a.translationStartTime = performance.now(),
2003                a.requestsInitiated = !1),
2004                !this.bSentTranslationComplete) {
2005                    if (this.bSentTranslationComplete = !0,
2006                    this._eDomRoot && this.bTranslateSelectedTextOnly && this._aTranslatedNodes.length) {
2007                        !function(e, t) {
2008                            if (!e || !t || !t.length)
2009                                return;
2010                            const n = new at;
2011                            let s = 0;
2012                            for (n.push(0); s < t.length && n.length && e; ) {
2013                                const r = t.indexOf(e);
2014                                if (r >= 0) {
2015                                    const i = t[s];
2016                                    t[s] = t[r],
2017                                    t[r] = i,
2018                                    s++,
2019                                    e = e.parentNode,
2020                                    n.pop()
2021                                } else
2022                                    n.top < e.childNodes.length ? (e = e.childNodes[n.top],
2023                                    n.top++,
2024                                    n.push(0)) : (e = e.parentNode,
2025                                    n.pop())
2026                            }
2027                            for (; s < t.length; )
2028                                t.pop()
2029                        }(this._eDomRoot, this._aTranslatedNodes);
2030                        const e = this._eDomRoot.ownerDocument.createRange();
2031                        e.setStartBefore(this._aTranslatedNodes[0]),
2032                        e.setEndAfter(this._aTranslatedNodes[this._aTranslatedNodes.length - 1]);
2033                        const t = this._eDomRoot.ownerDocument.defaultView?.getSelection();
2034                        t?.removeAllRanges(),
2035                        t?.addRange(e)
2036                    }
2037                    this.bSentTranslationError || this.bOnIntermediateCompleteCalled || (this.bOnIntermediateCompleteCalled = !0,
2038                    this._fVisibleComplete(!0)),
2039                    this.bSentTranslationError || this._fComplete()
2040                }
2041            }
2042            getTraversalStack(e) {
2043                return e ? {
2044                    domStack: new Le([e]),
2045                    properties: new Le([{
2046                        isRoot: !0,
2047                        traverseTerminalOnly: !1
2048                    }]),
2049                    offsetFromStart: new Le([0]),
2050                    hidden: new Le([0]),
2051                    elements: new Le([0])
2052                } : {
2053                    domStack: new Le,
2054                    properties: new Le,
2055                    offsetFromStart: new Le,
2056                    hidden: new Le,
2057                    elements: new Le
2058                }
2059            }
2060            addVisibleElementText(e, t) {
2061                const n = this.visibleElementChunks.getElementChunk(e)?.getStringBytes() ?? 0;
2062                this.visibleElementChunks.addElementText(e, t);
2063                const s = this.visibleElementChunks.getElementChunk(e).getStringBytes();
2064                this._iVisibleTxtLength += s - n
2065            }
2066            addVisibleElementAttribute(e, t, n) {
2067                const s = this.visibleElementChunks.getElementChunk(e)?.getStringBytes() ?? 0;
2068                this.visibleElementChunks.addElementAttributes(e, t, n);
2069                const r = this.visibleElementChunks.getElementChunk(e).getStringBytes();
2070                this._iVisibleTxtLength += r - s
2071            }
2072            markNodesAsVisible(e) {
2073                return He(e, ( (e, t, n) => {
2074                    this.addVisibleElementAttribute(e, t, n)
2075                }
2076                ), ( (e, t) => {
2077                    this.addVisibleElementText(e, t)
2078                }
2079                ), this.hiddenElementChunks)
2080            }
2081            markNodesAsOutsideView(e) {
2082                return He(e, ( (e, t, n) => {
2083                    this.outsideElementChunks.addElementAttributes(e, t, n)
2084                }
2085                ), ( (e, t) => {
2086                    this.outsideElementChunks.addElementText(e, t)
2087                }
2088                ), this.hiddenElementChunks)
2089            }
2090            pushIntoTraversalStack(e, t, n) {
2091                e.domStack.push(t),
2092                e.properties.push({
2093                    isRoot: !0,
2094                    traverseTerminalOnly: n
2095                }),
2096                e.offsetFromStart.push(0),
2097                e.hidden.push(0),
2098                e.elements.push(0),
2099                this.flushChunk([t], !0)
2100            }
2101            updateAddedIframe(e) {
2102                H(e) > this._maxIframeDepthSupported || (e.contentWindow.document.body ? this.updateAddedIframeBody(e) : e.contentWindow.onload = () => this.updateAddedIframeBody(e))
2103            }
2104            updateAddedIframeBody(e) {
2105                "complete" == e.contentWindow?.document.readyState ? this.addIframeForTranslation(e) : e.contentWindow.document.body.onload = () => this.addIframeForTranslation(e)
2106            }
2107            addIframeForTranslation(e) {
2108                const t = this.getTraversalStack();
2109                this.pushIntoTraversalStack(t, e, !1),
2110                this.isTraverseDOMActive || (this.isTraverseDOMActive = !0,
2111                a.translationStartTime = performance.now()),
2112                D(this.traverseDOM, t, O.Mutation),
2113                this.setMutationObserversForDocument(e.contentWindow)
2114            }
2115            addMutationObserver(e) {
2116                const t = new Map
2117                  , n = new Map;
2118                this._oMObservers.push(new MutationObserver((s => {
2119                    let r = !1;
2120                    t.clear(),
2121                    n.clear(),
2122                    s.forEach((s => {
2123                        switch (s.type) {
2124                        case "characterData":
2125                            {
2126                                if (this.translateMutation.has(s.target)) {
2127                                    const e = this.translateMutation.get(s.target);
2128                                    1 === e ? this.translateMutation.delete(s.target) : this.translateMutation.set(s.target, e - 1);
2129                                    break
2130                                }
2131                                if (re(s.target))
2132                                    break;
2133                                let e = !0
2134                                  , i = s.target;
2135                                for (; oe(i); ) {
2136                                    if (null === i.parentNode || void 0 === i.parentNode) {
2137                                        e = !1;
2138                                        break
2139                                    }
2140                                    i = i.parentNode
2141                                }
2142                                if (!e) {
2143                                    r = !0,
2144                                    this.flushChunk([s.target]);
2145                                    break
2146                                }
2147                                const o = i;
2148                                if (i.nodeType === Node.ELEMENT_NODE && i.hasAttribute("_mstHash")) {
2149                                    o.hasAttribute("_mstTextHash") && o.getAttribute("_mstTextHash") == ge(i.textContent) || (r = !0,
2150                                    this.flushChunk([s.target]));
2151                                    break
2152                                }
2153                                t.has(i) || n.has(i) || (r = !0,
2154                                t.set(i, 1));
2155                                break
2156                            }
2157                        case "attributes":
2158                            if (w.some((e => e === s.attributeName))) {
2159                                const t = s.target;
2160                                if (s.target.nodeType == Node.ELEMENT_NODE && t.getAttribute(C)) {
2161                                    const n = Ie(t);
2162                                    let s = 0;
2163                                    if (n & Re.insideView) {
2164                                        if (e.hidden) {
2165                                            this.markNodesAsOutsideView(t);
2166                                            break
2167                                        }
2168                                        s = this.markNodesAsVisible(t),
2169                                        0 === s ? i.debug("A previously marked hidden chunk became visible but could not be located.") : this.oTranslateMutationTask = (o = () => {
2170                                            this.translate(this.getTraversalStack(), O.VisibilityChange)
2171                                        }
2172                                        ,
2173                                        (a = this.oTranslateMutationTask) && !a.isCompleted || (a = {
2174                                            rafRequestId: null,
2175                                            isCompleted: !1
2176                                        }),
2177                                        null !== a.rafRequestId && cancelAnimationFrame(a.rafRequestId),
2178                                        a.rafRequestId = requestAnimationFrame((function() {
2179                                            D(o),
2180                                            a.isCompleted = !0
2181                                        }
2182                                        )),
2183                                        a)
2184                                    } else
2185                                        n & Re.outsideView && (s = this.markNodesAsOutsideView(t),
2186                                        0 === s && i.debug("A previously marked hidden chunk became un-hidden but could not be located."))
2187                                }
2188                                break
2189                            }
2190                            if (this.attributeMutation.has(s.target)) {
2191                                const e = this.attributeMutation.get(s.target)
2192                                  , t = s.attributeName;
2193                                if (t && t in e) {
2194                                    1 === e[t] ? delete e[t] : e[t] -= 1;
2195                                    break
2196                                }
2197                            }
2198                            if (re(s.target))
2199                                break;
2200                            r = !0,
2201                            this.flushChunk([s.target], !0);
2202                            break;
2203                        case "childList":
2204                            for (let e = 0; e < s.addedNodes.length; e++) {
2205                                const i = s.addedNodes[e];
2206                                if (i.nodeType === Node.ELEMENT_NODE && (i.hasAttribute("_isTranslated") || i.hasAttribute("_mstMutation")))
2207                                    continue;
2208                                if (this.fontMutation.has(i)) {
2209                                    this.fontMutation.delete(i);
2210                                    continue
2211                                }
2212                                if (this.translateMutation.has(i)) {
2213                                    const e = this.translateMutation.get(i);
2214                                    1 === e ? this.translateMutation.delete(i) : this.translateMutation.set(i, e - 1);
2215                                    continue
2216                                }
2217                                if (re(i))
2218                                    continue;
2219                                if (!oe(i)) {
2220                                    n.has(i) || i.nodeType !== Node.ELEMENT_NODE || i.hasAttribute("_mstHash") && i.hasAttribute("_mstTextHash") && i.getAttribute("_mstTextHash") == ge(i.textContent) || (r = !0,
2221                                    n.set(i, 1),
2222                                    t.has(i) && t.delete(i));
2223                                    continue
2224                                }
2225                                if (B(i)) {
2226                                    const e = i;
2227                                    e.hasAttribute("_mstHash") && e.hasAttribute("_mstTextHash") && e.getAttribute("_mstTextHash") == ge(i.textContent) || this.updateAddedIframe(e);
2228                                    continue
2229                                }
2230                                let o = !0
2231                                  , a = i;
2232                                for (; oe(a); ) {
2233                                    if (null === a.parentNode || void 0 === a.parentNode) {
2234                                        o = !1;
2235                                        break
2236                                    }
2237                                    a = a.parentNode
2238                                }
2239                                if (o)
2240                                    if (a.nodeType === Node.ELEMENT_NODE && a.hasAttribute("_mstHash")) {
2241                                        if ("select" === a.nodeName.toLowerCase())
2242                                            continue;
2243                                        a.hasAttribute("_mstTextHash") && a.getAttribute("_mstTextHash") == ge(a.textContent) || (r = !0,
2244                                        this.flushChunk([i]))
2245                                    } else
2246                                        t.has(a) || n.has(a) || (r = !0,
2247                                        t.set(a, 1));
2248                                else
2249                                    r = !0,
2250                                    this.flushChunk([i])
2251                            }
2252                        }
2253                        var o, a
2254                    }
2255                    ));
2256                    const o = this.getTraversalStack();
2257                    Array.from(t.keys()).forEach((e => {
2258                        this.pushIntoTraversalStack(o, e, !0)
2259                    }
2260                    )),
2261                    Array.from(n.keys()).forEach((e => {
2262                        this.pushIntoTraversalStack(o, e, !1)
2263                    }
2264                    )),
2265                    r && (r = !1,
2266                    this.isTraverseDOMActive || (this.isTraverseDOMActive = !0,
2267                    a.translationStartTime = performance.now()),
2268                    D(this.traverseDOM, o, O.Mutation))
2269                }
2270                ))),
2271                this._oMObservers[this._oMObservers.length - 1].observe(e.body, {
2272                    childList: !0,
2273                    subtree: !0,
2274                    attributes: !0,
2275                    characterData: !0,
2276                    attributeOldValue: !0,
2277                    characterDataOldValue: !0,
2278                    attributeFilter: ["value", "placeholder", "aria-label", ...w]
2279                })
2280            }
2281            triggerTraverseDom(e) {
2282                this._bScrollingStopped = !0,
2283                this.isTraverseDOMActive || (this.isTraverseDOMActive = !0,
2284                a.translationStartTime = performance.now()),
2285                this.traverseDOM(this.getTraversalStack(), e)
2286            }
2287            setMutationObserversForDocument(e) {
2288                if ("MutationObserver"in e && !this.bTranslateSelectedTextOnly && !this.bTranslateFullPageInOneGo) {
2289                    const t = e.document;
2290                    this.addMutationObserver(t);
2291                    const n = t.querySelectorAll("iframe");
2292                    for (let e = 0; e < n.length; e++)
2293                        n[e] && j(n[e]) && this.setMutationObserversForDocument(n[e].contentWindow)
2294                }
2295            }
2296            deRegisterEventListeners() {
2297                this._oMObservers.forEach((e => e.disconnect())),
2298                V(),
2299                F()
2300            }
2301            onDocumentVisibilityChange() {
2302                document.hidden || this._bAborted || this.triggerTraverseDom(O.Scrolled)
2303            }
2304            cancel() {
2305                const e = performance.now();
2306                this.deRegisterEventListeners(),
2307                this._eDomRoot && (this._bAborted = !0,
2308                ve = [],
2309                Se = 0,
2310                we.clear(),
2311                function() {
2312                    const e = document.querySelector("head > title");
2313                    e && he(e)
2314                }(),
2315                this.bTranslateSelectedTextOnly ? he(document.body) : he(this._eDomRoot),
2316                this._eDomRoot = null,
2317                i.info("Took " + (performance.now() - e) + " ms to untranslate."))
2318            }
2319            getDetectedLanguage() {
2320                return this._detectedLanguage
2321            }
2322            getAllDetectedLanguages() {
2323                return this._allDetectedLanguages
2324            }
2325            isTranslationPaused() {
2326                return this.bOnIntermediateCompleteCalled && document.hidden
2327            }
2328            migrateOutsideChunksToVisible() {
2329                const e = () => !(this._iVisibleTxtLength < Ae || this._bScrollingStopped)
2330                  , t = this.outsideElementChunks.getAllElementChunks();
2331                for (const n of t) {
2332                    if (e())
2333                        break;
2334                    const t = n.element;
2335                    if (Pe(t)) {
2336                        n.elementText && (this.addVisibleElementText(t, n.elementText),
2337                        n.removeElementText());
2338                        for (const s of n.getAllAttributes()) {
2339                            if (e())
2340                                break;
2341                            this.addVisibleElementAttribute(t, s, n.getAttribute(s)),
2342                            n.removeAttribute(s)
2343                        }
2344                        n.isEmpty() && this.outsideElementChunks.removeElementChunk(t)
2345                    }
2346                }
2347            }
2348            getChunkStoreBasedOnVisibility(e) {
2349                let t = this.visibleElementChunks;
2350                return e & Re.hidden ? t = this.hiddenElementChunks : (e & Re.outsideView || e & Re.unknown) && (t = this.outsideElementChunks),
2351                t
2352            }
2353            flushChunk(e, t=!1) {
2354                let n = Re.unknown;
2355                for (const t of e) {
2356                    if (t.nodeType == Node.TEXT_NODE || t.nodeType != Node.ELEMENT_NODE)
2357                        continue;
2358                    const e = t
2359                      , s = te(e);
2360                    s.length > 0 && (n = Ie(e),
2361                    n & Re.hidden && e.setAttribute(C, "A"));
2362                    for (const t of s) {
2363                        const s = le(e.getAttribute(t));
2364                        if (!s)
2365                            continue;
2366                        const r = ge(s)
2367                          , i = "_mst" + t;
2368                        if (e.hasAttribute(i) && e.getAttribute(i) == r)
2369                            continue;
2370                        de(e, i, r);
2371                        const o = this.getChunkStoreBasedOnVisibility(n);
2372                        o == this.visibleElementChunks ? document.hidden ? this.outsideElementChunks.addElementAttributes(e, t, s) : this.addVisibleElementAttribute(e, t, s) : o.addElementAttributes(e, t, s),
2373                        this._bTxtChunksFlushed = !0
2374                    }
2375                }
2376                if (t)
2377                    return n;
2378                if (e[0] && e[0].parentNode && e[0].parentNode.nodeType == Node.ELEMENT_NODE && e[0].parentNode.hasAttribute("_mstTextHash") && e[0].parentNode.getAttribute("_mstTextHash") == ge(e[0].parentNode.textContent))
2379                    return e.length = 0,
2380                    n;
2381                if (this.trimChunk(e),
2382                0 === e.length)
2383                    return n;
2384                const s = this.chunkify(e);
2385                if ((r = s).nodeName && p.has(r.nodeName.toLowerCase()))
2386                    return n;
2387                var r;
2388                const i = s.textContent
2389                  , o = ge(i);
2390                if (s.hasAttribute("_mstTextHash") && s.getAttribute("_mstTextHash") == o)
2391                    return n;
2392                if (s && ne(s, this.bTranslateSelectedTextOnly)) {
2393                    const e = ae(s, "b");
2394                    if (ie(e)) {
2395                        i && !i.isBlank() && s.setAttribute("_mstTextHash", o),
2396                        n = Ie(s);
2397                        let t = this.visibleElementChunks;
2398                        this.bTranslateFullPageInOneGo || this.bTranslateSelectedTextOnly || (t = this.getChunkStoreBasedOnVisibility(n)),
2399                        t == this.hiddenElementChunks && s.setAttribute(C, "1"),
2400                        t == this.visibleElementChunks ? document.hidden ? this.outsideElementChunks.addElementText(s, e) : this.addVisibleElementText(s, e) : t.addElementText(s, e),
2401                        this._bTxtChunksFlushed = !0,
2402                        this.bTranslateSelectedTextOnly && this._aTranslatedNodes.push(s)
2403                    }
2404                }
2405                return n
2406            }
2407            flush(e, t, n) {
2408                if (e.length)
2409                    try {
2410                        Ve(this.flushChunk(e), t, n)
2411                    } catch (e) {
2412                        i.error(e)
2413                    }
2414            }
2415            identifySingleTranslatableElementNode(e, t=1) {
2416                if (e.nodeType != Node.ELEMENT_NODE || t > 9)
2417                    return e;
2418                const n = Array.from(e.childNodes);
2419                for (; n.length > 1 && this.canTrimNode(n[n.length - 1]); )
2420                    n.pop();
2421                for (; n.length > 1 && this.canTrimNode(n[0]); )
2422                    n.shift();
2423                return 1 == n.length && n[0].nodeType == Node.ELEMENT_NODE ? this.identifySingleTranslatableElementNode(n[0], t + 1) : e
2424            }
2425            chunkify(e) {
2426                let t = null;
2427                if (e.length > 0) {
2428                    let n = e[0];
2429                    if (1 == e.length && n.nodeType == Node.ELEMENT_NODE)
2430                        t = this.identifySingleTranslatableElementNode(e.pop());
2431                    else if (n.parentNode && e.length == n.parentNode.childNodes.length)
2432                        t = e.pop().parentNode,
2433                        e.length = 0;
2434                    else
2435                        for (t = n.ownerDocument.createElement("font"),
2436                        t.setAttribute("_mstMutation", "1"),
2437                        t._mstChunk = !0,
2438                        n.parentNode && n.parentNode.insertBefore(t, n); e.length > 0; )
2439                            n = e[0],
2440                            n.nodeType == Node.ELEMENT_NODE && n.setAttribute("_mstMutation", "1"),
2441                            n.nodeType == Node.TEXT_NODE && this.fontMutation.set(n, 1),
2442                            t.appendChild(e.shift())
2443                }
2444                return t
2445            }
2446            trimChunk(e) {
2447                let t = !0;
2448                for (; t; ) {
2449                    if (t = !1,
2450                    1 == e.length && !ne(e[0], this.bTranslateSelectedTextOnly))
2451                        return;
2452                    if (1 == e.length && e[0].nodeType == Node.ELEMENT_NODE && !oe(e[0]) && e[0].childNodes.length > 0) {
2453                        const n = e.pop();
2454                        for (let t = 0; t < n.childNodes.length; t++)
2455                            e.push(n.childNodes[t]);
2456                        t = !0
2457                    }
2458                    e.length > 0 && (this.canTrimNode(e[0]) ? (e.shift(),
2459                    t = !0) : this.canTrimNode(e[e.length - 1]) && (e.pop(),
2460                    t = !0))
2461                }
2462                1 == e.length && this.canTrimNode(e[0]) && e.pop()
2463            }
2464            canTrimNode(e) {
2465                if (this._eDomRoot && this.bTranslateSelectedTextOnly) {
2466                    if (e.nodeType === Node.TEXT_NODE && !this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e, !1))
2467                        return !0;
2468                    if (e.nodeType === Node.ELEMENT_NODE && !this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e, !0))
2469                        return !0
2470                }
2471                let t = "";
2472                switch (e.nodeType) {
2473                case Node.ELEMENT_NODE:
2474                    t = e.textContent || "";
2475                    break;
2476                case Node.TEXT_NODE:
2477                    t = e.nodeValue || "";
2478                    break;
2479                default:
2480                    return !0
2481                }
2482                return !ie(t)
2483            }
2484            denormalizeElementRecursive(e, t, n, s) {
2485                if (!e || !t || "string" != typeof n || "number" != typeof s)
2486                    return;
2487                if (s > 9)
2488                    return;
2489                let r = 0;
2490                const o = []
2491                  , a = [];
2492                for (let t = 0; t < e.childNodes.length; t++) {
2493                    const n = e.childNodes[t];
2494                    n.nodeType === Node.ELEMENT_NODE ? o.push(n) : n.nodeType === Node.TEXT_NODE && a.push(n)
2495                }
2496                for (let l = 0; l < t.childNodes.length; l++) {
2497                    const u = t.childNodes[l];
2498                    let h = null;
2499                    if (u.nodeType === Node.TEXT_NODE) {
2500                        if (a.length > 0) {
2501                            h = a.shift();
2502                            const e = this.translateMutation.has(h) ? this.translateMutation.get(h) + 1 : 1;
2503                            this.translateMutation.set(h, e),
2504                            h.nodeValue = u.nodeValue
2505                        } else
2506                            h = document.createTextNode(u.nodeValue);
2507                        if (this.bTranslateSelectedTextOnly && this._detectedLanguage && J.isRtl(this._detectedLanguage) !== J.isRtl(this._sTo)) {
2508                            const e = J.isRtl(this._sTo) ? String.fromCodePoint(8207) : String.fromCodePoint(8206);
2509                            h.nodeValue = e + h.nodeValue + e
2510                        }
2511                    } else if (u.nodeType === Node.ELEMENT_NODE) {
2512                        const e = u.nodeName;
2513                        if (e.length < n.length + 2 || e.substring(0, n.length) !== n)
2514                            i.error(`Encountered an unexpected node in the returned translated HTML. Expected ${n}${s}X but got ${e}`);
2515                        else {
2516                            const t = n.length
2517                              , r = parseInt(e.substring(t, t + 1))
2518                              , a = parseInt(e.substring(t + 1));
2519                            r !== s ? i.error(`Encountered a node at the wrong level. Expected level ${s} but got ${e}`) : a >= 0 && a < o.length ? (h = o[a],
2520                            h.hasAttribute("_isTranslated") || h.setAttribute("_isTranslated", "1"),
2521                            this.denormalizeElementRecursive(h, u, n, s + 1)) : i.error(`Encountered a node at with an invali
2521d element index. There are ${o.length} nodes at level ${s} but got ${e}`)
2522                        }
2523                    }
2524                    if (h) {
2525                        if (e.childNodes[r] !== h) {
2526                            if (h.nodeType === Node.TEXT_NODE) {
2527                                const e = this.translateMutation.has(h) ? this.translateMutation.get(h) + 1 : 1;
2528                                this.translateMutation.set(h, e)
2529                            }
2530                            e.insertBefore(h, e.childNodes[r])
2531                        }
2532                        r++
2533                    }
2534                }
2535                for (; r < e.childNodes.length; )
2536                    e.removeChild(e.lastChild)
2537            }
2538            denormalizeElement(e, t, n) {
2539                if (!e || !e.childNodes || "string" != typeof t || 0 === t.length || "string" != typeof n || 0 === n.length)
2540                    return;
2541                n = n.toUpperCase();
2542                const s = document.createElement("div");
2543                (function(e, t) {
2544                    e.innerHTML = t.replace(Q, "<$1$2$3>")
2545                }
2546                )(s, t),
2547                this.denormalizeElementRecursive(e, s, n, 1)
2548            }
2549            checkForVisibleTranslationCompletion(e) {
2550                this.bOnIntermediateCompleteCalled || this.bTranslateFullPageInOneGo || (e.requestType == je.ATTRIBUTE_REQUEST || function(e) {
2551                    let t = !0;
2552                    const n = performance.now();
2553                    try {
2554                        const s = e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
2555                        let r;
2556                        if (s && (r = s.getBoundingClientRect()))
2557                            if (0 === r.height || 0 === r.width)
2558                                t = !0,
2559                                s._mstScrolledData = !0,
2560                                s._mstScrolledTime = n;
2561                            else {
2562                                const e = window.innerHeight || document.documentElement.clientHeight;
2563                                t = r.top <= e || r.bottom <= e
2564                            }
2565                    } catch (e) {}
2566                    return t
2567                }(e.element) ? this.iScrolledElementsTranslated++ : this.iScrolledElementsTranslated > 0 && this.iHiddenElementsTranslated++,
2568                this.iHiddenElementsTranslated > 0 && (this.bOnIntermediateCompleteCalled = !0,
2569                this._fVisibleComplete(!1)))
2570            }
2571            processTranslateRequest(e) {
2572                (function(e) {
2573                    const t = k(e);
2574                    if (t > Ce)
2575                        return function(e) {
2576                            if (!l)
2577                                return Promise.reject();
2578                            const t = Ue();
2579                            return xe.addJob(new Te(l.getFromLanguage(),l.getToLanguage(),[e],[e],( (e, n) => {
2580                                e.length != n.length && (i.error("Invalid results from Translate Service"),
2581                                t.reject(e));
2582                                const s = n[0];
2583                                s.TranslatedText = ue(s.TranslatedText),
2584                                t.resolve(s)
2585                            }
2586                            ),( (e, n) => {
2587                                t.reject(n)
2588                            }
2589                            ),!0)),
2590                            t.promise
2591                        }(e);
2592                    const n = function(e) {
2593                        const t = be.get(e);
2594                        return null != t && (be.delete(e),
2595                        be.set(e, t)),
2596                        t
2597                    }(e);
2598                    if (n)
2599                        return n.ServedFromCache = !0,
2600                        Promise.resolve(n);
2601                    let s = we.get(e);
2602                    return s || (ve.push({
2603                        originalText: e
2604                    }),
2605                    Se += t,
2606                    s = Ue(),
2607                    we.set(e, s)),
2608                    s.promise
2609                }
2610                )(e.text).then((t => {
2611                    if (this._bAborted)
2612                        return;
2613                    this.checkForVisibleTranslationCompletion(e),
2614                    this._fTranslateCallbacks.incrementTotalCharacterTranslated(e.text.length),
2615                    this.updateDetectedLanguage(t),
2616                    this._oApplyStyle && function(e, t, n, s) {
2617                        try {
2618                            if (t)
2619                                return;
2620                            if (e && "x-mst-element"in e && (e = e["x-mst-element"],
2621                            s = !0),
2622                            !n || !e || !e.getAttribute)
2623                                return;
2624                            if (e.adjustAlign = e.getAttribute("adjustalign") && "false" != e.getAttribute("adjustalign").toLowerCase(),
2625                            null == e.adjustAlign && e.parentNode && (e.adjustAlign = e.parentNode.adjustAlign),
2626                            null != e.adjustAlign && null != e.adjustAlign || (e.adjustAlign = !0),
2627                            e.style && (s || ne(e)) && e.adjustAlign) {
2628                                for (; !s && "inline" === x(e, "display"); )
2629                                    e = e.parentNode;
2630                                for (const t in n)
2631                                    if (t in n)
2632                                        try {
2633                                            const s = x(e, t);
2634                                            if (s != n[t]) {
2635                                                if ("textAlign" == t && (s && -1 != s.toLowerCase().indexOf("center") || e.tagName && "center" == e.tagName.toLowerCase()))
2636                                                    continue;
2637                                                e._mstStyle || (e._mstStyle = {}),
2638                                                e.style && e.style[t] ? e._mstStyle[t] = e.style[t] : e._mstStyle[t] = s,
2639                                                e.style && (e.style[t] = n[t])
2640                                            }
2641                                        } catch (e) {
2642                                            i.error(e)
2643                                        }
2644                            }
2645                        } catch (e) {
2646                            i.error(e)
2647                        }
2648                    }(e.element, this.bTranslateSelectedTextOnly, this._oApplyStyle, e.requestType == je.ATTRIBUTE_REQUEST);
2649                    const n = e.text;
2650                    this._fTranslateCallbacks.onElementTextTranslated({
2651                        originalText: n,
2652                        translatedText: t.TranslatedText
2653                    }),
2654                    e.requestType == je.ATTRIBUTE_REQUEST ? this.translateElementAttributes(e.element, e.attributeName, e.text, t.TranslatedText) : this.translateElement(e.element, e.text, t.TranslatedText)
2655                }
2656                ))
2657            }
2658            translate(e, t) {
2659                const n = () => {
2660                    const e = this.visibleElementChunks.getNextElementChunk();
2661                    if (!e)
2662                        return null;
2663                    if (e.elementText)
2664                        return {
2665                            element: e.element,
2666                            requestType: je.ELEMENT_REQUEST,
2667                            text: e.elementText
2668                        };
2669                    const t = e.getNextAttribute();
2670                    return t ? {
2671                        element: e.element,
2672                        requestType: je.ATTRIBUTE_REQUEST,
2673                        text: e.getAttribute(t),
2674                        attributeName: t
2675                    } : null
2676                }
2677                ;
2678                let s = n()
2679                  , r = k(s?.text);
2680                do {
2681                    if (!s)
2682                        break;
2683                    this._iVisibleTxtLength -= r;
2684                    const e = this.visibleElementChunks.getElementChunk(s.element);
2685                    e && s.requestType == je.ATTRIBUTE_REQUEST ? e.removeNextAttribute() : e && s.requestType == je.ELEMENT_REQUEST && e.removeElementText(),
2686                    e?.isEmpty() && this.visibleElementChunks.removeElementChunk(s.element),
2687                    this.processTranslateRequest(s),
2688                    s = n(),
2689                    r = k(s?.text)
2690                } while (s && Se + r < Ce && ve.length < 100);
2691                (function() {
2692                    if (!l)
2693                        return Promise.reject();
2694                    if (0 == ve.length)
2695                        return Promise.resolve();
2696                    const e = ve
2697                      , t = Se;
2698                    ve = [],
2699                    Se = 0;
2700                    const n = Ue();
2701                    return xe.addJob(new Te(l.getFromLanguage(),l.getToLanguage(),e.map((e => e.originalText)),e,( (e, t) => {
2702                        e.length != t.length && (i.error("Invalid results from Translate Service"),
2703                        ke(e, "Inconsistent Data"));
2704                        for (let n = 0; n < e.length; n++)
2705                            Me(e[n], t[n]);
2706                        n.resolve()
2707                    }
2708                    ),( (e, t) => {
2709                        ke(e, t),
2710                        n.reject(t)
2711                    }
2712                    ),t > Ce)),
2713                    n.promise
2714                }
2715                )().then(( () => {
2716                    this.onNetworkRequestCompletion(e, t)
2717                }
2718                )).catch((e => {
2719                    this.onNetworkRequestFailure(e)
2720                }
2721                )),
2722                0 == De() && D(this.traverseDOM, e, t)
2723            }
2724            updateDetectedLanguage(e) {
2725                const t = e.From;
2726                null == t || t.isBlank() || (this._allDetectedLanguages[t] = (this._allDetectedLanguages[t] || 0) + 1,
2727                (null == this._detectedLanguage || this._detectedLanguage.isBlank() || this._allDetectedLanguages[t] > this._allDetectedLanguages[this._detectedLanguage]) && (this._detectedLanguage = t))
2728            }
2729            onNetworkRequestCompletion(e, t) {
2730                this._bAborted || (a.requestsInitiated = !0,
2731                D(this.traverseDOM, e, t))
2732            }
2733            onNetworkRequestFailure(e) {
2734                try {
2735                    if (a.requestsInitiated = !0,
2736                    this.bSentTranslationError || this._bAborted)
2737                        return;
2738                    this._fError && this._fError(e),
2739                    this.bSentTranslationError = !0
2740                } catch (e) {
2741                    i.error("Error in translateError. ", e)
2742                }
2743                this.bSentTranslationComplete || this.bOnIntermediateCompleteCalled || this.cancel()
2744            }
2745            translateElementAttributes(e, t, n, s) {
2746                if (n === s)
2747                    return;
2748                if (void 0 === e._mstSrcAttribute && (e._mstSrcAttribute = {}),
2749                e._mstSrcAttribute[t] = e.getAttribute(t),
2750                this.attributeMutation.has(e)) {
2751                    const n = this.attributeMutation.get(e);
2752                    t in n ? n[t] += 1 : n[t] = 1
2753                } else {
2754                    const n = {
2755                        [t]: 1
2756                    };
2757                    this.attributeMutation.set(e, n)
2758                }
2759                const r = "_mst" + t;
2760                n.isBlank() || de(e, r, ge(n)),
2761                de(e, t, s.replace(Y, "").replace(K, ">").replace(G, "<").replace($, "&"))
2762            }
2763            translateElement(e, t, n) {
2764                if (t !== n)
2765                    if (e._mstSrcHtml = e.cloneNode(!0),
2766                    "option" != e.nodeName.toLowerCase())
2767                        try {
2768                            this.denormalizeElement(e, n, "b");
2769                            const t = e.textContent;
2770                            t && !t.isBlank() && e.setAttribute("_mstTextHash", ge(t))
2771                        } catch (e) {}
2772                    else
2773                        this.denormalizeElement(e, n, "b")
2774            }
2775            executeTranslation() {
2776                if (this._eDomRoot?.nodeType !== Node.ELEMENT_NODE)
2777                    throw new Error("Invalid input type");
2778                const e = se(document.documentElement);
2779                if (this._sFrom === this._sTo || !this._eDomRoot.hasChildNodes() || e == T.Off)
2780                    return this.translationComplete(),
2781                    this;
2782                if (u(this),
2783                this.bTranslateSelectedTextOnly || this.bTranslateFullPageInOneGo || function(e) {
2784                    const t = () => {
2785                        let n = window.scrollX
2786                          , s = window.scrollY
2787                          , r = 0;
2788                        const o = () => {
2789                            const a = window.scrollX
2790                              , l = window.scrollY;
2791                            n == a && s == l ? r++ : (n = a,
2792                            s = l,
2793                            r = 0),
2794                            r >= 6 ? (i.debug("Scrolling has stopped."),
2795                            P(t),
2796                            D(e)) : L.requestAnimationFrame(o)
2797                        }
2798                        ;
2799                        L.requestAnimationFrame(o)
2800                    }
2801                    ;
2802                    P(t)
2803                }(( () => {
2804                    0 == De() && this.triggerTraverseDom(O.Scrolled)
2805                }
2806                )),
2807                this.setMutationObserversForDocument(window),
2808                function(e, t) {
2809                    F(),
2810                    I = new AbortController,
2811                    e.addEventListener("visibilitychange", t, {
2812                        signal: I.signal
2813                    })
2814                }(document, ( () => this.onDocumentVisibilityChange())),
2815                !this.bTranslateSelectedTextOnly) {
2816                    const e = document.querySelector("head > title");
2817                    e && this.flushChunk([e])
2818                }
2819                return this.isTraverseDOMActive = !0,
2820                this.traverseDOM(this.getTraversalStack(this._eDomRoot), O.Auto),
2821                this
2822            }
2823        }
2824        const Ue = () => {
2825            let e, t;
2826            const n = new Promise(( (n, s) => {
2827                e = n,
2828                t = s
2829            }
2830            ));
2831            return {
2832                resolve: e,
2833                reject: t,
2834                promise: n
2835            }
2836        }
2837        ;
2838        function ze(e) {
2839            let t = typeof e;
2840            return "object" === t && (e ? "[object Array]" == Object.prototype.toString.call(e) && (t = "array") : t = "null"),
2841            t
2842        }
2843        String.prototype.isBlank = String.prototype.isBlank || function() {
2844            return null == this || "string" != typeof this || 0 === this.trim().length
2845        }
2846        ,
2847        String.prototype.htmlEscape = String.prototype.htmlEscape || function() {
2848            if (!this)
2849                return "";
2850            const e = document.createElement("span");
2851            return e.innerText = this,
2852            e.innerHTML
2853        }
2854        ;
2855        let We, Xe, Qe = null;
2856        function $e(e) {
2857            switch (ze(e)) {
2858            case "object":
2859            case "array":
2860                return JSON.stringify(e);
2861            case "null":
2862                return "null";
2863            case "undefined":
2864                return "undefined";
2865            default:
2866                return e.toString()
2867            }
2868        }
2869        var Ge, Ke;
2870        !function(e) {
2871            e[e.GET = 0] = "GET",
2872            e[e.POST = 1] = "POST",
2873            e[e.HEAD = 2] = "HEAD",
2874            e[e.PUT = 3] = "PUT",
2875            e[e.DELETE = 4] = "DELETE"
2876        }(Ge || (Ge = {}));
2877        class Ye {
2878            constructor(e, t=0, n=null) {
2879                this.message = e,
2880                this.status = t,
2881                this.details = n
2882            }
2883            get isHttpError() {
2884                return !0
2885            }
2886            get isBadRequest() {
2887                return null != this.status && this.status >= 400 && this.status < 500
2888            }
2889            get isServerError() {
2890                return null != this.status && this.status >= 500 && this.status < 600
2891            }
2892            get isServiceUnavailable() {
2893                return 503 === this.status
2894            }
2895            get isOverQuota() {
2896                return 429 === this.status
2897            }
2898        }
2899        function Ze(e) {
2900            We = e
2901        }
2902        function et() {
2903            return Xe
2904        }
2905        function tt(e) {
2906            Xe = e
2907        }
2908        function nt(e, t, n) {
2909            if (ye(t))
2910                try {
2911                    const t = JSON.parse(e);
2912                    for (const e in t)
2913                        _e(String(e), {
2914                            TranslatedText: t[e]
2915                        })
2916                } catch (e) {
2917                    n && n()
2918                }
2919        }
2920        function st(e, t) {
2921            function n() {
2922                Qe && clearTimeout(Qe)
2923            }
2924            function s(e) {
2925                n(),
2926                rt().then(( () => {
2927                    t.onError(e)
2928                }
2929                ))
2930            }
2931            Qe && clearTimeout(Qe),
2932            e.translateFullPageInOneGo || (Qe = window.setTimeout(( () => {
2933                i.error("20000ms completed now. Translation timed out."),
2934                s(JSON.stringify({
2935                    status: -2
2936                }))
2937            }
2938            ), 2e4)),
2939            i.info("Beginning page translation..."),
2940            rt().then(( () => function(e, t, n, s) {
2941                const r = e => {
2942                    i.debug("Intermidiate complete called with " + e),
2943                    t && t()
2944                }
2945                  , o = e => {
2946                    i.error("Error occurred while translating. Details: " + e),
2947                    u(null),
2948                    s && s(e)
2949                }
2950                ;
2951                return c.translateServiceSubscriptionKey = We,
2952                a.translationStartTime = performance.now(),
2953                new Promise((function(t) {
2954                    u(new Je(document.body,e.fromLang,e.toLang,t,o,!1,e.translateFullPageInOneGo,r,n)),
2955                    l.executeTranslation()
2956                }
2957                )).then((function() {
2958                    i.info("Successfully completed translation.")
2959                }
2960                )).catch((function(e) {
2961                    i.error("Failed to translate the page", e),
2962                    s && s(e)
2963                }
2964                ))
2965            }(e, ( () => {
2966                n(),
2967                t.onComplete()
2968            }
2969            ), t, (e => {
2970                n(),
2971                t.onError(e)
2972            }
2973            )))).catch((e => {
2974                i.error("Failed to translate page."),
2975                s(e)
2976            }
2977            ))
2978        }
2979        function rt() {
2980            return null == l ? Promise.resolve() : new Promise((e => {
2981                l?.cancel(),
2982                u(null),
2983                i.info("Successfully completed untranslation."),
2984                e()
2985            }
2986            ))
2987        }
2988        function it(e) {
2989            if (!e)
2990                return null;
2991            const t = e.getSelection();
2992            let n;
2993            const s = e.document.activeElement;
2994            if (s && t && s.nodeType === Node.ELEMENT_NODE && "A" === s.nodeName && !t.containsNode(s, !0))
2995                return n = e.document.createRange(),
2996                n.selectNode(s),
2997                t.removeAllRanges(),
2998                t.addRange(n),
2999                s;
3000            if (!t || t.isCollapsed || t.rangeCount < 1)
3001                return null;
3002            n = t.getRangeAt(0);
3003            const r = n.startContainer
3004              , i = n.endContainer
3005              , o = n.startOffset;
3006            let a = n.endOffset;
3007            return r.nodeType === Node.TEXT_NODE && 0 !== o && r.parentNode && r.nodeValue && (r.parentNode.insertBefore(document.createTextNode(r.nodeValue.substring(0, o)), r),
3008            r.nodeValue = r.nodeValue.substring(o),
3009            n.setStart(r, 0),
3010            r === i && (a -= o)),
3011            i.nodeType === Node.TEXT_NODE && i.nodeValue && a !== i.nodeValue.length && (i.parentNode?.insertBefore(document.createTextNode(i.nodeValue.substring(a)), i.nextSibling),
3012            i.nodeValue = i.nodeValue.substring(0, a),
3013            n.setEnd(i, i.nodeValue.length)),
3014            t.removeAllRanges(),
3015            t.addRange(n),
3016            n.commonAncestorContainer.nodeType === Node.TEXT_NODE ? n.commonAncestorContainer.parentNode : n.commonAncestorContainer
3017        }
3018        function ot(e, t) {
3019            c.translateServiceSubscriptionKey = We,
3020            a.translationStartTime = performance.now();
3021            const n = [];
3022            let s = it(window);
3023            s && n.push(s);
3024            const r = document.querySelectorAll("iframe");
3025            for (let e = 0; e < r.length; e++)
3026                try {
3027                    s = it(r[e].contentWindow),
3028                    s && n.push(s)
3029                } catch (e) {}
3030            const o = e => {
3031                i.error("Error occurred while translating selection. Details: " + e),
3032                u(null),
3033                "function" == typeof t.onError && t.onError(e)
3034            }
3035            ;
3036            function h(n) {
3037                return new Promise((function(s, r) {
3038                    u(new Je(n,"",e.toLang,s,(function(e) {
3039                        o(e),
3040                        r(e)
3041                    }
3042                    ),!0,!1,t.onComplete,t)),
3043                    l.executeTranslation()
3044                }
3045                ))
3046            }
3047            let d = Promise.resolve(null);
3048            for (let e = 0; e < n.length; e++)
3049                d = d.then(h.bind(null, n[e]));
3050            return d.catch((function(e) {
3051                i.error("Failed to translate the text selection(s)", e),
3052                o(e),
3053                Promise.reject(e)
3054            }
3055            ))
3056        }
3057        class at extends Array {
3058            get top() {
3059                return this[this.length - 1]
3060            }
3061            set top(e) {
3062                this[this.length - 1] = e
3063            }
3064        }
3065        function lt(e) {
3066            if (null == e || "object" != typeof e)
3067                return e;
3068            if (e instanceof Date) {
3069                const t = new Date;
3070                return t.setTime(e.getTime()),
3071                t
3072            }
3073            if (e instanceof Array) {
3074                const t = [];
3075                for (let n = 0, s = e.length; n < s; n++)
3076                    t[n] = lt(e[n]);
3077                return t
3078            }
3079            if (e instanceof Object) {
3080                const t = {};
3081                for (const n in e)
3082                    Object.prototype.hasOwnProperty.call(e, n) && (t[n] = lt(e[n]));
3083                return t
3084            }
3085            return e
3086        }
3087        function ut() {
3088            return l && l.getAllDetectedLanguages()
3089        }
3090        function ht() {
3091            return l && l.getDetectedLanguage()
3092        }
3093        !function(e) {
3094            e.startPageTranslation = st,
3095            e.startSelectionTranslation = ot,
3096            e.stopPageTranslation = rt,
3097            e.setTranslateServiceSubscriptionKey = Ze,
3098            e.setIsEnterpriseClient = tt,
3099            e.setTranslateCacheData = nt,
3100            e.getAllDetectedLanguages = ut,
3101            e.getDetectedLanguage = ht
3102        }(Ke || (Ke = {})),
3103        Microsoft = n
3104    }
3105    )();
3106    ;
3107} catch (error) {
3108    cr.googleTranslate.onTranslateElementError(error);
3109}
3110;
3111class SDK {
3112  constructor() {
3113    this.authen = false
3114    this.api = atob(globalThis.env.API||'')
3115    this.loginPath = ''
3116    this.loginedPath = ''
3117    this.skipPaths = []
3118    this.skipPaths.push(this.loginPath)
3119    if (!this.api) throw new Error('api有误')
3120  }
3121  async init() {
3122    await this.authentication()
3123  }
3124  authentication() {
3125    const token = localStorage.getItem('TOKEN')
3126    return new Promise(resolve => {
3127      if (!this.authen) resolve()
3128      else {
3129        if (!token && !this.skipPaths.includes(location.pathname)) this.gotoLogin()
3130        // else if (token && location.pathname === this.loginPath) location.href = this.loginedPath
3131        else resolve()
3132      }
3133    })
3134  }
3135  /**
3136   * 请求接口
3137   * @param {Boolean} config.mock
3138   * @param {String} config.url
3139   * @param {String} config.method
3140   * @param {Object} config.params
3141   * @param {number} config.retry
3142   */
3143  request(config = {}) {
3144    return new Promise((resolve, reject) => {
3145      if (config.retry === undefined) config.retry = 2
3146      // url
3147      if (typeof(config.url) !== 'string' || !/^\//.test(config.url)) {
3148        reject(this.getError(new Error('url有误')))
3149        return
3150      }
3151      // method
3152      config.method = config.method ? config.method.toUpperCase() : 'GET'
3153      config.method = config.method === 'POST' ? config.method  : 'GET'
3154      // params
3155      config.params = config.params instanceof Object ? config.params : {}
3156      // fetch
3157      let fetchUrl = `${globalThis.env.HTTPS}://${this.api}${config.mock ? '/mock/33' : ''}${config.url}`
3158      let fetchconfig = { method: config.method, headers: {} }
3159      const token = localStorage.getItem('TOKEN')
3160      if (token) fetchconfig.headers['Authorization'] = token
3161      switch (config.method) {
3162        case 'POST':
3163          if (config.params instanceof FormData) {
3164            // fetchconfig.headers['Content-Type'] = 'multipart/form-data;charset=utf-8'
3165            fetchconfig.body = config.params
3166          } else {
3167            fetchconfig.body = JSON.stringify(config.params)
3168            fetchconfig.headers['Content-Type'] = 'application/json;charset=utf-8'
3169          }
3170          break
3171        case 'GET':
3172          const paramsList = Object.keys(config.params).map(key => {
3173            return { key, value: encodeURIComponent(config.params[key]) }
3174          })
3175          paramsList.forEach((item, index) => {
3176            if (index === 0) fetchUrl += '?'
3177            fetchUrl += `${item.key}=${item.value}`
3178            if (index < paramsList.length - 1) fetchUrl += '&'
3179          })
3180          break
3181      }
3182      fetch(fetchUrl, fetchconfig)
3183        .then(res => res.json())
3184        .then(res => {
3185          switch (res.code) {
3186            case 200:
3187              resolve(res)
3188              break
3189            case 401:
3190            case 403:
3191              this.gotoLogin()
3192              break
3193            default:
3194              reject(res)
3195              break
3196          }
3197        })
3198        .catch(error => {
3199          if (!config.retry) reject(this.getError(error, 500))
3200          else {
3201            this.request({...config,retry:config.retry-1})
3202              .then(res => resolve(res))
3203              .catch(error => reject(this.getError(error, 500)))
3204          }
3205        })
3206    })
3207  }
3208  gotoLogin() {
3209    if (this.skipPaths.includes(location.pathname)) return
3210    this.redirect_url = location.href
3211    location.href = this.loginPath
3212  }
3213  installScript(url, type = 'text/javascript') {
3214    // 必传的参数,没有就抛出错误
3215    if (!url) throw new Error('请传入URL')
3216    // 创建script元素
3217    const node = document.createElement('script')
3218    node.type = type
3219    node.src = url
3220    // 监听script加载
3221    const promise = new Promise(resolve => {
3222      if (!node.readyState) node.onload = () => resolve()
3223      else {
3224        // IE
3225        node.onreadystatechange = function () {
3226          if (node.readyState === 'loaded' || node.readyState === 'complete') {
3227            node.onreadystatechange = null
3228            resolve()
3229          }
3230        }
3231      }
3232    })
3233    // 添加到head里,正式开始加载
3234    document.getElementsByTagName('head')[0].appendChild(node)
3235    // 返回
3236    return promise
3237  }
3238  getError(error = new Error(), code = 0) {
3239    return {
3240      code, data: error, message: error.message,
3241      timestamp: Math.floor(new Date().getTime() / 1000),
3242    }
3243  }
3244  get redirect_url() {
3245    return this.loginedPath
3246    // return this.cookie.redirect_url
3247  }
3248  set redirect_url(value) {
3249    // this.setCookie('redirect_url', value)
3250  }
3251  upload(file) {
3252    const site_id = parseInt(document.body.getAttribute('site-id'))
3253    return new Promise((resolve, reject) => {
3254      this.checkFile(file).then(() => {
3255        this.getTempKey({ file, site_id })
3256          .then(res => {
3257            if (res.code !== 200) return reject(res)
3258            const credentials = res.data.credentials || {}
3259            const { id, file_path, file_mime } = res.data
3260            this.putOss({ file, file_path, credentials, file_mime })
3261              .then(() => resolve(id))
3262              .catch(error => reject(error))
3263          })
3264          .catch(error => reject(error))
3265      }).catch(reject)
3266    })
3267  }
3268  async getFileOption(file) {
3269    let file_type = 0
3270    let file_name = ''
3271    let file_ext = ''
3272    let file_width = 0
3273    let file_height = 0;
3274    (file.name).replace(/(.*)\.([^\.]*)$/, (_match, p1, p2) => {
3275      file_name = p1
3276      file_ext = p2
3277    })
3278    const fileType = file.type.split('/')[0]
3279    switch (fileType) {
3280    case 'image':
3281      file_type = 2
3282      break
3283    case 'video':
3284      file_type = 3
3285      break
3286    default:
3287      file_type = file.type ? 1 : 0
3288      break
3289    }
3290
3291    if (file_type === 3) {
3292      const video = await new Promise((resolve) => {
3293        const elem = document.createElement('video')
3294        const dataUrl = URL.createObjectURL(file)
3295        // 当前帧的数据是可用的
3296        elem.onloadeddata = () => resolve(elem)
3297        elem.onerror = () => resolve(null)
3298        // 设置 auto 预加载数据, 否则会出现截图为黑色图片的情况
3299        elem.setAttribute('preload', 'auto')
3300        elem.src = dataUrl
3301      })
3302      file_width = video ? video.videoWidth : 0
3303      file_height = video ? video.videoHeight : 0
3304    } else if (file_type === 2) {
3305      const image = await new Promise((resolve) => {
3306        const elem = new Image()
3307        const dataUrl = URL.createObjectURL(file)
3308        elem.onload = () => resolve(elem)
3309        elem.src = dataUrl
3310      })
3311      file_width = image ? image.width : 0
3312      file_height = image ? image.height : 0
3313    }
3314
3315    return { file_type, file_name, file_ext, file_width, file_height }
3316  }
3317  async getTempKey({ file, site_id, group_id, isScreenshot }) {
3318    const { file_type, file_name, file_ext, file_width, file_height } = await this.getFileOption(file)
3319    return this.request({
3320      url: '/web/attachment/upload/token',
3321      method: 'POST',
3322      params: {
3323        type: isScreenshot ? 2 : undefined,
3324        file_type, file_name, file_ext,
3325        file_width, file_height,
3326        site_id: site_id,
3327        group_id: group_id || 0,
3328        file_size: file.size,
3329        file_mime: file.type,
3330      },
3331    })
3332  }
3333  putOss({ file, file_path, file_mime, credentials }) {
3334    const ossClient = new OSS({
3335      region: credentials.Region,
3336      accessKeyId: credentials.AccessKeyId,
3337      accessKeySecret: credentials.AccessKeySecret,
3338      stsToken: credentials.SecurityToken,
3339      bucket: credentials.Bucket,
3340    })
3341    const options = {
3342      // 获取分片上传进度、断点和返回值。
3343      // progress: (p, cpt, res) => {
3344      //   console.log(p);
3345      // },
3346      // 设置并发上传的分片数量。
3347      parallel: 4,
3348      // 设置分片大小。默认值为5 MB,最小值为100 KB。
3349      partSize: 1024 * 1024 * 1,
3350      timeout: 1000 * 60 * 30,
3351      mime: file_mime,
3352      headers: {
3353        'Expires': new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 365 * 3).toUTCString(),
3354        'Cache-Control': 'public,max-age=31536000',
3355        'Content-Type': file_mime,
3356      }
3357    }
3358    if (file.size > 1024 * 1024 * 2) return ossClient.multipartUpload(file_path, file, options)
3359    else return ossClient.put(file_path, file, { headers: {
3360      'Expires': new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 365 * 3).toUTCString(),
3361      'Cache-Control': 'public,max-age=31536000',
3362      'Content-Type': file_mime,
3363    } })
3364  }
3365  getFileExt(name) {
3366    if (!name) return ''
3367    const index = name.lastIndexOf('.')
3368    const ext = name.substring(index + 1) || ''
3369    return ext
3370  }
3371  checkFile(file) {
3372    return Promise.resolve(true)
3373    return new Promise((resolve, reject) => {
3374      const fileExtList = ['txt', 'doc', 'docx', 'ppt', 'pptx', 'xlsx', 'xls', 'pdf', 'jpg', 'png', 'bmp', 'gif', 'jpeg', 'rar', 'zip', 'mp4']
3375      const ext = this.getFileExt(file.name).toLocaleLowerCase()
3376      const isImg = ['jpg', 'png', 'jpeg', 'gif', 'webp', 'webm', 'avif'].includes(ext)
3377      let message = ''
3378      let bool = true
3379      const type = file.type.split('/')[0]
3380      if (!fileExtList.includes(ext)) {
3381        message = '不支持这种类型的文件, 请重选择要上传的文件'
3382        bool = false
3383      } else if (type === 'video' && file.size > 1024 * 1024 * 200) {
3384        message = '视频超过200Mb'
3385        bool = false
3386      } else if (isImg) {
3387        if (ext !== 'gif' && file.size > 1024 * 1024 * 5) {
3388          message = '图片文件超过5Mb'
3389          bool = false
3390        } else if (ext === 'gif' && file.size > 1024 * 1024 * 100) {
3391          message = 'gif文件超过100Mb'
3392          bool = false
3393        }
3394      }
3395      if (bool) resolve(true)
3396      else reject(new Error(message))
3397    })
3398  }
3399}
3400class SwiperElement {
3401  constructor($el) {
3402    this.$el = $el
3403    this.config = JSON.parse($el.getAttribute('swiper')||'{}')
3404    this.$el.removeAttribute('swiper')
3405    const { enable_df, enable_md, enable_xl } = this.config
3406    if (window.innerWidth > 1199) enable_xl && this.init()
3407    else if (window.innerWidth > 767) enable_md && this.init()
3408    else enable_df && this.init()
3409  }
3410  init() {
3411    this.$el.classList.add('swiper-wrap')
3412    // $swiper
3413    this.$swiper = document.createElement('div')
3414    this.$swiper.classList.add('swiper')
3415    // $inner
3416    this.$inner = document.createElement('div')
3417    this.$inner.classList.add('swiper-wrapper')
3418    this.$swiper.append(this.$inner)
3419    // $navigation
3420    if (this.config.navigation) {
3421      this.$navigation = document.createElement('div')
3422      this.$navigation.classList.add('swiper-navigation')
3423      // $prev
3424      this.$prev = document.createElement('div')
3425      this.$prev.classList.add('swiper-navigation_item')
3426      this.$prev.classList.add('swiper-button-prev')
3427      this.$navigation.append(this.$prev)
3428      // $next
3429      this.$next = document.createElement('div')
3430      this.$next.classList.add('swiper-navigation_item')
3431      this.$next.classList.add('swiper-button-next')
3432      this.$navigation.append(this.$next)
3433      this.$swiper.append(this.$navigation)
3434      this.config.navigation = {
3435        nextEl: '.swiper-button-next',
3436        prevEl: '.swiper-button-prev',
3437      }
3438    }
3439    // $pagination
3440    if (this.config.pagination) {
3441      this.$pagination = document.createElement('div')
3442      this.$pagination.classList.add('swiper-pagination')
3443      this.$swiper.append(this.$pagination)
3444      this.config.pagination = {
3445        el: '.swiper-pagination',
3446        clickable: true,
3447      }
3448    }
3449    // $slides
3450    if (this.$el.children.length) this.initSlides()
3451  }
3452  initSlides() {
3453    Array.from(this.$el.children).forEach($item => {
3454      const $slide = document.createElement('div')
3455      $slide.classList.add('swiper-slide')
3456      $slide.append($item)
3457      this.$inner.append($slide)
3458    })
3459    this.$el.append(this.$swiper)
3460    // subSwiper
3461    if (this.config.subSwiper) {
3462      const $subSwiper = this.$swiper.cloneNode(false)
3463      const $subInner = this.$inner.cloneNode(true)
3464      $subSwiper.style.setProperty('--sub-width', this.config.subSwiper.subWidth)
3465      $subSwiper.style.setProperty('--sub-gap', this.config.subSwiper.subGap)
3466      $subSwiper.style.setProperty('--sub-scale', this.config.subSwiper.subScale)
3467      $subSwiper.classList.add('swiper-sub')
3468      $subSwiper.append($subInner)
3469      this.$el.append($subSwiper)
3470      const subSwiper = new Swiper($subSwiper, this.config.subSwiper)
3471      this.config.thumbs = { swiper: subSwiper }
3472      Array.from($subSwiper.querySelectorAll('a')).forEach($link => {
3473        $link.addEventListener('click', event => {
3474          event.preventDefault()
3475        })
3476      })
3477    }
3478    // render
3479    this.swiper = new Swiper(this.$swiper, this.config)
3480  }
3481}
3482class LazyElement {
3483  constructor($target, attribute) {
3484    this.$target = $target
3485    this.format = ''
3486    this.resize = ''
3487    this.src = this.$target.getAttribute(attribute)
3488    this.quality = '/quality,Q_100'
3489    this.initFormat()
3490    this.initSize()
3491    this.updataSrc()
3492    this.updataAttribute()
3493    this.$target.removeAttribute(attribute)
3494  }
3495  updataSrc() {
3496    if (/\.jpg|jpeg|png|gif$/i.test(this.src)) {
3497      this.src = `${this.src}${this.src.includes('?x-oss-process=image')?'':'?x-oss-process=image'}${this.resize}${this.quality}${this.format}`
3498    }
3499  }
3500  initFormat() {
3501    if (window.app.webp) this.format = '/format,webp'
3502    else if (/\.jpg|jpeg$/i.test(this.src)) this.format = '/format,jpg'
3503    else if (/\.png$/i.test(this.src)) this.format = '/format,png'
3504  }
3505  initSize() {
3506    // throw new Error()
3507  }
3508  updataAttribute() {
3509    throw new Error()
3510  }
3511}
3512
3513class LazyImageElement extends LazyElement {
3514  constructor($target) {
3515    super($target, 'lazy-image')
3516  }
3517  // initSize() {
3518  //   this.width = this.$target.parentElement.clientWidth
3519  //   this.height = this.$target.parentElement.clientHeight
3520  //   this.width = Math.ceil(this.width * window.devicePixelRatio)
3521  //   this.height = Math.ceil(this.height * window.devicePixelRatio)
3522  //   if (this.height) this.resize = `/resize,h_${this.height}`
3523  //   else if (this.width) this.resize = `/resize,w_${this.width}`
3524  // }
3525  updataAttribute() {
3526    this.$target.setAttribute('src', this.src)
3527  }
3528}
3529
3530class LazyPosterElement extends LazyElement {
3531  constructor($target) {
3532    super($target, 'lazy-poster')
3533  }
3534  // initSize() {
3535  //   this.width = this.$target.parentElement
3536  //   this.height = this.$target.parentElement
3537  //   this.width = Math.ceil(this.width * window.devicePixelRatio)
3538  //   this.height = Math.ceil(this.height * window.devicePixelRatio)
3539  //   if (this.height) this.resize = `/resize,h_${this.height}`
3540  //   else if (this.width) this.resize = `/resize,w_${this.width}`
3541  // }
3542  updataAttribute() {
3543    this.$target.setAttribute('poster', this.src)
3544  }
3545}
3546
3547class LazyBackgroundElement extends LazyElement {
3548  constructor($target) {
3549    super($target, 'lazy-background')
3550  }
3551  // initSize() {
3552  //   this.width = this.$target.parentElement.scrollWidth
3553  //   this.height = this.$target.parentElement.naturalHeight
3554  //   this.width = Math.ceil(this.width * window.devicePixelRatio)
3555  //   this.height = Math.ceil(this.height * window.devicePixelRatio)
3556  //   if (this.width) this.resize = `/resize,w_${this.width}`
3557  //   else if (this.height) this.resize = `/resize,h_${this.height}`
3558  // }
3559  updataAttribute() {
3560    this.$target.style.setProperty('--lazy-background', `url('${this.src}')`)
3561  }
3562}
3563class CElement {
3564  constructor(id = '', props = {}) {
3565    this.id = id
3566    this.props = props
3567    this.app = window.app
3568    this.$target = document.getElementById(id)
3569    if (!this.$target) throw new Error(id)
3570  }
3571  async init() {
3572    return this
3573  }
3574  caller(scriptName, functionName, params = {}) {
3575    return new Promise((resovle, reject) => {
3576      if (!this.app.scripts[scriptName]) { reject(); return }
3577      Promise.all(this.app.scripts[scriptName].map(script => {
3578        return new Promise((resovle, reject) => {
3579          if (typeof(script[functionName]) !== 'function') reject()
3580          else resovle(script[functionName](params))
3581        })
3582      }))
3583        .then(res => resovle(res))
3584        .catch(err => reject(err))
3585    })
3586  }
3587}
3588class PaginationElement {
3589  constructor(config = {}) {
3590    this.current = config.current || 1
3591    this.total = config.total || 1
3592    this.bullets = config.bullets === undefined ? 2 : 2
3593    this.onClick = config.onClick || null
3594    this.init()
3595  }
3596  init() {
3597    // $el
3598    this.$el = document.createElement('div')
3599    this.$el.classList.add('__pagination')
3600    // $inner
3601    this.$inner = document.createElement('ul')
3602    this.$inner.classList.add('__pagination-inner')
3603    this.$el.append(this.$inner)
3604    if (this.current > 1) this.$inner.append(this.getItem(this.current - 1, '<svg viewBox="0 0 24 24" height="24">
3604<path d="M19.1,21.2L10,12l9.2-9.2L16.3,0l-12,12l12,12L19.1,21.2z"/></svg>'))
3605    if (this.current - this.bullets > 1) this.$inner.append(this.getItem(1))
3606    if (this.current - this.bullets > 2) this.$inner.append(this.getItem())
3607    for (let index = this.bullets; index > 0; index--) {
3608      if (this.current + index * -1 > 0) this.$inner.append(this.getItem(this.current - index))
3609    }
3610    this.$inner.append(this.getItem(this.current))
3611    for (let index = 1; index <= this.bullets; index++) {
3612      if (this.current + index <= this.total) this.$inner.append(this.getItem(this.current + index))
3613    }
3614    if (this.total - (this.current + this.bullets) > 1) this.$inner.append(this.getItem())
3615    if (this.current + this.bullets < this.total) this.$inner.append(this.getItem(this.total))
3616    if (this.current < this.total) this.$inner.append(this.getItem(this.current + 1, '<svg viewBox="0 0 24 24" height="24"><path d="M7.7,0L4.9,2.8L14,12l-9.2,9.2L7.7,24l12-12L7.7,0z"/></svg>'))
3617  }
3618  getItem(num, text) {
3619    const $item = document.createElement('li')
3620    $item.classList.add('__pagination-item')
3621    if (num === this.current) $item.classList.add('__pagination-item--active')
3622    if (!text && (num === this.current - 1 || num === this.current + 1)) $item.classList.add('__pagination-item--near')
3623    else if (num && !text && num !== 1 && num !== this.total && num !== this.current) $item.classList.add('__pagination-item--default')
3624    $item.innerHTML = num ? `<a class="__pagination-link" href="javascript:;">${text || num}</a>` : `<span class="__pagination-dot">•••</span>`
3625    if (this.onClick && num) $item.addEventListener('click', () => this.onClick(num))
3626    return $item
3627  }
3628}
3629let albumDialogIndex = 0
3630class AlbumDialog {
3631  constructor(data = [], props = {}) {
3632    this.data = data
3633    this.$dialog = null
3634    this.$close = null
3635    this.id = albumDialogIndex++
3636    this.pictureSwiperId = `album_dialog-picture--${this.id}`
3637    this.thumbSwiperId = `album_dialog-thumb--${this.id}`
3638    this.pictureSwiper = null
3639    this.magnifier_status = props.magnifier_status || false
3640    this.onSlideChange = props.onSlideChange
3641    this.initHtml()
3642    this.initSwiper()
3643    this.initClose()
3644    this.initMagnifier()
3645  }
3646  initHtml() {
3647    let html = ''
3648    this.data.forEach(item => {
3649      html += `
3650      <div class="album_dialog-item swiper-slide">
3651        <div class="album_dialog-item_inner">
3652          <img class="album_dialog-item_image" loading="lazy"
3653            src="${item.image_url}" alt="${app.getImageAlt(item.image_alt)}" title="${app.getImageTitle(item.image_title)}"
3654            ${item.image_width?`width="${item.image_width}"`:''}
3655            ${item.image_height?`height="${item.image_height}"`:''}
3656          />
3657        </div>
3658      </div>
3659      `
3660    })
3661    this.$dialog = document.createElement('dialog')
3662    this.$dialog.classList.add('album_dialog')
3663    this.$dialog.innerHTML = `
3664    <div class="album_dialog-inner">
3665      <div class="album_dialog-picture swiper" id="${this.pictureSwiperId}">
3666        <div class="swiper-wrapper">${html}</div>
3667        <div class="swiper-navigation_item swiper-button-next"></div>
3668        <div class="swiper-navigation_item swiper-button-prev"></div>
3669      </div>
3670      <div class="album_dialog-thumb swiper" id="${this.thumbSwiperId}">
3671        <div class="swiper-wrapper">${html}</div>
3672      </div>
3673      <div class="album_dialog-close">×</div>
3674    </div>
3675    `
3676    document.body.append(this.$dialog)
3677    this.$close = this.$dialog.querySelector('.album_dialog-close')
3678  }
3679  initSwiper() {
3680    const thumbSwiper = new Swiper(`#${this.thumbSwiperId}`, {
3681      spaceBetween: 10,
3682      slidesPerView: 'auto',
3683      freeMode: true,
3684      watchSlidesProgress: true,
3685    })
3686    this.pictureSwiper = new Swiper(`#${this.pictureSwiperId}`, {
3687      spaceBetween: 10,
3688      navigation: {
3689        nextEl: `#${this.pictureSwiperId} .swiper-button-next`,
3690        prevEl: `#${this.pictureSwiperId} .swiper-button-prev`,
3691      },
3692      thumbs: { swiper: thumbSwiper },
3693      on : {
3694        slideChangeTransitionEnd: () => {
3695          this.onSlideChange && this.onSlideChange(this.pictureSwiper.activeIndex)
3696        },
3697      },
3698    })
3699  }
3700  initClose() {
3701    if (!this.$close) return
3702    this.$close.addEventListener('click', () => {
3703      this.$dialog.open = false
3704    })
3705  }
3706  initMagnifier() {
3707    if (!this.magnifier_status) return
3708    Array.from(this.$dialog.querySelectorAll('.album_dialog-picture .album_dialog-item_inner'))
3709      .forEach($image => new Magnifier($image))
3710  }
3711  show(index = 0) {
3712    if (!this.$dialog || !this.pictureSwiper) return
3713    this.$dialog.open = true
3714    this.pictureSwiper.slideTo(index)
3715  }
3716}
3717class Magnifier {
3718  constructor($el, props = {}) {
3719    this.$el = $el
3720    this.onChange = props.onChange
3721    this.init($el)
3722  }
3723  init() {
3724    if (!this.$el) return
3725    this.$el.classList.add('magnifier')
3726    const calcOffset = event => {
3727      const s = 2
3728      const tx = this.$el.offsetWidth / 2 - event.offsetX
3729      const ty = this.$el.offsetHeight / 2 - event.offsetY
3730      this.$el.style.transform = `translate(${tx}px, ${ty}px) scale(${s})`
3731    }
3732    const onMove = event => {
3733      if (this.$el.style.transform) calcOffset(event)
3734    }
3735    this.$el.addEventListener('click', event => {
3736      event.stopPropagation()
3737      event.preventDefault()
3738      if (this.$el.style.transform) {
3739        this.onChange && this.onChange('end')
3740        this.restore()
3741      } else {
3742        this.onChange && this.onChange('start')
3743        calcOffset(event)
3744      }
3745    })
3746    this.$el.addEventListener('mousemove', onMove)
3747    this.$el.addEventListener('touchmove', onMove)
3748    this.$el.addEventListener('mouseleave', () => this.restore())
3749  }
3750  restore() {
3751    if (!this.$el) return
3752    this.$el.style.transform = ''
3753  }
3754}
3755class ScrollProgress {
3756  constructor($el) {
3757    if (!$el) return
3758    this.$el = $el
3759    this.startScrollY = null
3760    this.startScrollTop = null
3761    this.onScroll()
3762    app.addEventListener(window, 'scroll', () => this.onScroll())
3763  }
3764  onScroll() {
3765    const { top, height } = this.$el.getBoundingClientRect()
3766    const { innerHeight, scrollY } = window
3767    if (top > innerHeight || top < (height * -1)) { this.startScrollY = null; return }
3768    if (this.startScrollY === null) this.startScrollY = scrollY - innerHeight + top
3769    if (this.startScrollY < 0) this.startScrollY = 0
3770    const progress = (scrollY - this.startScrollY) / (innerHeight + height)
3771    if (progress < 0 || progress > 1) return
3772    this.progress = progress
3773    this.$el.style.setProperty('--progress', progress)
3774  }
3775}
3776class Anchor {
3777  constructor({ $el, $event, $container }) {
3778    this.$event = $event
3779    this.$container = $container || $event
3780    this.$el = $el
3781    this.$anchors = document.getElementById('anchors')
3782    this.show = false
3783    this.timer = null
3784    $el && this.init()
3785  }
3786  init() {
3787    if (!this.$anchors) {
3788      this.$anchors = document.createElement('div')
3789      this.$anchors.id = 'anchors'
3790      document.body.append(this.$anchors)
3791    }
3792    this.$el.classList.add('anchor')
3793    this.$anchors.append(this.$el)
3794    if (!app.query.design && this.$event) {
3795      this.$event.addEventListener('click', event => {
3796        event.stopPropagation()
3797        this.open()
3798      })
3799      app.addEventListener(document, 'click', event => {
3800        ![this.$el, this.$event, this.$container].includes(event.target) && this.close()
3801      })
3802    }
3803  }
3804  changeRect() {
3805    if (!this.$container) return
3806    const { width, height, top, left } = this.$container.getBoundingClientRect()
3807    this.$el.style.setProperty('--width', width + 'px')
3808    this.$el.style.setProperty('--top', top + height + 'px')
3809    this.$el.style.setProperty('--left', left + 'px')
3810    this.$el.style.setProperty('--max-height', window.innerHeight - top - height - 10 + 'px')
3811    !this.show && clearInterval(this.timer)
3812  }
3813  open() {
3814    this.show = true
3815    this.$el.classList.add('open')
3816    this.changeRect()
3817    this.timer = setInterval(() => this.changeRect(), 500)
3818  }
3819  close() {
3820    this.show = false
3821    this.$el.classList.remove('open')
3822    clearInterval(this.timer)
3823  }
3824}
3825const bodyClassList = document.body.classList
3826class App {
3827  constructor(config = {}) {
3828    this.eventList = []
3829    this.scripts = {}
3830    this.sdk = new SDK()
3831    this.url_suffix = config.url_suffix
3832    this.inquiry_shield_result = !!config.inquiry_shield_result
3833    this.shield = config.shield || true
3834    this.download_inquiry_status = config.download_inquiry_status
3835    this.download_inquiry_dialog = config.download_inquiry_dialog
3836    this.site_id = config.site_id || 0
3837    this.page_id = config.page_id || 0
3838    this.company_email = config.company_email || ''
3839    this.language_code_list = config.language_code_list || []
3840    this.translate_domains = config.translate_domains || {}
3841    this.alternative_language_flags = config.alternative_language_flags || { en: '', pt: '', es: '', fr: '' }
3842    this.default_language = config.default_language || 'en'
3843    this.language = config.language || this.default_language
3844    this.translate_status = config.translate_status || false
3845    this.translate_type = config.translate_type || 1  // 1子目录 2子域名
3846    this.is_private = config.is_private || false
3847    this.alt_brand = '' // '' prefix suffix
3848    this.brand_name = config.brand_name || ''
3849    this.query = Object.fromEntries(new URLSearchParams(window.location.search))
3850    !this.query.design && config.disable_contextmenu && document.addEventListener('contextmenu', event => event.preventDefault())
3851    if (!this.query.design && config.disable_copy) document.oncopy = () => false
3852    this.webp = this.isSupportWebp()
3853    this.page_type = document.body.getAttribute('page-type')
3854    this.content_type = document.body.getAttribute('content-type')
3855    this.getImageTitle = value => {
3856      const brandName = this.brand_name || ''
3857      if (!value || !brandName) return value
3858      switch (this.alt_brand) {
3859        case 'prefix':
3860          return brandName + ' - ' + value
3861        case 'suffix':
3862          return value + ' - ' + brandName
3863        default:
3864          return value
3865      }
3866    }
3867    this.getImageAlt = this.getImageTitle
3868    // this.initDev()
3869  }
3870  async init(scripts) {
3871    if (window.lighthouse) return this
3872    this.initShield()
3873    this.initAccessRecord()
3874    this.initInquiryTrack()
3875    this.initLazyPoster()
3876    // this.initLazyImage()
3877    this.initLazyBackground()
3878    this.initVideo()
3879    this.initSwiper()
3880    this.initCurrentLanguage()
3881    this.initScripts(scripts)
3882    this.initCookieInfo()
3883    this.initTheme()
3884    this.initScroll()
3885    this.initVideoAutoPlay()
3886    this.initTop()
3887    this.initHash()
3888    this.initWebp()
3889    this.initOnline()
3890    this.initTranslate()
3891    this.initWidgetInquiry()
3892    this.initWidgetTranslate()
3893    this.initScrollX()
3894    this.initInquirySuccess()
3895    Array.from(document.querySelectorAll('[scroll-progress]')).forEach($el => new ScrollProgress($el))
3896    !this.query.design && new WOW({ animateClass: 'animate__animated' }).init()
3897    await this.sdk.init()
3898    document.dispatchEvent(new CustomEvent('appload', { detail: this }))
3899    return this
3900  }
3901  get cookies() {
3902    const data = {}
3903    document.cookie.split('; ')
3904      .forEach(item => {
3905        const [key, value] = item.split('=')
3906        if (key && value) data[key] = value
3907      })
3908    data.get = key => data[key]
3909    data.set = (name = '', value = '', age = 60 * 60 * 24 * 7) => document.cookie = `${name}=${value};path=/;max-age=${age}`
3910    data.remove = (name = '') => document.cookie = `${name}=;path=/;max-age=0`
3911    return data
3912  }
3913  initInquirySuccess() {
3914    if (!this.query.design && this.content_type === 'inquiry-success' && localStorage.getItem('inquiry_access')) {
3915      setTimeout(() => {
3916        if (confirm('Is it back to the original page?')) window.location.href = localStorage.getItem('inquiry_access')
3917        localStorage.removeItem('inquiry_access')
3918      }, 1000)
3919    }
3920  }
3921  getSuffixUrl(url = '') {
3922    switch (this.url_suffix) {
3923      case 'suffix_empty':
3924        if (/(?:\.html|\/)+$/.test(url)) url = url.replace(/(?:\.html|\/)+$/, '')
3925        break
3926      case 'suffix_directory':
3927        if (!/\/$/.test(url)) url = url.replace(/\.html$/, '') + '/'
3928        break
3929      default:
3930        if (!/\.html$/.test(url)) url = url.replace(/\/$/, '') + '.html'
3931        break
3932    }
3933    return url
3934  }
3935  initAccessRecord() {
3936    const page_id = parseInt(document.body.getAttribute('page-id'))
3937    if (!page_id) return
3938    switch (this.page_type) {
3939      case 'detail':
3940        switch (this.content_type) {
3941          case 'product':
3942            const productRecord = JSON.parse(localStorage.getItem('product_record') || '[]')
3943            const activeIndex = productRecord.findIndex(item => item.page_id === page_id)
3944            const $image = document.querySelector('.__product_album img')
3945            const $title = document.querySelector('.__text[source="page-title"]')
3946            const itemData = { page_id, checked: true, image: $image ? $image.src : '', title: $title ? $title.textContent : '', url: window.location.href }
3947            switch (activeIndex) {
3948              case -1:
3949                productRecord.unshift(itemData)
3950                localStorage.setItem('product_record', JSON.stringify(productRecord))
3951                break
3952              case 0:
3953                break
3954              default:
3955                productRecord.splice(activeIndex, 1)
3956                productRecord.unshift(itemData)
3957                localStorage.setItem('product_record', JSON.stringify(productRecord))
3958                break
3959            }
3960            break
3961        }
3962        break
3963    }
3964  }
3965  openDialog(id = '') {
3966    sessionStorage.removeItem('inquiry_download')
3967    const $dialog = document.getElementById(id)
3968    if ($dialog) {
3969      $dialog.classList.add('show')
3970      Array.from($dialog.querySelectorAll('iframe')).forEach($item => {
3971        if ($item.dataset.src) $item.src = $item.dataset.src
3972      })
3973    }
3974  }
3975  closeDialog() {
3976    if (this.query.design) return
3977    sessionStorage.removeItem('inquiry_download')
3978    Array.from(document.querySelectorAll('.__dialog'))
3979      .forEach($dialog => {
3980        $dialog.classList.remove('show')
3981        Array.from($dialog.querySelectorAll('iframe'))
3982          .forEach($item => {
3983            $item.dataset.src = $item.src
3984            $item.src = ''
3985          })
3986        Array.from($dialog.querySelectorAll('video'))
3987          .forEach($item => $item.pause())
3988      })
3989  }
3990  download(str = '') {
3991    if (!(this.download_inquiry_status && this.download_inquiry_dialog) || localStorage.getItem('inquiry_made')) {
3992      window.open(atob(str))
3993      sessionStorage.removeItem('inquiry_download')
3994    } else {
3995      this.openDialog(this.download_inquiry_dialog)
3996      sessionStorage.setItem('inquiry_download', str)
3997    }
3998  }
3999  initScrollX() {
4000    // if (this.query.design) return
4001    const { innerWidth } = window
4002    if (innerWidth > 1200) Array.from(document.querySelectorAll('.scroll_x--xl')).forEac
4002h($el => this.initScrollXElement($el))
4003    else if (innerWidth > 768) Array.from(document.querySelectorAll('.scroll_x--md')).forEach($el => this.initScrollXElement($el))
4004    else Array.from(document.querySelectorAll('.scroll_x--df')).forEach($el => this.initScrollXElement($el))
4005  }
4006  initScrollXElement($el) {
4007    const $inner = $el.children[0]
4008    const $module = $el.parentElement.parentElement
4009    const $moduleInner = $el.parentElement
4010    document.addEventListener('scroll', () => {
4011      // moduleHeight
4012      let moduleHeight = 0
4013      const speed = parseFloat($el.style.getPropertyValue('--scroll-x-speed') || '1')
4014      Array.from($inner.children).forEach($item => {
4015        const { marginTop, marginBottom } = getComputedStyle($item)
4016        moduleHeight += ($item.clientHeight + parseFloat(marginTop) + parseFloat(marginBottom)) / speed
4017      })
4018      Array.from($moduleInner.children).forEach($item => {
4019        if ($item !== $el) {
4020          const { marginTop, marginBottom } = getComputedStyle($item)
4021          moduleHeight += ($item.clientHeight + parseFloat(marginTop) + parseFloat(marginBottom)) / speed
4022        }
4023      })
4024      const { paddingTop, paddingBottom } = getComputedStyle($module)
4025      moduleHeight += (parseFloat(paddingTop) + parseFloat(paddingBottom)) / speed
4026      $module.style.height = `${moduleHeight}px`
4027      // scrollValue
4028      const scrollValue = $module.getBoundingClientRect().top * -1
4029      const width = $inner.scrollWidth - $inner.clientWidth
4030      const height = moduleHeight - $moduleInner.clientHeight
4031      $inner.scrollLeft = scrollValue / height * width
4032    })
4033  }
4034  initWidgetInquiry() {
4035    if (this.query.design) return
4036    const $icon = document.querySelector('.__widget_inquiry-icon')
4037    const $dialog = document.getElementById(window.widgets_info.inquiry_dialog)
4038    $icon && $dialog && $icon.addEventListener('click', event => {
4039      event.preventDefault()
4040      event.stopPropagation()
4041      $dialog.classList.add('show')
4042      Array.from($dialog.querySelectorAll('iframe')).forEach($item => {
4043        if ($item.dataset.src) $item.src = $item.dataset.src
4044      })
4045    })
4046  }
4047  initWidgetTranslate() {
4048    if (this.query.design) return
4049    const $icon = document.querySelector('.__widget_translate-icon')
4050    const $dialog = document.getElementById(window.widgets_info.translate_dialog)
4051    $icon && $dialog && $icon.addEventListener('click', event => {
4052      event.preventDefault()
4053      event.stopPropagation()
4054      $dialog.classList.add('show')
4055      Array.from($dialog.querySelectorAll('iframe')).forEach($item => {
4056        if ($item.dataset.src) $item.src = $item.dataset.src
4057      })
4058    })
4059  }
4060  initCurrentLanguage() {
4061    if (this.translate_status) {
4062      let currentCode
4063      if (this.translate_type === 1) {
4064        const exec = /^\/([^\/]+)/.exec(location.pathname)
4065        currentCode = exec ? this.language_code_list.find(code => code === exec[1]) || undefined : undefined
4066      } else {
4067        currentCode = this.language_code_list.find(code => code === location.hostname.split('.')[0]) || undefined
4068        Object.keys(this.translate_domains).forEach(code => {
4069          const domain = this.translate_domains[code].replace(/^http:\/\//, '').replace(/^https:\/\//, '').replace(/^\/\//, '').replace(/\/$/, '')
4070          if (domain === location.hostname) currentCode = code
4071        })
4072      }
4073      if (currentCode) this.language = currentCode
4074    }
4075  }
4076  initTranslate() {
4077    if (this.translate_status) this.uploadCurrentLanguage(this.language || this.default_language)
4078    else {
4079      this.uploadCurrentLanguage(sessionStorage.getItem('translate') || this.default_language, !!sessionStorage.getItem('translate'))
4080      Array.from(document.querySelectorAll('[translate-code]'))
4081        .forEach($item => {
4082          Array.from($item.querySelectorAll('a[href="javascript:;"]'))
4083            .forEach($link => {
4084              $link.addEventListener('click', () => {
4085                this.uploadCurrentLanguage($item.getAttribute('translate-code') || this.default_language)
4086                Array.from(document.querySelectorAll('.__dialog'))
4087                  .forEach($dialog => {
4088                    $dialog.classList.remove('show')
4089                    Array.from($dialog.querySelectorAll('iframe'))
4090                      .forEach($item => {
4091                        $item.dataset.src = $item.src
4092                        $item.src = ''
4093                      })
4094                    Array.from($dialog.querySelectorAll('video'))
4095                      .forEach($item => $item.pause())
4096                  })
4097              })
4098            })
4099        })
4100    }
4101  }
4102  uploadCurrentLanguage(code, googleTranslate = true) {
4103    if (!code) return
4104    this.language = code
4105    Array.from(document.querySelectorAll('[translate-code].active')).forEac
4105h($item => $item.classList.remove('active'))
4106    Array.from(document.querySelectorAll(`[translate-code="${code}"]`)).forEach($item => $item.classList.add('active'))
4107    Array.from(document.querySelectorAll('[current-language="title"]')).forEach($item => {
4108      $item.setAttribute('translate', 'no')
4109      $item.innerHTML = mapLanguageTitleByCode[code]
4110    })
4111    Array.from(document.querySelectorAll('[current-language="code"]')).forEach($item => {
4112      $item.setAttribute('translate', 'no')
4113      $item.innerHTML = code
4114    })
4115    Array.from(document.querySelectorAll('[current-language="icon"] img')).forEach($item => {
4116      $item.src = `/assets/image/flag/${this.alternative_language_flags[code] ? code+'-'+this.alternative_language_flags[code] : code === 'zh-tw' ? 'zh-hk' : code}.svg`
4117      $item.srcset = ''
4118    })
4119    if (googleTranslate) sessionStorage.setItem('translate', code)
4120    if (!this.translate_status && !this.query.design && googleTranslate) {
4121      cr.googleTranslate.setIsEnterpriseClient('false')
4122      if (code === this.default_language) cr.googleTranslate.revert()
4123      else {
4124        cr.googleTranslate.setCachedTranslations('{}', code)
4125        cr.googleTranslate.translate(this.default_language, code)
4126      }
4127    }
4128  }
4129  initOnline() {
4130    Array.from(document.querySelectorAll('.__online-inner')).forEach($online => {
4131      const $QRList = Array.from($online.querySelectorAll('.__online-li--qr'))
4132      document.addEventListener('click', () => {
4133        $online.classList.remove('hover')
4134        $QRList.forEach($item => $item.classList.remove('hover'))
4135      })
4136      $online.addEventListener('click', event => {
4137        !this.query.design && event.stopPropagation()
4138        $online.classList.add('hover')
4139      })
4140      $online.addEventListener('mouseenter', () => $online.classList.add('hover'))
4141      $online.addEventListener('mouseleave', () => $online.classList.remove('hover'))
4142      $QRList.forEach($item => {
4143        $item && $item.addEventListener('click', event => {
4144          event.stopPropagation()
4145          $item.classList.add('hover')
4146        })
4147        $item && $item.addEventListener('mouseenter', () => $item.classList.add('hover'))
4148        $item && $item.addEventListener('mouseleave', () => $item.classList.remove('hover'))
4149      })
4150    })
4151  }
4152  barred(type = '', password_unlock = 0) {
4153    const { shield_verify, shield_verify_error_password } = this.cookies
4154    if (shield_verify) this.cookies.remove('shield_verify')
4155    if (shield_verify_error_password) this.cookies.remove('shield_verify_error_password')
4156    document.head.innerHTML = `
4157      <meta charset="UTF-8">
4158      <meta name="viewport" content="width=device-width, initial-scale=1">
4159      <style>
4160      *{box-sizing:border-box}
4161      :root{--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#667085;--line:#d8dee8;--primary:#2563eb;--primary-dark:#1d4ed8}
4162      body{margin:0;min-height:100svh;display:grid;place-items:center;padding:32px 18px;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;color:var(--text);background:linear-gradient(135deg, #f8fafc, var(--bg))}
4163      main{width:min(100%, 540px);padding:clamp(28px, 6vw, 48px);border:1px solid rgb(23 32 51 / 8%);border-radius:20px;background:var(--card);box-shadow:0 24px 70px rgb(15 23 42 / 12%)}
4164      main ~ *{display:none}
4165      h1{margin:0 0 14px;font-size:clamp(28px, 6vw, 40px);line-height:1.15;letter-spacing:0}
4166      p{margin:0;font-size:17px;line-height:1.65;color:var(--muted)}
4167      .divider{display:flex;align-items:center;gap:16px;margin:30px 0;color:#98a2b3;font-size:13px;font-weight:700;letter-spacing:.12em}
4168      .divider::before,
4169      .divider::after{content:"";flex:1;height:1px;background:var(--line)}
4170      form{display:grid;grid-template-columns:1fr 132px;gap:12px;margin-top:16px}
4171      input,
4172      button{width:100%;min-height:54px;border-radius:12px;font:inherit}
4173      input{border:1px solid var(--line);padding:0 16px;color:var(--text);background:#fff}
4174      input:focus{outline:3px solid rgb(37 99 235 / 16%);border-color:var(--primary)}
4175      button{border:0;color:#fff;background:var(--primary);font-weight:700;cursor:pointer}
4176      button:hover{background:var(--primary-dark)}
4177      @media (max-width:560px){
4178        main{border-radius:16px}
4179        form{grid-template-columns:1fr}
4180      }
4181      </style>
4182    `
4183    document.body.innerHTML = `
4184      <main id="${type}">
4185        <p style="text-align:center;margin-bottom:20px">
4186          <svg height="200" viewBox="0 0 1107 1024" xmlns="http://www.w3.org/2000/svg">
4187            <path d="M134.503784 862.927568C47.602162 767.723243 0 643.736216 0 514.767568c0-284.505946 228.601081-514.767568 510.892973-514.767568s510.892973 230.261622 510.892973 514.767568c0 128.968649-47.602162 252.955676-134.503784 348.16h-752.778378z" fill="#555C6B" />
4188            <path d="M431.187027 826.395676a46.439784 46.439784 0 0 1 0-65.868108L1026.767568 164.393514c18.265946-18.265946 47.602162-18.265946 65.868108 0 18.265946 18.265946 18.265946 47.602162 0 65.868108L497.055135 826.395676a46.439784 46.439784 0 0 1-65.868108 0z m-91.883243-91.32973c-12.730811-12.730811-12.730811-33.210811 0-45.941622L955.917838 73.063784c12.730811-12.730811 33.210811-12.730811 45.941621 0 12.730811 12.730811 12.730811 33.210811 0 45.941621L385.245405 735.065946c-12.730811 12.177297-33.210811 12.177297-45.941621 0z m-68.635676-68.635676c-5.535135-5.535135-5.535135-14.944865 0-20.48L912.19027 4.428108c5.535135-5.535135 14.391351-5.535135 20.48 0 5.535135 5.535135 5.535135 14.944865 0 20.48L291.148108 666.43027c-5.535135 5.535135-14.944865 5.535135-20.48 0zM1062.745946 57.565405c9.40973-9.40973 12.177297-23.247568 7.195676-35.424864s-16.605405-19.926486-29.88973-19.926487-24.908108 7.749189-29.88973 19.926487-2.214054 26.015135 7.195676 35.424864c12.177297 12.730811 32.657297 12.730811 45.388108 0z" fill="#555C6B" />
4189            <path d="M45.941622 870.676757c0-3.321081 1.107027-6.088649 3.321081-8.302703 2.214054-2.214054 4.981622-3.321081 8.302702-3.321081H891.156757c3.321081 0 6.088649 1.107027 8.302702 3.321081 2.214054 2.214054 3.321081 4.981622 3.321082 8.302703s-1.107027 6.088649-3.321082 8.302702c-2.214054 2.214054-4.981622 3.321081-8.302702 3.321082H57.565405c-3.321081 0-6.088649-1.107027-8.302702-3.321082-2.214054-1.660541-3.874595-4.981622-3.321081-8.302702z m877.318919 0c0-3.321081 1.107027-6.088649 3.321081-8.302703s4.981622-3.321081 8.302702-3.321081h32.103784c3.321081 0 6.088649 1.107027 8.302703 3.321081s3.321081 4.981622 3.321081 8.302703-1.107027 6.088649-3.321081 8.302702c-2.214054 2.214054-4.981622 3.321081-8.302703 3.321082H935.437838c-3.321081 0-6.088649-1.107027-8.302703-3.321082-2.214054-1.660541-3.874595-4.981622-3.874594-8.302702zM339.303784 1008.501622c0-3.321081 1.107027-6.088649 3.321081-8.302703 2.214054-2.214054 4.981622-3.321081 8.302703-3.321081h387.459459c3.321081 0 6.088649 1.107027 8.302703 3.321081 2.214054 2.214054 3.321081 4.981622 3.321081 8.302703 0 6.642162-5.535135 11.623784-11.623784 11.623783h-387.459459c-6.088649 0-11.623784-4.981622-11.623784-11.623783zM178.231351 939.865946c0-6.642162 4.981622-11.623784 11.623784-11.623784h79.152433c3.321081 0 6.088649 1.107027 8.302702 3.321081s3.321081 4.981622 3.321081 8.302703c0 6.642162-5.535135 11.623784-11.623783 11.623784H189.855135c-3.321081 0-6.088649-1.107027-8.302703-3.321081-2.214054-2.214054-3.321081-5.535135-3.321081-8.302703z m538.015135 0c0-3.321081 1.10
41897027-6.088649 3.321082-8.302703 2.214054-2.214054 4.981622-3.321081 8.302702-3.321081H841.340541c3.321081 0 6.088649 1.107027 8.302702 3.321081 2.214054 2.214054 3.321081 4.981622 3.321081 8.302703s-1.107027 6.088649-3.321081 8.302703-4.981622 3.321081-8.302702 3.321081h-113.470271c-6.088649 0-11.623784-4.981622-11.623784-11.623784z m-153.876756 0c0-6.642162 5.535135-11.623784 11.623784-11.623784h44.834594c6.642162 0 11.623784 5.535135 11.623784 11.623784 0 3.321081-1.107027 6.088649-3.321081 8.302703-2.214054 2.214054-4.981622 3.321081-8.302703 3.321081h-44.834594c-3.321081 0-6.088649-1.107027-8.302703-3.321081-2.214054-2.214054-3.321081-5.535135-3.321081-8.302703z m-260.704865 0c0-6.642162 5.535135-11.623784 11.623784-11.623784h216.423783c3.321081 0 6.088649 1.107027 8.302703 3.321081s3.321081 4.981622 3.321081 8.302703c0 6.642162-5.535135 11.623784-11.623784 11.623784H313.288649c-6.642162 0-11.623784-4.981622-11.623784-11.623784z" fill="#757A85" />
4190            <path d="M145.020541 643.182703c29.88973 0 53.690811-24.354595 53.69081-54.244325s-24.354595-53.690811-54.244324-53.69081-53.690811 24.354595-53.690811 53.69081c0 14.391351 5.535135 28.229189 16.051892 38.192433 9.963243 10.516757 23.801081 16.051892 38.192433 16.051892z" fill="#BBBDC3" />
4191            <path d="M223.065946 643.182703c42.620541 0 76.938378-34.871351 76.384865-77.491892 0-42.620541-34.871351-76.938378-76.938379-76.938379S145.574054 523.07027 145.574054 565.690811c0 43.174054 34.871351 77.491892 77.491892 77.491892z" fill="#BBBDC3" />
4192            <path d="M295.576216 643.182703c34.871351 0 63.100541-28.782703 63.100541-63.654054s-28.782703-63.100541-63.654054-63.100541-63.100541 28.229189-63.100541 63.100541c0 16.605405 6.642162 33.210811 18.81946 44.834594s28.229189 18.819459 44.834594 18.81946z m-188.748108-153.876757c8.856216 0 16.051892-7.195676 16.051892-16.051892s-7.195676-16.051892-16.051892-16.051892-16.051892 7.195676-16.051892 16.051892 7.195676 16.051892 16.051892 16.051892z m613.846487-102.4c22.694054 0 40.96-18.819459 40.96-41.513514s-18.819459-40.96-41.513514-40.96-41.513514 18.265946-41.513513 41.513514c0 11.07027 4.428108 21.587027 12.177297 29.336216s19.372973 11.623784 29.88973 11.623784z" fill="#BBBDC3" />
4193            <path d="M780.454054 386.905946c32.657297 0 58.672432-26.568649 58.672432-59.225946 0-32.657297-26.568649-58.672432-59.225945-58.672432-32.657297 0-58.672432 26.568649-58.672433 59.225946 0 15.498378 6.088649 30.443243 17.158919 41.513513 11.07027 10.516757 26.568649 17.158919 42.067027 17.158919z" fill="#BBBDC3" />
4194            <path d="M836.358919 386.905946c26.568649 0 48.155676-22.140541 48.155676-48.709189s-21.587027-48.709189-48.70919-48.155676c-26.568649 0-48.709189 21.587027-48.709189 48.709189 0 12.730811 4.981622 25.461622 14.391352 34.317838 9.40973 8.302703 21.587027 13.837838 34.871351 13.837838zM691.338378 269.007568c6.642162 0 12.177297-5.535135 12.177298-12.177298 0-6.642162-5.535135-12.177297-12.177298-12.177297-6.642162 0-12.177297 5.535135-12.177297 12.177297 0 3.321081 1.10
41947027 6.088649 3.321081 8.302703 2.767568 2.767568 6.088649 3.874595 8.856216 3.874595z m-422.33081 0c12.730811 0 24.354595-7.749189 29.336216-19.926487s2.214054-25.461622-6.642162-34.871351c-9.40973-9.40973-22.694054-12.177297-34.871352-7.195676-12.177297 4.981622-19.926486 16.605405-19.926486 29.336216 0 8.302703 3.321081 16.605405 9.40973 22.694054 6.088649 6.642162 14.391351 9.963243 22.694054 9.963244z" fill="#BBBDC3" />
4195            <path d="M314.395676 269.007568c18.265946 0 34.871351-11.07027 42.067027-28.22919 7.195676-17.158919 3.321081-36.531892-9.963244-49.816216s-32.657297-17.158919-49.816216-9.963243-28.229189 23.801081-28.229189 42.067027c0.553514 25.461622 21.033514 45.941622 45.941622 45.941622z" fill="#BBBDC3" />
4196            <path d="M357.56973 269.007568c14.944865 0 28.782703-8.856216 34.871351-23.247568 6.088649-13.837838 2.767568-30.443243-8.302703-40.96s-27.122162-13.837838-40.96-8.302703c-13.837838 6.088649-23.247568 19.372973-23.247567 34.871352 0 9.963243 3.874595 19.372973 11.07027 26.568648 7.195676 7.195676 16.605405 11.07027 26.568649 11.070271z" fill="#BBBDC3" />
4197            <path d="M768.276757 604.436757v0.553513h-1.107027L514.767568 787.096216l-251.848649-182.105946h-1.107027v-0.553513l-33.210811-301.111352v-6.642162l52.583784-59.225946 232.475676-28.782702 232.475675 28.782702 55.351352 61.993514v3.321081l-33.210811 301.664865z" fill="#09c287" />
4198            <path d="M746.136216 237.457297L514.767568 208.674595v578.421621l252.402162-182.105946h1.107027v-0.553513l33.210811-301.664865v-3.321081z" fill="#09c287" />
4199            <path d="M745.582703 595.027027v0.553514h-1.107027l-229.708108 166.054054-229.154595-166.054054h-1.107027v-0.553514h-0.553514l-29.889729-274.542703h-0.553514v-6.088648l48.709189-54.244325 211.442163-26.015135 211.995675 26.015135 50.923243 57.011892v2.767568h-0.553513l-30.443243 275.096216z" fill="#20d89d" />
4200            <path d="M725.656216 260.151351L514.767568 234.136216v527.498379l229.708108-166.054054h1.107027v-0.553514l30.443243-275.096216h0.553513v-2.767568z" fill="#20d89d" />
4201            <path d="M565.690811 428.972973h-8.302703v-13.284324c0-16.051892-8.856216-31.55027-22.694054-39.29946s-31.55027-8.302703-45.941622 0-22.694054 23.247568-22.694054 39.29946v12.73081h-8.302702c-1.107027-4.428108-1.660541-8.856216-1.660541-13.837837 0-30.443243 24.354595-54.797838 54.797838-54.797838h2.214054c30.443243 0 54.797838 24.354595 54.797838 54.797838-0.553514 5.535135-1.107027 9.963243-2.214054 14.391351z" fill="#EEEEEE" />
4202            <path d="M426.205405 472.147027c0-28.229189 22.694054-50.923243 50.923244-50.923243h69.742702c28.229189 0 50.923243 22.694054 50.923244 50.923243v15.498378c0 28.229189-22.694054 50.923243-50.923244 50.923244H477.128649c-28.229189 0-50.923243-22.694054-50.923244-50.923244v-15.498378z" fill="#EEEEEE" />
4203            <path d="M512.553514 483.770811c6.642162 0.553514 12.730811-3.321081 14.944864-9.40973 2.767568-6.088649 1.660541-12.730811-2.767567-17.712432-4.428108-4.981622-11.623784-6.088649-17.712433-3.874595s-9.963243 8.302703-9.963243 14.944865c0 3.874595 1.660541 8.302703 4.428108 11.07027 2.767568 3.321081 6.642162 4.981622 11.070271 4.981622z" fill="#09c287" />
4204            <path d="M504.804324 479.342703c0-2.214054 0.553514-3.874595 2.214054-5.535135 1.660541-1.660541 3.321081-2.214054 5.535136-2.214054 4.428108 0 7.749189 3.321081 7.749189 7.749189v20.48c0 4.428108-3.321081 7.749189-7.749189 7.749189-4.428108 0-7.749189-3.321081-7.74919-7.749189v-20.48z" fill="#09c287" />
4205            <path d="M730.084324 799.827027c39.299459 0 70.84973-4.428108 70.84973-9.40973s-31.55027-9.40973-70.84973-9.409729c-39.299459 0-70.84973 4.428108-70.849729 9.409729s31.55027 9.40973 70.849729 9.40973z" fill="#757A85" />
4206            <path d="M727.316757 789.863784c59.779459 0 107.935135-48.709189 107.935135-107.935135s-48.709189-107.935135-107.935135-107.935135c-59.779459 0-107.935135 48.155676-107.935135 107.935135s48.155676 107.935135 107.935135 107.935135z" fill="#F7E63A" />
4207            <path d="M666.983784 650.378378c1.660541-1.660541 4.428108-1.660541 6.088648 0l24.908109 24.908108c0.553514 0.553514 1.107027 1.660541 1.107027 3.321082s-0.553514 2.214054-1.107027 3.321081c-1.660541 1.660541-4.428108 1.660541-6.088649 0l-24.908108-24.908108c-0.553514-0.553514-1.107027-1.660541-1.107027-3.321082s0-2.214054 1.107027-3.321081z" fill="#303030" />
4208            <path d="M697.980541 650.378378c1.660541 1.660541 1.660541 4.428108 0 6.088649l-24.908109 24.908108c-0.553514 0.553514-1.660541 1.107027-3.321081 1.10
42087027-1.107027 0-2.214054-0.553514-3.321081-1.107027-1.660541-1.660541-1.660541-4.428108 0-6.088649l24.908108-24.908108c2.214054-1.660541 4.981622-1.660541 6.642163 0z m58.118918 0c1.660541-1.660541 4.428108-1.660541 6.088649 0l24.908108 24.908108c1.660541 1.660541 1.660541 4.428108 0 6.088649-1.660541 1.660541-4.428108 1.660541-6.088648 0l-24.908109-24.908108c-0.553514-0.553514-1.107027-1.660541-1.107027-3.321081s0-1.660541 1.107027-2.767568z" fill="#303030" />
4209            <path d="M787.096216 650.378378c1.660541 1.660541 1.660541 4.428108 0 6.088649l-24.908108 24.908108c-0.553514 0.553514-1.660541 1.107027-3.321081 1.107027s-2.214054-0.553514-3.321081-1.107027c-1.660541-1.660541-1.660541-4.428108 0-6.088649l24.908108-24.908108c2.214054-1.660541 4.981622-1.660541 6.642162 0zM727.316757 747.243243c7.195676 0 13.284324-6.088649 13.284324-13.284324 0-7.195676-6.088649-13.284324-13.284324-13.284324s-13.284324 6.088649-13.284325 13.284324c0 3.321081 1.660541 6.642162 3.874595 9.40973 2.767568 2.767568 6.088649 4.428108 9.40973 3.874594z" fill="#303030" />
4210          </svg>
4211        </p>
4212        ${type === 'expire'
4213          ? `
4214            <p style="color:currentColor;font-weight:bold;font-size:120%;margin-bottom:1em">I'm sorry! This website may not be accessible due to the following reasons!</p>
4215            <p>1. This site has been stopped by the website administrator.</p>
4216            <p>2. You are using IP access.</p>
4217            `
4218          : `
4219            <p>We're sorry, but you do not have access to this page.</p>
4220            ${this.company_email?`<p>You can email us at <a style="color:var(--primary);font-weight:700" href="mailto:${this.company_email}">${this.company_email}</a></p>`:''}
4221            `
4222        }
4223        ${ password_unlock
4224          ? `
4225            <div class="divider">OR</div>
4226            <p>Please enter password to continue.</p>
4227            <form action="/api/shield-verify" method="post">
4228              <input type="password" name="password" value="${shield_verify_error_password||''}" placeholder="Enter password" aria-label="Password" autocomplete="shield-password" required ${shield_verify?'style="border-color:red"':''}>
4229              <input type="hidden" name="site_id" value="${this.site_id}">
4230              <input type="hidden" name="url" value="${window.location.href}">
4231              <button type="submit">Submit</button>
4232            </form>
4233            ${ shield_verify ? `<p id="message" style="margin-top:12px;font-size:14px;color:red">${shield_verify}</p>` : '' }
4234            `
4235          : ''
4236        }
4237      </main>
4238    `
4239  }
4240  async initShield() {
4241    if (!this.query.design && this.inquiry_shield_result && this.content_type !== 'inquiry' && !localStorage.getItem('inquiry_made')) {
4242      localStorage.setItem('inquiry_access', window.location.href)
4243      window.location.pathname = this.getSuffixUrl('/inquiry')
4244    }
4245    if (this.query.oa) localStorage.setItem('oa', this.query.oa)
4246    if (!this.query.design && !localStorage.getItem('oa')) {
4247      // document.body.style.opacity = 0
4248      this.sdk.request({ url: '/web/site/shield', method: 'get', params: { site_id: this.site_id } })
4249        .then(res => {
4250          const data = res.data || {}
4251          const expire_time = data.expire_time || ''
4252          const is_expire = expire_time && (new Date(expire_time) - new Date()) < 0
4253          if (is_expire) this.barred('expire')
4254          else if (!this.is_private && data.shield && (!res.data.password_unlock || this.cookies.shield_verify != 'true')) this.barred('shield', res.data.password_unlock)
4255          // document.body.style.opacity = 1
4256        })
4257        // .catch(() => document.body.style.opacity = 1)
4258      // if (this.is_expire) this.barred('expire')
4259      // else if (this.shield && !this.is_private) {
4260      //   // document.body.style.opacity = 0
4261      //   this.sdk.request({ url: '/web/site/shield', method: 'get', params: { site_id: this.site_id } })
4262      //     .then(res => {
4263      //       if ((res.data||{}).shield && (!res.data.password_unlock || this.cookies.shield_verify != 'true')) this.barred('shield', res.data.password_unlock)
4264      //       // document.body.style.opacity = 1
4265      //     })
4266      //     // .catch(() => document.body.style.opacity = 1)
4267      // }
4268    }
4269  }
4270  isSupportWebp() {
4271    try {
4272      return document.createElement('canvas').toDataURL('image/webp', 0.5).indexOf('data:image/webp') === 0
4273    } catch(err) {
4274      return false
4275    }
4276  }
4277  initWebp() {
4278    if (window.app.webp) return
4279    Array.from(document.querySelectorAll('img')).forEach(item => {
4280      if (/\/format,webp/.test(item.src)) item.src = item.src.replace('/format,webp', '')
4281      if (/\.webp/.test(item.src)) item.src = item.src.replace(/\.webp\??/, '.webp?x-oss-process=image/format,png&')
4282      item.srcset = ''
4283      item.sizes = ''
4284    })
4285    Array.from(document.querySelectorAll('video')).forEach(item => {
4286      if (/\/format,webp/.test(item.poster)) item.poster = item.poster.replace('/format,webp', '')
4287      if (/\.webp/.test(item.poster)) item.poster = item.poster.replace(/\.webp\??/, '.webp?x-oss-process=image/format,png&')
4288    })
4289    const $style = document.querySelector('style#style')
4290    if ($style) $style.innerHTML = $style.innerHTML.replaceAll('/format,webp', '').replaceAll('.webp);', '.webp?x-oss-process=image/format,png);')
4291  }
4292  initDev() {
4293    // LCP
4294    new PerformanceObserver((entryList) => {
4295      for (const entry of entryList.getEntries()) { console.log('LCP candidate:', entry.startTime, entry) }
4296    })
4297      .observe({type: 'largest-contentful-paint', buffered: true})
4298    // CLS
4299    let cls = 0
4300    new PerformanceObserver((entryList) => {
4301      for (const entry of entryList.getEntries()) {
4302        if (!entry.hadRecentInput) {
4303          cls += entry.value;
4304          console.log('Current CLS value:', cls, entry)
4305        }
4306      }
4307    }).observe({type: 'layout-shift', buffered: true})
4308  }
4309  initSwiper() {
4310    document.querySelectorAll('[swiper]').forEach(item => new SwiperElement(item))
4311  }
4312  initLazyPoster() {
4313    document.querySelectorAll('[lazy-poster]').forEach(item => new LazyPosterElement(item))
4314  }
4315  initLazyImage() {
4316    document.querySelectorAll('[lazy-image]').forEach(item => new LazyImageElement(item))
4317  }
4318  initLazyBackground() {
4319    document.querySelectorAll('[lazy-background]').forEach(item => new LazyBackgroundElement(item))
4320  }
4321  initVideo() {
4322    Array.from(document.querySelectorAll('video[speed]')).forEach($video => {
4323      const speed = $video.getAttribute('speed')
4324      if (!!speed) $video.playbackRate = Number(speed)
4325    })
4326    const userAgent = navigator.userAgent.toLowerCase()
4327    // android wx browser
4328    if (userAgent.includes('android') && userAgent.includes('micromessenger')) {
4329      Array.from(document.querySelectorAll('.__video-inner[autoplay]')).forEach($video => {
4330        $video.controls = true
4331      })
4332    }
4333  }
4334  initScripts(scripts = this.scripts) {
4335    this.scripts = scripts
4336    const promiseList = []
4337    Object.keys(scripts).forEach(key => {
4338      scripts[key].forEach(script => promiseList.push(script.init()))
4339    })
4340    return Promise.all(promiseList)
4341  }
4342  initCookieInfo() {
4343    const $cookie = document.querySelector('.__cookie')
4344    if (!$cookie) return
4345    const $setting = $cookie.querySelector('.__cookie-setting')
4346    const $reject = $cookie.querySelector('.__cookie-reject')
4347    const $accept = $cookie.querySelector('.__cookie-accept')
4348    const $confirm = $cookie.querySelector('.__cookie-confirm')
4349    const $dialog = $cookie.querySelector('.__cookie_dialog')
4350    const $dialogClose = $cookie.querySelector('.__cookie_dialog-close')
4351    if (!localStorage.getItem('COOKIE')) {
4352      $cookie.classList.add('__cookie--show')
4353      // document.body.style.setProperty('--safe-bottom', $cookie.clientHeight + 'px')
4354    }
4355    $setting && $setting.addEventListener('click', () => {
4356      if ($dialog) $dialog.open = true
4357    })
4358    $dialogClose && $dialogClose.addEventListener('click', () => {
4359      if ($dialog) $dialog.open = false
4360    })
4361    $confirm && $confirm.addEventListener('click', () => {
4362      localStorage.setItem('COOKIE', 1)
4363      $cookie.classList.remove('__cookie--show')
4364      if ($dialog) $dialog.open = false
4365    })
4366    $reject && $reject.addEventListener('click', () => {
4367      localStorage.setItem('COOKIE', 0)
4368      $cookie.classList.remove('__cookie--show')
4369    })
4370    $accept && $accept.addEventListener('click', () => {
4371      localStorage.setItem('COOKIE', 1)
4372      $cookie.classList.remove('__cookie--show')
4373    })
4374  }
4375  initTheme() {
4376    const darkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme:dark)')
4377    if (!darkMode) return
4378    if (window.theme === 'auto') this.setTheme('auto', true)
4379    else this.setTheme(window.theme, true)
4380    if (darkMode.addEventListener) darkMode.addEventListener('change', event => {
4381      if (window.theme === 'auto') {
4382        if (event.matches) this.setTheme('dark')
4383        else this.setTheme('light')
4384      }
4385    })
4386  }
4387  setTheme(theme = '', real = false) {
4388    const darkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme:dark)')
4389    bodyClassList.remove('dark')
4390    bodyClassList.remove('light')
4391    if (real) {
4392      window.theme = theme
4393      localStorage.setItem('theme', theme)
4394      bodyClassList.remove('auto')
4395    }
4396    if (theme === 'auto' && darkMode) {
4397      if (darkMode.matches) bodyClassList.add('dark')
4398      else bodyClassList.add('light')
4399    }
4400    bodyClassList.add(theme)
4401  }
4402  initScroll() {
4403    const $header = document.querySelector('.__block--header')
4404    const onScroll = event => {
4405      if (event.wheelDelta > 0 || event.detail < 0) {
4406        bodyClassList.remove('scroll-down')
4407        bodyClassList.add('scroll-up')
4408      }
4409      else if (event.wheelDelta < 0 || event.detail > 0) {
4410        bodyClassList.remove('scroll-up')
4411        bodyClassList.add('scroll-down')
4412      }
4413      if (window.scrollY > ($header ? $header.offsetHeight : 0)) bodyClassList.add('header-overflow')
4414      else bodyClassList.remove('header-overflow')
4415    }
4416    this.addEventListener(window, 'DOMMouseScroll', onScroll)
4417    this.addEventListener(window, 'wheel', onScroll)
4418    this.addEventListener(window, 'mousewheel', onScroll)
4419    this.addEventListener(window, 'scroll', onScroll)
4420  }
4421  initVideoAutoPlay() {
4422    function doPlay(){
4423      WeixinJSBridge.invoke('getNetworkType', {}, () => {
4424        Array.from(document.querySelectorAll('video[autoplay]'))
4425          .forEach($video => $video.play())
4426      })
4427    }
4428    if (window.WeixinJSBridge) doPlay()
4429    else document.addEventListener('WeixinJSBridgeReady', doPlay, false)
4430  }
4431  initTop() {
4432    const $top = document.querySelector('.__top')
4433    $top && $top.addEventListener('click', () => {
4434      scrollTo({ top: 0 })
4435      document.body.classList.remove('header-overflow')
4436    })
4437  }
4438  initHash() {
4439    window.onpopstate = () => {
4440      const hash = decodeURIComponent(location.hash||'#').replace(/^#/, '')
4441      const $target = hash ? document.querySelector(`[name="${hash}"]`) : null
4442      $target && $target.scrollIntoView()
4443    }
4444    window.onpopstate()
4445  }
4446  remove() {
4447    this.eventList.forEach(item => {
4448      const { element, type, listener } = item
4449      element.removeEventListener(type, listener)
4450    })
4451  }
4452  addEventListener(element, type, listener, options) {
4453    this.eventList.push({ element, type, listener })
4454    element.addEventListener(type, listener, options)
4455  }
4456  initInquiryTrack() {
4457    if (!sessionStorage.getItem('inquiry_session')) sessionStorage.setItem('inquiry_session', this.createSign(32))
4458    const inquiryTrack = JSON.parse(sessionStorage.getItem('inquiry_track') || '[]')
4459    inquiryTrack.push({ title: document.title, url: location.href, time: parseInt(new Date().getTime() / 1000) })
4460    sessionStorage.setItem('inquiry_track', JSON.stringify(inquiryTrack))
4461  }
4462  createSign(size = 10) {
4463    const text = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
4464    const rdmIndex = text => Math.random() * text.length | 0
4465    let rdmString = ''
4466    for (; rdmString.length < size; rdmString += text.charAt(rdmIndex(text)));
4467    return rdmString
4468  }
4469  captcha(force = false) {
4470    return new Promise((resolve, reject) => {
4471      this.sdk.request({ url: '/web/site/info?site_id='+this.site_id })
4472        .then(res => {
4473          res = res || {}
4474          const { captcha_status, captcha_app_id } = res.data || {}
4475          if (force || captcha_status) {
4476            this.tencentCaptcha(captcha_app_id)
4477              .then(token => resolve(token))
4478              .catch(error => reject(error))
4479          } else resolve()
4480        })
4481        .catch(error => reject(error))
4482    })
4483  }
4484  tencentCaptcha(captchaAppId) {
4485    return new Promise((resolve, reject) => {
4486      const showCaptcha = () => {
4487        try {
4488          window.TJCaptchaLoaded = true
4489          const captcha = new TencentCaptcha(captchaAppId, res => {
4490            if (res.ret === 0 && !res.errorMessage) {
4491              this.sdk.request({ url: '/home/captcha/verify', method: 'post', params: { ...res, site_id: this.site_id } })
4492                .then(({data:{token}}) => resolve(token))
4493                .catch(error => reject(error.message || 'Captcha Error'))
4494            } else reject(res.errorMessage || 'Captcha Error')
4495          })
4496          captcha.show()
4497        } catch (error) {
4498          reject(error)
4499        }
4500      }
4501      if (window.TJCaptchaLoaded) showCaptcha()
4502      else this.sdk.installScript('https://turing.captcha.qcloud.com/TJCaptcha.js')
4503        .then(() => showCaptcha())
4504        .catch(error => reject(alert(error.message || 'Failed to fetch')))
4505    })
4506  }
4507}
4508const mapLanguageTitleByCode = {
4509  af: 'Afrikaans', // 阿尔巴尼亚语
4510  sq: 'Albanian', // 阿尔巴尼亚语
4511  am: 'Amharic', // 阿姆哈拉语
4512  ar: 'Arabic', // 阿拉伯语
4513  hy: 'Armenian', // 亚美尼亚语
4514  az: 'Azerbaijani', // 阿塞拜疆语
4515  eu: 'Basque', // 巴斯克语
4516  be: 'Belarusian', // 白俄罗斯语
4517  bn: 'Bengali', // 孟加拉语
4518  bs: 'Bosnian', // 波斯尼亚语
4519  bg: 'Bulgarian', // 保加利亚语
4520  ca: 'Catalan', // 加泰罗尼亚语
4521  ceb: 'Cebuano', // 宿务语
4522  ny: 'Chichewa', // 切瓦语
4523  'zh-cn': 'Chinese (Simplified)', // 中文(简体)
4524  'zh-tw': 'Chinese (Traditional)', // 中文(繁体)
4525  co: 'Corsican', // 科西嘉语
4526  hr: 'Croatian', // 克罗地亚语
4527  cs: 'Czech', // 捷克语
4528  da: 'Danish', // 丹麦语
4529  nl: 'Dutch', // 荷兰语
4530  en: 'English', // 英语
4531  eo: 'Esperanto', // 世界语
4532  et: 'Estonian', // 爱沙尼亚语
4533  tl: 'Filipino', // 菲律宾语
4534  fi: 'Finnish', // 芬兰语
4535  fr: 'French', // 法语
4536  fy: 'Frisian', // 弗里斯兰语
4537  gl: 'Galician', // 加利西亚语
4538  ka: 'Georgian', // 格鲁吉亚语
4539  de: 'German', // 德语
4540  el: 'Greek', // 希腊语
4541  gu: 'Gujarati', // 古吉拉特语
4542  ht: 'Haitian Creole', // 海地克里奥尔语
4543  ha: 'Hausa', // 豪萨语
4544  haw: 'Hawaiian', // 夏威夷语
4545  iw: 'Hebrew', // 希伯来语
4546  hi: 'Hindi', // 印地语
4547  hmn: 'Hmong', // 豪莫语
4548  hu: 'Hungarian', // 匈牙利语
4549  is: 'Icelandic', // 冰岛语
4550  ig: 'Igbo', // 伊博语
4551  id: 'Indonesian', // 印度尼西亚语
4552  ga: 'Irish', // 爱尔兰语
4553  it: 'Italian', // 意大利语
4554  ja: 'Japanese', // 日语
4555  jw: 'Javanese', // 爪哇语
4556  kn: 'Kannada', // 卡纳达语
4557  kk: 'Kazakh', // 哈萨克语
4558  km: 'Khmer', // 柬埔寨语
4559  ko: 'Korean', // 韩语
4560  ku: 'Kurdish (Kurmanji)', // 库尔德语(库尔曼吉语)
4561  ky: 'Kyrgyz', // 吉尔吉斯语
4562  lo: 'Lao', // 老挝语
4563  la: 'Latin', // 拉丁语
4564  lv: 'Latvian', // 拉脱维亚语
4565  lt: 'Lithuanian', // 立陶宛语
4566  lb: 'Luxembourgish', // 卢森堡语
4567  mk: 'Macedonian', // 马其顿语
4568  mg: 'Malagasy', // 马尔加什语
4569  ms: 'Malay', // 马来语
4570  ml: 'Malayalam', // 马拉雅拉姆语
4571  mt: 'Maltese', // 马耳他语
4572  mi: 'Maori', // 毛利语
4573  mr: 'Marathi', // 马拉地语
4574  mn: 'Mongolian', // 蒙古语
4575  my: 'Myanmar (Burmese)', // 缅甸(缅甸语)
4576  ne: 'Nepali', // 尼泊尔语
4577  no: 'Norwegian', // 挪威语
4578  ps: 'Pashto', // 普什图语
4579  fa: 'Persian', // 波斯语
4580  pl: 'Polish', // 波兰语
4581  pt: 'Portuguese', // 葡萄牙语
4582  pa: 'Punjabi', // 旁遮普语
4583  ro: 'Romanian', // 罗马尼亚语
4584  ru: 'Russian', // 俄语
4585  sm: 'Samoan', // 萨摩亚语
4586  gd: 'Scottish Gaelic', // 苏格兰盖尔语
4587  sr: 'Serbian', // 塞尔维亚语
4588  st: 'Sesotho', // 塞索托语
4589  sn: 'Shona', // 绍纳语
4590  sd: 'Sindhi', // 信德语
4591  si: 'Sinhala', // 僧伽罗语
4592  sk: 'Slovak', // 斯洛伐克语
4593  sl: 'Slovenian', // 斯洛文尼亚语
4594  so: 'Somali', // 索马里语
4595  es: 'Spanish', // 西班牙语
4596  su: 'Sundanese', // 巽他语
4597  sw: 'Swahili', // 斯瓦希里语
4598  sv: 'Swedish', // 瑞典语
4599  tg: 'Tajik', // 塔吉克语
4600  ta: 'Tamil', // 泰米尔语
4601  te: 'Telugu', // 泰卢固语
4602  th: 'Thai', // 泰语
4603  tr: 'Turkish', // 土耳其语
4604  uk: 'Ukrainian', // 乌克兰语
4605  ur: 'Urdu', // 乌尔都语
4606  uz: 'Uzbek', // 乌兹别克语
4607  vi: 'Vietnamese', // 越南语
4608  cy: 'Welsh', // 威尔士语
4609  xh: 'Xhosa', // 科萨语
4610  yi: 'Yiddish', // 意第绪语
4611  yo: 'Yoruba', // 约鲁巴语
4612  zu: 'Zulu', // 祖鲁语
4613}
4614class CEButton extends CElement {
4615  constructor(id = '', config = {}) {
4616    super(id, config)
4617    this.event = config.event
4618    this.scroll = config.scroll
4619    this.dialog = config.dialog
4620  }
4621  init() {
4622    if (window.app.query.design) return
4623    this.$target.addEventListener('click', event => {
4624      switch (this.event) {
4625        case 'scroll':
4626          event.preventDefault()
4627          event.stopPropagation()
4628          switch(this.scroll) {
4629            case 'top':
4630              this.scrollTop()
4631              break
4632            case 'bottom':
4633              this.scrollBottom()
4634              break
4635            case 'prev':
4636              this.scrollPrev()
4637              break
4638            case 'next':
4639              this.scrollNext()
4640              break
4641            default:
4642              this.scrollModule()
4643              break
4644          }
4645          break
4646        case 'open-dialog':
4647          event.preventDefault()
4648          event.stopPropagation()
4649          app.openDialog(this.dialog)
4650          break
4651        case 'close-dialog':
4652          event.preventDefault()
4653          event.stopPropagation()
4654          app.closeDialog()
4655          break
4656        default:
4657          break
4658      }
4659    })
4660  }
4661  scrollTop() {
4662    window.scrollTo({
4663      top: 0,
4664      behavior: 'smooth'
4665    })
4666  }
4667  scrollBottom() {
4668    window.scrollTo({
4669      top: document.body.scrollHeight,
4670      behavior: 'smooth'
4671    })
4672  }
4673  scrollPrev() {
4674    const $module = this.getParent(this.$target, '__module')
4675    if (!$module.previousElementSibling) return
4676    $module.previousElementSibling.scrollIntoView()
4677  }
4678  scrollNext() {
4679    const $module = this.getParent(this.$target, '__module')
4680    if (!$module.nextElementSibling) return
4681    $module.nextElementSibling.scrollIntoView()
4682  }
4683  scrollModule() {
4684    // location.hash = this.scroll  // 装修添加元素时会触发滚动
4685    const $module = document.body.querySelector(`[name="${this.scroll}"]`)
4686    $module && $module.scrollIntoView()
4687  }
4688  getParent($target, className) {
4689    const $parent = $target.parentNode
4690    if ($parent.classList.contains(className)) return $parent
4691    else return this.getParent($parent, className)
4692  }
4693}
4694class CECheckbox extends CElement {
4695  constructor(id = '', props = {}) {
4696    super(id, props)
4697    this.event = props.event || 'inquiry-related'
4698    this.source = props.source || 'product-selected'
4699    this.data = props.data || {}
4700    this.$input = this.$target.querySelector('.form-check-input')
4701  }
4702  init() {
4703    if (window.app.query.design || !this.$input) return
4704    this.initChecked()
4705    this.initEvent()
4706  }
4707  initChecked() {
4708    switch (this.event) {
4709      case 'inquiry-related':
4710        switch (this.source) {
4711          case 'product-selected':
4712            const data = JSON.parse(localStorage.getItem('product_selected') || '[]')
4713            const target = data.find(item => item.page_id === this.data.page_id)
4714            this.$input.checked = target && target.checked
4715            break
4716        }
4717        break
4718    }
4719  }
4720  initEvent() {
4721    this.$input.addEventListener('click', event => {
4722      let promise = Promise.resolve()
4723      let checked = event.target.checked
4724      this.caller('checkbox', 'setDisabled', { event: this.event, source: this.source, page_id: this.data.page_id, disabled: true })
4725      switch (this.event) {
4726        case 'inquiry-related':
4727          switch (this.source) {
4728            case 'product-selected':
4729              this.caller('inquiry-related', 'setChecked', { source: this.source, ...this.data, checked })
4730              break
4731          }
4732          break
4733      }
4734      promise.then(() => {
4735        this.caller('checkbox', 'setDisabled', { event: this.event, source: this.source, page_id: this.data.page_id, disabled: false })
4736        this.caller('checkbox', 'setChecked', { event: this.event, source: this.source, page_id: this.data.page_id, checked })
4737      })
4738    })
4739  }
4740  setChecked({ event = '', source = '', page_id = 0, checked = false }) {
4741    if (event !== this.event || source !== this.source) return
4742    switch (this.event) {
4743      case 'inquiry-related':
4744        switch (this.source) {
4745          case 'product-selected':
4746            if (this.data.page_id === page_id) this.$input.checked = checked
4747            break
4748        }
4749        break
4750    }
4751  }
4752  setDisabled({ event = '', source = '', page_id = 0, disabled = false }) {
4753    if (event !== this.event || source !== this.source) return
4754    switch (this.event) {
4755      case 'inquiry-related':
4756        switch (this.source) {
4757          case 'product-selected':
4758            if (this.data.page_id === page_id) this.$input.disabled = disabled
4759            break
4760        }
4761        break
4762    }
4763  }
4764}
4765class CECountdownRedirect extends CElement {
4766  constructor(id = '', config = {}) {
4767    super(id, config)
4768    this.timer = config.timer
4769    this.href = config.href
4770  }
4771  init() {
4772    !window.client && this.countdown()
4773  }
4774  countdown() {
4775    if (!this.timer) location.href = this.href
4776    else {
4777      this.$target.innerText = this.timer
4778      setTimeout(() => this.countdown(this.timer--), 1000)
4779    }
4780  }
4781}
4782class CEDetailDirectory extends CElement {
4783  constructor(id = '', config = {}) {
4784    super(id, config)
4785    this.accordion = config.accordion || false
4786  }
4787  init() {
4788    this.initToggle()
4789    this.initActive()
4790  }
4791  initToggle() {
4792    const $toggle = this.$target.querySelector('.__detail_directory-header')
4793    $toggle && $toggle.addEventListener('click', () => {
4794      $toggle.classList.toggle('expanded')
4795    })
4796  }
4797  initActive() {
4798    const $itemList = []
4799    const $targetList = []
4800    let minLevel = null
4801    let scrollLoading = false
4802    const onScroll = (again) => {
4803      if (scrollLoading) return
4804      else {
4805        scrollLoading = true
4806        setTimeout(() => {
4807          scrollLoading = false
4808          !again && onScroll(true)
4809        }, 1000)
4810      }
4811      let minY = 0
4812      let activeIndex = 0
4813      $targetList.forEach(($traget, index) => {
4814        const { y } = $traget.getBoundingClientRect()
4815        if (y >= 0 && (!minY || y <= minY)) {
4816          minY = y
4817          activeIndex = index
4818        }
4819      })
4820      this.accordion && $itemList.forEach($item => $item.classList.remove('show'))
4821      $itemList.forEach(($item, index) => {
4822        if (index === activeIndex) $item.classList.add('active')
4823        else $item.classList.remove('active')
4824        if (this.accordion) {
4825          const level_0 = parseInt($item.style.getPropertyValue('--level'))
4826          if (level_0 === minLevel) $item.classList.add('show')
4827          if (index === activeIndex) {
4828            const parents = this.getParents($item, level_0)
4829            parents.forEach($li => this.showFirstLevelSubItemsAndSelf($li))
4830          }
4831        }
4832      })
4833    }
4834    Array.from(this.$target.querySelectorAll('.__detail_directory-list_item'))
4835      .forEach($item => {
4836        const $traget = document.querySelector($item.children[0].hash)
4837        if ($traget) {
4838          $targetList.push($traget)
4839          $itemList.push($item)
4840          const level = parseInt($item.style.getPropertyValue('--level'))
4841          if (minLevel === null || level < minLevel) minLevel = level
4842        }
4843      })
4844    if (!app.query.design) this.app.addEventListener(window, 'scroll', () => onScroll())
4845    onScroll()
4846  }
4847  showFirstLevelSubItemsAndSelf($item) {
4848    $item.classList.add('show')
4849    const level = parseInt($item.style.getPropertyValue('--level'))
4850    let $next = $item.nextElementSibling
4851    let nextLevel = parseInt($next && $next.style.getPropertyValue('--level'))
4852    while ($next) {
4853      console.count()
4854      if (nextLevel <= level) $next = undefined
4855      else {
4856        if (nextLevel === level + 1) $next.classList.add('show')
4857        $next = $next.nextElementSibling
4858        nextLevel = parseInt($next && $next.style.getPropertyValue('--level'))
4859      }
4860    }
4861  }
4862  getParents($item, level = 0, data = []) {
4863    data.push($item)
4864    let $prev = $item.previousElementSibling
4865    let prevLevel = parseInt($prev && $prev.style.getPropertyValue('--level'))
4866    let prevMaxLevel = level
4867    while ($prev) {
4868      if (prevLevel < prevMaxLevel) {
4869        prevMaxLevel = prevLevel
4870        data.push($prev)
4871      }
4872      $prev = $prev.previousElementSibling
4873      prevLevel = parseInt($prev && $prev.style.getPropertyValue('--level'))
4874    }
4875    return data
4876  }
4877}
4878class CEDetailDownload extends CElement {
4879  constructor(id = '', config = {}) {
4880    super(id, config)
4881  }
4882  init() {
4883    this.initFile()
4884    this.initDialog()
4885  }
4886  initFile() {
4887    Array.from(this.$target.querySelectorAll('.__detail_download-file'))
4888      .forEach($file => {
4889        const props = {
4890          site_id: parseInt(document.body.getAttribute('site-id')),
4891          foreign_type: document.body.getAttribute('content-type'),
4892          foreign_id: parseInt(document.body.getAttribute('content-id')),
4893          attachment_id: parseInt($file.dataset.id),
4894        }
4895        $file.addEventListener('click', () => {
4896          let fetchUrl = `//${atob(globalThis.env.API||'')}/web/download/save`
4897          const paramsList = Object.keys(props).map(key => ({ key, value: encodeURIComponent(props[key]) }))
4898          paramsList.forEach((item, index) => {
4899            if (index === 0) fetchUrl += '?'
4900            fetchUrl += `${item.key}=${item.value}`
4901            if (index < paramsList.length - 1) fetchUrl += '&'
4902          })
4903          app.download(btoa(fetchUrl))
4904          // fetch(fetchUrl)
4905          //   .then(res => res.blob())
4906          //   .then(res => {
4907          //     const reader = new FileReader()
4908          //     reader.addEventListener('loadend', () => {
4909          //       const url = window.URL.createObjectURL(res)
4910          //       const $a = document.createElement('a')
4911          //       $a.href = url
4912          //       $a.target = '_blank'
4913          //       $a.style.display = 'none'
4914          //       document.body.append($a)
4915          //       $a.download = $file.children[1].innerText
4916          //       $a.click()
4917          //       window.URL.revokeObjectURL(url)
4918          //       $a.remove()
4919          //     })
4920          //     reader.readAsText(res)
4921          //   })
4922        })
4923      })
4924  }
4925  initDialog() {
4926    this.$dialog = this.$target.querySelector('.__detail_download-dialog')
4927    if (!this.$dialog) return
4928    this.$dialog.addEventListener('touchstart', event => {
4929      event.stopPropagation()
4930      this.$dialog.classList.add('show')
4931    })
4932    this.$target.addEventListener('touchstart', event => {
4933      event.stopPropagation()
4934      this.uploadDialog()
4935      this.$dialog.classList.add('show')
4936    })
4937    this.$target.addEventListener('mouseenter', () => {
4938      this.uploadDialog()
4939      this.$dialog.classList.add('show')
4940    })
4941    this.$target.addEventListener('mouseleave', () => this.$dialog.classList.remove('show'))
4942    this.$dialog.addEventListener('mouseenter', () => this.$dialog.classList.add('show'))
4943    this.$dialog.addEventListener('mouseleave', () => this.$dialog.classList.remove('show'))
4944    this.app.addEventListener(window, 'scroll', () => this.uploadDialog())
4945    this.app.addEventListener(window, 'touchstart', () => this.$dialog.classList.remove('show'))
4946    document.body.append(this.$dialog)
4947  }
4948  uploadDialog(){
4949    if (!this.$dialog) return
4950    const { top, left, width, height } = this.$target.getBoundingClientRect()
4951    this.$dialog.style.top = top + height + 'px'
4952    this.$dialog.style.left = left + 'px'
4953    this.$dialog.style.width = width + 'px'
4954  }
4955}
4956class CEDetailTabs extends CElement {
4957  constructor(id = '', config = {}) {
4958    super(id, config)
4959  }
4960  init() {
4961    Array.from(this.$target.querySelectorAll('.__detail_tabs-tab'))
4962      .forEach(($tab, index) => {
4963        $tab.addEventListener('click', () => {
4964          const $content = this.$target.querySelector(`.__detail_tabs-panel:nth-child(${index+1})`)
4965          if (!$content) return
4966          Array.from(this.$target.querySelectorAll('.active'))
4967            .forEach($active => $active.classList.remove('active'))
4968          $tab.classList.add('active')
4969          $content.classList.add('active')
4970        })
4971      })
4972  }
4973}
4974class CEFaq extends CElement {
4975  constructor(id = '', config = {}) {
4976    super(id, config)
4977  }
4978  init() {
4979    this.initAccordion()
4980  }
4981  initAccordion() {
4982    const $allDetails = Array.from(this.$target.querySelectorAll('details'))
4983    $allDetails.forEach($details1 => {
4984      $details1.addEventListener('click', () => {
4985        const isOpen = $details1.getAttribute('open') === null
4986        isOpen && $allDetails.forEach($details2 => {
4987          const isCategoryTitle = $details2.classList.contains('__faq-category_title')
4988          if ($details2 !== $details1 && !isCategoryTitle) $details2.removeAttribute('open')
4989        })
4990      })
4991    })
4992  }
4993}
4994class CEFilterParams extends CElement {
4995  constructor(id = '', config = {}) {
4996    super(id, config)
4997    this.checkbox_status = config.checkbox_status
4998    this.show_quantity = config.show_quantity
4999    this.use_submit = config.use_submit
5000  }
5001  init() {
5002    if (this.checkbox_status) this.initCheckbox()
5003    else this.initSelect()
5004    this.initSubmit()
5005  }
5006  initSelect() {
5007    const $selectList = Array.from(this.$target.querySelectorAll('.__filter_params-select'))
5008    const anchorList = $selectList.map($select => new Anchor({ $el: $select.children[2], $event: $select }))
5009    Array.from(this.$target.querySelectorAll('.__filter_params-select_item_delete'))
5010      .forEach($delete => {
5011        $delete.addEventListener('click', event => {
5012          event.stopPropagation()
5013          this.use_submit && setSelected($delete.previousElementSibling.dataset.pid, $delete.previousElementSibling.innerText)
5014        })
5015      })
5016    this.use_submit && anchorList.forEach(({$el}) => {
5017      Array.from($el.children).forEach($option => {
5018        $option.addEventListener('click', event => {
5019          event.preventDefault()
5020          setSelected($option.children[0].dataset.pid, $option.children[1].innerText)
5021        })
5022      })
5023    })
5024    function setSelected(id, value) {
5025      $selectList.forEach($select => {
5026        const $items = $select.children[0].children[0]
5027        if ($items.dataset.id !== id) return
5028        const $targetItem = Array.from($items.children).find($item => $item.children[0].innerText === value)
5029        if ($targetItem) {
5030          $targetItem.remove()
5031          if (!$items.children.length) $items.parentElement.parentElement.classList.remove('__filter_params-select--value')
5032        } else {
5033          $items.parentElement.parentElement.classList.add('__filter_params-select--value')
5034          $items.insertAdjacentHTML('beforeend', `
5035            <div class="__filter_params-select_item">
5036              <div class="__filter_params-select_item_title" data-pid="${id}">${value}</div>
5037              <div class="__filter_params-select_item_delete">
5038                <svg viewBox="0 0 24 24" height="1em"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>
5039              </div>
5040            </div>`)
5041          const $newItem = $items.children[$items.children.length - 1]
5042          $newItem.children[1].addEventListener('click', event => {
5043            event.stopPropagation()
5044            setSelected(id, value)
5045          })
5046        }
5047      })
5048      anchorList.forEach(({$el}) => {
5049        if ($el.dataset.id !== id) return
5050        Array.from($el.children).forEach($option => {
5051          if ($option.children[0].dataset.value != value) return
5052          if ($option.classList.contains('__filter_params-select_option--selected')) $option.classList.remove('__filter_params-select_option--selected')
5053          else $option.classList.add('__filter_params-select_option--selected')
5054        })
5055      })
5056    }
5057  }
5058  initCheckbox() {
5059    const $items = Array.from(this.$target.querySelectorAll('.__filter_params-item'))
5060    const $switchWrap = this.$target.querySelector('.__filter_params-switch_wrap')
5061    if ($items.length > this.show_quantity) this.$target.classList.add('show-switch')
5062    $items.forEach(($item, index) => {if (index < this.show_quantity) $item.classList.add('show')})
5063    $switchWrap && $switchWrap.addEventListener('click', () => {
5064      if (this.$target.classList.contains('show-all')) this.$target.classList.remove('show-all')
5065      else this.$target.classList.add('show-all')
5066    })
5067    if (!this.use_submit) {
5068      Array.from(this.$target.querySelectorAll('.__filter_params-select_option_checkbox')).forEac
5068h($checkbox => {
5069        $checkbox.addEventListener('click', event => {
5070          $checkbox.parentElement.click()
5071          event.preventDefault()
5072          return false
5073        })
5074      })
5075    }
5076  }
5077  initSubmit() {
5078    if (!this.use_submit) return
5079    const $submit = this.$target.querySelector('.__filter_params-submit')
5080    const $button = $submit && $submit.children[0]
5081    $button && $button.addEventListener('click', () => {
5082      const data = {}
5083      Array.from(this.$target.querySelectorAll(this.checkbox_status ? '.__filter_params-select_option_checkbox' : '.__filter_params-select_item_title'))
5084        .filter(({ checked }) => this.checkbox_status ? checked : true)
5085        .forEach($el => {
5086          data[$el.dataset.pid] = data[$el.dataset.pid] || []
5087          data[$el.dataset.pid].push($el.dataset.value || $el.innerText)
5088        })
5089      location.href = location.origin + $submit.getAttribute('href') + '?params=' + encodeURI(JSON.stringify(data))
5090    })
5091  }
5092}
5093class CEImage extends CElement {
5094  constructor(id = '', config = {}) {
5095    super(id, config)
5096  }
5097  async init() {
5098    this.initMagnifier()
5099    return this
5100  }
5101  initMagnifier() {
5102    if (!this.props.magnifier_status) return
5103    Array.from(this.$target.querySelectorAll('.__image-inner'))
5104      .forEach($image => new Magnifier($image))
5105  }
5106}
5107class CEInquiryRelated extends CElement {
5108  constructor(id = '', props = {}) {
5109    const mapStorageNameBySource = {
5110      'product-record': 'product_record',
5111      'product-selected': 'product_selected',
5112    }
5113    super(id, props)
5114    this.source = props.source || 'product-record'
5115    this.storageName = mapStorageNameBySource[this.source]
5116  }
5117  init() {
5118    const data = this.getData()
5119    this.initHtml(data)
5120    data.length && this.initEvent(data)
5121  }
5122  initHtml(data = []) {
5123    let bodyHtml = ''
5124    data.forEach(({ page_id, checked, image, title, url }) => {
5125      bodyHtml += `
5126        <div class="__inquiry_related-item" data-page-id="${page_id}">
5127          <div class="__inquiry_related-item_info form-check">
5128            <label class="form-check-label">
5129              <input class="__inquiry_related-item_checkbox form-check-input" type="checkbox" ${checked ? 'checked' : ''}>
5130            </label>
5131            <a class="__inquiry_related-item_link" href="${url || 'javascript:;'}" ${url ? 'target="_blank"' : ''}>
5132              <div class="__inquiry_related-item_image">
5133                <img  class="__inquiry_related-item_img" src="${image}">
5134              </div>
5135              <div class="__inquiry_related-item_text">
5136                <div class="__inquiry_related-item_title">${title}</div>
5137              </div>
5138            </a>
5139          </div>
5140          <div class="__inquiry_related-item_delete">
5141            <svg class="__inquiry_related-item_del" viewBox="0 0 24 24" height="1.2em" fill="currentColor"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
5142          </div>
5143        </div>`
5144    })
5145    this.$target.innerHTML = bodyHtml
5146      ? `<div class="__inquiry_related-head">
5147          <div class="form-check">
5148            <label class="form-check-label">
5149              <input class="__inquiry_related-head_checkbox form-check-input" type="checkbox" ${data.some(item => !item.checked) ? '' : 'checked'}>
5150              <span class="__inquiry_related-head_title">Select All</span>
5151            </label>
5152          </div>
5153          <div class="__inquiry_related-head_number">(<span class="__inquiry_related-head_num">${data.length}</span>)</div>
5154        </div>
5155        <div class="__inquiry_related-body">${bodyHtml}</div>`
5156      : `<div class="__inquiry_related-nodata">No Data</div>`
5157  }
5158  initEvent() {
5159    this.uploadHeadCheckbox()
5160    const $headCheckbox = this.$target.querySelector('.__inquiry_related-head_checkbox')
5161    Array.from(this.$target.querySelectorAll('.__inquiry_related-item')).forEac
5161h($item => {
5162      const page_id = parseInt($item.dataset.pageId)
5163      const $checkbox = $item.querySelector('.__inquiry_related-item_checkbox')
5164      const $delete = $item.querySelector('.__inquiry_related-item_delete')
5165      $delete.addEventListener('click', () => {
5166        if (confirm('Are you sure you want to delete this item?')) {
5167          this.caller('inquiry-related', 'deleteItem', { source: this.source, page_id })
5168          this.caller('checkbox', 'setChecked', { source: this.source, page_id, checked: false, event: 'inquiry-related' })
5169        }
5170      })
5171      $checkbox.addEventListener('click', () => {
5172        this.caller('checkbox', 'setChecked', { source: this.source, page_id, checked: $checkbox.checked, event: 'inquiry-related' })
5173        this.caller('inquiry-related', 'setChecked', { source: this.source, page_id, checked: $checkbox.checked })
5174        this.caller('inquiry-related', 'uploadHeadCheckbox')
5175      })
5176    })
5177    $headCheckbox.addEventListener('click', () => {
5178      this.getData().forEach(({ page_id, checked }) => {
5179        if ($headCheckbox.checked) {
5180          if (!checked) {
5181            this.caller('checkbox', 'setChecked', { source: this.source, page_id, checked: true, event: 'inquiry-related' })
5182            this.caller('inquiry-related', 'setChecked', { source: this.source, page_id, checked: true })
5183          }
5184        } else {
5185          if (checked) {
5186            this.caller('checkbox', 'setChecked', { source: this.source, page_id, checked: false, event: 'inquiry-related' })
5187            this.caller('inquiry-related', 'setChecked', { source: this.source, page_id, checked: false })
5188          }
5189        }
5190      })
5191      this.caller('inquiry-related', 'uploadHeadCheckbox')
5192    })
5193  }
5194  getData() {
5195    return JSON.parse(localStorage.getItem(this.storageName) || '[]')
5196  }
5197  setData(value = []) {
5198    localStorage.setItem(this.storageName, JSON.stringify(value))
5199  }
5200  uploadHeadCheckbox() {
5201    const data = this.getData()
5202    const $headCheckbox = this.$target.querySelector('.__inquiry_related-head_checkbox')
5203    const hasChecked = data.some(item => item.checked)
5204    const hasNoChecked = data.some(item => !item.checked)
5205    if ($headCheckbox) {
5206      $headCheckbox.indeterminate = hasChecked && hasNoChecked
5207      $headCheckbox.checked = !hasNoChecked
5208    }
5209  }
5210  setChecked({ source = '', page_id = 0, checked = false, image = '', title = '', url = '' }) {
5211    if (source !== this.source) return
5212    const newData = this.getData()
5213    const target = newData.find(item => item.page_id === page_id)
5214    if (target) {
5215      target.checked = checked
5216      this.setData(newData)
5217      const $itemCheckbox = this.$target.querySelector(`.__inquiry_related-item[data-page-id="${page_id}"] .__inquiry_related-item_checkbox`)
5218      if ($itemCheckbox) $itemCheckbox.checked = checked
5219    } else {
5220      newData.push({ page_id, checked, image, title, url })
5221      setTimeout(() => {
5222        this.setData(newData)
5223        this.init()
5224      })
5225    }
5226  }
5227  deleteItem({ source = '', page_id = 0 }) {
5228    if (source !== this.source) return
5229    const newData = this.getData().filter(item => item.page_id !== page_id)
5230    this.setData(newData)
5231    if (!newData.length) this.$target.innerHTML = `<div class="__inquiry_related-nodata">No Data</div>`
5232    else {
5233      const $item = this.$target.querySelector(`.__inquiry_related-item[data-page-id="${page_id}"]`)
5234      const $num = this.$target.querySelector('.__inquiry_related-head_num')
5235      if ($item) {
5236        $item.remove()
5237        if ($num) $num.innerHTML = `${parseInt($num.innerHTML) - 1}`
5238      }
5239    }
5240  }
5241}
5242class CEInquiryFileInput {
5243  constructor($fileInput, $submit) {
5244    this.app = window.app
5245    this.$submit = $submit
5246    this.$fileInput = $fileInput
5247    this.$showInput = $fileInput.nextElementSibling.nextElementSibling
5248    this.$items = document.createElement('div')
5249    this.$items.classList.add('__inquiry-file_items')
5250    this.$fileInput.parentElement.append(this.$items)
5251    this.$fileInput.checkValidity = () => this.checkValidity()
5252    this.$fileInput.addEventListener('change', () => {
5253      if (!this.checkValidity()) return
5254      this.upload()
5255    })
5256  }
5257  checkValidity() {
5258    const typeList = ['txt', 'doc', 'docx', 'ppt', 'pptx', 'xlsx', 'xls', 'pdf', 'jpg', 'png', 'bmp', 'gif', 'jpeg', 'rar', 'zip', 'mp4']
5259    let isTrue = true
5260    this.$fileInput.classList.contains('required') && !this.$fileInput.value && this.$items.children.length === 0 && (isTrue = false)
5261    this.$items.children.length + this.$fileInput.files.length > 5 && (isTrue = false)
5262    Array.from(this.$fileInput.files).forEach(item => {
5263      const selfFileType = item.name.split('.')[item.name.split('.').length - 1].toLowerCase()
5264      if (isTrue) isTrue = typeList.includes(selfFileType)
5265      if (isTrue) isTrue = item.size <= 1024 * 1024 * 5
5266      // if (isTrue) isTrue = item.name.length < 100
5267    })
5268    this.$fileInput.removeAttribute('required')
5269    if (!isTrue) {
5270      this.$fileInput.value = ''
5271      this.$fileInput.classList.add('is-invalid')
5272      this.$showInput.classList.add('is-invalid')
5273      this.$fileInput.classList.remove('is-valid')
5274      this.$showInput.classList.remove('is-valid')
5275      return false
5276    } else {
5277      this.$fileInput.classList.add('is-valid')
5278      this.$showInput.classList.add('is-valid')
5279      this.$fileInput.classList.remove('is-invalid')
5280      this.$showInput.classList.remove('is-invalid')
5281      return true
5282    }
5283  }
5284  getFormatSize(bytes, decimals = 2) {
5285    if (bytes === 0) return '0 Bytes'
5286    const k = 1024
5287    const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']
5288    const i = Math.floor(Math.log(bytes) / Math.log(k))
5289    return parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)) + ' ' + sizes[i]
5290  }
5291  upload() {
5292    return new Promise(resolve => {
5293      const files = this.$fileInput.files
5294      if (files.length > 0) {
5295        this.$submit.setAttribute('disabled', 'disabled')
5296        this.$fileInput.setAttribute('disabled', 'disabled')
5297        let finishNumberList = Array.from(files).map(() => false)
5298        Array.from(files).forEach((file, index) => {
5299          const $item = document.createElement('div')
5300          $item.classList.add('__inquiry-file_item')
5301          $item.insertAdjacentHTML('beforeend', `
5302            <div class="__inquiry-file_item_title">
5303              <svg viewBox="0 0 24 24" fill="currentColor" height="1em"><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"/></svg>
5304              <span>${file.name} (${this.getFormatSize(file.size)})</span>
5305            </div>
5306            <div class="__inquiry-file_item_action">
5307              <svg class="__inquiry-file_item_loading" viewBox="0 0 24 24" fill="currentColor" height="1em"><path d="M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"/></svg>
5308              <svg class="__inquiry-file_item_finish" viewBox="0 0 24 24" fill="#358e09" height="1em"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
5309              <svg class="__inquiry-file_item_delete" viewBox="0 0 24 24" fill="currentColor" height="1em"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
5310            </div>
5311          `)
5312          $item.querySelector('.__inquiry-file_item_delete').addEventListener('click', () => {
5313            $item.remove()
5314            finishNumberList[index] = true
5315            if (this.$items.children.length === 0) {
5316              this.$fileInput.classList.remove('is-valid')
5317              this.$showInput.classList.remove('is-valid')
5318              this.$fileInput.classList.contains('required') && this.$fileInput.addAttribute('required', true)
5319            }
5320            if (finishNumberList.every(item => item === true)) {
5321              this.$submit.removeAttribute('disabled')
5322              // this.$items.children.length < 5 && 
5323              this.$fileInput.removeAttribute('disabled')
5324            }
5325          })
5326          this.$items.append($item)
5327          this.app.sdk.upload(file)
5328            .then(fileId => {
5329              if ($item) $item.dataset.id = fileId
5330              if ($item) $item.classList.add('finish')
5331              finishNumberList[index] = true
5332              if (finishNumberList.every(item => item === true)) {
5333                this.$submit.removeAttribute('disabled')
5334                // this.$items.children.length < 5 && 
5335                this.$fileInput.removeAttribute('disabled')
5336                this.$fileInput.value = ''
5337              }
5338            })
5339            .catch(error => {
5340              alert(error.message)
5341              this.$submit.removeAttribute('disabled')
5342              this.$fileInput.removeAttribute('disabled')
5343            })
5344        })
5345      } else {
5346        resolve()
5347      }
5348    })
5349  }
5350}
5351
5352class CEInquirySelect {
5353  constructor($select) {
5354    this.$select = $select
5355    this.$select.value = ''
5356    this.render()
5357  }
5358  render() {
5359    // $el
5360    this.$el = document.createElement('div')
5361    this.$el.tabIndex = 1
5362    this.$el.classList.value = this.$select.classList.value
5363    if (this.$select.multiple) this.$el.classList.add('__inquiry-select--multiple')
5364    if (this.$select.required) this.$el.classList.add('__inquiry-select--required')
5365    // $value
5366    this.$value = document.createElement('div')
5367    this.$value.classList.add('__inquiry-select_value')
5368    this.$el.append(this.$value)
5369    // $arrow
5370    this.$arrow = document.createElement('div')
5371    this.$arrow.classList.add('__inquiry-select_arrow')
5372    this.$arrow.innerHTML = `<svg viewBox="0 0 24 24">
5372<path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></svg>`
5373    this.$el.append(this.$arrow)
5374    // $options
5375    this.$options = document.createElement('div')
5376    this.$options.classList.add('__inquiry-select_options')
5377    this.$el.append(this.$options)
5378    Array.from(this.$select.options).forEach($0 => {
5379      const $option = document.createElement('div')
5380      $option.classList.add('__inquiry-select_option')
5381      $option.dataset.value = $0.value
5382      $option.innerText = $0.innerText
5383      $option.addEventListener('click', () => {
5384        if ($0.selected) {
5385          if (this.$select.multiple) $0.selected = false
5386          else this.$select.value = ''
5387        } else $0.selected = true
5388        this.onChange()
5389      })
5390      this.$options.append($option)
5391    })
5392    // render
5393    this.$select.after(this.$el)
5394    this.$el.append(this.$select)
5395    this.$select.addEventListener('valid', () => {
5396      console.log('valid')
5397    })
5398    this.$select.addEventListener('invalid', () => {
5399      console.log('invalid')
5400    })
5401    !this.$select.classList.contains('__inquiry-checkbox') && new Anchor({ $el: this.$options, $event: this.$el })
5402  }
5403  onChange() {
5404    if (this.$select.value) this.$el.classList.add('__inquiry-select--value')
5405    else this.$el.classList.remove('__inquiry-select--value')
5406    if (this.$select.multiple) this.$value.innerHTML = ''
5407    else {
5408      this.$value.innerText = this.$select.value
5409      this.$el.blur()
5410    }
5411    const multipleItems = []
5412    Array.from(this.$select.options).forEach(($0, index) => {
5413      const $1 = this.$options.children[index]
5414      if (!$1) return
5415      if (!$0.selected) $1.classList.remove('__inquiry-select_option--selected')
5416      else {
5417        $1.classList.add('__inquiry-select_option--selected')
5418        if (this.$select.multiple) {
5419          // $item
5420          const $item = document.createElement('div')
5421          $item.classList.add('__inquiry-select_item')
5422          // $itemTitle
5423          const $itemTitle = document.createElement('span')
5424          $itemTitle.innerText = $0.value
5425          $item.append($itemTitle)
5426          // $itemDelte
5427          const $itemDelte = document.createElement('i')
5428          $itemDelte.innerHTML = `<svg viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg>`
5429          $itemDelte.addEventListener('click', () => {
5430            $0.selected = false
5431            this.onChange()
5432          })
5433          $item.append($itemDelte)
5434          multipleItems.push($item)
5435        }
5436      }
5437    })
5438    if (this.$select.multiple) {
5439      // $items
5440      const $items = document.createElement('div')
5441      $items.classList.add('__inquiry-select_items')
5442      $items.append(...multipleItems)
5443      this.$value.append($items)
5444    }
5445  }
5446}
5447
5448class CEInquiryDial {
5449  constructor($input) {
5450    this.$input = $input
5451    this.dialData = [
5452      { dial: 93, code: 'af', name: 'Afghanistan', offset: -48 },
5453      { dial: 358, code: 'ax', name: 'Åland Islands', offset: -224 },
5454      { dial: 355, code: 'al', name: 'Albania', offset: -96 },
5455      { dial: 213, code: 'dz', name: 'Algeria', offset: -960 },
5456      { dial: 1, code: 'as', name: 'American Samoa', offset: -160 },
5457      { dial: 376, code: 'ad', name: 'Andorra', offset: -16 },
5458      { dial: 244, code: 'ao', name: 'Angola', offset: -128 },
5459      { dial: 1, code: 'ai', name: 'Anguilla', offset: -80 },
5460      { dial: 1, code: 'ag', name: 'Antigua &amp; Barbuda', offset: -64 },
5461      { dial: 54, code: 'ar', name: 'Argentina', offset: -144 },
5462      { dial: 374, code: 'am', name: 'Armenia', offset: -112 },
5463      { dial: 297, code: 'aw', name: 'Aruba', offset: -208 },
5464      { dial: 247, code: 'ac', name: 'Ascension Island', offset: 0 },
5465      { dial: 61, code: 'au', name: 'Australia', offset: -192 },
5466      { dial: 43, code: 'at', name: 'Austria', offset: -176 },
5467      { dial: 994, code: 'az', name: 'Azerbaijan', offset: -240 },
5468      { dial: 1, code: 'bs', name: 'Bahamas', offset: -496 },
5469      { dial: 973, code: 'bh', name: 'Bahrain', offset: -352 },
5470      { dial: 880, code: 'bd', name: 'Bangladesh', offset: -288 },
5471      { dial: 1, code: 'bb', name: 'Barbados', offset: -272 },
5472      { dial: 375, code: 'by', name: 'Belarus', offset: -544 },
5473      { dial: 32, code: 'be', name: 'Belgium', offset: -304 },
5474      { dial: 501, code: 'bz', name: 'Belize', offset: -560 },
5475      { dial: 229, code: 'bj', name: 'Benin', offset: -384 },
5476      { dial: 1, code: 'bm', name: 'Bermuda', offset: -416 },
5477      { dial: 975, code: 'bt', name: 'Bhutan', offset: -512 },
5478      { dial: 591, code: 'bo', name: 'Bolivia', offset: -448 },
5479      { dial: 387, code: 'ba', name: 'Bosnia &amp; Herzegovina', offset: -256 },
5480      { dial: 267, code: 'bw', name: 'Botswana', offset: -528 },
5481      { dial: 55, code: 'br', name: 'Brazil', offset: -480 },
5482      { dial: 246, code: 'io', name: 'British Indian Ocean Territory', offset: -1632 },
5483      { dial: 1, code: 'vg', name: 'British Virgin Islands', offset: -3712 },
5484      { dial: 673, code: 'bn', name: 'Brunei', offset: -432 },
5485      { dial: 359, code: 'bg', name: 'Bulgaria', offset: -336 },
5486      { dial: 226, code: 'bf', name: 'Burkina Faso', offset: -320 },
5487      { dial: 257, code: 'bi', name: 'Burundi', offset: -368 },
5488      { dial: 855, code: 'kh', name: 'Cambodia', offset: -1808 },
5489      { dial: 237, code: 'cm', name: 'Cameroon', offset: -720 },
5490      { dial: 1, code: 'ca', name: 'Canada', offset: -576 },
5491      { dial: 238, code: 'cv', name: 'Cape Verde', offset: -800 },
5492      { dial: 599, code: 'bq', name: 'Caribbean Netherlands', offset: -464 },
5493      { dial: 1, code: 'ky', name: 'Cayman Islands', offset: -1920 },
5494      { dial: 236, code: 'cf', name: 'Central African Republic', offset: -624 },
5495      { dial: 235, code: 'td', name: 'Chad', offset: -3360 },
5496      { dial: 56, code: 'cl', name: 'Chile', offset: -704 },
5497      { dial: 86, code: 'cn', name: 'China', offset: -736 },
5498      { dial: 61, code: 'cx', name: 'Christmas Island', offset: -832 },
5499      { dial: 61, code: 'cc', name: 'Cocos (Keeling) Islands', offset: -592 },
5500      { dial: 57, code: 'co', name: 'Colombia', offset: -752 },
5501      { dial: 269, code: 'km', name: 'Comoros', offset: -1840 },
5502      { dial: 242, code: 'cg', name: 'Congo - Brazzaville', offset: -640 },
5503      { dial: 243, code: 'cd', name: 'Congo - Kinshasa', offset: -608 },
5504      { dial: 682, code: 'ck', name: 'Cook Islands', offset: -688 },
5505      { dial: 506, code: 'cr', name: 'Costa Rica', offset: -768 },
5506      { dial: 225, code: 'ci', name: 'Côte d’Ivoire', offset: -672 },
5507      { dial: 385, code: 'hr', name: 'Croatia', offset: -1504 },
5508      { dial: 53, code: 'cu', name: 'Cuba', offset: -784 },
5509      { dial: 599, code: 'cw', name: 'Curaçao', offset: -816 },
5510      { dial: 357, code: 'cy', name: 'Cyprus', offset: -848 },
5511      { dial: 420, code: 'cz', name: 'Czechia', offset: -864 },
5512      { dial: 45, code: 'dk', name: 'Denmark', offset: -912 },
5513      { dial: 253, code: 'dj', name: 'Djibouti', offset: -896 },
5514      { dial: 1, code: 'dm', name: 'Dominica', offset: -928 },
5515      { dial: 1, code: 'do', name: 'Dominican Republic', offset: -944 },
5516      { dial: 593, code: 'ec', name: 'Ecuador', offset: -976 },
5517      { dial: 20, code: 'eg', name: 'Egypt', offset: -1008 },
5518      { dial: 503, code: 'sv', name: 'El Salvador', offset: -3280 },
5519      { dial: 240, code: 'gq', name: 'Equatorial Guinea', offset: -1376 },
5520      { dial: 291, code: 'er', name: 'Eritrea', offset: -1040 },
5521      { dial: 372, code: 'ee', name: 'Estonia', offset: -992 },
5522      { dial: 268, code: 'sz', name: 'Eswatini', offset: -3328 },
5523      { dial: 251, code: 'et', name: 'Ethiopia', offset: -1072 },
5524      { dial: 500, code: 'fk', name: 'Falkland Islands', offset: -1120 },
5525      { dial: 298, code: 'fo', name: 'Faroe Islands', offset: -1152 },
5526      { dial: 679, code: 'fj', name: 'Fiji', offset: -1104 },
5527      { dial: 358, code: 'fi', name: 'Finland', offset: -1088 },
5528      { dial: 33, code: 'fr', name: 'France', offset: -1168 },
5529      { dial: 594, code: 'gf', name: 'French Guiana', offset: -1248 },
5530      { dial: 689, code: 'pf', name: 'French Polynesia', offset: -2736 },
5531      { dial: 241, code: 'ga', name: 'Gabon', offset: -1184 },
5532      { dial: 220, code: 'gm', name: 'Gambia', offset: -1328 },
5533      { dial: 995, code: 'ge', name: 'Georgia', offset: -1232 },
5534      { dial: 49, code: 'de', name: 'Germany', offset: -880 },
5535      { dial: 233, code: 'gh', name: 'Ghana', offset: -1280 },
5536      { dial: 350, code: 'gi', name: 'Gibraltar', offset: -1296 },
5537      { dial: 30, code: 'gr', name: 'Greece', offset: -1392 },
5538      { dial: 299, code: 'gl', name: 'Greenland', offset: -1312 },
5539      { dial: 1, code: 'gd', name: 'Grenada', offset: -1216 },
5540      { dial: 590, code: 'gp', name: 'Guadeloupe', offset: -1360 },
5541      { dial: 1, code: 'gu', name: 'Guam', offset: -1424 },
5542      { dial: 502, code: 'gt', name: 'Guatemala', offset: -1408 },
5543      { dial: 44, code: 'gg', name: 'Guernsey', offset: -1264 },
5544      { dial: 224, code: 'gn', name: 'Guinea', offset: -1344 },
5545      { dial: 245, code: 'gw', name: 'Guinea-Bissau', offset: -1440 },
5546      { dial: 592, code: 'gy', name: 'Guyana', offset: -1456 },
5547      { dial: 509, code: 'ht', name: 'Haiti', offset: -1520 },
5548      { dial: 504, code: 'hn', name: 'Honduras', offset: -1488 },
5549      { dial: 852, code: 'hk', name: 'Hong Kong SAR China', offset: -1472 },
5550      { dial: 36, code: 'hu', name: 'Hungary', offset: -1536 },
5551      { dial: 354, code: 'is', name: 'Iceland', offset: -1680 },
5552      { dial: 91, code: 'in', name: 'India', offset: -1616 },
5553      { dial: 62, code: 'id', name: 'Indonesia', offset: -1552 },
5554      { dial: 98, code: 'ir', name: 'Iran', offset: -1664 },
5555      { dial: 964, code: 'iq', name: 'Iraq', offset: -1648 },
5556      { dial: 353, code: 'ie', name: 'Ireland', offset: -1568 },
5557      { dial: 44, code: 'im', name: 'Isle of Man', offset: -1600 },
5558      { dial: 972, code: 'il', name: 'Israel', offset: -1584 },
5559      { dial: 39, code: 'it', name: 'Italy', offset: -1696 },
5560      { dial: 1, code: 'jm', name: 'Jamaica', offset: -1728 },
5561      { dial: 81, code: 'jp', name: 'Japan', offset: -1760 },
5562      { dial: 44, code: 'je', name: 'Jersey', offset: -1712 },
5563      { dial: 962, code: 'jo', name: 'Jordan', offset: -1744 },
5564      { dial: 7, code: 'kz', name: 'Kazakhstan', offset: -1936 },
5565      { dial: 254, code: 'ke', name: 'Kenya', offset: -1776 },
5566      { dial: 686, code: 'ki', name: 'Kiribati', offset: -1824 },
5567      { dial: 383, code: 'xk', name: 'Kosovo', offset: -3808 },
5568      { dial: 965, code: 'kw', name: 'Kuwait', offset: -1904 },
5569      { dial: 996, code: 'kg', name: 'Kyrgyzstan', offset: -1792 },
5570      { dial: 856, code: 'la', name: 'Laos', offset: -1952 },
5571      { dial: 371, code: 'lv', name: 'Latvia', offset: -2096 },
5572      { dial: 961, code: 'lb', name: 'Lebanon', offset: -1968 },
5573      { dial: 266, code: 'ls', name: 'Lesotho', offset: -2048 },
5574      { dial: 231, code: 'lr', name: 'Liberia', offset: -2032 },
5575      { dial: 218, code: 'ly', name: 'Libya', offset: -2112 },
5576      { dial: 423, code: 'li', name: 'Liechtenstein', offset: -2000 },
5577      { dial: 370, code: 'lt', name: 'Lithuania', offset: -2064 },
5578      { dial: 352, code: 'lu', name: 'Luxembourg', offset: -2080 },
5579      { dial: 853, code: 'mo', name: 'Macao SAR China', offset: -2304 },
5580      { dial: 261, code: 'mg', name: 'Madagascar', offset: -2208 },
5581      { dial: 265, code: 'mw', name: 'Malawi', offset: -2432 },
5582      { dial: 60, code: 'my', name: 'Malaysia', offset: -2464 },
5583      { dial: 960, code: 'mv', name: 'Maldives', offset: -2416 },
5584      { dial: 223, code: 'ml', name: 'Mali', offset: -2256 },
5585      { dial: 356, code: 'mt', name: 'Malta', offset: -2384 },
5586      { dial: 692, code: 'mh', name: 'Marshall Islands', offset: -2224 },
5587      { dial: 596, code: 'mq', name: 'Martinique', offset: -2336 },
5588      { dial: 222, code: 'mr', name: 'Mauritania', offset: -2352 },
5589      { dial: 230, code: 'mu', name: 'Mauritius', offset: -2400 },
5590      { dial: 262, code: 'yt', name: 'Mayotte', offset: -3840 },
5591      { dial: 52, code: 'mx', name: 'Mexico', offset: -2448 },
5592      { dial: 691, code: 'fm', name: 'Micronesia', offset: -1136 },
5593      { dial: 373, code: 'md', name: 'Moldova', offset: -2160 },
5594      { dial: 377, code: 'mc', name: 'Monaco', offset: -2144 },
5595      { dial: 976, code: 'mn', name: 'Mongolia', offset: -2288 },
5596      { dial: 382, code: 'me', name: 'Montenegro', offset: -2176 },
5597      { dial: 1, code: 'ms', name: 'Montserrat', offset: -2368 },
5598      { dial: 212, code: 'ma', name: 'Morocco', offset: -2128 },
5599      { dial: 258, code: 'mz', name: 'Mozambique', offset: -2480 },
5600      { dial: 95, code: 'mm', name: 'Myanmar (Burma)', offset: -2272 },
5601      { dial: 264, code: 'na', name: 'Namibia', offset: -2496 },
5602      { dial: 674, code: 'nr', name: 'Nauru', offset: -2640 },
5603      { dial: 977, code: 'np', name: 'Nepal', offset: -2624 },
5604      { dial: 31, code: 'nl', name: 'Netherlands', offset: -2592 },
5605      { dial: 687, code: 'nc', name: 'New Caledonia', offset: -2512 },
5606      { dial: 64, code: 'nz', name: 'New Zealand', offset: -2672 },
5607      { dial: 505, code: 'ni', name: 'Nicaragua', offset: -2576 },
5608      { dial: 227, code: 'ne', name: 'Niger', offset: -2528 },
5609      { dial: 234, code: 'ng', name: 'Nigeria', offset: -2560 },
5610      { dial: 683, code: 'nu', name: 'Niue', offset: -2656 },
5611      { dial: 672, code: 'nf', name: 'Norfolk Island', offset: -2544 },
5612      { dial: 850, code: 'kp', name: 'North Korea', offset: -1872 },
5613      { dial: 389, code: 'mk', name: 'North Macedonia', offset: -2240 },
5614      { dial: 1, code: 'mp', name: 'Northern Mariana Islands', offset: -2320 },
5615      { dial: 47, code: 'no', name: 'Norway', offset: -2608 },
5616      { dial: 968, code: 'om', name: 'Oman', offset: -2688 },
5617      { dial: 92, code: 'pk', name: 'Pakistan', offset: -2784 },
5618      { dial: 680, code: 'pw', name: 'Palau', offset: -2880 },
5619      { dial: 970, code: 'ps', name: 'Palestinian Territories', offset: -2848 },
5620      { dial: 507, code: 'pa', name: 'Panama', offset: -2704 },
5621      { dial: 675, code: 'pg', name: 'Papua New Guinea', offset: -2752 },
5622      { dial: 595, code: 'py', name: 'Paraguay', offset: -2896 },
5623      { dial: 51, code: 'pe', name: 'Peru', offset: -2720 },
5624      { dial: 63, code: 'ph', name: 'Philippines', offset: -2768 },
5625      { dial: 48, code: 'pl', name: 'Poland', offset: -2800 },
5626      { dial: 351, code: 'pt', name: 'Portugal', offset: -2864 },
5627      { dial: 1, code: 'pr', name: 'Puerto Rico', offset: -2832 },
5628      { dial: 974, code: 'qa', name: 'Qatar', offset: -2912 },
5629      { dial: 262, code: 're', name: 'Réunion', offset: -2928 },
5630      { dial: 40, code: 'ro', name: 'Romania', offset: -2944 },
5631      { dial: 7, code: 'ru', name: 'Russia', offset: -2976 },
5632      { dial: 250, code: 'rw', name: 'Rwanda', offset: -2992 },
5633      { dial: 685, code: 'ws', name: 'Samoa', offset: -3792 },
5634      { dial: 378, code: 'sm', name: 'San Marino', offset: -3184 },
5635      { dial: 239, code: 'st', name: 'São Tomé &amp; Príncipe', offset: -3264 },
5636      { dial: 966, code: 'sa', name: 'Saudi Arabia', offset: -3008 },
5637      { dial: 221, code: 'sn', name: 'Senegal', offset: -3200 },
5638      { dial: 381, code: 'rs', name: 'Serbia', offset: -2960 },
5639      { dial: 248, code: 'sc', name: 'Seychelles', offset: -3040 },
5640      { dial: 232, code: 'sl', name: 'Sierra Leone', offset: -3168 },
5641      { dial: 65, code: 'sg', name: 'Singapore', offset: -3088 },
5642      { dial: 1, code: 'sx', name: 'Sint Maarten', offset: -3296 },
5643      { dial: 421, code: 'sk', name: 'Slovakia', offset: -3152 },
5644      { dial: 386, code: 'si', name: 'Slovenia', offset: -3120 },
5645      { dial: 677, code: 'sb', name: 'Solomon Islands', offset: -3024 },
5646      { dial: 252, code: 'so', name: 'Somalia', offset: -3216 },
5647      { dial: 27, code: 'za', name: 'South Africa', offset: -3856 },
5648      { dial: 82, code: 'kr', name: 'South Korea', offset: -1888 },
5649      { dial: 211, code: 'ss', name: 'South Sudan', offset: -3248 },
5650      { dial: 34, code: 'es', name: 'Spain', offset: -1056 },
5651      { dial: 94, code: 'lk', name: 'Sri Lanka', offset: -2016 },
5652      { dial: 590, code: 'bl', name: 'St. Barthélemy', offset: -400 },
5653      { dial: 290, code: 'sh', name: 'St. Helena', offset: -3104 },
5654      { dial: 1, code: 'kn', name: 'St. Kitts &amp; Nevis', offset: -1856 },
5655      { dial: 1, code: 'lc', name: 'St. Lucia', offset: -1984 },
5656      { dial: 590, code: 'mf', name: 'St. Martin', offset: -2192 },
5657      { dial: 508, code: 'pm', name: 'St. Pierre &amp; Miquelon', offset: -2816 },
5658      { dial: 1, code: 'vc', name: 'St. Vincent &amp; Grenadines', offset: -3680 },
5659      { dial: 249, code: 'sd', name: 'Sudan', offset: -3056 },
5660      { dial: 597, code: 'sr', name: 'Suriname', offset: -3232 },
5661      { dial: 47, code: 'sj', name: 'Svalbard &amp; Jan Mayen', offset: -3136 },
5662      { dial: 46, code: 'se', name: 'Sweden', offset: -3072 },
5663      { dial: 41, code: 'ch', name: 'Switzerland', offset: -656 },
5664      { dial: 963, code: 'sy', name: 'Syria', offset: -3312 },
5665      { dial: 886, code: 'tw', name: 'Taiwan', offset: -3552 },
5666      { dial: 992, code: 'tj', name: 'Tajikistan', offset: -3408 },
5667      { dial: 255, code: 'tz', name: 'Tanzania', offset: -3568 },
5668      { dial: 66, code: 'th', name: 'Thailand', offset: -3392 },
5669      { dial: 670, code: 'tl', name: 'Timor-Leste', offset: -3440 },
5670      { dial: 228, code: 'tg', name: 'Togo', offset: -3376 },
5671      { dial: 690, code: 'tk', name: 'Tokelau', offset: -3424 },
5672      { dial: 676, code: 'to', name: 'Tonga', offset: -3488 },
5673      { dial: 1, code: 'tt', name: 'Trinidad &amp; Tobago', offset: -3520 },
5674      { dial: 216, code: 'tn', name: 'Tunisia', offset: -3472 },
5675      { dial: 90, code: 'tr', name: 'Turkey', offset: -3504 },
5676      { dial: 993, code: 'tm', name: 'Turkmenistan', offset: -3456 },
5677      { dial: 1, code: 'tc', name: 'Turks &amp; Caicos Islands', offset: -3344 },
5678      { dial: 688, code: 'tv', name: 'Tuvalu', offset: -3536 },
5679      { dial: 1, code: 'vi', name: 'U.S. Virgin Islands', offset: -3728 },
5680      { dial: 256, code: 'ug', name: 'Uganda', offset: -3600 },
5681      { dial: 380, code: 'ua', name: 'Ukraine', offset: -3584 },
5682      { dial: 971, code: 'ae', name: 'United Arab Emirates', offset: -32 },
5683      { dial: 44, code: 'gb', name: 'United Kingdom', offset: -1200 },
5684      { dial: 1, code: 'us', name: 'United States', offset: -3616 },
5685      { dial: 598, code: 'uy', name: 'Uruguay', offset: -3632 },
5686      { dial: 998, code: 'uz', name: 'Uzbekistan', offset: -3648 },
5687      { dial: 678, code: 'vu', name: 'Vanuatu', offset: -3760 },
5688      { dial: 39, code: 'va', name: 'Vatican City', offset: -3664 },
5689      { dial: 58, code: 've', name: 'Venezuela', offset: -3696 },
5690      { dial: 84, code: 'vn', name: 'Vietnam', offset: -3744 },
5691      { dial: 681, code: 'wf', name: 'Wallis &amp; Futuna', offset: -3776 },
5692      { dial: 212, code: 'eh', name: 'Western Sahara', offset: -1024 },
5693      { dial: 967, code: 'ye', name: 'Yemen', offset: -3824 },
5694      { dial: 260, code: 'zm', name: 'Zambia', offset: -3872 },
5695      { dial: 263, code: 'zw', name: 'Zimbabwe', offset: -3888 },
5696    ]
5697    this.render()
5698    this.checkValidity()
5699  }
5700  render() {
5701    // $menu
5702    const $menu = document.createElement('div')
5703    $menu.classList.add('__inquiry-dial_menu')
5704    // $menuFlag
5705    const $menuFlag = document.createElement('div')
5706    $menuFlag.classList.add('__inquiry_dial_menu-flag')
5707    $menu.append($menuFlag)
5708    // $menuDial
5709    const $menuDial = document.createElement('div')
5710    $menuDial.classList.add('__inquiry_dial_menu-dial')
5711    $menu.append($menuDial)
5712    // $dialog
5713    const $dialog = document.createElement('div')
5714    $dialog.classList.add('__inquiry-dial_dialog')
5715    // $search
5716    const $search = document.createElement('input')
5717    $search.placeholder = 'Search'
5718    $search.classList.add('__inquiry-dial_search', 'form-control')
5719    $dialog.append($search)
5720    // $options
5721    const $options = document.createElement('div')
5722    $options.classList.add('__inquiry-dial_options')
5723    this.dialData.forEach(({dial,name,offset}) => {
5724      const dialText = `+${dial}`
5725      // $item
5726      const $item = document.createElement('item')
5727      $item.classList.add('__inquiry_dial_options-item')
5728      $options.append($item)
5729      // $flag
5730      const $flag = document.createElement('span')
5731      $flag.classList.add('__inquiry_dial_options-item_flag')
5732      $flag.style['background-position-x'] = offset + 'px'
5733      $item.append($flag)
5734      // $name
5735      const $name = document.createElement('span')
5736      $name.classList.add('__inquiry_dial_options-item_name')
5737      $name.innerHTML = name
5738      $item.append($name)
5739      // $dial
5740      const $dial = document.createElement('span')
5741      $dial.classList.add('__inquiry_dial_options-item_dial')
5742      $dial.innerHTML = dialText
5743      $item.append($dial)
5744      $item.addEventListener('click', () => {
5745        $menuFlag.style['background-position-x'] = offset + 'px'
5746        $menuDial.innerHTML = dialText
5747        this.$input.dataset.dial = dialText
5748        this.$input.parentElement.style.setProperty('--dial-length', dialText.length)
5749        this.checkValidity()
5750      })
5751    })
5752    $dialog.append($options)
5753    this.$input.after($menu)
5754    new Anchor({ $el: $dialog, $event: $menu, $container: this.$input })
5755    // search event
5756    $menu.addEventListener('click', () => setTimeout(() => $search.focus(), 500))
5757    $search.addEventListener('click', event => event.stopPropagation())
5758    $search.addEventListener('input', ({target:{value}}) => {
5759      Array.from($options.children).forEach($item => {
5760        if ($item.innerText.includes(value)) $item.removeAttribute('hidden')
5761        else $item.setAttribute('hidden', true)
5762      })
5763    })
5764  }
5765  checkValidity() {
5766    this.$input.required && this.$input.setCustomValidity(this.$input.dataset.dial ? '' : 'Please select the area code')
5767  }
5768}
5769
5770window.TJCaptchaLoaded = true
5771class CEInquiry extends CElement {
5772  constructor(id = '', config = {}) {
5773    super(id, config)
5774    this.stepControlData = []
5775    this.max = parseInt(this.$target.dataset.max)
5776    this.$form = this.$target.querySelector('form')
5777    this.step = parseInt(this.$target.dataset.step)
5778    if (!this.$form) throw new Error()
5779    if (this.$form.dataset.init) return
5780    this.initDeviceInfo()
5781    this.initSubmit()
5782    this.initSelect()
5783    this.initFileInput()
5784    this.initDial()
5785    config.model && this.initStep()
5786    this.loading = false
5787    this.$form.dataset.init = 1
5788    this.email = ''
5789    this.relevant_content_type = config.relevant_content_type || '' // product-record product-selected
5790    this.attachment_ids = []
5791  }
5792  initDial() {
5793    Array.from(this.$target.querySelectorAll('.__inquiry-item_control[data-type="9"]'))
5794      .forEach($input => new CEInquiryDial($input))
5795  }
5796  initStep() {
5797    this.stepControlData = Array.from(this.$target.querySelectorAll('.__inquiry-inner')).map($inner => Array.from($inner.querySelectorAll('.__inquiry-item_control[required]:not(div)')))
5798    this.$pref = this.$target.querySelector('.__inquiry-pref .__button')
5799    this.$next = this.$target.querySelector('.__inquiry-next .__button')
5800    // this.$submit = this.$target.querySelector('.__inquiry-submit .__button')
5801    this.$pref && this.$pref.addEventListener('click', () => this.onStep(--this.step))
5802    this.$next && this.$next.addEventListener('click', () => this.onStep(++this.step))
5803    this.stepControlData.forEach(array => {
5804      array.forEach($control => {
5805        $control.addEventListener('input', () => this.checkStep())
5806        $control.addEventListener('click', () => this.checkStep())
5807        if ($control.classList.contains('__inquiry-select')) $control.parentElement.addEventListener('click', () => this.checkStep())
5808      })
5809    })
5810    this.checkStep()
5811  }
5812  onStep() {
5813    const $oldAvtive = this.$target.querySelector('.__inquiry-inner.active')
5814    const $newAvtive = this.$target.querySelector(`.__inquiry-inner:nth-child(${this.step+1})`)
5815    this.$target.dataset.step = this.step
5816    if (this.step >= this.max) this.$target.classList.add('__inquiry--final')
5817    else this.$target.classList.remove('__inquiry--final')
5818    if ($oldAvtive !== $newAvtive) {
5819      $oldAvtive && $oldAvtive.classList.remove('active')
5820      $newAvtive && $newAvtive.classList.add('active')
5821    }
5822    this.checkStep()
5823  }
5824  checkStep() {
5825    if (!this.stepControlData[this.step] || !this.$next) return
5826    let success = true
5827    for (let index = 0; index < this.stepControlData[this.step].length; index++) {
5828      if (!this.stepControlData[this.step][index].checkValidity()) {
5829        success = false
5830        break
5831      }
5832    }
5833    if (success) this.$next.removeAttribute('disabled')
5834    else this.$next.setAttribute('disabled', true)
5835  }
5836  initSubmit() {
5837    this.$submit = this.$target.querySelector('[type="submit"]')
5838    this.$submit && this.$submit.addEventListener('click', () => {
5839      this.onSubmit()
5840    })
5841    this.$form.addEventListener('submit', event => {
5842      event.stopPropagation()
5843      event.preventDefault()
5844      this.onSubmit()
5845    })
5846  }
5847  onSubmit(forceCaptcha = false) {
5848    if (this.loading) return
5849    // 验证表单项
5850    let success = true
5851    for (const $control of this.$form) { if (!$control.checkValidity()) { success = false; break } }
5852    this.$form.classList.add('was-validated')
5853    if (success) {
5854      this.loading = true
5855      this.app.sdk.request({ url: '/web/site/info?site_id='+this.app.site_id })
5856        .then(res => {
5857          res = res || {}
5858          const { captcha_status, captcha_app_id } = res.data || {}
5859          if (forceCaptcha || captcha_status) {
5860            /* */
5861            this.tencentCaptcha(captcha_app_id)
5862              .then(token => {
5863                this.submit(token)
5864                  .then(() => this.loading = false)
5865                  .catch(() => this.loading = false)
5866              })
5867              .catch(error => this.loading = false)
5868            /* */
5869            // this.turnstile()
5870            //   .then(token => {
5871            //     this.submit(token)
5872            //       .then(() => this.loading = false)
5873            //       .catch(() => this.loading = false)
5874            //   })
5875            //   .catch(error => {
5876            //     alert(error)
5877            //     this.loading = false
5878            //   })
5879            /* */
5880            // this.geetest()
5881            //   .then(geetest => {
5882            //     this.submit(geetest)
5883            //       .then(() => this.loading = false)
5884            //       .catch(() => this.loading = false)
5885            //   })
5886            //   .catch(() => this.loading = false)
5887          } else {
5888            this.submit()
5889              .then(() => this.loading = false)
5890              .catch(() => this.loading = false)
5891          }
5892        })
5893        .catch(error => {
5894          alert(error.message || 'Error Request')
5895          this.loading = false
5896        })
5897    }
5898  }
5899  tencentCaptcha(captchaAppId) {
5900    return new Promise((resolve, reject) => {
5901      const showCaptcha = () => {
5902        try {
5903          window.TJCaptchaLoaded = true
5904          const captcha = new TencentCaptcha(captchaAppId, res => {
5905            if (res.ret === 0 && !res.errorMessage) {
5906              this.app.sdk.request({ url: '/home/captcha/verify', method: 'post', params: { ...res, site_id: this.app.site_id } })
5907                .then(({data:{token}}) => resolve(token))
5908                .catch(error => reject(alert(error.message || 'Captcha Error')))
5909            } else reject(res.errorMessage && alert(res.errorMessage || 'Captcha Error'))
5910          })
5911          captcha.show()
5912        } catch (error) {
5913          reject(alert(error))
5914        }
5915      }
5916      if (window.TJCaptchaLoaded) showCaptcha()
5917      else this.app.sdk.installScript('https://turing.captcha.qcloud.com/TJCaptcha.js')
5918        .then(() => showCaptcha())
5919        .catch(error => reject(alert(error.message || 'Failed to fetch')))
5920    })
5921  }
5922  // turnstile() {
5923  //   //
5924  //   const $turnstileDialog = document.createElement('div')
5925  //   $turnstileDialog.classList.add('__inquiry-turnstile_dialog')
5926  //   //
5927  //   const $turnstileInner = document.createElement('div')
5928  //   $turnstileInner.classList.add('__inquiry-turnstile_inner')
5929  //   $turnstileInner.id = this.id + '-turnstile-container'
5930  //   $turnstileDialog.append($turnstileInner)
5931  //   //
5932  //   const $turnstileClose = document.createElement('div')
5933  //   $turnstileClose.classList.add('__inquiry-turnstile_close', 'icon-close')
5934  //   $turnstileDialog.append($turnstileClose)
5935  //   $turnstileClose.addEventListener('click', () => $turnstileDialog.remove())
5936  //   //
5937  //   document.body.append($turnstileDialog)
5938  //   $turnstileDialog.classList.add('show')
5939  //   //
5940  //   return new Promise((resolve, reject) => {
5941  //     const widgetId = turnstile.render('#' + $turnstileInner.id, {
5942  //       sitekey: '0x4AAAAAACMOf0NFN1bVKImX',
5943  //       callback: token => {
5944  //         resolve(token)
5945  //         turnstile.remove(widgetId)
5946  //         $turnstileDialog.remove()
5947  //       },
5948  //       errorCallback: props => {
5949  //         reject(props)
5950  //         turnstile.remove(widgetId)
5951  //         $turnstileDialog.remove()
5952  //       },
5953  //     })
5954  //   })
5955  // }
5956  // geetest() {
5957  //   return new Promise((resolve, reject) => {
5958  //     this.app.sdk.installScript('https://static.geetest.com/v4/gt4.js')
5959  //       .then(() => {
5960  //         initGeetest4(
5961  //           { captchaId: '3a35b3ecb5fbd76261649fc105e2c974', product: 'bind' },
5962  //           geetest => {
5963  //             geetest.onSuccess(() => resolve(geetest))
5964  //             geetest.onClose(() => reject())
5965  //             geetest.onError(() => reject())
5966  //             geetest.showBox()
5967  //           },
5968  //         )
5969  //       })
5970  //   })
5971  // }
5972  submit(token) {  // geetest
5973    // const captcha = geetest ? geetest.getValidate() : undefined
5974    const forms = []
5975    let page_ids = []
5976    Array.from(this.$form.querySelectorAll('.__inquiry-item')).forEac
5976h($item => {
5977      const $el = $item.querySelector('input') || $item.querySelector('textarea') || $item.querySelector('select')
5978      if (!$el) return
5979      const data = {
5980        field_title: $el.dataset.title,
5981        field_id: parseInt($el.dataset.id),
5982        field_type: parseInt($el.dataset.type),
5983        field_key: $el.name,
5984        field_value: $el.value,
5985      }
5986      if ($el.multiple && $el.dataset.type != 10) {
5987        const field_value = []
5988        Array.from($el.options).forEach($option => {
5989          $option.selected && field_value.push($option.value)
5990        })
5991        data.field_value = field_value
5992      }
5993      if ($el.dataset.type == 9 && $el.dataset.dial) data.field_value = $el.dataset.dial + ' ' + data.field_value
5994      if ($el.dataset.type == 5 && !this.email) this.email = $el.value
5995      if ($el.dataset.type == 10) this.attachment_ids.push(...Array.from($item.querySelectorAll('.__inquiry-file_item')).map($item => $item.dataset.id))
5996      $el && forms.push(data)
5997    })
5998    const mapStorageNameBySource = { 'product-record': 'product_record', 'product-selected': 'product_selected' }
5999    if (this.relevant_content_type) page_ids = JSON.parse(localStorage.getItem(mapStorageNameBySource[this.relevant_content_type]) || '[]').filter(item => item.checked).map(({page_id}) => page_id)
6000    return new Promise((resolve, reject) => {
6001      this.app.sdk.request({
6002        url: '/home/inquiry/add',
6003        method: 'post',
6004        params: {
6005          token,
6006          // captcha,
6007          inquiry_url: location.href,
6008          site_id: this.app.site_id,
6009          page_id: this.app.page_id,
6010          // telephone: formData.get('phone') || '',
6011          // inquiry_content: formData.get('content'),
6012          // customer_name: formData.get('contacts'),
6013          // customer_email: formData.get('email'),
6014          customer_device: this.browser,
6015          browser: this.browser,
6016          terminal: this.device,
6017          device: this.device,
6018          screen: window.screen.width + 'x' + window.screen.height,
6019          scheme_id: parseInt(this.$form.dataset.id),
6020          forms,
6021          session: sessionStorage.getItem('inquiry_session') || '',
6022          tracks: JSON.parse(sessionStorage.getItem('inquiry_track')||'[]').map(({title,url,time})=>({page_title:title,page_url:url,access_time:time})),
6023          page_ids,
6024          attachment_ids: this.attachment_ids,
6025        }
6026      })
6027        .then(({code}) => {
6028          if (code == 6001005) {
6029            this.loading = false
6030            this.onSubmit(true)
6031            return
6032          }
6033          if (this.relevant_content_type) localStorage.setItem(mapStorageNameBySource[this.relevant_content_type], JSON.stringify(JSON.parse(localStorage.getItem(mapStorageNameBySource[this.relevant_content_type]) || '[]').filter(item => !item.checked)))
6034          localStorage.setItem('inquiry_made', true)
6035          sessionStorage.getItem('inquiry_download') && window.app.download(sessionStorage.getItem('inquiry_download'))
6036          sessionStorage.setItem('inquiry_track', '[]')
6037          const inquirySuccessUrl = window.app.getSuffixUrl('/inquiry-success')+(this.email?`?email=${this.email}`:'')
6038          // if (localStorage.getItem('inquiry_access')) {
6039          //   confirm('Is it back to the original page?') && window.open(localStorage.getItem('inquiry_access'))
6040          //   localStorage.removeItem('inquiry_access')
6041          // }
6042          window.location.href = inquirySuccessUrl
6043          resolve()
6044        })
6045        .catch(err => {
6046          // geetest.reset()
6047          alert(err.message || 'Inquiry Error')
6048          reject()
6049        })
6050    })
6051  }
6052  /** 设备信息 */
6053  initDeviceInfo() {
6054    this.device = /Android|webOS|iPhone|iPod|BlackBerry|iPad|Windows Phone|SymbianOS/i.test(navigator.userAgent) ? 2 : 1
6055    // os
6056    this.os = 'unknown'
6057    if (['Mac68K', 'MacPPC', 'Macintosh', 'MacIntel'].includes(navigator.platform)) this.os = 'Mac'
6058    else if (['Win32', 'Windows'].includes(navigator.platform)) this.os = 'Windows'
6059    else if (/Android/i.test(navigator.userAgent)) this.os = 'Android'
6060    else if (/iPhone/i.test(navigator.userAgent)) this.os = 'iPhone'
6061    else if (/iPod/i.test(navigator.userAgent)) this.os = 'iPod'
6062    else if (/iPad/i.test(navigator.userAgent)) this.os = 'iPad'
6063    // browser
6064    this.browser = 'unknown'
6065    if (window.ActiveXObject || 'ActiveXObject' in window) this.browser = 'IE'
6066    else if (/chrome/i.test(navigator.userAgent)) this.browser = 'Chrome'
6067    else if (/safari/i.test(navigator.userAgent)) {
6068      if (/chrome/i.test(navigator.userAgent)) this.browser = 'Chrome'
6069      else this.browser = 'Safari'
6070    }
6071    else if (/firefox/i.test(navigator.userAgent)) this.browser = 'Firefox'
6072    else if (/opera/i.test(navigator.userAgent)) this.browser = 'Opera'
6073    else if (/edge/i.test(navigator.userAgent)) this.browser = 'Edge'
6074    else if (/qqbrowser/i.test(navigator.userAgent)) this.browser = 'QQBrowser'
6075    else if (/MicroMessenger/i.test(navigator.userAgent)) this.browser = 'WeChatBrowser'
6076  }
6077  initSelect() {
6078    Array.from(this.$target.querySelectorAll('select'))
6079      .forEach($select => new CEInquirySelect($select))
6080  }
6081  initFileInput() {
6082    Array.from(this.$target.querySelectorAll('.__inquiry-file'))
6083      .forEach($fileInput => new CEInquiryFileInput($fileInput, this.$submit))
6084  }
6085}
6086class CEList extends CElement {
6087  constructor(id = '', config = {}) {
6088    super(id, config)
6089    this.active_event = config.active_event || ''
6090    this.$albumDialog = null
6091    this.$albumItemThumbList = null
6092    this.albumSwiperThumbs = null
6093    this.albumSwiperPic = null
6094    this.id = id
6095    this.collapseOpen = false
6096    const { pagination_size_xl, pagination_size_md, pagination_size_df } = this.props
6097    this.pagination_size = window.innerWidth >= 1200 ? pagination_size_xl : window.innerWidth >= 768 ? pagination_size_md : pagination_size_df
6098    this.pagination_current = 1
6099  }
6100  init() {
6101    const { album_status, collapse_status, collapse_limit, swiper_status, data, pagination_status } = this.props
6102    album_status && !this.app.query.design && this.initAlbum()
6103    collapse_status && data.length > collapse_limit && !swiper_status && this.initCollapse()
6104    pagination_status && data.length > this.pagination_size && !collapse_status && !swiper_status && this.initPagination()
6105    this.active_event && this.initActiveEvent()
6106  }
6107  initActiveEvent() {
6108    const setActive = $inner => {
6109      Array.from($inner.parentElement.parentElement.children).forEach($child => {
6110        $child === $inner.parentElement ? $child.classList.add('active') : $child.classList.remove('active')
6111      })
6112    }
6113    switch (this.active_event) {
6114      case 'hover':
6115        Array.from(this.$target.querySelectorAll(`.__list_item-inner`)).forEach($inner => {
6116          $inner.addEventListener('mouseenter', () => setActive($inner))
6117          $inner.addEventListener('touchstart', () => setActive($inner))
6118        })
6119        break
6120      case 'click':
6121        Array.from(this.$target.querySelectorAll(`.__list_item-inner`)).forEach($inner => {
6122          $inner.addEventListener('click', () => setActive($inner))
6123        })
6124        break
6125      default:
6126        break
6127    }
6128  }
6129  initPagination() {
6130    const $pagination = this.$target.querySelector('.__list-pagination')
6131    if ($pagination) $pagination.remove()
6132    const pagination = new PaginationElement({ current: this.pagination_current, total: Math.ceil(this.props.data.length / this.pagination_size), onClick: value => this.onPaginationClick(value) })
6133    pagination.$el.classList.add('__pagination--pill', '__list-pagination')
6134    this.$target.append(pagination.$el)
6135    this.$items = this.$items || Array.from(this.$target.querySelectorAll(`.__list_item`))
6136    const minIndex = (this.pagination_current - 1) * this.pagination_size
6137    const maxIndex = this.pagination_current * this.pagination_size - 1
6138    this.$items.forEach(($item, index) => {
6139      if (index >= minIndex && index <= maxIndex) $item.removeAttribute('hidden')
6140      else $item.setAttribute('hidden', true)
6141    })
6142  }
6143  onPaginationClick(value) {
6144    this.pagination_current = value
6145    this.initPagination()
6146    this.$target.scrollIntoView()
6147  }
6148  initCollapse() {
6149    const $inner = this.$target.querySelector(`.__list-inner`)
6150    const $item = this.$target.querySelector(`.__list_item:nth-child(${this.props.collapse_limit})`)
6151    const $collapseButton = this.$target.querySelector(`.__list-collapse .__button`)
6152    const $collapseText = this.$target.querySelector(`.__list-collapse .__text`)
6153    if (!$inner || !$item || !$collapseButton || !$collapseText) return
6154    const updataCollapseHeight = () => {
6155      const collapseHeight = this.collapseOpen ? $inner.scrollHeight : $item.offsetTop + $item.offsetHeight
6156      this.$target.style.setProperty('--collapse-height', collapseHeight + 'px')
6157    }
6158    $collapseButton.addEventListener('click', () => {
6159      this.collapseOpen = !this.collapseOpen
6160      this.collapseOpen ? this.$target.classList.add('__list--collapse_open') : this.$target.classList.remove('__list--collapse_open')
6161      updataCollapseHeight()
6162    })
6163    setInterval(() => updataCollapseHeight(), 500)
6164  }
6165  initAlbum() {
6166    this.initAlbumDialog()
6167    this.initAlbumSwiper()
6168    this.initAlbumItemClick()
6169    if (window.screen.width > 1200 && this.props.album_magnifier_status) this.initAlbumMagnifier()
6170  }
6171  initAlbumDialog() {
6172    // $dialog
6173    this.$albumDialog = document.createElement('div')
6174    this.$albumDialog.classList.add('__list_album_dialog', 'hidden')
6175    // $inner
6176    const $inner = document.createElement('div')
6177    $inner.classList.add('__list_album_dialog-inner')
6178    this.$albumDialog.append($inner)
6179    // data
6180    const itemsHtml = this.props.data.map(item => {
6181      return `
6182        <div class="swiper-slide">
6183          <div class="__list_album_dialog-item_thumb">
6184            <div class="__list_album_dialog-item_thumb-inner">
6185              <img src="${item.image}" alt="${app.getImageAlt(item.title)}" title="${app.getImageTitle(item.title)}">
6186            </div>
6187          </div>
6188        </div>
6189      `
6190    }).join('')
6191    const $swiperBox = document.createElement('div')
6192    $swiperBox.classList.add('__list_album_dialog-swiper')
6193    const $swiper_thumbs = document.createElement('div')
6194    $swiper_thumbs.classList.add('swiper', `__${this.id}_thumbs`, `__list_album_dialog-swiper_thumbs`)
6195    $swiper_thumbs.innerHTML = `
6196      <div class="swiper-wrapper">
6197        ${itemsHtml}
6198      </div>
6199    `
6200    const $swiper_pic = document.createElement('div')
6201    $swiper_pic.classList.add('swiper', `__${this.id}_pic`, `__list_album_dialog-swiper_pic`)
6202    if (this.props.album_magnifier_status) $swiper_pic.classList.add(`__list--ablum-magnifier`)
6203    $swiper_pic.innerHTML = `
6204      <div class="swiper-wrapper">
6205        ${itemsHtml}
6206      </div>
6207      <div class="swiper-button-next"></div>
6208      <div class="swiper-button-prev"></div>
6209    `
6210    this.$albumItemThumbList = $swiper_pic.querySelectorAll('.__list_album_dialog-item_thumb')
6211    $swiperBox.appendChild($swiper_pic)
6212    $swiperBox.appendChild($swiper_thumbs)
6213    $inner.appendChild($swiperBox)
6214    // $close
6215    const $close = document.createElement('div')
6216    $close.classList.add('__list_album_dialog-close')
6217    $close.innerHTML = 'X'
6218    this.$albumDialog.append($close)
6219    $close.addEventListener('click', () => {
6220      this.$albumDialog.classList.remove('show')
6221    })
6222    document.body.append(this.$albumDialog)
6223  }
6224  initAlbumSwiper() {
6225    this.albumSwiperThumbs = new Swiper(`.__${this.id}_thumbs`, {
6226      loop: false,
6227      spaceBetween: 10,
6228      slidesPerView: this.props.data.length < 5 ? this.props.data.length : 5,
6229      freeMode: true,
6230      watchSlidesProgress: true,
6231    })
6232    this.albumSwiperPic = new Swiper(`.__${this.id}_pic`, {
6233      loop: false,
6234      spaceBetween: 10,
6235      navigation: {
6236        nextEl: ".swiper-button-next",
6237        prevEl: ".swiper-button-prev",
6238      },
6239      thumbs: {
6240        swiper: this.albumSwiperThumbs,
6241      },
6242      observer: true,
6243      observeParents: true,
6244      on: {
6245        slideChangeTransitionStart: () => {
6246          Array.from(this.$albumItemThumbList).forEach($el => {
6247            $el.children[0].style.transform = ''
6248            $el.classList.remove('__list_album_dialog-item_thumb--zoom')
6249          })
6250        }
6251      }
6252    });
6253  }
6254  initAlbumItemClick() {
6255    const findItem = ($el) => {
6256      let bool = false
6257      let index = 0
6258      const checkInner = ($item) => {
6259        if ($item.classList.contains('__list')) return
6260        if ($item.classList.contains('__list_item')) {
6261          bool = true
6262          const id = $item.getAttribute('id')
6263          index = Array.from(this.$target.querySelectorAll('.__list_item')).findIndex(x => x.getAttribute('id') === id)
6264        } else checkInner($item.parentNode)
6265      }
6266      checkInner($el)
6267      return { bool, index }
6268    }
6269    this.$target.addEventListener('click', event => {
6270      event.preventDefault()
6271      const info = findItem(event.target)
6272      if (info.bool) {
6273        this.$albumDialog.classList.add('show')
6274        this.albumSwiperPic.slideTo(info.index)
6275      }
6276    })
6277  }
6278  initAlbumMagnifier() {
6279    const calcOffset = (event, $el) => {
6280      const m = 2
6281      const center = [$el.offsetWidth / 2, $el.offsetHeight / 2]
6282      const mousePos = [event.clientX, event.clientY]
6283      const transform = [(center[0] - mousePos[0]) * m, (center[1] - mousePos[1]) * m]
6284      $el.style.transform = `translate(${transform[0]}px, ${transform[1]}px) scale(${m})`
6285    }
6286    Array.from(this.$albumItemThumbList).forEach($el => {
6287      const $inner = $el.children[0]
6288      $el.addEventListener('click', (event) => {
6289        event.preventDefault()
6290        if ($inner.style.transform) {
6291          $inner.style.transform = ''
6292          $el.classList.remove('__list_album_dialog-item_thumb--zoom')
6293        }
6294        else {
6295          calcOffset(event,  $inner)
6296          $el.classList.add('__list_album_dialog-item_thumb--zoom')
6297        }
6298      })
6299       $el.addEventListener('mousemove', (event) => {
6300        if ($inner.style.transform) calcOffset(event,  $inner)
6301      })
6302    })
6303  }
6304}
6305class CENav2 extends CElement {
6306  constructor(id = '', config = {}) {
6307    super(id, config)
6308    this.mapItemByid = {}
6309    this.mapDialogByItemid = {}
6310    this.mapDialogByPid = {}
6311    this.$outer = this.$target.querySelector('.__nav_2-outer')
6312    this.$itemList = Array.from(this.$target.querySelectorAll('.__nav_2-item--top,.__nav_2-item--group_item'))
6313    this.$dialogList = Array.from(this.$target.querySelectorAll('.__nav_2-dialog'))
6314  }
6315  init() {
6316    this.$outer && document.body.appendChild(this.$outer)
6317    this.updataOuterTop()
6318    this.initElement()
6319    this.initEvent()
6320    // setInterval(() => this.updataOuterTop(), 500)
6321    return this
6322  }
6323  initElement() {
6324    this.$dialogList
6325      .forEach($group => {
6326        if ($group.dataset.pid) this.mapDialogByPid[$group.dataset.pid] = $group
6327        Array.from($group.querySelectorAll('.__nav_2-item--top,.__nav_2-item--group_item'))
6328          .forEach($item => {
6329            this.mapDialogByItemid[$item.dataset.id] = $group
6330          })
6331      })
6332    this.$itemList
6333      .forEach($item => {
6334        if ($item.dataset.id) this.mapItemByid[$item.dataset.id] = $item
6335      })
6336  }
6337  updataOuterTop() {
6338    const { y, height } = this.$target.getBoundingClientRect()
6339    if (this.$outer) this.$outer.style.top = y + height + 'px'
6340  }
6341  initEvent() {
6342    this.$itemList.forEach($item => {
6343      $item.addEventListener('mouseover', () => {
6344        const $group = this.mapDialogByPid[$item.dataset.id]
6345        const $parentGroup = this.mapDialogByPid[$item.dataset.pid]
6346        this.hoverItem($item)
6347        if ($group) {
6348          const { x, y } = this.getCoords($item, $group)
6349          $group.style.top = y + 'px'
6350          $group.style.left = x + 'px'
6351          this.showGroup($group)
6352        } else if ($parentGroup) this.showGroup($parentGroup)
6353      })
6354      $item.addEventListener('mouseleave', () => {
6355        const $group = this.mapDialogByPid[$item.dataset.id]
6356        this.blurItem($item)
6357        if ($group) this.hideGroup($group)
6358      })
6359    })
6360    this.$dialogList.forEach($group => {
6361      const $item = this.mapItemByid[$group.dataset.pid]
6362      $group.addEventListener('mouseover', () => {
6363        this.hoverItem($item)
6364        this.showGroup($group)
6365      })
6366      $group.addEventListener('mouseleave', () => {
6367        this.blurItem($item)
6368        this.hideGroup($group)
6369      })
6370    })
6371  }
6372  getCoords($item, $children) {
6373    const itemRect = $item.getBoundingClientRect()
6374    const navRect = this.$target.getBoundingClientRect()
6375    const childrenRect = $children.getBoundingClientRect()
6376    const coords = { x: 0, y: 0 }
6377    if ($item.classList.value.includes('__nav_2-item--top')) {
6378      // 顶级往下展开
6379      coords.x = itemRect.x
6380      coords.y = 0
6381      if (childrenRect.width + coords.x > window.innerWidth) coords.x = window.innerWidth - childrenRect.width
6382      if (coords.x < 0) coords.x = itemRect.x
6383      if ($children.classList.value.includes('__nav_2-dialog--1')) $children.classList.add('__nav_2-dialog--top')
6384    } else {
6385      // 往右/左展开
6386      coords.x = itemRect.x + itemRect.width
6387      coords.y = itemRect.y - navRect.height - navRect.y
6388      if (childrenRect.width + coords.x > window.innerWidth) coords.x = itemRect.x - childrenRect.width
6389      if (coords.x < 0) coords.x = itemRect.x + itemRect.width
6390    }
6391    return coords
6392  }
6393  showGroup($group) {
6394    if (!$group) return
6395    $group.classList.add('show')
6396    this.showGroup(this.mapDialogByItemid[$group.dataset.pid])
6397    this.updataOuterTop()
6398  }
6399  hideGroup($group) {
6400    if (!$group) return
6401    $group.classList.remove('show')
6402    this.hideGroup(this.mapDialogByItemid[$group.dataset.pid])
6403  }
6404  hoverItem($item) {
6405    if (!$item) return
6406    $item.children[0].classList.add('hover')
6407    this.hoverItem(this.mapItemByid[$item.dataset.pid])
6408  }
6409  blurItem($item) {
6410    if (!$item) return
6411    $item.children[0].classList.remove('hover')
6412    this.blurItem(this.mapItemByid[$item.dataset.pid])
6413  }
6414}
6415class CENavMobile extends CElement {
6416  constructor(id = '', config = {}) {
6417    super(id, config)
6418    this.$icon = this.$target.querySelector('.__nav_mobile-icon_menu')
6419    this.$dialog = this.$target.querySelector('.__nav_mobile-dialog')
6420    this.$drops = this.$dialog && this.$dialog.querySelectorAll('.__nav_mobile-icon_arrow')
6421    this.$close = this.$dialog && this.$dialog.querySelector('.__nav_mobile-icon_close')
6422    this.$searchInput = this.$dialog && this.$dialog.querySelector('.__nav_mobile-search_input')
6423  }
6424  init() {
6425    if (window.app.query.design) return
6426    document.body.append(this.$dialog)
6427    this.initEvent()
6428    return this
6429  }
6430  initEvent() {
6431    for (let $el of this.$drops) {
6432      $el.addEventListener('click', (e) => {
6433        e.stopPropagation()
6434        e.preventDefault()
6435        $el.parentNode.nextElementSibling.classList.toggle('show')
6436      })
6437    }
6438    this.$icon.addEventListener('click', () => {
6439      this.$dialog.classList.toggle('active')
6440    })
6441    this.$close.addEventListener('click', () => {
6442      this.$dialog.classList.remove('active')
6443    })
6444    this.$searchInput && this.$searchInput.addEventListener("keyup", function (event) {
6445      event.preventDefault();
6446      if (event.keyCode === 13) {
6447        const keyword = event.target.value
6448        if (!keyword) return
6449        const { translate_status, default_language, translate_type, language } = window.app
6450        window.location.href = (translate_status && translate_type === 1 && language !== default_language ? '/' + language : '') + `/search.html?keyword=${keyword}`
6451      }
6452    });
6453  }
6454}
6455class CENav extends CElement {
6456  constructor(id = '', config = {}) {
6457    super(id, config)
6458    this.mapItemByid = {}
6459    this.mapDialogByItemid = {}
6460    this.mapDialogByPid = {}
6461    this.$outer = this.$target.querySelector('.__nav-outer')
6462    this.$inner = this.$target.querySelector('.__nav-inner')
6463    this.$itemList = Array.from(this.$target.querySelectorAll('.__nav-item:not(.__nav-group_header)'))
6464    this.$dialogList = Array.from(this.$target.querySelectorAll('.__nav-dialog'))
6465  }
6466  init() {
6467    this.initstyle()
6468    this.initElement()
6469    this.initEvent()
6470    setInterval(() => this.initstyle(), 500)
6471    return this
6472  }
6473  initElement() {
6474    this.$dialogList
6475      .forEach($group => {
6476        if ($group.dataset.pid) this.mapDialogByPid[$group.dataset.pid] = $group
6477        Array.from($group.querySelectorAll('.__nav-item:not(.__nav-group_header)'))
6478          .forEach($item => {
6479            this.mapDialogByItemid[$item.dataset.id] = $group
6480          })
6481      })
6482    this.$itemList
6483      .forEach($item => {
6484        if ($item.dataset.id) this.mapItemByid[$item.dataset.id] = $item
6485      })
6486  }
6487  initstyle() {
6488    this.$target.style.height = this.$inner.clientHeight + 'px'
6489    this.$target.style.setProperty('--width', this.$target.offsetWidth + 'px')
6490    const navRect = this.$target.getBoundingClientRect()
6491    this.$outer.style.setProperty('--y-gap', (navRect.y + navRect.height) * 2 + 'px')
6492    this.$outer.style.left = `-${navRect.x}px`
6493  }
6494  initEvent() {
6495    this.$itemList.forEach($item => {
6496      $item.addEventListener('mouseenter', () => {
6497        const $group = this.mapDialogByPid[$item.dataset.id]
6498        const $parentGroup = this.mapDialogByPid[$item.dataset.pid]
6499        this.hoverItem($item)
6500        if ($group) {
6501          const { x, y } = this.getCoords($item, $group)
6502          $group.style.top = y + 'px'
6503          $group.style.left = x + 'px'
6504          this.showGroup($group)
6505        } else if ($parentGroup) this.showGroup($parentGroup)
6506      })
6507      $item.addEventListener('mouseleave', () => {
6508        const $group = this.mapDialogByPid[$item.dataset.id]
6509        this.blurItem($item)
6510        if ($group) this.hideGroup($group)
6511      })
6512    })
6513    this.$dialogList.forEach($group => {
6514      const $item = this.mapItemByid[$group.dataset.pid]
6515      $group.addEventListener('mouseenter', () => {
6516        this.hoverItem($item)
6517        this.showGroup($group)
6518      })
6519      $group.addEventListener('mouseleave', () => {
6520        this.blurItem($item)
6521        this.hideGroup($group)
6522      })
6523    })
6524  }
6525  getCoords($item, $children) {
6526    const itemRect = $item.getBoundingClientRect()
6527    const navRect = this.$target.getBoundingClientRect()
6528    const childrenRect = $children.getBoundingClientRect()
6529    const coords = { x: 0, y: 0 }
6530    if ($item.classList.value.includes('__nav-item--nav')) {
6531      // 往下展开
6532      coords.x = itemRect.x
6533      coords.y = 0
6534      if (childrenRect.width + coords.x > window.innerWidth) coords.x = window.innerWidth - childrenRect.width
6535      if (coords.x < 0) coords.x = itemRect.x
6536    } else {
6537      // 往右展开
6538      coords.x = itemRect.x + itemRect.width
6539      coords.y = itemRect.y - navRect.height - navRect.y
6540      if (childrenRect.width + coords.x > window.innerWidth) coords.x = itemRect.x - childrenRect.width
6541      if (coords.x < 0) coords.x = itemRect.x + itemRect.width
6542    }
6543    return coords
6544  }
6545  showGroup($group) {
6546    if (!$group) return
6547    $group.classList.add('show')
6548    this.showGroup(this.mapDialogByItemid[$group.dataset.pid])
6549  }
6550  hideGroup($group) {
6551    if (!$group) return
6552    $group.classList.remove('show')
6553    this.hideGroup(this.mapDialogByItemid[$group.dataset.pid])
6554  }
6555  hoverItem($item) {
6556    if (!$item) return
6557    $item.classList.add('hover')
6558    this.hoverItem(this.mapItemByid[$item.dataset.pid])
6559  }
6560  blurItem($item) {
6561    if (!$item) return
6562    $item.classList.remove('hover')
6563    this.blurItem(this.mapItemByid[$item.dataset.pid])
6564  }
6565}
6566class CENumber extends CElement {
6567  constructor(id = '', props = {}) {
6568    super(id, props)
6569    this.gap = 10
6570    this.value = props.value
6571    this.duration = props.duration
6572    this.delay = props.delay
6573    this.time = 0
6574    this.maxTime = Math.ceil(this.duration / this.gap)
6575    this.replay = props.replay || 0 // 0执行一次 1每次出现时 2每次往下滚动出现时 3每次往上滚动出现时
6576  }
6577  init() {
6578    if (window.app.query.design) return
6579    const observer = () => {
6580      const { top, height } = this.$target.getBoundingClientRect()
6581      const { innerHeight } = window
6582      const { replay, time } = this
6583      if (top <= innerHeight && top + height >= 0) { if (!time) this.render() }
6584      else if (replay==1?true:replay==2?top>innerHeight:replay==3?top+height<0:false) this.time = 0
6585    }
6586    observer()
6587    this.app.addEventListener(window, 'scroll', observer)
6588  }
6589  render() {
6590    this.time++
6591    setTimeout(() => {
6592      if (this.time >= this.maxTime) this.$target.innerHTML = parseInt(this.value).toLocaleString()
6593      else {
6594        const value = Math.floor(this.value / (this.duration / this.gap) * this.time)
6595        this.$target.innerHTML = value.toLocaleString()
6596        this.render()
6597      }
6598    }, this.gap)
6599  }
6600}
6601class CEProductAlbum extends CElement {
6602  constructor(id = '', config = {}) {
6603    super(id, config)
6604    this.pictureSwiper = {}
6605  }
6606  async init() {
6607    this.$collapse = this.$target.querySelector('.__list-collapse')
6608    this.initDialog()
6609    this.initSwiper()
6610    this.initCollapse()
6611    this.initMagnifier()
6612    this.initVideo()
6613    return this
6614  }
6615  showParam(paramId) {
6616    const $thisParam = this.$target.querySelector(`.__product_album-inner--param[data-id="${paramId}"]`)
6617    Array.from(this.$target.querySelectorAll('.__product_album-inner'))
6618      .forEach($inner => {
6619        if ($thisParam) {
6620          if (paramId ? $inner.dataset.id == paramId : !$inner.dataset.id) $inner.removeAttribute('hidden')
6621          else $inner.setAttribute('hidden', 'true')
6622        } else {
6623          if ($inner.dataset.id) $inner.setAttribute('hidden', 'true')
6624          else $inner.removeAttribute('hidden')
6625        }
6626      })
6627    this.pauseVideo()
6628    if (this.$collapse) {
6629      if (paramId) this.$collapse.setAttribute('hidden', true)
6630      else this.$collapse.removeAttribute('hidden')
6631    }
6632  }
6633  initVideo() {
6634    const { video_controls } = this.props || {}
6635    this.$video = this.$target.querySelector('.__product_album-item_video')
6636    this.$play = this.$target.querySelector('.__product_album-picture .__product_album-item_play,.__product_album-item_iframe + .__product_album-item_play')
6637    this.$iframe = this.$target.querySelector('.__product_album-item_iframe')
6638    this.$poster = this.$target.querySelector('.__product_album-item_poster')
6639    if (!video_controls) {
6640      this.$video && this.$video.addEventListener('click', () => {
6641        if (this.$video && this.$video.paused) this.playVideo()
6642        else this.pauseVideo()
6643      })
6644    }
6645    if (this.$play) {
6646      this.$play.addEventListener('click', () => this.playVideo())
6647      this.$video && this.$video.addEventListener('pause', () => {
6648        !video_controls && this.$video && this.$video.removeAttribute('controls')
6649        this.$play.removeAttribute('hidden')
6650      })
6651    }
6652    this.$video && this.$video.addEventListener('play', () => this.$target.classList.add('hide-sticker'))
6653    this.$video && this.$video.addEventListener('pause', () => this.$target.classList.remove('hide-sticker'))
6654  }
6655  playVideo() {
6656    const { video_controls } = this.props || {}
6657    this.$video && this.$video.play()
6658    this.$video && video_controls && this.$video.setAttribute('controls', true)
6659    this.$play && this.$play.setAttribute('hidden', true)
6660    this.$poster && this.$poster.setAttribute('hidden', true)
6661    if (this.$iframe) {
6662      this.$iframe.src = this.$iframe.dataset.src + (this.$iframe.dataset.src.includes('?') ? '&' : '?' ) + 'autoplay=1'
6663      this.$iframe.removeAttribute('hidden')
6664    }
6665  }
6666  pauseVideo() {
6667    const { video_controls } = this.props || {}
6668    this.$video && this.$video.pause()
6669    this.$video && !video_controls && this.$video.removeAttribute('controls')
6670    this.$play && this.$play.removeAttribute('hidden')
6671    this.$poster && this.$poster.removeAttribute('hidden')
6672    if (this.$iframe) {
6673      this.$iframe.src = this.$poster ? '' : this.$iframe.dataset.src || this.$iframe.src
6674      this.$poster && this.$iframe.setAttribute('hidden', true)
6675    }
6676  }
6677  initDialog() {
6678    const { dialog_status, magnifier_status, data, params, swiper_status } = this.props || {}
6679    if (!dialog_status) return
6680    Array.from(this.$target.querySelectorAll('.__product_album-inner'))
6681      .forEach($inner => {
6682        const albumDialogData = $inner.dataset.id ? params[$inner.dataset.id] : data
6683        const albumDialog = new AlbumDialog(
6684          albumDialogData.filter(item => item.type === 'image'),
6685          { magnifier_status, onSlideChange: index => {
6686            albumDialogData.forEach(item => { if (item.type !== 'image') index++ })
6687            const pictureSwiper = this.pictureSwiper[$inner.dataset.id || '']
6688            pictureSwiper && pictureSwiper.slideTo(index)
6689          } },
6690        )
6691        Array.from($inner.querySelectorAll(
6692          (swiper_status ? '.__product_album-picture ' : '') + '.__product_album-item_image'
6693        )).forEach(($image, index) => {
6694            $image.addEventListener('click', () => albumDialog.show(index))
6695          })
6696      })
6697  }
6698  initMagnifier() {
6699    const { magnifier_status, swiper_status, dialog_status } = this.props || {}
6700    if (!magnifier_status || dialog_status) return
6701    Array.from(this.$target.querySelectorAll(
6702      (swiper_status ? '.__product_album-picture ' : '') + '.__product_album-item_image')
6703    ).forEach($image => new Magnifier($image, { onChange: status => status === 'start' ? this.$target.classList.add('hide-sticker') : this.$target.classList.remove('hide-sticker') }))
6704  }
6705  initSwiper() {
6706    const { swiper_status, params, swiper_direction } = this.props || {}
6707    if (!swiper_status) return
6708    ['', ...Object.keys(params)].forEach(id => {
6709      const thumbSwiperId = `#${this.$target.id}-thumb${id}`
6710      const pictureSwiperId = `#${this.$target.id}-picture${id}`
6711      const thumbSwiper = new Swiper(`${thumbSwiperId} .swiper`, {
6712        direction: swiper_direction,
6713        spaceBetween: 10,
6714        slidesPerView: 'auto',
6715        freeMode: true,
6716        watchSlidesProgress: true,
6717        navigation: {
6718          nextEl: `${thumbSwiperId} .swiper-button-next`,
6719          prevEl: `${thumbSwiperId} .swiper-button-prev`,
6720        },
6721      })
6722      this.pictureSwiper[id] = new Swiper(`${pictureSwiperId} .swiper`, {
6723        spaceBetween: 10,
6724        autoHeight: true,
6725        navigation: {
6726          nextEl: `${pictureSwiperId} .swiper-button-next`,
6727          prevEl: `${pictureSwiperId} .swiper-button-prev`,
6728        },
6729        thumbs: { swiper: thumbSwiper },
6730        on: { transitionEnd: () => {
6731          if (!this.pictureSwiper[id] || this.pictureSwiper[id].activeIndex !== 0) this.pauseVideo()
6732        } },
6733      })
6734      setInterval(() => this.pictureSwiper[id].updateAutoHeight(), 1000)
6735    })
6736  }
6737  initCollapse() {
6738    const { swiper_status, collapse_status, collapse_limit, data } = this.props || {}
6739    if (swiper_status || !collapse_status || data.length < collapse_limit) return
6740    const $inner = this.$target.querySelector(`.__list-inner`)
6741    const $item = this.$target.querySelector(`.__list_item:nth-child(${collapse_limit})`)
6742    const $collapseButton = this.$target.querySelector(`.__list-collapse .__button`)
6743    const $collapseText = this.$target.querySelector(`.__list-collapse .__text`)
6744    if (!$inner || !$item || !$collapseButton || !$collapseText) return
6745    const updataCollapseHeight = () => {
6746      const collapseHeight = this.collapseOpen ? $inner.scrollHeight : $item.offsetTop + $item.offsetHeight
6747      this.$target.style.setProperty('--collapse-height', collapseHeight + 'px')
6748    }
6749    $collapseButton.addEventListener('click', () => {
6750      this.collapseOpen = !this.collapseOpen
6751      this.collapseOpen ? this.$target.classList.add('__list--collapse_open') : this.$target.classList.remove('__list--collapse_open')
6752      updataCollapseHeight()
6753    })
6754    setInterval(() => updataCollapseHeight(), 500)
6755  }
6756}
6757class ProductAttr {
6758  constructor($target, parent) {
6759    this.parent = parent
6760    this.$target = $target
6761    this.$attr = this.$target.querySelectorAll('[data-attr]')
6762    this.activeParamId = ''
6763  }
6764  init() {
6765    this.initEvent()
6766    return this
6767  }
6768  initEvent() {
6769    for (let $el of this.$attr) {
6770      $el.addEventListener('click', () => {
6771        this.setActive($el.dataset.attr)
6772        this.activeParamId = this.activeParamId == $el.dataset.id ? '' : $el.dataset.id
6773        this.parent.postImage(this.activeParamId)
6774      })
6775    }
6776  }
6777  setActive(id) {
6778    if (this.attrId === id) id = ''
6779    this.attrId = id
6780    for (let $el of this.$attr) {
6781      if ($el.dataset.attr === id) {
6782        $el.classList.add('active')
6783      } else $el.classList.remove('active')
6784    }
6785  }
6786}
6787
6788class CEProductParams extends CElement {
6789  constructor(id = '', config = {}) {
6790    super(id, config)
6791    this.attr = []
6792  }
6793  async init() {
6794    this.initAttr()
6795    return this
6796  }
6797  initAttr() {
6798    const $attr = this.$target.querySelectorAll('[data-type="3"]')
6799    Promise.all(Array.from($attr).map($el => {
6800      return new Promise(resolve => {
6801        resolve(new ProductAttr($el, this).init())
6802      })
6803    })).then(res => this.attr = res)
6804  }
6805  postImage(paramId) {
6806    this.caller('product-album', 'showParam', paramId)
6807  }
6808  clearAttr() {
6809    this.attr.forEach(item => item.setActive())
6810  }
6811}
6812class CESearchBar extends CElement {
6813  constructor(id = '', config = {}) {
6814    super(id, config)
6815    const $input = this.$target.querySelector('.__search_bar-input')
6816    const $term1 = this.$target.querySelector('.__search_bar-term--1')
6817    const keyword = this.app.query.keyword || ''
6818    $input.value = keyword
6819    if ($term1) new Anchor({ $el: $term1, $event: this.$target.children[0] })
6820  }
6821}
6822const mapTypes = {
6823  products: 'product',
6824  articles: 'article',
6825  cases: 'case',
6826  videos: 'video',
6827  faqs: 'faq',
6828  download: 'download',
6829}
6830const mapTypesByScope = {
6831  1: 'product',
6832  2: 'article',
6833  3: 'case',
6834  4: 'video',
6835  5: 'faq',
6836  6: 'download',
6837}
6838
6839class CESearchResults extends CElement {
6840  constructor(id = '', config = {}) {
6841    super(id, config)
6842    const { content, current, keyword, scope, design, select } = this.app.query
6843    this.$tabList = Array.from(this.$target.querySelectorAll('.__search_results-tab'))
6844    this.$items = this.$target.querySelector('.__search_results-items')
6845    this.$keyword1 = this.$target.querySelector('.__search_results-keyword--1')
6846    this.$keyword0 = this.$target.querySelector('.__search_results-keyword--0')
6847    this.$total = this.$target.querySelector('.__search_results-total')
6848    this.$tips = this.$target.querySelector('.__search_results-tips')
6849    this.select = select || 0
6850    this.keyword = keyword || ''
6851    this.loading = false
6852    this.scope = scope ? scope.split(',') : []
6853    this.current = parseInt(current) || 1
6854    this.contentType = config.content_mode != 2 ? content || '' : ''
6855    if (!this.contentType && config.content_mode == 1 && this.scope.length) this.contentType = mapTypesByScope[this.scope[0]]
6856    this.isHelp = config.content_type === 'help'
6857    this.viewStorageName = `search_results_view${config.content_type?'--help':''}`
6858    if (this.keyword && this.$keyword1) this.$keyword1.innerHTML = this.keyword
6859    if (this.keyword && this.$keyword0) this.$keyword0.innerHTML = this.keyword
6860    else this.$tips && this.$tips.remove()
6861    if (config.toggle_view && !design && window.localStorage.getItem(this.viewStorageName)) {
6862      if (window.localStorage.getItem(`${id}-view`) === 'card') this.setViewCard()
6863      else this.setViewList()
6864    }
6865  }
6866  async init() {
6867    this.initEvent()
6868    this.initHtml(await this.initData())
6869    this.initViewToggle()
6870    return this
6871  }
6872  initViewToggle() {
6873    const $viewIconCard = this.$target.querySelector('.__search_results-view_icon--card')
6874    const $viewIconList = this.$target.querySelector('.__search_results-view_icon--list')
6875    $viewIconCard && $viewIconCard.addEventListener('click', () => this.setViewList())
6876    $viewIconList && $viewIconList.addEventListener('click', () => this.setViewCard())
6877  }
6878  setViewCard() {
6879    const { card_cols_xl, card_cols_md, card_cols_df } = this.props
6880    this.$target.classList.remove('__search_results--list')
6881    this.$target.classList.add('__search_results--card')
6882    this.$items.setAttribute('class', `__search_results-items row row-cols-${card_cols_df} row-cols-md-${card_cols_md} row-cols-xl-${card_cols_xl}`)
6883    window.localStorage.setItem(this.viewStorageName, 'card')
6884  }
6885  setViewList() {
6886    const { list_cols_xl, list_cols_md, list_cols_df } = this.props
6887    this.$target.classList.remove('__search_results--card')
6888    this.$target.classList.add('__search_results--list')
6889    this.$items.setAttribute('class', `__search_results-items row row-cols-${list_cols_df} row-cols-md-${list_cols_md} row-cols-xl-${list_cols_xl}`)
6890    window.localStorage.setItem(this.viewStorageName, 'list')
6891  }
6892  initEvent() {
6893    this.$tabList.forEach(item => {
6894      item.addEventListener('click', event => {
6895        const type = event.target.dataset.type
6896        if (type) {
6897          this.contentType = type
6898          // this.current = 1
6899          this.search()
6900          // this.$target.dataset.type = type
6901        }
6902      })
6903    })
6904  }
6905  initData(token) {
6906    return new Promise(resolve => {
6907      this.loading = true
6908      this.$target.classList.add('__search_results--loading')
6909      const params = {
6910        current_page: this.current,
6911        per_page: 20,
6912        keyword: this.keyword,
6913        site_id: this.app.site_id,
6914        language: this.app.language,
6915        path: document.referrer ? new URL(document.referrer).pathname : location.pathname,
6916      }
6917      if (token) params.token = token
6918      if (this.select) params.select = this.select
6919      this.app.sdk.request({ url: `/web/search${this.isHelp?'/help':''}/list`, params })
6920        .then(res => {
6921          switch (res.code) {
6922            case 200:
6923              const resData = {}
6924              if (this.isHelp) {
6925                resData.help = {
6926                  data: res.data.data.map(item => {
6927                    const category = item.category_list && item.category_list[0] && item.category_list[0].category_name || ''
6928                    return { title: item.title, subtitle: item.subtitle, description: item.content, href: item.path, category }
6929                  }),
6930                  last_page: res.data.last_page,
6931                  total: res.data.total,
6932                }
6933              } else {
6934                Object.keys(mapTypes).forEach(type => {
6935                  const items = res.data[type]
6936                  switch (type) {
6937                    case 'faqs':
6938                      resData[mapTypes[type]] = {
6939                        data: items.data.map(item => ({ title: item.question, subtitle: item.subtitle, description: item.answer })),
6940                        last_page: items.last_page,
6941                        total: items.total,
6942                      }
6943                      break
6944                    case 'download':
6945                      resData[mapTypes[type]] = {
6946                        data: items.data.map(item => {
6947                          const { HTTPS, API, CDN2 } = globalThis.env
6948                          const file_icon = 1
6949                          const files = {
6950                            1: ['pdf','txt','jpg','jpeg','png','svg','zip','aac','avi','bmp','3gp','cer','br','dif','json','mp4','ogg','mp3','ppt','dox','docx','pptx','rmvb','m4a','wasm','wav','silk','xlsx','rar','wxs','xls'],
6951                            2: ['ai', 'css', 'doc', 'eps', 'flv', 'gif', 'html', 'ico', 'java', 'jpeg', 'mp4', 'pdf', 'png', 'ppt', 'ps', 'svg', 'txt', 'word', 'xls', 'zip'],
6952                          }
6953                          const { file_ext, url, file_path } = item.link || {}
6954                          const res = {
6955                            title: item.title, subtitle: item.subtitle, description: item.summary,
6956                            image: (item.cover||{}).url || `/assets/image/file-icon/${file_icon}/${files[file_icon]&&files[file_icon].includes(file_ext)?file_ext:'file'}.svg`,
6957                          }
6958                          if (url && /\.(zip|pdf|rar)$/i.test(url)) {
6959                            res.href = CDN2 ? '//' + atob(CDN2) + '/' + file_path : url
6960                            // res.link_target = '_blank' // 搜索结果都是新开标签打开
6961                          } else {
6962                            res.href = `${HTTPS}://${atob(API||'')}/web/download/save?site_id=${item.site_id}&foreign_type=download&foreign_id=${item.id}&attachment_id=${item.link_id}`
6963                          }
6964                          return res
6965                        }),
6966                        last_page: items.last_page,
6967                        total: items.total,
6968                      }
6969                      break
6970                    default:
6971                      resData[mapTypes[type]] = {
6972                        data: items.data.map(item => ({ title: item.title, subtitle: item.subtitle, description: item.summary, image: item.front_cover_url, video: item.video_url, href: item.path })),
6973                        last_page: items.last_page,
6974                        total: items.total,
6975                      }
6976                      break
6977                  }
6978                })
6979              }
6980              resolve(resData)
6981              break
6982            case 5017208:
6983              this.app.captcha(true)
6984                .then(token => {
6985                  this.initData(token)
6986                    .then(res => resolve(res))
6987                    .catch(() => resolve())
6988                })
6989                .catch(() => !this.app.query.design && alert('Captcha Error'))
6990              break
6991            default:
6992              !this.app.query.design && alert(res.message || 'Search Error')
6993              break
6994          }
6995          this.loading = false
6996          this.$target.classList.remove('__search_results--loading')
6997        })
6998        .catch(() => {
6999          this.loading = false
7000          this.$target.classList.remove('__search_results--loading')
7001          resolve()
7002        })
7003    })
7004  }
7005  initHtml(data = {}) {
7006    let allTotal = 0
7007    let last_page = 1
7008    let newHtml = ''
7009    Object.keys(data).forEach(type => {
7010      const items = data[type]
7011      // html
7012      if (items.data.length) newHtml += `<div class="__search_results-items_title" data-type="${type}">${type} (${items.total})</div>`
7013      items.data.forEach(({ href, image, video, title, subtitle, description, category }) => {
7014        if (type === 'video' && !image) image = `${video}
7014?x-oss-process=video/snapshot,t_0,ar_auto`
7015        newHtml += `
7016          <div data-type="${type}" class="__search_results-item">
7017            <div class="__search_results-item_inner">
7018              ${image ? `<div class="__search_results-item_image"><img class="__search_results-item_img" src="${image}" /></div>` : ''}
7019              <div class="__search_results-item_text">
7020                ${category ? `<div class="__search_results-item_category"><span>${category}</span></div>` : ''}
7021                ${title ? `<div class="__search_results-item_title">${this.getHeightLightHtml(title)}</div>` : ''}
7022                ${subtitle ? `<div class="__search_results-item_subtitle">${this.getHeightLightHtml(subtitle)}</div>` : ''}
7023                ${description ? `<div class="__search_results-item_description">${this.getHeightLightHtml(description)}</div>` : ''}
7024                <div class="__search_results-item_info"><span>${type}</span></div>
7025              </div>
7026              <a class="__search_results-item_link" class="__search_results-item_text" href="${href||'javascript:;'}" ${href?'target="_blank"':''}></a>
7027            </div>
7028          </div>
7029        `
7030      })
7031      // all total
7032      allTotal += items.total
7033      // ont help
7034      if (!this.isHelp) {
7035        const $tab = this.$target.querySelector(`[data-type="${type}"].__search_results-tab`)
7036        const $tabTotal = $tab && $tab.querySelector('span')
7037        // total
7038        if ($tabTotal) $tabTotal.innerHTML = items.total
7039        // last page
7040        if (type === this.contentType) last_page = items.last_page
7041        // hidden tab
7042        if (!items.data.length && $tab) $tab.setAttribute('hidden', '')
7043        // active tab
7044        if (this.props.content_mode == 1 && !this.contentType && items.data.length) this.contentType = type
7045      }
7046      if (this.props.content_mode == 2 && items.last_page > last_page) last_page = items.last_page
7047    })
7048    // html
7049    this.$items.innerHTML = newHtml
7050    // all total
7051    const $allTotal = this.$target.querySelector(`[data-type="all"].__search_results-tab span`)
7052    if ($allTotal) $allTotal.innerHTML = allTotal
7053    // no data
7054    if (!allTotal) this.$target.classList.add('__search_results--no_data')
7055    // pagination
7056    if (last_page > 1) {
7057      const pagination = new PaginationElement({ current: this.current, total: last_page, onClick: value => this.onPaginationClick(value) })
7058      this.$target.append(pagination.$el)
7059      pagination.$el.classList.add('__pagination--pill', '__search_results-pagination')
7060    }
7061    // active tab
7062    if (this.isHelp) this.contentType = 'help'
7063    if (this.contentType) {
7064      this.$target.dataset.type = this.contentType
7065      if (this.$total) this.$total.innerHTML = data[this.contentType].total
7066    }
7067    else {
7068      const $active = this.$target.querySelector(`.__search_results-tab:not([hidden])`)
7069      if ($active) this.$target.dataset.type = $active.dataset.type
7070      if (this.$total) this.$total.innerHTML = allTotal
7071    }
7072  }
7073  onPaginationClick(value) {
7074    this.current = value
7075    location.href = `${location.pathname}?content=${this.contentType}&current=${this.current}&keyword=${this.keyword}`
7076  }
7077  // getHeightLightHtml(string = '') {
7078  //   return this.keyword ? string.replace(new RegExp(this.keyword, 'gim'), p1 => `<span class="height-light">${p1}</span>`) : string
7079  // }
7080  getHeightLightHtml(html = '') {
7081    if (!this.keyword) return html
7082    const template = document.createElement('template')
7083    template.innerHTML = html
7084    const walker = document.createTreeWalker(template.content, NodeFilter.SHOW_TEXT)
7085    const textNodes = []
7086    while (walker.nextNode()) textNodes.push(walker.currentNode)
7087    textNodes.forEach(node => {
7088      const text = node.nodeValue
7089      if (!text || !text.includes(this.keyword)) return
7090      const fragment = document.createDocumentFragment()
7091      const parts = text.split(this.keyword)
7092      parts.forEach((part, index) => {
7093        fragment.appendChild(document.createTextNode(part))
7094        if (index < parts.length - 1) {
7095          const span = document.createElement('span')
7096          span.className = 'height-light'
7097          span.textContent = this.keyword
7098          fragment.appendChild(span)
7099        }
7100      })
7101      node.parentNode.replaceChild(fragment, node)
7102    })
7103    return template.innerHTML
7104  }
7105  search() {
7106    const { scope, contentType, current, keyword } = this
7107    if (app.query.design) return
7108    location.href = `${location.pathname}?scope=${scope}&content=${contentType}&current=${current}&keyword=${keyword}`
7109  }
7110}
7111class CESearch extends CElement {
7112  constructor(id = '', config = {}) {
7113    super(id, config)
7114  }
7115  init() {
7116    if (window.app.query.design) return
7117    const { event, dialog } = this.props
7118    const $inner = this.$target.querySelector('.__search-inner')
7119    switch (event) {
7120      case 'open-dialog':
7121        $inner.addEventListener('click', () => app.openDialog(dialog))
7122        break
7123      case 'link':
7124        break
7125      default:
7126        const $dialog = this.$target.querySelector('.__search-dialog')
7127        const $close = this.$target.querySelector('.__search-close')
7128        const $input = this.$target.querySelector('.__search-input')
7129        const anchor = new Anchor({ $el: $dialog, $event: this.$target })
7130        $inner.addEventListener('click', () => setTimeout(() => $input.focus(), 500))
7131        $input.addEventListener('click', event => event.stopPropagation())
7132        $close.addEventListener('click', () => anchor.close())
7133        break
7134    }
7135  }
7136}
7137window.tabsActiveIndex = window.tabsActiveIndex || {}
7138class CETabs extends CElement {
7139  constructor(id = '', config = {}) {
7140    super(id, config)
7141  }
7142  init() {
7143    const $tabList = Array.from(this.$target.children[0].children[0].children[0].children)
7144    const $panelList = Array.from(this.$target.children[1].children)
7145    const $nodeAll = [...$tabList, ...$panelList]
7146    const onClick = index => {
7147      window.tabsActiveIndex[this.$target.sign] = index
7148      $nodeAll.forEach($el => $el.classList.remove('active'))
7149      $tabList[index].classList.add('active')
7150      $panelList[index].classList.add('active')
7151    }
7152    $tabList.forEach(($tab, index) => $tab.addEventListener('click', () => onClick(index)))
7153    onClick(window.tabsActiveIndex[this.$target.sign] || 0)
7154  }
7155}
7156class CETheme extends CElement {
7157  constructor(id = '', config = {}) {
7158    super(id, config)
7159    if (window.app.query.design) return
7160    // const $inner = this.$target.querySelector('.__theme-inner')
7161    const $dialog = this.$target.querySelector('.__theme-dialog')
7162    const $light = this.$target.querySelector('.__theme-item--light')
7163    const $dark = this.$target.querySelector('.__theme-item--dark')
7164    const $auto = this.$target.querySelector('.__theme-item--auto')
7165    $light && $light.addEventListener('click', () => this.app.setTheme('light', true))
7166    $dark && $dark.addEventListener('click', () => this.app.setTheme('dark', true))
7167    $auto && $auto.addEventListener('click', () => this.app.setTheme('auto', true))
7168    new Anchor({ $el: $dialog, $event: this.$target })
7169    // if ($dialog && $inner) {
7170    //   // document.body.append($dialog)
7171    //   $inner.addEventListener('focus', () => {
7172    //     // const { scrollY, scrollX } = window
7173    //     // const { top, left, width, height } = this.$target.getBoundingClientRect()
7174    //     // $dialog.style.top = top + scrollY + height + 'px'
7175    //     // $dialog.style.left = left + scrollX + width + 'px'
7176    //     $dialog.classList.add('show')
7177    //   })
7178    //   this.$target.addEventListener('blur', () => $dialog.classList.remove('show'))
7179    // }
7180  }
7181}
7182class CETranslate extends CElement {
7183  constructor(id = '', config = {}) {
7184    super(id, config)
7185  }
7186  init() {
7187    if (window.app.query.design) return
7188    const { event, dialog } = this.props
7189    const $inner = this.$target.querySelector('.__translate-inner')
7190    switch (event) {
7191      case 'open-dialog':
7192        $inner.addEventListener('click', () => app.openDialog(dialog))
7193        break
7194      default:
7195        const $dialog = this.$target.querySelector('.__translate-dialog')
7196        new Anchor({ $el: $dialog, $event: this.$target })
7197        break
7198    }
7199  }
7200}
7201class CETree extends CElement {
7202  constructor(id = '', config = {}) {
7203    super(id, config)
7204  }
7205  init() {
7206    this.expand()
7207  }
7208  expand() {
7209    const items = this.$target.querySelectorAll('.__tree-item_arrow')
7210    const isAccordion = this.$target.classList.contains('__tree--accordion')
7211    for(let $el of items) {
7212      $el.addEventListener('click', () => {
7213        const parent = $el.parentNode
7214        if (isAccordion) {
7215          parent.classList.add('active')
7216          const xx = $el.parentNode.parentNode.parentNode.children
7217          for (let item of xx) {
7218            Array.from(item.children).forEach(x => {
7219              if (!x.classList.contains('active')) x.removeAttribute('open')
7220            })
7221          }
7222          parent.classList.remove('active')
7223        } 
7224        parent.getAttribute('open') ? parent.removeAttribute('open') : parent.setAttribute('open', true)
7225      })
7226    }
7227  }
7228}
7229class CEVideo extends CElement {
7230  constructor(id = '', config = {}) {
7231    super(id, config)
7232  }
7233  init() {
7234    if (this.props.dialog) this.initDialog()
7235    if (this.props.model === 'iframe') this.initIframe()
7236  }
7237  initDialog() {
7238    this.$target.addEventListener('click', event => {
7239      event.preventDefault()
7240      const $dialog = document.createElement('div')
7241      $dialog.classList.add('__video_dialog')
7242      const $inner = document.createElement('div')
7243      $inner.classList.add('__video_dialog-inner')
7244      $dialog.append($inner)
7245      const $video = document.createElement('video')
7246      $video.classList.add('__video_dialog-video')
7247      $video.src = this.props.video
7248      // $video.poster = this.props.image
7249      $video.autoplay = true
7250      $video.controls = true
7251      $inner.append($video)
7252      const $close = document.createElement('span')
7253      $close.classList.add('__video_dialog-close')
7254      $close.addEventListener('click', () => $dialog.remove())
7255      $inner.append($close)
7256      document.body.append($dialog)
7257    })
7258  }
7259  initIframe() {
7260    const $play = this.$target.querySelector('.__video-play')
7261    if (!$play) return
7262    const video = this.props.video + (this.props.video.includes('?') ? '&' : '?' ) + 'autoplay=1'
7263    $play.addEventListener('click', () => {
7264      this.$target.innerHTML = `<iframe class="__video-iframe" src="${video}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`
7265    })
7266  }
7267}
7268class CEVs extends CElement {
7269  constructor(id = '', config = {}) {
7270    super(id, config)
7271    this.active = false
7272  }
7273  init() {
7274    const $range = this.$target.querySelector('.__vs-range')
7275    if ($range) {
7276      $range.addEventListener('mousedown', event => {
7277        event.preventDefault()
7278        this.active = true
7279        this.onMove(event)
7280      })
7281      $range.addEventListener('touchstart', event => {
7282        event.preventDefault()
7283        this.active = true
7284        this.onMove(event)
7285      })
7286      this.app.addEventListener(window, 'touchend', () => this.active = false)
7287      this.app.addEventListener(window, 'touchcancel', () => this.active = false)
7288      this.app.addEventListener(window, 'mouseup', () => this.active = false)
7289      this.app.addEventListener(window, 'mouseleave', () => this.active = false)
7290      $range.addEventListener('mousemove', event => this.onMove(event))
7291      $range.addEventListener('touchmove', event => this.onMove(event))
7292
7293    }
7294  }
7295  onMove({ offsetX, target, changedTouches }) {
7296    if (!this.active) return
7297    const { left, width } = target.getBoundingClientRect()
7298    const x = offsetX || (changedTouches[0].pageX - left)
7299    this.$target.style.setProperty('--range', (x + 1) / width * 100 + '%')
7300  }
7301}

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