|
|
!(function(){var Gu=Object.defineProperty,zu=Object.defineProperties;var Vu=Object.getOwnPropertyDescriptors;var sl=Object.getOwnPropertySymbols;var vu=Object.prototype.hasOwnProperty,mu=Object.prototype.propertyIsEnumerable;var gu=(rt,ke,J)=>ke in rt?Gu(rt,ke,{enumerable:!0,configurable:!0,writable:!0,value:J}):rt[ke]=J,Ui=(rt,ke)=>{for(var J in ke||(ke={}))vu.call(ke,J)&&gu(rt,J,ke[J]);if(sl)for(var J of sl(ke))mu.call(ke,J)&&gu(rt,J,ke[J]);return rt},au=(rt,ke)=>zu(rt,Vu(ke));var yu=(rt,ke)=>{var J={};for(var oe in rt)vu.call(rt,oe)&&ke.indexOf(oe)<0&&(J[oe]=rt[oe]);if(rt!=null&&sl)for(var oe of sl(rt))ke.indexOf(oe)<0&&mu.call(rt,oe)&&(J[oe]=rt[oe]);return J};(self.webpackChunk=self.webpackChunk||[]).push([[8401],{87169:function(rt,ke,J){"use strict";J.d(ke,{Z:function(){return A}});var oe=J(60499),ie=J(59301),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},C=t,b=J(7657),a=function(h,o){return ie.createElement(b.Z,(0,oe.Z)({},h,{ref:o,icon:C}))},u=ie.forwardRef(a),A=u},88319:function(){"use strict"},94896:function(){"use strict"},47257:function(rt){(function(ke){(function(J){if(1)rt.exports=J();else var oe})(function(){var J,oe,ie;return function(){function t(C,b,a){function u(h,o){if(!b[h]){if(!C[h]){var n=void 0;if(!o&&n)return require(h,!0);if(A)return A(h,!0);var r=new Error("Cannot find module '"+h+"'");throw r.code="MODULE_NOT_FOUND",r}var s=b[h]={exports:{}};C[h][0].call(s.exports,function(l){var d=C[h][1][l];return u(d||l)},s,s.exports,t,C,b,a)}return b[h].exports}for(var A=void 0,c=0;c<a.length;c++)u(a[c]);return u}return t}()({1:[function(t,C,b){"use strict";var a=t("./browser/client");a.Buffer=t("buffer").Buffer,a.urllib=t("../shims/xhr"),a.version=t("./browser/version").version,C.exports=a},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator"));t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.slice.js");var c=t("assert"),h=t("../common/utils/checkBucketName"),o=h.checkBucketName,n=b;function r(l){return Array.isArray?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"}function s(l){return l?r(l)?l:[l]:[]}n.useBucket=function(d){return o(d),this.options.bucket=d,this},n.setBucket=function(d){return o(d),this.options.bucket=d,this},n.getBucket=function(){return this.options.bucket},n.deleteBucket=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=this._bucketRequestParams("DELETE",g,"",m),F.next=3,this.request(v);case 3:if(_=F.sent,!(_.status===200||_.status===204)){F.next=6;break}return F.abrupt("return",{res:_.res});case 6:return F.next=8,this.requestError(_);case 8:throw F.sent;case 9:case"end":return F.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.putBucketACL=function(){var l=(0,A.default)(u.default.mark(function p(g,m,v){var _,O;return u.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return _=this._bucketRequestParams("PUT",g,"acl",v),_.headers={"x-oss-acl":m},_.successStatuses=[200],T.next=5,this.request(_);case 5:return O=T.sent,T.abrupt("return",{bucket:O.headers.location&&O.headers.location.substring(1)||null,res:O.res});case 7:case"end":return T.stop()}},p,this)}));function d(p,g,m){return l.apply(this,arguments)}return d}(),n.getBucketACL=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=this._bucketRequestParams("GET",g,"acl",m),v.successStatuses=[200],v.xmlResponse=!0,F.next=5,this.request(v);case 5:return _=F.sent,F.abrupt("return",{acl:_.data.AccessControlList.Grant,owner:{id:_.data.Owner.ID,displayName:_.data.Owner.DisplayName},res:_.res});case 7:case"end":return F.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.putBucketLogging=function(){var l=(0,A.default)(u.default.mark(function p(g,m,v){var _,O,F;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return _=this._bucketRequestParams("PUT",g,"logging",v),O=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(g,`</TargetBucket>
|
|
|
`),m&&(O+="<TargetPrefix>".concat(m,`</TargetPrefix>
|
|
|
`)),O+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,_.content=O,_.mime="xml",_.successStatuses=[200],S.next=9,this.request(_);case 9:return F=S.sent,S.abrupt("return",{res:F.res});case 11:case"end":return S.stop()}},p,this)}));function d(p,g,m){return l.apply(this,arguments)}return d}(),n.getBucketLogging=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_,O;return u.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return v=this._bucketRequestParams("GET",g,"logging",m),v.successStatuses=[200],v.xmlResponse=!0,T.next=5,this.request(v);case 5:return _=T.sent,O=_.data.LoggingEnabled,T.abrupt("return",{enable:!!O,prefix:O&&O.TargetPrefix||null,res:_.res});case 8:case"end":return T.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.deleteBucketLogging=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=this._bucketRequestParams("DELETE",g,"logging",m),v.successStatuses=[204,200],F.next=4,this.request(v);case 4:return _=F.sent,F.abrupt("return",{res:_.res});case 6:case"end":return F.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.putBucketCORS=function(){var l=(0,A.default)(u.default.mark(function p(g,m,v){var _,O,F,T,S,I,E,M,N,V;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:for(m=m||[],c(m.length,"rules is required"),m.forEach(function(G){c(G.allowedOrigin,"allowedOrigin is required"),c(G.allowedMethod,"allowedMethod is required")}),_=this._bucketRequestParams("PUT",g,"cors",v),O=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,F=function(ee){O+="<AllowedOrigin>".concat(ee,"</AllowedOrigin>")},T=function(ee){O+="<AllowedMethod>".concat(ee,"</AllowedMethod>")},S=function(ee){O+="<AllowedHeader>".concat(ee,"</AllowedHeader>")},I=function(ee){O+="<ExposeHeader>".concat(ee,"</ExposeHeader>")},E=0,M=m.length;E<M;E++)N=m[E],O+="<CORSRule>",s(N.allowedOrigin).forEach(F),s(N.allowedMethod).forEach(T),s(N.allowedHeader).forEach(S),s(N.exposeHeader).forEach(I),N.maxAgeSeconds&&(O+="<MaxAgeSeconds>".concat(N.maxAgeSeconds,"</MaxAgeSeconds>")),O+="</CORSRule>";return O+="</CORSConfiguration>",_.content=O,_.mime="xml",_.successStatuses=[200],X.next=16,this.request(_);case 16:return V=X.sent,X.abrupt("return",{res:V.res});case 18:case"end":return X.stop()}},p,this)}));function d(p,g,m){return l.apply(this,arguments)}return d}(),n.getBucketCORS=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_,O,F;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return v=this._bucketRequestParams("GET",g,"cors",m),v.successStatuses=[200],v.xmlResponse=!0,S.next=5,this.request(v);case 5:return _=S.sent,O=[],_.data&&_.data.CORSRule&&(F=_.data.CORSRule,r(F)||(F=[F]),F.forEach(function(I){var E={};Object.keys(I).forEach(function(M){E[M.slice(0,1).toLowerCase()+M.slice(1,M.length)]=I[M]}),O.push(E)})),S.abrupt("return",{rules:O,res:_.res});case 9:case"end":return S.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.deleteBucketCORS=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=this._bucketRequestParams("DELETE",g,"cors",m),v.successStatuses=[204],F.next=4,this.request(v);case 4:return _=F.sent,F.abrupt("return",{res:_.res});case 6:case"end":return F.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.putBucketReferer=function(){var l=(0,A.default)(u.default.mark(function p(g,m,v,_){var O,F,T,S;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(O=this._bucketRequestParams("PUT",g,"referer",_),F=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,F+=" <AllowEmptyReferer>".concat(m?"true":"false",`</AllowEmptyReferer>
|
|
|
`),v&&v.length>0){for(F+=` <RefererList>
|
|
|
`,T=0;T<v.length;T++)F+=" <Referer>".concat(v[T],`</Referer>
|
|
|
`);F+=` </RefererList>
|
|
|
`}else F+=` <RefererList />
|
|
|
`;return F+="</RefererConfiguration>",O.content=F,O.mime="xml",O.successStatuses=[200],E.next=10,this.request(O);case 10:return S=E.sent,E.abrupt("return",{res:S.res});case 12:case"end":return E.stop()}},p,this)}));function d(p,g,m,v){return l.apply(this,arguments)}return d}(),n.getBucketReferer=function(){var l=(0,A.default)(u.default.mark(function p(g,m){var v,_,O;return u.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return v=this._bucketRequestParams("GET",g,"referer",m),v.successStatuses=[200],v.xmlResponse=!0,T.next=5,this.request(v);case 5:return _=T.sent,O=_.data.RefererList.Referer||null,O&&(r(O)||(O=[O])),T.abrupt("return",{allowEmpty:_.data.AllowEmptyReferer==="true",referers:O,res:_.res});case 9:case"end":return T.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n.deleteBucketReferer=function(){var l=(0,A.default)(u.default.mark(function p(g,m){return u.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,this.putBucketReferer(g,!0,null,m);case 2:return _.abrupt("return",_.sent);case 3:case"end":return _.stop()}},p,this)}));function d(p,g){return l.apply(this,arguments)}return d}(),n._bucketRequestParams=function(d,p,g,m){return{method:d,bucket:p,subres:g,timeout:m&&m.timeout,ctx:m&&m.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(t,C,b){(function(a,u){(function(){"use strict";var A=t("@babel/runtime/helpers/interopRequireDefault"),c=A(t("@babel/runtime/regenerator")),h=A(t("@babel/runtime/helpers/asyncToGenerator"));t("core-js/modules/es.function.name.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.split.js"),t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.symbol.js"),t("core-js/modules/es.symbol.description.js"),t("core-js/modules/es.array.slice.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.regexp.to-string.js");var o=t("debug")("ali-oss"),n=t("xml2js"),r=t("agentkeepalive"),s=t("merge-descriptors"),l=t("platform"),d=t("utility"),p=t("urllib"),g=t("./version"),m=t("bowser"),v=t("../common/signUtils"),_=t("../common/client/initOptions"),O=t("../common/utils/createRequest"),F=O.createRequest,T=t("../common/utils/encoder"),S=T.encoder,I=t("../common/client/getReqUrl"),E=I.getReqUrl,M=t("../common/utils/setSTSToken"),N=M.setSTSToken,V=t("../common/utils/retry"),H=V.retry,X=t("../common/utils/isFunction"),G=X.isFunction,ee=new r;function Z(){var ue=l.name,pe=l.version;ue&&ue.toLowerCase&&ue.toLowerCase()==="ie"&&pe.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Ae(){return location&&location.protocol==="https:"}function U(ue,pe){if(Z(),!(this instanceof U))return new U(ue,pe);ue&&ue.inited?this.options=ue:this.options=U.initOptions(ue),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=p,this.agent=this.options.agent||ee),this.ctx=pe,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}C.exports=U,U.initOptions=function(pe){pe.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var fe=Object.assign({secure:Ae(),useFetch:!1},pe);return _(fe)};var W=U.prototype;W.debug=o,s(W,t("./object")),s(W,t("./bucket")),s(W,t("../common/bucket/getBucketWebsite")),s(W,t("../common/bucket/putBucketWebsite")),s(W,t("../common/bucket/deleteBucketWebsite")),s(W,t("../common/bucket/getBucketLifecycle")),s(W,t("../common/bucket/putBucketLifecycle")),s(W,t("../common/bucket/deleteBucketLifecycle")),s(W,t("../common/bucket/putBucketVersioning")),s(W,t("../common/bucket/getBucketVersioning")),s(W,t("../common/bucket/getBucketInventory")),s(W,t("../common/bucket/deleteBucketInventory")),s(W,t("../common/bucket/listBucketInventory")),s(W,t("../common/bucket/putBucketInventory")),s(W,t("../common/bucket/abortBucketWorm")),s(W,t("../common/bucket/completeBucketWorm")),s(W,t("../common/bucket/extendBucketWorm")),s(W,t("../common/bucket/getBucketWorm")),s(W,t("../common/bucket/initiateBucketWorm")),s(W,t("./managed-upload")),s(W,t("../common/multipart-copy")),s(W,t("../common/multipart")),s(W,t("../common/parallel")),W.signature=function(pe){return this.debug("authorization stringToSign: %s",pe,"info"),v.computeSignature(this.options.accessKeySecret,pe,this.options.headerEncoding)},W._getReqUrl=E,W.authorization=function(pe,fe,ce,be){var Ce=v.buildCanonicalString(pe.toUpperCase(),fe,{headers:be,parameters:ce});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,Ce,this.options.headerEncoding)},W.request=function(){var ue=(0,h.default)(c.default.mark(function pe(fe){var ce=this;return c.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!this.options.retryMax){Ce.next=6;break}return Ce.next=3,H(le.bind(this),this.options.retryMax,{errorHandler:function(Se){var me=function($){if(fe.stream)return!1;var B=[-1,-2].includes($.status),k=ce.options.requestErrorRetryHandle||function(){return!0};return B&&k($)};return!!me(Se)}})(fe);case 3:return Ce.abrupt("return",Ce.sent);case 6:return Ce.abrupt("return",le.call(this,fe));case 7:case"end":return Ce.stop()}},pe,this)}));return function(pe){return ue.apply(this,arguments)}}();function le(ue){return he.apply(this,arguments)}function he(){return he=(0,h.default)(c.default.mark(function ue(pe){var fe,ce,be,Ce,xe,Se;return c.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(!(this.options.stsToken&&G(this.options.refreshSTSToken))){te.next=3;break}return te.next=3,N.call(this);case 3:return fe=F.call(this,pe),this.options.useFetch||(fe.params.mode="disable-fetch"),Ce=!!pe.stream,te.prev=6,te.next=9,this.urllib.request(fe.url,fe.params);case 9:ce=te.sent,this.debug("response %s %s, got %s, headers: %j",pe.method,fe.url,ce.status,ce.headers,"info"),te.next=16;break;case 13:te.prev=13,te.t0=te.catch(6),be=te.t0;case 16:if(!(ce&&pe.successStatuses&&pe.successStatuses.indexOf(ce.status)===-1)){te.next=28;break}return te.next=19,this.requestError(ce);case 19:if(xe=te.sent,!(xe.code==="RequestTimeTooSkewed"&&!Ce)){te.next=25;break}return this.options.amendTimeSkewed=+new Date(xe.serverTime)-new Date,te.next=24,this.request(pe);case 24:return te.abrupt("return",te.sent);case 25:xe.params=pe,te.next=32;break;case 28:if(!be){te.next=32;break}return te.next=31,this.requestError(be);case 31:xe=te.sent;case 32:if(!xe){te.next=34;break}throw xe;case 34:if(!pe.xmlResponse){te.next=39;break}return te.next=37,this.parseXML(ce.data);case 37:Se=te.sent,ce.data=Se;case 39:return te.abrupt("return",ce);case 40:case"end":return te.stop()}},ue,this,[[6,13]])})),he.apply(this,arguments)}W._getResource=function(pe){var fe="/";return pe.bucket&&(fe+="".concat(pe.bucket,"/")),pe.object&&(fe+=S(pe.object,this.options.headerEncoding)),fe},W._escape=function(pe){return d.encodeURIComponent(pe).replace(/%2F/g,"/")},W._getUserAgent=function(){var pe=u&&u.browser?"js":"nodejs",fe="aliyun-sdk-".concat(pe,"/").concat(g.version),ce=l.description;return!ce&&u&&(ce="Node.js ".concat(u.version.slice(1)," on ").concat(u.platform," ").concat(u.arch)),this._checkUserAgent("".concat(fe," ").concat(ce))},W._checkUserAgent=function(pe){var fe=pe.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return fe},W.checkBrowserAndVersion=function(pe,fe){return m.name===pe&&m.version.split(".")[0]===fe},W.parseXML=function(pe){return new Promise(function(fe,ce){a.isBuffer(pe)&&(pe=pe.toString()),n.parseString(pe,{explicitRoot:!1,explicitArray:!1},function(be,Ce){be?ce(be):fe(Ce)})})},W.requestError=function(){var ue=(0,h.default)(c.default.mark(function fe(ce){var be,Ce,xe,Se;return c.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(be=null,!(!ce.data||!ce.data.length)){te.next=5;break}ce.status===-1||ce.status===-2?(be=new Error(ce.message),be.name=ce.name,be.status=ce.status,be.code=ce.name):(ce.status===404?(be=new Error("Object not exists"),be.name="NoSuchKeyError",be.status=404,be.code="NoSuchKey"):ce.status===412?(be=new Error("Pre condition failed"),be.name="PreconditionFailedError",be.status=412,be.code="PreconditionFailed"):(be=new Error("Unknow error, status: ".concat(ce.status)),be.name="UnknownError",be.status=ce.status),be.requestId=ce.headers["x-oss-request-id"],be.host=""),te.next=32;break;case 5:return Ce=String(ce.data),this.debug("request response error data: %s",Ce,"error"),te.prev=7,te.next=10,this.parseXML(Ce);case 10:if(te.t0=te.sent,te.t0){te.next=13;break}te.t0={};case 13:xe=te.t0,te.next=23;break;case 16:return te.prev=16,te.t1=te.catch(7),this.debug(Ce,"error"),te.t1.message+=`
|
|
|
raw xml: `.concat(Ce),te.t1.status=ce.status,te.t1.requestId=ce.headers["x-oss-request-id"],te.abrupt("return",te.t1);case 23:Se=xe.Message||"unknow request error, status: ".concat(ce.status),xe.Condition&&(Se+=" (condition: ".concat(xe.Condition,")")),be=new Error(Se),be.name=xe.Code?"".concat(xe.Code,"Error"):"UnknownError",be.status=ce.status,be.code=xe.Code,be.requestId=xe.RequestId,be.hostId=xe.HostId,be.serverTime=xe.ServerTime;case 32:return this.debug("generate error %j",be,"error"),te.abrupt("return",be);case 34:case"end":return te.stop()}},fe,this,[[7,16]])}));function pe(fe){return ue.apply(this,arguments)}return pe}()}).call(this)}).call(this,{isBuffer:t("../../node_modules/is-buffer/index.js")},t("_process"))},{"../../node_modules/is-buffer/index.js":366,"../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":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(t,C,b){(function(a){(function(){"use strict";var u=t("@babel/runtime/helpers/interopRequireDefault"),A=u(t("@babel/runtime/regenerator"));t("core-js/modules/es.function.name.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.array.from.js"),t("core-js/modules/es.string.iterator.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.array.filter.js"),t("core-js/modules/es.array.find.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.regexp.to-string.js"),t("core-js/modules/es.array.slice.js"),t("core-js/modules/es.array.iterator.js"),t("core-js/modules/es.array-buffer.slice.js"),t("core-js/modules/es.typed-array.uint8-array.js"),t("core-js/modules/es.typed-array.copy-within.js"),t("core-js/modules/es.typed-array.every.js"),t("core-js/modules/es.typed-array.fill.js"),t("core-js/modules/es.typed-array.filter.js"),t("core-js/modules/es.typed-array.find.js"),t("core-js/modules/es.typed-array.find-index.js"),t("core-js/modules/es.typed-array.for-each.js"),t("core-js/modules/es.typed-array.includes.js"),t("core-js/modules/es.typed-array.index-of.js"),t("core-js/modules/es.typed-array.iterator.js"),t("core-js/modules/es.typed-array.join.js"),t("core-js/modules/es.typed-array.last-index-of.js"),t("core-js/modules/es.typed-array.map.js"),t("core-js/modules/es.typed-array.reduce.js"),t("core-js/modules/es.typed-array.reduce-right.js"),t("core-js/modules/es.typed-array.reverse.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.slice.js"),t("core-js/modules/es.typed-array.some.js"),t("core-js/modules/es.typed-array.sort.js"),t("core-js/modules/es.typed-array.subarray.js"),t("core-js/modules/es.typed-array.to-locale-string.js"),t("core-js/modules/es.typed-array.to-string.js");var c=u(t("@babel/runtime/helpers/asyncToGenerator")),h=t("util"),o=t("path"),n=t("mime"),r=t("copy-to"),s=t("../common/utils/isBlob"),l=s.isBlob,d=t("../common/utils/isFile"),p=d.isFile,g=t("../common/utils/isBuffer"),m=g.isBuffer,v=b;v.multipartUpload=function(){var S=(0,c.default)(A.default.mark(function E(M,N){var V,H,X,G,ee,Z,Ae,U,W,le=arguments;return A.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(V=le.length>2&&le[2]!==void 0?le[2]:{},this.resetCancelFlag(),V.disabledMD5=V.disabledMD5===void 0?!0:!!V.disabledMD5,!(V.checkpoint&&V.checkpoint.uploadId)){ue.next=8;break}return N&&p(N)&&(V.checkpoint.file=N),ue.next=7,this._resumeMultipart(V.checkpoint,V);case 7:return ue.abrupt("return",ue.sent);case 8:return H=102400,V.mime||(p(N)?V.mime=n.getType(o.extname(N.name)):l(N)?V.mime=N.type:m(N)?V.mime="":V.mime=n.getType(o.extname(N))),V.headers=V.headers||{},this._convertMetaToHeaders(V.meta,V.headers),ue.next=14,this._getFileSize(N);case 14:if(X=ue.sent,!(X<H)){ue.next=26;break}return V.contentLength=X,ue.next=19,this.put(M,N,V);case 19:if(G=ue.sent,!(V&&V.progress)){ue.next=23;break}return ue.next=23,V.progress(1);case 23:return ee={res:G.res,bucket:this.options.bucket,name:M,etag:G.res.headers.etag},(V.headers&&V.headers["x-oss-callback"]||V.callback)&&(ee.data=G.data),ue.abrupt("return",ee);case 26:if(!(V.partSize&&parseInt(V.partSize,10)!==V.partSize)){ue.next=28;break}throw new Error("partSize must be int number");case 28:if(!(V.partSize&&V.partSize<H)){ue.next=30;break}throw new Error("partSize must not be smaller than ".concat(H));case 30:return ue.next=32,this.initMultipartUpload(M,V);case 32:if(Z=ue.sent,Ae=Z.uploadId,U=this._getPartSize(X,V.partSize),W={file:N,name:M,fileSize:X,partSize:U,uploadId:Ae,doneParts:[]},!(V&&V.progress)){ue.next=39;break}return ue.next=39,V.progress(0,W,Z.res);case 39:return ue.next=41,this._resumeMultipart(W,V);case 41:return ue.abrupt("return",ue.sent);case 42:case"end":return ue.stop()}},E,this)}));function I(E,M){return S.apply(this,arguments)}return I}(),v._resumeMultipart=function(){var S=(0,c.default)(A.default.mark(function E(M,N){var V,H,X,G,ee,Z,Ae,U,W,le,he,ue,pe,fe,ce,be,Ce,xe,Se;return A.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(V=this,!this.isCancel()){te.next=3;break}throw this._makeCancelEvent();case 3:return H=M.file,X=M.fileSize,G=M.partSize,ee=M.uploadId,Z=M.doneParts,Ae=M.name,U=[],Z.length>0&&r(Z).to(U),W=this._divideParts(X,G),le=W.length,he=!1,ue=function(B,k){return new Promise(function(){var q=(0,c.default)(A.default.mark(function ne(Q,z){var Y,re,ge,Be,Oe;return A.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Pe.prev=0,B.isCancel()){Pe.next=29;break}return Y=W[k-1],Pe.next=5,B._createBuffer(H,Y.start,Y.end);case 5:return re=Pe.sent,ge={content:re,size:Y.end-Y.start},Pe.prev=7,Pe.next=10,B._uploadPart(Ae,ee,k,ge,N);case 10:Be=Pe.sent,Pe.next=18;break;case 13:if(Pe.prev=13,Pe.t0=Pe.catch(7),Pe.t0.status!==404){Pe.next=17;break}throw B._makeAbortEvent();case 17:throw Pe.t0;case 18:if(!(!B.isCancel()&&!he)){Pe.next=26;break}if(M.doneParts.push({number:k,etag:Be.res.headers.etag}),!N.progress){Pe.next=23;break}return Pe.next=23,N.progress(Z.length/(le+1),M,Be.res);case 23:Q({number:k,etag:Be.res.headers.etag}),Pe.next=27;break;case 26:Q();case 27:Pe.next=30;break;case 29:Q();case 30:Pe.next=41;break;case 32:Pe.prev=32,Pe.t1=Pe.catch(0),Oe=new Error,Oe.name=Pe.t1.name,Oe.message=Pe.t1.message,Oe.stack=Pe.t1.stack,Oe.partNum=k,r(Pe.t1).to(Oe),z(Oe);case 41:case"end":return Pe.stop()}},ne,null,[[0,32],[7,13]])}));return function(ne,Q){return q.apply(this,arguments)}}())},pe=Array.from(new Array(le),function($,B){return B+1}),fe=U.map(function($){return $.number}),ce=pe.filter(function($){return fe.indexOf($)<0}),be=5,Ce=N.parallel||be,te.next=17,this._parallel(ce,Ce,function($){return new Promise(function(B,k){ue(V,$).then(function(q){q&&U.push(q),B()}).catch(function(q){k(q)})})});case 17:if(xe=te.sent,he=!0,Se=xe.find(function($){return $.name==="abort"}),!Se){te.next=22;break}throw Se;case 22:if(!this.isCancel()){te.next=25;break}throw ue=null,this._makeCancelEvent();case 25:if(!(xe&&xe.length>0)){te.next=28;break}throw xe[0].message="Failed to upload some parts with error: ".concat(xe[0].toString()," part_num: ").concat(xe[0].partNum),xe[0];case 28:return te.next=30,this.completeMultipartUpload(Ae,ee,U,N);case 30:return te.abrupt("return",te.sent);case 31:case"end":return te.stop()}},E,this)}));function I(E,M){return S.apply(this,arguments)}return I}(),v._getFileSize=function(){var S=(0,c.default)(A.default.mark(function E(M){return A.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!m(M)){V.next=4;break}return V.abrupt("return",M.length);case 4:if(!(l(M)||p(M))){V.next=6;break}return V.abrupt("return",M.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return V.stop()}},E)}));function I(E){return S.apply(this,arguments)}return I}();var _=t("stream"),O=_.Readable;function F(S,I){if(!(this instanceof F))return new F(S,I);O.call(this,I),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}h.inherits(F,O),F.prototype.readFileAndPush=function(I){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var M=this.start,N=M+I;N=N>this.fileBuffer.length?this.fileBuffer.length:N,this.start=N,E=this.push(this.fileBuffer.slice(M,N))}},F.prototype._read=function(I){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var E=16*1024;I=I||E;var M=this;this.reader.onload=function(V){M.fileBuffer=a.from(new Uint8Array(V.target.result)),M.file=null,M.readFileAndPush(I)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(I)};function T(S){return S.arrayBuffer?S.arrayBuffer():new Promise(function(I,E){var M=new FileReader;M.onload=function(N){I(N.target.result)},M.onerror=function(N){E(N)},M.readAsArrayBuffer(S)})}v._createBuffer=function(){var S=(0,c.default)(A.default.mark(function E(M,N,V){var H,X;return A.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!(l(M)||p(M))){ee.next=8;break}return H=M.slice(N,V),ee.next=4,T(H);case 4:return X=ee.sent,ee.abrupt("return",a.from(X));case 8:if(!m(M)){ee.next=12;break}return ee.abrupt("return",M.subarray(N,V));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ee.stop()}},E)}));function I(E,M,N){return S.apply(this,arguments)}return I}(),v._getPartSize=function(I,E){var M=1e4,N=1*1024*1024;E||(E=N);var V=Math.ceil(I/M);return E<V&&(E=V,console.warn("partSize has been set to ".concat(E,", because the partSize you provided causes partNumber to be greater than 10,000"))),E},v._divideParts=function(I,E){for(var M=Math.ceil(I/E),N=[],V=0;V<M;V++){var H=E*V,X=Math.min(H+E,I);N.push({start:H,end:X})}return N}}).call(this)}).call(this,t("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault");t("core-js/modules/es.function.name.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.regexp.to-string.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.number.constructor.js"),t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.promise.js");var u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("fs"),h=t("copy-to"),o=t("path"),n=t("mime"),r=t("../common/callback"),s=t("merge-descriptors"),l=t("../common/utils/isBlob"),d=l.isBlob,p=t("../common/utils/isFile"),g=p.isFile,m=t("../common/utils/isBuffer"),v=m.isBuffer,_=t("../common/utils/obj2xml"),O=_.obj2xml,F=b;F.append=function(){var T=(0,A.default)(u.default.mark(function I(E,M,N){var V;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return N=N||{},N.position===void 0&&(N.position="0"),N.subres={append:"",position:N.position},N.method="POST",X.next=6,this.put(E,M,N);case 6:return V=X.sent,V.nextAppendPosition=V.res.headers["x-oss-next-append-position"],X.abrupt("return",V);case 9:case"end":return X.stop()}},I,this)}));function S(I,E,M){return T.apply(this,arguments)}return S}(),F.put=function(){var T=(0,A.default)(u.default.mark(function I(E,M,N){var V,H,X,G,ee;return u.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(N=N||{},N.disabledMD5=N.disabledMD5===void 0?!0:!!N.disabledMD5,N.headers=N.headers||{},E=this._objectName(E),!v(M)){Ae.next=8;break}V=M,Ae.next=19;break;case 8:if(!(d(M)||g(M))){Ae.next=18;break}return N.mime||(g(M)?N.mime=n.getType(o.extname(M.name)):N.mime=M.type),Ae.next=12,this._createBuffer(M,0,M.size);case 12:return V=Ae.sent,Ae.next=15,this._getFileSize(M);case 15:N.contentLength=Ae.sent,Ae.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(N.meta,N.headers),H=N.method||"PUT",X=this._objectRequestParams(H,E,N),r.encodeCallback(X,N),X.mime=N.mime,X.disabledMD5=N.disabledMD5,X.content=V,X.successStatuses=[200],Ae.next=29,this.request(X);case 29:return G=Ae.sent,ee={name:E,url:this._objectUrl(E),res:G.res},X.headers&&X.headers["x-oss-callback"]&&(ee.data=JSON.parse(G.data.toString())),Ae.abrupt("return",ee);case 33:case"end":return Ae.stop()}},I,this)}));function S(I,E,M){return T.apply(this,arguments)}return S}(),F.putStream=function(){var T=(0,A.default)(u.default.mark(function I(E,M,N){var V,H,X,G;return u.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return N=N||{},N.headers=N.headers||{},E=this._objectName(E),N.contentLength?N.headers["Content-Length"]=N.contentLength:N.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(N.meta,N.headers),V=N.method||"PUT",H=this._objectRequestParams(V,E,N),r.encodeCallback(H,N),H.mime=N.mime,H.stream=M,H.successStatuses=[200],Z.next=13,this.request(H);case 13:return X=Z.sent,G={name:E,url:this._objectUrl(E),res:X.res},H.headers&&H.headers["x-oss-callback"]&&(G.data=JSON.parse(X.data.toString())),Z.abrupt("return",G);case 17:case"end":return Z.stop()}},I,this)}));function S(I,E,M){return T.apply(this,arguments)}return S}(),s(F,t("../common/object/copyObject")),s(F,t("../common/object/getObjectTagging")),s(F,t("../common/object/putObjectTagging")),s(F,t("../common/object/deleteObjectTagging")),s(F,t("../common/image")),s(F,t("../common/object/getBucketVersions")),s(F,t("../common/object/getACL")),s(F,t("../common/object/putACL")),s(F,t("../common/object/head")),s(F,t("../common/object/delete")),s(F,t("../common/object/get")),s(F,t("../common/object/putSymlink")),s(F,t("../common/object/getSymlink")),s(F,t("../common/object/deleteMulti")),s(F,t("../common/object/getObjectMeta")),s(F,t("../common/object/getObjectUrl")),s(F,t("../common/object/generateObjectUrl")),s(F,t("../common/object/signatureUrl")),s(F,t("../common/object/asyncSignatureUrl")),F.putMeta=function(){var T=(0,A.default)(u.default.mark(function I(E,M,N){var V;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.copy(E,E,{meta:M||{},timeout:N&&N.timeout,ctx:N&&N.ctx});case 2:return V=X.sent,X.abrupt("return",V);case 4:case"end":return X.stop()}},I,this)}));function S(I,E,M){return T.apply(this,arguments)}return S}(),F.list=function(){var T=(0,A.default)(u.default.mark(function I(E,M){var N,V,H,X,G;return u.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return N=this._objectRequestParams("GET","",M),N.query=E,N.xmlResponse=!0,N.successStatuses=[200],Z.next=6,this.request(N);case 6:return V=Z.sent,H=V.data.Contents||[],X=this,H&&(Array.isArray(H)||(H=[H]),H=H.map(function(Ae){return{name:Ae.Key,url:X._objectUrl(Ae.Key),lastModified:Ae.LastModified,etag:Ae.ETag,type:Ae.Type,size:Number(Ae.Size),storageClass:Ae.StorageClass,owner:{id:Ae.Owner.ID,displayName:Ae.Owner.DisplayName}}})),G=V.data.CommonPrefixes||null,G&&(Array.isArray(G)||(G=[G]),G=G.map(function(Ae){return Ae.Prefix})),Z.abrupt("return",{res:V.res,objects:H,prefixes:G,nextMarker:V.data.NextMarker||null,isTruncated:V.data.IsTruncated==="true"});case 13:case"end":return Z.stop()}},I,this)}));function S(I,E){return T.apply(this,arguments)}return S}(),F.listV2=function(){var T=(0,A.default)(u.default.mark(function I(E){var M,N,V,H,X,G,ee,Z=arguments;return u.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return M=Z.length>1&&Z[1]!==void 0?Z[1]:{},N=E["continuation-token"]||E.continuationToken,N&&(M.subres=Object.assign({"continuation-token":N},M.subres)),V=this._objectRequestParams("GET","",M),V.query=Object.assign({"list-type":2},E),delete V.query["continuation-token"],delete V.query.continuationToken,V.xmlResponse=!0,V.successStatuses=[200],U.next=11,this.request(V);case 11:return H=U.sent,X=H.data.Contents||[],G=this,X&&(Array.isArray(X)||(X=[X]),X=X.map(function(W){var le=null;return W.Owner&&(le={id:W.Owner.ID,displayName:W.Owner.DisplayName}),{name:W.Key,url:G._objectUrl(W.Key),lastModified:W.LastModified,etag:W.ETag,type:W.Type,size:Number(W.Size),storageClass:W.StorageClass,owner:le}})),ee=H.data.CommonPrefixes||null,ee&&(Array.isArray(ee)||(ee=[ee]),ee=ee.map(function(W){return W.Prefix})),U.abrupt("return",{res:H.res,objects:X,prefixes:ee,isTruncated:H.data.IsTruncated==="true",keyCount:+H.data.KeyCount,continuationToken:H.data.ContinuationToken||null,nextContinuationToken:H.data.NextContinuationToken||null});case 18:case"end":return U.stop()}},I,this)}));function S(I){return T.apply(this,arguments)}return S}(),F.restore=function(){var T=(0,A.default)(u.default.mark(function I(E){var M,N,V,H,X=arguments;return u.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return M=X.length>1&&X[1]!==void 0?X[1]:{type:"Archive"},M=M||{},M.subres=Object.assign({restore:""},M.subres),M.versionId&&(M.subres.versionId=M.versionId),N=this._objectRequestParams("POST",E,M),M.type==="ColdArchive"&&(V={RestoreRequest:{Days:M.Days?M.Days:2,JobParameters:{Tier:M.JobParameters?M.JobParameters:"Standard"}}},N.content=O(V,{headers:!0}),N.mime="xml"),N.successStatuses=[202],ee.next=9,this.request(N);case 9:return H=ee.sent,ee.abrupt("return",{res:H.res});case 11:case"end":return ee.stop()}},I,this)}));function S(I){return T.apply(this,arguments)}return S}(),F._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},F._objectRequestParams=function(S,I,E){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");E=E||{},I=this._objectName(I);var M={object:I,bucket:this.options.bucket,method:S,subres:E&&E.subres,timeout:E&&E.timeout,ctx:E&&E.ctx};return E.headers&&(M.headers={},h(E.headers).to(M.headers)),M},F._objectName=function(S){return S.replace(/^\/+/,"")},F._convertMetaToHeaders=function(S,I){S&&Object.keys(S).forEach(function(E){I["x-oss-meta-".concat(E)]=S[E]})},F._deleteFileSafe=function(S){var I=this;return new Promise(function(E){c.exists(S,function(M){M?c.unlink(S,function(N){N&&I.debug("unlink %j error: %s",S,N,"error"),E()}):E()})})}},{"../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":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(t,C,b){"use strict";b.version="6.18.1"},{}],7:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.abortBucketWorm=void 0;var c=t("../utils/checkBucketName");function h(n,r){return o.apply(this,arguments)}function o(){return o=(0,A.default)(u.default.mark(function n(r,s){var l,d;return u.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return c.checkBucketName(r),l=this._bucketRequestParams("DELETE",r,"worm",s),g.next=4,this.request(l);case 4:return d=g.sent,g.abrupt("return",{res:d.res,status:d.status});case 6:case"end":return g.stop()}},n,this)})),o.apply(this,arguments)}b.abortBucketWorm=h},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.completeBucketWorm=void 0;var c=t("../utils/checkBucketName");function h(n,r,s){return o.apply(this,arguments)}function o(){return o=(0,A.default)(u.default.mark(function n(r,s,l){var d,p;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c.checkBucketName(r),d=this._bucketRequestParams("POST",r,{wormId:s},l),m.next=4,this.request(d);case 4:return p=m.sent,m.abrupt("return",{res:p.res,status:p.status});case 6:case"end":return m.stop()}},n,this)})),o.apply(this,arguments)}b.completeBucketWorm=h},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.deleteBucketInventory=void 0;var c=t("../utils/checkBucketName");function h(n,r){return o.apply(this,arguments)}function o(){return o=(0,A.default)(u.default.mark(function n(r,s){var l,d,p,g,m=arguments;return u.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return l=m.length>2&&m[2]!==void 0?m[2]:{},d=Object.assign({inventory:"",inventoryId:s},l.subres),c.checkBucketName(r),p=this._bucketRequestParams("DELETE",r,d,l),p.successStatuses=[204],_.next=7,this.request(p);case 7:return g=_.sent,_.abrupt("return",{status:g.status,res:g.res});case 9:case"end":return _.stop()}},n,this)})),o.apply(this,arguments)}b.deleteBucketInventory=h},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=b;o.deleteBucketLifecycle=function(){var n=(0,A.default)(u.default.mark(function s(l,d){var p,g;return u.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return h(l),p=this._bucketRequestParams("DELETE",l,"lifecycle",d),p.successStatuses=[204],v.next=5,this.request(p);case 5:return g=v.sent,v.abrupt("return",{res:g.res});case 7:case"end":return v.stop()}},s,this)}));function r(s,l){return n.apply(this,arguments)}return r}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=b;o.deleteBucketWebsite=function(){var n=(0,A.default)(u.default.mark(function s(l,d){var p,g;return u.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return h(l),p=this._bucketRequestParams("DELETE",l,"website",d),p.successStatuses=[204],v.next=5,this.request(p);case 5:return g=v.sent,v.abrupt("return",{res:g.res});case 7:case"end":return v.stop()}},s,this)}));function r(s,l){return n.apply(this,arguments)}return r}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.extendBucketWorm=void 0;var c=t("../utils/checkBucketName"),h=t("../utils/obj2xml");function o(r,s,l,d){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s,l,d,p){var g,m,v;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return c.checkBucketName(s),g=this._bucketRequestParams("POST",s,{wormExtend:"",wormId:l},p),m={ExtendWormConfiguration:{RetentionPeriodInDays:d}},g.mime="xml",g.content=h.obj2xml(m,{headers:!0}),g.successStatuses=[200],O.next=8,this.request(g);case 8:return v=O.sent,O.abrupt("return",{res:v.res,status:v.status});case 10:case"end":return O.stop()}},r,this)})),n.apply(this,arguments)}b.extendBucketWorm=o},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.getBucketInventory=void 0;var c=t("../utils/checkBucketName"),h=t("../utils/formatInventoryConfig");function o(r,s){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s,l){var d,p,g,m,v=arguments;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return d=v.length>2&&v[2]!==void 0?v[2]:{},p=Object.assign({inventory:"",inventoryId:l},d.subres),c.checkBucketName(s),g=this._bucketRequestParams("GET",s,p,d),g.successStatuses=[200],g.xmlResponse=!0,O.next=8,this.request(g);case 8:return m=O.sent,O.abrupt("return",{status:m.status,res:m.res,inventory:h.formatInventoryConfig(m.data)});case 10:case"end":return O.stop()}},r,this)})),n.apply(this,arguments)}b.getBucketInventory=o},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.map.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("../utils/isArray"),n=o.isArray,r=t("../utils/formatObjKey"),s=r.formatObjKey,l=b;l.getBucketLifecycle=function(){var d=(0,A.default)(u.default.mark(function g(m,v){var _,O,F;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return h(m),_=this._bucketRequestParams("GET",m,"lifecycle",v),_.successStatuses=[200],_.xmlResponse=!0,S.next=6,this.request(_);case 6:return O=S.sent,F=O.data.Rule||null,F&&(n(F)||(F=[F]),F=F.map(function(I){return I.ID&&(I.id=I.ID,delete I.ID),I.Tag&&!n(I.Tag)&&(I.Tag=[I.Tag]),s(I,"firstLowerCase")})),S.abrupt("return",{rules:F,res:O.res});case 10:case"end":return S.stop()}},g,this)}));function p(g,m){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=b;o.getBucketVersioning=function(){var n=(0,A.default)(u.default.mark(function s(l,d){var p,g,m;return u.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return h(l),p=this._bucketRequestParams("GET",l,"versioning",d),p.xmlResponse=!0,p.successStatuses=[200],_.next=6,this.request(p);case 6:return g=_.sent,m=g.data.Status,_.abrupt("return",{status:g.status,versionStatus:m,res:g.res});case 9:case"end":return _.stop()}},s,this)}));function r(s,l){return n.apply(this,arguments)}return r}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("../utils/isObject"),n=o.isObject,r=b;r.getBucketWebsite=function(){var s=(0,A.default)(u.default.mark(function d(p,g){var m,v,_;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return h(p),m=this._bucketRequestParams("GET",p,"website",g),m.successStatuses=[200],m.xmlResponse=!0,F.next=6,this.request(m);case 6:return v=F.sent,_=[],v.data.RoutingRules&&v.data.RoutingRules.RoutingRule&&(n(v.data.RoutingRules.RoutingRule)?_=[v.data.RoutingRules.RoutingRule]:_=v.data.RoutingRules.RoutingRule),F.abrupt("return",{index:v.data.IndexDocument&&v.data.IndexDocument.Suffix||"",supportSubDir:v.data.IndexDocument&&v.data.IndexDocument.SupportSubDir||"false",type:v.data.IndexDocument&&v.data.IndexDocument.Type,routingRules:_,error:v.data.ErrorDocument&&v.data.ErrorDocument.Key||null,res:v.res});case 10:case"end":return F.stop()}},d,this)}));function l(d,p){return s.apply(this,arguments)}return l}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.getBucketWorm=void 0;var c=t("../utils/checkBucketName"),h=t("../utils/dataFix");function o(r,s){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s,l){var d,p;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c.checkBucketName(s),d=this._bucketRequestParams("GET",s,"worm",l),d.successStatuses=[200],d.xmlResponse=!0,m.next=6,this.request(d);case 6:return p=m.sent,h.dataFix(p.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),m.abrupt("return",Object.assign(Object.assign({},p.data),{res:p.res,status:p.status}));case 9:case"end":return m.stop()}},r,this)})),n.apply(this,arguments)}b.getBucketWorm=o},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.initiateBucketWorm=void 0;var c=t("../utils/obj2xml"),h=t("../utils/checkBucketName");function o(r,s,l){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s,l,d){var p,g,m;return u.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return h.checkBucketName(s),p=this._bucketRequestParams("POST",s,"worm",d),g={InitiateWormConfiguration:{RetentionPeriodInDays:l}},p.mime="xml",p.content=c.obj2xml(g,{headers:!0}),p.successStatuses=[200],_.next=8,this.request(p);case 8:return m=_.sent,_.abrupt("return",{res:m.res,wormId:m.res.headers["x-oss-worm-id"],status:m.status});case 10:case"end":return _.stop()}},r,this)})),n.apply(this,arguments)}b.initiateBucketWorm=o},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.listBucketInventory=void 0;var c=t("../utils/checkBucketName"),h=t("../utils/formatInventoryConfig");function o(r){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s){var l,d,p,g,m,v,_,O,F=arguments;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return l=F.length>1&&F[1]!==void 0?F[1]:{},d=l.continuationToken,p=Object.assign({inventory:""},d&&{"continuation-token":d},l.subres),c.checkBucketName(s),g=this._bucketRequestParams("GET",s,p,l),g.successStatuses=[200],g.xmlResponse=!0,S.next=9,this.request(g);case 9:return m=S.sent,v=m.data,_=m.res,O=m.status,S.abrupt("return",{isTruncated:v.IsTruncated==="true",nextContinuationToken:v.NextContinuationToken,inventoryList:h.formatInventoryConfig(v.InventoryConfiguration,!0),status:O,res:_});case 12:case"end":return S.stop()}},r,this)})),n.apply(this,arguments)}b.listBucketInventory=o},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.array.concat.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.putBucketInventory=void 0;var c=t("../utils/checkBucketName"),h=t("../utils/obj2xml");function o(r,s){return n.apply(this,arguments)}function n(){return n=(0,A.default)(u.default.mark(function r(s,l){var d,p,g,m,v,_,O,F,T,S,I,E=arguments;return u.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return d=E.length>2&&E[2]!==void 0?E[2]:{},p=Object.assign({inventory:"",inventoryId:l.id},d.subres),c.checkBucketName(s),g=l.OSSBucketDestination,m=l.optionalFields,v=l.includedObjectVersions,_="acs:oss:::",O="acs:ram::".concat(g.accountId,":role/"),F={InventoryConfiguration:{Id:l.id,IsEnabled:l.isEnabled,Filter:{Prefix:l.prefix||""},Destination:{OSSBucketDestination:{Format:g.format,AccountId:g.accountId,RoleArn:"".concat(O).concat(g.rolename),Bucket:"".concat(_).concat(g.bucket),Prefix:g.prefix||"",Encryption:g.encryption||""}},Schedule:{Frequency:l.frequency},IncludedObjectVersions:v,OptionalFields:{Field:(m==null?void 0:m.field)||[]}}},T=h.obj2xml(F,{headers:!0,firstUpperCase:!0}),S=this._bucketRequestParams("PUT",s,p,d),S.successStatuses=[200],S.mime="xml",S.content=T,N.next=14,this.request(S);case 14:return I=N.sent,N.abrupt("return",{status:I.status,res:I.res});case 16:case"end":return N.stop()}},r,this)})),n.apply(this,arguments)}b.putBucketInventory=o},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.array.includes.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("../utils/isArray"),n=o.isArray,r=t("../utils/deepCopy"),s=r.deepCopy,l=t("../utils/isObject"),d=l.isObject,p=t("../utils/obj2xml"),g=p.obj2xml,m=t("../utils/checkObjectTag"),v=m.checkObjectTag,_=t("../utils/getStrBytesCount"),O=_.getStrBytesCount,F=b;F.putBucketLifecycle=function(){var M=(0,A.default)(u.default.mark(function V(H,X,G){var ee,Z,Ae,U,W;return u.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(h(H),n(X)){he.next=3;break}throw new Error("rules must be Array");case 3:return ee=this._bucketRequestParams("PUT",H,"lifecycle",G),Z=[],Ae={LifecycleConfiguration:{Rule:Z}},X.forEach(function(ue){T(ue),E(ue),ue.id&&(ue.ID=ue.id,delete ue.id),Z.push(ue)}),U=g(Ae,{headers:!0,firstUpperCase:!0}),ee.content=U,ee.mime="xml",ee.successStatuses=[200],he.next=13,this.request(ee);case 13:return W=he.sent,he.abrupt("return",{res:W.res});case 15:case"end":return he.stop()}},V,this)}));function N(V,H,X){return M.apply(this,arguments)}return N}();function T(M){M.days&&(M.expiration={days:M.days}),M.date&&(M.expiration={createdBeforeDate:M.date})}function S(M,N){var V=M.days,H=M.createdBeforeDate;if(!V&&!H)throw new Error("".concat(N," must includes days or createdBeforeDate"));if(V&&!/^[1-9][0-9]*$/.test(V))throw new Error("days must be a positive integer");if(H&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(H))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function I(M){if(!n(M)&&!d(M))throw new Error("tag must be Object or Array");M=d(M)?[M]:M;var N={},V=s(M);V.forEach(function(H){N[H.key]=H.value}),v(N)}function E(M){if(M.id&&O(M.id)>255)throw new Error("ID is composed of 255 bytes at most");if(M.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(M.status))throw new Error("Status must be Enabled or Disabled");if(M.transition){if(!["IA","Archive"].includes(M.transition.storageClass))throw new Error("StorageClass must be IA or Archive");S(M.transition,"Transition")}if(M.expiration){if(!M.expiration.expiredObjectDeleteMarker)S(M.expiration,"Expiration");else if(M.expiration.days||M.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(M.abortMultipartUpload&&S(M.abortMultipartUpload,"AbortMultipartUpload"),!M.expiration&&!M.abortMultipartUpload&&!M.transition&&!M.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(M.tag){if(M.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");I(M.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.includes.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("../utils/obj2xml"),n=o.obj2xml,r=b;r.putBucketVersioning=function(){var s=(0,A.default)(u.default.mark(function d(p,g){var m,v,_,O,F=arguments;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(m=F.length>2&&F[2]!==void 0?F[2]:{},h(p),["Enabled","Suspended"].includes(g)){S.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return v=this._bucketRequestParams("PUT",p,"versioning",m),_={VersioningConfiguration:{Status:g}},v.mime="xml",v.content=n(_,{headers:!0}),S.next=10,this.request(v);case 10:return O=S.sent,S.abrupt("return",{res:O.res,status:O.status});case 12:case"end":return S.stop()}},d,this)}));function l(d,p){return s.apply(this,arguments)}return l}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("../utils/obj2xml"),n=o.obj2xml,r=t("../utils/isArray"),s=r.isArray,l=b;l.putBucketWebsite=function(){var d=(0,A.default)(u.default.mark(function g(m){var v,_,O,F,T,S,I,E=arguments;return u.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(v=E.length>1&&E[1]!==void 0?E[1]:{},_=E.length>2?E[2]:void 0,h(m),O=this._bucketRequestParams("PUT",m,"website",_),F={Suffix:v.index||"index.html"},T={IndexDocument:F},S={WebsiteConfiguration:T},v.supportSubDir&&(F.SupportSubDir=v.supportSubDir),v.type&&(F.Type=v.type),v.error&&(T.ErrorDocument={Key:v.error}),v.routingRules===void 0){N.next=14;break}if(s(v.routingRules)){N.next=13;break}throw new Error("RoutingRules must be Array");case 13:T.RoutingRules={RoutingRule:v.routingRules};case 14:return S=n(S),O.content=S,O.mime="xml",O.successStatuses=[200],N.next=20,this.request(O);case 20:return I=N.sent,N.abrupt("return",{res:I.res});case 22:case"end":return N.stop()}},g,this)}));function p(g){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.regexp.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),b.encodeCallback=function(A,c){if(A.headers=A.headers||{},!Object.prototype.hasOwnProperty.call(A.headers,"x-oss-callback")&&c.callback){var h={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};c.callback.host&&(h.callbackHost=c.callback.host),c.callback.contentType&&(h.callbackBodyType=c.callback.contentType);var o=a.from(JSON.stringify(h)).toString("base64");if(A.headers["x-oss-callback"]=o,c.callback.customValue){var n={};Object.keys(c.callback.customValue).forEach(function(r){n["x:".concat(r)]=c.callback.customValue[r].toString()}),A.headers["x-oss-callback-var"]=a.from(JSON.stringify(n)).toString("base64")}}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(t,C,b){"use strict";t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js");var a=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(b,"__esModule",{value:!0}),b.getReqUrl=void 0;var u=a(t("copy-to")),A=a(t("url")),c=a(t("merge-descriptors")),h=a(t("is-type-of")),o=t("../utils/isIP"),n=t("../utils/checkConfigValid");function r(s){var l={},d=this.options.cname;n.checkConfigValid(this.options.endpoint,"endpoint"),u.default(this.options.endpoint,!1).to(l),s.bucket&&!d&&!o.isIP(l.hostname)&&!this.options.sldEnable&&(l.host="".concat(s.bucket,".").concat(l.host));var p="/";s.bucket&&this.options.sldEnable&&(p+="".concat(s.bucket,"/")),s.object&&(p+=this._escape(s.object).replace(/\+/g,"%2B")),l.pathname=p;var g={};if(s.query&&c.default(g,s.query),s.subres){var m={};h.default.string(s.subres)?m[s.subres]="":h.default.array(s.subres)?s.subres.forEach(function(v){m[v]=""}):m=s.subres,c.default(g,m)}return l.query=g,A.default.format(l)}b.getReqUrl=r},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(t,C,b){"use strict";t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.string.trim.js");var a=t("humanize-ms"),u=t("url"),A=t("../utils/checkBucketName"),c=A.checkBucketName,h=t("../utils/setRegion"),o=h.setRegion,n=t("../utils/checkConfigValid"),r=n.checkConfigValid;function s(l,d){r(l,"endpoint");var p=u.parse(l);if(p.protocol||(p=u.parse("http".concat(d?"s":"","://").concat(l))),p.protocol!=="http:"&&p.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return p}C.exports=function(l){if(!l||!l.accessKeyId||!l.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");l.stsToken&&!l.refreshSTSToken&&!l.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),l.bucket&&c(l.bucket);var d=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:6e4*5,retryMax:0},l);if(d.accessKeyId=d.accessKeyId.trim(),d.accessKeySecret=d.accessKeySecret.trim(),d.timeout&&(d.timeout=a(d.timeout)),d.endpoint)d.endpoint=s(d.endpoint,d.secure);else if(d.region)d.endpoint=o(d.region,d.internal,d.secure);else throw new Error("require options.endpoint or options.region");return d.inited=!0,d}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(t,C,b){"use strict";var a=t("merge-descriptors"),u=b;a(u,t("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.concat.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkBucketName"),h=c.checkBucketName,o=t("querystring"),n=t("js-base64"),r=n.Base64.encode,s=b;s.processObjectSave=function(){var d=(0,A.default)(u.default.mark(function g(m,v,_,O){var F,T,S,I;return u.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return l(m,"sourceObject"),l(v,"targetObject"),l(_,"process"),v=this._objectName(v),O&&h(O),F=this._objectRequestParams("POST",m,{subres:"x-oss-process"}),T=O?",b_".concat(r(O)):"",v=r(v),S={"x-oss-process":"".concat(_,"|sys/saveas,o_").concat(v).concat(T)},F.content=o.stringify(S),M.next=12,this.request(F);case 12:return I=M.sent,M.abrupt("return",{res:I.res,status:I.res.status});case 14:case"end":return M.stop()}},g,this)}));function p(g,m,v,_){return d.apply(this,arguments)}return p}();function l(d,p){if(!d)throw new Error("".concat(p," is required"));if(typeof d!="string")throw new Error("".concat(p," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.function.name.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.array.from.js"),t("core-js/modules/es.string.iterator.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.array.filter.js"),t("core-js/modules/es.array.find.js"),t("core-js/modules/es.regexp.to-string.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("debug")("ali-oss:multipart-copy"),h=t("copy-to"),o=b;o.uploadPartCopy=function(){var n=(0,A.default)(u.default.mark(function s(l,d,p,g,m){var v,_,O,F,T,S=arguments;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return v=S.length>5&&S[5]!==void 0?S[5]:{},v.headers=v.headers||{},_=v.versionId||v.subres&&v.subres.versionId||null,_?O="/".concat(m.sourceBucketName,"/").concat(encodeURIComponent(m.sourceKey),"?versionId=").concat(_):O="/".concat(m.sourceBucketName,"/").concat(encodeURIComponent(m.sourceKey)),v.headers["x-oss-copy-source"]=O,g&&(v.headers["x-oss-copy-source-range"]="bytes=".concat(g)),v.subres={partNumber:p,uploadId:d},F=this._objectRequestParams("PUT",l,v),F.mime=v.mime,F.successStatuses=[200],E.next=12,this.request(F);case 12:return T=E.sent,E.abrupt("return",{name:l,etag:T.res.headers.etag,res:T.res});case 14:case"end":return E.stop()}},s,this)}));function r(s,l,d,p,g){return n.apply(this,arguments)}return r}(),o.multipartUploadCopy=function(){var n=(0,A.default)(u.default.mark(function s(l,d){var p,g,m,v,_,O,F,T,S,I,E,M,N=arguments;return u.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return p=N.length>2&&N[2]!==void 0?N[2]:{},this.resetCancelFlag(),g=p.versionId,m=g===void 0?null:g,v={versionId:m},H.next=6,this._getObjectMeta(d.sourceBucketName,d.sourceKey,v);case 6:if(_=H.sent,O=_.res.headers["content-length"],d.startOffset=d.startOffset||0,d.endOffset=d.endOffset||O,!(p.checkpoint&&p.checkpoint.uploadId)){H.next=14;break}return H.next=13,this._resumeMultipartCopy(p.checkpoint,d,p);case 13:return H.abrupt("return",H.sent);case 14:if(F=102400,T=d.endOffset-d.startOffset,!(T<F)){H.next=18;break}throw new Error("copySize must not be smaller than ".concat(F));case 18:if(!(p.partSize&&p.partSize<F)){H.next=20;break}throw new Error("partSize must not be smaller than ".concat(F));case 20:return H.next=22,this.initMultipartUpload(l,p);case 22:if(S=H.sent,I=S.uploadId,E=this._getPartSize(T,p.partSize),M={name:l,copySize:T,partSize:E,uploadId:I,doneParts:[]},!(p&&p.progress)){H.next=29;break}return H.next=29,p.progress(0,M,S.res);case 29:return H.next=31,this._resumeMultipartCopy(M,d,p);case 31:return H.abrupt("return",H.sent);case 32:case"end":return H.stop()}},s,this)}));function r(s,l){return n.apply(this,arguments)}return r}(),o._resumeMultipartCopy=function(){var n=(0,A.default)(u.default.mark(function s(l,d,p){var g,m,v,_,O,F,T,S,I,E,M,N,V,H,X,G,ee,Z,Ae,U,W;return u.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(!this.isCancel()){he.next=2;break}throw this._makeCancelEvent();case 2:if(g=p.versionId,m=g===void 0?null:g,v={versionId:m},_=l.copySize,O=l.partSize,F=l.uploadId,T=l.doneParts,S=l.name,I=this._divideMultipartCopyParts(_,O,d.startOffset),E=I.length,M={headers:{}},p.copyheaders&&h(p.copyheaders).to(M.headers),m&&h(v).to(M),N=function(pe,fe,ce){return new Promise(function(){var be=(0,A.default)(u.default.mark(function Ce(xe,Se){var me,te,$;return u.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(k.prev=0,pe.isCancel()){k.next=22;break}return me=I[fe-1],te="".concat(me.start,"-").concat(me.end-1),k.prev=4,k.next=7,pe.uploadPartCopy(S,F,fe,te,ce,M);case 7:$=k.sent,k.next=15;break;case 10:if(k.prev=10,k.t0=k.catch(4),k.t0.status!==404){k.next=14;break}throw pe._makeAbortEvent();case 14:throw k.t0;case 15:if(pe.isCancel()){k.next=22;break}if(c("content-range ".concat($.res.headers["content-range"])),T.push({number:fe,etag:$.res.headers.etag}),l.doneParts=T,!(p&&p.progress)){k.next=22;break}return k.next=22,p.progress(T.length/E,l,$.res);case 22:xe(),k.next=29;break;case 25:k.prev=25,k.t1=k.catch(0),k.t1.partNum=fe,Se(k.t1);case 29:case"end":return k.stop()}},Ce,null,[[0,25],[4,10]])}));return function(Ce,xe){return be.apply(this,arguments)}}())},V=Array.from(new Array(E),function(ue,pe){return pe+1}),H=T.map(function(ue){return ue.number}),X=V.filter(function(ue){return H.indexOf(ue)<0}),G=5,ee=p.parallel||G,!(this.checkBrowserAndVersion("Internet Explorer","10")||ee===1)){he.next=28;break}Z=0;case 18:if(!(Z<X.length)){he.next=26;break}if(!this.isCancel()){he.next=21;break}throw this._makeCancelEvent();case 21:return he.next=23,N(this,X[Z],d);case 23:Z++,he.next=18;break;case 26:he.next=40;break;case 28:return he.next=30,this._parallelNode(X,ee,N,d);case 30:if(Ae=he.sent,U=Ae.find(function(ue){return ue.name==="abort"}),!U){he.next=34;break}throw U;case 34:if(!this.isCancel()){he.next=36;break}throw this._makeCancelEvent();case 36:if(!(Ae&&Ae.length>0)){he.next=40;break}throw W=Ae[0],W.message="Failed to copy some parts with error: ".concat(W.toString()," part_num: ").concat(W.partNum),W;case 40:return he.next=42,this.completeMultipartUpload(S,F,T,p);case 42:return he.abrupt("return",he.sent);case 43:case"end":return he.stop()}},s,this)}));function r(s,l,d){return n.apply(this,arguments)}return r}(),o._divideMultipartCopyParts=function(r,s,l){for(var d=Math.ceil(r/s),p=[],g=0;g<d;g++){var m=s*g+l,v=Math.min(m+s,r+l);p.push({start:m,end:v})}return p},o._getObjectMeta=function(){var n=(0,A.default)(u.default.mark(function s(l,d,p){var g,m;return u.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return g=this.getBucket(),this.setBucket(l),_.next=4,this.head(d,p);case 4:return m=_.sent,this.setBucket(g),_.abrupt("return",m);case 7:case"end":return _.stop()}},s,this)}));function r(s,l,d){return n.apply(this,arguments)}return r}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(t,C,b){(function(a){(function(){"use strict";var u=t("@babel/runtime/helpers/interopRequireDefault"),A=u(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.map.js"),t("core-js/modules/es.array.filter.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.array.sort.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.regexp.to-string.js");var c=u(t("@babel/runtime/helpers/asyncToGenerator")),h=t("copy-to"),o=t("./callback"),n=t("./utils/deepCopy"),r=n.deepCopyWith,s=t("./utils/isBuffer"),l=s.isBuffer,d=t("./utils/omit"),p=d.omit,g=b;g.listUploads=function(){var m=(0,c.default)(A.default.mark(function _(O,F){var T,S,I,E;return A.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return F=F||{},T={},h(F).to(T),T.subres="uploads",S=this._objectRequestParams("GET","",T),S.query=O,S.xmlResponse=!0,S.successStatuses=[200],N.next=10,this.request(S);case 10:return I=N.sent,E=I.data.Upload||[],Array.isArray(E)||(E=[E]),E=E.map(function(V){return{name:V.Key,uploadId:V.UploadId,initiated:V.Initiated}}),N.abrupt("return",{res:I.res,uploads:E,bucket:I.data.Bucket,nextKeyMarker:I.data.NextKeyMarker,nextUploadIdMarker:I.data.NextUploadIdMarker,isTruncated:I.data.IsTruncated==="true"});case 15:case"end":return N.stop()}},_,this)}));function v(_,O){return m.apply(this,arguments)}return v}(),g.listParts=function(){var m=(0,c.default)(A.default.mark(function _(O,F,T,S){var I,E,M;return A.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return S=S||{},I={},h(S).to(I),I.subres={uploadId:F},E=this._objectRequestParams("GET",O,I),E.query=T,E.xmlResponse=!0,E.successStatuses=[200],V.next=10,this.request(E);case 10:return M=V.sent,V.abrupt("return",{res:M.res,uploadId:M.data.UploadId,bucket:M.data.Bucket,name:M.data.Key,partNumberMarker:M.data.PartNumberMarker,nextPartNumberMarker:M.data.NextPartNumberMarker,maxParts:M.data.MaxParts,isTruncated:M.data.IsTruncated,parts:M.data.Part||[]});case 12:case"end":return V.stop()}},_,this)}));function v(_,O,F,T){return m.apply(this,arguments)}return v}(),g.abortMultipartUpload=function(){var m=(0,c.default)(A.default.mark(function _(O,F,T){var S,I,E;return A.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return this._stop(),T=T||{},S={},h(T).to(S),S.subres={uploadId:F},I=this._objectRequestParams("DELETE",O,S),I.successStatuses=[204],N.next=9,this.request(I);case 9:return E=N.sent,N.abrupt("return",{res:E.res});case 11:case"end":return N.stop()}},_,this)}));function v(_,O,F){return m.apply(this,arguments)}return v}(),g.initMultipartUpload=function(){var m=(0,c.default)(A.default.mark(function _(O,F){var T,S,I;return A.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return F=F||{},T={},h(F).to(T),T.headers=T.headers||{},this._convertMetaToHeaders(F.meta,T.headers),T.subres="uploads",S=this._objectRequestParams("POST",O,T),S.mime=F.mime,S.xmlResponse=!0,S.successStatuses=[200],M.next=12,this.request(S);case 12:return I=M.sent,M.abrupt("return",{res:I.res,bucket:I.data.Bucket,name:I.data.Key,uploadId:I.data.UploadId});case 14:case"end":return M.stop()}},_,this)}));function v(_,O){return m.apply(this,arguments)}return v}(),g.uploadPart=function(){var m=(0,c.default)(A.default.mark(function _(O,F,T,S,I,E,M){var N,V;return A.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(N={size:E-I},V=a&&a.browser,!V){X.next=8;break}return X.next=5,this._createBuffer(S,I,E);case 5:N.content=X.sent,X.next=11;break;case 8:return X.next=10,this._createStream(S,I,E);case 10:N.stream=X.sent;case 11:return X.next=13,this._uploadPart(O,F,T,N,M);case 13:return X.abrupt("return",X.sent);case 14:case"end":return X.stop()}},_,this)}));function v(_,O,F,T,S,I,E){return m.apply(this,arguments)}return v}(),g.completeMultipartUpload=function(){var m=(0,c.default)(A.default.mark(function _(O,F,T,S){var I,E,M,N,V,H,X,G;return A.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:for(I=T.concat().sort(function(Ae,U){return Ae.number-U.number}).filter(function(Ae,U,W){return!U||Ae.number!==W[U-1].number}),E=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,M=0;M<I.length;M++)N=I[M],E+=`<Part>
|
|
|
`,E+="<PartNumber>".concat(N.number,`</PartNumber>
|
|
|
`),E+="<ETag>".concat(N.etag,`</ETag>
|
|
|
`),E+=`</Part>
|
|
|
`;return E+="</CompleteMultipartUpload>",S=S||{},V={},V=r(S,function(Ae){if(l(Ae))return null}),V.subres={uploadId:F},V.headers=p(V.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),H=this._objectRequestParams("POST",O,V),o.encodeCallback(H,V),H.mime="xml",H.content=E,H.headers&&H.headers["x-oss-callback"]||(H.xmlResponse=!0),H.successStatuses=[200],Z.next=17,this.request(H);case 17:if(X=Z.sent,!S.progress){Z.next=21;break}return Z.next=21,S.progress(1,null,X.res);case 21:return G={res:X.res,bucket:H.bucket,name:O,etag:X.res.headers.etag},H.headers&&H.headers["x-oss-callback"]&&(G.data=JSON.parse(X.data.toString())),Z.abrupt("return",G);case 24:case"end":return Z.stop()}},_,this)}));function v(_,O,F,T){return m.apply(this,arguments)}return v}(),g._uploadPart=function(){var m=(0,c.default)(A.default.mark(function _(O,F,T,S,I){var E,M,N,V;return A.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return I=I||{},E={},h(I).to(E),E.headers=E.headers||{},E.headers["Content-Length"]=S.size,E.headers=p(E.headers,["x-oss-server-side-encryption"]),E.subres={partNumber:T,uploadId:F},M=this._objectRequestParams("PUT",O,E),M.mime=E.mime,N=a&&a.browser,N?M.content=S.content:M.stream=S.stream,M.successStatuses=[200],M.disabledMD5=I.disabledMD5,X.next=15,this.request(M);case 15:if(V=X.sent,V.res.headers.etag){X.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return S.stream&&(S.stream=null,M.stream=null),X.abrupt("return",{name:O,etag:V.res.headers.etag,res:V.res});case 20:case"end":return X.stop()}},_,this)}));function v(_,O,F,T,S){return m.apply(this,arguments)}return v}()}).call(this)}).call(this,t("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator")),A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("url"),h=t("utility"),o=t("copy-to"),n=t("../../common/signUtils"),r=t("../utils/isIP"),s=r.isIP,l=t("../utils/setSTSToken"),d=l.setSTSToken,p=t("../utils/isFunction"),g=p.isFunction,m=b;m.asyncSignatureUrl=function(){var v=(0,A.default)(u.default.mark(function O(F,T){var S,I,E,M,N;return u.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(!s(this.options.endpoint.hostname)){H.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(T=T||{},F=this._objectName(F),T.method=T.method||"GET",S=h.timestamp()+(T.expires||1800),I={bucket:this.options.bucket,object:F},E=this._getResource(I),!(this.options.stsToken&&g(this.options.refreshSTSToken))){H.next=11;break}return H.next=11,d.call(this);case 11:return this.options.stsToken&&(T["security-token"]=this.options.stsToken),M=n._signatureForURL(this.options.accessKeySecret,T,E,S),N=c.parse(this._getReqUrl(I)),N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:S,Signature:M.Signature},o(M.subResource).to(N.query),H.abrupt("return",N.format());case 17:case"end":return H.stop()}},O,this)}));function _(O,F){return v.apply(this,arguments)}return _}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.find.js"),t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js");var A=a(t("@babel/runtime/helpers/typeof")),c=a(t("@babel/runtime/helpers/asyncToGenerator")),h=t("../utils/checkBucketName"),o=h.checkBucketName,n=b,r=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];n.copy=function(){var s=(0,c.default)(u.default.mark(function d(p,g,m,v){var _,O,F;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(0,A.default)(m)==="object"&&(v=m),v=v||{},v.headers=v.headers||{},Object.keys(v.headers).forEach(function(I){v.headers["x-oss-copy-source-".concat(I.toLowerCase())]=v.headers[I]}),(v.meta||Object.keys(v.headers).find(function(I){return r.includes(I.toLowerCase())}))&&(v.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(v.meta,v.headers),g=this._getSourceName(g,m),v.versionId&&(g="".concat(g,"?versionId=").concat(v.versionId)),v.headers["x-oss-copy-source"]=g,_=this._objectRequestParams("PUT",p,v),_.xmlResponse=!0,_.successStatuses=[200,304],S.next=14,this.request(_);case 14:return O=S.sent,F=O.data,F&&(F={etag:F.ETag,lastModified:F.LastModified}),S.abrupt("return",{data:F,res:O.res});case 18:case"end":return S.stop()}},d,this)}));function l(d,p,g,m){return s.apply(this,arguments)}return l}(),n._getSourceName=function(l,d){return typeof d=="string"?l=this._objectName(l):l[0]!=="/"?d=this.options.bucket:(d=l.replace(/\/(.+?)(\/.*)/,"$1"),l=l.replace(/(\/.+?\/)(.*)/,"$2")),o(d),l=encodeURIComponent(l),l="/".concat(d,"/").concat(l),l}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.delete=function(){var h=(0,A.default)(u.default.mark(function n(r){var s,l,d,p=arguments;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return s=p.length>1&&p[1]!==void 0?p[1]:{},s.subres=Object.assign({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectRequestParams("DELETE",r,s),l.successStatuses=[204],m.next=7,this.request(l);case 7:return d=m.sent,m.abrupt("return",{res:d.res});case 9:case"end":return m.stop()}},n,this)}));function o(n){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("utility"),h=t("../utils/obj2xml"),o=h.obj2xml,n=b;n.deleteMulti=function(){var r=(0,A.default)(u.default.mark(function l(d){var p,g,m,v,_,O,F,T,S,I,E,M,N,V=arguments;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(p=V.length>1&&V[1]!==void 0?V[1]:{},g=[],!(!d||!d.length)){X.next=4;break}throw new Error("names is required");case 4:for(m=0;m<d.length;m++)v={},typeof d[m]=="string"?v.Key=c.escape(this._objectName(d[m])):(_=d[m],O=_.key,F=_.versionId,v.Key=c.escape(this._objectName(O)),v.VersionId=F),g.push(v);return T={Delete:{Quiet:!!p.quiet,Object:g}},S=o(T,{headers:!0}),p.subres=Object.assign({delete:""},p.subres),p.versionId&&(p.subres.versionId=p.versionId),I=this._objectRequestParams("POST","",p),I.mime="xml",I.content=S,I.xmlResponse=!0,I.successStatuses=[200],X.next=16,this.request(I);case 16:return E=X.sent,M=E.data,N=M&&M.Deleted||null,N&&(Array.isArray(N)||(N=[N])),X.abrupt("return",{res:E.res,deleted:N||[]});case 21:case"end":return X.stop()}},l,this)}));function s(l){return r.apply(this,arguments)}return s}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.deleteObjectTagging=function(){var h=(0,A.default)(u.default.mark(function n(r){var s,l,d,p=arguments;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return s=p.length>1&&p[1]!==void 0?p[1]:{},s.subres=Object.assign({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectName(r),l=this._objectRequestParams("DELETE",r,s),l.successStatuses=[204],m.next=8,this.request(l);case 8:return d=m.sent,m.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return m.stop()}},n,this)}));function o(n){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(t,C,b){"use strict";t("core-js/modules/es.array.concat.js");var a=t("url"),u=t("../utils/isIP"),A=u.isIP,c=b;c.generateObjectUrl=function(o,n){if(A(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(n)n[n.length-1]!=="/"&&(n+="/");else{n=this.options.endpoint.format();var r=a.parse(n),s=this.options.bucket;r.hostname="".concat(s,".").concat(r.hostname),r.host="".concat(s,".").concat(r.host),n=r.format()}return n+this._escape(this._objectName(o))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(t,C,b){(function(a){(function(){"use strict";var u=t("@babel/runtime/helpers/interopRequireDefault"),A=u(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var c=u(t("@babel/runtime/helpers/asyncToGenerator")),h=t("fs"),o=t("is-type-of"),n=b;n.get=function(){var r=(0,c.default)(A.default.mark(function l(d,p){var g,m,v,_,O,F,T,S,I=arguments;return A.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return g=I.length>2&&I[2]!==void 0?I[2]:{},m=null,v=!1,o.writableStream(p)?m=p:o.string(p)?(m=h.createWriteStream(p),v=!0):g=p,g=g||{},_=a&&a.browser,O=g.responseCacheControl===null?"":"no-cache",F=_&&O?{"response-cache-control":O}:{},g.subres=Object.assign(F,g.subres),g.versionId&&(g.subres.versionId=g.versionId),g.process&&(g.subres["x-oss-process"]=g.process),M.prev=11,S=this._objectRequestParams("GET",d,g),S.writeStream=m,S.successStatuses=[200,206,304],M.next=17,this.request(S);case 17:T=M.sent,v&&m.destroy(),M.next=28;break;case 21:if(M.prev=21,M.t0=M.catch(11),!v){M.next=27;break}return m.destroy(),M.next=27,this._deleteFileSafe(p);case 27:throw M.t0;case 28:return M.abrupt("return",{res:T.res,content:T.data});case 29:case"end":return M.stop()}},l,this,[[11,21]])}));function s(l,d){return r.apply(this,arguments)}return s}()}).call(this)}).call(this,t("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.getACL=function(){var h=(0,A.default)(u.default.mark(function n(r){var s,l,d,p=arguments;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return s=p.length>1&&p[1]!==void 0?p[1]:{},s.subres=Object.assign({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectName(r),l=this._objectRequestParams("GET",r,s),l.successStatuses=[200],l.xmlResponse=!0,m.next=9,this.request(l);case 9:return d=m.sent,m.abrupt("return",{acl:d.data.AccessControlList.Grant,owner:{id:d.data.Owner.ID,displayName:d.data.Owner.DisplayName},res:d.res});case 11:case"end":return m.stop()}},n,this)}));function o(n){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.number.constructor.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b,h=t("../utils/isObject"),o=h.isObject,n=t("../utils/isArray"),r=n.isArray;c.getBucketVersions=s,c.listObjectVersions=s;function s(){return l.apply(this,arguments)}function l(){return l=(0,A.default)(u.default.mark(function g(){var m,v,_,O,F,T,S,I,E=arguments;return u.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(m=E.length>0&&E[0]!==void 0?E[0]:{},v=E.length>1&&E[1]!==void 0?E[1]:{},!(m.versionIdMarker&&m.keyMarker===void 0)){N.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return v.subres=Object.assign({versions:""},v.subres),v.versionId&&(v.subres.versionId=v.versionId),_=this._objectRequestParams("GET","",v),_.xmlResponse=!0,_.successStatuses=[200],_.query=p(m),N.next=12,this.request(_);case 12:return O=N.sent,F=O.data.Version||[],T=O.data.DeleteMarker||[],S=this,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(V){return{name:V.Key,url:S._objectUrl(V.Key),lastModified:V.LastModified,isLatest:V.IsLatest==="true",versionId:V.VersionId,etag:V.ETag,type:V.Type,size:Number(V.Size),storageClass:V.StorageClass,owner:{id:V.Owner.ID,displayName:V.Owner.DisplayName}}})),T&&(r(T)||(T=[T]),T=T.map(function(V){return{name:V.Key,lastModified:V.LastModified,versionId:V.VersionId,owner:{id:V.Owner.ID,displayName:V.Owner.DisplayName}}})),I=O.data.CommonPrefixes||null,I&&(r(I)||(I=[I]),I=I.map(function(V){return V.Prefix})),N.abrupt("return",{res:O.res,objects:F,deleteMarker:T,prefixes:I,nextMarker:O.data.NextKeyMarker||null,NextVersionIdMarker:O.data.NextVersionIdMarker||null,nextKeyMarker:O.data.NextKeyMarker||null,nextVersionIdMarker:O.data.NextVersionIdMarker||null,isTruncated:O.data.IsTruncated==="true"});case 21:case"end":return N.stop()}},g,this)})),l.apply(this,arguments)}function d(g){return g.replace(/([A-Z])/g,"-$1").toLowerCase()}function p(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m={};return o(g)&&Object.keys(g).forEach(function(v){m[d(v)]=g[v]}),m}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.getObjectMeta=function(){var h=(0,A.default)(u.default.mark(function n(r,s){var l,d;return u.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return s=s||{},r=this._objectName(r),s.subres=Object.assign({objectMeta:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectRequestParams("HEAD",r,s),l.successStatuses=[200],g.next=8,this.request(l);case 8:return d=g.sent,g.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return g.stop()}},n,this)}));function o(n,r){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b,h=t("../utils/isObject"),o=h.isObject;c.getObjectTagging=function(){var n=(0,A.default)(u.default.mark(function s(l){var d,p,g,m,v,_,O=arguments;return u.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return d=O.length>1&&O[1]!==void 0?O[1]:{},d.subres=Object.assign({tagging:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),l=this._objectName(l),p=this._objectRequestParams("GET",l,d),p.successStatuses=[200],T.next=8,this.request(p);case 8:return g=T.sent,T.next=11,this.parseXML(g.data);case 11:return m=T.sent,v=m.TagSet.Tag,v=v&&o(v)?[v]:v||[],_={},v.forEach(function(S){_[S.Key]=S.Value}),T.abrupt("return",{status:g.status,res:g.res,tag:_});case 17:case"end":return T.stop()}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(t,C,b){"use strict";var a=t("../utils/isIP"),u=a.isIP,A=b;A.getObjectUrl=function(h,o){if(u(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return o?o[o.length-1]!=="/"&&(o+="/"):o=this.options.endpoint.format(),o+this._escape(this._objectName(h))}},{"../utils/isIP":69}],43:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.getSymlink=function(){var h=(0,A.default)(u.default.mark(function n(r){var s,l,d,p,g=arguments;return u.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=g.length>1&&g[1]!==void 0?g[1]:{},s.subres=Object.assign({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectName(r),l=this._objectRequestParams("GET",r,s),l.successStatuses=[200],v.next=8,this.request(l);case 8:return d=v.sent,p=d.res.headers["x-oss-symlink-target"],v.abrupt("return",{targetName:decodeURIComponent(p),res:d.res});case 11:case"end":return v.stop()}},n,this)}));function o(n){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/checkEnv"),h=c.checkEnv,o=b;o.head=function(){var n=(0,A.default)(u.default.mark(function s(l){var d,p,g,m,v=arguments;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return d=v.length>1&&v[1]!==void 0?v[1]:{},h("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),d.subres=Object.assign({},d.subres),d.versionId&&(d.subres.versionId=d.versionId),p=this._objectRequestParams("HEAD",l,d),p.successStatuses=[200,304],O.next=8,this.request(p);case 8:return g=O.sent,m={meta:null,res:g.res,status:g.status},g.status===200&&Object.keys(g.headers).forEach(function(F){F.indexOf("x-oss-meta-")===0&&(m.meta||(m.meta={}),m.meta[F.substring(11)]=g.headers[F])}),O.abrupt("return",m);case 12:case"end":return O.stop()}},s,this)}));function r(s){return n.apply(this,arguments)}return r}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.putACL=function(){var h=(0,A.default)(u.default.mark(function n(r,s,l){var d,p;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=l||{},l.subres=Object.assign({acl:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.headers=l.headers||{},l.headers["x-oss-object-acl"]=s,r=this._objectName(r),d=this._objectRequestParams("PUT",r,l),d.successStatuses=[200],m.next=10,this.request(d);case 10:return p=m.sent,m.abrupt("return",{res:p.res});case 12:case"end":return m.stop()}},n,this)}));function o(n,r,s){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.object.keys.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("../utils/obj2xml"),h=c.obj2xml,o=t("../utils/checkObjectTag"),n=o.checkObjectTag,r=b;r.putObjectTagging=function(){var s=(0,A.default)(u.default.mark(function d(p,g){var m,v,_,O,F=arguments;return u.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return m=F.length>2&&F[2]!==void 0?F[2]:{},n(g),m.subres=Object.assign({tagging:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),p=this._objectName(p),v=this._objectRequestParams("PUT",p,m),v.successStatuses=[200],g=Object.keys(g).map(function(I){return{Key:I,Value:g[I]}}),_={Tagging:{TagSet:{Tag:g}}},v.mime="xml",v.content=h(_),S.next=13,this.request(v);case 13:return O=S.sent,S.abrupt("return",{res:O.res,status:O.status});case 15:case"end":return S.stop()}},d,this)}));function l(d,p){return s.apply(this,arguments)}return l}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=b;c.putSymlink=function(){var h=(0,A.default)(u.default.mark(function n(r,s,l){var d,p;return u.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=l||{},l.headers=l.headers||{},s=this._escape(this._objectName(s)),this._convertMetaToHeaders(l.meta,l.headers),l.headers["x-oss-symlink-target"]=s,l.subres=Object.assign({symlink:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.storageClass&&(l.headers["x-oss-storage-class"]=l.storageClass),r=this._objectName(r),d=this._objectRequestParams("PUT",r,l),d.successStatuses=[200],m.next=13,this.request(d);case 13:return p=m.sent,m.abrupt("return",{res:p.res});case 15:case"end":return m.stop()}},n,this)}));function o(n,r,s){return h.apply(this,arguments)}return o}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(t,C,b){"use strict";var a=t("url"),u=t("utility"),A=t("copy-to"),c=t("../../common/signUtils"),h=t("../utils/isIP"),o=h.isIP,n=b;n.signatureUrl=function(s,l){if(o(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");l=l||{},s=this._objectName(s),l.method=l.method||"GET";var d=u.timestamp()+(l.expires||1800),p={bucket:this.options.bucket,object:s},g=this._getResource(p);this.options.stsToken&&(l["security-token"]=this.options.stsToken);var m=c._signatureForURL(this.options.accessKeySecret,l,g,d),v=a.parse(this._getReqUrl(p));return v.query={OSSAccessKeyId:this.options.accessKeyId,Expires:d,Signature:m.Signature},A(m.subResource).to(v.query),v.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.array.iterator.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.string.iterator.js"),t("core-js/modules/web.dom-collections.iterator.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.function.name.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator")),c=t("./utils/isArray"),h=c.isArray,o=b;o._parallelNode=function(){var n=(0,A.default)(u.default.mark(function s(l,d,p,g){var m,v,_,O,F,T,S,I;return u.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:m=this,v=[],_=[],O=l.length/d,F=l.length%d,T=F===0?O:(l.length-F)/d+1,S=1,I=0;case 8:if(!(I<l.length)){M.next=26;break}if(!m.isCancel()){M.next=11;break}return M.abrupt("break",26);case 11:if(g?_.push(p(m,l[I],g)):_.push(p(m,l[I])),!(_.length===d||S===T&&I===l.length-1)){M.next=23;break}return M.prev=13,S+=1,M.next=17,Promise.all(_);case 17:M.next=22;break;case 19:M.prev=19,M.t0=M.catch(13),v.push(M.t0);case 22:_=[];case 23:I++,M.next=8;break;case 26:return M.abrupt("return",v);case 27:case"end":return M.stop()}},s,this,[[13,19]])}));function r(s,l,d,p){return n.apply(this,arguments)}return r}(),o._parallel=function(r,s,l){var d=this;return new Promise(function(p){var g=[];if(s<=0||!r){p(g);return}function m(M){return function(){if(M===null)throw new Error("Callback was already called.");var N=M;M=null;for(var V=arguments.length,H=new Array(V),X=0;X<V;X++)H[X]=arguments[X];N.apply(this,H)}}function v(M){var N=-1,V=M.length;return function(){return++N<V&&!d.isCancel()?{value:M[N],key:N}:null}}var _=v(r),O=!1,F=0,T=!1;function S(M){F-=1,M?(O=!0,g.push(M),p(g)):O&&F<=0?(O=!0,p(g)):T||(d.isCancel()?p(g):E())}function I(M,N){l(M).then(function(V){N(null,V)}).catch(function(V){N(V)})}function E(){for(T=!0;F<s&&!O&&!d.isCancel();){var M=_();if(M===null||g.length>0){O=!0,F<=0&&p(g);return}F+=1,I(M.value,m(S))}T=!1}E()})},o.cancel=function(r){this.options.cancelFlag=!0,h(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(s){if(s.destroyed===!1){var l={name:"cancel",message:"cancel"};s.destroy(l)}}),this.multipartUploadStreams=[],r&&this.abortMultipartUpload(r.name,r.uploadId,r.options)},o.isCancel=function(){return this.options.cancelFlag},o.resetCancelFlag=function(){this.options.cancelFlag=!1},o._stop=function(){this.options.cancelFlag=!0},o._makeCancelEvent=function(){var r={status:0,name:"cancel"};return r},o._makeAbortEvent=function(){var r={status:0,name:"abort",message:"upload task has been abort"};return r}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.string.trim.js"),t("core-js/modules/es.array.sort.js"),t("core-js/modules/es.array.join.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.regexp.to-string.js");var u=t("./../../shims/crypto/crypto.js"),A=t("is-type-of"),c=t("./utils/lowercaseKeyHeader"),h=c.lowercaseKeyHeader;b.buildCanonicalizedResource=function(n,r){var s="".concat(n),l="?";if(A.string(r)&&r.trim()!=="")s+=l+r;else if(A.array(r))r.sort(),s+=l+r.join("&");else if(r){var d=function(m,v){return m[0]>v[0]?1:m[0]<v[0]?-1:0},p=function(m){s+=l+m,(r[m]||r[m]===0)&&(s+="=".concat(r[m])),l="&"};Object.keys(r).sort(d).forEach(p)}return s},b.buildCanonicalString=function(n,r,s,l){s=s||{};var d=h(s.headers),p="x-oss-",g=[],m={},v=[n.toUpperCase(),d["content-md5"]||"",d["content-type"],l||d["x-oss-date"]];return Object.keys(d).forEach(function(_){var O=_.toLowerCase();O.indexOf(p)===0&&(m[O]=String(d[_]).trim())}),Object.keys(m).sort().forEach(function(_){g.push("".concat(_,":").concat(m[_]))}),v=v.concat(g),v.push(this.buildCanonicalizedResource(r,s.parameters)),v.join(`
|
|
|
`)},b.computeSignature=function(n,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",l=u.createHmac("sha1",n);return l.update(a.from(r,s)).digest("base64")},b.authorization=function(n,r,s,l){return"OSS ".concat(n,":").concat(this.computeSignature(r,s,l))},b._signatureForURL=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,p={},g=r.subResource,m=g===void 0?{}:g;if(r.process){var v="x-oss-process";m[v]=r.process}if(r.trafficLimit){var _="x-oss-traffic-limit";m[_]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach(function(S){var I="response-".concat(S.toLowerCase());m[I]=r.response[S]}),Object.keys(r).forEach(function(S){var I=S.toLowerCase(),E=r[S];I.indexOf("x-oss-")===0?p[I]=E:(I.indexOf("content-md5")===0||I.indexOf("content-type")===0)&&(p[S]=E)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(m["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var O={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(O.callbackHost=r.callback.host),r.callback.contentType&&(O.callbackBodyType=r.callback.contentType),m.callback=a.from(JSON.stringify(O)).toString("base64"),r.callback.customValue){var F={};Object.keys(r.callback.customValue).forEach(function(S){F["x:".concat(S)]=r.callback.customValue[S]}),m["callback-var"]=a.from(JSON.stringify(F)).toString("base64")}}var T=this.buildCanonicalString(r.method,s,{headers:p,parameters:m},l.toString());return{Signature:this.computeSignature(n,T,d),subResource:m}}}).call(this)}).call(this,t("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(t,C,b){"use strict";t("core-js/modules/es.regexp.exec.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.checkBucketName=void 0,b.checkBucketName=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=u?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!A.test(a))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(t,C,b){"use strict";t("core-js/modules/es.regexp.exec.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.checkConfigValid=void 0;var a={endpoint:u,region:/^[a-zA-Z0-9\-_]+$/};function u(A){return typeof A=="string"?/^[a-zA-Z0-9._:/-]+$/.test(A):A.host?/^[a-zA-Z0-9._:/-]+$/.test(A.host):!1}b.checkConfigValid=function(A,c){if(a[c]){var h=!0;if(a[c]instanceof Function?h=a[c](A):h=a[c].test(A),!h)throw new Error("The ".concat(c," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(t,C,b){(function(a){(function(){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.checkEnv=void 0;function u(A){a.browser&&console.warn(A)}b.checkEnv=u}).call(this)}).call(this,t("_process"))},{_process:467}],54:[function(t,C,b){"use strict";t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.object.entries.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.checkObjectTag=void 0;var a=t("./checkValid"),u=a.checkValid,A=t("./isObject"),c=A.isObject,h=[{validator:function(s){if(typeof s!="string")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 (/)"}],o={key:[].concat(h,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(h,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function n(r){if(!c(r))throw new Error("tag must be Object");var s=Object.entries(r);if(s.length>10)throw new Error("maximum of 10 tags for a object");var l=["key","value"];s.forEach(function(d){d.forEach(function(p,g){u(p,o[l[g]])})})}b.checkObjectTag=n},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.regexp.exec.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.checkValid=void 0;function a(u,A){A.forEach(function(c){if(c.validator)c.validator(u);else if(c.pattern&&!c.pattern.test(u))throw new Error(c.msg)})}b.checkValid=a},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.string.includes.js"),t("core-js/modules/es.object.assign.js"),t("core-js/modules/es.array.concat.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.createRequest=void 0;var u=t("./../../../shims/crypto/crypto.js"),A=t("debug")("ali-oss"),c=t("mime"),h=t("dateformat"),o=t("copy-to"),n=t("path"),r=t("./encoder"),s=r.encoder,l=t("./isIP"),d=l.isIP,p=t("./setRegion"),g=p.setRegion,m=t("../client/getReqUrl"),v=m.getReqUrl,_=t("./isDingTalk"),O=_.isDingTalk;function F(I,E){return I[E]||I[E.toLowerCase()]}function T(I,E){delete I[E],delete I[E.toLowerCase()]}function S(I){var E=new Date;this.options.amendTimeSkewed&&(E=+new Date+this.options.amendTimeSkewed);var M={"x-oss-date":h(E,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(M["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(M["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(M,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(M["x-oss-security-token"]=this.options.stsToken),o(I.headers).to(M),F(M,"Content-Type")||(I.mime&&I.mime.indexOf("/")>0?M["Content-Type"]=I.mime:O()?M["Content-Type"]="application/octet-stream":M["Content-Type"]=c.getType(I.mime||n.extname(I.object||""))),F(M,"Content-Type")||T(M,"Content-Type"),I.content&&(I.disabledMD5||(!I.headers||!I.headers["Content-MD5"]?M["Content-MD5"]=u.createHash("md5").update(a.from(I.content,"utf8")).digest("base64"):M["Content-MD5"]=I.headers["Content-MD5"]),M["Content-Length"]||(M["Content-Length"]=I.content.length));var N=Object.prototype.hasOwnProperty;for(var V in M)M[V]&&N.call(M,V)&&(M[V]=s(String(M[V]),this.options.headerEncoding));var H=this._getResource(I);if(M.authorization=this.authorization(I.method,H,I.subres,M,this.options.headerEncoding),d(this.options.endpoint.hostname)){var X=this.options,G=X.region,ee=X.internal,Z=X.secure,Ae=g(G,ee,Z);M.host="".concat(I.bucket,".").concat(Ae.host)}var U=v.bind(this)(I);A("request %s %s, with headers %j, !!stream: %s",I.method,U,M,!!I.stream);var W=I.timeout||this.options.timeout,le={method:I.method,content:I.content,stream:I.stream,headers:M,timeout:W,writeStream:I.writeStream,customResponse:I.customResponse,ctx:I.ctx||this.ctx};return this.agent&&(le.agent=this.agent),this.httpsAgent&&(le.httpsAgent=this.httpsAgent),le.enableProxy=!!this.options.enableProxy,le.proxy=this.options.proxy?this.options.proxy:null,{url:U,params:le}}b.createRequest=S}).call(this)}).call(this,t("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.entries.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.object.keys.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.dataFix=void 0;var a=t("./isObject"),u=["true","TRUE","1",1],A=["false","FALSE","0",0];function c(n,r,s){if(a.isObject(n)){var l=r.remove,d=l===void 0?[]:l,p=r.rename,g=p===void 0?{}:p,m=r.camel,v=m===void 0?[]:m,_=r.bool,O=_===void 0?[]:_,F=r.lowerFirst,T=F===void 0?!1:F;return d.forEach(function(S){return delete n[S]}),Object.entries(g).forEach(function(S){n[S[0]]&&(n[S[1]]||(n[S[1]]=n[S[0]],delete n[S[0]]))}),v.forEach(function(S){if(n[S]){var I=S.replace(/^(.)/,function(E){return E.toLowerCase()}).replace(/-(\w)/g,function(E,M){return M.toUpperCase()});n[I]||(n[I]=n[S])}}),O.forEach(function(S){n[S]=h(n[S])}),typeof s=="function"&&s(n),o(n,T),c}}b.dataFix=c;function h(n){return n?u.includes(n)?!0:A.includes(n)?!1:n:!1}function o(n,r){r&&Object.keys(n).forEach(function(s){var l=s.replace(/^\w/,function(d){return d.toLowerCase()});typeof n[l]=="undefined"&&(n[l]=n[s],delete n[s])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault");t("core-js/modules/es.array.slice.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js");var u=a(t("@babel/runtime/helpers/typeof"));Object.defineProperty(b,"__esModule",{value:!0}),b.deepCopyWith=b.deepCopy=void 0;var A=t("./isBuffer");b.deepCopy=function(c){if(c===null||(0,u.default)(c)!=="object")return c;if(A.isBuffer(c))return c.slice();var h=Array.isArray(c)?[]:{};return Object.keys(c).forEach(function(o){h[o]=b.deepCopy(c[o])}),h},b.deepCopyWith=function(c,h){function o(n,r,s){var l=h(n,r,s);if(l!==void 0)return l;if(n===null||(0,u.default)(n)!=="object")return n;if(A.isBuffer(n))return n.slice();var d=Array.isArray(n)?[]:{};return Object.keys(n).forEach(function(p){d[p]=o(n[p],p,n)}),d}return h?o(c,"",null):b.deepCopy(c)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.encoder=void 0;function u(A){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return c==="utf-8"?A:a.from(A).toString("latin1")}b.encoder=u}).call(this)}).call(this,t("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(t,C,b){"use strict";t("core-js/modules/es.array.map.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.formatInventoryConfig=void 0;var a=t("../utils/dataFix"),u=t("../utils/isObject"),A=t("../utils/isArray"),c=t("../utils/formatObjKey");function h(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return r&&u.isObject(n)&&(n=[n]),A.isArray(n)?n=n.map(o):n=o(n),n}b.formatInventoryConfig=h;function o(n){return a.dataFix(n,{bool:["IsEnabled"]},function(r){var s,l;r.prefix=r.Filter.Prefix,delete r.Filter,r.OSSBucketDestination=r.Destination.OSSBucketDestination,r.OSSBucketDestination.rolename=r.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete r.OSSBucketDestination.RoleArn,r.OSSBucketDestination.bucket=r.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete r.OSSBucketDestination.Bucket,delete r.Destination,r.frequency=r.Schedule.Frequency,delete r.Schedule.Frequency,!((s=r==null?void 0:r.OptionalFields)===null||s===void 0)&&s.Field&&!A.isArray((l=r.OptionalFields)===null||l===void 0?void 0:l.Field)&&(r.OptionalFields.Field=[r.OptionalFields.Field])}),n=c.formatObjKey(n,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),n}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault");t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.string.includes.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js");var u=a(t("@babel/runtime/helpers/typeof"));Object.defineProperty(b,"__esModule",{value:!0}),b.formatObjKey=void 0;function A(h,o,n){if(h===null||(0,u.default)(h)!=="object")return h;var r;if(Array.isArray(h)){r=[];for(var s=0;s<h.length;s++)r.push(A(h[s],o,n))}else r={},Object.keys(h).forEach(function(l){r[c(l,o,n)]=A(h[l],o,n)});return r}b.formatObjKey=A;function c(h,o,n){return n&&n.exclude&&n.exclude.includes(h)||(o==="firstUpperCase"?h=h.replace(/^./,function(r){return r.toUpperCase()}):o==="firstLowerCase"&&(h=h.replace(/^./,function(r){return r.toLowerCase()}))),h}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(t,C,b){"use strict";t("core-js/modules/es.regexp.exec.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.getStrBytesCount=void 0;function a(u){for(var A=0,c=0;c<u.length;c++){var h=u.charAt(c);/^[\u00-\uff]$/.test(h)?A+=1:A+=2}return A}b.getStrBytesCount=a},{"core-js/modules/es.regexp.exec.js":300}],63:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.isArray=void 0,b.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(t,C,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isBlob=void 0;function a(u){return typeof Blob!="undefined"&&u instanceof Blob}b.isBlob=a},{}],65:[function(t,C,b){(function(a){(function(){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isBuffer=void 0;function u(A){return a.isBuffer(A)}b.isBuffer=u}).call(this)}).call(this,{isBuffer:t("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.array.includes.js"),t("core-js/modules/es.string.includes.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.isDingTalk=void 0;function u(){return!!(a.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}b.isDingTalk=u}).call(this)}).call(this,t("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(t,C,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isFile=void 0,b.isFile=function(a){return typeof File!="undefined"&&a instanceof File}},{}],68:[function(t,C,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isFunction=void 0,b.isFunction=function(a){return typeof a=="function"}},{}],69:[function(t,C,b){"use strict";t("core-js/modules/es.regexp.exec.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.isIP=void 0,b.isIP=function(a){var u=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,A=/^\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*$/;return u.test(a)||A.test(a)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.isObject=void 0,b.isObject=function(a){return Object.prototype.toString.call(a)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.lowercaseKeyHeader=void 0;var a=t("./isObject");function u(A){var c={};return a.isObject(A)&&Object.keys(A).forEach(function(h){c[h.toLowerCase()]=A[h]}),c}b.lowercaseKeyHeader=u},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(t,C,b){"use strict";t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.array.join.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.obj2xml=void 0;var a=t("./formatObjKey");function u(c){return Object.prototype.toString.call(c).replace(/(.*? |])/g,"").toLowerCase()}function A(c,h){var o="";return h&&h.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),h&&h.firstUpperCase&&(c=a.formatObjKey(c,"firstUpperCase")),u(c)==="object"?Object.keys(c).forEach(function(n){u(c[n])!=="undefined"&&u(c[n])!=="null"&&(u(c[n])==="string"||u(c[n])==="number"?o+="<".concat(n,">").concat(c[n],"</").concat(n,">"):u(c[n])==="object"?o+="<".concat(n,">").concat(A(c[n]),"</").concat(n,">"):u(c[n])==="array"?o+=c[n].map(function(r){return"<".concat(n,">").concat(A(r),"</").concat(n,">")}).join(""):o+="<".concat(n,">").concat(c[n].toString(),"</").concat(n,">"))}):o+=c.toString(),o}b.obj2xml=A},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(t,C,b){"use strict";t("core-js/modules/es.array.slice.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.function.name.js"),t("core-js/modules/es.array.from.js"),t("core-js/modules/es.string.iterator.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.symbol.js"),t("core-js/modules/es.symbol.description.js"),t("core-js/modules/es.symbol.iterator.js"),t("core-js/modules/es.array.iterator.js"),t("core-js/modules/web.dom-collections.iterator.js"),t("core-js/modules/es.object.assign.js");function a(h,o){var n=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(!n){if(Array.isArray(h)||(n=u(h))||o&&h&&typeof h.length=="number"){n&&(h=n);var r=0,s=function(){};return{s,n:function(){return r>=h.length?{done:!0}:{done:!1,value:h[r++]}},e:function(m){throw m},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,d=!1,p;return{s:function(){n=n.call(h)},n:function(){var m=n.next();return l=m.done,m},e:function(m){d=!0,p=m},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(d)throw p}}}}function u(h,o){if(h){if(typeof h=="string")return A(h,o);var n=Object.prototype.toString.call(h).slice(8,-1);if(n==="Object"&&h.constructor&&(n=h.constructor.name),n==="Map"||n==="Set")return Array.from(h);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(h,o)}}function A(h,o){(o==null||o>h.length)&&(o=h.length);for(var n=0,r=new Array(o);n<o;n++)r[n]=h[n];return r}Object.defineProperty(b,"__esModule",{value:!0}),b.omit=void 0;function c(h,o){var n=Object.assign({},h),r=a(o),s;try{for(r.s();!(s=r.n()).done;){var l=s.value;delete n[l]}}catch(d){r.e(d)}finally{r.f()}return n}b.omit=c},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(t,C,b){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),Object.defineProperty(b,"__esModule",{value:!0}),b.retry=void 0;function a(u,A){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=0,o=c.retryDelay,n=o===void 0?500:o,r=c.errorHandler,s=r===void 0?function(){return!0}:r,l=function d(){for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return new Promise(function(v,_){u.apply(void 0,g).then(function(O){h=0,v(O)}).catch(function(O){h<A&&s(O)?(h++,setTimeout(function(){v(d.apply(void 0,g))},n)):(h=0,_(O))})})};return l}b.retry=a},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(t,C,b){"use strict";var a=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(b,"__esModule",{value:!0}),b.setRegion=void 0;var u=a(t("url")),A=t("./checkConfigValid");function c(h){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;A.checkConfigValid(h,"region");var r=n?"https://":"http://",s=o?"-internal.aliyuncs.com":".aliyuncs.com",l="vpc100-oss-cn-";return h.substr(0,l.length)===l&&(s=".aliyuncs.com"),u.default.parse(r+h+s)}b.setRegion=c},{"./checkConfigValid":52,url:472}],76:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/regenerator"));t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.array.find.js"),t("core-js/modules/es.object.assign.js");var A=a(t("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(b,"__esModule",{value:!0}),b.checkCredentials=b.setSTSToken=void 0;var c=t("./formatObjKey");function h(){return o.apply(this,arguments)}function o(){return o=(0,A.default)(u.default.mark(function r(){var s,l;return u.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.options||(this.options={}),s=new Date,!this.stsTokenFreshTime){p.next=14;break}if(!(+s-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){p.next=12;break}return this.stsTokenFreshTime=s,p.next=7,this.options.refreshSTSToken();case 7:l=p.sent,l=c.formatObjKey(l,"firstLowerCase"),l.securityToken&&(l.stsToken=l.securityToken),n(l),Object.assign(this.options,l);case 12:p.next=15;break;case 14:this.stsTokenFreshTime=s;case 15:return p.abrupt("return",null);case 16:case"end":return p.stop()}},r,this)})),o.apply(this,arguments)}b.setSTSToken=h;function n(r){var s=["accessKeySecret","accessKeyId","stsToken"],l=Object.keys(r);s.forEach(function(d){if(!l.find(function(p){return p===d}))throw Error("refreshSTSToken must return contains ".concat(d))})}b.checkCredentials=n},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(t,C,b){function a(A,c,h,o,n,r,s){try{var l=A[r](s),d=l.value}catch(p){h(p);return}l.done?c(d):Promise.resolve(d).then(o,n)}function u(A){return function(){var c=this,h=arguments;return new Promise(function(o,n){var r=A.apply(c,h);function s(d){a(r,o,n,s,l,"next",d)}function l(d){a(r,o,n,s,l,"throw",d)}s(void 0)})}}C.exports=u,C.exports.__esModule=!0,C.exports.default=C.exports},{}],78:[function(t,C,b){function a(u){return u&&u.__esModule?u:{default:u}}C.exports=a,C.exports.__esModule=!0,C.exports.default=C.exports},{}],79:[function(t,C,b){function a(u){"@babel/helpers - typeof";return C.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},C.exports.__esModule=!0,C.exports.default=C.exports,a(u)}C.exports=a,C.exports.__esModule=!0,C.exports.default=C.exports},{}],80:[function(t,C,b){C.exports=t("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(t,C,b){C.exports=a,C.exports.HttpsAgent=a;function a(){}},{}],82:[function(t,C,b){(function(a){(function(){"use strict";var u=t("object-assign");function A(G,ee){if(G===ee)return 0;for(var Z=G.length,Ae=ee.length,U=0,W=Math.min(Z,Ae);U<W;++U)if(G[U]!==ee[U]){Z=G[U],Ae=ee[U];break}return Z<Ae?-1:Ae<Z?1:0}function c(G){return a.Buffer&&typeof a.Buffer.isBuffer=="function"?a.Buffer.isBuffer(G):!!(G!=null&&G._isBuffer)}var h=t("util/"),o=Object.prototype.hasOwnProperty,n=Array.prototype.slice,r=function(){return function(){}.name==="foo"}();function s(G){return Object.prototype.toString.call(G)}function l(G){return c(G)||typeof a.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(G):G?!!(G instanceof DataView||G.buffer&&G.buffer instanceof ArrayBuffer):!1}var d=C.exports=F,p=/\s*function\s+([^\(\s]*)\s*/;function g(G){if(h.isFunction(G)){if(r)return G.name;var ee=G.toString(),Z=ee.match(p);return Z&&Z[1]}}d.AssertionError=function(ee){this.name="AssertionError",this.actual=ee.actual,this.expected=ee.expected,this.operator=ee.operator,ee.message?(this.message=ee.message,this.generatedMessage=!1):(this.message=_(this),this.generatedMessage=!0);var Z=ee.stackStartFunction||O;if(Error.captureStackTrace)Error.captureStackTrace(this,Z);else{var Ae=new Error;if(Ae.stack){var U=Ae.stack,W=g(Z),le=U.indexOf(`
|
|
|
`+W);if(le>=0){var he=U.indexOf(`
|
|
|
`,le+1);U=U.substring(he+1)}this.stack=U}}},h.inherits(d.AssertionError,Error);function m(G,ee){return typeof G=="string"?G.length<ee?G:G.slice(0,ee):G}function v(G){if(r||!h.isFunction(G))return h.inspect(G);var ee=g(G),Z=ee?": "+ee:"";return"[Function"+Z+"]"}function _(G){return m(v(G.actual),128)+" "+G.operator+" "+m(v(G.expected),128)}function O(G,ee,Z,Ae,U){throw new d.AssertionError({message:Z,actual:G,expected:ee,operator:Ae,stackStartFunction:U})}d.fail=O;function F(G,ee){G||O(G,!0,ee,"==",d.ok)}d.ok=F,d.equal=function(ee,Z,Ae){ee!=Z&&O(ee,Z,Ae,"==",d.equal)},d.notEqual=function(ee,Z,Ae){ee==Z&&O(ee,Z,Ae,"!=",d.notEqual)},d.deepEqual=function(ee,Z,Ae){T(ee,Z,!1)||O(ee,Z,Ae,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(ee,Z,Ae){T(ee,Z,!0)||O(ee,Z,Ae,"deepStrictEqual",d.deepStrictEqual)};function T(G,ee,Z,Ae){if(G===ee)return!0;if(c(G)&&c(ee))return A(G,ee)===0;if(h.isDate(G)&&h.isDate(ee))return G.getTime()===ee.getTime();if(h.isRegExp(G)&&h.isRegExp(ee))return G.source===ee.source&&G.global===ee.global&&G.multiline===ee.multiline&&G.lastIndex===ee.lastIndex&&G.ignoreCase===ee.ignoreCase;if((G===null||typeof G!="object")&&(ee===null||typeof ee!="object"))return Z?G===ee:G==ee;if(l(G)&&l(ee)&&s(G)===s(ee)&&!(G instanceof Float32Array||G instanceof Float64Array))return A(new Uint8Array(G.buffer),new Uint8Array(ee.buffer))===0;if(c(G)!==c(ee))return!1;Ae=Ae||{actual:[],expected:[]};var U=Ae.actual.indexOf(G);return U!==-1&&U===Ae.expected.indexOf(ee)?!0:(Ae.actual.push(G),Ae.expected.push(ee),I(G,ee,Z,Ae))}function S(G){return Object.prototype.toString.call(G)=="[object Arguments]"}function I(G,ee,Z,Ae){if(G==null||ee===null||ee===void 0)return!1;if(h.isPrimitive(G)||h.isPrimitive(ee))return G===ee;if(Z&&Object.getPrototypeOf(G)!==Object.getPrototypeOf(ee))return!1;var U=S(G),W=S(ee);if(U&&!W||!U&&W)return!1;if(U)return G=n.call(G),ee=n.call(ee),T(G,ee,Z);var le=X(G),he=X(ee),ue,pe;if(le.length!==he.length)return!1;for(le.sort(),he.sort(),pe=le.length-1;pe>=0;pe--)if(le[pe]!==he[pe])return!1;for(pe=le.length-1;pe>=0;pe--)if(ue=le[pe],!T(G[ue],ee[ue],Z,Ae))return!1;return!0}d.notDeepEqual=function(ee,Z,Ae){T(ee,Z,!1)&&O(ee,Z,Ae,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=E;function E(G,ee,Z){T(G,ee,!0)&&O(G,ee,Z,"notDeepStrictEqual",E)}d.strictEqual=function(ee,Z,Ae){ee!==Z&&O(ee,Z,Ae,"===",d.strictEqual)},d.notStrictEqual=function(ee,Z,Ae){ee===Z&&O(ee,Z,Ae,"!==",d.notStrictEqual)};function M(G,ee){if(!G||!ee)return!1;if(Object.prototype.toString.call(ee)=="[object RegExp]")return ee.test(G);try{if(G instanceof ee)return!0}catch(Z){}return Error.isPrototypeOf(ee)?!1:ee.call({},G)===!0}function N(G){var ee;try{G()}catch(Z){ee=Z}return ee}function V(G,ee,Z,Ae){var U;if(typeof ee!="function")throw new TypeError('"block" argument must be a function');typeof Z=="string"&&(Ae=Z,Z=null),U=N(ee),Ae=(Z&&Z.name?" ("+Z.name+").":".")+(Ae?" "+Ae:"."),G&&!U&&O(U,Z,"Missing expected exception"+Ae);var W=typeof Ae=="string",le=!G&&h.isError(U),he=!G&&U&&!Z;if((le&&W&&M(U,Z)||he)&&O(U,Z,"Got unwanted exception"+Ae),G&&U&&Z&&!M(U,Z)||!G&&U)throw U}d.throws=function(G,ee,Z){V(!0,G,ee,Z)},d.doesNotThrow=function(G,ee,Z){V(!1,G,ee,Z)},d.ifError=function(G){if(G)throw G};function H(G,ee){G||O(G,!0,ee,"==",H)}d.strict=u(H,d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var X=Object.keys||function(G){var ee=[];for(var Z in G)o.call(G,Z)&&ee.push(Z);return ee}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(t,C,b){typeof Object.create=="function"?C.exports=function(u,A){u.super_=A,u.prototype=Object.create(A.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:C.exports=function(u,A){u.super_=A;var c=function(){};c.prototype=A.prototype,u.prototype=new c,u.prototype.constructor=u}},{}],84:[function(t,C,b){C.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],85:[function(t,C,b){(function(a,u){(function(){var A=/%[sdj%]/g;b.format=function(he){if(!I(he)){for(var ue=[],pe=0;pe<arguments.length;pe++)ue.push(o(arguments[pe]));return ue.join(" ")}for(var pe=1,fe=arguments,ce=fe.length,be=String(he).replace(A,function(xe){if(xe==="%%")return"%";if(pe>=ce)return xe;switch(xe){case"%s":return String(fe[pe++]);case"%d":return Number(fe[pe++]);case"%j":try{return JSON.stringify(fe[pe++])}catch(Se){return"[Circular]"}default:return xe}}),Ce=fe[pe];pe<ce;Ce=fe[++pe])F(Ce)||!V(Ce)?be+=" "+Ce:be+=" "+o(Ce);return be},b.deprecate=function(he,ue){if(M(u.process))return function(){return b.deprecate(he,ue).apply(this,arguments)};if(a.noDeprecation===!0)return he;var pe=!1;function fe(){if(!pe){if(a.throwDeprecation)throw new Error(ue);a.traceDeprecation?console.trace(ue):console.error(ue),pe=!0}return he.apply(this,arguments)}return fe};var c={},h;b.debuglog=function(he){if(M(h)&&(h=a.env.NODE_DEBUG||""),he=he.toUpperCase(),!c[he])if(new RegExp("\\b"+he+"\\b","i").test(h)){var ue=a.pid;c[he]=function(){var pe=b.format.apply(b,arguments);console.error("%s %d: %s",he,ue,pe)}}else c[he]=function(){};return c[he]};function o(he,ue){var pe={seen:[],stylize:r};return arguments.length>=3&&(pe.depth=arguments[2]),arguments.length>=4&&(pe.colors=arguments[3]),O(ue)?pe.showHidden=ue:ue&&b._extend(pe,ue),M(pe.showHidden)&&(pe.showHidden=!1),M(pe.depth)&&(pe.depth=2),M(pe.colors)&&(pe.colors=!1),M(pe.customInspect)&&(pe.customInspect=!0),pe.colors&&(pe.stylize=n),l(pe,he,pe.depth)}b.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(he,ue){var pe=o.styles[ue];return pe?"\x1B["+o.colors[pe][0]+"m"+he+"\x1B["+o.colors[pe][1]+"m":he}function r(he,ue){return he}function s(he){var ue={};return he.forEach(function(pe,fe){ue[pe]=!0}),ue}function l(he,ue,pe){if(he.customInspect&&ue&&G(ue.inspect)&&ue.inspect!==b.inspect&&!(ue.constructor&&ue.constructor.prototype===ue)){var fe=ue.inspect(pe,he);return I(fe)||(fe=l(he,fe,pe)),fe}var ce=d(he,ue);if(ce)return ce;var be=Object.keys(ue),Ce=s(be);if(he.showHidden&&(be=Object.getOwnPropertyNames(ue)),X(ue)&&(be.indexOf("message")>=0||be.indexOf("description")>=0))return p(ue);if(be.length===0){if(G(ue)){var xe=ue.name?": "+ue.name:"";return he.stylize("[Function"+xe+"]","special")}if(N(ue))return he.stylize(RegExp.prototype.toString.call(ue),"regexp");if(H(ue))return he.stylize(Date.prototype.toString.call(ue),"date");if(X(ue))return p(ue)}var Se="",me=!1,te=["{","}"];if(_(ue)&&(me=!0,te=["[","]"]),G(ue)){var $=ue.name?": "+ue.name:"";Se=" [Function"+$+"]"}if(N(ue)&&(Se=" "+RegExp.prototype.toString.call(ue)),H(ue)&&(Se=" "+Date.prototype.toUTCString.call(ue)),X(ue)&&(Se=" "+p(ue)),be.length===0&&(!me||ue.length==0))return te[0]+Se+te[1];if(pe<0)return N(ue)?he.stylize(RegExp.prototype.toString.call(ue),"regexp"):he.stylize("[Object]","special");he.seen.push(ue);var B;return me?B=g(he,ue,pe,Ce,be):B=be.map(function(k){return m(he,ue,pe,Ce,k,me)}),he.seen.pop(),v(B,Se,te)}function d(he,ue){if(M(ue))return he.stylize("undefined","undefined");if(I(ue)){var pe="'"+JSON.stringify(ue).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return he.stylize(pe,"string")}if(S(ue))return he.stylize(""+ue,"number");if(O(ue))return he.stylize(""+ue,"boolean");if(F(ue))return he.stylize("null","null")}function p(he){return"["+Error.prototype.toString.call(he)+"]"}function g(he,ue,pe,fe,ce){for(var be=[],Ce=0,xe=ue.length;Ce<xe;++Ce)le(ue,String(Ce))?be.push(m(he,ue,pe,fe,String(Ce),!0)):be.push("");return ce.forEach(function(Se){Se.match(/^\d+$/)||be.push(m(he,ue,pe,fe,Se,!0))}),be}function m(he,ue,pe,fe,ce,be){var Ce,xe,Se;if(Se=Object.getOwnPropertyDescriptor(ue,ce)||{value:ue[ce]},Se.get?Se.set?xe=he.stylize("[Getter/Setter]","special"):xe=he.stylize("[Getter]","special"):Se.set&&(xe=he.stylize("[Setter]","special")),le(fe,ce)||(Ce="["+ce+"]"),xe||(he.seen.indexOf(Se.value)<0?(F(pe)?xe=l(he,Se.value,null):xe=l(he,Se.value,pe-1),xe.indexOf(`
|
|
|
`)>-1&&(be?xe=xe.split(`
|
|
|
`).map(function(me){return" "+me}).join(`
|
|
|
`).substr(2):xe=`
|
|
|
`+xe.split(`
|
|
|
`).map(function(me){return" "+me}).join(`
|
|
|
`))):xe=he.stylize("[Circular]","special")),M(Ce)){if(be&&ce.match(/^\d+$/))return xe;Ce=JSON.stringify(""+ce),Ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ce=Ce.substr(1,Ce.length-2),Ce=he.stylize(Ce,"name")):(Ce=Ce.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ce=he.stylize(Ce,"string"))}return Ce+": "+xe}function v(he,ue,pe){var fe=0,ce=he.reduce(function(be,Ce){return fe++,Ce.indexOf(`
|
|
|
`)>=0&&fe++,be+Ce.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ce>60?pe[0]+(ue===""?"":ue+`
|
|
|
`)+" "+he.join(`,
|
|
|
`)+" "+pe[1]:pe[0]+ue+" "+he.join(", ")+" "+pe[1]}function _(he){return Array.isArray(he)}b.isArray=_;function O(he){return typeof he=="boolean"}b.isBoolean=O;function F(he){return he===null}b.isNull=F;function T(he){return he==null}b.isNullOrUndefined=T;function S(he){return typeof he=="number"}b.isNumber=S;function I(he){return typeof he=="string"}b.isString=I;function E(he){return typeof he=="symbol"}b.isSymbol=E;function M(he){return he===void 0}b.isUndefined=M;function N(he){return V(he)&&Z(he)==="[object RegExp]"}b.isRegExp=N;function V(he){return typeof he=="object"&&he!==null}b.isObject=V;function H(he){return V(he)&&Z(he)==="[object Date]"}b.isDate=H;function X(he){return V(he)&&(Z(he)==="[object Error]"||he instanceof Error)}b.isError=X;function G(he){return typeof he=="function"}b.isFunction=G;function ee(he){return he===null||typeof he=="boolean"||typeof he=="number"||typeof he=="string"||typeof he=="symbol"||typeof he=="undefined"}b.isPrimitive=ee,b.isBuffer=t("./support/isBuffer");function Z(he){return Object.prototype.toString.call(he)}function Ae(he){return he<10?"0"+he.toString(10):he.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var he=new Date,ue=[Ae(he.getHours()),Ae(he.getMinutes()),Ae(he.getSeconds())].join(":");return[he.getDate(),U[he.getMonth()],ue].join(" ")}b.log=function(){console.log("%s - %s",W(),b.format.apply(b,arguments))},b.inherits=t("inherits"),b._extend=function(he,ue){if(!ue||!V(ue))return he;for(var pe=Object.keys(ue),fe=pe.length;fe--;)he[pe[fe]]=ue[pe[fe]];return he};function le(he,ue){return Object.prototype.hasOwnProperty.call(he,ue)}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(t,C,b){(function(a){(function(){"use strict";var u=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],A=typeof globalThis=="undefined"?a:globalThis;C.exports=function(){for(var h=[],o=0;o<u.length;o++)typeof A[u[o]]=="function"&&(h[h.length]=u[o]);return h}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(t,C,b){"use strict";b.byteLength=r,b.toByteArray=l,b.fromByteArray=g;for(var a=[],u=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,o=c.length;h<o;++h)a[h]=c[h],u[c.charCodeAt(h)]=h;u[45]=62,u[95]=63;function n(m){var v=m.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=m.indexOf("=");_===-1&&(_=v);var O=_===v?0:4-_%4;return[_,O]}function r(m){var v=n(m),_=v[0],O=v[1];return(_+O)*3/4-O}function s(m,v,_){return(v+_)*3/4-_}function l(m){var v,_=n(m),O=_[0],F=_[1],T=new A(s(m,O,F)),S=0,I=F>0?O-4:O,E;for(E=0;E<I;E+=4)v=u[m.charCodeAt(E)]<<18|u[m.charCodeAt(E+1)]<<12|u[m.charCodeAt(E+2)]<<6|u[m.charCodeAt(E+3)],T[S++]=v>>16&255,T[S++]=v>>8&255,T[S++]=v&255;return F===2&&(v=u[m.charCodeAt(E)]<<2|u[m.charCodeAt(E+1)]>>4,T[S++]=v&255),F===1&&(v=u[m.charCodeAt(E)]<<10|u[m.charCodeAt(E+1)]<<4|u[m.charCodeAt(E+2)]>>2,T[S++]=v>>8&255,T[S++]=v&255),T}function d(m){return a[m>>18&63]+a[m>>12&63]+a[m>>6&63]+a[m&63]}function p(m,v,_){for(var O,F=[],T=v;T<_;T+=3)O=(m[T]<<16&16711680)+(m[T+1]<<8&65280)+(m[T+2]&255),F.push(d(O));return F.join("")}function g(m){for(var v,_=m.length,O=_%3,F=[],T=16383,S=0,I=_-O;S<I;S+=T)F.push(p(m,S,S+T>I?I:S+T));return O===1?(v=m[_-1],F.push(a[v>>2]+a[v<<4&63]+"==")):O===2&&(v=(m[_-2]<<8)+m[_-1],F.push(a[v>>10]+a[v>>4&63]+a[v<<2&63]+"=")),F.join("")}},{}],88:[function(t,C,b){(function(a,u,A){typeof C!="undefined"&&C.exports?C.exports=A():typeof J=="function"&&J.amd?J(u,A):a[u]=A()})(this,"bowser",function(){var a=!0;function u(s){function l(ue){var pe=s.match(ue);return pe&&pe.length>1&&pe[1]||""}function d(ue){var pe=s.match(ue);return pe&&pe.length>1&&pe[2]||""}var p=l(/(ipod|iphone|ipad)/i).toLowerCase(),g=/like android/i.test(s),m=!g&&/android/i.test(s),v=/nexus\s*[0-6]\s*/i.test(s),_=!v&&/nexus\s*[0-9]+/i.test(s),O=/CrOS/.test(s),F=/silk/i.test(s),T=/sailfish/i.test(s),S=/tizen/i.test(s),I=/(web|hpw)(o|0)s/i.test(s),E=/windows phone/i.test(s),M=/SamsungBrowser/i.test(s),N=!E&&/windows/i.test(s),V=!p&&!F&&/macintosh/i.test(s),H=!m&&!T&&!S&&!I&&/linux/i.test(s),X=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=l(/version\/(\d+(\.\d+)?)/i),ee=/tablet/i.test(s)&&!/tablet pc/i.test(s),Z=!ee&&/[^-]mobi/i.test(s),Ae=/xbox/i.test(s),U;/opera/i.test(s)?U={name:"Opera",opera:a,version:G||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?U={name:"Opera",opera:a,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(s)?U={name:"Samsung Internet for Android",samsungBrowser:a,version:G||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(s)?U={name:"NAVER Whale browser",whale:a,version:l(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(s)?U={name:"MZ Browser",mzbrowser:a,version:l(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(s)?U={name:"Opera Coast",coast:a,version:G||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(s)?U={name:"Focus",focus:a,version:l(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(s)?U={name:"Yandex Browser",yandexbrowser:a,version:G||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?U={name:"UC Browser",ucbrowser:a,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?U={name:"Maxthon",maxthon:a,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?U={name:"Epiphany",epiphany:a,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?U={name:"Puffin",puffin:a,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?U={name:"Sleipnir",sleipnir:a,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?U={name:"K-Meleon",kMeleon:a,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(U={name:"Windows Phone",osname:"Windows Phone",windowsphone:a},X?(U.msedge=a,U.version=X):(U.msie=a,U.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?U={name:"Internet Explorer",msie:a,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:O?U={name:"Chrome",osname:"Chrome OS",chromeos:a,chromeBook:a,chrome:a,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?U={name:"Microsoft Edge",msedge:a,version:X}:/vivaldi/i.test(s)?U={name:"Vivaldi",vivaldi:a,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||G}:T?U={name:"Sailfish",osname:"Sailfish OS",sailfish:a,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?U={name:"SeaMonkey",seamonkey:a,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(U={name:"Firefox",firefox:a,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(U.firefoxos=a,U.osname="Firefox OS")):F?U={name:"Amazon Silk",silk:a,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?U={name:"PhantomJS",phantom:a,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?U={name:"SlimerJS",slimer:a,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?U={name:"BlackBerry",osname:"BlackBerry OS",blackberry:a,version:G||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:I?(U={name:"WebOS",osname:"WebOS",webos:a,version:G||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(U.touchpad=a)):/bada/i.test(s)?U={name:"Bada",osname:"Bada",bada:a,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:S?U={name:"Tizen",osname:"Tizen",tizen:a,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(s)?U={name:"QupZilla",qupzilla:a,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(s)?U={name:"Chromium",chromium:a,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(s)?U={name:"Chrome",chrome:a,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:m?U={name:"Android",version:G}:/safari|applewebkit/i.test(s)?(U={name:"Safari",safari:a},G&&(U.version=G)):p?(U={name:p=="iphone"?"iPhone":p=="ipad"?"iPad":"iPod"},G&&(U.version=G)):/googlebot/i.test(s)?U={name:"Googlebot",googlebot:a,version:l(/googlebot\/(\d+(\.\d+))/i)||G}:U={name:l(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!U.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(U.name=U.name||"Blink",U.blink=a):(U.name=U.name||"Webkit",U.webkit=a),!U.version&&G&&(U.version=G)):!U.opera&&/gecko\//i.test(s)&&(U.name=U.name||"Gecko",U.gecko=a,U.version=U.version||l(/gecko\/(\d+(\.\d+)?)/i)),!U.windowsphone&&(m||U.silk)?(U.android=a,U.osname="Android"):!U.windowsphone&&p?(U[p]=a,U.ios=a,U.osname="iOS"):V?(U.mac=a,U.osname="macOS"):Ae?(U.xbox=a,U.osname="Xbox"):N?(U.windows=a,U.osname="Windows"):H&&(U.linux=a,U.osname="Linux");function W(ue){switch(ue){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var le="";U.windows?le=W(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):U.windowsphone?le=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):U.mac?(le=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),le=le.replace(/[_\s]/g,".")):p?(le=l(/os (\d+([_\s]\d+)*) like mac os x/i),le=le.replace(/[_\s]/g,".")):m?le=l(/android[ \/-](\d+(\.\d+)*)/i):U.webos?le=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):U.blackberry?le=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):U.bada?le=l(/bada\/(\d+(\.\d+)*)/i):U.tizen&&(le=l(/tizen[\/\s](\d+(\.\d+)*)/i)),le&&(U.osversion=le);var he=!U.windows&&le.split(".")[0];return ee||_||p=="ipad"||m&&(he==3||he>=4&&!Z)||U.silk?U.tablet=a:(Z||p=="iphone"||p=="ipod"||m||v||U.blackberry||U.webos||U.bada)&&(U.mobile=a),U.msedge||U.msie&&U.version>=10||U.yandexbrowser&&U.version>=15||U.vivaldi&&U.version>=1||U.chrome&&U.version>=20||U.samsungBrowser&&U.version>=4||U.whale&&o([U.version,"1.0"])===1||U.mzbrowser&&o([U.version,"6.0"])===1||U.focus&&o([U.version,"1.0"])===1||U.firefox&&U.version>=20||U.safari&&U.version>=6||U.opera&&U.version>=10||U.ios&&U.osversion&&U.osversion.split(".")[0]>=6||U.blackberry&&U.version>=10.1||U.chromium&&U.version>=20?U.a=a:U.msie&&U.version<10||U.chrome&&U.version<20||U.firefox&&U.version<20||U.safari&&U.version<6||U.opera&&U.version<10||U.ios&&U.osversion&&U.osversion.split(".")[0]<6||U.chromium&&U.version<20?U.c=a:U.x=a,U}var A=u(typeof navigator!="undefined"&&navigator.userAgent||"");A.test=function(s){for(var l=0;l<s.length;++l){var d=s[l];if(typeof d=="string"&&d in A)return!0}return!1};function c(s){return s.split(".").length}function h(s,l){var d=[],p;if(Array.prototype.map)return Array.prototype.map.call(s,l);for(p=0;p<s.length;p++)d.push(l(s[p]));return d}function o(s){for(var l=Math.max(c(s[0]),c(s[1])),d=h(s,function(p){var g=l-c(p);return p=p+new Array(g+1).join(".0"),h(p.split("."),function(m){return new Array(20-m.length).join("0")+m}).reverse()});--l>=0;){if(d[0][l]>d[1][l])return 1;if(d[0][l]===d[1][l]){if(l===0)return 0}else return-1}}function n(s,l,d){var p=A;typeof l=="string"&&(d=l,l=void 0),l===void 0&&(l=!1),d&&(p=u(d));var g=""+p.version;for(var m in s)if(s.hasOwnProperty(m)&&p[m]){if(typeof s[m]!="string")throw new Error("Browser version in the minVersion map should be a string: "+m+": "+String(s));return o([g,s[m]])<0}return l}function r(s,l,d){return!n(s,l,d)}return A.isUnsupportedBrowser=n,A.compareVersions=o,A.check=r,A._detect=u,A.detect=u,A})},{}],89:[function(t,C,b){},{}],90:[function(t,C,b){(function(a){(function(){"use strict";var u=t("base64-js"),A=t("ieee754");b.Buffer=n,b.SlowBuffer=O,b.INSPECT_MAX_BYTES=50;var c=2147483647;b.kMaxLength=c,n.TYPED_ARRAY_SUPPORT=h(),!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42}catch(Y){return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function o(z){if(z>c)throw new RangeError('The value "'+z+'" is invalid for option "size"');var Y=new Uint8Array(z);return Y.__proto__=n.prototype,Y}function n(z,Y,re){if(typeof z=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(z)}return r(z,Y,re)}typeof Symbol!="undefined"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192;function r(z,Y,re){if(typeof z=="string")return p(z,Y);if(ArrayBuffer.isView(z))return g(z);if(z==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(ne(z,ArrayBuffer)||z&&ne(z.buffer,ArrayBuffer))return m(z,Y,re);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ge=z.valueOf&&z.valueOf();if(ge!=null&&ge!==z)return n.from(ge,Y,re);var Be=v(z);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return n.from(z[Symbol.toPrimitive]("string"),Y,re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}n.from=function(z,Y,re){return r(z,Y,re)},n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array;function s(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function l(z,Y,re){return s(z),z<=0?o(z):Y!==void 0?typeof re=="string"?o(z).fill(Y,re):o(z).fill(Y):o(z)}n.alloc=function(z,Y,re){return l(z,Y,re)};function d(z){return s(z),o(z<0?0:_(z)|0)}n.allocUnsafe=function(z){return d(z)},n.allocUnsafeSlow=function(z){return d(z)};function p(z,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!n.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var re=F(z,Y)|0,ge=o(re),Be=ge.write(z,Y);return Be!==re&&(ge=ge.slice(0,Be)),ge}function g(z){for(var Y=z.length<0?0:_(z.length)|0,re=o(Y),ge=0;ge<Y;ge+=1)re[ge]=z[ge]&255;return re}function m(z,Y,re){if(Y<0||z.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(z.byteLength<Y+(re||0))throw new RangeError('"length" is outside of buffer bounds');var ge;return Y===void 0&&re===void 0?ge=new Uint8Array(z):re===void 0?ge=new Uint8Array(z,Y):ge=new Uint8Array(z,Y,re),ge.__proto__=n.prototype,ge}function v(z){if(n.isBuffer(z)){var Y=_(z.length)|0,re=o(Y);return re.length===0||z.copy(re,0,0,Y),re}if(z.length!==void 0)return typeof z.length!="number"||Q(z.length)?o(0):g(z);if(z.type==="Buffer"&&Array.isArray(z.data))return g(z.data)}function _(z){if(z>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return z|0}function O(z){return+z!=z&&(z=0),n.alloc(+z)}n.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==n.prototype},n.compare=function(Y,re){if(ne(Y,Uint8Array)&&(Y=n.from(Y,Y.offset,Y.byteLength)),ne(re,Uint8Array)&&(re=n.from(re,re.offset,re.byteLength)),!n.isBuffer(Y)||!n.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===re)return 0;for(var ge=Y.length,Be=re.length,Oe=0,Le=Math.min(ge,Be);Oe<Le;++Oe)if(Y[Oe]!==re[Oe]){ge=Y[Oe],Be=re[Oe];break}return ge<Be?-1:Be<ge?1:0},n.isEncoding=function(Y){switch(String(Y).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}},n.concat=function(Y,re){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return n.alloc(0);var ge;if(re===void 0)for(re=0,ge=0;ge<Y.length;++ge)re+=Y[ge].length;var Be=n.allocUnsafe(re),Oe=0;for(ge=0;ge<Y.length;++ge){var Le=Y[ge];if(ne(Le,Uint8Array)&&(Le=n.from(Le)),!n.isBuffer(Le))throw new TypeError('"list" argument must be an Array of Buffers');Le.copy(Be,Oe),Oe+=Le.length}return Be};function F(z,Y){if(n.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||ne(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);var re=z.length,ge=arguments.length>2&&arguments[2]===!0;if(!ge&&re===0)return 0;for(var Be=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return re;case"utf8":case"utf-8":return te(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re*2;case"hex":return re>>>1;case"base64":return k(z).length;default:if(Be)return ge?-1:te(z).length;Y=(""+Y).toLowerCase(),Be=!0}}n.byteLength=F;function T(z,Y,re){var ge=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((re===void 0||re>this.length)&&(re=this.length),re<=0)||(re>>>=0,Y>>>=0,re<=Y))return"";for(z||(z="utf8");;)switch(z){case"hex":return he(this,Y,re);case"utf8":case"utf-8":return Z(this,Y,re);case"ascii":return W(this,Y,re);case"latin1":case"binary":return le(this,Y,re);case"base64":return ee(this,Y,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,Y,re);default:if(ge)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),ge=!0}}n.prototype._isBuffer=!0;function S(z,Y,re){var ge=z[Y];z[Y]=z[re],z[re]=ge}n.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var re=0;re<Y;re+=2)S(this,re,re+1);return this},n.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var re=0;re<Y;re+=4)S(this,re,re+3),S(this,re+1,re+2);return this},n.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var re=0;re<Y;re+=8)S(this,re,re+7),S(this,re+1,re+6),S(this,re+2,re+5),S(this,re+3,re+4);return this},n.prototype.toString=function(){var Y=this.length;return Y===0?"":arguments.length===0?Z(this,0,Y):T.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(Y){if(!n.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:n.compare(this,Y)===0},n.prototype.inspect=function(){var Y="",re=b.INSPECT_MAX_BYTES;return Y=this.toString("hex",0,re).replace(/(.{2})/g,"$1 ").trim(),this.length>re&&(Y+=" ... "),"<Buffer "+Y+">"},n.prototype.compare=function(Y,re,ge,Be,Oe){if(ne(Y,Uint8Array)&&(Y=n.from(Y,Y.offset,Y.byteLength)),!n.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(re===void 0&&(re=0),ge===void 0&&(ge=Y?Y.length:0),Be===void 0&&(Be=0),Oe===void 0&&(Oe=this.length),re<0||ge>Y.length||Be<0||Oe>this.length)throw new RangeError("out of range index");if(Be>=Oe&&re>=ge)return 0;if(Be>=Oe)return-1;if(re>=ge)return 1;if(re>>>=0,ge>>>=0,Be>>>=0,Oe>>>=0,this===Y)return 0;for(var Le=Oe-Be,Pe=ge-re,$e=Math.min(Le,Pe),Ke=this.slice(Be,Oe),Ne=Y.slice(re,ge),Ue=0;Ue<$e;++Ue)if(Ke[Ue]!==Ne[Ue]){Le=Ke[Ue],Pe=Ne[Ue];break}return Le<Pe?-1:Pe<Le?1:0};function I(z,Y,re,ge,Be){if(z.length===0)return-1;if(typeof re=="string"?(ge=re,re=0):re>2147483647?re=2147483647:re<-2147483648&&(re=-2147483648),re=+re,Q(re)&&(re=Be?0:z.length-1),re<0&&(re=z.length+re),re>=z.length){if(Be)return-1;re=z.length-1}else if(re<0)if(Be)re=0;else return-1;if(typeof Y=="string"&&(Y=n.from(Y,ge)),n.isBuffer(Y))return Y.length===0?-1:E(z,Y,re,ge,Be);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(z,Y,re):Uint8Array.prototype.lastIndexOf.call(z,Y,re):E(z,[Y],re,ge,Be);throw new TypeError("val must be string, number or Buffer")}function E(z,Y,re,ge,Be){var Oe=1,Le=z.length,Pe=Y.length;if(ge!==void 0&&(ge=String(ge).toLowerCase(),ge==="ucs2"||ge==="ucs-2"||ge==="utf16le"||ge==="utf-16le")){if(z.length<2||Y.length<2)return-1;Oe=2,Le/=2,Pe/=2,re/=2}function $e(ze,Xe){return Oe===1?ze[Xe]:ze.readUInt16BE(Xe*Oe)}var Ke;if(Be){var Ne=-1;for(Ke=re;Ke<Le;Ke++)if($e(z,Ke)===$e(Y,Ne===-1?0:Ke-Ne)){if(Ne===-1&&(Ne=Ke),Ke-Ne+1===Pe)return Ne*Oe}else Ne!==-1&&(Ke-=Ke-Ne),Ne=-1}else for(re+Pe>Le&&(re=Le-Pe),Ke=re;Ke>=0;Ke--){for(var Ue=!0,Ye=0;Ye<Pe;Ye++)if($e(z,Ke+Ye)!==$e(Y,Ye)){Ue=!1;break}if(Ue)return Ke}return-1}n.prototype.includes=function(Y,re,ge){return this.indexOf(Y,re,ge)!==-1},n.prototype.indexOf=function(Y,re,ge){return I(this,Y,re,ge,!0)},n.prototype.lastIndexOf=function(Y,re,ge){return I(this,Y,re,ge,!1)};function M(z,Y,re,ge){re=Number(re)||0;var Be=z.length-re;ge?(ge=Number(ge),ge>Be&&(ge=Be)):ge=Be;var Oe=Y.length;ge>Oe/2&&(ge=Oe/2);for(var Le=0;Le<ge;++Le){var Pe=parseInt(Y.substr(Le*2,2),16);if(Q(Pe))return Le;z[re+Le]=Pe}return Le}function N(z,Y,re,ge){return q(te(Y,z.length-re),z,re,ge)}function V(z,Y,re,ge){return q($(Y),z,re,ge)}function H(z,Y,re,ge){return V(z,Y,re,ge)}function X(z,Y,re,ge){return q(k(Y),z,re,ge)}function G(z,Y,re,ge){return q(B(Y,z.length-re),z,re,ge)}n.prototype.write=function(Y,re,ge,Be){if(re===void 0)Be="utf8",ge=this.length,re=0;else if(ge===void 0&&typeof re=="string")Be=re,ge=this.length,re=0;else if(isFinite(re))re=re>>>0,isFinite(ge)?(ge=ge>>>0,Be===void 0&&(Be="utf8")):(Be=ge,ge=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Oe=this.length-re;if((ge===void 0||ge>Oe)&&(ge=Oe),Y.length>0&&(ge<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var Le=!1;;)switch(Be){case"hex":return M(this,Y,re,ge);case"utf8":case"utf-8":return N(this,Y,re,ge);case"ascii":return V(this,Y,re,ge);case"latin1":case"binary":return H(this,Y,re,ge);case"base64":return X(this,Y,re,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,Y,re,ge);default:if(Le)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),Le=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(z,Y,re){return Y===0&&re===z.length?u.fromByteArray(z):u.fromByteArray(z.slice(Y,re))}function Z(z,Y,re){re=Math.min(z.length,re);for(var ge=[],Be=Y;Be<re;){var Oe=z[Be],Le=null,Pe=Oe>239?4:Oe>223?3:Oe>191?2:1;if(Be+Pe<=re){var $e,Ke,Ne,Ue;switch(Pe){case 1:Oe<128&&(Le=Oe);break;case 2:$e=z[Be+1],($e&192)===128&&(Ue=(Oe&31)<<6|$e&63,Ue>127&&(Le=Ue));break;case 3:$e=z[Be+1],Ke=z[Be+2],($e&192)===128&&(Ke&192)===128&&(Ue=(Oe&15)<<12|($e&63)<<6|Ke&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Le=Ue));break;case 4:$e=z[Be+1],Ke=z[Be+2],Ne=z[Be+3],($e&192)===128&&(Ke&192)===128&&(Ne&192)===128&&(Ue=(Oe&15)<<18|($e&63)<<12|(Ke&63)<<6|Ne&63,Ue>65535&&Ue<1114112&&(Le=Ue))}}Le===null?(Le=65533,Pe=1):Le>65535&&(Le-=65536,ge.push(Le>>>10&1023|55296),Le=56320|Le&1023),ge.push(Le),Be+=Pe}return U(ge)}var Ae=4096;function U(z){var Y=z.length;if(Y<=Ae)return String.fromCharCode.apply(String,z);for(var re="",ge=0;ge<Y;)re+=String.fromCharCode.apply(String,z.slice(ge,ge+=Ae));return re}function W(z,Y,re){var ge="";re=Math.min(z.length,re);for(var Be=Y;Be<re;++Be)ge+=String.fromCharCode(z[Be]&127);return ge}function le(z,Y,re){var ge="";re=Math.min(z.length,re);for(var Be=Y;Be<re;++Be)ge+=String.fromCharCode(z[Be]);return ge}function he(z,Y,re){var ge=z.length;(!Y||Y<0)&&(Y=0),(!re||re<0||re>ge)&&(re=ge);for(var Be="",Oe=Y;Oe<re;++Oe)Be+=me(z[Oe]);return Be}function ue(z,Y,re){for(var ge=z.slice(Y,re),Be="",Oe=0;Oe<ge.length;Oe+=2)Be+=String.fromCharCode(ge[Oe]+ge[Oe+1]*256);return Be}n.prototype.slice=function(Y,re){var ge=this.length;Y=~~Y,re=re===void 0?ge:~~re,Y<0?(Y+=ge,Y<0&&(Y=0)):Y>ge&&(Y=ge),re<0?(re+=ge,re<0&&(re=0)):re>ge&&(re=ge),re<Y&&(re=Y);var Be=this.subarray(Y,re);return Be.__proto__=n.prototype,Be};function pe(z,Y,re){if(z%1!==0||z<0)throw new RangeError("offset is not uint");if(z+Y>re)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUIntLE=function(Y,re,ge){Y=Y>>>0,re=re>>>0,ge||pe(Y,re,this.length);for(var Be=this[Y],Oe=1,Le=0;++Le<re&&(Oe*=256);)Be+=this[Y+Le]*Oe;return Be},n.prototype.readUIntBE=function(Y,re,ge){Y=Y>>>0,re=re>>>0,ge||pe(Y,re,this.length);for(var Be=this[Y+--re],Oe=1;re>0&&(Oe*=256);)Be+=this[Y+--re]*Oe;return Be},n.prototype.readUInt8=function(Y,re){return Y=Y>>>0,re||pe(Y,1,this.length),this[Y]},n.prototype.readUInt16LE=function(Y,re){return Y=Y>>>0,re||pe(Y,2,this.length),this[Y]|this[Y+1]<<8},n.prototype.readUInt16BE=function(Y,re){return Y=Y>>>0,re||pe(Y,2,this.length),this[Y]<<8|this[Y+1]},n.prototype.readUInt32LE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},n.prototype.readUInt32BE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},n.prototype.readIntLE=function(Y,re,ge){Y=Y>>>0,re=re>>>0,ge||pe(Y,re,this.length);for(var Be=this[Y],Oe=1,Le=0;++Le<re&&(Oe*=256);)Be+=this[Y+Le]*Oe;return Oe*=128,Be>=Oe&&(Be-=Math.pow(2,8*re)),Be},n.prototype.readIntBE=function(Y,re,ge){Y=Y>>>0,re=re>>>0,ge||pe(Y,re,this.length);for(var Be=re,Oe=1,Le=this[Y+--Be];Be>0&&(Oe*=256);)Le+=this[Y+--Be]*Oe;return Oe*=128,Le>=Oe&&(Le-=Math.pow(2,8*re)),Le},n.prototype.readInt8=function(Y,re){return Y=Y>>>0,re||pe(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},n.prototype.readInt16LE=function(Y,re){Y=Y>>>0,re||pe(Y,2,this.length);var ge=this[Y]|this[Y+1]<<8;return ge&32768?ge|4294901760:ge},n.prototype.readInt16BE=function(Y,re){Y=Y>>>0,re||pe(Y,2,this.length);var ge=this[Y+1]|this[Y]<<8;return ge&32768?ge|4294901760:ge},n.prototype.readInt32LE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},n.prototype.readInt32BE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},n.prototype.readFloatLE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),A.read(this,Y,!0,23,4)},n.prototype.readFloatBE=function(Y,re){return Y=Y>>>0,re||pe(Y,4,this.length),A.read(this,Y,!1,23,4)},n.prototype.readDoubleLE=function(Y,re){return Y=Y>>>0,re||pe(Y,8,this.length),A.read(this,Y,!0,52,8)},n.prototype.readDoubleBE=function(Y,re){return Y=Y>>>0,re||pe(Y,8,this.length),A.read(this,Y,!1,52,8)};function fe(z,Y,re,ge,Be,Oe){if(!n.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>Be||Y<Oe)throw new RangeError('"value" argument is out of bounds');if(re+ge>z.length)throw new RangeError("Index out of range")}n.prototype.writeUIntLE=function(Y,re,ge,Be){if(Y=+Y,re=re>>>0,ge=ge>>>0,!Be){var Oe=Math.pow(2,8*ge)-1;fe(this,Y,re,ge,Oe,0)}var Le=1,Pe=0;for(this[re]=Y&255;++Pe<ge&&(Le*=256);)this[re+Pe]=Y/Le&255;return re+ge},n.prototype.writeUIntBE=function(Y,re,ge,Be){if(Y=+Y,re=re>>>0,ge=ge>>>0,!Be){var Oe=Math.pow(2,8*ge)-1;fe(this,Y,re,ge,Oe,0)}var Le=ge-1,Pe=1;for(this[re+Le]=Y&255;--Le>=0&&(Pe*=256);)this[re+Le]=Y/Pe&255;return re+ge},n.prototype.writeUInt8=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,1,255,0),this[re]=Y&255,re+1},n.prototype.writeUInt16LE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,2,65535,0),this[re]=Y&255,this[re+1]=Y>>>8,re+2},n.prototype.writeUInt16BE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,2,65535,0),this[re]=Y>>>8,this[re+1]=Y&255,re+2},n.prototype.writeUInt32LE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,4,4294967295,0),this[re+3]=Y>>>24,this[re+2]=Y>>>16,this[re+1]=Y>>>8,this[re]=Y&255,re+4},n.prototype.writeUInt32BE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,4,4294967295,0),this[re]=Y>>>24,this[re+1]=Y>>>16,this[re+2]=Y>>>8,this[re+3]=Y&255,re+4},n.prototype.writeIntLE=function(Y,re,ge,Be){if(Y=+Y,re=re>>>0,!Be){var Oe=Math.pow(2,8*ge-1);fe(this,Y,re,ge,Oe-1,-Oe)}var Le=0,Pe=1,$e=0;for(this[re]=Y&255;++Le<ge&&(Pe*=256);)Y<0&&$e===0&&this[re+Le-1]!==0&&($e=1),this[re+Le]=(Y/Pe>>0)-$e&255;return re+ge},n.prototype.writeIntBE=function(Y,re,ge,Be){if(Y=+Y,re=re>>>0,!Be){var Oe=Math.pow(2,8*ge-1);fe(this,Y,re,ge,Oe-1,-Oe)}var Le=ge-1,Pe=1,$e=0;for(this[re+Le]=Y&255;--Le>=0&&(Pe*=256);)Y<0&&$e===0&&this[re+Le+1]!==0&&($e=1),this[re+Le]=(Y/Pe>>0)-$e&255;return re+ge},n.prototype.writeInt8=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,1,127,-128),Y<0&&(Y=255+Y+1),this[re]=Y&255,re+1},n.prototype.writeInt16LE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,2,32767,-32768),this[re]=Y&255,this[re+1]=Y>>>8,re+2},n.prototype.writeInt16BE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,2,32767,-32768),this[re]=Y>>>8,this[re+1]=Y&255,re+2},n.prototype.writeInt32LE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,4,2147483647,-2147483648),this[re]=Y&255,this[re+1]=Y>>>8,this[re+2]=Y>>>16,this[re+3]=Y>>>24,re+4},n.prototype.writeInt32BE=function(Y,re,ge){return Y=+Y,re=re>>>0,ge||fe(this,Y,re,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[re]=Y>>>24,this[re+1]=Y>>>16,this[re+2]=Y>>>8,this[re+3]=Y&255,re+4};function ce(z,Y,re,ge,Be,Oe){if(re+ge>z.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("Index out of range")}function be(z,Y,re,ge,Be){return Y=+Y,re=re>>>0,Be||ce(z,Y,re,4,34028234663852886e22,-34028234663852886e22),A.write(z,Y,re,ge,23,4),re+4}n.prototype.writeFloatLE=function(Y,re,ge){return be(this,Y,re,!0,ge)},n.prototype.writeFloatBE=function(Y,re,ge){return be(this,Y,re,!1,ge)};function Ce(z,Y,re,ge,Be){return Y=+Y,re=re>>>0,Be||ce(z,Y,re,8,17976931348623157e292,-17976931348623157e292),A.write(z,Y,re,ge,52,8),re+8}n.prototype.writeDoubleLE=function(Y,re,ge){return Ce(this,Y,re,!0,ge)},n.prototype.writeDoubleBE=function(Y,re,ge){return Ce(this,Y,re,!1,ge)},n.prototype.copy=function(Y,re,ge,Be){if(!n.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(ge||(ge=0),!Be&&Be!==0&&(Be=this.length),re>=Y.length&&(re=Y.length),re||(re=0),Be>0&&Be<ge&&(Be=ge),Be===ge||Y.length===0||this.length===0)return 0;if(re<0)throw new RangeError("targetStart out of bounds");if(ge<0||ge>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),Y.length-re<Be-ge&&(Be=Y.length-re+ge);var Oe=Be-ge;if(this===Y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(re,ge,Be);else if(this===Y&&ge<re&&re<Be)for(var Le=Oe-1;Le>=0;--Le)Y[Le+re]=this[Le+ge];else Uint8Array.prototype.set.call(Y,this.subarray(ge,Be),re);return Oe},n.prototype.fill=function(Y,re,ge,Be){if(typeof Y=="string"){if(typeof re=="string"?(Be=re,re=0,ge=this.length):typeof ge=="string"&&(Be=ge,ge=this.length),Be!==void 0&&typeof Be!="string")throw new TypeError("encoding must be a string");if(typeof Be=="string"&&!n.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(Y.length===1){var Oe=Y.charCodeAt(0);(Be==="utf8"&&Oe<128||Be==="latin1")&&(Y=Oe)}}else typeof Y=="number"&&(Y=Y&255);if(re<0||this.length<re||this.length<ge)throw new RangeError("Out of range index");if(ge<=re)return this;re=re>>>0,ge=ge===void 0?this.length:ge>>>0,Y||(Y=0);var Le;if(typeof Y=="number")for(Le=re;Le<ge;++Le)this[Le]=Y;else{var Pe=n.isBuffer(Y)?Y:n.from(Y,Be),$e=Pe.length;if($e===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(Le=0;Le<ge-re;++Le)this[Le+re]=Pe[Le%$e]}return this};var xe=/[^+/0-9A-Za-z-_]/g;function Se(z){if(z=z.split("=")[0],z=z.trim().replace(xe,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function me(z){return z<16?"0"+z.toString(16):z.toString(16)}function te(z,Y){Y=Y||1/0;for(var re,ge=z.length,Be=null,Oe=[],Le=0;Le<ge;++Le){if(re=z.charCodeAt(Le),re>55295&&re<57344){if(!Be){if(re>56319){(Y-=3)>-1&&Oe.push(239,191,189);continue}else if(Le+1===ge){(Y-=3)>-1&&Oe.push(239,191,189);continue}Be=re;continue}if(re<56320){(Y-=3)>-1&&Oe.push(239,191,189),Be=re;continue}re=(Be-55296<<10|re-56320)+65536}else Be&&(Y-=3)>-1&&Oe.push(239,191,189);if(Be=null,re<128){if((Y-=1)<0)break;Oe.push(re)}else if(re<2048){if((Y-=2)<0)break;Oe.push(re>>6|192,re&63|128)}else if(re<65536){if((Y-=3)<0)break;Oe.push(re>>12|224,re>>6&63|128,re&63|128)}else if(re<1114112){if((Y-=4)<0)break;Oe.push(re>>18|240,re>>12&63|128,re>>6&63|128,re&63|128)}else throw new Error("Invalid code point")}return Oe}function $(z){for(var Y=[],re=0;re<z.length;++re)Y.push(z.charCodeAt(re)&255);return Y}function B(z,Y){for(var re,ge,Be,Oe=[],Le=0;Le<z.length&&!((Y-=2)<0);++Le)re=z.charCodeAt(Le),ge=re>>8,Be=re%256,Oe.push(Be),Oe.push(ge);return Oe}function k(z){return u.toByteArray(Se(z))}function q(z,Y,re,ge){for(var Be=0;Be<ge&&!(Be+re>=Y.length||Be>=z.length);++Be)Y[Be+re]=z[Be];return Be}function ne(z,Y){return z instanceof Y||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===Y.name}function Q(z){return z!==z}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(t,C,b){C.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"}},{}],92:[function(t,C,b){"use strict";var a=t("get-intrinsic"),u=t("./"),A=u(a("String.prototype.indexOf"));C.exports=function(h,o){var n=a(h,!!o);return typeof n=="function"&&A(h,".prototype.")>-1?u(n):n}},{"./":93,"get-intrinsic":348}],93:[function(t,C,b){"use strict";var a=t("function-bind"),u=t("get-intrinsic"),A=u("%Function.prototype.apply%"),c=u("%Function.prototype.call%"),h=u("%Reflect.apply%",!0)||a.call(c,A),o=u("%Object.getOwnPropertyDescriptor%",!0),n=u("%Object.defineProperty%",!0),r=u("%Math.max%");if(n)try{n({},"a",{value:1})}catch(l){n=null}C.exports=function(d){var p=h(a,c,arguments);if(o&&n){var g=o(p,"length");g.configurable&&n(p,"length",{value:1+r(0,d.length-(arguments.length-1))})}return p};var s=function(){return h(a,A,arguments)};n?n(C.exports,"apply",{value:s}):C.exports.apply=s},{"function-bind":347,"get-intrinsic":348}],94:[function(t,C,b){"use strict";var a=Array.prototype.slice;C.exports=u;function u(c,h){if(!(this instanceof u))return new u(c,h);this.src=c,this._withAccess=h}u.prototype.withAccess=function(c){return this._withAccess=c!==!1,this},u.prototype.pick=function(c){return Array.isArray(c)||(c=a.call(arguments)),c.length&&(this.keys=c),this},u.prototype.to=function(c){if(c=c||{},!this.src)return c;var h=this.keys||Object.keys(this.src);if(!this._withAccess){for(var o=0;o<h.length;o++)n=h[o],c[n]===void 0&&(c[n]=this.src[n]);return c}for(var o=0;o<h.length;o++){var n=h[o];if(A(c,n)){var r=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);r&&c.__defineGetter__(n,r),s&&c.__defineSetter__(n,s),!r&&!s&&(c[n]=this.src[n])}}return c},u.prototype.toCover=function(c){for(var h=this.keys||Object.keys(this.src),o=0;o<h.length;o++){var n=h[o];delete c[n];var r=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);r&&c.__defineGetter__(n,r),s&&c.__defineSetter__(n,s),!r&&!s&&(c[n]=this.src[n])}},u.prototype.override=u.prototype.toCover,u.prototype.and=function(c){var h={};return this.to(h),this.src=c,this.to(h),this.src=h,this};function A(c,h){return c[h]===void 0&&c.__lookupGetter__(h)===void 0&&c.__lookupSetter__(h)===void 0}},{}],95:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-callable"),A=t("../internals/try-to-string"),c=a.TypeError;C.exports=function(h){if(u(h))return h;throw c(A(h)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-constructor"),A=t("../internals/try-to-string"),c=a.TypeError;C.exports=function(h){if(u(h))return h;throw c(A(h)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-callable"),A=a.String,c=a.TypeError;C.exports=function(h){if(typeof h=="object"||u(h))return h;throw c("Can't set "+A(h)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(t,C,b){var a=t("../internals/well-known-symbol"),u=t("../internals/object-create"),A=t("../internals/object-define-property"),c=a("unscopables"),h=Array.prototype;h[c]==null&&A.f(h,c,{configurable:!0,value:u(null)}),C.exports=function(o){h[c][o]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(t,C,b){"use strict";var a=t("../internals/string-multibyte").charAt;C.exports=function(u,A,c){return A+(c?a(u,A).length:1)}},{"../internals/string-multibyte":239}],100:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/object-is-prototype-of"),A=a.TypeError;C.exports=function(c,h){if(u(h,c))return c;throw A("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-object"),A=a.String,c=a.TypeError;C.exports=function(h){if(u(h))return h;throw c(A(h)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(t,C,b){C.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-native"),u=t("../internals/descriptors"),A=t("../internals/global"),c=t("../internals/is-callable"),h=t("../internals/is-object"),o=t("../internals/has-own-property"),n=t("../internals/classof"),r=t("../internals/try-to-string"),s=t("../internals/create-non-enumerable-property"),l=t("../internals/redefine"),d=t("../internals/object-define-property").f,p=t("../internals/object-is-prototype-of"),g=t("../internals/object-get-prototype-of"),m=t("../internals/object-set-prototype-of"),v=t("../internals/well-known-symbol"),_=t("../internals/uid"),O=A.Int8Array,F=O&&O.prototype,T=A.Uint8ClampedArray,S=T&&T.prototype,I=O&&g(O),E=F&&g(F),M=Object.prototype,N=A.TypeError,V=v("toStringTag"),H=_("TYPED_ARRAY_TAG"),X=_("TYPED_ARRAY_CONSTRUCTOR"),G=a&&!!m&&n(A.opera)!=="Opera",ee=!1,Z,Ae,U,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},le={BigInt64Array:8,BigUint64Array:8},he=function(xe){if(!h(xe))return!1;var Se=n(xe);return Se==="DataView"||o(W,Se)||o(le,Se)},ue=function(Ce){if(!h(Ce))return!1;var xe=n(Ce);return o(W,xe)||o(le,xe)},pe=function(Ce){if(ue(Ce))return Ce;throw N("Target is not a typed array")},fe=function(Ce){if(c(Ce)&&(!m||p(I,Ce)))return Ce;throw N(r(Ce)+" is not a typed array constructor")},ce=function(Ce,xe,Se,me){if(u){if(Se)for(var te in W){var $=A[te];if($&&o($.prototype,Ce))try{delete $.prototype[Ce]}catch(B){try{$.prototype[Ce]=xe}catch(k){}}}(!E[Ce]||Se)&&l(E,Ce,Se?xe:G&&F[Ce]||xe,me)}},be=function(Ce,xe,Se){var me,te;if(u){if(m){if(Se){for(me in W)if(te=A[me],te&&o(te,Ce))try{delete te[Ce]}catch($){}}if(!I[Ce]||Se)try{return l(I,Ce,Se?xe:G&&I[Ce]||xe)}catch($){}else return}for(me in W)te=A[me],te&&(!te[Ce]||Se)&&l(te,Ce,xe)}};for(Z in W)Ae=A[Z],U=Ae&&Ae.prototype,U?s(U,X,Ae):G=!1;for(Z in le)Ae=A[Z],U=Ae&&Ae.prototype,U&&s(U,X,Ae);if((!G||!c(I)||I===Function.prototype)&&(I=function(){throw N("Incorrect invocation")},G))for(Z in W)A[Z]&&m(A[Z],I);if((!G||!E||E===M)&&(E=I.prototype,G))for(Z in W)A[Z]&&m(A[Z].prototype,E);if(G&&g(S)!==E&&m(S,E),u&&!o(E,V)){ee=!0,d(E,V,{get:function(){return h(this)?this[H]:void 0}});for(Z in W)A[Z]&&s(A[Z],H,Z)}C.exports={NATIVE_ARRAY_BUFFER_VIEWS:G,TYPED_ARRAY_CONSTRUCTOR:X,TYPED_ARRAY_TAG:ee&&H,aTypedArray:pe,aTypedArrayConstructor:fe,exportTypedArrayMethod:ce,exportTypedArrayStaticMethod:be,isView:he,isTypedArray:ue,TypedArray:I,TypedArrayPrototype:E}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/function-uncurry-this"),A=t("../internals/descriptors"),c=t("../internals/array-buffer-native"),h=t("../internals/function-name"),o=t("../internals/create-non-enumerable-property"),n=t("../internals/redefine-all"),r=t("../internals/fails"),s=t("../internals/an-instance"),l=t("../internals/to-integer-or-infinity"),d=t("../internals/to-length"),p=t("../internals/to-index"),g=t("../internals/ieee754"),m=t("../internals/object-get-prototype-of"),v=t("../internals/object-set-prototype-of"),_=t("../internals/object-get-own-property-names").f,O=t("../internals/object-define-property").f,F=t("../internals/array-fill"),T=t("../internals/array-slice-simple"),S=t("../internals/set-to-string-tag"),I=t("../internals/internal-state"),E=h.PROPER,M=h.CONFIGURABLE,N=I.get,V=I.set,H="ArrayBuffer",X="DataView",G="prototype",ee="Wrong length",Z="Wrong index",Ae=a[H],U=Ae,W=U&&U[G],le=a[X],he=le&&le[G],ue=Object.prototype,pe=a.Array,fe=a.RangeError,ce=u(F),be=u([].reverse),Ce=g.pack,xe=g.unpack,Se=function(Le){return[Le&255]},me=function(Le){return[Le&255,Le>>8&255]},te=function(Le){return[Le&255,Le>>8&255,Le>>16&255,Le>>24&255]},$=function(Le){return Le[3]<<24|Le[2]<<16|Le[1]<<8|Le[0]},B=function(Le){return Ce(Le,23,4)},k=function(Le){return Ce(Le,52,8)},q=function(Le,Pe){O(Le[G],Pe,{get:function(){return N(this)[Pe]}})},ne=function(Le,Pe,$e,Ke){var Ne=p($e),Ue=N(Le);if(Ne+Pe>Ue.byteLength)throw fe(Z);var Ye=N(Ue.buffer).bytes,ze=Ne+Ue.byteOffset,Xe=T(Ye,ze,ze+Pe);return Ke?Xe:be(Xe)},Q=function(Le,Pe,$e,Ke,Ne,Ue){var Ye=p($e),ze=N(Le);if(Ye+Pe>ze.byteLength)throw fe(Z);for(var Xe=N(ze.buffer).bytes,qe=Ye+ze.byteOffset,Qe=Ke(+Ne),He=0;He<Pe;He++)Xe[qe+He]=Qe[Ue?He:Pe-He-1]};if(!c)U=function(Pe){s(this,W);var $e=p(Pe);V(this,{bytes:ce(pe($e),0),byteLength:$e}),A||(this.byteLength=$e)},W=U[G],le=function(Pe,$e,Ke){s(this,he),s(Pe,W);var Ne=N(Pe).byteLength,Ue=l($e);if(Ue<0||Ue>Ne)throw fe("Wrong offset");if(Ke=Ke===void 0?Ne-Ue:d(Ke),Ue+Ke>Ne)throw fe(ee);V(this,{buffer:Pe,byteLength:Ke,byteOffset:Ue}),A||(this.buffer=Pe,this.byteLength=Ke,this.byteOffset=Ue)},he=le[G],A&&(q(U,"byteLength"),q(le,"buffer"),q(le,"byteLength"),q(le,"byteOffset")),n(he,{getInt8:function(Pe){return ne(this,1,Pe)[0]<<24>>24},getUint8:function(Pe){return ne(this,1,Pe)[0]},getInt16:function(Pe){var $e=ne(this,2,Pe,arguments.length>1?arguments[1]:void 0);return($e[1]<<8|$e[0])<<16>>16},getUint16:function(Pe){var $e=ne(this,2,Pe,arguments.length>1?arguments[1]:void 0);return $e[1]<<8|$e[0]},getInt32:function(Pe){return $(ne(this,4,Pe,arguments.length>1?arguments[1]:void 0))},getUint32:function(Pe){return $(ne(this,4,Pe,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Pe){return xe(ne(this,4,Pe,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Pe){return xe(ne(this,8,Pe,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Pe,$e){Q(this,1,Pe,Se,$e)},setUint8:function(Pe,$e){Q(this,1,Pe,Se,$e)},setInt16:function(Pe,$e){Q(this,2,Pe,me,$e,arguments.length>2?arguments[2]:void 0)},setUint16:function(Pe,$e){Q(this,2,Pe,me,$e,arguments.length>2?arguments[2]:void 0)},setInt32:function(Pe,$e){Q(this,4,Pe,te,$e,arguments.length>2?arguments[2]:void 0)},setUint32:function(Pe,$e){Q(this,4,Pe,te,$e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Pe,$e){Q(this,4,Pe,B,$e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Pe,$e){Q(this,8,Pe,k,$e,arguments.length>2?arguments[2]:void 0)}});else{var z=E&&Ae.name!==H;if(!r(function(){Ae(1)})||!r(function(){new Ae(-1)})||r(function(){return new Ae,new Ae(1.5),new Ae(NaN),z&&!M})){U=function(Pe){return s(this,W),new Ae(p(Pe))},U[G]=W;for(var Y=_(Ae),re=0,ge;Y.length>re;)(ge=Y[re++])in U||o(U,ge,Ae[ge]);W.constructor=U}else z&&M&&o(Ae,"name",H);v&&m(he)!==ue&&v(he,ue);var Be=new le(new U(2)),Oe=u(he.setInt8);Be.setInt8(0,2147483648),Be.setInt8(1,2147483649),(Be.getInt8(0)||!Be.getInt8(1))&&n(he,{setInt8:function(Pe,$e){Oe(this,Pe,$e<<24>>24)},setUint8:function(Pe,$e){Oe(this,Pe,$e<<24>>24)}},{unsafe:!0})}S(U,H),S(le,X),C.exports={ArrayBuffer:U,DataView:le}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(t,C,b){"use strict";var a=t("../internals/to-object"),u=t("../internals/to-absolute-index"),A=t("../internals/length-of-array-like"),c=Math.min;C.exports=[].copyWithin||function(o,n){var r=a(this),s=A(r),l=u(o,s),d=u(n,s),p=arguments.length>2?arguments[2]:void 0,g=c((p===void 0?s:u(p,s))-d,s-l),m=1;for(d<l&&l<d+g&&(m=-1,d+=g-1,l+=g-1);g-- >0;)d in r?r[l]=r[d]:delete r[l],l+=m,d+=m;return r}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(t,C,b){"use strict";var a=t("../internals/to-object"),u=t("../internals/to-absolute-index"),A=t("../internals/length-of-array-like");C.exports=function(h){for(var o=a(this),n=A(o),r=arguments.length,s=u(r>1?arguments[1]:void 0,n),l=r>2?arguments[2]:void 0,d=l===void 0?n:u(l,n);d>s;)o[s++]=h;return o}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(t,C,b){"use strict";var a=t("../internals/array-iteration").forEach,u=t("../internals/array-method-is-strict"),A=u("forEach");C.exports=A?[].forEach:function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(t,C,b){var a=t("../internals/length-of-array-like");C.exports=function(u,A){for(var c=0,h=a(A),o=new u(h);h>c;)o[c]=A[c++];return o}},{"../internals/length-of-array-like":188}],109:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/function-bind-context"),A=t("../internals/function-call"),c=t("../internals/to-object"),h=t("../internals/call-with-safe-iteration-closing"),o=t("../internals/is-array-iterator-method"),n=t("../internals/is-constructor"),r=t("../internals/length-of-array-like"),s=t("../internals/create-property"),l=t("../internals/get-iterator"),d=t("../internals/get-iterator-method"),p=a.Array;C.exports=function(m){var v=c(m),_=n(this),O=arguments.length,F=O>1?arguments[1]:void 0,T=F!==void 0;T&&(F=u(F,O>2?arguments[2]:void 0));var S=d(v),I=0,E,M,N,V,H,X;if(S&&!(this==p&&o(S)))for(V=l(v,S),H=V.next,M=_?new this:[];!(N=A(H,V)).done;I++)X=T?h(V,F,[N.value,I],!0):N.value,s(M,I,X);else for(E=r(v),M=_?new this(E):p(E);E>I;I++)X=T?F(v[I],I):v[I],s(M,I,X);return M.length=I,M}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(t,C,b){var a=t("../internals/to-indexed-object"),u=t("../internals/to-absolute-index"),A=t("../internals/length-of-array-like"),c=function(h){return function(o,n,r){var s=a(o),l=A(s),d=u(r,l),p;if(h&&n!=n){for(;l>d;)if(p=s[d++],p!=p)return!0}else for(;l>d;d++)if((h||d in s)&&s[d]===n)return h||d||0;return!h&&-1}};C.exports={includes:c(!0),indexOf:c(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(t,C,b){var a=t("../internals/function-bind-context"),u=t("../internals/function-uncurry-this"),A=t("../internals/indexed-object"),c=t("../internals/to-object"),h=t("../internals/length-of-array-like"),o=t("../internals/array-species-create"),n=u([].push),r=function(s){var l=s==1,d=s==2,p=s==3,g=s==4,m=s==6,v=s==7,_=s==5||m;return function(O,F,T,S){for(var I=c(O),E=A(I),M=a(F,T),N=h(E),V=0,H=S||o,X=l?H(O,N):d||v?H(O,0):void 0,G,ee;N>V;V++)if((_||V in E)&&(G=E[V],ee=M(G,V,I),s))if(l)X[V]=ee;else if(ee)switch(s){case 3:return!0;case 5:return G;case 6:return V;case 2:n(X,G)}else switch(s){case 4:return!1;case 7:n(X,G)}return m?-1:p||g?g:X}};C.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6),filterReject:r(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(t,C,b){"use strict";var a=t("../internals/function-apply"),u=t("../internals/to-indexed-object"),A=t("../internals/to-integer-or-infinity"),c=t("../internals/length-of-array-like"),h=t("../internals/array-method-is-strict"),o=Math.min,n=[].lastIndexOf,r=!!n&&1/[1].lastIndexOf(1,-0)<0,s=h("lastIndexOf"),l=r||!s;C.exports=l?function(p){if(r)return a(n,this,arguments)||0;var g=u(this),m=c(g),v=m-1;for(arguments.length>1&&(v=o(v,A(arguments[1]))),v<0&&(v=m+v);v>=0;v--)if(v in g&&g[v]===p)return v||0;return-1}:n},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(t,C,b){var a=t("../internals/fails"),u=t("../internals/well-known-symbol"),A=t("../internals/engine-v8-version"),c=u("species");C.exports=function(h){return A>=51||!a(function(){var o=[],n=o.constructor={};return n[c]=function(){return{foo:1}},o[h](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(t,C,b){"use strict";var a=t("../internals/fails");C.exports=function(u,A){var c=[][u];return!!c&&a(function(){c.call(null,A||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/a-callable"),A=t("../internals/to-object"),c=t("../internals/indexed-object"),h=t("../internals/length-of-array-like"),o=a.TypeError,n=function(r){return function(s,l,d,p){u(l);var g=A(s),m=c(g),v=h(g),_=r?v-1:0,O=r?-1:1;if(d<2)for(;;){if(_ in m){p=m[_],_+=O;break}if(_+=O,r?_<0:v<=_)throw o("Reduce of empty array with no initial value")}for(;r?_>=0:v>_;_+=O)_ in m&&(p=l(p,m[_],_,g));return p}};C.exports={left:n(!1),right:n(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/to-absolute-index"),A=t("../internals/length-of-array-like"),c=t("../internals/create-property"),h=a.Array,o=Math.max;C.exports=function(n,r,s){for(var l=A(n),d=u(r,l),p=u(s===void 0?l:s,l),g=h(o(p-d,0)),m=0;d<p;d++,m++)c(g,m,n[d]);return g.length=m,g}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(t,C,b){var a=t("../internals/function-uncurry-this");C.exports=a([].slice)},{"../internals/function-uncurry-this":157}],118:[function(t,C,b){var a=t("../internals/array-slice-simple"),u=Math.floor,A=function(o,n){var r=o.length,s=u(r/2);return r<8?c(o,n):h(o,A(a(o,0,s),n),A(a(o,s),n),n)},c=function(o,n){for(var r=o.length,s=1,l,d;s<r;){for(d=s,l=o[s];d&&n(o[d-1],l)>0;)o[d]=o[--d];d!==s++&&(o[d]=l)}return o},h=function(o,n,r,s){for(var l=n.length,d=r.length,p=0,g=0;p<l||g<d;)o[p+g]=p<l&&g<d?s(n[p],r[g])<=0?n[p++]:r[g++]:p<l?n[p++]:r[g++];return o};C.exports=A},{"../internals/array-slice-simple":116}],119:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-array"),A=t("../internals/is-constructor"),c=t("../internals/is-object"),h=t("../internals/well-known-symbol"),o=h("species"),n=a.Array;C.exports=function(r){var s;return u(r)&&(s=r.constructor,A(s)&&(s===n||u(s.prototype))?s=void 0:c(s)&&(s=s[o],s===null&&(s=void 0))),s===void 0?n:s}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(t,C,b){var a=t("../internals/array-species-constructor");C.exports=function(u,A){return new(a(u))(A===0?0:A)}},{"../internals/array-species-constructor":119}],121:[function(t,C,b){var a=t("../internals/an-object"),u=t("../internals/iterator-close");C.exports=function(A,c,h,o){try{return o?c(a(h)[0],h[1]):c(h)}catch(n){u(A,"throw",n)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(t,C,b){var a=t("../internals/well-known-symbol"),u=a("iterator"),A=!1;try{var c=0,h={next:function(){return{done:!!c++}},return:function(){A=!0}};h[u]=function(){return this},Array.from(h,function(){throw 2})}catch(o){}C.exports=function(o,n){if(!n&&!A)return!1;var r=!1;try{var s={};s[u]=function(){return{next:function(){return{done:r=!0}}}},o(s)}catch(l){}return r}},{"../internals/well-known-symbol":268}],123:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=a({}.toString),A=a("".slice);C.exports=function(c){return A(u(c),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/to-string-tag-support"),A=t("../internals/is-callable"),c=t("../internals/classof-raw"),h=t("../internals/well-known-symbol"),o=h("toStringTag"),n=a.Object,r=c(function(){return arguments}())=="Arguments",s=function(l,d){try{return l[d]}catch(p){}};C.exports=u?c:function(l){var d,p,g;return l===void 0?"Undefined":l===null?"Null":typeof(p=s(d=n(l),o))=="string"?p:r?c(d):(g=c(d))=="Object"&&A(d.callee)?"Arguments":g}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(t,C,b){var a=t("../internals/has-own-property"),u=t("../internals/own-keys"),A=t("../internals/object-get-own-property-descriptor"),c=t("../internals/object-define-property");C.exports=function(h,o,n){for(var r=u(o),s=c.f,l=A.f,d=0;d<r.length;d++){var p=r[d];!a(h,p)&&!(n&&a(n,p))&&s(h,p,l(o,p))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(t,C,b){var a=t("../internals/well-known-symbol"),u=a("match");C.exports=function(A){var c=/./;try{"/./"[A](c)}catch(h){try{return c[u]=!1,"/./"[A](c)}catch(o){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(t,C,b){var a=t("../internals/fails");C.exports=!a(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},{"../internals/fails":150}],128:[function(t,C,b){"use strict";var a=t("../internals/iterators-core").IteratorPrototype,u=t("../internals/object-create"),A=t("../internals/create-property-descriptor"),c=t("../internals/set-to-string-tag"),h=t("../internals/iterators"),o=function(){return this};C.exports=function(n,r,s,l){var d=r+" Iterator";return n.prototype=u(a,{next:A(+!l,s)}),c(n,d,!1,!0),h[d]=o,n}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/object-define-property"),A=t("../internals/create-property-descriptor");C.exports=a?function(c,h,o){return u.f(c,h,A(1,o))}:function(c,h,o){return c[h]=o,c}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(t,C,b){C.exports=function(a,u){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:u}}},{}],131:[function(t,C,b){"use strict";var a=t("../internals/to-property-key"),u=t("../internals/object-define-property"),A=t("../internals/create-property-descriptor");C.exports=function(c,h,o){var n=a(h);n in c?u.f(c,n,A(0,o)):c[n]=o}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-call"),A=t("../internals/is-pure"),c=t("../internals/function-name"),h=t("../internals/is-callable"),o=t("../internals/create-iterator-constructor"),n=t("../internals/object-get-prototype-of"),r=t("../internals/object-set-prototype-of"),s=t("../internals/set-to-string-tag"),l=t("../internals/create-non-enumerable-property"),d=t("../internals/redefine"),p=t("../internals/well-known-symbol"),g=t("../internals/iterators"),m=t("../internals/iterators-core"),v=c.PROPER,_=c.CONFIGURABLE,O=m.IteratorPrototype,F=m.BUGGY_SAFARI_ITERATORS,T=p("iterator"),S="keys",I="values",E="entries",M=function(){return this};C.exports=function(N,V,H,X,G,ee,Z){o(H,V,X);var Ae=function(Ce){if(Ce===G&&ue)return ue;if(!F&&Ce in le)return le[Ce];switch(Ce){case S:return function(){return new H(this,Ce)};case I:return function(){return new H(this,Ce)};case E:return function(){return new H(this,Ce)}}return function(){return new H(this)}},U=V+" Iterator",W=!1,le=N.prototype,he=le[T]||le["@@iterator"]||G&&le[G],ue=!F&&he||Ae(G),pe=V=="Array"&&le.entries||he,fe,ce,be;if(pe&&(fe=n(pe.call(new N)),fe!==Object.prototype&&fe.next&&(!A&&n(fe)!==O&&(r?r(fe,O):h(fe[T])||d(fe,T,M)),s(fe,U,!0,!0),A&&(g[U]=M))),v&&G==I&&he&&he.name!==I&&(!A&&_?l(le,"name",I):(W=!0,ue=function(){return u(he,this)})),G)if(ce={values:Ae(I),keys:ee?ue:Ae(S),entries:Ae(E)},Z)for(be in ce)(F||W||!(be in le))&&d(le,be,ce[be]);else a({target:V,proto:!0,forced:F||W},ce);return(!A||Z)&&le[T]!==ue&&d(le,T,ue,{name:G}),g[V]=ue,ce}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(t,C,b){var a=t("../internals/path"),u=t("../internals/has-own-property"),A=t("../internals/well-known-symbol-wrapped"),c=t("../internals/object-define-property").f;C.exports=function(h){var o=a.Symbol||(a.Symbol={});u(o,h)||c(o,h,{value:A.f(h)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(t,C,b){var a=t("../internals/fails");C.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-object"),A=a.document,c=u(A)&&u(A.createElement);C.exports=function(h){return c?A.createElement(h):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(t,C,b){C.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}},{}],137:[function(t,C,b){var a=t("../internals/document-create-element"),u=a("span").classList,A=u&&u.constructor&&u.constructor.prototype;C.exports=A===Object.prototype?void 0:A},{"../internals/document-create-element":135}],138:[function(t,C,b){var a=t("../internals/engine-user-agent"),u=a.match(/firefox\/(\d+)/i);C.exports=!!u&&+u[1]},{"../internals/engine-user-agent":145}],139:[function(t,C,b){C.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(t,C,b){var a=t("../internals/engine-user-agent");C.exports=/MSIE|Trident/.test(a)},{"../internals/engine-user-agent":145}],141:[function(t,C,b){var a=t("../internals/engine-user-agent"),u=t("../internals/global");C.exports=/ipad|iphone|ipod/i.test(a)&&u.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(t,C,b){var a=t("../internals/engine-user-agent");C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(a)},{"../internals/engine-user-agent":145}],143:[function(t,C,b){var a=t("../internals/classof-raw"),u=t("../internals/global");C.exports=a(u.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(t,C,b){var a=t("../internals/engine-user-agent");C.exports=/web0s(?!.*chrome)/i.test(a)},{"../internals/engine-user-agent":145}],145:[function(t,C,b){var a=t("../internals/get-built-in");C.exports=a("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/engine-user-agent"),A=a.process,c=a.Deno,h=A&&A.versions||c&&c.version,o=h&&h.v8,n,r;o&&(n=o.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&u&&(n=u.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),C.exports=r},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(t,C,b){var a=t("../internals/engine-user-agent"),u=a.match(/AppleWebKit\/(\d+)\./);C.exports=!!u&&+u[1]},{"../internals/engine-user-agent":145}],148:[function(t,C,b){C.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/object-get-own-property-descriptor").f,A=t("../internals/create-non-enumerable-property"),c=t("../internals/redefine"),h=t("../internals/set-global"),o=t("../internals/copy-constructor-properties"),n=t("../internals/is-forced");C.exports=function(r,s){var l=r.target,d=r.global,p=r.stat,g,m,v,_,O,F;if(d?m=a:p?m=a[l]||h(l,{}):m=(a[l]||{}).prototype,m)for(v in s){if(O=s[v],r.noTargetGet?(F=u(m,v),_=F&&F.value):_=m[v],g=n(d?v:l+(p?".":"#")+v,r.forced),!g&&_!==void 0){if(typeof O==typeof _)continue;o(O,_)}(r.sham||_&&_.sham)&&A(O,"sham",!0),c(m,v,O,r)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(t,C,b){C.exports=function(a){try{return!!a()}catch(u){return!0}}},{}],151:[function(t,C,b){"use strict";t("../modules/es.regexp.exec");var a=t("../internals/function-uncurry-this"),u=t("../internals/redefine"),A=t("../internals/regexp-exec"),c=t("../internals/fails"),h=t("../internals/well-known-symbol"),o=t("../internals/create-non-enumerable-property"),n=h("species"),r=RegExp.prototype;C.exports=function(s,l,d,p){var g=h(s),m=!c(function(){var F={};return F[g]=function(){return 7},""[s](F)!=7}),v=m&&!c(function(){var F=!1,T=/a/;return s==="split"&&(T={},T.constructor={},T.constructor[n]=function(){return T},T.flags="",T[g]=/./[g]),T.exec=function(){return F=!0,null},T[g](""),!F});if(!m||!v||d){var _=a(/./[g]),O=l(g,""[s],function(F,T,S,I,E){var M=a(F),N=T.exec;return N===A||N===r.exec?m&&!E?{done:!0,value:_(T,S,I)}:{done:!0,value:M(S,T,I)}:{done:!1}});u(String.prototype,s,O[0]),u(r,g,O[1])}p&&o(r[g],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(t,C,b){var a=t("../internals/function-bind-native"),u=Function.prototype,A=u.apply,c=u.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(a?c.bind(A):function(){return c.apply(A,arguments)})},{"../internals/function-bind-native":154}],153:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/a-callable"),A=t("../internals/function-bind-native"),c=a(a.bind);C.exports=function(h,o){return u(h),o===void 0?h:A?c(h,o):function(){return h.apply(o,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(t,C,b){var a=t("../internals/fails");C.exports=!a(function(){var u=function(){}.bind();return typeof u!="function"||u.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(t,C,b){var a=t("../internals/function-bind-native"),u=Function.prototype.call;C.exports=a?u.bind(u):function(){return u.apply(u,arguments)}},{"../internals/function-bind-native":154}],156:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/has-own-property"),A=Function.prototype,c=a&&Object.getOwnPropertyDescriptor,h=u(A,"name"),o=h&&function(){}.name==="something",n=h&&(!a||a&&c(A,"name").configurable);C.exports={EXISTS:h,PROPER:o,CONFIGURABLE:n}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(t,C,b){var a=t("../internals/function-bind-native"),u=Function.prototype,A=u.bind,c=u.call,h=a&&A.bind(c,c);C.exports=a?function(o){return o&&h(o)}:function(o){return o&&function(){return c.apply(o,arguments)}}},{"../internals/function-bind-native":154}],158:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-callable"),A=function(c){return u(c)?c:void 0};C.exports=function(c,h){return arguments.length<2?A(a[c]):a[c]&&a[c][h]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(t,C,b){var a=t("../internals/classof"),u=t("../internals/get-method"),A=t("../internals/iterators"),c=t("../internals/well-known-symbol"),h=c("iterator");C.exports=function(o){if(o!=null)return u(o,h)||u(o,"@@iterator")||A[a(o)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-call"),A=t("../internals/a-callable"),c=t("../internals/an-object"),h=t("../internals/try-to-string"),o=t("../internals/get-iterator-method"),n=a.TypeError;C.exports=function(r,s){var l=arguments.length<2?o(r):s;if(A(l))return c(u(l,r));throw n(h(r)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(t,C,b){var a=t("../internals/a-callable");C.exports=function(u,A){var c=u[A];return c==null?void 0:a(c)}},{"../internals/a-callable":95}],162:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/to-object"),A=Math.floor,c=a("".charAt),h=a("".replace),o=a("".slice),n=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r=/\$([$&'`]|\d{1,2})/g;C.exports=function(s,l,d,p,g,m){var v=d+s.length,_=p.length,O=r;return g!==void 0&&(g=u(g),O=n),h(m,O,function(F,T){var S;switch(c(T,0)){case"$":return"$";case"&":return s;case"`":return o(l,0,d);case"'":return o(l,v);case"<":S=g[o(T,1,-1)];break;default:var I=+T;if(I===0)return F;if(I>_){var E=A(I/10);return E===0?F:E<=_?p[E-1]===void 0?c(T,1):p[E-1]+c(T,1):F}S=p[I-1]}return S===void 0?"":S})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(t,C,b){(function(a){(function(){var u=function(A){return A&&A.Math==Math&&A};C.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof a=="object"&&a)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/to-object"),A=a({}.hasOwnProperty);C.exports=Object.hasOwn||function(h,o){return A(u(h),o)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(t,C,b){C.exports={}},{}],166:[function(t,C,b){var a=t("../internals/global");C.exports=function(u,A){var c=a.console;c&&c.error&&(arguments.length==1?c.error(u):c.error(u,A))}},{"../internals/global":163}],167:[function(t,C,b){var a=t("../internals/get-built-in");C.exports=a("document","documentElement")},{"../internals/get-built-in":158}],168:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/fails"),A=t("../internals/document-create-element");C.exports=!a&&!u(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(t,C,b){var a=t("../internals/global"),u=a.Array,A=Math.abs,c=Math.pow,h=Math.floor,o=Math.log,n=Math.LN2,r=function(l,d,p){var g=u(p),m=p*8-d-1,v=(1<<m)-1,_=v>>1,O=d===23?c(2,-24)-c(2,-77):0,F=l<0||l===0&&1/l<0?1:0,T=0,S,I,E;for(l=A(l),l!=l||l===1/0?(I=l!=l?1:0,S=v):(S=h(o(l)/n),E=c(2,-S),l*E<1&&(S--,E*=2),S+_>=1?l+=O/E:l+=O*c(2,1-_),l*E>=2&&(S++,E/=2),S+_>=v?(I=0,S=v):S+_>=1?(I=(l*E-1)*c(2,d),S=S+_):(I=l*c(2,_-1)*c(2,d),S=0));d>=8;)g[T++]=I&255,I/=256,d-=8;for(S=S<<d|I,m+=d;m>0;)g[T++]=S&255,S/=256,m-=8;return g[--T]|=F*128,g},s=function(l,d){var p=l.length,g=p*8-d-1,m=(1<<g)-1,v=m>>1,_=g-7,O=p-1,F=l[O--],T=F&127,S;for(F>>=7;_>0;)T=T*256+l[O--],_-=8;for(S=T&(1<<-_)-1,T>>=-_,_+=d;_>0;)S=S*256+l[O--],_-=8;if(T===0)T=1-v;else{if(T===m)return S?NaN:F?-1/0:1/0;S=S+c(2,d),T=T-v}return(F?-1:1)*S*c(2,T-d)};C.exports={pack:r,unpack:s}},{"../internals/global":163}],170:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-uncurry-this"),A=t("../internals/fails"),c=t("../internals/classof-raw"),h=a.Object,o=u("".split);C.exports=A(function(){return!h("z").propertyIsEnumerable(0)})?function(n){return c(n)=="String"?o(n,""):h(n)}:h},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(t,C,b){var a=t("../internals/is-callable"),u=t("../internals/is-object"),A=t("../internals/object-set-prototype-of");C.exports=function(c,h,o){var n,r;return A&&a(n=h.constructor)&&n!==o&&u(r=n.prototype)&&r!==o.prototype&&A(c,r),c}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/is-callable"),A=t("../internals/shared-store"),c=a(Function.toString);u(A.inspectSource)||(A.inspectSource=function(h){return c(h)}),C.exports=A.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(t,C,b){var a=t("../internals/native-weak-map"),u=t("../internals/global"),A=t("../internals/function-uncurry-this"),c=t("../internals/is-object"),h=t("../internals/create-non-enumerable-property"),o=t("../internals/has-own-property"),n=t("../internals/shared-store"),r=t("../internals/shared-key"),s=t("../internals/hidden-keys"),l="Object already initialized",d=u.TypeError,p=u.WeakMap,g,m,v,_=function(M){return v(M)?m(M):g(M,{})},O=function(M){return function(N){var V;if(!c(N)||(V=m(N)).type!==M)throw d("Incompatible receiver, "+M+" required");return V}};if(a||n.state){var F=n.state||(n.state=new p),T=A(F.get),S=A(F.has),I=A(F.set);g=function(M,N){if(S(F,M))throw new d(l);return N.facade=M,I(F,M,N),N},m=function(M){return T(F,M)||{}},v=function(M){return S(F,M)}}else{var E=r("state");s[E]=!0,g=function(M,N){if(o(M,E))throw new d(l);return N.facade=M,h(M,E,N),N},m=function(M){return o(M,E)?M[E]:{}},v=function(M){return o(M,E)}}C.exports={set:g,get:m,has:v,enforce:_,getterFor:O}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(t,C,b){var a=t("../internals/well-known-symbol"),u=t("../internals/iterators"),A=a("iterator"),c=Array.prototype;C.exports=function(h){return h!==void 0&&(u.Array===h||c[A]===h)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(t,C,b){var a=t("../internals/classof-raw");C.exports=Array.isArray||function(A){return a(A)=="Array"}},{"../internals/classof-raw":123}],176:[function(t,C,b){C.exports=function(a){return typeof a=="function"}},{}],177:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/fails"),A=t("../internals/is-callable"),c=t("../internals/classof"),h=t("../internals/get-built-in"),o=t("../internals/inspect-source"),n=function(){},r=[],s=h("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=a(l.exec),p=!l.exec(n),g=function(_){if(!A(_))return!1;try{return s(n,r,_),!0}catch(O){return!1}},m=function(_){if(!A(_))return!1;switch(c(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(l,o(_))}catch(O){return!0}};m.sham=!0,C.exports=!s||u(function(){var v;return g(g.call)||!g(Object)||!g(function(){v=!0})||v})?m:g},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(t,C,b){var a=t("../internals/fails"),u=t("../internals/is-callable"),A=/#|\.prototype\./,c=function(s,l){var d=o[h(s)];return d==r?!0:d==n?!1:u(l)?a(l):!!l},h=c.normalize=function(s){return String(s).replace(A,".").toLowerCase()},o=c.data={},n=c.NATIVE="N",r=c.POLYFILL="P";C.exports=c},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(t,C,b){var a=t("../internals/is-object"),u=Math.floor;C.exports=Number.isInteger||function(c){return!a(c)&&isFinite(c)&&u(c)===c}},{"../internals/is-object":180}],180:[function(t,C,b){var a=t("../internals/is-callable");C.exports=function(u){return typeof u=="object"?u!==null:a(u)}},{"../internals/is-callable":176}],181:[function(t,C,b){C.exports=!1},{}],182:[function(t,C,b){var a=t("../internals/is-object"),u=t("../internals/classof-raw"),A=t("../internals/well-known-symbol"),c=A("match");C.exports=function(h){var o;return a(h)&&((o=h[c])!==void 0?!!o:u(h)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/get-built-in"),A=t("../internals/is-callable"),c=t("../internals/object-is-prototype-of"),h=t("../internals/use-symbol-as-uid"),o=a.Object;C.exports=h?function(n){return typeof n=="symbol"}:function(n){var r=u("Symbol");return A(r)&&c(r.prototype,o(n))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-bind-context"),A=t("../internals/function-call"),c=t("../internals/an-object"),h=t("../internals/try-to-string"),o=t("../internals/is-array-iterator-method"),n=t("../internals/length-of-array-like"),r=t("../internals/object-is-prototype-of"),s=t("../internals/get-iterator"),l=t("../internals/get-iterator-method"),d=t("../internals/iterator-close"),p=a.TypeError,g=function(v,_){this.stopped=v,this.result=_},m=g.prototype;C.exports=function(v,_,O){var F=O&&O.that,T=!!(O&&O.AS_ENTRIES),S=!!(O&&O.IS_ITERATOR),I=!!(O&&O.INTERRUPTED),E=u(_,F),M,N,V,H,X,G,ee,Z=function(U){return M&&d(M,"normal",U),new g(!0,U)},Ae=function(U){return T?(c(U),I?E(U[0],U[1],Z):E(U[0],U[1])):I?E(U,Z):E(U)};if(S)M=v;else{if(N=l(v),!N)throw p(h(v)+" is not iterable");if(o(N)){for(V=0,H=n(v);H>V;V++)if(X=Ae(v[V]),X&&r(m,X))return X;return new g(!1)}M=s(v,N)}for(G=M.next;!(ee=A(G,M)).done;){try{X=Ae(ee.value)}catch(U){d(M,"throw",U)}if(typeof X=="object"&&X&&r(m,X))return X}return new g(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(t,C,b){var a=t("../internals/function-call"),u=t("../internals/an-object"),A=t("../internals/get-method");C.exports=function(c,h,o){var n,r;u(c);try{if(n=A(c,"return"),!n){if(h==="throw")throw o;return o}n=a(n,c)}catch(s){r=!0,n=s}if(h==="throw")throw o;if(r)throw n;return u(n),o}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(t,C,b){"use strict";var a=t("../internals/fails"),u=t("../internals/is-callable"),A=t("../internals/object-create"),c=t("../internals/object-get-prototype-of"),h=t("../internals/redefine"),o=t("../internals/well-known-symbol"),n=t("../internals/is-pure"),r=o("iterator"),s=!1,l,d,p;[].keys&&(p=[].keys(),"next"in p?(d=c(c(p)),d!==Object.prototype&&(l=d)):s=!0);var g=l==null||a(function(){var m={};return l[r].call(m)!==m});g?l={}:n&&(l=A(l)),u(l[r])||h(l,r,function(){return this}),C.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:s}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(t,C,b){arguments[4][165][0].apply(b,arguments)},{dup:165}],188:[function(t,C,b){var a=t("../internals/to-length");C.exports=function(u){return a(u.length)}},{"../internals/to-length":249}],189:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-bind-context"),A=t("../internals/object-get-own-property-descriptor").f,c=t("../internals/task").set,h=t("../internals/engine-is-ios"),o=t("../internals/engine-is-ios-pebble"),n=t("../internals/engine-is-webos-webkit"),r=t("../internals/engine-is-node"),s=a.MutationObserver||a.WebKitMutationObserver,l=a.document,d=a.process,p=a.Promise,g=A(a,"queueMicrotask"),m=g&&g.value,v,_,O,F,T,S,I,E;m||(v=function(){var M,N;for(r&&(M=d.domain)&&M.exit();_;){N=_.fn,_=_.next;try{N()}catch(V){throw _?F():O=void 0,V}}O=void 0,M&&M.enter()},!h&&!r&&!n&&s&&l?(T=!0,S=l.createTextNode(""),new s(v).observe(S,{characterData:!0}),F=function(){S.data=T=!T}):!o&&p&&p.resolve?(I=p.resolve(void 0),I.constructor=p,E=u(I.then,I),F=function(){E(v)}):r?F=function(){d.nextTick(v)}:(c=u(c,a),F=function(){c(v)})),C.exports=m||function(M){var N={fn:M,next:void 0};O&&(O.next=N),_||(_=N,F()),O=N}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(t,C,b){var a=t("../internals/native-symbol");C.exports=a&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(t,C,b){var a=t("../internals/engine-v8-version"),u=t("../internals/fails");C.exports=!!Object.getOwnPropertySymbols&&!u(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&a&&a<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-callable"),A=t("../internals/inspect-source"),c=a.WeakMap;C.exports=u(c)&&/native code/.test(A(c))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(t,C,b){"use strict";var a=t("../internals/a-callable"),u=function(A){var c,h;this.promise=new A(function(o,n){if(c!==void 0||h!==void 0)throw TypeError("Bad Promise constructor");c=o,h=n}),this.resolve=a(c),this.reject=a(h)};C.exports.f=function(A){return new u(A)}},{"../internals/a-callable":95}],194:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-regexp"),A=a.TypeError;C.exports=function(c){if(u(c))throw A("The method doesn't accept regular expressions");return c}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(t,C,b){"use strict";var a=t("../internals/descriptors"),u=t("../internals/function-uncurry-this"),A=t("../internals/function-call"),c=t("../internals/fails"),h=t("../internals/object-keys"),o=t("../internals/object-get-own-property-symbols"),n=t("../internals/object-property-is-enumerable"),r=t("../internals/to-object"),s=t("../internals/indexed-object"),l=Object.assign,d=Object.defineProperty,p=u([].concat);C.exports=!l||c(function(){if(a&&l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},m={},v=Symbol(),_="abcdefghijklmnopqrst";return g[v]=7,_.split("").forEach(function(O){m[O]=O}),l({},g)[v]!=7||h(l({},m)).join("")!=_})?function(m,v){for(var _=r(m),O=arguments.length,F=1,T=o.f,S=n.f;O>F;)for(var I=s(arguments[F++]),E=T?p(h(I),T(I)):h(I),M=E.length,N=0,V;M>N;)V=E[N++],(!a||A(S,I,V))&&(_[V]=I[V]);return _}:l},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(t,C,b){var a=t("../internals/an-object"),u=t("../internals/object-define-properties"),A=t("../internals/enum-bug-keys"),c=t("../internals/hidden-keys"),h=t("../internals/html"),o=t("../internals/document-create-element"),n=t("../internals/shared-key"),r=">",s="<",l="prototype",d="script",p=n("IE_PROTO"),g=function(){},m=function(T){return s+d+r+T+s+"/"+d+r},v=function(T){T.write(m("")),T.close();var S=T.parentWindow.Object;return T=null,S},_=function(){var T=o("iframe"),S="java"+d+":",I;return T.style.display="none",h.appendChild(T),T.src=String(S),I=T.contentWindow.document,I.open(),I.write(m("document.F=Object")),I.close(),I.F},O,F=function(){try{O=new ActiveXObject("htmlfile")}catch(S){}F=typeof document!="undefined"?document.domain&&O?v(O):_():v(O);for(var T=A.length;T--;)delete F[l][A[T]];return F()};c[p]=!0,C.exports=Object.create||function(S,I){var E;return S!==null?(g[l]=a(S),E=new g,g[l]=null,E[p]=S):E=F(),I===void 0?E:u.f(E,I)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/v8-prototype-define-bug"),A=t("../internals/object-define-property"),c=t("../internals/an-object"),h=t("../internals/to-indexed-object"),o=t("../internals/object-keys");b.f=a&&!u?Object.defineProperties:function(r,s){c(r);for(var l=h(s),d=o(s),p=d.length,g=0,m;p>g;)A.f(r,m=d[g++],l[m]);return r}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/descriptors"),A=t("../internals/ie8-dom-define"),c=t("../internals/v8-prototype-define-bug"),h=t("../internals/an-object"),o=t("../internals/to-property-key"),n=a.TypeError,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",p="writable";b.f=u?c?function(m,v,_){if(h(m),v=o(v),h(_),typeof m=="function"&&v==="prototype"&&"value"in _&&p in _&&!_[p]){var O=s(m,v);O&&O[p]&&(m[v]=_.value,_={configurable:d in _?_[d]:O[d],enumerable:l in _?_[l]:O[l],writable:!1})}return r(m,v,_)}:r:function(m,v,_){if(h(m),v=o(v),h(_),A)try{return r(m,v,_)}catch(O){}if("get"in _||"set"in _)throw n("Accessors not supported");return"value"in _&&(m[v]=_.value),m}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/function-call"),A=t("../internals/object-property-is-enumerable"),c=t("../internals/create-property-descriptor"),h=t("../internals/to-indexed-object"),o=t("../internals/to-property-key"),n=t("../internals/has-own-property"),r=t("../internals/ie8-dom-define"),s=Object.getOwnPropertyDescriptor;b.f=a?s:function(d,p){if(d=h(d),p=o(p),r)try{return s(d,p)}catch(g){}if(n(d,p))return c(!u(A.f,d,p),d[p])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(t,C,b){var a=t("../internals/classof-raw"),u=t("../internals/to-indexed-object"),A=t("../internals/object-get-own-property-names").f,c=t("../internals/array-slice-simple"),h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(n){try{return A(n)}catch(r){return c(h)}};C.exports.f=function(r){return h&&a(r)=="Window"?o(r):A(u(r))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(t,C,b){var a=t("../internals/object-keys-internal"),u=t("../internals/enum-bug-keys"),A=u.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(h){return a(h,A)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(t,C,b){b.f=Object.getOwnPropertySymbols},{}],203:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/has-own-property"),A=t("../internals/is-callable"),c=t("../internals/to-object"),h=t("../internals/shared-key"),o=t("../internals/correct-prototype-getter"),n=h("IE_PROTO"),r=a.Object,s=r.prototype;C.exports=o?r.getPrototypeOf:function(l){var d=c(l);if(u(d,n))return d[n];var p=d.constructor;return A(p)&&d instanceof p?p.prototype:d instanceof r?s:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(t,C,b){var a=t("../internals/function-uncurry-this");C.exports=a({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/has-own-property"),A=t("../internals/to-indexed-object"),c=t("../internals/array-includes").indexOf,h=t("../internals/hidden-keys"),o=a([].push);C.exports=function(n,r){var s=A(n),l=0,d=[],p;for(p in s)!u(h,p)&&u(s,p)&&o(d,p);for(;r.length>l;)u(s,p=r[l++])&&(~c(d,p)||o(d,p));return d}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(t,C,b){var a=t("../internals/object-keys-internal"),u=t("../internals/enum-bug-keys");C.exports=Object.keys||function(c){return a(c,u)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(t,C,b){"use strict";var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,A=u&&!a.call({1:2},1);b.f=A?function(h){var o=u(this,h);return!!o&&o.enumerable}:a},{}],208:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/an-object"),A=t("../internals/a-possible-prototype");C.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,h={},o;try{o=a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),o(h,[]),c=h instanceof Array}catch(n){}return function(r,s){return u(r),A(s),c?o(r,s):r.__proto__=s,r}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/function-uncurry-this"),A=t("../internals/object-keys"),c=t("../internals/to-indexed-object"),h=t("../internals/object-property-is-enumerable").f,o=u(h),n=u([].push),r=function(s){return function(l){for(var d=c(l),p=A(d),g=p.length,m=0,v=[],_;g>m;)_=p[m++],(!a||o(d,_))&&n(v,s?[_,d[_]]:d[_]);return v}};C.exports={entries:r(!0),values:r(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(t,C,b){"use strict";var a=t("../internals/to-string-tag-support"),u=t("../internals/classof");C.exports=a?{}.toString:function(){return"[object "+u(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-call"),A=t("../internals/is-callable"),c=t("../internals/is-object"),h=a.TypeError;C.exports=function(o,n){var r,s;if(n==="string"&&A(r=o.toString)&&!c(s=u(r,o))||A(r=o.valueOf)&&!c(s=u(r,o))||n!=="string"&&A(r=o.toString)&&!c(s=u(r,o)))return s;throw h("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(t,C,b){var a=t("../internals/get-built-in"),u=t("../internals/function-uncurry-this"),A=t("../internals/object-get-own-property-names"),c=t("../internals/object-get-own-property-symbols"),h=t("../internals/an-object"),o=u([].concat);C.exports=a("Reflect","ownKeys")||function(r){var s=A.f(h(r)),l=c.f;return l?o(s,l(r)):s}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(t,C,b){var a=t("../internals/global");C.exports=a},{"../internals/global":163}],214:[function(t,C,b){C.exports=function(a){try{return{error:!1,value:a()}}catch(u){return{error:!0,value:u}}}},{}],215:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/promise-native-constructor"),A=t("../internals/is-callable"),c=t("../internals/is-forced"),h=t("../internals/inspect-source"),o=t("../internals/well-known-symbol"),n=t("../internals/engine-is-browser"),r=t("../internals/is-pure"),s=t("../internals/engine-v8-version"),l=u&&u.prototype,d=o("species"),p=!1,g=A(a.PromiseRejectionEvent),m=c("Promise",function(){var v=h(u),_=v!==String(u);if(!_&&s===66||r&&!(l.catch&&l.finally))return!0;if(s>=51&&/native code/.test(v))return!1;var O=new u(function(S){S(1)}),F=function(S){S(function(){},function(){})},T=O.constructor={};return T[d]=F,p=O.then(function(){})instanceof F,p?!_&&n&&!g:!0});C.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(t,C,b){var a=t("../internals/global");C.exports=a.Promise},{"../internals/global":163}],217:[function(t,C,b){var a=t("../internals/an-object"),u=t("../internals/is-object"),A=t("../internals/new-promise-capability");C.exports=function(c,h){if(a(c),u(h)&&h.constructor===c)return h;var o=A.f(c),n=o.resolve;return n(h),o.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(t,C,b){var a=t("../internals/promise-native-constructor"),u=t("../internals/check-correctness-of-iteration"),A=t("../internals/promise-constructor-detection").CONSTRUCTOR;C.exports=A||!u(function(c){a.all(c).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(t,C,b){var a=t("../internals/object-define-property").f;C.exports=function(u,A,c){c in u||a(u,c,{configurable:!0,get:function(){return A[c]},set:function(h){A[c]=h}})}},{"../internals/object-define-property":198}],220:[function(t,C,b){var a=function(){this.head=null,this.tail=null};a.prototype={add:function(u){var A={item:u,next:null};this.head?this.tail.next=A:this.head=A,this.tail=A},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},C.exports=a},{}],221:[function(t,C,b){var a=t("../internals/redefine");C.exports=function(u,A,c){for(var h in A)a(u,h,A[h],c);return u}},{"../internals/redefine":222}],222:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/is-callable"),A=t("../internals/has-own-property"),c=t("../internals/create-non-enumerable-property"),h=t("../internals/set-global"),o=t("../internals/inspect-source"),n=t("../internals/internal-state"),r=t("../internals/function-name").CONFIGURABLE,s=n.get,l=n.enforce,d=String(String).split("String");(C.exports=function(p,g,m,v){var _=v?!!v.unsafe:!1,O=v?!!v.enumerable:!1,F=v?!!v.noTargetGet:!1,T=v&&v.name!==void 0?v.name:g,S;if(u(m)&&(String(T).slice(0,7)==="Symbol("&&(T="["+String(T).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!A(m,"name")||r&&m.name!==T)&&c(m,"name",T),S=l(m),S.source||(S.source=d.join(typeof T=="string"?T:""))),p===a){O?p[g]=m:h(g,m);return}else _?!F&&p[g]&&(O=!0):delete p[g];O?p[g]=m:c(p,g,m)})(Function.prototype,"toString",function(){return u(this)&&s(this).source||o(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-call"),A=t("../internals/an-object"),c=t("../internals/is-callable"),h=t("../internals/classof-raw"),o=t("../internals/regexp-exec"),n=a.TypeError;C.exports=function(r,s){var l=r.exec;if(c(l)){var d=u(l,r,s);return d!==null&&A(d),d}if(h(r)==="RegExp")return u(o,r,s);throw n("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(t,C,b){"use strict";var a=t("../internals/function-call"),u=t("../internals/function-uncurry-this"),A=t("../internals/to-string"),c=t("../internals/regexp-flags"),h=t("../internals/regexp-sticky-helpers"),o=t("../internals/shared"),n=t("../internals/object-create"),r=t("../internals/internal-state").get,s=t("../internals/regexp-unsupported-dot-all"),l=t("../internals/regexp-unsupported-ncg"),d=o("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=u("".charAt),v=u("".indexOf),_=u("".replace),O=u("".slice),F=function(){var E=/a/,M=/b*/g;return a(p,E,"a"),a(p,M,"a"),E.lastIndex!==0||M.lastIndex!==0}(),T=h.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,I=F||S||T||s||l;I&&(g=function(M){var N=this,V=r(N),H=A(M),X=V.raw,G,ee,Z,Ae,U,W,le;if(X)return X.lastIndex=N.lastIndex,G=a(g,X,H),N.lastIndex=X.lastIndex,G;var he=V.groups,ue=T&&N.sticky,pe=a(c,N),fe=N.source,ce=0,be=H;if(ue&&(pe=_(pe,"y",""),v(pe,"g")===-1&&(pe+="g"),be=O(H,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&m(H,N.lastIndex-1)!==`
|
|
|
`)&&(fe="(?: "+fe+")",be=" "+be,ce++),ee=new RegExp("^(?:"+fe+")",pe)),S&&(ee=new RegExp("^"+fe+"$(?!\\s)",pe)),F&&(Z=N.lastIndex),Ae=a(p,ue?ee:N,be),ue?Ae?(Ae.input=O(Ae.input,ce),Ae[0]=O(Ae[0],ce),Ae.index=N.lastIndex,N.lastIndex+=Ae[0].length):N.lastIndex=0:F&&Ae&&(N.lastIndex=N.global?Ae.index+Ae[0].length:Z),S&&Ae&&Ae.length>1&&a(d,Ae[0],ee,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(Ae[U]=void 0)}),Ae&&he)for(Ae.groups=W=n(null),U=0;U<he.length;U++)le=he[U],W[le[0]]=Ae[le[1]];return Ae}),C.exports=g},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(t,C,b){"use strict";var a=t("../internals/an-object");C.exports=function(){var u=a(this),A="";return u.hasIndices&&(A+="d"),u.global&&(A+="g"),u.ignoreCase&&(A+="i"),u.multiline&&(A+="m"),u.dotAll&&(A+="s"),u.unicode&&(A+="u"),u.sticky&&(A+="y"),A}},{"../internals/an-object":101}],226:[function(t,C,b){var a=t("../internals/function-call"),u=t("../internals/has-own-property"),A=t("../internals/object-is-prototype-of"),c=t("../internals/regexp-flags"),h=RegExp.prototype;C.exports=function(o){var n=o.flags;return n===void 0&&!("flags"in h)&&!u(o,"flags")&&A(h,o)?a(c,o):n}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(t,C,b){var a=t("../internals/fails"),u=t("../internals/global"),A=u.RegExp,c=a(function(){var n=A("a","y");return n.lastIndex=2,n.exec("abcd")!=null}),h=c||a(function(){return!A("a","y").sticky}),o=c||a(function(){var n=A("^r","gy");return n.lastIndex=2,n.exec("str")!=null});C.exports={BROKEN_CARET:o,MISSED_STICKY:h,UNSUPPORTED_Y:c}},{"../internals/fails":150,"../internals/global":163}],228:[function(t,C,b){var a=t("../internals/fails"),u=t("../internals/global"),A=u.RegExp;C.exports=a(function(){var c=A(".","s");return!(c.dotAll&&c.exec(`
|
|
|
`)&&c.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(t,C,b){var a=t("../internals/fails"),u=t("../internals/global"),A=u.RegExp;C.exports=a(function(){var c=A("(?<a>b)","g");return c.exec("b").groups.a!=="b"||"b".replace(c,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(t,C,b){var a=t("../internals/global"),u=a.TypeError;C.exports=function(A){if(A==null)throw u("Can't call method on "+A);return A}},{"../internals/global":163}],231:[function(t,C,b){C.exports=Object.is||function(u,A){return u===A?u!==0||1/u===1/A:u!=u&&A!=A}},{}],232:[function(t,C,b){var a=t("../internals/global"),u=Object.defineProperty;C.exports=function(A,c){try{u(a,A,{value:c,configurable:!0,writable:!0})}catch(h){a[A]=c}return c}},{"../internals/global":163}],233:[function(t,C,b){"use strict";var a=t("../internals/get-built-in"),u=t("../internals/object-define-property"),A=t("../internals/well-known-symbol"),c=t("../internals/descriptors"),h=A("species");C.exports=function(o){var n=a(o),r=u.f;c&&n&&!n[h]&&r(n,h,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(t,C,b){var a=t("../internals/object-define-property").f,u=t("../internals/has-own-property"),A=t("../internals/well-known-symbol"),c=A("toStringTag");C.exports=function(h,o,n){h&&!n&&(h=h.prototype),h&&!u(h,c)&&a(h,c,{configurable:!0,value:o})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(t,C,b){var a=t("../internals/shared"),u=t("../internals/uid"),A=a("keys");C.exports=function(c){return A[c]||(A[c]=u(c))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/set-global"),A="__core-js_shared__",c=a[A]||u(A,{});C.exports=c},{"../internals/global":163,"../internals/set-global":232}],237:[function(t,C,b){var a=t("../internals/is-pure"),u=t("../internals/shared-store");(C.exports=function(A,c){return u[A]||(u[A]=c!==void 0?c:{})})("versions",[]).push({version:"3.22.1",mode:a?"pure":"global",copyright:"\xA9 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":181,"../internals/shared-store":236}],238:[function(t,C,b){var a=t("../internals/an-object"),u=t("../internals/a-constructor"),A=t("../internals/well-known-symbol"),c=A("species");C.exports=function(h,o){var n=a(h).constructor,r;return n===void 0||(r=a(n)[c])==null?o:u(r)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/to-integer-or-infinity"),A=t("../internals/to-string"),c=t("../internals/require-object-coercible"),h=a("".charAt),o=a("".charCodeAt),n=a("".slice),r=function(s){return function(l,d){var p=A(c(l)),g=u(d),m=p.length,v,_;return g<0||g>=m?s?"":void 0:(v=o(p,g),v<55296||v>56319||g+1===m||(_=o(p,g+1))<56320||_>57343?s?h(p,g):v:s?n(p,g,g+2):(v-55296<<10)+(_-56320)+65536)}};C.exports={codeAt:r(!1),charAt:r(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(t,C,b){var a=t("../internals/function-name").PROPER,u=t("../internals/fails"),A=t("../internals/whitespaces"),c="\u200B\x85\u180E";C.exports=function(h){return u(function(){return!!A[h]()||c[h]()!==c||a&&A[h].name!==h})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=t("../internals/require-object-coercible"),A=t("../internals/to-string"),c=t("../internals/whitespaces"),h=a("".replace),o="["+c+"]",n=RegExp("^"+o+o+"*"),r=RegExp(o+o+"*$"),s=function(l){return function(d){var p=A(u(d));return l&1&&(p=h(p,n,"")),l&2&&(p=h(p,r,"")),p}};C.exports={start:s(1),end:s(2),trim:s(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(t,C,b){var a=t("../internals/function-call"),u=t("../internals/get-built-in"),A=t("../internals/well-known-symbol"),c=t("../internals/redefine");C.exports=function(){var h=u("Symbol"),o=h&&h.prototype,n=o&&o.valueOf,r=A("toPrimitive");o&&!o[r]&&c(o,r,function(s){return a(n,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-apply"),A=t("../internals/function-bind-context"),c=t("../internals/is-callable"),h=t("../internals/has-own-property"),o=t("../internals/fails"),n=t("../internals/html"),r=t("../internals/array-slice"),s=t("../internals/document-create-element"),l=t("../internals/validate-arguments-length"),d=t("../internals/engine-is-ios"),p=t("../internals/engine-is-node"),g=a.setImmediate,m=a.clearImmediate,v=a.process,_=a.Dispatch,O=a.Function,F=a.MessageChannel,T=a.String,S=0,I={},E="onreadystatechange",M,N,V,H;try{M=a.location}catch(Ae){}var X=function(Ae){if(h(I,Ae)){var U=I[Ae];delete I[Ae],U()}},G=function(Ae){return function(){X(Ae)}},ee=function(Ae){X(Ae.data)},Z=function(Ae){a.postMessage(T(Ae),M.protocol+"//"+M.host)};(!g||!m)&&(g=function(U){l(arguments.length,1);var W=c(U)?U:O(U),le=r(arguments,1);return I[++S]=function(){u(W,void 0,le)},N(S),S},m=function(U){delete I[U]},p?N=function(Ae){v.nextTick(G(Ae))}:_&&_.now?N=function(Ae){_.now(G(Ae))}:F&&!d?(V=new F,H=V.port2,V.port1.onmessage=ee,N=A(H.postMessage,H)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&M&&M.protocol!=="file:"&&!o(Z)?(N=Z,a.addEventListener("message",ee,!1)):E in s("script")?N=function(Ae){n.appendChild(s("script"))[E]=function(){n.removeChild(this),X(Ae)}}:N=function(Ae){setTimeout(G(Ae),0)}),C.exports={set:g,clear:m}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(t,C,b){var a=t("../internals/function-uncurry-this");C.exports=a(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(t,C,b){var a=t("../internals/to-integer-or-infinity"),u=Math.max,A=Math.min;C.exports=function(c,h){var o=a(c);return o<0?u(o+h,0):A(o,h)}},{"../internals/to-integer-or-infinity":248}],246:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/to-integer-or-infinity"),A=t("../internals/to-length"),c=a.RangeError;C.exports=function(h){if(h===void 0)return 0;var o=u(h),n=A(o);if(o!==n)throw c("Wrong length or index");return n}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(t,C,b){var a=t("../internals/indexed-object"),u=t("../internals/require-object-coercible");C.exports=function(A){return a(u(A))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(t,C,b){var a=Math.ceil,u=Math.floor;C.exports=function(A){var c=+A;return c!==c||c===0?0:(c>0?u:a)(c)}},{}],249:[function(t,C,b){var a=t("../internals/to-integer-or-infinity"),u=Math.min;C.exports=function(A){return A>0?u(a(A),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/require-object-coercible"),A=a.Object;C.exports=function(c){return A(u(c))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/to-positive-integer"),A=a.RangeError;C.exports=function(c,h){var o=u(c);if(o%h)throw A("Wrong offset");return o}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/to-integer-or-infinity"),A=a.RangeError;C.exports=function(c){var h=u(c);if(h<0)throw A("The argument can't be less than 0");return h}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/function-call"),A=t("../internals/is-object"),c=t("../internals/is-symbol"),h=t("../internals/get-method"),o=t("../internals/ordinary-to-primitive"),n=t("../internals/well-known-symbol"),r=a.TypeError,s=n("toPrimitive");C.exports=function(l,d){if(!A(l)||c(l))return l;var p=h(l,s),g;if(p){if(d===void 0&&(d="default"),g=u(p,l,d),!A(g)||c(g))return g;throw r("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(l,d)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(t,C,b){var a=t("../internals/to-primitive"),u=t("../internals/is-symbol");C.exports=function(A){var c=a(A,"string");return u(c)?c:c+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(t,C,b){var a=t("../internals/well-known-symbol"),u=a("toStringTag"),A={};A[u]="z",C.exports=String(A)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/classof"),A=a.String;C.exports=function(c){if(u(c)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return A(c)}},{"../internals/classof":124,"../internals/global":163}],257:[function(t,C,b){var a=t("../internals/global"),u=a.String;C.exports=function(A){try{return u(A)}catch(c){return"Object"}}},{"../internals/global":163}],258:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/function-call"),c=t("../internals/descriptors"),h=t("../internals/typed-array-constructors-require-wrappers"),o=t("../internals/array-buffer-view-core"),n=t("../internals/array-buffer"),r=t("../internals/an-instance"),s=t("../internals/create-property-descriptor"),l=t("../internals/create-non-enumerable-property"),d=t("../internals/is-integral-number"),p=t("../internals/to-length"),g=t("../internals/to-index"),m=t("../internals/to-offset"),v=t("../internals/to-property-key"),_=t("../internals/has-own-property"),O=t("../internals/classof"),F=t("../internals/is-object"),T=t("../internals/is-symbol"),S=t("../internals/object-create"),I=t("../internals/object-is-prototype-of"),E=t("../internals/object-set-prototype-of"),M=t("../internals/object-get-own-property-names").f,N=t("../internals/typed-array-from"),V=t("../internals/array-iteration").forEach,H=t("../internals/set-species"),X=t("../internals/object-define-property"),G=t("../internals/object-get-own-property-descriptor"),ee=t("../internals/internal-state"),Z=t("../internals/inherit-if-required"),Ae=ee.get,U=ee.set,W=X.f,le=G.f,he=Math.round,ue=u.RangeError,pe=n.ArrayBuffer,fe=pe.prototype,ce=n.DataView,be=o.NATIVE_ARRAY_BUFFER_VIEWS,Ce=o.TYPED_ARRAY_CONSTRUCTOR,xe=o.TYPED_ARRAY_TAG,Se=o.TypedArray,me=o.TypedArrayPrototype,te=o.aTypedArrayConstructor,$=o.isTypedArray,B="BYTES_PER_ELEMENT",k="Wrong length",q=function(ge,Be){te(ge);for(var Oe=0,Le=Be.length,Pe=new ge(Le);Le>Oe;)Pe[Oe]=Be[Oe++];return Pe},ne=function(ge,Be){W(ge,Be,{get:function(){return Ae(this)[Be]}})},Q=function(ge){var Be;return I(fe,ge)||(Be=O(ge))=="ArrayBuffer"||Be=="SharedArrayBuffer"},z=function(ge,Be){return $(ge)&&!T(Be)&&Be in ge&&d(+Be)&&Be>=0},Y=function(Be,Oe){return Oe=v(Oe),z(Be,Oe)?s(2,Be[Oe]):le(Be,Oe)},re=function(Be,Oe,Le){return Oe=v(Oe),z(Be,Oe)&&F(Le)&&_(Le,"value")&&!_(Le,"get")&&!_(Le,"set")&&!Le.configurable&&(!_(Le,"writable")||Le.writable)&&(!_(Le,"enumerable")||Le.enumerable)?(Be[Oe]=Le.value,Be):W(Be,Oe,Le)};c?(be||(G.f=Y,X.f=re,ne(me,"buffer"),ne(me,"byteOffset"),ne(me,"byteLength"),ne(me,"length")),a({target:"Object",stat:!0,forced:!be},{getOwnPropertyDescriptor:Y,defineProperty:re}),C.exports=function(ge,Be,Oe){var Le=ge.match(/\d+$/)[0]/8,Pe=ge+(Oe?"Clamped":"")+"Array",$e="get"+ge,Ke="set"+ge,Ne=u[Pe],Ue=Ne,Ye=Ue&&Ue.prototype,ze={},Xe=function(He,Ge){var nt=Ae(He);return nt.view[$e](Ge*Le+nt.byteOffset,!0)},qe=function(He,Ge,nt){var st=Ae(He);Oe&&(nt=(nt=he(nt))<0?0:nt>255?255:nt&255),st.view[Ke](Ge*Le+st.byteOffset,nt,!0)},Qe=function(He,Ge){W(He,Ge,{get:function(){return Xe(this,Ge)},set:function(nt){return qe(this,Ge,nt)},enumerable:!0})};be?h&&(Ue=Be(function(He,Ge,nt,st){return r(He,Ye),Z(function(){return F(Ge)?Q(Ge)?st!==void 0?new Ne(Ge,m(nt,Le),st):nt!==void 0?new Ne(Ge,m(nt,Le)):new Ne(Ge):$(Ge)?q(Ue,Ge):A(N,Ue,Ge):new Ne(g(Ge))}(),He,Ue)}),E&&E(Ue,Se),V(M(Ne),function(He){He in Ue||l(Ue,He,Ne[He])}),Ue.prototype=Ye):(Ue=Be(function(He,Ge,nt,st){r(He,Ye);var Tt=0,xt=0,Et,Dt,Wt;if(!F(Ge))Wt=g(Ge),Dt=Wt*Le,Et=new pe(Dt);else if(Q(Ge)){Et=Ge,xt=m(nt,Le);var Qt=Ge.byteLength;if(st===void 0){if(Qt%Le||(Dt=Qt-xt,Dt<0))throw ue(k)}else if(Dt=p(st)*Le,Dt+xt>Qt)throw ue(k);Wt=Dt/Le}else return $(Ge)?q(Ue,Ge):A(N,Ue,Ge);for(U(He,{buffer:Et,byteOffset:xt,byteLength:Dt,length:Wt,view:new ce(Et)});Tt<Wt;)Qe(He,Tt++)}),E&&E(Ue,Se),Ye=Ue.prototype=S(me)),Ye.constructor!==Ue&&l(Ye,"constructor",Ue),l(Ye,Ce,Ue),xe&&l(Ye,xe,Pe),ze[Pe]=Ue,a({global:!0,forced:Ue!=Ne,sham:!be},ze),B in Ue||l(Ue,B,Le),B in Ye||l(Ye,B,Le),H(Pe)}):C.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/fails"),A=t("../internals/check-correctness-of-iteration"),c=t("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,h=a.ArrayBuffer,o=a.Int8Array;C.exports=!c||!u(function(){o(1)})||!u(function(){new o(-1)})||!A(function(n){new o,new o(null),new o(1.5),new o(n)},!0)||u(function(){return new o(new h(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(t,C,b){var a=t("../internals/array-from-constructor-and-list"),u=t("../internals/typed-array-species-constructor");C.exports=function(A,c){return a(u(A),c)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(t,C,b){var a=t("../internals/function-bind-context"),u=t("../internals/function-call"),A=t("../internals/a-constructor"),c=t("../internals/to-object"),h=t("../internals/length-of-array-like"),o=t("../internals/get-iterator"),n=t("../internals/get-iterator-method"),r=t("../internals/is-array-iterator-method"),s=t("../internals/array-buffer-view-core").aTypedArrayConstructor;C.exports=function(d){var p=A(this),g=c(d),m=arguments.length,v=m>1?arguments[1]:void 0,_=v!==void 0,O=n(g),F,T,S,I,E,M;if(O&&!r(O))for(E=o(g,O),M=E.next,g=[];!(I=u(M,E)).done;)g.push(I.value);for(_&&m>2&&(v=a(v,arguments[2])),T=h(g),S=new(s(p))(T),F=0;T>F;F++)S[F]=_?v(g[F],F):g[F];return S}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(t,C,b){var a=t("../internals/array-buffer-view-core"),u=t("../internals/species-constructor"),A=a.TYPED_ARRAY_CONSTRUCTOR,c=a.aTypedArrayConstructor;C.exports=function(h){return c(u(h,h[A]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(t,C,b){var a=t("../internals/function-uncurry-this"),u=0,A=Math.random(),c=a(1 .toString);C.exports=function(h){return"Symbol("+(h===void 0?"":h)+")_"+c(++u+A,36)}},{"../internals/function-uncurry-this":157}],264:[function(t,C,b){var a=t("../internals/native-symbol");C.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/fails");C.exports=a&&u(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(t,C,b){var a=t("../internals/global"),u=a.TypeError;C.exports=function(A,c){if(A<c)throw u("Not enough arguments");return A}},{"../internals/global":163}],267:[function(t,C,b){var a=t("../internals/well-known-symbol");b.f=a},{"../internals/well-known-symbol":268}],268:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/shared"),A=t("../internals/has-own-property"),c=t("../internals/uid"),h=t("../internals/native-symbol"),o=t("../internals/use-symbol-as-uid"),n=u("wks"),r=a.Symbol,s=r&&r.for,l=o?r:r&&r.withoutSetter||c;C.exports=function(d){if(!A(n,d)||!(h||typeof n[d]=="string")){var p="Symbol."+d;h&&A(r,d)?n[d]=r[d]:o&&s?n[d]=s(p):n[d]=l(p)}return n[d]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(t,C,b){C.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/array-buffer"),c=t("../internals/set-species"),h="ArrayBuffer",o=A[h],n=u[h];a({global:!0,forced:n!==o},{ArrayBuffer:o}),c(h)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-uncurry-this"),A=t("../internals/fails"),c=t("../internals/array-buffer"),h=t("../internals/an-object"),o=t("../internals/to-absolute-index"),n=t("../internals/to-length"),r=t("../internals/species-constructor"),s=c.ArrayBuffer,l=c.DataView,d=l.prototype,p=u(s.prototype.slice),g=u(d.getUint8),m=u(d.setUint8),v=A(function(){return!new s(2).slice(1,void 0).byteLength});a({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:v},{slice:function(O,F){if(p&&F===void 0)return p(h(this),O);for(var T=h(this).byteLength,S=o(O,T),I=o(F===void 0?T:F,T),E=new(r(this,s))(n(I-S)),M=new l(this),N=new l(E),V=0;S<I;)m(N,V++,g(M,S++));return E}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/fails"),c=t("../internals/is-array"),h=t("../internals/is-object"),o=t("../internals/to-object"),n=t("../internals/length-of-array-like"),r=t("../internals/create-property"),s=t("../internals/array-species-create"),l=t("../internals/array-method-has-species-support"),d=t("../internals/well-known-symbol"),p=t("../internals/engine-v8-version"),g=d("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",_=u.TypeError,O=p>=51||!A(function(){var I=[];return I[g]=!1,I.concat()[0]!==I}),F=l("concat"),T=function(I){if(!h(I))return!1;var E=I[g];return E!==void 0?!!E:c(I)},S=!O||!F;a({target:"Array",proto:!0,forced:S},{concat:function(E){var M=o(this),N=s(M,0),V=0,H,X,G,ee,Z;for(H=-1,G=arguments.length;H<G;H++)if(Z=H===-1?M:arguments[H],T(Z)){if(ee=n(Z),V+ee>m)throw _(v);for(X=0;X<ee;X++,V++)X in Z&&r(N,V,Z[X])}else{if(V>=m)throw _(v);r(N,V++,Z)}return N.length=V,N}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/array-fill"),A=t("../internals/add-to-unscopables");a({target:"Array",proto:!0},{fill:u}),A("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/array-iteration").filter,A=t("../internals/array-method-has-species-support"),c=A("filter");a({target:"Array",proto:!0,forced:!c},{filter:function(o){return u(this,o,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/array-iteration").find,A=t("../internals/add-to-unscopables"),c="find",h=!0;c in[]&&Array(1)[c](function(){h=!1}),a({target:"Array",proto:!0,forced:h},{find:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0)}}),A(c)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/array-from"),A=t("../internals/check-correctness-of-iteration"),c=!A(function(h){Array.from(h)});a({target:"Array",stat:!0,forced:c},{from:u})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/array-includes").includes,A=t("../internals/add-to-unscopables");a({target:"Array",proto:!0},{includes:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}}),A("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(t,C,b){"use strict";var a=t("../internals/to-indexed-object"),u=t("../internals/add-to-unscopables"),A=t("../internals/iterators"),c=t("../internals/internal-state"),h=t("../internals/object-define-property").f,o=t("../internals/define-iterator"),n=t("../internals/is-pure"),r=t("../internals/descriptors"),s="Array Iterator",l=c.set,d=c.getterFor(s);C.exports=o(Array,"Array",function(g,m){l(this,{type:s,target:a(g),index:0,kind:m})},function(){var g=d(this),m=g.target,v=g.kind,_=g.index++;return!m||_>=m.length?(g.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:_,done:!1}:v=="values"?{value:m[_],done:!1}:{value:[_,m[_]],done:!1}},"values");var p=A.Arguments=A.Array;if(u("keys"),u("values"),u("entries"),!n&&r&&p.name!=="values")try{h(p,"name",{value:"values"})}catch(g){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-uncurry-this"),A=t("../internals/indexed-object"),c=t("../internals/to-indexed-object"),h=t("../internals/array-method-is-strict"),o=u([].join),n=A!=Object,r=h("join",",");a({target:"Array",proto:!0,forced:n||!r},{join:function(l){return o(c(this),l===void 0?",":l)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/array-iteration").map,A=t("../internals/array-method-has-species-support"),c=A("map");a({target:"Array",proto:!0,forced:!c},{map:function(o){return u(this,o,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/is-array"),c=t("../internals/is-constructor"),h=t("../internals/is-object"),o=t("../internals/to-absolute-index"),n=t("../internals/length-of-array-like"),r=t("../internals/to-indexed-object"),s=t("../internals/create-property"),l=t("../internals/well-known-symbol"),d=t("../internals/array-method-has-species-support"),p=t("../internals/array-slice"),g=d("slice"),m=l("species"),v=u.Array,_=Math.max;a({target:"Array",proto:!0,forced:!g},{slice:function(F,T){var S=r(this),I=n(S),E=o(F,I),M=o(T===void 0?I:T,I),N,V,H;if(A(S)&&(N=S.constructor,c(N)&&(N===v||A(N.prototype))?N=void 0:h(N)&&(N=N[m],N===null&&(N=void 0)),N===v||N===void 0))return p(S,E,M);for(V=new(N===void 0?v:N)(_(M-E,0)),H=0;E<M;E++,H++)E in S&&s(V,H,S[E]);return V.length=H,V}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-uncurry-this"),A=t("../internals/a-callable"),c=t("../internals/to-object"),h=t("../internals/length-of-array-like"),o=t("../internals/to-string"),n=t("../internals/fails"),r=t("../internals/array-sort"),s=t("../internals/array-method-is-strict"),l=t("../internals/engine-ff-version"),d=t("../internals/engine-is-ie-or-edge"),p=t("../internals/engine-v8-version"),g=t("../internals/engine-webkit-version"),m=[],v=u(m.sort),_=u(m.push),O=n(function(){m.sort(void 0)}),F=n(function(){m.sort(null)}),T=s("sort"),S=!n(function(){if(p)return p<70;if(!(l&&l>3)){if(d)return!0;if(g)return g<603;var M="",N,V,H,X;for(N=65;N<76;N++){switch(V=String.fromCharCode(N),N){case 66:case 69:case 70:case 72:H=3;break;case 68:case 71:H=4;break;default:H=2}for(X=0;X<47;X++)m.push({k:V+X,v:H})}for(m.sort(function(G,ee){return ee.v-G.v}),X=0;X<m.length;X++)V=m[X].k.charAt(0),M.charAt(M.length-1)!==V&&(M+=V);return M!=="DGBEFHACIJK"}}),I=O||!F||!T||!S,E=function(M){return function(N,V){return V===void 0?-1:N===void 0?1:M!==void 0?+M(N,V)||0:o(N)>o(V)?1:-1}};a({target:"Array",proto:!0,forced:I},{sort:function(N){N!==void 0&&A(N);var V=c(this);if(S)return N===void 0?v(V):v(V,N);var H=[],X=h(V),G,ee;for(ee=0;ee<X;ee++)ee in V&&_(H,V[ee]);for(r(H,E(N)),G=H.length,ee=0;ee<G;)V[ee]=H[ee++];for(;ee<X;)delete V[ee++];return V}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/to-absolute-index"),c=t("../internals/to-integer-or-infinity"),h=t("../internals/length-of-array-like"),o=t("../internals/to-object"),n=t("../internals/array-species-create"),r=t("../internals/create-property"),s=t("../internals/array-method-has-species-support"),l=s("splice"),d=u.TypeError,p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!l},{splice:function(O,F){var T=o(this),S=h(T),I=A(O,S),E=arguments.length,M,N,V,H,X,G;if(E===0?M=N=0:E===1?(M=0,N=S-I):(M=E-2,N=g(p(c(F),0),S-I)),S+M-N>m)throw d(v);for(V=n(T,N),H=0;H<N;H++)X=I+H,X in T&&r(V,H,T[X]);if(V.length=N,M<N){for(H=I;H<S-N;H++)X=H+N,G=H+M,X in T?T[G]=T[X]:delete T[G];for(H=S;H>S-N+M;H--)delete T[H-1]}else if(M>N)for(H=S-N;H>I;H--)X=H+N-1,G=H+M-1,X in T?T[G]=T[X]:delete T[G];for(H=0;H<M;H++)T[H+I]=arguments[H+2];return T.length=S-N+M,V}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/function-name").EXISTS,A=t("../internals/function-uncurry-this"),c=t("../internals/object-define-property").f,h=Function.prototype,o=A(h.toString),n=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,r=A(n.exec),s="name";a&&!u&&c(h,s,{configurable:!0,get:function(){try{return r(n,o(this))[1]}catch(l){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/get-built-in"),A=t("../internals/function-apply"),c=t("../internals/function-call"),h=t("../internals/function-uncurry-this"),o=t("../internals/fails"),n=t("../internals/is-array"),r=t("../internals/is-callable"),s=t("../internals/is-object"),l=t("../internals/is-symbol"),d=t("../internals/array-slice"),p=t("../internals/native-symbol"),g=u("JSON","stringify"),m=h(/./.exec),v=h("".charAt),_=h("".charCodeAt),O=h("".replace),F=h(1 .toString),T=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,E=!p||o(function(){var H=u("Symbol")();return g([H])!="[null]"||g({a:H})!="{}"||g(Object(H))!="{}"}),M=o(function(){return g("\uDF06\uD834")!=='"\\udf06\\ud834"'||g("\uDEAD")!=='"\\udead"'}),N=function(H,X){var G=d(arguments),ee=X;if(!(!s(X)&&H===void 0||l(H)))return n(X)||(X=function(Z,Ae){if(r(ee)&&(Ae=c(ee,this,Z,Ae)),!l(Ae))return Ae}),G[1]=X,A(g,null,G)},V=function(H,X,G){var ee=v(G,X-1),Z=v(G,X+1);return m(S,H)&&!m(I,Z)||m(I,H)&&!m(S,ee)?"\\u"+F(_(H,0),16):H};g&&a({target:"JSON",stat:!0,forced:E||M},{stringify:function(X,G,ee){var Z=d(arguments),Ae=A(E?N:g,null,Z);return M&&typeof Ae=="string"?O(Ae,T,V):Ae}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(t,C,b){"use strict";var a=t("../internals/descriptors"),u=t("../internals/global"),A=t("../internals/function-uncurry-this"),c=t("../internals/is-forced"),h=t("../internals/redefine"),o=t("../internals/has-own-property"),n=t("../internals/inherit-if-required"),r=t("../internals/object-is-prototype-of"),s=t("../internals/is-symbol"),l=t("../internals/to-primitive"),d=t("../internals/fails"),p=t("../internals/object-get-own-property-names").f,g=t("../internals/object-get-own-property-descriptor").f,m=t("../internals/object-define-property").f,v=t("../internals/this-number-value"),_=t("../internals/string-trim").trim,O="Number",F=u[O],T=F.prototype,S=u.TypeError,I=A("".slice),E=A("".charCodeAt),M=function(ee){var Z=l(ee,"number");return typeof Z=="bigint"?Z:N(Z)},N=function(ee){var Z=l(ee,"number"),Ae,U,W,le,he,ue,pe,fe;if(s(Z))throw S("Cannot convert a Symbol value to a number");if(typeof Z=="string"&&Z.length>2){if(Z=_(Z),Ae=E(Z,0),Ae===43||Ae===45){if(U=E(Z,2),U===88||U===120)return NaN}else if(Ae===48){switch(E(Z,1)){case 66:case 98:W=2,le=49;break;case 79:case 111:W=8,le=55;break;default:return+Z}for(he=I(Z,2),ue=he.length,pe=0;pe<ue;pe++)if(fe=E(he,pe),fe<48||fe>le)return NaN;return parseInt(he,W)}}return+Z};if(c(O,!F(" 0o1")||!F("0b1")||F("+0x1"))){for(var V=function(Z){var Ae=arguments.length<1?0:F(M(Z)),U=this;return r(T,U)&&d(function(){v(U)})?n(Object(Ae),U,V):Ae},H=a?p(F):"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(","),X=0,G;H.length>X;X++)o(F,G=H[X])&&!o(V,G)&&m(V,G,g(F,G));V.prototype=T,T.constructor=V,h(u,O,V)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/object-assign");a({target:"Object",stat:!0,forced:Object.assign!==u},{assign:u})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/object-to-array").entries;a({target:"Object",stat:!0},{entries:function(c){return u(c)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/native-symbol"),A=t("../internals/fails"),c=t("../internals/object-get-own-property-symbols"),h=t("../internals/to-object"),o=!u||A(function(){c.f(1)});a({target:"Object",stat:!0,forced:o},{getOwnPropertySymbols:function(r){var s=c.f;return s?s(h(r)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/to-object"),A=t("../internals/object-keys"),c=t("../internals/fails"),h=c(function(){A(1)});a({target:"Object",stat:!0,forced:h},{keys:function(n){return A(u(n))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(t,C,b){var a=t("../internals/to-string-tag-support"),u=t("../internals/redefine"),A=t("../internals/object-to-string");a||u(Object.prototype,"toString",A,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-call"),A=t("../internals/a-callable"),c=t("../internals/new-promise-capability"),h=t("../internals/perform"),o=t("../internals/iterate"),n=t("../internals/promise-statics-incorrect-iteration");a({target:"Promise",stat:!0,forced:n},{all:function(s){var l=this,d=c.f(l),p=d.resolve,g=d.reject,m=h(function(){var v=A(l.resolve),_=[],O=0,F=1;o(s,function(T){var S=O++,I=!1;F++,u(v,l,T).then(function(E){I||(I=!0,_[S]=E,--F||p(_))},g)}),--F||p(_)});return m.error&&g(m.value),d.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/is-pure"),A=t("../internals/promise-constructor-detection").CONSTRUCTOR,c=t("../internals/promise-native-constructor"),h=t("../internals/get-built-in"),o=t("../internals/is-callable"),n=t("../internals/redefine"),r=c&&c.prototype;if(a({target:"Promise",proto:!0,forced:A,real:!0},{catch:function(l){return this.then(void 0,l)}}),!u&&o(c)){var s=h("Promise").prototype.catch;r.catch!==s&&n(r,"catch",s,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/is-pure"),A=t("../internals/engine-is-node"),c=t("../internals/global"),h=t("../internals/function-call"),o=t("../internals/redefine"),n=t("../internals/redefine-all"),r=t("../internals/object-set-prototype-of"),s=t("../internals/set-to-string-tag"),l=t("../internals/set-species"),d=t("../internals/a-callable"),p=t("../internals/is-callable"),g=t("../internals/is-object"),m=t("../internals/an-instance"),v=t("../internals/species-constructor"),_=t("../internals/task").set,O=t("../internals/microtask"),F=t("../internals/host-report-errors"),T=t("../internals/perform"),S=t("../internals/queue"),I=t("../internals/internal-state"),E=t("../internals/promise-native-constructor"),M=t("../internals/promise-constructor-detection"),N=t("../internals/new-promise-capability"),V="Promise",H=M.CONSTRUCTOR,X=M.REJECTION_EVENT,G=M.SUBCLASSING,ee=I.getterFor(V),Z=I.set,Ae=E&&E.prototype,U=E,W=Ae,le=c.TypeError,he=c.document,ue=c.process,pe=N.f,fe=pe,ce=!!(he&&he.createEvent&&c.dispatchEvent),be="unhandledrejection",Ce="rejectionhandled",xe=0,Se=1,me=2,te=1,$=2,B,k,q,ne,Q=function(Ke){var Ne;return g(Ke)&&p(Ne=Ke.then)?Ne:!1},z=function(Ke,Ne){var Ue=Ne.value,Ye=Ne.state==Se,ze=Ye?Ke.ok:Ke.fail,Xe=Ke.resolve,qe=Ke.reject,Qe=Ke.domain,He,Ge,nt;try{ze?(Ye||(Ne.rejection===$&&Oe(Ne),Ne.rejection=te),ze===!0?He=Ue:(Qe&&Qe.enter(),He=ze(Ue),Qe&&(Qe.exit(),nt=!0)),He===Ke.promise?qe(le("Promise-chain cycle")):(Ge=Q(He))?h(Ge,He,Xe,qe):Xe(He)):qe(Ue)}catch(st){Qe&&!nt&&Qe.exit(),qe(st)}},Y=function(Ke,Ne){Ke.notified||(Ke.notified=!0,O(function(){for(var Ue=Ke.reactions,Ye;Ye=Ue.get();)z(Ye,Ke);Ke.notified=!1,Ne&&!Ke.rejection&&ge(Ke)}))},re=function(Ke,Ne,Ue){var Ye,ze;ce?(Ye=he.createEvent("Event"),Ye.promise=Ne,Ye.reason=Ue,Ye.initEvent(Ke,!1,!0),c.dispatchEvent(Ye)):Ye={promise:Ne,reason:Ue},!X&&(ze=c["on"+Ke])?ze(Ye):Ke===be&&F("Unhandled promise rejection",Ue)},ge=function(Ke){h(_,c,function(){var Ne=Ke.facade,Ue=Ke.value,Ye=Be(Ke),ze;if(Ye&&(ze=T(function(){A?ue.emit("unhandledRejection",Ue,Ne):re(be,Ne,Ue)}),Ke.rejection=A||Be(Ke)?$:te,ze.error))throw ze.value})},Be=function(Ke){return Ke.rejection!==te&&!Ke.parent},Oe=function(Ke){h(_,c,function(){var Ne=Ke.facade;A?ue.emit("rejectionHandled",Ne):re(Ce,Ne,Ke.value)})},Le=function(Ke,Ne,Ue){return function(Ye){Ke(Ne,Ye,Ue)}},Pe=function(Ke,Ne,Ue){Ke.done||(Ke.done=!0,Ue&&(Ke=Ue),Ke.value=Ne,Ke.state=me,Y(Ke,!0))},$e=function(Ke,Ne,Ue){if(!Ke.done){Ke.done=!0,Ue&&(Ke=Ue);try{if(Ke.facade===Ne)throw le("Promise can't be resolved itself");var Ye=Q(Ne);Ye?O(function(){var ze={done:!1};try{h(Ye,Ne,Le($e,ze,Ke),Le(Pe,ze,Ke))}catch(Xe){Pe(ze,Xe,Ke)}}):(Ke.value=Ne,Ke.state=Se,Y(Ke,!1))}catch(ze){Pe({done:!1},ze,Ke)}}};if(H&&(U=function(Ne){m(this,W),d(Ne),h(B,this);var Ue=ee(this);try{Ne(Le($e,Ue),Le(Pe,Ue))}catch(Ye){Pe(Ue,Ye)}},W=U.prototype,B=function(Ne){Z(this,{type:V,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:xe,value:void 0})},B.prototype=n(W,{then:function(Ne,Ue){var Ye=ee(this),ze=pe(v(this,U));return Ye.parent=!0,ze.ok=p(Ne)?Ne:!0,ze.fail=p(Ue)&&Ue,ze.domain=A?ue.domain:void 0,Ye.state==xe?Ye.reactions.add(ze):O(function(){z(ze,Ye)}),ze.promise}}),k=function(){var Ke=new B,Ne=ee(Ke);this.promise=Ke,this.resolve=Le($e,Ne),this.reject=Le(Pe,Ne)},N.f=pe=function(Ke){return Ke===U||Ke===q?new k(Ke):fe(Ke)},!u&&p(E)&&Ae!==Object.prototype)){ne=Ae.then,G||o(Ae,"then",function(Ne,Ue){var Ye=this;return new U(function(ze,Xe){h(ne,Ye,ze,Xe)}).then(Ne,Ue)},{unsafe:!0});try{delete Ae.constructor}catch(Ke){}r&&r(Ae,W)}a({global:!0,wrap:!0,forced:H},{Promise:U}),s(U,V,!1,!0),l(V)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(t,C,b){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-call"),A=t("../internals/a-callable"),c=t("../internals/new-promise-capability"),h=t("../internals/perform"),o=t("../internals/iterate"),n=t("../internals/promise-statics-incorrect-iteration");a({target:"Promise",stat:!0,forced:n},{race:function(s){var l=this,d=c.f(l),p=d.reject,g=h(function(){var m=A(l.resolve);o(s,function(v){u(m,l,v).then(d.resolve,p)})});return g.error&&p(g.value),d.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-call"),A=t("../internals/new-promise-capability"),c=t("../internals/promise-constructor-detection").CONSTRUCTOR;a({target:"Promise",stat:!0,forced:c},{reject:function(o){var n=A.f(this);return u(n.reject,void 0,o),n.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/get-built-in"),A=t("../internals/is-pure"),c=t("../internals/promise-native-constructor"),h=t("../internals/promise-constructor-detection").CONSTRUCTOR,o=t("../internals/promise-resolve"),n=u("Promise"),r=A&&!h;a({target:"Promise",stat:!0,forced:A||h},{resolve:function(l){return o(r&&this===n?c:this,l)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(t,C,b){var a=t("../internals/descriptors"),u=t("../internals/global"),A=t("../internals/function-uncurry-this"),c=t("../internals/is-forced"),h=t("../internals/inherit-if-required"),o=t("../internals/create-non-enumerable-property"),n=t("../internals/object-get-own-property-names").f,r=t("../internals/object-is-prototype-of"),s=t("../internals/is-regexp"),l=t("../internals/to-string"),d=t("../internals/regexp-get-flags"),p=t("../internals/regexp-sticky-helpers"),g=t("../internals/proxy-accessor"),m=t("../internals/redefine"),v=t("../internals/fails"),_=t("../internals/has-own-property"),O=t("../internals/internal-state").enforce,F=t("../internals/set-species"),T=t("../internals/well-known-symbol"),S=t("../internals/regexp-unsupported-dot-all"),I=t("../internals/regexp-unsupported-ncg"),E=T("match"),M=u.RegExp,N=M.prototype,V=u.SyntaxError,H=A(N.exec),X=A("".charAt),G=A("".replace),ee=A("".indexOf),Z=A("".slice),Ae=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,U=/a/g,W=/a/g,le=new M(U)!==U,he=p.MISSED_STICKY,ue=p.UNSUPPORTED_Y,pe=a&&(!le||he||S||I||v(function(){return W[E]=!1,M(U)!=U||M(W)==W||M(U,"i")!="/a/i"})),fe=function(Se){for(var me=Se.length,te=0,$="",B=!1,k;te<=me;te++){if(k=X(Se,te),k==="\\"){$+=k+X(Se,++te);continue}!B&&k==="."?$+="[\\s\\S]":(k==="["?B=!0:k==="]"&&(B=!1),$+=k)}return $},ce=function(Se){for(var me=Se.length,te=0,$="",B=[],k={},q=!1,ne=!1,Q=0,z="",Y;te<=me;te++){if(Y=X(Se,te),Y==="\\")Y=Y+X(Se,++te);else if(Y==="]")q=!1;else if(!q)switch(!0){case Y==="[":q=!0;break;case Y==="(":H(Ae,Z(Se,te+1))&&(te+=2,ne=!0),$+=Y,Q++;continue;case(Y===">"&&ne):if(z===""||_(k,z))throw new V("Invalid capture group name");k[z]=!0,B[B.length]=[z,Q],ne=!1,z="";continue}ne?z+=Y:$+=Y}return[$,B]};if(c("RegExp",pe)){for(var be=function(me,te){var $=r(N,this),B=s(me),k=te===void 0,q=[],ne=me,Q,z,Y,re,ge,Be;if(!$&&B&&k&&me.constructor===be)return me;if((B||r(N,me))&&(me=me.source,k&&(te=d(ne))),me=me===void 0?"":l(me),te=te===void 0?"":l(te),ne=me,S&&"dotAll"in U&&(z=!!te&&ee(te,"s")>-1,z&&(te=G(te,/s/g,""))),Q=te,he&&"sticky"in U&&(Y=!!te&&ee(te,"y")>-1,Y&&ue&&(te=G(te,/y/g,""))),I&&(re=ce(me),me=re[0],q=re[1]),ge=h(M(me,te),$?this:N,be),(z||Y||q.length)&&(Be=O(ge),z&&(Be.dotAll=!0,Be.raw=be(fe(me),Q)),Y&&(Be.sticky=!0),q.length&&(Be.groups=q)),me!==ne)try{o(ge,"source",ne===""?"(?:)":ne)}catch(Oe){}return ge},Ce=n(M),xe=0;Ce.length>xe;)g(be,M,Ce[xe++]);N.constructor=be,be.prototype=N,m(u,"RegExp",be)}F("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/regexp-exec");a({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(t,C,b){"use strict";var a=t("../internals/function-name").PROPER,u=t("../internals/redefine"),A=t("../internals/an-object"),c=t("../internals/to-string"),h=t("../internals/fails"),o=t("../internals/regexp-get-flags"),n="toString",r=RegExp.prototype,s=r[n],l=h(function(){return s.call({source:"a",flags:"b"})!="/a/b"}),d=a&&s.name!=n;(l||d)&&u(RegExp.prototype,n,function(){var g=A(this),m=c(g.source),v=c(o(g));return"/"+m+"/"+v},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/function-uncurry-this"),A=t("../internals/not-a-regexp"),c=t("../internals/require-object-coercible"),h=t("../internals/to-string"),o=t("../internals/correct-is-regexp-logic"),n=u("".indexOf);a({target:"String",proto:!0,forced:!o("includes")},{includes:function(s){return!!~n(h(c(this)),h(A(s)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(t,C,b){"use strict";var a=t("../internals/string-multibyte").charAt,u=t("../internals/to-string"),A=t("../internals/internal-state"),c=t("../internals/define-iterator"),h="String Iterator",o=A.set,n=A.getterFor(h);c(String,"String",function(r){o(this,{type:h,string:u(r),index:0})},function(){var s=n(this),l=s.string,d=s.index,p;return d>=l.length?{value:void 0,done:!0}:(p=a(l,d),s.index+=p.length,{value:p,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(t,C,b){"use strict";var a=t("../internals/function-call"),u=t("../internals/fix-regexp-well-known-symbol-logic"),A=t("../internals/an-object"),c=t("../internals/to-length"),h=t("../internals/to-string"),o=t("../internals/require-object-coercible"),n=t("../internals/get-method"),r=t("../internals/advance-string-index"),s=t("../internals/regexp-exec-abstract");u("match",function(l,d,p){return[function(m){var v=o(this),_=m==null?void 0:n(m,l);return _?a(_,m,v):new RegExp(m)[l](h(v))},function(g){var m=A(this),v=h(g),_=p(d,m,v);if(_.done)return _.value;if(!m.global)return s(m,v);var O=m.unicode;m.lastIndex=0;for(var F=[],T=0,S;(S=s(m,v))!==null;){var I=h(S[0]);F[T]=I,I===""&&(m.lastIndex=r(v,c(m.lastIndex),O)),T++}return T===0?null:F}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(t,C,b){"use strict";var a=t("../internals/function-apply"),u=t("../internals/function-call"),A=t("../internals/function-uncurry-this"),c=t("../internals/fix-regexp-well-known-symbol-logic"),h=t("../internals/fails"),o=t("../internals/an-object"),n=t("../internals/is-callable"),r=t("../internals/to-integer-or-infinity"),s=t("../internals/to-length"),l=t("../internals/to-string"),d=t("../internals/require-object-coercible"),p=t("../internals/advance-string-index"),g=t("../internals/get-method"),m=t("../internals/get-substitution"),v=t("../internals/regexp-exec-abstract"),_=t("../internals/well-known-symbol"),O=_("replace"),F=Math.max,T=Math.min,S=A([].concat),I=A([].push),E=A("".indexOf),M=A("".slice),N=function(G){return G===void 0?G:String(G)},V=function(){return"a".replace(/./,"$0")==="$0"}(),H=function(){return/./[O]?/./[O]("a","$0")==="":!1}(),X=!h(function(){var G=/./;return G.exec=function(){var ee=[];return ee.groups={a:"7"},ee},"".replace(G,"$<a>")!=="7"});c("replace",function(G,ee,Z){var Ae=H?"$":"$0";return[function(W,le){var he=d(this),ue=W==null?void 0:g(W,O);return ue?u(ue,W,he,le):u(ee,l(he),W,le)},function(U,W){var le=o(this),he=l(U);if(typeof W=="string"&&E(W,Ae)===-1&&E(W,"$<")===-1){var ue=Z(ee,le,he,W);if(ue.done)return ue.value}var pe=n(W);pe||(W=l(W));var fe=le.global;if(fe){var ce=le.unicode;le.lastIndex=0}for(var be=[];;){var Ce=v(le,he);if(Ce===null||(I(be,Ce),!fe))break;var xe=l(Ce[0]);xe===""&&(le.lastIndex=p(he,s(le.lastIndex),ce))}for(var Se="",me=0,te=0;te<be.length;te++){Ce=be[te];for(var $=l(Ce[0]),B=F(T(r(Ce.index),he.length),0),k=[],q=1;q<Ce.length;q++)I(k,N(Ce[q]));var ne=Ce.groups;if(pe){var Q=S([$],k,B,he);ne!==void 0&&I(Q,ne);var z=l(a(W,void 0,Q))}else z=m($,he,B,k,ne,W);B>=me&&(Se+=M(he,me,B)+z,me=B+$.length)}return Se+M(he,me)}]},!X||!V||H)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(t,C,b){"use strict";var a=t("../internals/function-call"),u=t("../internals/fix-regexp-well-known-symbol-logic"),A=t("../internals/an-object"),c=t("../internals/require-object-coercible"),h=t("../internals/same-value"),o=t("../internals/to-string"),n=t("../internals/get-method"),r=t("../internals/regexp-exec-abstract");u("search",function(s,l,d){return[function(g){var m=c(this),v=g==null?void 0:n(g,s);return v?a(v,g,m):new RegExp(g)[s](o(m))},function(p){var g=A(this),m=o(p),v=d(l,g,m);if(v.done)return v.value;var _=g.lastIndex;h(_,0)||(g.lastIndex=0);var O=r(g,m);return h(g.lastIndex,_)||(g.lastIndex=_),O===null?-1:O.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(t,C,b){"use strict";var a=t("../internals/function-apply"),u=t("../internals/function-call"),A=t("../internals/function-uncurry-this"),c=t("../internals/fix-regexp-well-known-symbol-logic"),h=t("../internals/is-regexp"),o=t("../internals/an-object"),n=t("../internals/require-object-coercible"),r=t("../internals/species-constructor"),s=t("../internals/advance-string-index"),l=t("../internals/to-length"),d=t("../internals/to-string"),p=t("../internals/get-method"),g=t("../internals/array-slice-simple"),m=t("../internals/regexp-exec-abstract"),v=t("../internals/regexp-exec"),_=t("../internals/regexp-sticky-helpers"),O=t("../internals/fails"),F=_.UNSUPPORTED_Y,T=4294967295,S=Math.min,I=[].push,E=A(/./.exec),M=A(I),N=A("".slice),V=!O(function(){var H=/(?:)/,X=H.exec;H.exec=function(){return X.apply(this,arguments)};var G="ab".split(H);return G.length!==2||G[0]!=="a"||G[1]!=="b"});c("split",function(H,X,G){var ee;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ee=function(Z,Ae){var U=d(n(this)),W=Ae===void 0?T:Ae>>>0;if(W===0)return[];if(Z===void 0)return[U];if(!h(Z))return u(X,U,Z,W);for(var le=[],he=(Z.ignoreCase?"i":"")+(Z.multiline?"m":"")+(Z.unicode?"u":"")+(Z.sticky?"y":""),ue=0,pe=new RegExp(Z.source,he+"g"),fe,ce,be;(fe=u(v,pe,U))&&(ce=pe.lastIndex,!(ce>ue&&(M(le,N(U,ue,fe.index)),fe.length>1&&fe.index<U.length&&a(I,le,g(fe,1)),be=fe[0].length,ue=ce,le.length>=W)));)pe.lastIndex===fe.index&&pe.lastIndex++;return ue===U.length?(be||!E(pe,""))&&M(le,""):M(le,N(U,ue)),le.length>W?g(le,0,W):le}:"0".split(void 0,0).length?ee=function(Z,Ae){return Z===void 0&&Ae===0?[]:u(X,this,Z,Ae)}:ee=X,[function(Ae,U){var W=n(this),le=Ae==null?void 0:p(Ae,H);return le?u(le,Ae,W,U):u(ee,d(W),Ae,U)},function(Z,Ae){var U=o(this),W=d(Z),le=G(ee,U,W,Ae,ee!==X);if(le.done)return le.value;var he=r(U,RegExp),ue=U.unicode,pe=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(F?"g":"y"),fe=new he(F?"^(?:"+U.source+")":U,pe),ce=Ae===void 0?T:Ae>>>0;if(ce===0)return[];if(W.length===0)return m(fe,W)===null?[W]:[];for(var be=0,Ce=0,xe=[];Ce<W.length;){fe.lastIndex=F?0:Ce;var Se=m(fe,F?N(W,Ce):W),me;if(Se===null||(me=S(l(fe.lastIndex+(F?Ce:0)),W.length))===be)Ce=s(W,Ce,ue);else{if(M(xe,N(W,be,Ce)),xe.length===ce)return xe;for(var te=1;te<=Se.length-1;te++)if(M(xe,Se[te]),xe.length===ce)return xe;Ce=be=me}}return M(xe,N(W,be)),xe}]},!V,F)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/string-trim").trim,A=t("../internals/string-trim-forced");a({target:"String",proto:!0,forced:A("trim")},{trim:function(){return u(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/global"),A=t("../internals/function-call"),c=t("../internals/function-uncurry-this"),h=t("../internals/is-pure"),o=t("../internals/descriptors"),n=t("../internals/native-symbol"),r=t("../internals/fails"),s=t("../internals/has-own-property"),l=t("../internals/object-is-prototype-of"),d=t("../internals/an-object"),p=t("../internals/to-indexed-object"),g=t("../internals/to-property-key"),m=t("../internals/to-string"),v=t("../internals/create-property-descriptor"),_=t("../internals/object-create"),O=t("../internals/object-keys"),F=t("../internals/object-get-own-property-names"),T=t("../internals/object-get-own-property-names-external"),S=t("../internals/object-get-own-property-symbols"),I=t("../internals/object-get-own-property-descriptor"),E=t("../internals/object-define-property"),M=t("../internals/object-define-properties"),N=t("../internals/object-property-is-enumerable"),V=t("../internals/redefine"),H=t("../internals/shared"),X=t("../internals/shared-key"),G=t("../internals/hidden-keys"),ee=t("../internals/uid"),Z=t("../internals/well-known-symbol"),Ae=t("../internals/well-known-symbol-wrapped"),U=t("../internals/define-well-known-symbol"),W=t("../internals/symbol-define-to-primitive"),le=t("../internals/set-to-string-tag"),he=t("../internals/internal-state"),ue=t("../internals/array-iteration").forEach,pe=X("hidden"),fe="Symbol",ce="prototype",be=he.set,Ce=he.getterFor(fe),xe=Object[ce],Se=u.Symbol,me=Se&&Se[ce],te=u.TypeError,$=u.QObject,B=I.f,k=E.f,q=T.f,ne=N.f,Q=c([].push),z=H("symbols"),Y=H("op-symbols"),re=H("wks"),ge=!$||!$[ce]||!$[ce].findChild,Be=o&&r(function(){return _(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a!=7})?function(ze,Xe,qe){var Qe=B(xe,Xe);Qe&&delete xe[Xe],k(ze,Xe,qe),Qe&&ze!==xe&&k(xe,Xe,Qe)}:k,Oe=function(ze,Xe){var qe=z[ze]=_(me);return be(qe,{type:fe,tag:ze,description:Xe}),o||(qe.description=Xe),qe},Le=function(Xe,qe,Qe){Xe===xe&&Le(Y,qe,Qe),d(Xe);var He=g(qe);return d(Qe),s(z,He)?(Qe.enumerable?(s(Xe,pe)&&Xe[pe][He]&&(Xe[pe][He]=!1),Qe=_(Qe,{enumerable:v(0,!1)})):(s(Xe,pe)||k(Xe,pe,v(1,{})),Xe[pe][He]=!0),Be(Xe,He,Qe)):k(Xe,He,Qe)},Pe=function(Xe,qe){d(Xe);var Qe=p(qe),He=O(Qe).concat(Ye(Qe));return ue(He,function(Ge){(!o||A(Ke,Qe,Ge))&&Le(Xe,Ge,Qe[Ge])}),Xe},$e=function(Xe,qe){return qe===void 0?_(Xe):Pe(_(Xe),qe)},Ke=function(Xe){var qe=g(Xe),Qe=A(ne,this,qe);return this===xe&&s(z,qe)&&!s(Y,qe)?!1:Qe||!s(this,qe)||!s(z,qe)||s(this,pe)&&this[pe][qe]?Qe:!0},Ne=function(Xe,qe){var Qe=p(Xe),He=g(qe);if(!(Qe===xe&&s(z,He)&&!s(Y,He))){var Ge=B(Qe,He);return Ge&&s(z,He)&&!(s(Qe,pe)&&Qe[pe][He])&&(Ge.enumerable=!0),Ge}},Ue=function(Xe){var qe=q(p(Xe)),Qe=[];return ue(qe,function(He){!s(z,He)&&!s(G,He)&&Q(Qe,He)}),Qe},Ye=function(ze){var Xe=ze===xe,qe=q(Xe?Y:p(ze)),Qe=[];return ue(qe,function(He){s(z,He)&&(!Xe||s(xe,He))&&Q(Qe,z[He])}),Qe};n||(Se=function(){if(l(me,this))throw te("Symbol is not a constructor");var Xe=!arguments.length||arguments[0]===void 0?void 0:m(arguments[0]),qe=ee(Xe),Qe=function(He){this===xe&&A(Qe,Y,He),s(this,pe)&&s(this[pe],qe)&&(this[pe][qe]=!1),Be(this,qe,v(1,He))};return o&&ge&&Be(xe,qe,{configurable:!0,set:Qe}),Oe(qe,Xe)},me=Se[ce],V(me,"toString",function(){return Ce(this).tag}),V(Se,"withoutSetter",function(ze){return Oe(ee(ze),ze)}),N.f=Ke,E.f=Le,M.f=Pe,I.f=Ne,F.f=T.f=Ue,S.f=Ye,Ae.f=function(ze){return Oe(Z(ze),ze)},o&&(k(me,"description",{configurable:!0,get:function(){return Ce(this).description}}),h||V(xe,"propertyIsEnumerable",Ke,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!n,sham:!n},{Symbol:Se}),ue(O(re),function(ze){U(ze)}),a({target:fe,stat:!0,forced:!n},{useSetter:function(){ge=!0},useSimple:function(){ge=!1}}),a({target:"Object",stat:!0,forced:!n,sham:!o},{create:$e,defineProperty:Le,defineProperties:Pe,getOwnPropertyDescriptor:Ne}),a({target:"Object",stat:!0,forced:!n},{getOwnPropertyNames:Ue}),W(),le(Se,fe),G[pe]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(t,C,b){"use strict";var a=t("../internals/export"),u=t("../internals/descriptors"),A=t("../internals/global"),c=t("../internals/function-uncurry-this"),h=t("../internals/has-own-property"),o=t("../internals/is-callable"),n=t("../internals/object-is-prototype-of"),r=t("../internals/to-string"),s=t("../internals/object-define-property").f,l=t("../internals/copy-constructor-properties"),d=A.Symbol,p=d&&d.prototype;if(u&&o(d)&&(!("description"in p)||d().description!==void 0)){var g={},m=function(){var E=arguments.length<1||arguments[0]===void 0?void 0:r(arguments[0]),M=n(p,this)?new d(E):E===void 0?d():d(E);return E===""&&(g[M]=!0),M};l(m,d),m.prototype=p,p.constructor=m;var v=String(d("test"))=="Symbol(test)",_=c(p.toString),O=c(p.valueOf),F=/^Symbol\((.*)\)[^)]+$/,T=c("".replace),S=c("".slice);s(p,"description",{configurable:!0,get:function(){var E=O(this),M=_(E);if(h(g,E))return"";var N=v?S(M,7,-1):T(M,F,"$1");return N===""?void 0:N}}),a({global:!0,forced:!0},{Symbol:m})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/get-built-in"),A=t("../internals/has-own-property"),c=t("../internals/to-string"),h=t("../internals/shared"),o=t("../internals/native-symbol-registry"),n=h("string-to-symbol-registry"),r=h("symbol-to-string-registry");a({target:"Symbol",stat:!0,forced:!o},{for:function(s){var l=c(s);if(A(n,l))return n[l];var d=u("Symbol")(l);return n[l]=d,r[d]=l,d}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(t,C,b){var a=t("../internals/define-well-known-symbol");a("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(t,C,b){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(t,C,b){var a=t("../internals/export"),u=t("../internals/has-own-property"),A=t("../internals/is-symbol"),c=t("../internals/try-to-string"),h=t("../internals/shared"),o=t("../internals/native-symbol-registry"),n=h("symbol-to-string-registry");a({target:"Symbol",stat:!0,forced:!o},{keyFor:function(s){if(!A(s))throw TypeError(c(s)+" is not a symbol");if(u(n,s))return n[s]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(t,C,b){"use strict";var a=t("../internals/function-uncurry-this"),u=t("../internals/array-buffer-view-core"),A=t("../internals/array-copy-within"),c=a(A),h=u.aTypedArray,o=u.exportTypedArrayMethod;o("copyWithin",function(r,s){return c(h(this),r,s,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").every,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("every",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/function-call"),A=t("../internals/array-fill"),c=a.aTypedArray,h=a.exportTypedArrayMethod;h("fill",function(n){var r=arguments.length;return u(A,c(this),n,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").filter,A=t("../internals/typed-array-from-species-and-list"),c=a.aTypedArray,h=a.exportTypedArrayMethod;h("filter",function(n){var r=u(c(this),n,arguments.length>1?arguments[1]:void 0);return A(this,r)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").findIndex,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("findIndex",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").find,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("find",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").forEach,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("forEach",function(o){u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-includes").includes,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("includes",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-includes").indexOf,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("indexOf",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/fails"),A=t("../internals/function-uncurry-this"),c=t("../internals/array-buffer-view-core"),h=t("../modules/es.array.iterator"),o=t("../internals/well-known-symbol"),n=o("iterator"),r=a.Uint8Array,s=A(h.values),l=A(h.keys),d=A(h.entries),p=c.aTypedArray,g=c.exportTypedArrayMethod,m=r&&r.prototype,v=!u(function(){m[n].call([1])}),_=!!m&&m.values&&m[n]===m.values&&m.values.name==="values",O=function(){return s(p(this))};g("entries",function(){return d(p(this))},v),g("keys",function(){return l(p(this))},v),g("values",O,v||!_,{name:"values"}),g(n,O,v||!_,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/function-uncurry-this"),A=a.aTypedArray,c=a.exportTypedArrayMethod,h=u([].join);c("join",function(n){return h(A(this),n)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/function-apply"),A=t("../internals/array-last-index-of"),c=a.aTypedArray,h=a.exportTypedArrayMethod;h("lastIndexOf",function(n){var r=arguments.length;return u(A,c(this),r>1?[n,arguments[1]]:[n])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").map,A=t("../internals/typed-array-species-constructor"),c=a.aTypedArray,h=a.exportTypedArrayMethod;h("map",function(n){return u(c(this),n,arguments.length>1?arguments[1]:void 0,function(r,s){return new(A(r))(s)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-reduce").right,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduceRight",function(o){var n=arguments.length;return u(A(this),o,n,n>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-reduce").left,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduce",function(o){var n=arguments.length;return u(A(this),o,n,n>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=a.aTypedArray,A=a.exportTypedArrayMethod,c=Math.floor;A("reverse",function(){for(var o=this,n=u(o).length,r=c(n/2),s=0,l;s<r;)l=o[s],o[s++]=o[--n],o[n]=l;return o})},{"../internals/array-buffer-view-core":103}],331:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/function-call"),A=t("../internals/array-buffer-view-core"),c=t("../internals/length-of-array-like"),h=t("../internals/to-offset"),o=t("../internals/to-object"),n=t("../internals/fails"),r=a.RangeError,s=a.Int8Array,l=s&&s.prototype,d=l&&l.set,p=A.aTypedArray,g=A.exportTypedArrayMethod,m=!n(function(){var _=new Uint8ClampedArray(2);return u(d,_,{length:1,0:3},1),_[1]!==3}),v=m&&A.NATIVE_ARRAY_BUFFER_VIEWS&&n(function(){var _=new s(2);return _.set(1),_.set("2",1),_[0]!==0||_[1]!==2});g("set",function(O){p(this);var F=h(arguments.length>1?arguments[1]:void 0,1),T=o(O);if(m)return u(d,this,T,F);var S=this.length,I=c(T),E=0;if(I+F>S)throw r("Wrong length");for(;E<I;)this[F+E]=T[E++]},!m||v)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/typed-array-species-constructor"),A=t("../internals/fails"),c=t("../internals/array-slice"),h=a.aTypedArray,o=a.exportTypedArrayMethod,n=A(function(){new Int8Array(1).slice()});o("slice",function(s,l){for(var d=c(h(this),s,l),p=u(this),g=0,m=d.length,v=new p(m);m>g;)v[g]=d[g++];return v},n)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/array-iteration").some,A=a.aTypedArray,c=a.exportTypedArrayMethod;c("some",function(o){return u(A(this),o,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/function-uncurry-this"),A=t("../internals/fails"),c=t("../internals/a-callable"),h=t("../internals/array-sort"),o=t("../internals/array-buffer-view-core"),n=t("../internals/engine-ff-version"),r=t("../internals/engine-is-ie-or-edge"),s=t("../internals/engine-v8-version"),l=t("../internals/engine-webkit-version"),d=o.aTypedArray,p=o.exportTypedArrayMethod,g=a.Uint16Array,m=g&&u(g.prototype.sort),v=!!m&&!(A(function(){m(new g(2),null)})&&A(function(){m(new g(2),{})})),_=!!m&&!A(function(){if(s)return s<74;if(n)return n<67;if(r)return!0;if(l)return l<602;var F=new g(516),T=Array(516),S,I;for(S=0;S<516;S++)I=S%4,F[S]=515-S,T[S]=S-2*I+3;for(m(F,function(E,M){return(E/4|0)-(M/4|0)}),S=0;S<516;S++)if(F[S]!==T[S])return!0}),O=function(F){return function(T,S){return F!==void 0?+F(T,S)||0:S!==S?-1:T!==T?1:T===0&&S===0?1/T>0&&1/S<0?1:-1:T>S}};p("sort",function(T){return T!==void 0&&c(T),_?m(this,T):h(d(this),O(T))},!_||v)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core"),u=t("../internals/to-length"),A=t("../internals/to-absolute-index"),c=t("../internals/typed-array-species-constructor"),h=a.aTypedArray,o=a.exportTypedArrayMethod;o("subarray",function(r,s){var l=h(this),d=l.length,p=A(r,d),g=c(l);return new g(l.buffer,l.byteOffset+p*l.BYTES_PER_ELEMENT,u((s===void 0?d:A(s,d))-p))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(t,C,b){"use strict";var a=t("../internals/global"),u=t("../internals/function-apply"),A=t("../internals/array-buffer-view-core"),c=t("../internals/fails"),h=t("../internals/array-slice"),o=a.Int8Array,n=A.aTypedArray,r=A.exportTypedArrayMethod,s=[].toLocaleString,l=!!o&&c(function(){s.call(new o(1))}),d=c(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!c(function(){o.prototype.toLocaleString.call([1,2])});r("toLocaleString",function(){return u(s,l?h(n(this)):n(this),h(arguments))},d)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(t,C,b){"use strict";var a=t("../internals/array-buffer-view-core").exportTypedArrayMethod,u=t("../internals/fails"),A=t("../internals/global"),c=t("../internals/function-uncurry-this"),h=A.Uint8Array,o=h&&h.prototype||{},n=[].toString,r=c([].join);u(function(){n.call({})})&&(n=function(){return r(this)});var s=o.toString!=n;a("toString",n,s)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(t,C,b){var a=t("../internals/typed-array-constructor");a("Uint8",function(u){return function(c,h,o){return u(this,c,h,o)}})},{"../internals/typed-array-constructor":258}],339:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/dom-iterables"),A=t("../internals/dom-token-list-prototype"),c=t("../internals/array-for-each"),h=t("../internals/create-non-enumerable-property"),o=function(r){if(r&&r.forEach!==c)try{h(r,"forEach",c)}catch(s){r.forEach=c}};for(var n in u)u[n]&&o(a[n]&&a[n].prototype);o(A)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(t,C,b){var a=t("../internals/global"),u=t("../internals/dom-iterables"),A=t("../internals/dom-token-list-prototype"),c=t("../modules/es.array.iterator"),h=t("../internals/create-non-enumerable-property"),o=t("../internals/well-known-symbol"),n=o("iterator"),r=o("toStringTag"),s=c.values,l=function(p,g){if(p){if(p[n]!==s)try{h(p,n,s)}catch(v){p[n]=s}if(p[r]||h(p,r,g),u[g]){for(var m in c)if(p[m]!==c[m])try{h(p,m,c[m])}catch(v){p[m]=c[m]}}}};for(var d in u)l(a[d]&&a[d].prototype,d);l(A,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(t,C,b){function a(_){return Array.isArray?Array.isArray(_):v(_)==="[object Array]"}b.isArray=a;function u(_){return typeof _=="boolean"}b.isBoolean=u;function A(_){return _===null}b.isNull=A;function c(_){return _==null}b.isNullOrUndefined=c;function h(_){return typeof _=="number"}b.isNumber=h;function o(_){return typeof _=="string"}b.isString=o;function n(_){return typeof _=="symbol"}b.isSymbol=n;function r(_){return _===void 0}b.isUndefined=r;function s(_){return v(_)==="[object RegExp]"}b.isRegExp=s;function l(_){return typeof _=="object"&&_!==null}b.isObject=l;function d(_){return v(_)==="[object Date]"}b.isDate=d;function p(_){return v(_)==="[object Error]"||_ instanceof Error}b.isError=p;function g(_){return typeof _=="function"}b.isFunction=g;function m(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||typeof _=="symbol"||typeof _=="undefined"}b.isPrimitive=m,b.isBuffer=t("buffer").Buffer.isBuffer;function v(_){return Object.prototype.toString.call(_)}},{buffer:90}],342:[function(t,C,b){(function(a){"use strict";var u=function(){var n=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(l,d,p,g){if(arguments.length===1&&o(l)==="string"&&!/\d/.test(l)&&(d=l,l=void 0),l=l||new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");d=String(u.masks[d]||d||u.masks.default);var m=d.slice(0,4);(m==="UTC:"||m==="GMT:")&&(d=d.slice(4),p=!0,m==="GMT:"&&(g=!0));var v=p?"getUTC":"get",_=l[v+"Date"](),O=l[v+"Day"](),F=l[v+"Month"](),T=l[v+"FullYear"](),S=l[v+"Hours"](),I=l[v+"Minutes"](),E=l[v+"Seconds"](),M=l[v+"Milliseconds"](),N=p?0:l.getTimezoneOffset(),V=c(l),H=h(l),X={d:_,dd:A(_),ddd:u.i18n.dayNames[O],dddd:u.i18n.dayNames[O+7],m:F+1,mm:A(F+1),mmm:u.i18n.monthNames[F],mmmm:u.i18n.monthNames[F+12],yy:String(T).slice(2),yyyy:T,h:S%12||12,hh:A(S%12||12),H:S,HH:A(S),M:I,MM:A(I),s:E,ss:A(E),l:A(M,3),L:A(Math.round(M/10)),t:S<12?"a":"p",tt:S<12?"am":"pm",T:S<12?"A":"P",TT:S<12?"AM":"PM",Z:g?"GMT":p?"UTC":(String(l).match(r)||[""]).pop().replace(s,""),o:(N>0?"-":"+")+A(Math.floor(Math.abs(N)/60)*100+Math.abs(N)%60,4),S:["th","st","nd","rd"][_%10>3?0:(_%100-_%10!=10)*_%10],W:V,N:H};return d.replace(n,function(G){return G in X?X[G]:G.slice(1,G.length-1)})}}();u.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"},u.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"]};function A(n,r){for(n=String(n),r=r||2;n.length<r;)n="0"+n;return n}function c(n){var r=new Date(n.getFullYear(),n.getMonth(),n.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var s=new Date(r.getFullYear(),0,4);s.setDate(s.getDate()-(s.getDay()+6)%7+3);var l=r.getTimezoneOffset()-s.getTimezoneOffset();r.setHours(r.getHours()-l);var d=(r-s)/(864e5*7);return 1+Math.floor(d)}function h(n){var r=n.getDay();return r===0&&(r=7),r}function o(n){return n===null?"null":n===void 0?"undefined":typeof n!="object"?typeof n:Array.isArray(n)?"array":{}.toString.call(n).slice(8,-1).toLowerCase()}typeof J=="function"&&J.amd?J(function(){return u}):typeof b=="object"?C.exports=u:a.dateFormat=u})(this)},{}],343:[function(t,C,b){"use strict";var a=/["'&<>]/;C.exports=u;function u(A){var c=""+A,h=a.exec(c);if(!h)return c;var o,n="",r=0,s=0;for(r=h.index;r<c.length;r++){switch(c.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==r&&(n+=c.substring(s,r)),s=r+1,n+=o}return s!==r?n+c.substring(s,r):n}},{}],344:[function(t,C,b){"use strict";var a=typeof Reflect=="object"?Reflect:null,u=a&&typeof a.apply=="function"?a.apply:function(E,M,N){return Function.prototype.apply.call(E,M,N)},A;a&&typeof a.ownKeys=="function"?A=a.ownKeys:Object.getOwnPropertySymbols?A=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:A=function(E){return Object.getOwnPropertyNames(E)};function c(I){console&&console.warn&&console.warn(I)}var h=Number.isNaN||function(E){return E!==E};function o(){o.init.call(this)}C.exports=o,C.exports.once=F,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var n=10;function r(I){if(typeof I!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof I)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return n},set:function(I){if(typeof I!="number"||I<0||h(I))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+I+".");n=I}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||h(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function s(I){return I._maxListeners===void 0?o.defaultMaxListeners:I._maxListeners}o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(E){for(var M=[],N=1;N<arguments.length;N++)M.push(arguments[N]);var V=E==="error",H=this._events;if(H!==void 0)V=V&&H.error===void 0;else if(!V)return!1;if(V){var X;if(M.length>0&&(X=M[0]),X instanceof Error)throw X;var G=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw G.context=X,G}var ee=H[E];if(ee===void 0)return!1;if(typeof ee=="function")u(ee,this,M);else for(var Z=ee.length,Ae=v(ee,Z),N=0;N<Z;++N)u(Ae[N],this,M);return!0};function l(I,E,M,N){var V,H,X;if(r(M),H=I._events,H===void 0?(H=I._events=Object.create(null),I._eventsCount=0):(H.newListener!==void 0&&(I.emit("newListener",E,M.listener?M.listener:M),H=I._events),X=H[E]),X===void 0)X=H[E]=M,++I._eventsCount;else if(typeof X=="function"?X=H[E]=N?[M,X]:[X,M]:N?X.unshift(M):X.push(M),V=s(I),V>0&&X.length>V&&!X.warned){X.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=I,G.type=E,G.count=X.length,c(G)}return I}o.prototype.addListener=function(E,M){return l(this,E,M,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,M){return l(this,E,M,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(I,E,M){var N={fired:!1,wrapFn:void 0,target:I,type:E,listener:M},V=d.bind(N);return V.listener=M,N.wrapFn=V,V}o.prototype.once=function(E,M){return r(M),this.on(E,p(this,E,M)),this},o.prototype.prependOnceListener=function(E,M){return r(M),this.prependListener(E,p(this,E,M)),this},o.prototype.removeListener=function(E,M){var N,V,H,X,G;if(r(M),V=this._events,V===void 0)return this;if(N=V[E],N===void 0)return this;if(N===M||N.listener===M)--this._eventsCount===0?this._events=Object.create(null):(delete V[E],V.removeListener&&this.emit("removeListener",E,N.listener||M));else if(typeof N!="function"){for(H=-1,X=N.length-1;X>=0;X--)if(N[X]===M||N[X].listener===M){G=N[X].listener,H=X;break}if(H<0)return this;H===0?N.shift():_(N,H),N.length===1&&(V[E]=N[0]),V.removeListener!==void 0&&this.emit("removeListener",E,G||M)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var M,N,V;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[E]),this;if(arguments.length===0){var H=Object.keys(N),X;for(V=0;V<H.length;++V)X=H[V],X!=="removeListener"&&this.removeAllListeners(X);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(M=N[E],typeof M=="function")this.removeListener(E,M);else if(M!==void 0)for(V=M.length-1;V>=0;V--)this.removeListener(E,M[V]);return this};function g(I,E,M){var N=I._events;if(N===void 0)return[];var V=N[E];return V===void 0?[]:typeof V=="function"?M?[V.listener||V]:[V]:M?O(V):v(V,V.length)}o.prototype.listeners=function(E){return g(this,E,!0)},o.prototype.rawListeners=function(E){return g(this,E,!1)},o.listenerCount=function(I,E){return typeof I.listenerCount=="function"?I.listenerCount(E):m.call(I,E)},o.prototype.listenerCount=m;function m(I){var E=this._events;if(E!==void 0){var M=E[I];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]};function v(I,E){for(var M=new Array(E),N=0;N<E;++N)M[N]=I[N];return M}function _(I,E){for(;E+1<I.length;E++)I[E]=I[E+1];I.pop()}function O(I){for(var E=new Array(I.length),M=0;M<E.length;++M)E[M]=I[M].listener||I[M];return E}function F(I,E){return new Promise(function(M,N){function V(X){I.removeListener(E,H),N(X)}function H(){typeof I.removeListener=="function"&&I.removeListener("error",V),M([].slice.call(arguments))}S(I,E,H,{once:!0}),E!=="error"&&T(I,V,{once:!0})})}function T(I,E,M){typeof I.on=="function"&&S(I,"error",E,M)}function S(I,E,M,N){if(typeof I.on=="function")N.once?I.once(E,M):I.on(E,M);else if(typeof I.addEventListener=="function")I.addEventListener(E,function V(H){N.once&&I.removeEventListener(E,V),M(H)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof I)}},{}],345:[function(t,C,b){"use strict";var a=t("is-callable"),u=Object.prototype.toString,A=Object.prototype.hasOwnProperty,c=function(s,l,d){for(var p=0,g=s.length;p<g;p++)A.call(s,p)&&(d==null?l(s[p],p,s):l.call(d,s[p],p,s))},h=function(s,l,d){for(var p=0,g=s.length;p<g;p++)d==null?l(s.charAt(p),p,s):l.call(d,s.charAt(p),p,s)},o=function(s,l,d){for(var p in s)A.call(s,p)&&(d==null?l(s[p],p,s):l.call(d,s[p],p,s))},n=function(s,l,d){if(!a(l))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=d),u.call(s)==="[object Array]"?c(s,l,p):typeof s=="string"?h(s,l,p):o(s,l,p)};C.exports=n},{"is-callable":367}],346:[function(t,C,b){"use strict";var a="Function.prototype.bind called on incompatible ",u=Array.prototype.slice,A=Object.prototype.toString,c="[object Function]";C.exports=function(o){var n=this;if(typeof n!="function"||A.call(n)!==c)throw new TypeError(a+n);for(var r=u.call(arguments,1),s,l=function(){if(this instanceof s){var v=n.apply(this,r.concat(u.call(arguments)));return Object(v)===v?v:this}else return n.apply(o,r.concat(u.call(arguments)))},d=Math.max(0,n.length-r.length),p=[],g=0;g<d;g++)p.push("$"+g);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(l),n.prototype){var m=function(){};m.prototype=n.prototype,s.prototype=new m,m.prototype=null}return s}},{}],347:[function(t,C,b){"use strict";var a=t("./implementation");C.exports=Function.prototype.bind||a},{"./implementation":346}],348:[function(t,C,b){"use strict";var a,u=SyntaxError,A=Function,c=TypeError,h=function(ee){try{return A('"use strict"; return ('+ee+").constructor;")()}catch(Z){}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(ee){o=null}var n=function(){throw new c},r=o?function(){try{return arguments.callee,n}catch(ee){try{return o(arguments,"callee").get}catch(Z){return n}}}():n,s=t("has-symbols")(),l=t("has-proto")(),d=Object.getPrototypeOf||(l?function(ee){return ee.__proto__}:null),p={},g=typeof Uint8Array=="undefined"||!d?a:d(Uint8Array),m={"%AggregateError%":typeof AggregateError=="undefined"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?a:ArrayBuffer,"%ArrayIteratorPrototype%":s&&d?d([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics=="undefined"?a:Atomics,"%BigInt%":typeof BigInt=="undefined"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?a:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?a:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array=="undefined"?a:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?a:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s&&d?d(d([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map=="undefined"?a:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!s||!d?a:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?a:Promise,"%Proxy%":typeof Proxy=="undefined"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?a:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!s||!d?a:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s&&d?d(""[Symbol.iterator]()):a,"%Symbol%":s?Symbol:a,"%SyntaxError%":u,"%ThrowTypeError%":r,"%TypedArray%":g,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array=="undefined"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?a:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?a:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?a:WeakSet};if(d)try{null.error}catch(ee){var v=d(d(ee));m["%Error.prototype%"]=v}var _=function ee(Z){var Ae;if(Z==="%AsyncFunction%")Ae=h("async function () {}");else if(Z==="%GeneratorFunction%")Ae=h("function* () {}");else if(Z==="%AsyncGeneratorFunction%")Ae=h("async function* () {}");else if(Z==="%AsyncGenerator%"){var U=ee("%AsyncGeneratorFunction%");U&&(Ae=U.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var W=ee("%AsyncGenerator%");W&&d&&(Ae=d(W.prototype))}return m[Z]=Ae,Ae},O={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=t("function-bind"),T=t("has"),S=F.call(Function.call,Array.prototype.concat),I=F.call(Function.apply,Array.prototype.splice),E=F.call(Function.call,String.prototype.replace),M=F.call(Function.call,String.prototype.slice),N=F.call(Function.call,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,X=function(Z){var Ae=M(Z,0,1),U=M(Z,-1);if(Ae==="%"&&U!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&Ae!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var W=[];return E(Z,V,function(le,he,ue,pe){W[W.length]=ue?E(pe,H,"$1"):he||le}),W},G=function(Z,Ae){var U=Z,W;if(T(O,U)&&(W=O[U],U="%"+W[0]+"%"),T(m,U)){var le=m[U];if(le===p&&(le=_(U)),typeof le=="undefined"&&!Ae)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:W,name:U,value:le}}throw new u("intrinsic "+Z+" does not exist!")};C.exports=function(Z,Ae){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!="boolean")throw new c('"allowMissing" argument must be a boolean');if(N(/^%?[^%]*%?$/,Z)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=X(Z),W=U.length>0?U[0]:"",le=G("%"+W+"%",Ae),he=le.name,ue=le.value,pe=!1,fe=le.alias;fe&&(W=fe[0],I(U,S([0,1],fe)));for(var ce=1,be=!0;ce<U.length;ce+=1){var Ce=U[ce],xe=M(Ce,0,1),Se=M(Ce,-1);if((xe==='"'||xe==="'"||xe==="`"||Se==='"'||Se==="'"||Se==="`")&&xe!==Se)throw new u("property names with quotes must have matching quotes");if((Ce==="constructor"||!be)&&(pe=!0),W+="."+Ce,he="%"+W+"%",T(m,he))ue=m[he];else if(ue!=null){if(!(Ce in ue)){if(!Ae)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(o&&ce+1>=U.length){var me=o(ue,Ce);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?ue=me.get:ue=ue[Ce]}else be=T(ue,Ce),ue=ue[Ce];be&&!pe&&(m[he]=ue)}}return ue}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(t,C,b){"use strict";var a=t("get-intrinsic"),u=a("%Object.getOwnPropertyDescriptor%",!0);if(u)try{u([],"length")}catch(A){u=null}C.exports=u},{"get-intrinsic":348}],350:[function(t,C,b){"use strict";var a={foo:{}},u=Object;C.exports=function(){return{__proto__:a}.foo===a.foo&&!({__proto__:null}instanceof u)}},{}],351:[function(t,C,b){"use strict";var a=typeof Symbol!="undefined"&&Symbol,u=t("./shams");C.exports=function(){return typeof a!="function"||typeof Symbol!="function"||typeof a("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:u()}},{"./shams":352}],352:[function(t,C,b){"use strict";C.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var u={},A=Symbol("test"),c=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var h=42;u[A]=h;for(A in u)return!1;if(typeof Object.keys=="function"&&Object.keys(u).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(u).length!==0)return!1;var o=Object.getOwnPropertySymbols(u);if(o.length!==1||o[0]!==A||!Object.prototype.propertyIsEnumerable.call(u,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(u,A);if(n.value!==h||n.enumerable!==!0)return!1}return!0}},{}],353:[function(t,C,b){"use strict";var a=t("has-symbols/shams");C.exports=function(){return a()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(t,C,b){"use strict";var a=t("function-bind");C.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(t,C,b){var a=t("http"),u=t("url"),A=C.exports;for(var c in a)a.hasOwnProperty(c)&&(A[c]=a[c]);A.request=function(o,n){return o=h(o),a.request.call(this,o,n)},A.get=function(o,n){return o=h(o),a.get.call(this,o,n)};function h(o){if(typeof o=="string"&&(o=u.parse(o)),o.protocol||(o.protocol="https:"),o.protocol!=="https:")throw new Error('Protocol "'+o.protocol+'" not supported. Expected "https:"');return o}},{http:468,url:472}],356:[function(t,C,b){"use strict";var a=t("util"),u=t("ms");C.exports=function(A){if(typeof A=="number")return A;var c=u(A);if(c===void 0){var h=new Error(a.format("humanize-ms(%j) result undefined",A));console.warn(h.stack)}return c}},{ms:376,util:419}],357:[function(t,C,b){b.read=function(a,u,A,c,h){var o,n,r=h*8-c-1,s=(1<<r)-1,l=s>>1,d=-7,p=A?h-1:0,g=A?-1:1,m=a[u+p];for(p+=g,o=m&(1<<-d)-1,m>>=-d,d+=r;d>0;o=o*256+a[u+p],p+=g,d-=8);for(n=o&(1<<-d)-1,o>>=-d,d+=c;d>0;n=n*256+a[u+p],p+=g,d-=8);if(o===0)o=1-l;else{if(o===s)return n?NaN:(m?-1:1)*(1/0);n=n+Math.pow(2,c),o=o-l}return(m?-1:1)*n*Math.pow(2,o-c)},b.write=function(a,u,A,c,h,o){var n,r,s,l=o*8-h-1,d=(1<<l)-1,p=d>>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=c?0:o-1,v=c?1:-1,_=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(r=isNaN(u)?1:0,n=d):(n=Math.floor(Math.log(u)/Math.LN2),u*(s=Math.pow(2,-n))<1&&(n--,s*=2),n+p>=1?u+=g/s:u+=g*Math.pow(2,1-p),u*s>=2&&(n++,s/=2),n+p>=d?(r=0,n=d):n+p>=1?(r=(u*s-1)*Math.pow(2,h),n=n+p):(r=u*Math.pow(2,p-1)*Math.pow(2,h),n=0));h>=8;a[A+m]=r&255,m+=v,r/=256,h-=8);for(n=n<<h|r,l+=h;l>0;a[A+m]=n&255,m+=v,n/=256,l-=8);a[A+m-v]|=_*128}},{}],358:[function(t,C,b){"use strict";var a=[t("./nextTick"),t("./queueMicrotask"),t("./mutation.js"),t("./messageChannel"),t("./stateChange"),t("./timeout")],u,A,c=-1,h=[],o=!1;function n(){!u||!A||(u=!1,A.length?h=A.concat(h):c=-1,h.length&&r())}function r(){if(!u){o=!1,u=!0;for(var m=h.length,v=setTimeout(n);m;){for(A=h,h=[];A&&++c<m;)A[c].run();c=-1,m=h.length}A=null,c=-1,u=!1,clearTimeout(v)}}for(var s,l=-1,d=a.length;++l<d;)if(a[l]&&a[l].test&&a[l].test()){s=a[l].install(r);break}function p(m,v){this.fun=m,this.array=v}p.prototype.run=function(){var m=this.fun,v=this.array;switch(v.length){case 0:return m();case 1:return m(v[0]);case 2:return m(v[0],v[1]);case 3:return m(v[0],v[1],v[2]);default:return m.apply(null,v)}},C.exports=g;function g(m){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];h.push(new p(m,v)),!o&&!u&&(o=!0,s())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(t,C,b){(function(a){(function(){"use strict";b.test=function(){return a.setImmediate?!1:typeof a.MessageChannel!="undefined"},b.install=function(u){var A=new a.MessageChannel;return A.port1.onmessage=u,function(){A.port2.postMessage(0)}}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(t,C,b){(function(a){(function(){"use strict";var u=a.MutationObserver||a.WebKitMutationObserver;b.test=function(){return u},b.install=function(A){var c=0,h=new u(A),o=a.document.createTextNode("");return h.observe(o,{characterData:!0}),function(){o.data=c=++c%2}}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(t,C,b){(function(a){(function(){"use strict";b.test=function(){return typeof a.queueMicrotask=="function"},b.install=function(u){return function(){a.queueMicrotask(u)}}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(t,C,b){(function(a){(function(){"use strict";b.test=function(){return"document"in a&&"onreadystatechange"in a.document.createElement("script")},b.install=function(u){return function(){var A=a.document.createElement("script");return A.onreadystatechange=function(){u(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},a.document.documentElement.appendChild(A),u}}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(t,C,b){"use strict";b.test=function(){return!0},b.install=function(a){return function(){setTimeout(a,0)}}},{}],364:[function(t,C,b){typeof Object.create=="function"?C.exports=function(u,A){A&&(u.super_=A,u.prototype=Object.create(A.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:C.exports=function(u,A){if(A){u.super_=A;var c=function(){};c.prototype=A.prototype,u.prototype=new c,u.prototype.constructor=u}}},{}],365:[function(t,C,b){"use strict";var a=t("has-tostringtag/shams")(),u=t("call-bind/callBound"),A=u("Object.prototype.toString"),c=function(r){return a&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:A(r)==="[object Arguments]"},h=function(r){return c(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&A(r)!=="[object Array]"&&A(r.callee)==="[object Function]"},o=function(){return c(arguments)}();c.isLegacyArguments=h,C.exports=o?c:h},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(t,C,b){C.exports=function(A){return A!=null&&(a(A)||u(A)||!!A._isBuffer)};function a(A){return!!A.constructor&&typeof A.constructor.isBuffer=="function"&&A.constructor.isBuffer(A)}function u(A){return typeof A.readFloatLE=="function"&&typeof A.slice=="function"&&a(A.slice(0,0))}},{}],367:[function(t,C,b){"use strict";var a=Function.prototype.toString,u=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,A,c;if(typeof u=="function"&&typeof Object.defineProperty=="function")try{A=Object.defineProperty({},"length",{get:function(){throw c}}),c={},u(function(){throw 42},null,A)}catch(T){T!==c&&(u=null)}else u=null;var h=/^\s*class\b/,o=function(S){try{var I=a.call(S);return h.test(I)}catch(E){return!1}},n=function(S){try{return o(S)?!1:(a.call(S),!0)}catch(I){return!1}},r=Object.prototype.toString,s="[object Object]",l="[object Function]",d="[object GeneratorFunction]",p="[object HTMLAllCollection]",g="[object HTML document.all class]",m="[object HTMLCollection]",v=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var F=document.all;r.call(F)===r.call(document.all)&&(O=function(S){if((_||!S)&&(typeof S=="undefined"||typeof S=="object"))try{var I=r.call(S);return(I===p||I===g||I===m||I===s)&&S("")==null}catch(E){}return!1})}C.exports=u?function(S){if(O(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{u(S,null,A)}catch(I){if(I!==c)return!1}return!o(S)&&n(S)}:function(S){if(O(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;if(v)return n(S);if(o(S))return!1;var I=r.call(S);return I!==l&&I!==d&&!/^\[object HTML/.test(I)?!1:n(S)}},{}],368:[function(t,C,b){"use strict";var a=Object.prototype.toString,u=Function.prototype.toString,A=/^\s*(?:function)?\*/,c=t("has-tostringtag/shams")(),h=Object.getPrototypeOf,o=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(r){}},n;C.exports=function(s){if(typeof s!="function")return!1;if(A.test(u.call(s)))return!0;if(!c){var l=a.call(s);return l==="[object GeneratorFunction]"}if(!h)return!1;if(typeof n=="undefined"){var d=o();n=d?h(d):!1}return h(s)===n}},{"has-tostringtag/shams":353}],369:[function(t,C,b){"use strict";var a=t("which-typed-array");C.exports=function(A){return!!a(A)}},{"which-typed-array":420}],370:[function(t,C,b){var a={}.toString;C.exports=Array.isArray||function(u){return a.call(u)=="[object Array]"}},{}],371:[function(t,C,b){(function(a){(function(){(function(u,A){typeof b=="object"&&typeof C!="undefined"?C.exports=A(u):typeof J=="function"&&J.amd?J(A):A(u)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof a!="undefined"?a:this,function(u){"use strict";u=u||{};var A=u.Base64,c="2.6.4",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(Z){for(var Ae={},U=0,W=Z.length;U<W;U++)Ae[Z.charAt(U)]=U;return Ae}(h),n=String.fromCharCode,r=function(Z){if(Z.length<2){var Ae=Z.charCodeAt(0);return Ae<128?Z:Ae<2048?n(192|Ae>>>6)+n(128|Ae&63):n(224|Ae>>>12&15)+n(128|Ae>>>6&63)+n(128|Ae&63)}else{var Ae=65536+(Z.charCodeAt(0)-55296)*1024+(Z.charCodeAt(1)-56320);return n(240|Ae>>>18&7)+n(128|Ae>>>12&63)+n(128|Ae>>>6&63)+n(128|Ae&63)}},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(Z){return Z.replace(s,r)},d=function(Z){var Ae=[0,2,1][Z.length%3],U=Z.charCodeAt(0)<<16|(Z.length>1?Z.charCodeAt(1):0)<<8|(Z.length>2?Z.charCodeAt(2):0),W=[h.charAt(U>>>18),h.charAt(U>>>12&63),Ae>=2?"=":h.charAt(U>>>6&63),Ae>=1?"=":h.charAt(U&63)];return W.join("")},p=u.btoa&&typeof u.btoa=="function"?function(Z){return u.btoa(Z)}:function(Z){if(Z.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Z.replace(/[\s\S]{1,3}/g,d)},g=function(Z){return p(l(String(Z)))},m=function(Z){return Z.replace(/[+\/]/g,function(Ae){return Ae=="+"?"-":"_"}).replace(/=/g,"")},v=function(Z,Ae){return Ae?m(g(Z)):g(Z)},_=function(Z){return v(Z,!0)},O;u.Uint8Array&&(O=function(Z,Ae){for(var U="",W=0,le=Z.length;W<le;W+=3){var he=Z[W],ue=Z[W+1],pe=Z[W+2],fe=he<<16|ue<<8|pe;U+=h.charAt(fe>>>18)+h.charAt(fe>>>12&63)+(typeof ue!="undefined"?h.charAt(fe>>>6&63):"=")+(typeof pe!="undefined"?h.charAt(fe&63):"=")}return Ae?m(U):U});var F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(Z){switch(Z.length){case 4:var Ae=(7&Z.charCodeAt(0))<<18|(63&Z.charCodeAt(1))<<12|(63&Z.charCodeAt(2))<<6|63&Z.charCodeAt(3),U=Ae-65536;return n((U>>>10)+55296)+n((U&1023)+56320);case 3:return n((15&Z.charCodeAt(0))<<12|(63&Z.charCodeAt(1))<<6|63&Z.charCodeAt(2));default:return n((31&Z.charCodeAt(0))<<6|63&Z.charCodeAt(1))}},S=function(Z){return Z.replace(F,T)},I=function(Z){var Ae=Z.length,U=Ae%4,W=(Ae>0?o[Z.charAt(0)]<<18:0)|(Ae>1?o[Z.charAt(1)]<<12:0)|(Ae>2?o[Z.charAt(2)]<<6:0)|(Ae>3?o[Z.charAt(3)]:0),le=[n(W>>>16),n(W>>>8&255),n(W&255)];return le.length-=[0,0,2,1][U],le.join("")},E=u.atob&&typeof u.atob=="function"?function(Z){return u.atob(Z)}:function(Z){return Z.replace(/\S{1,4}/g,I)},M=function(Z){return E(String(Z).replace(/[^A-Za-z0-9\+\/]/g,""))},N=function(Z){return S(E(Z))},V=function(Z){return String(Z).replace(/[-_]/g,function(Ae){return Ae=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},H=function(Z){return N(V(Z))},X;u.Uint8Array&&(X=function(Z){return Uint8Array.from(M(V(Z)),function(Ae){return Ae.charCodeAt(0)})});var G=function(){var Z=u.Base64;return u.Base64=A,Z};if(u.Base64={VERSION:c,atob:M,btoa:p,fromBase64:H,toBase64:v,utob:l,encode:v,encodeURI:_,btou:S,decode:H,noConflict:G,fromUint8Array:O,toUint8Array:X},typeof Object.defineProperty=="function"){var ee=function(Z){return{value:Z,enumerable:!1,writable:!0,configurable:!0}};u.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ee(function(){return H(this)})),Object.defineProperty(String.prototype,"toBase64",ee(function(Z){return v(this,Z)})),Object.defineProperty(String.prototype,"toBase64URI",ee(function(){return v(this,!0)}))}}return u.Meteor&&(Base64=u.Base64),typeof C!="undefined"&&C.exports?C.exports.Base64=u.Base64:typeof J=="function"&&J.amd&&J([],function(){return u.Base64}),{Base64:u.Base64}})}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(t,C,b){"use strict";C.exports=u;var a=Object.prototype.hasOwnProperty;function u(A,c,h){if(!A)throw new TypeError("argument dest is required");if(!c)throw new TypeError("argument src is required");return h===void 0&&(h=!0),Object.getOwnPropertyNames(c).forEach(function(n){if(!(!h&&a.call(A,n))){var r=Object.getOwnPropertyDescriptor(c,n);Object.defineProperty(A,n,r)}}),A}},{}],373:[function(t,C,b){"use strict";t("core-js/modules/es.array.map.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.regexp.constructor.js"),t("core-js/modules/es.regexp.to-string.js");function a(){this._types=Object.create(null),this._extensions=Object.create(null);for(var u=0;u<arguments.length;u++)this.define(arguments[u]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}a.prototype.define=function(u,A){for(var c in u){var h=u[c].map(function(s){return s.toLowerCase()});c=c.toLowerCase();for(var o=0;o<h.length;o++){var n=h[o];if(n[0]!=="*"){if(!A&&n in this._types)throw new Error('Attempt to change mapping for "'+n+'" extension from "'+this._types[n]+'" to "'+c+'". Pass `force=true` to allow this, otherwise remove "'+n+'" from the list of extensions for "'+c+'".');this._types[n]=c}}if(A||!this._extensions[c]){var r=h[0];this._extensions[c]=r[0]!=="*"?r:r.substr(1)}}},a.prototype.getType=function(u){u=String(u);var A=u.replace(/^.*[/\\]/,"").toLowerCase(),c=A.replace(/^.*\./,"").toLowerCase(),h=A.length<u.length,o=c.length<A.length-1;return(o||!h)&&this._types[c]||null},a.prototype.getExtension=function(u){return u=/^\s*([^;\s]*)/.test(u)&&RegExp.$1,u&&this._extensions[u.toLowerCase()]||null},C.exports=a},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(t,C,b){"use strict";var a=t("./Mime");C.exports=new a(t("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(t,C,b){"use strict";C.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":["woff"],"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"]}},{}],376:[function(t,C,b){var a=1e3,u=a*60,A=u*60,c=A*24,h=c*7,o=c*365.25;C.exports=function(d,p){p=p||{};var g=typeof d;if(g==="string"&&d.length>0)return n(d);if(g==="number"&&isFinite(d))return p.long?s(d):r(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function n(d){if(d=String(d),!(d.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(p){var g=parseFloat(p[1]),m=(p[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return g*o;case"weeks":case"week":case"w":return g*h;case"days":case"day":case"d":return g*c;case"hours":case"hour":case"hrs":case"hr":case"h":return g*A;case"minutes":case"minute":case"mins":case"min":case"m":return g*u;case"seconds":case"second":case"secs":case"sec":case"s":return g*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function r(d){var p=Math.abs(d);return p>=c?Math.round(d/c)+"d":p>=A?Math.round(d/A)+"h":p>=u?Math.round(d/u)+"m":p>=a?Math.round(d/a)+"s":d+"ms"}function s(d){var p=Math.abs(d);return p>=c?l(d,p,c,"day"):p>=A?l(d,p,A,"hour"):p>=u?l(d,p,u,"minute"):p>=a?l(d,p,a,"second"):d+" ms"}function l(d,p,g,m){var v=p>=g*1.5;return Math.round(d/g)+" "+m+(v?"s":"")}},{}],377:[function(t,C,b){"use strict";var a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;function c(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function h(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;var s=Object.getOwnPropertyNames(n).map(function(d){return n[d]});if(s.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}C.exports=h()?Object.assign:function(o,n){for(var r,s=c(o),l,d=1;d<arguments.length;d++){r=Object(arguments[d]);for(var p in r)u.call(r,p)&&(s[p]=r[p]);if(a){l=a(r);for(var g=0;g<l.length;g++)A.call(r,l[g])&&(s[l[g]]=r[l[g]])}}return s}},{}],378:[function(t,C,b){(function(a){(function(){"use strict";function u(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,n){for(var r="",s=0,l=-1,d=0,p,g=0;g<=o.length;++g){if(g<o.length)p=o.charCodeAt(g);else{if(p===47)break;p=47}if(p===47){if(!(l===g-1||d===1))if(l!==g-1&&d===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var m=r.lastIndexOf("/");if(m!==r.length-1){m===-1?(r="",s=0):(r=r.slice(0,m),s=r.length-1-r.lastIndexOf("/")),l=g,d=0;continue}}else if(r.length===2||r.length===1){r="",s=0,l=g,d=0;continue}}n&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+o.slice(l+1,g):r=o.slice(l+1,g),s=g-l-1;l=g,d=0}else p===46&&d!==-1?++d:d=-1}return r}function c(o,n){var r=n.dir||n.root,s=n.base||(n.name||"")+(n.ext||"");return r?r===n.root?r+s:r+o+s:s}var h={resolve:function(){for(var n="",r=!1,s,l=arguments.length-1;l>=-1&&!r;l--){var d;l>=0?d=arguments[l]:(s===void 0&&(s=a.cwd()),d=s),u(d),d.length!==0&&(n=d+"/"+n,r=d.charCodeAt(0)===47)}return n=A(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(u(n),n.length===0)return".";var r=n.charCodeAt(0)===47,s=n.charCodeAt(n.length-1)===47;return n=A(n,!r),n.length===0&&!r&&(n="."),n.length>0&&s&&(n+="/"),r?"/"+n:n},isAbsolute:function(n){return u(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var s=arguments[r];u(s),s.length>0&&(n===void 0?n=s:n+="/"+s)}return n===void 0?".":h.normalize(n)},relative:function(n,r){if(u(n),u(r),n===r||(n=h.resolve(n),r=h.resolve(r),n===r))return"";for(var s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var l=n.length,d=l-s,p=1;p<r.length&&r.charCodeAt(p)===47;++p);for(var g=r.length,m=g-p,v=d<m?d:m,_=-1,O=0;O<=v;++O){if(O===v){if(m>v){if(r.charCodeAt(p+O)===47)return r.slice(p+O+1);if(O===0)return r.slice(p+O)}else d>v&&(n.charCodeAt(s+O)===47?_=O:O===0&&(_=0));break}var F=n.charCodeAt(s+O),T=r.charCodeAt(p+O);if(F!==T)break;F===47&&(_=O)}var S="";for(O=s+_+1;O<=l;++O)(O===l||n.charCodeAt(O)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+r.slice(p+_):(p+=_,r.charCodeAt(p)===47&&++p,r.slice(p))},_makeLong:function(n){return n},dirname:function(n){if(u(n),n.length===0)return".";for(var r=n.charCodeAt(0),s=r===47,l=-1,d=!0,p=n.length-1;p>=1;--p)if(r=n.charCodeAt(p),r===47){if(!d){l=p;break}}else d=!1;return l===-1?s?"/":".":s&&l===1?"//":n.slice(0,l)},basename:function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');u(n);var s=0,l=-1,d=!0,p;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var g=r.length-1,m=-1;for(p=n.length-1;p>=0;--p){var v=n.charCodeAt(p);if(v===47){if(!d){s=p+1;break}}else m===-1&&(d=!1,m=p+1),g>=0&&(v===r.charCodeAt(g)?--g===-1&&(l=p):(g=-1,l=m))}return s===l?l=m:l===-1&&(l=n.length),n.slice(s,l)}else{for(p=n.length-1;p>=0;--p)if(n.charCodeAt(p)===47){if(!d){s=p+1;break}}else l===-1&&(d=!1,l=p+1);return l===-1?"":n.slice(s,l)}},extname:function(n){u(n);for(var r=-1,s=0,l=-1,d=!0,p=0,g=n.length-1;g>=0;--g){var m=n.charCodeAt(g);if(m===47){if(!d){s=g+1;break}continue}l===-1&&(d=!1,l=g+1),m===46?r===-1?r=g:p!==1&&(p=1):r!==-1&&(p=-1)}return r===-1||l===-1||p===0||p===1&&r===l-1&&r===s+1?"":n.slice(r,l)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return c("/",n)},parse:function(n){u(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var s=n.charCodeAt(0),l=s===47,d;l?(r.root="/",d=1):d=0;for(var p=-1,g=0,m=-1,v=!0,_=n.length-1,O=0;_>=d;--_){if(s=n.charCodeAt(_),s===47){if(!v){g=_+1;break}continue}m===-1&&(v=!1,m=_+1),s===46?p===-1?p=_:O!==1&&(O=1):p!==-1&&(O=-1)}return p===-1||m===-1||O===0||O===1&&p===m-1&&p===g+1?m!==-1&&(g===0&&l?r.base=r.name=n.slice(1,m):r.base=r.name=n.slice(g,m)):(g===0&&l?(r.name=n.slice(1,p),r.base=n.slice(1,m)):(r.name=n.slice(g,p),r.base=n.slice(g,m)),r.ext=n.slice(p,m)),g>0?r.dir=n.slice(0,g-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};h.posix=h,C.exports=h}).call(this)}).call(this,t("_process"))},{_process:467}],379:[function(t,C,b){(function(a){(function(){(function(){"use strict";var u={function:!0,object:!0},A=u[typeof window]&&window||this,c=A,h=u[typeof b]&&b,o=u[typeof C]&&C&&!C.nodeType&&C,n=h&&o&&typeof a=="object"&&a;n&&(n.global===n||n.window===n||n.self===n)&&(A=n);var r=Math.pow(2,53)-1,s=/\bOpera/,l=this,d=Object.prototype,p=d.hasOwnProperty,g=d.toString;function m(H){return H=String(H),H.charAt(0).toUpperCase()+H.slice(1)}function v(H,X,G){var ee={"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"};return X&&G&&/^Win/i.test(H)&&!/^Windows Phone /i.test(H)&&(ee=ee[/[\d.]+$/.exec(H)])&&(H="Windows "+ee),H=String(H),X&&G&&(H=H.replace(RegExp(X,"i"),G)),H=O(H.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]),H}function _(H,X){var G=-1,ee=H?H.length:0;if(typeof ee=="number"&&ee>-1&&ee<=r)for(;++G<ee;)X(H[G],G,H);else F(H,X)}function O(H){return H=M(H),/^(?:webOS|i(?:OS|P))/.test(H)?H:m(H)}function F(H,X){for(var G in H)p.call(H,G)&&X(H[G],G,H)}function T(H){return H==null?m(H):g.call(H).slice(8,-1)}function S(H,X){var G=H!=null?typeof H[X]:"number";return!/^(?:boolean|number|string|undefined)$/.test(G)&&(G=="object"?!!H[X]:!0)}function I(H){return String(H).replace(/([ -])(?!$)/g,"$1?")}function E(H,X){var G=null;return _(H,function(ee,Z){G=X(G,ee,Z,H)}),G}function M(H){return String(H).replace(/^ +| +$/g,"")}function N(H){var X=A,G=H&&typeof H=="object"&&T(H)!="String";G&&(X=H,H=null);var ee=X.navigator||{},Z=ee.userAgent||"";H||(H=Z);var Ae=G||l==c,U=G?!!ee.likeChrome:/\bChrome\b/.test(H)&&!/internal|\n/i.test(g.toString()),W="Object",le=G?W:"ScriptBridgingProxyObject",he=G?W:"Environment",ue=G&&X.java?"JavaPackage":T(X.java),pe=G?W:"RuntimeObject",fe=/\bJava/.test(ue)&&X.java,ce=fe&&T(X.environment)==he,be=fe?"a":"\u03B1",Ce=fe?"b":"\u03B2",xe=X.document||{},Se=X.operamini||X.opera,me=s.test(me=G&&Se?Se["[[Class]]"]:T(Se))?me:Se=null,te,$=H,B=[],k=null,q=H==Z,ne=q&&Se&&typeof Se.version=="function"&&Se.version(),Q,z=Oe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Y=Pe(["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"]),re=Ke([{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"]),ge=Le({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}}),Be=$e(["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 Oe(ze){return E(ze,function(Xe,qe){return Xe||RegExp("\\b"+(qe.pattern||I(qe))+"\\b","i").exec(H)&&(qe.label||qe)})}function Le(ze){return E(ze,function(Xe,qe,Qe){return Xe||(qe[re]||qe[/^[a-z]+(?: +[a-z]+\b)*/i.exec(re)]||RegExp("\\b"+I(Qe)+"(?:\\b|\\w*\\d)","i").exec(H))&&Qe})}function Pe(ze){return E(ze,function(Xe,qe){return Xe||RegExp("\\b"+(qe.pattern||I(qe))+"\\b","i").exec(H)&&(qe.label||qe)})}function $e(ze){return E(ze,function(Xe,qe){var Qe=qe.pattern||I(qe);return!Xe&&(Xe=RegExp("\\b"+Qe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(H))&&(Xe=v(Xe,Qe,qe.label||qe)),Xe})}function Ke(ze){return E(ze,function(Xe,qe){var Qe=qe.pattern||I(qe);return!Xe&&(Xe=RegExp("\\b"+Qe+" *\\d+[.\\w_]*","i").exec(H)||RegExp("\\b"+Qe+" *\\w+-[\\w]*","i").exec(H)||RegExp("\\b"+Qe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(H))&&((Xe=String(qe.label&&!RegExp(Qe,"i").test(qe.label)?qe.label:Xe).split("/"))[1]&&!/[\d.]+/.test(Xe[0])&&(Xe[0]+=" "+Xe[1]),qe=qe.label||qe,Xe=O(Xe[0].replace(RegExp(Qe,"i"),qe).replace(RegExp("; *(?:"+qe+"[_-])?","i")," ").replace(RegExp("("+qe+")[-_.]?(\\w)","i"),"$1 $2"))),Xe})}function Ne(ze){return E(ze,function(Xe,qe){return Xe||(RegExp(qe+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(H)||0)[1]||null})}function Ue(){return this.description||""}if(z&&(z=[z]),/\bAndroid\b/.test(Be)&&!re&&(te=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(H))&&(re=M(te[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ge&&!re?re=Ke([ge]):ge&&re&&(re=re.replace(RegExp("^("+I(ge)+")[-_.\\s]","i"),ge+" ").replace(RegExp("^("+I(ge)+")[-_.]?(\\w)","i"),ge+" $2")),(te=/\bGoogle TV\b/.exec(re))&&(re=te[0]),/\bSimulator\b/i.test(H)&&(re=(re?re+" ":"")+"Simulator"),Y=="Opera Mini"&&/\bOPiOS\b/.test(H)&&B.push("running in Turbo/Uncompressed mode"),Y=="IE"&&/\blike iPhone OS\b/.test(H)?(te=N(H.replace(/like iPhone OS/,"")),ge=te.manufacturer,re=te.product):/^iP/.test(re)?(Y||(Y="Safari"),Be="iOS"+((te=/ OS ([\d_]+)/i.exec(H))?" "+te[1].replace(/_/g,"."):"")):Y=="Konqueror"&&/^Linux\b/i.test(Be)?Be="Kubuntu":ge&&ge!="Google"&&(/Chrome/.test(Y)&&!/\bMobile Safari\b/i.test(H)||/\bVita\b/.test(re))||/\bAndroid\b/.test(Be)&&/^Chrome/.test(Y)&&/\bVersion\//i.test(H)?(Y="Android Browser",Be=/\bAndroid\b/.test(Be)?Be:"Android"):Y=="Silk"?(/\bMobi/i.test(H)||(Be="Android",B.unshift("desktop mode")),/Accelerated *= *true/i.test(H)&&B.unshift("accelerated")):Y=="UC Browser"&&/\bUCWEB\b/.test(H)?B.push("speed mode"):Y=="PaleMoon"&&(te=/\bFirefox\/([\d.]+)\b/.exec(H))?B.push("identifying as Firefox "+te[1]):Y=="Firefox"&&(te=/\b(Mobile|Tablet|TV)\b/i.exec(H))?(Be||(Be="Firefox OS"),re||(re=te[1])):!Y||(te=!/\bMinefield\b/i.test(H)&&/\b(?:Firefox|Safari)\b/.exec(Y))?(Y&&!re&&/[\/,]|^[^(]+?\)/.test(H.slice(H.indexOf(te+"/")+8))&&(Y=null),(te=re||ge||Be)&&(re||ge||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Be))&&(Y=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Be)?Be:te)+" Browser")):Y=="Electron"&&(te=(/\bChrome\/([\d.]+)\b/.exec(H)||0)[1])&&B.push("Chromium "+te),ne||(ne=Ne(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",I(Y),"(?:Firefox|Minefield|NetFront)"])),(te=z=="iCab"&&parseFloat(ne)>3&&"WebKit"||/\bOpera\b/.test(Y)&&(/\bOPR\b/.test(H)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(H)&&!/^(?:Trident|EdgeHTML)$/.test(z)&&"WebKit"||!z&&/\bMSIE\b/i.test(H)&&(Be=="Mac OS"?"Tasman":"Trident")||z=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Y)&&"NetFront")&&(z=[te]),Y=="IE"&&(te=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(H)||0)[1])?(Y+=" Mobile",Be="Windows Phone "+(/\+$/.test(te)?te:te+".x"),B.unshift("desktop mode")):/\bWPDesktop\b/i.test(H)?(Y="IE Mobile",Be="Windows Phone 8.x",B.unshift("desktop mode"),ne||(ne=(/\brv:([\d.]+)/.exec(H)||0)[1])):Y!="IE"&&z=="Trident"&&(te=/\brv:([\d.]+)/.exec(H))&&(Y&&B.push("identifying as "+Y+(ne?" "+ne:"")),Y="IE",ne=te[1]),q){if(S(X,"global"))if(fe&&(te=fe.lang.System,$=te.getProperty("os.arch"),Be=Be||te.getProperty("os.name")+" "+te.getProperty("os.version")),ce){try{ne=X.require("ringo/engine").version.join("."),Y="RingoJS"}catch(ze){(te=X.system)&&te.global.system==X.system&&(Y="Narwhal",Be||(Be=te[0].os||null))}Y||(Y="Rhino")}else typeof X.process=="object"&&!X.process.browser&&(te=X.process)&&(typeof te.versions=="object"&&(typeof te.versions.electron=="string"?(B.push("Node "+te.versions.node),Y="Electron",ne=te.versions.electron):typeof te.versions.nw=="string"&&(B.push("Chromium "+ne,"Node "+te.versions.node),Y="NW.js",ne=te.versions.nw)),Y||(Y="Node.js",$=te.arch,Be=te.platform,ne=/[\d.]+/.exec(te.version),ne=ne?ne[0]:null));else T(te=X.runtime)==le?(Y="Adobe AIR",Be=te.flash.system.Capabilities.os):T(te=X.phantom)==pe?(Y="PhantomJS",ne=(te=te.version||null)&&te.major+"."+te.minor+"."+te.patch):typeof xe.documentMode=="number"&&(te=/\bTrident\/(\d+)/i.exec(H))?(ne=[ne,xe.documentMode],(te=+te[1]+4)!=ne[1]&&(B.push("IE "+ne[1]+" mode"),z&&(z[1]=""),ne[1]=te),ne=Y=="IE"?String(ne[1].toFixed(1)):ne[0]):typeof xe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Y)&&(B.push("masking as "+Y+" "+ne),Y="IE",ne="11.0",z=["Trident"],Be="Windows");Be=Be&&O(Be)}if(ne&&(te=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ne)||/(?:alpha|beta)(?: ?\d)?/i.exec(H+";"+(q&&ee.appMinorVersion))||/\bMinefield\b/i.test(H)&&"a")&&(k=/b/i.test(te)?"beta":"alpha",ne=ne.replace(RegExp(te+"\\+?$"),"")+(k=="beta"?Ce:be)+(/\d+\+?/.exec(te)||"")),Y=="Fennec"||Y=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Be))Y="Firefox Mobile";else if(Y=="Maxthon"&&ne)ne=ne.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(re))re=="Xbox 360"&&(Be=null),re=="Xbox 360"&&/\bIEMobile\b/.test(H)&&B.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Y)||Y&&!re&&!/Browser|Mobi/.test(Y))&&(Be=="Windows CE"||/Mobi/i.test(H)))Y+=" Mobile";else if(Y=="IE"&&q)try{X.external===null&&B.unshift("platform preview")}catch(ze){B.unshift("embedded")}else(/\bBlackBerry\b/.test(re)||/\bBB10\b/.test(H))&&(te=(RegExp(re.replace(/ +/g," *")+"/([.\\d]+)","i").exec(H)||0)[1]||ne)?(te=[te,/BB10/.test(H)],Be=(te[1]?(re=null,ge="BlackBerry"):"Device Software")+" "+te[0],ne=null):this!=F&&re!="Wii"&&(q&&Se||/Opera/.test(Y)&&/\b(?:MSIE|Firefox)\b/i.test(H)||Y=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Be)||Y=="IE"&&(Be&&!/^Win/.test(Be)&&ne>5.5||/\bWindows XP\b/.test(Be)&&ne>8||ne==8&&!/\bTrident\b/.test(H)))&&!s.test(te=N.call(F,H.replace(s,"")+";"))&&te.name&&(te="ing as "+te.name+((te=te.version)?" "+te:""),s.test(Y)?(/\bIE\b/.test(te)&&Be=="Mac OS"&&(Be=null),te="identify"+te):(te="mask"+te,me?Y=O(me.replace(/([a-z])([A-Z])/g,"$1 $2")):Y="Opera",/\bIE\b/.test(te)&&(Be=null),q||(ne=null)),z=["Presto"],B.push(te));(te=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(H)||0)[1])&&(te=[parseFloat(te.replace(/\.(\d)$/,".0$1")),te],Y=="Safari"&&te[1].slice(-1)=="+"?(Y="WebKit Nightly",k="alpha",ne=te[1].slice(0,-1)):(ne==te[1]||ne==(te[2]=(/\bSafari\/([\d.]+\+?)/i.exec(H)||0)[1]))&&(ne=null),te[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(H)||0)[1],te[0]==537.36&&te[2]==537.36&&parseFloat(te[1])>=28&&z=="WebKit"&&(z=["Blink"]),!q||!U&&!te[1]?(z&&(z[1]="like Safari"),te=(te=te[0],te<400?1:te<500?2:te<526?3:te<533?4:te<534?"4+":te<535?5:te<537?6:te<538?7:te<601?8:te<602?9:te<604?10:te<606?11:te<608?12:"12")):(z&&(z[1]="like Chrome"),te=te[1]||(te=te[0],te<530?1:te<532?2:te<532.05?3:te<533?4:te<534.03?5:te<534.07?6:te<534.1?7:te<534.13?8:te<534.16?9:te<534.24?10:te<534.3?11:te<535.01?12:te<535.02?"13+":te<535.07?15:te<535.11?16:te<535.19?17:te<536.05?18:te<536.1?19:te<537.01?20:te<537.11?"21+":te<537.13?23:te<537.18?24:te<537.24?25:te<537.36?26:z!="Blink"?"27":"28")),z&&(z[1]+=" "+(te+=typeof te=="number"?".x":/[.+]/.test(te)?"":"+")),Y=="Safari"&&(!ne||parseInt(ne)>45)?ne=te:Y=="Chrome"&&/\bHeadlessChrome/i.test(H)&&B.unshift("headless")),Y=="Opera"&&(te=/\bzbov|zvav$/.exec(Be))?(Y+=" ",B.unshift("desktop mode"),te=="zvav"?(Y+="Mini",ne=null):Y+="Mobile",Be=Be.replace(RegExp(" *"+te+"$"),"")):Y=="Safari"&&/\bChrome\b/.exec(z&&z[1])?(B.unshift("desktop mode"),Y="Chrome Mobile",ne=null,/\bOS X\b/.test(Be)?(ge="Apple",Be="iOS 4.3+"):Be=null):/\bSRWare Iron\b/.test(Y)&&!ne&&(ne=Ne("Chrome")),ne&&ne.indexOf(te=/[\d.]+$/.exec(Be))==0&&H.indexOf("/"+te+"-")>-1&&(Be=M(Be.replace(te,""))),Be&&Be.indexOf(Y)!=-1&&!RegExp(Y+" OS").test(Be)&&(Be=Be.replace(RegExp(" *"+I(Y)+" *"),"")),z&&!/\b(?:Avant|Nook)\b/.test(Y)&&(/Browser|Lunascape|Maxthon/.test(Y)||Y!="Safari"&&/^iOS/.test(Be)&&/\bSafari\b/.test(z[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Y)&&z[1])&&(te=z[z.length-1])&&B.push(te),B.length&&(B=["("+B.join("; ")+")"]),ge&&re&&re.indexOf(ge)<0&&B.push("on "+ge),re&&B.push((/^on /.test(B[B.length-1])?"":"on ")+re),Be&&(te=/ ([\d.+]+)$/.exec(Be),Q=te&&Be.charAt(Be.length-te[0].length-1)=="/",Be={architecture:32,family:te&&!Q?Be.replace(te[0],""):Be,version:te?te[1]:null,toString:function(){var ze=this.version;return this.family+(ze&&!Q?" "+ze:"")+(this.architecture==64?" 64-bit":"")}}),(te=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($))&&!/\bi686\b/i.test($)?(Be&&(Be.architecture=64,Be.family=Be.family.replace(RegExp(" *"+te),"")),Y&&(/\bWOW64\b/i.test(H)||q&&/\w(?:86|32)$/.test(ee.cpuClass||ee.platform)&&!/\bWin64; x64\b/i.test(H))&&B.unshift("32-bit")):Be&&/^OS X/.test(Be.family)&&Y=="Chrome"&&parseFloat(ne)>=39&&(Be.architecture=64),H||(H=null);var Ye={};return Ye.description=H,Ye.layout=z&&z[0],Ye.manufacturer=ge,Ye.name=Y,Ye.prerelease=k,Ye.product=re,Ye.ua=H,Ye.version=Y&&ne,Ye.os=Be||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ye.parse=N,Ye.toString=Ue,Ye.version&&B.unshift(ne),Ye.name&&B.unshift(Y),Be&&Y&&!(Be==String(Be).split(" ")[0]&&(Be==Y.split(" ")[0]||re))&&B.push(re?"("+Be+")":"on "+Be),B.length&&(Ye.description=B.join(" ")),Ye}var V=N();typeof J=="function"&&typeof J.amd=="object"&&J.amd?(A.platform=V,J(function(){return V})):h&&o?F(V,function(H,X){h[X]=H}):A.platform=V}).call(this)}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(t,C,b){(function(a){(function(){"use strict";typeof a=="undefined"||!a.version||a.version.indexOf("v0.")===0||a.version.indexOf("v1.")===0&&a.version.indexOf("v1.8.")!==0?C.exports={nextTick:u}:C.exports=a;function u(A,c,h,o){if(typeof A!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,r,s;switch(n){case 0:case 1:return a.nextTick(A);case 2:return a.nextTick(function(){A.call(null,c)});case 3:return a.nextTick(function(){A.call(null,c,h)});case 4:return a.nextTick(function(){A.call(null,c,h,o)});default:for(r=new Array(n-1),s=0;s<r.length;)r[s++]=arguments[s];return a.nextTick(function(){A.apply(null,r)})}}}).call(this)}).call(this,t("_process"))},{_process:467}],381:[function(t,C,b){var a=C.exports={},u,A;function c(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=c}catch(_){u=c}try{typeof clearTimeout=="function"?A=clearTimeout:A=h}catch(_){A=h}})();function o(_){if(u===setTimeout)return setTimeout(_,0);if((u===c||!u)&&setTimeout)return u=setTimeout,setTimeout(_,0);try{return u(_,0)}catch(O){try{return u.call(null,_,0)}catch(F){return u.call(this,_,0)}}}function n(_){if(A===clearTimeout)return clearTimeout(_);if((A===h||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(_);try{return A(_)}catch(O){try{return A.call(null,_)}catch(F){return A.call(this,_)}}}var r=[],s=!1,l,d=-1;function p(){!s||!l||(s=!1,l.length?r=l.concat(r):d=-1,r.length&&g())}function g(){if(!s){var _=o(p);s=!0;for(var O=r.length;O;){for(l=r,r=[];++d<O;)l&&l[d].run();d=-1,O=r.length}l=null,s=!1,n(_)}}a.nextTick=function(_){var O=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)O[F-1]=arguments[F];r.push(new m(_,O)),r.length===1&&!s&&o(g)};function m(_,O){this.fun=_,this.array=O}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function v(){}a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(_){return[]},a.binding=function(_){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(_){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],382:[function(t,C,b){(function(a){(function(){(function(u){var A=typeof b=="object"&&b&&!b.nodeType&&b,c=typeof C=="object"&&C&&!C.nodeType&&C,h=typeof a=="object"&&a;(h.global===h||h.window===h||h.self===h)&&(u=h);var o,n=2147483647,r=36,s=1,l=26,d=38,p=700,g=72,m=128,v="-",_=/^xn--/,O=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=r-s,I=Math.floor,E=String.fromCharCode,M;function N(ue){throw new RangeError(T[ue])}function V(ue,pe){for(var fe=ue.length,ce=[];fe--;)ce[fe]=pe(ue[fe]);return ce}function H(ue,pe){var fe=ue.split("@"),ce="";fe.length>1&&(ce=fe[0]+"@",ue=fe[1]),ue=ue.replace(F,".");var be=ue.split("."),Ce=V(be,pe).join(".");return ce+Ce}function X(ue){for(var pe=[],fe=0,ce=ue.length,be,Ce;fe<ce;)be=ue.charCodeAt(fe++),be>=55296&&be<=56319&&fe<ce?(Ce=ue.charCodeAt(fe++),(Ce&64512)==56320?pe.push(((be&1023)<<10)+(Ce&1023)+65536):(pe.push(be),fe--)):pe.push(be);return pe}function G(ue){return V(ue,function(pe){var fe="";return pe>65535&&(pe-=65536,fe+=E(pe>>>10&1023|55296),pe=56320|pe&1023),fe+=E(pe),fe}).join("")}function ee(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:r}function Z(ue,pe){return ue+22+75*(ue<26)-((pe!=0)<<5)}function Ae(ue,pe,fe){var ce=0;for(ue=fe?I(ue/p):ue>>1,ue+=I(ue/pe);ue>S*l>>1;ce+=r)ue=I(ue/S);return I(ce+(S+1)*ue/(ue+d))}function U(ue){var pe=[],fe=ue.length,ce,be=0,Ce=m,xe=g,Se,me,te,$,B,k,q,ne,Q;for(Se=ue.lastIndexOf(v),Se<0&&(Se=0),me=0;me<Se;++me)ue.charCodeAt(me)>=128&&N("not-basic"),pe.push(ue.charCodeAt(me));for(te=Se>0?Se+1:0;te<fe;){for($=be,B=1,k=r;te>=fe&&N("invalid-input"),q=ee(ue.charCodeAt(te++)),(q>=r||q>I((n-be)/B))&&N("overflow"),be+=q*B,ne=k<=xe?s:k>=xe+l?l:k-xe,!(q<ne);k+=r)Q=r-ne,B>I(n/Q)&&N("overflow"),B*=Q;ce=pe.length+1,xe=Ae(be-$,ce,$==0),I(be/ce)>n-Ce&&N("overflow"),Ce+=I(be/ce),be%=ce,pe.splice(be++,0,Ce)}return G(pe)}function W(ue){var pe,fe,ce,be,Ce,xe,Se,me,te,$,B,k=[],q,ne,Q,z;for(ue=X(ue),q=ue.length,pe=m,fe=0,Ce=g,xe=0;xe<q;++xe)B=ue[xe],B<128&&k.push(E(B));for(ce=be=k.length,be&&k.push(v);ce<q;){for(Se=n,xe=0;xe<q;++xe)B=ue[xe],B>=pe&&B<Se&&(Se=B);for(ne=ce+1,Se-pe>I((n-fe)/ne)&&N("overflow"),fe+=(Se-pe)*ne,pe=Se,xe=0;xe<q;++xe)if(B=ue[xe],B<pe&&++fe>n&&N("overflow"),B==pe){for(me=fe,te=r;$=te<=Ce?s:te>=Ce+l?l:te-Ce,!(me<$);te+=r)z=me-$,Q=r-$,k.push(E(Z($+z%Q,0))),me=I(z/Q);k.push(E(Z(me,0))),Ce=Ae(fe,ne,ce==be),fe=0,++ce}++fe,++pe}return k.join("")}function le(ue){return H(ue,function(pe){return _.test(pe)?U(pe.slice(4).toLowerCase()):pe})}function he(ue){return H(ue,function(pe){return O.test(pe)?"xn--"+W(pe):pe})}if(o={version:"1.4.1",ucs2:{decode:X,encode:G},decode:U,encode:W,toASCII:he,toUnicode:le},typeof J=="function"&&typeof J.amd=="object"&&J.amd)J("punycode",function(){return o});else if(A&&c)if(C.exports==A)c.exports=o;else for(M in o)o.hasOwnProperty(M)&&(A[M]=o[M]);else u.punycode=o})(this)}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(t,C,b){"use strict";function a(A,c){return Object.prototype.hasOwnProperty.call(A,c)}C.exports=function(A,c,h,o){c=c||"&",h=h||"=";var n={};if(typeof A!="string"||A.length===0)return n;var r=/\+/g;A=A.split(c);var s=1e3;o&&typeof o.maxKeys=="number"&&(s=o.maxKeys);var l=A.length;s>0&&l>s&&(l=s);for(var d=0;d<l;++d){var p=A[d].replace(r,"%20"),g=p.indexOf(h),m,v,_,O;g>=0?(m=p.substr(0,g),v=p.substr(g+1)):(m=p,v=""),_=decodeURIComponent(m),O=decodeURIComponent(v),a(n,_)?u(n[_])?n[_].push(O):n[_]=[n[_],O]:n[_]=O}return n};var u=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"}},{}],384:[function(t,C,b){"use strict";var a=function(h){switch(typeof h){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}};C.exports=function(h,o,n,r){return o=o||"&",n=n||"=",h===null&&(h=void 0),typeof h=="object"?A(c(h),function(s){var l=encodeURIComponent(a(s))+n;return u(h[s])?A(h[s],function(d){return l+encodeURIComponent(a(d))}).join(o):l+encodeURIComponent(a(h[s]))}).join(o):r?encodeURIComponent(a(r))+n+encodeURIComponent(a(h)):""};var u=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function A(h,o){if(h.map)return h.map(o);for(var n=[],r=0;r<h.length;r++)n.push(o(h[r],r));return n}var c=Object.keys||function(h){var o=[];for(var n in h)Object.prototype.hasOwnProperty.call(h,n)&&o.push(n);return o}},{}],385:[function(t,C,b){"use strict";b.decode=b.parse=t("./decode"),b.encode=b.stringify=t("./encode")},{"./decode":383,"./encode":384}],386:[function(t,C,b){"use strict";var a=t("process-nextick-args"),u=Object.keys||function(p){var g=[];for(var m in p)g.push(m);return g};C.exports=s;var A=Object.create(t("core-util-is"));A.inherits=t("inherits");var c=t("./_stream_readable"),h=t("./_stream_writable");A.inherits(s,c);for(var o=u(h.prototype),n=0;n<o.length;n++){var r=o[n];s.prototype[r]||(s.prototype[r]=h.prototype[r])}function s(p){if(!(this instanceof s))return new s(p);c.call(this,p),h.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",l)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function l(){this.allowHalfOpen||this._writableState.ended||a.nextTick(d,this)}function d(p){p.end()}Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),s.prototype._destroy=function(p,g){this.push(null),this.end(),a.nextTick(g,p)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(t,C,b){"use strict";C.exports=A;var a=t("./_stream_transform"),u=Object.create(t("core-util-is"));u.inherits=t("inherits"),u.inherits(A,a);function A(c){if(!(this instanceof A))return new A(c);a.call(this,c)}A.prototype._transform=function(c,h,o){o(null,c)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(t,C,b){(function(a,u){(function(){"use strict";var A=t("process-nextick-args");C.exports=E;var c=t("isarray"),h;E.ReadableState=I;var o=t("events").EventEmitter,n=function(B,k){return B.listeners(k).length},r=t("./internal/streams/stream"),s=t("safe-buffer").Buffer,l=u.Uint8Array||function(){};function d(B){return s.from(B)}function p(B){return s.isBuffer(B)||B instanceof l}var g=Object.create(t("core-util-is"));g.inherits=t("inherits");var m=t("util"),v=void 0;m&&m.debuglog?v=m.debuglog("stream"):v=function(){};var _=t("./internal/streams/BufferList"),O=t("./internal/streams/destroy"),F;g.inherits(E,r);var T=["error","close","destroy","pause","resume"];function S(B,k,q){if(typeof B.prependListener=="function")return B.prependListener(k,q);!B._events||!B._events[k]?B.on(k,q):c(B._events[k])?B._events[k].unshift(q):B._events[k]=[q,B._events[k]]}function I(B,k){h=h||t("./_stream_duplex"),B=B||{};var q=k instanceof h;this.objectMode=!!B.objectMode,q&&(this.objectMode=this.objectMode||!!B.readableObjectMode);var ne=B.highWaterMark,Q=B.readableHighWaterMark,z=this.objectMode?16:16*1024;ne||ne===0?this.highWaterMark=ne:q&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=z,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,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=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(F||(F=t("string_decoder/").StringDecoder),this.decoder=new F(B.encoding),this.encoding=B.encoding)}function E(B){if(h=h||t("./_stream_duplex"),!(this instanceof E))return new E(B);this._readableState=new I(B,this),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),E.prototype.destroy=O.destroy,E.prototype._undestroy=O.undestroy,E.prototype._destroy=function(B,k){this.push(null),k(B)},E.prototype.push=function(B,k){var q=this._readableState,ne;return q.objectMode?ne=!0:typeof B=="string"&&(k=k||q.defaultEncoding,k!==q.encoding&&(B=s.from(B,k),k=""),ne=!0),M(this,B,k,!1,ne)},E.prototype.unshift=function(B){return M(this,B,null,!0,!1)};function M(B,k,q,ne,Q){var z=B._readableState;if(k===null)z.reading=!1,Z(B,z);else{var Y;Q||(Y=V(z,k)),Y?B.emit("error",Y):z.objectMode||k&&k.length>0?(typeof k!="string"&&!z.objectMode&&Object.getPrototypeOf(k)!==s.prototype&&(k=d(k)),ne?z.endEmitted?B.emit("error",new Error("stream.unshift() after end event")):N(B,z,k,!0):z.ended?B.emit("error",new Error("stream.push() after EOF")):(z.reading=!1,z.decoder&&!q?(k=z.decoder.write(k),z.objectMode||k.length!==0?N(B,z,k,!1):W(B,z)):N(B,z,k,!1))):ne||(z.reading=!1)}return H(z)}function N(B,k,q,ne){k.flowing&&k.length===0&&!k.sync?(B.emit("data",q),B.read(0)):(k.length+=k.objectMode?1:q.length,ne?k.buffer.unshift(q):k.buffer.push(q),k.needReadable&&Ae(B)),W(B,k)}function V(B,k){var q;return!p(k)&&typeof k!="string"&&k!==void 0&&!B.objectMode&&(q=new TypeError("Invalid non-string/buffer chunk")),q}function H(B){return!B.ended&&(B.needReadable||B.length<B.highWaterMark||B.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(B){return F||(F=t("string_decoder/").StringDecoder),this._readableState.decoder=new F(B),this._readableState.encoding=B,this};var X=8388608;function G(B){return B>=X?B=X:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(B,k){return B<=0||k.length===0&&k.ended?0:k.objectMode?1:B!==B?k.flowing&&k.length?k.buffer.head.data.length:k.length:(B>k.highWaterMark&&(k.highWaterMark=G(B)),B<=k.length?B:k.ended?k.length:(k.needReadable=!0,0))}E.prototype.read=function(B){v("read",B),B=parseInt(B,10);var k=this._readableState,q=B;if(B!==0&&(k.emittedReadable=!1),B===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return v("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?me(this):Ae(this),null;if(B=ee(B,k),B===0&&k.ended)return k.length===0&&me(this),null;var ne=k.needReadable;v("need readable",ne),(k.length===0||k.length-B<k.highWaterMark)&&(ne=!0,v("length less than watermark",ne)),k.ended||k.reading?(ne=!1,v("reading or ended",ne)):ne&&(v("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(B=ee(q,k)));var Q;return B>0?Q=be(B,k):Q=null,Q===null?(k.needReadable=!0,B=0):k.length-=B,k.length===0&&(k.ended||(k.needReadable=!0),q!==B&&k.ended&&me(this)),Q!==null&&this.emit("data",Q),Q};function Z(B,k){if(!k.ended){if(k.decoder){var q=k.decoder.end();q&&q.length&&(k.buffer.push(q),k.length+=k.objectMode?1:q.length)}k.ended=!0,Ae(B)}}function Ae(B){var k=B._readableState;k.needReadable=!1,k.emittedReadable||(v("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?A.nextTick(U,B):U(B))}function U(B){v("emit readable"),B.emit("readable"),ce(B)}function W(B,k){k.readingMore||(k.readingMore=!0,A.nextTick(le,B,k))}function le(B,k){for(var q=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(v("maybeReadMore read 0"),B.read(0),q!==k.length);)q=k.length;k.readingMore=!1}E.prototype._read=function(B){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(B,k){var q=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=B;break;case 1:ne.pipes=[ne.pipes,B];break;default:ne.pipes.push(B);break}ne.pipesCount+=1,v("pipe count=%d opts=%j",ne.pipesCount,k);var Q=(!k||k.end!==!1)&&B!==a.stdout&&B!==a.stderr,z=Q?re:Ue;ne.endEmitted?A.nextTick(z):q.once("end",z),B.on("unpipe",Y);function Y(Ye,ze){v("onunpipe"),Ye===q&&ze&&ze.hasUnpiped===!1&&(ze.hasUnpiped=!0,Oe())}function re(){v("onend"),B.end()}var ge=he(q);B.on("drain",ge);var Be=!1;function Oe(){v("cleanup"),B.removeListener("close",Ke),B.removeListener("finish",Ne),B.removeListener("drain",ge),B.removeListener("error",$e),B.removeListener("unpipe",Y),q.removeListener("end",re),q.removeListener("end",Ue),q.removeListener("data",Pe),Be=!0,ne.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&ge()}var Le=!1;q.on("data",Pe);function Pe(Ye){v("ondata"),Le=!1;var ze=B.write(Ye);ze===!1&&!Le&&((ne.pipesCount===1&&ne.pipes===B||ne.pipesCount>1&&$(ne.pipes,B)!==-1)&&!Be&&(v("false write response, pause",q._readableState.awaitDrain),q._readableState.awaitDrain++,Le=!0),q.pause())}function $e(Ye){v("onerror",Ye),Ue(),B.removeListener("error",$e),n(B,"error")===0&&B.emit("error",Ye)}S(B,"error",$e);function Ke(){B.removeListener("finish",Ne),Ue()}B.once("close",Ke);function Ne(){v("onfinish"),B.removeListener("close",Ke),Ue()}B.once("finish",Ne);function Ue(){v("unpipe"),q.unpipe(B)}return B.emit("pipe",q),ne.flowing||(v("pipe resume"),q.resume()),B};function he(B){return function(){var k=B._readableState;v("pipeOnDrain",k.awaitDrain),k.awaitDrain&&k.awaitDrain--,k.awaitDrain===0&&n(B,"data")&&(k.flowing=!0,ce(B))}}E.prototype.unpipe=function(B){var k=this._readableState,q={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return B&&B!==k.pipes?this:(B||(B=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,B&&B.emit("unpipe",this,q),this);if(!B){var ne=k.pipes,Q=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var z=0;z<Q;z++)ne[z].emit("unpipe",this,q);return this}var Y=$(k.pipes,B);return Y===-1?this:(k.pipes.splice(Y,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),B.emit("unpipe",this,q),this)},E.prototype.on=function(B,k){var q=r.prototype.on.call(this,B,k);if(B==="data")this._readableState.flowing!==!1&&this.resume();else if(B==="readable"){var ne=this._readableState;!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&Ae(this):A.nextTick(ue,this))}return q},E.prototype.addListener=E.prototype.on;function ue(B){v("readable nexttick read 0"),B.read(0)}E.prototype.resume=function(){var B=this._readableState;return B.flowing||(v("resume"),B.flowing=!0,pe(this,B)),this};function pe(B,k){k.resumeScheduled||(k.resumeScheduled=!0,A.nextTick(fe,B,k))}function fe(B,k){k.reading||(v("resume read 0"),B.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,B.emit("resume"),ce(B),k.flowing&&!k.reading&&B.read(0)}E.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ce(B){var k=B._readableState;for(v("flow",k.flowing);k.flowing&&B.read()!==null;);}E.prototype.wrap=function(B){var k=this,q=this._readableState,ne=!1;B.on("end",function(){if(v("wrapped end"),q.decoder&&!q.ended){var Y=q.decoder.end();Y&&Y.length&&k.push(Y)}k.push(null)}),B.on("data",function(Y){if(v("wrapped data"),q.decoder&&(Y=q.decoder.write(Y)),!(q.objectMode&&Y==null)&&!(!q.objectMode&&(!Y||!Y.length))){var re=k.push(Y);re||(ne=!0,B.pause())}});for(var Q in B)this[Q]===void 0&&typeof B[Q]=="function"&&(this[Q]=function(Y){return function(){return B[Y].apply(B,arguments)}}(Q));for(var z=0;z<T.length;z++)B.on(T[z],this.emit.bind(this,T[z]));return this._read=function(Y){v("wrapped _read",Y),ne&&(ne=!1,B.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=be;function be(B,k){if(k.length===0)return null;var q;return k.objectMode?q=k.buffer.shift():!B||B>=k.length?(k.decoder?q=k.buffer.join(""):k.buffer.length===1?q=k.buffer.head.data:q=k.buffer.concat(k.length),k.buffer.clear()):q=Ce(B,k.buffer,k.decoder),q}function Ce(B,k,q){var ne;return B<k.head.data.length?(ne=k.head.data.slice(0,B),k.head.data=k.head.data.slice(B)):B===k.head.data.length?ne=k.shift():ne=q?xe(B,k):Se(B,k),ne}function xe(B,k){var q=k.head,ne=1,Q=q.data;for(B-=Q.length;q=q.next;){var z=q.data,Y=B>z.length?z.length:B;if(Y===z.length?Q+=z:Q+=z.slice(0,B),B-=Y,B===0){Y===z.length?(++ne,q.next?k.head=q.next:k.head=k.tail=null):(k.head=q,q.data=z.slice(Y));break}++ne}return k.length-=ne,Q}function Se(B,k){var q=s.allocUnsafe(B),ne=k.head,Q=1;for(ne.data.copy(q),B-=ne.data.length;ne=ne.next;){var z=ne.data,Y=B>z.length?z.length:B;if(z.copy(q,q.length-B,0,Y),B-=Y,B===0){Y===z.length?(++Q,ne.next?k.head=ne.next:k.head=k.tail=null):(k.head=ne,ne.data=z.slice(Y));break}++Q}return k.length-=Q,q}function me(B){var k=B._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,A.nextTick(te,k,B))}function te(B,k){!B.endEmitted&&B.length===0&&(B.endEmitted=!0,k.readable=!1,k.emit("end"))}function $(B,k){for(var q=0,ne=B.length;q<ne;q++)if(B[q]===k)return q;return-1}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(t,C,b){"use strict";C.exports=c;var a=t("./_stream_duplex"),u=Object.create(t("core-util-is"));u.inherits=t("inherits"),u.inherits(c,a);function A(n,r){var s=this._transformState;s.transforming=!1;var l=s.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,r!=null&&this.push(r),l(n);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function c(n){if(!(this instanceof c))return new c(n);a.call(this,n),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",h)}function h(){var n=this;typeof this._flush=="function"?this._flush(function(r,s){o(n,r,s)}):o(this,null,null)}c.prototype.push=function(n,r){return this._transformState.needTransform=!1,a.prototype.push.call(this,n,r)},c.prototype._transform=function(n,r,s){throw new Error("_transform() is not implemented")},c.prototype._write=function(n,r,s){var l=this._transformState;if(l.writecb=s,l.writechunk=n,l.writeencoding=r,!l.transforming){var d=this._readableState;(l.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},c.prototype._read=function(n){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},c.prototype._destroy=function(n,r){var s=this;a.prototype._destroy.call(this,n,function(l){r(l),s.emit("close")})};function o(n,r,s){if(r)return n.emit("error",r);if(s!=null&&n.push(s),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(t,C,b){(function(a,u,A){(function(){"use strict";var c=t("process-nextick-args");C.exports=S;function h(fe,ce,be){this.chunk=fe,this.encoding=ce,this.callback=be,this.next=null}function o(fe){var ce=this;this.next=null,this.entry=null,this.finish=function(){pe(ce,fe)}}var n=!a.browser&&["v0.10","v0.9."].indexOf(a.version.slice(0,5))>-1?A:c.nextTick,r;S.WritableState=F;var s=Object.create(t("core-util-is"));s.inherits=t("inherits");var l={deprecate:t("util-deprecate")},d=t("./internal/streams/stream"),p=t("safe-buffer").Buffer,g=u.Uint8Array||function(){};function m(fe){return p.from(fe)}function v(fe){return p.isBuffer(fe)||fe instanceof g}var _=t("./internal/streams/destroy");s.inherits(S,d);function O(){}function F(fe,ce){r=r||t("./_stream_duplex"),fe=fe||{};var be=ce instanceof r;this.objectMode=!!fe.objectMode,be&&(this.objectMode=this.objectMode||!!fe.writableObjectMode);var Ce=fe.highWaterMark,xe=fe.writableHighWaterMark,Se=this.objectMode?16:16*1024;Ce||Ce===0?this.highWaterMark=Ce:be&&(xe||xe===0)?this.highWaterMark=xe:this.highWaterMark=Se,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var me=fe.decodeStrings===!1;this.decodeStrings=!me,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){G(ce,te)},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 o(this)}F.prototype.getBuffer=function(){for(var ce=this.bufferedRequest,be=[];ce;)be.push(ce),ce=ce.next;return be},function(){try{Object.defineProperty(F.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var T;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(T=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(fe){return T.call(this,fe)?!0:this!==S?!1:fe&&fe._writableState instanceof F}})):T=function(fe){return fe instanceof this};function S(fe){if(r=r||t("./_stream_duplex"),!T.call(S,this)&&!(this instanceof r))return new S(fe);this._writableState=new F(fe,this),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),d.call(this)}S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(fe,ce){var be=new Error("write after end");fe.emit("error",be),c.nextTick(ce,be)}function E(fe,ce,be,Ce){var xe=!0,Se=!1;return be===null?Se=new TypeError("May not write null values to stream"):typeof be!="string"&&be!==void 0&&!ce.objectMode&&(Se=new TypeError("Invalid non-string/buffer chunk")),Se&&(fe.emit("error",Se),c.nextTick(Ce,Se),xe=!1),xe}S.prototype.write=function(fe,ce,be){var Ce=this._writableState,xe=!1,Se=!Ce.objectMode&&v(fe);return Se&&!p.isBuffer(fe)&&(fe=m(fe)),typeof ce=="function"&&(be=ce,ce=null),Se?ce="buffer":ce||(ce=Ce.defaultEncoding),typeof be!="function"&&(be=O),Ce.ended?I(this,be):(Se||E(this,Ce,fe,be))&&(Ce.pendingcb++,xe=N(this,Ce,Se,fe,ce,be)),xe},S.prototype.cork=function(){var fe=this._writableState;fe.corked++},S.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.finished&&!fe.bufferProcessing&&fe.bufferedRequest&&Ae(this,fe))},S.prototype.setDefaultEncoding=function(ce){if(typeof ce=="string"&&(ce=ce.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ce+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ce);return this._writableState.defaultEncoding=ce,this};function M(fe,ce,be){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof ce=="string"&&(ce=p.from(ce,be)),ce}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(fe,ce,be,Ce,xe,Se){if(!be){var me=M(ce,Ce,xe);Ce!==me&&(be=!0,xe="buffer",Ce=me)}var te=ce.objectMode?1:Ce.length;ce.length+=te;var $=ce.length<ce.highWaterMark;if($||(ce.needDrain=!0),ce.writing||ce.corked){var B=ce.lastBufferedRequest;ce.lastBufferedRequest={chunk:Ce,encoding:xe,isBuf:be,callback:Se,next:null},B?B.next=ce.lastBufferedRequest:ce.bufferedRequest=ce.lastBufferedRequest,ce.bufferedRequestCount+=1}else V(fe,ce,!1,te,Ce,xe,Se);return $}function V(fe,ce,be,Ce,xe,Se,me){ce.writelen=Ce,ce.writecb=me,ce.writing=!0,ce.sync=!0,be?fe._writev(xe,ce.onwrite):fe._write(xe,Se,ce.onwrite),ce.sync=!1}function H(fe,ce,be,Ce,xe){--ce.pendingcb,be?(c.nextTick(xe,Ce),c.nextTick(he,fe,ce),fe._writableState.errorEmitted=!0,fe.emit("error",Ce)):(xe(Ce),fe._writableState.errorEmitted=!0,fe.emit("error",Ce),he(fe,ce))}function X(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}function G(fe,ce){var be=fe._writableState,Ce=be.sync,xe=be.writecb;if(X(be),ce)H(fe,be,Ce,ce,xe);else{var Se=U(be);!Se&&!be.corked&&!be.bufferProcessing&&be.bufferedRequest&&Ae(fe,be),Ce?n(ee,fe,be,Se,xe):ee(fe,be,Se,xe)}}function ee(fe,ce,be,Ce){be||Z(fe,ce),ce.pendingcb--,Ce(),he(fe,ce)}function Z(fe,ce){ce.length===0&&ce.needDrain&&(ce.needDrain=!1,fe.emit("drain"))}function Ae(fe,ce){ce.bufferProcessing=!0;var be=ce.bufferedRequest;if(fe._writev&&be&&be.next){var Ce=ce.bufferedRequestCount,xe=new Array(Ce),Se=ce.corkedRequestsFree;Se.entry=be;for(var me=0,te=!0;be;)xe[me]=be,be.isBuf||(te=!1),be=be.next,me+=1;xe.allBuffers=te,V(fe,ce,!0,ce.length,xe,"",Se.finish),ce.pendingcb++,ce.lastBufferedRequest=null,Se.next?(ce.corkedRequestsFree=Se.next,Se.next=null):ce.corkedRequestsFree=new o(ce),ce.bufferedRequestCount=0}else{for(;be;){var $=be.chunk,B=be.encoding,k=be.callback,q=ce.objectMode?1:$.length;if(V(fe,ce,!1,q,$,B,k),be=be.next,ce.bufferedRequestCount--,ce.writing)break}be===null&&(ce.lastBufferedRequest=null)}ce.bufferedRequest=be,ce.bufferProcessing=!1}S.prototype._write=function(fe,ce,be){be(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(fe,ce,be){var Ce=this._writableState;typeof fe=="function"?(be=fe,fe=null,ce=null):typeof ce=="function"&&(be=ce,ce=null),fe!=null&&this.write(fe,ce),Ce.corked&&(Ce.corked=1,this.uncork()),!Ce.ending&&!Ce.finished&&ue(this,Ce,be)};function U(fe){return fe.ending&&fe.length===0&&fe.bufferedRequest===null&&!fe.finished&&!fe.writing}function W(fe,ce){fe._final(function(be){ce.pendingcb--,be&&fe.emit("error",be),ce.prefinished=!0,fe.emit("prefinish"),he(fe,ce)})}function le(fe,ce){!ce.prefinished&&!ce.finalCalled&&(typeof fe._final=="function"?(ce.pendingcb++,ce.finalCalled=!0,c.nextTick(W,fe,ce)):(ce.prefinished=!0,fe.emit("prefinish")))}function he(fe,ce){var be=U(ce);return be&&(le(fe,ce),ce.pendingcb===0&&(ce.finished=!0,fe.emit("finish"))),be}function ue(fe,ce,be){ce.ending=!0,he(fe,ce),be&&(ce.finished?c.nextTick(be):fe.once("finish",be)),ce.ended=!0,fe.writable=!1}function pe(fe,ce,be){var Ce=fe.entry;for(fe.entry=null;Ce;){var xe=Ce.callback;ce.pendingcb--,xe(be),Ce=Ce.next}ce.corkedRequestsFree?ce.corkedRequestsFree.next=fe:ce.corkedRequestsFree=fe}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(fe){this._writableState&&(this._writableState.destroyed=fe)}}),S.prototype.destroy=_.destroy,S.prototype._undestroy=_.undestroy,S.prototype._destroy=function(fe,ce){this.end(),ce(fe)}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(t,C,b){"use strict";function a(h,o){if(!(h instanceof o))throw new TypeError("Cannot call a class as a function")}var u=t("safe-buffer").Buffer,A=t("util");function c(h,o,n){h.copy(o,n)}C.exports=function(){function h(){a(this,h),this.head=null,this.tail=null,this.length=0}return h.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},h.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},h.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},h.prototype.clear=function(){this.head=this.tail=null,this.length=0},h.prototype.join=function(n){if(this.length===0)return"";for(var r=this.head,s=""+r.data;r=r.next;)s+=n+r.data;return s},h.prototype.concat=function(n){if(this.length===0)return u.alloc(0);if(this.length===1)return this.head.data;for(var r=u.allocUnsafe(n>>>0),s=this.head,l=0;s;)c(s.data,r,l),l+=s.data.length,s=s.next;return r},h}(),A&&A.inspect&&A.inspect.custom&&(C.exports.prototype[A.inspect.custom]=function(){var h=A.inspect({length:this.length});return this.constructor.name+" "+h})},{"safe-buffer":396,util:89}],392:[function(t,C,b){"use strict";var a=t("process-nextick-args");function u(h,o){var n=this,r=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return r||s?(o?o(h):h&&(!this._writableState||!this._writableState.errorEmitted)&&a.nextTick(c,this,h),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(l){!o&&l?(a.nextTick(c,n,l),n._writableState&&(n._writableState.errorEmitted=!0)):o&&o(l)}),this)}function A(){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)}function c(h,o){h.emit("error",o)}C.exports={destroy:u,undestroy:A}},{"process-nextick-args":380}],393:[function(t,C,b){C.exports=t("events").EventEmitter},{events:344}],394:[function(t,C,b){b=C.exports=t("./lib/_stream_readable.js"),b.Stream=b,b.Readable=b,b.Writable=t("./lib/_stream_writable.js"),b.Duplex=t("./lib/_stream_duplex.js"),b.Transform=t("./lib/_stream_transform.js"),b.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(t,C,b){var a=function(u){"use strict";var A=Object.prototype,c=A.hasOwnProperty,h,o=typeof Symbol=="function"?Symbol:{},n=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(le,he,ue){return Object.defineProperty(le,he,{value:ue,enumerable:!0,configurable:!0,writable:!0}),le[he]}try{l({},"")}catch(le){l=function(he,ue,pe){return he[ue]=pe}}function d(le,he,ue,pe){var fe=he&&he.prototype instanceof F?he:F,ce=Object.create(fe.prototype),be=new Ae(pe||[]);return ce._invoke=X(le,ue,be),ce}u.wrap=d;function p(le,he,ue){try{return{type:"normal",arg:le.call(he,ue)}}catch(pe){return{type:"throw",arg:pe}}}var g="suspendedStart",m="suspendedYield",v="executing",_="completed",O={};function F(){}function T(){}function S(){}var I={};l(I,n,function(){return this});var E=Object.getPrototypeOf,M=E&&E(E(U([])));M&&M!==A&&c.call(M,n)&&(I=M);var N=S.prototype=F.prototype=Object.create(I);T.prototype=S,l(N,"constructor",S),l(S,"constructor",T),T.displayName=l(S,s,"GeneratorFunction");function V(le){["next","throw","return"].forEach(function(he){l(le,he,function(ue){return this._invoke(he,ue)})})}u.isGeneratorFunction=function(le){var he=typeof le=="function"&&le.constructor;return he?he===T||(he.displayName||he.name)==="GeneratorFunction":!1},u.mark=function(le){return Object.setPrototypeOf?Object.setPrototypeOf(le,S):(le.__proto__=S,l(le,s,"GeneratorFunction")),le.prototype=Object.create(N),le},u.awrap=function(le){return{__await:le}};function H(le,he){function ue(ce,be,Ce,xe){var Se=p(le[ce],le,be);if(Se.type==="throw")xe(Se.arg);else{var me=Se.arg,te=me.value;return te&&typeof te=="object"&&c.call(te,"__await")?he.resolve(te.__await).then(function($){ue("next",$,Ce,xe)},function($){ue("throw",$,Ce,xe)}):he.resolve(te).then(function($){me.value=$,Ce(me)},function($){return ue("throw",$,Ce,xe)})}}var pe;function fe(ce,be){function Ce(){return new he(function(xe,Se){ue(ce,be,xe,Se)})}return pe=pe?pe.then(Ce,Ce):Ce()}this._invoke=fe}V(H.prototype),l(H.prototype,r,function(){return this}),u.AsyncIterator=H,u.async=function(le,he,ue,pe,fe){fe===void 0&&(fe=Promise);var ce=new H(d(le,he,ue,pe),fe);return u.isGeneratorFunction(he)?ce:ce.next().then(function(be){return be.done?be.value:ce.next()})};function X(le,he,ue){var pe=g;return function(ce,be){if(pe===v)throw new Error("Generator is already running");if(pe===_){if(ce==="throw")throw be;return W()}for(ue.method=ce,ue.arg=be;;){var Ce=ue.delegate;if(Ce){var xe=G(Ce,ue);if(xe){if(xe===O)continue;return xe}}if(ue.method==="next")ue.sent=ue._sent=ue.arg;else if(ue.method==="throw"){if(pe===g)throw pe=_,ue.arg;ue.dispatchException(ue.arg)}else ue.method==="return"&&ue.abrupt("return",ue.arg);pe=v;var Se=p(le,he,ue);if(Se.type==="normal"){if(pe=ue.done?_:m,Se.arg===O)continue;return{value:Se.arg,done:ue.done}}else Se.type==="throw"&&(pe=_,ue.method="throw",ue.arg=Se.arg)}}}function G(le,he){var ue=le.iterator[he.method];if(ue===h){if(he.delegate=null,he.method==="throw"){if(le.iterator.return&&(he.method="return",he.arg=h,G(le,he),he.method==="throw"))return O;he.method="throw",he.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var pe=p(ue,le.iterator,he.arg);if(pe.type==="throw")return he.method="throw",he.arg=pe.arg,he.delegate=null,O;var fe=pe.arg;if(!fe)return he.method="throw",he.arg=new TypeError("iterator result is not an object"),he.delegate=null,O;if(fe.done)he[le.resultName]=fe.value,he.next=le.nextLoc,he.method!=="return"&&(he.method="next",he.arg=h);else return fe;return he.delegate=null,O}V(N),l(N,s,"Generator"),l(N,n,function(){return this}),l(N,"toString",function(){return"[object Generator]"});function ee(le){var he={tryLoc:le[0]};1 in le&&(he.catchLoc=le[1]),2 in le&&(he.finallyLoc=le[2],he.afterLoc=le[3]),this.tryEntries.push(he)}function Z(le){var he=le.completion||{};he.type="normal",delete he.arg,le.completion=he}function Ae(le){this.tryEntries=[{tryLoc:"root"}],le.forEach(ee,this),this.reset(!0)}u.keys=function(le){var he=[];for(var ue in le)he.push(ue);return he.reverse(),function pe(){for(;he.length;){var fe=he.pop();if(fe in le)return pe.value=fe,pe.done=!1,pe}return pe.done=!0,pe}};function U(le){if(le){var he=le[n];if(he)return he.call(le);if(typeof le.next=="function")return le;if(!isNaN(le.length)){var ue=-1,pe=function fe(){for(;++ue<le.length;)if(c.call(le,ue))return fe.value=le[ue],fe.done=!1,fe;return fe.value=h,fe.done=!0,fe};return pe.next=pe}}return{next:W}}u.values=U;function W(){return{value:h,done:!0}}return Ae.prototype={constructor:Ae,reset:function(le){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(Z),!le)for(var he in this)he.charAt(0)==="t"&&c.call(this,he)&&!isNaN(+he.slice(1))&&(this[he]=h)},stop:function(){this.done=!0;var le=this.tryEntries[0],he=le.completion;if(he.type==="throw")throw he.arg;return this.rval},dispatchException:function(le){if(this.done)throw le;var he=this;function ue(xe,Se){return ce.type="throw",ce.arg=le,he.next=xe,Se&&(he.method="next",he.arg=h),!!Se}for(var pe=this.tryEntries.length-1;pe>=0;--pe){var fe=this.tryEntries[pe],ce=fe.completion;if(fe.tryLoc==="root")return ue("end");if(fe.tryLoc<=this.prev){var be=c.call(fe,"catchLoc"),Ce=c.call(fe,"finallyLoc");if(be&&Ce){if(this.prev<fe.catchLoc)return ue(fe.catchLoc,!0);if(this.prev<fe.finallyLoc)return ue(fe.finallyLoc)}else if(be){if(this.prev<fe.catchLoc)return ue(fe.catchLoc,!0)}else if(Ce){if(this.prev<fe.finallyLoc)return ue(fe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(le,he){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var pe=this.tryEntries[ue];if(pe.tryLoc<=this.prev&&c.call(pe,"finallyLoc")&&this.prev<pe.finallyLoc){var fe=pe;break}}fe&&(le==="break"||le==="continue")&&fe.tryLoc<=he&&he<=fe.finallyLoc&&(fe=null);var ce=fe?fe.completion:{};return ce.type=le,ce.arg=he,fe?(this.method="next",this.next=fe.finallyLoc,O):this.complete(ce)},complete:function(le,he){if(le.type==="throw")throw le.arg;return le.type==="break"||le.type==="continue"?this.next=le.arg:le.type==="return"?(this.rval=this.arg=le.arg,this.method="return",this.next="end"):le.type==="normal"&&he&&(this.next=he),O},finish:function(le){for(var he=this.tryEntries.length-1;he>=0;--he){var ue=this.tryEntries[he];if(ue.finallyLoc===le)return this.complete(ue.completion,ue.afterLoc),Z(ue),O}},catch:function(le){for(var he=this.tryEntries.length-1;he>=0;--he){var ue=this.tryEntries[he];if(ue.tryLoc===le){var pe=ue.completion;if(pe.type==="throw"){var fe=pe.arg;Z(ue)}return fe}}throw new Error("illegal catch attempt")},delegateYield:function(le,he,ue){return this.delegate={iterator:U(le),resultName:he,nextLoc:ue},this.method==="next"&&(this.arg=h),O}},u}(typeof C=="object"?C.exports:{});try{regeneratorRuntime=a}catch(u){typeof globalThis=="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},{}],396:[function(t,C,b){var a=t("buffer"),u=a.Buffer;function A(h,o){for(var n in h)o[n]=h[n]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?C.exports=a:(A(a,b),b.Buffer=c);function c(h,o,n){return u(h,o,n)}A(u,c),c.from=function(h,o,n){if(typeof h=="number")throw new TypeError("Argument must not be a number");return u(h,o,n)},c.alloc=function(h,o,n){if(typeof h!="number")throw new TypeError("Argument must be a number");var r=u(h);return o!==void 0?typeof n=="string"?r.fill(o,n):r.fill(o):r.fill(0),r},c.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return u(h)},c.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(h)}},{buffer:90}],397:[function(t,C,b){(function(a){(function(){(function(u){u.parser=function(me,te){return new c(me,te)},u.SAXParser=c,u.SAXStream=d,u.createStream=l,u.MAX_BUFFER_LENGTH=64*1024;var A=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(me,te){if(!(this instanceof c))return new c(me,te);var $=this;o($),$.q=$.c="",$.bufferCheckPosition=u.MAX_BUFFER_LENGTH,$.opt=te||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!me,$.noscript=!!(me||$.opt.noscript),$.state=H.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=$.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(_)),$.trackPosition=$.opt.position!==!1,$.trackPosition&&($.position=$.line=$.column=0),G($,"onready")}Object.create||(Object.create=function(me){function te(){}te.prototype=me;var $=new te;return $}),Object.keys||(Object.keys=function(me){var te=[];for(var $ in me)me.hasOwnProperty($)&&te.push($);return te});function h(me){for(var te=Math.max(u.MAX_BUFFER_LENGTH,10),$=0,B=0,k=A.length;B<k;B++){var q=me[A[B]].length;if(q>te)switch(A[B]){case"textNode":Z(me);break;case"cdata":ee(me,"oncdata",me.cdata),me.cdata="";break;case"script":ee(me,"onscript",me.script),me.script="";break;default:U(me,"Max buffer length exceeded: "+A[B])}$=Math.max($,q)}var ne=u.MAX_BUFFER_LENGTH-$;me.bufferCheckPosition=ne+me.position}function o(me){for(var te=0,$=A.length;te<$;te++)me[A[te]]=""}function n(me){Z(me),me.cdata!==""&&(ee(me,"oncdata",me.cdata),me.cdata=""),me.script!==""&&(ee(me,"onscript",me.script),me.script="")}c.prototype={end:function(){W(this)},write:Se,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){n(this)}};var r;try{r=t("stream").Stream}catch(me){r=function(){}}var s=u.EVENTS.filter(function(me){return me!=="error"&&me!=="end"});function l(me,te){return new d(me,te)}function d(me,te){if(!(this instanceof d))return new d(me,te);r.apply(this),this._parser=new c(me,te),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(B){$.emit("error",B),$._parser.error=null},this._decoder=null,s.forEach(function(B){Object.defineProperty($,"on"+B,{get:function(){return $._parser["on"+B]},set:function(k){if(!k)return $.removeAllListeners(B),$._parser["on"+B]=k,k;$.on(B,k)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(r.prototype,{constructor:{value:d}}),d.prototype.write=function(me){if(typeof a=="function"&&typeof a.isBuffer=="function"&&a.isBuffer(me)){if(!this._decoder){var te=t("string_decoder").StringDecoder;this._decoder=new te("utf8")}me=this._decoder.write(me)}return this._parser.write(me.toString()),this.emit("data",me),!0},d.prototype.end=function(me){return me&&me.length&&this.write(me),this._parser.end(),!0},d.prototype.on=function(me,te){var $=this;return!$._parser["on"+me]&&s.indexOf(me)!==-1&&($._parser["on"+me]=function(){var B=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);B.splice(0,0,me),$.emit.apply($,B)}),r.prototype.on.call($,me,te)};var p="[CDATA[",g="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",_={xml:m,xmlns:v},O=/[:_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]/,F=/[:_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-]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[#:_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 I(me){return me===" "||me===`
|
|
|
`||me==="\r"||me===" "}function E(me){return me==='"'||me==="'"}function M(me){return me===">"||I(me)}function N(me,te){return me.test(te)}function V(me,te){return!N(me,te)}var H=0;u.STATE={BEGIN:H++,BEGIN_WHITESPACE:H++,TEXT:H++,TEXT_ENTITY:H++,OPEN_WAKA:H++,SGML_DECL:H++,SGML_DECL_QUOTED:H++,DOCTYPE:H++,DOCTYPE_QUOTED:H++,DOCTYPE_DTD:H++,DOCTYPE_DTD_QUOTED:H++,COMMENT_STARTING:H++,COMMENT:H++,COMMENT_ENDING:H++,COMMENT_ENDED:H++,CDATA:H++,CDATA_ENDING:H++,CDATA_ENDING_2:H++,PROC_INST:H++,PROC_INST_BODY:H++,PROC_INST_ENDING:H++,OPEN_TAG:H++,OPEN_TAG_SLASH:H++,ATTRIB:H++,ATTRIB_NAME:H++,ATTRIB_NAME_SAW_WHITE:H++,ATTRIB_VALUE:H++,ATTRIB_VALUE_QUOTED:H++,ATTRIB_VALUE_CLOSED:H++,ATTRIB_VALUE_UNQUOTED:H++,ATTRIB_VALUE_ENTITY_Q:H++,ATTRIB_VALUE_ENTITY_U:H++,CLOSE_TAG:H++,CLOSE_TAG_SAW_WHITE:H++,SCRIPT:H++,SCRIPT_ENDING:H++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.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:174,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(u.ENTITIES).forEach(function(me){var te=u.ENTITIES[me],$=typeof te=="number"?String.fromCharCode(te):te;u.ENTITIES[me]=$});for(var X in u.STATE)u.STATE[u.STATE[X]]=X;H=u.STATE;function G(me,te,$){me[te]&&me[te]($)}function ee(me,te,$){me.textNode&&Z(me),G(me,te,$)}function Z(me){me.textNode=Ae(me.opt,me.textNode),me.textNode&&G(me,"ontext",me.textNode),me.textNode=""}function Ae(me,te){return me.trim&&(te=te.trim()),me.normalize&&(te=te.replace(/\s+/g," ")),te}function U(me,te){return Z(me),me.trackPosition&&(te+=`
|
|
|
Line: `+me.line+`
|
|
|
Column: `+me.column+`
|
|
|
Char: `+me.c),te=new Error(te),me.error=te,G(me,"onerror",te),me}function W(me){return me.sawRoot&&!me.closedRoot&&le(me,"Unclosed root tag"),me.state!==H.BEGIN&&me.state!==H.BEGIN_WHITESPACE&&me.state!==H.TEXT&&U(me,"Unexpected end"),Z(me),me.c="",me.closed=!0,G(me,"onend"),c.call(me,me.strict,me.opt),me}function le(me,te){if(typeof me!="object"||!(me instanceof c))throw new Error("bad call to strictFail");me.strict&&U(me,te)}function he(me){me.strict||(me.tagName=me.tagName[me.looseCase]());var te=me.tags[me.tags.length-1]||me,$=me.tag={name:me.tagName,attributes:{}};me.opt.xmlns&&($.ns=te.ns),me.attribList.length=0,ee(me,"onopentagstart",$)}function ue(me,te){var $=me.indexOf(":"),B=$<0?["",me]:me.split(":"),k=B[0],q=B[1];return te&&me==="xmlns"&&(k="xmlns",q=""),{prefix:k,local:q}}function pe(me){if(me.strict||(me.attribName=me.attribName[me.looseCase]()),me.attribList.indexOf(me.attribName)!==-1||me.tag.attributes.hasOwnProperty(me.attribName)){me.attribName=me.attribValue="";return}if(me.opt.xmlns){var te=ue(me.attribName,!0),$=te.prefix,B=te.local;if($==="xmlns")if(B==="xml"&&me.attribValue!==m)le(me,"xml: prefix must be bound to "+m+`
|
|
|
Actual: `+me.attribValue);else if(B==="xmlns"&&me.attribValue!==v)le(me,"xmlns: prefix must be bound to "+v+`
|
|
|
Actual: `+me.attribValue);else{var k=me.tag,q=me.tags[me.tags.length-1]||me;k.ns===q.ns&&(k.ns=Object.create(q.ns)),k.ns[B]=me.attribValue}me.attribList.push([me.attribName,me.attribValue])}else me.tag.attributes[me.attribName]=me.attribValue,ee(me,"onattribute",{name:me.attribName,value:me.attribValue});me.attribName=me.attribValue=""}function fe(me,te){if(me.opt.xmlns){var $=me.tag,B=ue(me.tagName);$.prefix=B.prefix,$.local=B.local,$.uri=$.ns[B.prefix]||"",$.prefix&&!$.uri&&(le(me,"Unbound namespace prefix: "+JSON.stringify(me.tagName)),$.uri=B.prefix);var k=me.tags[me.tags.length-1]||me;$.ns&&k.ns!==$.ns&&Object.keys($.ns).forEach(function(Pe){ee(me,"onopennamespace",{prefix:Pe,uri:$.ns[Pe]})});for(var q=0,ne=me.attribList.length;q<ne;q++){var Q=me.attribList[q],z=Q[0],Y=Q[1],re=ue(z,!0),ge=re.prefix,Be=re.local,Oe=ge===""?"":$.ns[ge]||"",Le={name:z,value:Y,prefix:ge,local:Be,uri:Oe};ge&&ge!=="xmlns"&&!Oe&&(le(me,"Unbound namespace prefix: "+JSON.stringify(ge)),Le.uri=ge),me.tag.attributes[z]=Le,ee(me,"onattribute",Le)}me.attribList.length=0}me.tag.isSelfClosing=!!te,me.sawRoot=!0,me.tags.push(me.tag),ee(me,"onopentag",me.tag),te||(!me.noscript&&me.tagName.toLowerCase()==="script"?me.state=H.SCRIPT:me.state=H.TEXT,me.tag=null,me.tagName=""),me.attribName=me.attribValue="",me.attribList.length=0}function ce(me){if(!me.tagName){le(me,"Weird empty close tag."),me.textNode+="</>",me.state=H.TEXT;return}if(me.script){if(me.tagName!=="script"){me.script+="</"+me.tagName+">",me.tagName="",me.state=H.SCRIPT;return}ee(me,"onscript",me.script),me.script=""}var te=me.tags.length,$=me.tagName;me.strict||($=$[me.looseCase]());for(var B=$;te--;){var k=me.tags[te];if(k.name!==B)le(me,"Unexpected close tag");else break}if(te<0){le(me,"Unmatched closing tag: "+me.tagName),me.textNode+="</"+me.tagName+">",me.state=H.TEXT;return}me.tagName=$;for(var q=me.tags.length;q-- >te;){var ne=me.tag=me.tags.pop();me.tagName=me.tag.name,ee(me,"onclosetag",me.tagName);var Q={};for(var z in ne.ns)Q[z]=ne.ns[z];var Y=me.tags[me.tags.length-1]||me;me.opt.xmlns&&ne.ns!==Y.ns&&Object.keys(ne.ns).forEach(function(re){var ge=ne.ns[re];ee(me,"onclosenamespace",{prefix:re,uri:ge})})}te===0&&(me.closedRoot=!0),me.tagName=me.attribValue=me.attribName="",me.attribList.length=0,me.state=H.TEXT}function be(me){var te=me.entity,$=te.toLowerCase(),B,k="";return me.ENTITIES[te]?me.ENTITIES[te]:me.ENTITIES[$]?me.ENTITIES[$]:(te=$,te.charAt(0)==="#"&&(te.charAt(1)==="x"?(te=te.slice(2),B=parseInt(te,16),k=B.toString(16)):(te=te.slice(1),B=parseInt(te,10),k=B.toString(10))),te=te.replace(/^0+/,""),isNaN(B)||k.toLowerCase()!==te?(le(me,"Invalid character entity"),"&"+me.entity+";"):String.fromCodePoint(B))}function Ce(me,te){te==="<"?(me.state=H.OPEN_WAKA,me.startTagPosition=me.position):I(te)||(le(me,"Non-whitespace before first tag."),me.textNode=te,me.state=H.TEXT)}function xe(me,te){var $="";return te<me.length&&($=me.charAt(te)),$}function Se(me){var te=this;if(this.error)throw this.error;if(te.closed)return U(te,"Cannot write after close. Assign an onready handler.");if(me===null)return W(te);typeof me=="object"&&(me=me.toString());for(var $=0,B="";B=xe(me,$++),te.c=B,!!B;)switch(te.trackPosition&&(te.position++,B===`
|
|
|
`?(te.line++,te.column=0):te.column++),te.state){case H.BEGIN:if(te.state=H.BEGIN_WHITESPACE,B==="\uFEFF")continue;Ce(te,B);continue;case H.BEGIN_WHITESPACE:Ce(te,B);continue;case H.TEXT:if(te.sawRoot&&!te.closedRoot){for(var k=$-1;B&&B!=="<"&&B!=="&";)B=xe(me,$++),B&&te.trackPosition&&(te.position++,B===`
|
|
|
`?(te.line++,te.column=0):te.column++);te.textNode+=me.substring(k,$-1)}B==="<"&&!(te.sawRoot&&te.closedRoot&&!te.strict)?(te.state=H.OPEN_WAKA,te.startTagPosition=te.position):(!I(B)&&(!te.sawRoot||te.closedRoot)&&le(te,"Text data outside of root node."),B==="&"?te.state=H.TEXT_ENTITY:te.textNode+=B);continue;case H.SCRIPT:B==="<"?te.state=H.SCRIPT_ENDING:te.script+=B;continue;case H.SCRIPT_ENDING:B==="/"?te.state=H.CLOSE_TAG:(te.script+="<"+B,te.state=H.SCRIPT);continue;case H.OPEN_WAKA:if(B==="!")te.state=H.SGML_DECL,te.sgmlDecl="";else if(!I(B))if(N(O,B))te.state=H.OPEN_TAG,te.tagName=B;else if(B==="/")te.state=H.CLOSE_TAG,te.tagName="";else if(B==="?")te.state=H.PROC_INST,te.procInstName=te.procInstBody="";else{if(le(te,"Unencoded <"),te.startTagPosition+1<te.position){var q=te.position-te.startTagPosition;B=new Array(q).join(" ")+B}te.textNode+="<"+B,te.state=H.TEXT}continue;case H.SGML_DECL:(te.sgmlDecl+B).toUpperCase()===p?(ee(te,"onopencdata"),te.state=H.CDATA,te.sgmlDecl="",te.cdata=""):te.sgmlDecl+B==="--"?(te.state=H.COMMENT,te.comment="",te.sgmlDecl=""):(te.sgmlDecl+B).toUpperCase()===g?(te.state=H.DOCTYPE,(te.doctype||te.sawRoot)&&le(te,"Inappropriately located doctype declaration"),te.doctype="",te.sgmlDecl=""):B===">"?(ee(te,"onsgmldeclaration",te.sgmlDecl),te.sgmlDecl="",te.state=H.TEXT):(E(B)&&(te.state=H.SGML_DECL_QUOTED),te.sgmlDecl+=B);continue;case H.SGML_DECL_QUOTED:B===te.q&&(te.state=H.SGML_DECL,te.q=""),te.sgmlDecl+=B;continue;case H.DOCTYPE:B===">"?(te.state=H.TEXT,ee(te,"ondoctype",te.doctype),te.doctype=!0):(te.doctype+=B,B==="["?te.state=H.DOCTYPE_DTD:E(B)&&(te.state=H.DOCTYPE_QUOTED,te.q=B));continue;case H.DOCTYPE_QUOTED:te.doctype+=B,B===te.q&&(te.q="",te.state=H.DOCTYPE);continue;case H.DOCTYPE_DTD:te.doctype+=B,B==="]"?te.state=H.DOCTYPE:E(B)&&(te.state=H.DOCTYPE_DTD_QUOTED,te.q=B);continue;case H.DOCTYPE_DTD_QUOTED:te.doctype+=B,B===te.q&&(te.state=H.DOCTYPE_DTD,te.q="");continue;case H.COMMENT:B==="-"?te.state=H.COMMENT_ENDING:te.comment+=B;continue;case H.COMMENT_ENDING:B==="-"?(te.state=H.COMMENT_ENDED,te.comment=Ae(te.opt,te.comment),te.comment&&ee(te,"oncomment",te.comment),te.comment=""):(te.comment+="-"+B,te.state=H.COMMENT);continue;case H.COMMENT_ENDED:B!==">"?(le(te,"Malformed comment"),te.comment+="--"+B,te.state=H.COMMENT):te.state=H.TEXT;continue;case H.CDATA:B==="]"?te.state=H.CDATA_ENDING:te.cdata+=B;continue;case H.CDATA_ENDING:B==="]"?te.state=H.CDATA_ENDING_2:(te.cdata+="]"+B,te.state=H.CDATA);continue;case H.CDATA_ENDING_2:B===">"?(te.cdata&&ee(te,"oncdata",te.cdata),ee(te,"onclosecdata"),te.cdata="",te.state=H.TEXT):B==="]"?te.cdata+="]":(te.cdata+="]]"+B,te.state=H.CDATA);continue;case H.PROC_INST:B==="?"?te.state=H.PROC_INST_ENDING:I(B)?te.state=H.PROC_INST_BODY:te.procInstName+=B;continue;case H.PROC_INST_BODY:if(!te.procInstBody&&I(B))continue;B==="?"?te.state=H.PROC_INST_ENDING:te.procInstBody+=B;continue;case H.PROC_INST_ENDING:B===">"?(ee(te,"onprocessinginstruction",{name:te.procInstName,body:te.procInstBody}),te.procInstName=te.procInstBody="",te.state=H.TEXT):(te.procInstBody+="?"+B,te.state=H.PROC_INST_BODY);continue;case H.OPEN_TAG:N(F,B)?te.tagName+=B:(he(te),B===">"?fe(te):B==="/"?te.state=H.OPEN_TAG_SLASH:(I(B)||le(te,"Invalid character in tag name"),te.state=H.ATTRIB));continue;case H.OPEN_TAG_SLASH:B===">"?(fe(te,!0),ce(te)):(le(te,"Forward-slash in opening tag not followed by >"),te.state=H.ATTRIB);continue;case H.ATTRIB:if(I(B))continue;B===">"?fe(te):B==="/"?te.state=H.OPEN_TAG_SLASH:N(O,B)?(te.attribName=B,te.attribValue="",te.state=H.ATTRIB_NAME):le(te,"Invalid attribute name");continue;case H.ATTRIB_NAME:B==="="?te.state=H.ATTRIB_VALUE:B===">"?(le(te,"Attribute without value"),te.attribValue=te.attribName,pe(te),fe(te)):I(B)?te.state=H.ATTRIB_NAME_SAW_WHITE:N(F,B)?te.attribName+=B:le(te,"Invalid attribute name");continue;case H.ATTRIB_NAME_SAW_WHITE:if(B==="=")te.state=H.ATTRIB_VALUE;else{if(I(B))continue;le(te,"Attribute without value"),te.tag.attributes[te.attribName]="",te.attribValue="",ee(te,"onattribute",{name:te.attribName,value:""}),te.attribName="",B===">"?fe(te):N(O,B)?(te.attribName=B,te.state=H.ATTRIB_NAME):(le(te,"Invalid attribute name"),te.state=H.ATTRIB)}continue;case H.ATTRIB_VALUE:if(I(B))continue;E(B)?(te.q=B,te.state=H.ATTRIB_VALUE_QUOTED):(le(te,"Unquoted attribute value"),te.state=H.ATTRIB_VALUE_UNQUOTED,te.attribValue=B);continue;case H.ATTRIB_VALUE_QUOTED:if(B!==te.q){B==="&"?te.state=H.ATTRIB_VALUE_ENTITY_Q:te.attribValue+=B;continue}pe(te),te.q="",te.state=H.ATTRIB_VALUE_CLOSED;continue;case H.ATTRIB_VALUE_CLOSED:I(B)?te.state=H.ATTRIB:B===">"?fe(te):B==="/"?te.state=H.OPEN_TAG_SLASH:N(O,B)?(le(te,"No whitespace between attributes"),te.attribName=B,te.attribValue="",te.state=H.ATTRIB_NAME):le(te,"Invalid attribute name");continue;case H.ATTRIB_VALUE_UNQUOTED:if(!M(B)){B==="&"?te.state=H.ATTRIB_VALUE_ENTITY_U:te.attribValue+=B;continue}pe(te),B===">"?fe(te):te.state=H.ATTRIB;continue;case H.CLOSE_TAG:if(te.tagName)B===">"?ce(te):N(F,B)?te.tagName+=B:te.script?(te.script+="</"+te.tagName,te.tagName="",te.state=H.SCRIPT):(I(B)||le(te,"Invalid tagname in closing tag"),te.state=H.CLOSE_TAG_SAW_WHITE);else{if(I(B))continue;V(O,B)?te.script?(te.script+="</"+B,te.state=H.SCRIPT):le(te,"Invalid tagname in closing tag."):te.tagName=B}continue;case H.CLOSE_TAG_SAW_WHITE:if(I(B))continue;B===">"?ce(te):le(te,"Invalid characters in closing tag");continue;case H.TEXT_ENTITY:case H.ATTRIB_VALUE_ENTITY_Q:case H.ATTRIB_VALUE_ENTITY_U:var ne,Q;switch(te.state){case H.TEXT_ENTITY:ne=H.TEXT,Q="textNode";break;case H.ATTRIB_VALUE_ENTITY_Q:ne=H.ATTRIB_VALUE_QUOTED,Q="attribValue";break;case H.ATTRIB_VALUE_ENTITY_U:ne=H.ATTRIB_VALUE_UNQUOTED,Q="attribValue";break}B===";"?(te[Q]+=be(te),te.entity="",te.state=ne):N(te.entity.length?S:T,B)?te.entity+=B:(le(te,"Invalid character in entity name"),te[Q]+="&"+te.entity+B,te.entity="",te.state=ne);continue;default:throw new Error(te,"Unknown state: "+te.state)}return te.position>=te.bufferCheckPosition&&h(te),te}String.fromCodePoint||function(){var me=String.fromCharCode,te=Math.floor,$=function(){var B=16384,k=[],q,ne,Q=-1,z=arguments.length;if(!z)return"";for(var Y="";++Q<z;){var re=Number(arguments[Q]);if(!isFinite(re)||re<0||re>1114111||te(re)!==re)throw RangeError("Invalid code point: "+re);re<=65535?k.push(re):(re-=65536,q=(re>>10)+55296,ne=re%1024+56320,k.push(q,ne)),(Q+1===z||k.length>B)&&(Y+=me.apply(null,k),k.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$}()})(typeof b=="undefined"?this.sax={}:b)}).call(this)}).call(this,t("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(t,C,b){C.exports=A;var a=t("events").EventEmitter,u=t("inherits");u(A,a),A.Readable=t("readable-stream/lib/_stream_readable.js"),A.Writable=t("readable-stream/lib/_stream_writable.js"),A.Duplex=t("readable-stream/lib/_stream_duplex.js"),A.Transform=t("readable-stream/lib/_stream_transform.js"),A.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),A.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),A.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),A.Stream=A;function A(){a.call(this)}A.prototype.pipe=function(c,h){var o=this;function n(m){c.writable&&c.write(m)===!1&&o.pause&&o.pause()}o.on("data",n);function r(){o.readable&&o.resume&&o.resume()}c.on("drain",r),!c._isStdio&&(!h||h.end!==!1)&&(o.on("end",l),o.on("close",d));var s=!1;function l(){s||(s=!0,c.end())}function d(){s||(s=!0,typeof c.destroy=="function"&&c.destroy())}function p(m){if(g(),a.listenerCount(this,"error")===0)throw m}o.on("error",p),c.on("error",p);function g(){o.removeListener("data",n),c.removeListener("drain",r),o.removeListener("end",l),o.removeListener("close",d),o.removeListener("error",p),c.removeListener("error",p),o.removeListener("end",g),o.removeListener("close",g),c.removeListener("close",g)}return o.on("end",g),o.on("close",g),c.on("close",g),c.emit("pipe",o),c}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(t,C,b){"use strict";function a(r,s){r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s}var u={};function A(r,s,l){l||(l=Error);function d(g,m,v){return typeof s=="string"?s:s(g,m,v)}var p=function(g){a(m,g);function m(v,_,O){return g.call(this,d(v,_,O))||this}return m}(l);p.prototype.name=l.name,p.prototype.code=r,u[r]=p}function c(r,s){if(Array.isArray(r)){var l=r.length;return r=r.map(function(d){return String(d)}),l>2?"one of ".concat(s," ").concat(r.slice(0,l-1).join(", "),", or ")+r[l-1]:l===2?"one of ".concat(s," ").concat(r[0]," or ").concat(r[1]):"of ".concat(s," ").concat(r[0])}else return"of ".concat(s," ").concat(String(r))}function h(r,s,l){return r.substr(!l||l<0?0:+l,s.length)===s}function o(r,s,l){return(l===void 0||l>r.length)&&(l=r.length),r.substring(l-s.length,l)===s}function n(r,s,l){return typeof l!="number"&&(l=0),l+s.length>r.length?!1:r.indexOf(s,l)!==-1}A("ERR_INVALID_OPT_VALUE",function(r,s){return'The value "'+s+'" is invalid for option "'+r+'"'},TypeError),A("ERR_INVALID_ARG_TYPE",function(r,s,l){var d;typeof s=="string"&&h(s,"not ")?(d="must not be",s=s.replace(/^not /,"")):d="must be";var p;if(o(r," argument"))p="The ".concat(r," ").concat(d," ").concat(c(s,"type"));else{var g=n(r,".")?"property":"argument";p='The "'.concat(r,'" ').concat(g," ").concat(d," ").concat(c(s,"type"))}return p+=". Received type ".concat(typeof l),p},TypeError),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),A("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),A("ERR_STREAM_PREMATURE_CLOSE","Premature close"),A("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),A("ERR_STREAM_WRITE_AFTER_END","write after end"),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),C.exports.codes=u},{}],400:[function(t,C,b){(function(a){(function(){"use strict";var u=Object.keys||function(d){var p=[];for(var g in d)p.push(g);return p};C.exports=r;var A=t("./_stream_readable"),c=t("./_stream_writable");t("inherits")(r,A);for(var h=u(c.prototype),o=0;o<h.length;o++){var n=h[o];r.prototype[n]||(r.prototype[n]=c.prototype[n])}function r(d){if(!(this instanceof r))return new r(d);A.call(this,d),c.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||a.nextTick(l,this)}function l(d){d.end()}Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(t,C,b){"use strict";C.exports=u;var a=t("./_stream_transform");t("inherits")(u,a);function u(A){if(!(this instanceof u))return new u(A);a.call(this,A)}u.prototype._transform=function(A,c,h){h(null,A)}},{"./_stream_transform":403,inherits:364}],402:[function(t,C,b){(function(a,u){(function(){"use strict";C.exports=ee;var A;ee.ReadableState=G;var c=t("events").EventEmitter,h=function(z,Y){return z.listeners(Y).length},o=t("./internal/streams/stream"),n=t("buffer").Buffer,r=(typeof u!="undefined"?u:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function s(Q){return n.from(Q)}function l(Q){return n.isBuffer(Q)||Q instanceof r}var d=t("util"),p;d&&d.debuglog?p=d.debuglog("stream"):p=function(){};var g=t("./internal/streams/buffer_list"),m=t("./internal/streams/destroy"),v=t("./internal/streams/state"),_=v.getHighWaterMark,O=t("../errors").codes,F=O.ERR_INVALID_ARG_TYPE,T=O.ERR_STREAM_PUSH_AFTER_EOF,S=O.ERR_METHOD_NOT_IMPLEMENTED,I=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,M,N;t("inherits")(ee,o);var V=m.errorOrDestroy,H=["error","close","destroy","pause","resume"];function X(Q,z,Y){if(typeof Q.prependListener=="function")return Q.prependListener(z,Y);!Q._events||!Q._events[z]?Q.on(z,Y):Array.isArray(Q._events[z])?Q._events[z].unshift(Y):Q._events[z]=[Y,Q._events[z]]}function G(Q,z,Y){A=A||t("./_stream_duplex"),Q=Q||{},typeof Y!="boolean"&&(Y=z instanceof A),this.objectMode=!!Q.objectMode,Y&&(this.objectMode=this.objectMode||!!Q.readableObjectMode),this.highWaterMark=_(this,Q,"readableHighWaterMark",Y),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&(E||(E=t("string_decoder/").StringDecoder),this.decoder=new E(Q.encoding),this.encoding=Q.encoding)}function ee(Q){if(A=A||t("./_stream_duplex"),!(this instanceof ee))return new ee(Q);var z=this instanceof A;this._readableState=new G(Q,this,z),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),o.call(this)}Object.defineProperty(ee.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),ee.prototype.destroy=m.destroy,ee.prototype._undestroy=m.undestroy,ee.prototype._destroy=function(Q,z){z(Q)},ee.prototype.push=function(Q,z){var Y=this._readableState,re;return Y.objectMode?re=!0:typeof Q=="string"&&(z=z||Y.defaultEncoding,z!==Y.encoding&&(Q=n.from(Q,z),z=""),re=!0),Z(this,Q,z,!1,re)},ee.prototype.unshift=function(Q){return Z(this,Q,null,!0,!1)};function Z(Q,z,Y,re,ge){p("readableAddChunk",z);var Be=Q._readableState;if(z===null)Be.reading=!1,ue(Q,Be);else{var Oe;if(ge||(Oe=U(Be,z)),Oe)V(Q,Oe);else if(Be.objectMode||z&&z.length>0)if(typeof z!="string"&&!Be.objectMode&&Object.getPrototypeOf(z)!==n.prototype&&(z=s(z)),re)Be.endEmitted?V(Q,new I):Ae(Q,Be,z,!0);else if(Be.ended)V(Q,new T);else{if(Be.destroyed)return!1;Be.reading=!1,Be.decoder&&!Y?(z=Be.decoder.write(z),Be.objectMode||z.length!==0?Ae(Q,Be,z,!1):ce(Q,Be)):Ae(Q,Be,z,!1)}else re||(Be.reading=!1,ce(Q,Be))}return!Be.ended&&(Be.length<Be.highWaterMark||Be.length===0)}function Ae(Q,z,Y,re){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,Q.emit("data",Y)):(z.length+=z.objectMode?1:Y.length,re?z.buffer.unshift(Y):z.buffer.push(Y),z.needReadable&&pe(Q)),ce(Q,z)}function U(Q,z){var Y;return!l(z)&&typeof z!="string"&&z!==void 0&&!Q.objectMode&&(Y=new F("chunk",["string","Buffer","Uint8Array"],z)),Y}ee.prototype.isPaused=function(){return this._readableState.flowing===!1},ee.prototype.setEncoding=function(Q){E||(E=t("string_decoder/").StringDecoder);var z=new E(Q);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,re="";Y!==null;)re+=z.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),re!==""&&this._readableState.buffer.push(re),this._readableState.length=re.length,this};var W=1073741824;function le(Q){return Q>=W?Q=W:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function he(Q,z){return Q<=0||z.length===0&&z.ended?0:z.objectMode?1:Q!==Q?z.flowing&&z.length?z.buffer.head.data.length:z.length:(Q>z.highWaterMark&&(z.highWaterMark=le(Q)),Q<=z.length?Q:z.ended?z.length:(z.needReadable=!0,0))}ee.prototype.read=function(Q){p("read",Q),Q=parseInt(Q,10);var z=this._readableState,Y=Q;if(Q!==0&&(z.emittedReadable=!1),Q===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return p("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?k(this):pe(this),null;if(Q=he(Q,z),Q===0&&z.ended)return z.length===0&&k(this),null;var re=z.needReadable;p("need readable",re),(z.length===0||z.length-Q<z.highWaterMark)&&(re=!0,p("length less than watermark",re)),z.ended||z.reading?(re=!1,p("reading or ended",re)):re&&(p("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(Q=he(Y,z)));var ge;return Q>0?ge=B(Q,z):ge=null,ge===null?(z.needReadable=z.length<=z.highWaterMark,Q=0):(z.length-=Q,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),Y!==Q&&z.ended&&k(this)),ge!==null&&this.emit("data",ge),ge};function ue(Q,z){if(p("onEofChunk"),!z.ended){if(z.decoder){var Y=z.decoder.end();Y&&Y.length&&(z.buffer.push(Y),z.length+=z.objectMode?1:Y.length)}z.ended=!0,z.sync?pe(Q):(z.needReadable=!1,z.emittedReadable||(z.emittedReadable=!0,fe(Q)))}}function pe(Q){var z=Q._readableState;p("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(p("emitReadable",z.flowing),z.emittedReadable=!0,a.nextTick(fe,Q))}function fe(Q){var z=Q._readableState;p("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&(z.length||z.ended)&&(Q.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,$(Q)}function ce(Q,z){z.readingMore||(z.readingMore=!0,a.nextTick(be,Q,z))}function be(Q,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var Y=z.length;if(p("maybeReadMore read 0"),Q.read(0),Y===z.length)break}z.readingMore=!1}ee.prototype._read=function(Q){V(this,new S("_read()"))},ee.prototype.pipe=function(Q,z){var Y=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=Q;break;case 1:re.pipes=[re.pipes,Q];break;default:re.pipes.push(Q);break}re.pipesCount+=1,p("pipe count=%d opts=%j",re.pipesCount,z);var ge=(!z||z.end!==!1)&&Q!==a.stdout&&Q!==a.stderr,Be=ge?Le:Xe;re.endEmitted?a.nextTick(Be):Y.once("end",Be),Q.on("unpipe",Oe);function Oe(qe,Qe){p("onunpipe"),qe===Y&&Qe&&Qe.hasUnpiped===!1&&(Qe.hasUnpiped=!0,Ke())}function Le(){p("onend"),Q.end()}var Pe=Ce(Y);Q.on("drain",Pe);var $e=!1;function Ke(){p("cleanup"),Q.removeListener("close",Ye),Q.removeListener("finish",ze),Q.removeListener("drain",Pe),Q.removeListener("error",Ue),Q.removeListener("unpipe",Oe),Y.removeListener("end",Le),Y.removeListener("end",Xe),Y.removeListener("data",Ne),$e=!0,re.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&Pe()}Y.on("data",Ne);function Ne(qe){p("ondata");var Qe=Q.write(qe);p("dest.write",Qe),Qe===!1&&((re.pipesCount===1&&re.pipes===Q||re.pipesCount>1&&ne(re.pipes,Q)!==-1)&&!$e&&(p("false write response, pause",re.awaitDrain),re.awaitDrain++),Y.pause())}function Ue(qe){p("onerror",qe),Xe(),Q.removeListener("error",Ue),h(Q,"error")===0&&V(Q,qe)}X(Q,"error",Ue);function Ye(){Q.removeListener("finish",ze),Xe()}Q.once("close",Ye);function ze(){p("onfinish"),Q.removeListener("close",Ye),Xe()}Q.once("finish",ze);function Xe(){p("unpipe"),Y.unpipe(Q)}return Q.emit("pipe",Y),re.flowing||(p("pipe resume"),Y.resume()),Q};function Ce(Q){return function(){var Y=Q._readableState;p("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&h(Q,"data")&&(Y.flowing=!0,$(Q))}}ee.prototype.unpipe=function(Q){var z=this._readableState,Y={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return Q&&Q!==z.pipes?this:(Q||(Q=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,Q&&Q.emit("unpipe",this,Y),this);if(!Q){var re=z.pipes,ge=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var Be=0;Be<ge;Be++)re[Be].emit("unpipe",this,{hasUnpiped:!1});return this}var Oe=ne(z.pipes,Q);return Oe===-1?this:(z.pipes.splice(Oe,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),Q.emit("unpipe",this,Y),this)},ee.prototype.on=function(Q,z){var Y=o.prototype.on.call(this,Q,z),re=this._readableState;return Q==="data"?(re.readableListening=this.listenerCount("readable")>0,re.flowing!==!1&&this.resume()):Q==="readable"&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,p("on readable",re.length,re.reading),re.length?pe(this):re.reading||a.nextTick(Se,this)),Y},ee.prototype.addListener=ee.prototype.on,ee.prototype.removeListener=function(Q,z){var Y=o.prototype.removeListener.call(this,Q,z);return Q==="readable"&&a.nextTick(xe,this),Y},ee.prototype.removeAllListeners=function(Q){var z=o.prototype.removeAllListeners.apply(this,arguments);return(Q==="readable"||Q===void 0)&&a.nextTick(xe,this),z};function xe(Q){var z=Q._readableState;z.readableListening=Q.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:Q.listenerCount("data")>0&&Q.resume()}function Se(Q){p("readable nexttick read 0"),Q.read(0)}ee.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(p("resume"),Q.flowing=!Q.readableListening,me(this,Q)),Q.paused=!1,this};function me(Q,z){z.resumeScheduled||(z.resumeScheduled=!0,a.nextTick(te,Q,z))}function te(Q,z){p("resume",z.reading),z.reading||Q.read(0),z.resumeScheduled=!1,Q.emit("resume"),$(Q),z.flowing&&!z.reading&&Q.read(0)}ee.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $(Q){var z=Q._readableState;for(p("flow",z.flowing);z.flowing&&Q.read()!==null;);}ee.prototype.wrap=function(Q){var z=this,Y=this._readableState,re=!1;Q.on("end",function(){if(p("wrapped end"),Y.decoder&&!Y.ended){var Oe=Y.decoder.end();Oe&&Oe.length&&z.push(Oe)}z.push(null)}),Q.on("data",function(Oe){if(p("wrapped data"),Y.decoder&&(Oe=Y.decoder.write(Oe)),!(Y.objectMode&&Oe==null)&&!(!Y.objectMode&&(!Oe||!Oe.length))){var Le=z.push(Oe);Le||(re=!0,Q.pause())}});for(var ge in Q)this[ge]===void 0&&typeof Q[ge]=="function"&&(this[ge]=function(Le){return function(){return Q[Le].apply(Q,arguments)}}(ge));for(var Be=0;Be<H.length;Be++)Q.on(H[Be],this.emit.bind(this,H[Be]));return this._read=function(Oe){p("wrapped _read",Oe),re&&(re=!1,Q.resume())},this},typeof Symbol=="function"&&(ee.prototype[Symbol.asyncIterator]=function(){return M===void 0&&(M=t("./internal/streams/async_iterator")),M(this)}),Object.defineProperty(ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ee.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ee.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(z){this._readableState&&(this._readableState.flowing=z)}}),ee._fromList=B,Object.defineProperty(ee.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function B(Q,z){if(z.length===0)return null;var Y;return z.objectMode?Y=z.buffer.shift():!Q||Q>=z.length?(z.decoder?Y=z.buffer.join(""):z.buffer.length===1?Y=z.buffer.first():Y=z.buffer.concat(z.length),z.buffer.clear()):Y=z.buffer.consume(Q,z.decoder),Y}function k(Q){var z=Q._readableState;p("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,a.nextTick(q,z,Q))}function q(Q,z){if(p("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,z.readable=!1,z.emit("end"),Q.autoDestroy)){var Y=z._writableState;(!Y||Y.autoDestroy&&Y.finished)&&z.destroy()}}typeof Symbol=="function"&&(ee.from=function(Q,z){return N===void 0&&(N=t("./internal/streams/from")),N(ee,Q,z)});function ne(Q,z){for(var Y=0,re=Q.length;Y<re;Y++)if(Q[Y]===z)return Y;return-1}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(t,C,b){"use strict";C.exports=r;var a=t("../errors").codes,u=a.ERR_METHOD_NOT_IMPLEMENTED,A=a.ERR_MULTIPLE_CALLBACK,c=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,h=a.ERR_TRANSFORM_WITH_LENGTH_0,o=t("./_stream_duplex");t("inherits")(r,o);function n(d,p){var g=this._transformState;g.transforming=!1;var m=g.writecb;if(m===null)return this.emit("error",new A);g.writechunk=null,g.writecb=null,p!=null&&this.push(p),m(d);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function r(d){if(!(this instanceof r))return new r(d);o.call(this,d),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",s)}function s(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(p,g){l(d,p,g)}):l(this,null,null)}r.prototype.push=function(d,p){return this._transformState.needTransform=!1,o.prototype.push.call(this,d,p)},r.prototype._transform=function(d,p,g){g(new u("_transform()"))},r.prototype._write=function(d,p,g){var m=this._transformState;if(m.writecb=g,m.writechunk=d,m.writeencoding=p,!m.transforming){var v=this._readableState;(m.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},r.prototype._read=function(d){var p=this._transformState;p.writechunk!==null&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},r.prototype._destroy=function(d,p){o.prototype._destroy.call(this,d,function(g){p(g)})};function l(d,p,g){if(p)return d.emit("error",p);if(g!=null&&d.push(g),d._writableState.length)throw new h;if(d._transformState.transforming)throw new c;return d.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(t,C,b){(function(a,u){(function(){"use strict";C.exports=G;function A($,B,k){this.chunk=$,this.encoding=B,this.callback=k,this.next=null}function c($){var B=this;this.next=null,this.entry=null,this.finish=function(){te(B,$)}}var h;G.WritableState=H;var o={deprecate:t("util-deprecate")},n=t("./internal/streams/stream"),r=t("buffer").Buffer,s=(typeof u!="undefined"?u:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function l($){return r.from($)}function d($){return r.isBuffer($)||$ instanceof s}var p=t("./internal/streams/destroy"),g=t("./internal/streams/state"),m=g.getHighWaterMark,v=t("../errors").codes,_=v.ERR_INVALID_ARG_TYPE,O=v.ERR_METHOD_NOT_IMPLEMENTED,F=v.ERR_MULTIPLE_CALLBACK,T=v.ERR_STREAM_CANNOT_PIPE,S=v.ERR_STREAM_DESTROYED,I=v.ERR_STREAM_NULL_VALUES,E=v.ERR_STREAM_WRITE_AFTER_END,M=v.ERR_UNKNOWN_ENCODING,N=p.errorOrDestroy;t("inherits")(G,n);function V(){}function H($,B,k){h=h||t("./_stream_duplex"),$=$||{},typeof k!="boolean"&&(k=B instanceof h),this.objectMode=!!$.objectMode,k&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=m(this,$,"writableHighWaterMark",k),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=$.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){ue(B,ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}H.prototype.getBuffer=function(){for(var B=this.bufferedRequest,k=[];B;)k.push(B),B=B.next;return k},function(){try{Object.defineProperty(H.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}}();var X;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(X=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(B){return X.call(this,B)?!0:this!==G?!1:B&&B._writableState instanceof H}})):X=function(B){return B instanceof this};function G($){h=h||t("./_stream_duplex");var B=this instanceof h;if(!B&&!X.call(G,this))return new G($);this._writableState=new H($,this,B),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),n.call(this)}G.prototype.pipe=function(){N(this,new T)};function ee($,B){var k=new E;N($,k),a.nextTick(B,k)}function Z($,B,k,q){var ne;return k===null?ne=new I:typeof k!="string"&&!B.objectMode&&(ne=new _("chunk",["string","Buffer"],k)),ne?(N($,ne),a.nextTick(q,ne),!1):!0}G.prototype.write=function($,B,k){var q=this._writableState,ne=!1,Q=!q.objectMode&&d($);return Q&&!r.isBuffer($)&&($=l($)),typeof B=="function"&&(k=B,B=null),Q?B="buffer":B||(B=q.defaultEncoding),typeof k!="function"&&(k=V),q.ending?ee(this,k):(Q||Z(this,q,$,k))&&(q.pendingcb++,ne=U(this,q,Q,$,B,k)),ne},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&ce(this,$))},G.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new M(B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(G.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ae($,B,k){return!$.objectMode&&$.decodeStrings!==!1&&typeof B=="string"&&(B=r.from(B,k)),B}Object.defineProperty(G.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U($,B,k,q,ne,Q){if(!k){var z=Ae(B,q,ne);q!==z&&(k=!0,ne="buffer",q=z)}var Y=B.objectMode?1:q.length;B.length+=Y;var re=B.length<B.highWaterMark;if(re||(B.needDrain=!0),B.writing||B.corked){var ge=B.lastBufferedRequest;B.lastBufferedRequest={chunk:q,encoding:ne,isBuf:k,callback:Q,next:null},ge?ge.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else W($,B,!1,Y,q,ne,Q);return re}function W($,B,k,q,ne,Q,z){B.writelen=q,B.writecb=z,B.writing=!0,B.sync=!0,B.destroyed?B.onwrite(new S("write")):k?$._writev(ne,B.onwrite):$._write(ne,Q,B.onwrite),B.sync=!1}function le($,B,k,q,ne){--B.pendingcb,k?(a.nextTick(ne,q),a.nextTick(Se,$,B),$._writableState.errorEmitted=!0,N($,q)):(ne(q),$._writableState.errorEmitted=!0,N($,q),Se($,B))}function he($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function ue($,B){var k=$._writableState,q=k.sync,ne=k.writecb;if(typeof ne!="function")throw new F;if(he(k),B)le($,k,q,B,ne);else{var Q=be(k)||$.destroyed;!Q&&!k.corked&&!k.bufferProcessing&&k.bufferedRequest&&ce($,k),q?a.nextTick(pe,$,k,Q,ne):pe($,k,Q,ne)}}function pe($,B,k,q){k||fe($,B),B.pendingcb--,q(),Se($,B)}function fe($,B){B.length===0&&B.needDrain&&(B.needDrain=!1,$.emit("drain"))}function ce($,B){B.bufferProcessing=!0;var k=B.bufferedRequest;if($._writev&&k&&k.next){var q=B.bufferedRequestCount,ne=new Array(q),Q=B.corkedRequestsFree;Q.entry=k;for(var z=0,Y=!0;k;)ne[z]=k,k.isBuf||(Y=!1),k=k.next,z+=1;ne.allBuffers=Y,W($,B,!0,B.length,ne,"",Q.finish),B.pendingcb++,B.lastBufferedRequest=null,Q.next?(B.corkedRequestsFree=Q.next,Q.next=null):B.corkedRequestsFree=new c(B),B.bufferedRequestCount=0}else{for(;k;){var re=k.chunk,ge=k.encoding,Be=k.callback,Oe=B.objectMode?1:re.length;if(W($,B,!1,Oe,re,ge,Be),k=k.next,B.bufferedRequestCount--,B.writing)break}k===null&&(B.lastBufferedRequest=null)}B.bufferedRequest=k,B.bufferProcessing=!1}G.prototype._write=function($,B,k){k(new O("_write()"))},G.prototype._writev=null,G.prototype.end=function($,B,k){var q=this._writableState;return typeof $=="function"?(k=$,$=null,B=null):typeof B=="function"&&(k=B,B=null),$!=null&&this.write($,B),q.corked&&(q.corked=1,this.uncork()),q.ending||me(this,q,k),this},Object.defineProperty(G.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function Ce($,B){$._final(function(k){B.pendingcb--,k&&N($,k),B.prefinished=!0,$.emit("prefinish"),Se($,B)})}function xe($,B){!B.prefinished&&!B.finalCalled&&(typeof $._final=="function"&&!B.destroyed?(B.pendingcb++,B.finalCalled=!0,a.nextTick(Ce,$,B)):(B.prefinished=!0,$.emit("prefinish")))}function Se($,B){var k=be(B);if(k&&(xe($,B),B.pendingcb===0&&(B.finished=!0,$.emit("finish"),B.autoDestroy))){var q=$._readableState;(!q||q.autoDestroy&&q.endEmitted)&&$.destroy()}return k}function me($,B,k){B.ending=!0,Se($,B),k&&(B.finished?a.nextTick(k):$.once("finish",k)),B.ended=!0,$.writable=!1}function te($,B,k){var q=$.entry;for($.entry=null;q;){var ne=q.callback;B.pendingcb--,ne(k),q=q.next}B.corkedRequestsFree.next=$}Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),G.prototype.destroy=p.destroy,G.prototype._undestroy=p.undestroy,G.prototype._destroy=function($,B){B($)}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(t,C,b){(function(a){(function(){"use strict";var u;function A(I,E,M){return E=c(E),E in I?Object.defineProperty(I,E,{value:M,enumerable:!0,configurable:!0,writable:!0}):I[E]=M,I}function c(I){var E=h(I,"string");return typeof E=="symbol"?E:String(E)}function h(I,E){if(typeof I!="object"||I===null)return I;var M=I[Symbol.toPrimitive];if(M!==void 0){var N=M.call(I,E||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(I)}var o=t("./end-of-stream"),n=Symbol("lastResolve"),r=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),g=Symbol("stream");function m(I,E){return{value:I,done:E}}function v(I){var E=I[n];if(E!==null){var M=I[g].read();M!==null&&(I[d]=null,I[n]=null,I[r]=null,E(m(M,!1)))}}function _(I){a.nextTick(v,I)}function O(I,E){return function(M,N){I.then(function(){if(E[l]){M(m(void 0,!0));return}E[p](M,N)},N)}}var F=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((u={get stream(){return this[g]},next:function(){var E=this,M=this[s];if(M!==null)return Promise.reject(M);if(this[l])return Promise.resolve(m(void 0,!0));if(this[g].destroyed)return new Promise(function(X,G){a.nextTick(function(){E[s]?G(E[s]):X(m(void 0,!0))})});var N=this[d],V;if(N)V=new Promise(O(N,this));else{var H=this[g].read();if(H!==null)return Promise.resolve(m(H,!1));V=new Promise(this[p])}return this[d]=V,V}},A(u,Symbol.asyncIterator,function(){return this}),A(u,"return",function(){var E=this;return new Promise(function(M,N){E[g].destroy(null,function(V){if(V){N(V);return}M(m(void 0,!0))})})}),u),F),S=function(E){var M,N=Object.create(T,(M={},A(M,g,{value:E,writable:!0}),A(M,n,{value:null,writable:!0}),A(M,r,{value:null,writable:!0}),A(M,s,{value:null,writable:!0}),A(M,l,{value:E._readableState.endEmitted,writable:!0}),A(M,p,{value:function(H,X){var G=N[g].read();G?(N[d]=null,N[n]=null,N[r]=null,H(m(G,!1))):(N[n]=H,N[r]=X)},writable:!0}),M));return N[d]=null,o(E,function(V){if(V&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"){var H=N[r];H!==null&&(N[d]=null,N[n]=null,N[r]=null,H(V)),N[s]=V;return}var X=N[n];X!==null&&(N[d]=null,N[n]=null,N[r]=null,X(m(void 0,!0))),N[l]=!0}),E.on("readable",_.bind(null,N)),N};C.exports=S}).call(this)}).call(this,t("_process"))},{"./end-of-stream":408,_process:467}],406:[function(t,C,b){"use strict";function a(v,_){var O=Object.keys(v);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(v);_&&(F=F.filter(function(T){return Object.getOwnPropertyDescriptor(v,T).enumerable})),O.push.apply(O,F)}return O}function u(v){for(var _=1;_<arguments.length;_++){var O=arguments[_]!=null?arguments[_]:{};_%2?a(Object(O),!0).forEach(function(F){A(v,F,O[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(O)):a(Object(O)).forEach(function(F){Object.defineProperty(v,F,Object.getOwnPropertyDescriptor(O,F))})}return v}function A(v,_,O){return _=n(_),_ in v?Object.defineProperty(v,_,{value:O,enumerable:!0,configurable:!0,writable:!0}):v[_]=O,v}function c(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function h(v,_){for(var O=0;O<_.length;O++){var F=_[O];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(v,n(F.key),F)}}function o(v,_,O){return _&&h(v.prototype,_),O&&h(v,O),Object.defineProperty(v,"prototype",{writable:!1}),v}function n(v){var _=r(v,"string");return typeof _=="symbol"?_:String(_)}function r(v,_){if(typeof v!="object"||v===null)return v;var O=v[Symbol.toPrimitive];if(O!==void 0){var F=O.call(v,_||"default");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(v)}var s=t("buffer"),l=s.Buffer,d=t("util"),p=d.inspect,g=p&&p.custom||"inspect";function m(v,_,O){l.prototype.copy.call(v,_,O)}C.exports=function(){function v(){c(this,v),this.head=null,this.tail=null,this.length=0}return o(v,[{key:"push",value:function(O){var F={data:O,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(O){var F={data:O,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(O){if(this.length===0)return"";for(var F=this.head,T=""+F.data;F=F.next;)T+=O+F.data;return T}},{key:"concat",value:function(O){if(this.length===0)return l.alloc(0);for(var F=l.allocUnsafe(O>>>0),T=this.head,S=0;T;)m(T.data,F,S),S+=T.data.length,T=T.next;return F}},{key:"consume",value:function(O,F){var T;return O<this.head.data.length?(T=this.head.data.slice(0,O),this.head.data=this.head.data.slice(O)):O===this.head.data.length?T=this.shift():T=F?this._getString(O):this._getBuffer(O),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(O){var F=this.head,T=1,S=F.data;for(O-=S.length;F=F.next;){var I=F.data,E=O>I.length?I.length:O;if(E===I.length?S+=I:S+=I.slice(0,O),O-=E,O===0){E===I.length?(++T,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=I.slice(E));break}++T}return this.length-=T,S}},{key:"_getBuffer",value:function(O){var F=l.allocUnsafe(O),T=this.head,S=1;for(T.data.copy(F),O-=T.data.length;T=T.next;){var I=T.data,E=O>I.length?I.length:O;if(I.copy(F,F.length-O,0,E),O-=E,O===0){E===I.length?(++S,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=I.slice(E));break}++S}return this.length-=S,F}},{key:g,value:function(O,F){return p(this,u(u({},F),{},{depth:0,customInspect:!1}))}}]),v}()},{buffer:90,util:89}],407:[function(t,C,b){(function(a){(function(){"use strict";function u(r,s){var l=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return d||p?(s?s(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,r)):a.nextTick(o,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(g){!s&&g?l._writableState?l._writableState.errorEmitted?a.nextTick(c,l):(l._writableState.errorEmitted=!0,a.nextTick(A,l,g)):a.nextTick(A,l,g):s?(a.nextTick(c,l),s(g)):a.nextTick(c,l)}),this)}function A(r,s){o(r,s),c(r)}function c(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function h(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(r,s){r.emit("error",s)}function n(r,s){var l=r._readableState,d=r._writableState;l&&l.autoDestroy||d&&d.autoDestroy?r.destroy(s):r.emit("error",s)}C.exports={destroy:u,undestroy:h,errorOrDestroy:n}}).call(this)}).call(this,t("_process"))},{_process:467}],408:[function(t,C,b){"use strict";var a=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function u(o){var n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];o.apply(this,s)}}}function A(){}function c(o){return o.setHeader&&typeof o.abort=="function"}function h(o,n,r){if(typeof n=="function")return h(o,null,n);n||(n={}),r=u(r||A);var s=n.readable||n.readable!==!1&&o.readable,l=n.writable||n.writable!==!1&&o.writable,d=function(){o.writable||g()},p=o._writableState&&o._writableState.finished,g=function(){l=!1,p=!0,s||r.call(o)},m=o._readableState&&o._readableState.endEmitted,v=function(){s=!1,m=!0,l||r.call(o)},_=function(S){r.call(o,S)},O=function(){var S;if(s&&!m)return(!o._readableState||!o._readableState.ended)&&(S=new a),r.call(o,S);if(l&&!p)return(!o._writableState||!o._writableState.ended)&&(S=new a),r.call(o,S)},F=function(){o.req.on("finish",g)};return c(o)?(o.on("complete",g),o.on("abort",O),o.req?F():o.on("request",F)):l&&!o._writableState&&(o.on("end",d),o.on("close",d)),o.on("end",v),o.on("finish",g),n.error!==!1&&o.on("error",_),o.on("close",O),function(){o.removeListener("complete",g),o.removeListener("abort",O),o.removeListener("request",F),o.req&&o.req.removeListener("finish",g),o.removeListener("end",d),o.removeListener("close",d),o.removeListener("finish",g),o.removeListener("end",v),o.removeListener("error",_),o.removeListener("close",O)}}C.exports=h},{"../../../errors":399}],409:[function(t,C,b){C.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(t,C,b){"use strict";var a;function u(g){var m=!1;return function(){m||(m=!0,g.apply(void 0,arguments))}}var A=t("../../../errors").codes,c=A.ERR_MISSING_ARGS,h=A.ERR_STREAM_DESTROYED;function o(g){if(g)throw g}function n(g){return g.setHeader&&typeof g.abort=="function"}function r(g,m,v,_){_=u(_);var O=!1;g.on("close",function(){O=!0}),a===void 0&&(a=t("./end-of-stream")),a(g,{readable:m,writable:v},function(T){if(T)return _(T);O=!0,_()});var F=!1;return function(T){if(!O&&!F){if(F=!0,n(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();_(T||new h("pipe"))}}}function s(g){g()}function l(g,m){return g.pipe(m)}function d(g){return!g.length||typeof g[g.length-1]!="function"?o:g.pop()}function p(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];var _=d(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new c("streams");var O,F=m.map(function(T,S){var I=S<m.length-1,E=S>0;return r(T,I,E,function(M){O||(O=M),M&&F.forEach(s),!I&&(F.forEach(s),_(O))})});return m.reduce(l)}C.exports=p},{"../../../errors":399,"./end-of-stream":408}],411:[function(t,C,b){"use strict";var a=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;function u(c,h,o){return c.highWaterMark!=null?c.highWaterMark:h?c[o]:null}function A(c,h,o,n){var r=u(h,n,o);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var s=n?o:"highWaterMark";throw new a(s,r)}return Math.floor(r)}return c.objectMode?16:16*1024}C.exports={getHighWaterMark:A}},{"../../../errors":399}],412:[function(t,C,b){arguments[4][393][0].apply(b,arguments)},{dup:393,events:344}],413:[function(t,C,b){"use strict";var a=t("safe-buffer").Buffer,u=a.isEncoding||function(F){switch(F=""+F,F&&F.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 A(F){if(!F)return"utf8";for(var T;;)switch(F){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 F;default:if(T)return;F=(""+F).toLowerCase(),T=!0}}function c(F){var T=A(F);if(typeof T!="string"&&(a.isEncoding===u||!u(F)))throw new Error("Unknown encoding: "+F);return T||F}b.StringDecoder=h;function h(F){this.encoding=c(F);var T;switch(this.encoding){case"utf16le":this.text=p,this.end=g,T=4;break;case"utf8":this.fillLast=s,T=4;break;case"base64":this.text=m,this.end=v,T=3;break;default:this.write=_,this.end=O;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(T)}h.prototype.write=function(F){if(F.length===0)return"";var T,S;if(this.lastNeed){if(T=this.fillLast(F),T===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<F.length?T?T+this.text(F,S):this.text(F,S):T||""},h.prototype.end=d,h.prototype.text=l,h.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function o(F){return F<=127?0:F>>5===6?2:F>>4===14?3:F>>3===30?4:F>>6===2?-1:-2}function n(F,T,S){var I=T.length-1;if(I<S)return 0;var E=o(T[I]);return E>=0?(E>0&&(F.lastNeed=E-1),E):--I<S||E===-2?0:(E=o(T[I]),E>=0?(E>0&&(F.lastNeed=E-2),E):--I<S||E===-2?0:(E=o(T[I]),E>=0?(E>0&&(E===2?E=0:F.lastNeed=E-3),E):0))}function r(F,T,S){if((T[0]&192)!==128)return F.lastNeed=0,"\uFFFD";if(F.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return F.lastNeed=1,"\uFFFD";if(F.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return F.lastNeed=2,"\uFFFD"}}function s(F){var T=this.lastTotal-this.lastNeed,S=r(this,F,T);if(S!==void 0)return S;if(this.lastNeed<=F.length)return F.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,T,0,F.length),this.lastNeed-=F.length}function l(F,T){var S=n(this,F,T);if(!this.lastNeed)return F.toString("utf8",T);this.lastTotal=S;var I=F.length-(S-this.lastNeed);return F.copy(this.lastChar,0,I),F.toString("utf8",T,I)}function d(F){var T=F&&F.length?this.write(F):"";return this.lastNeed?T+"\uFFFD":T}function p(F,T){if((F.length-T)%2===0){var S=F.toString("utf16le",T);if(S){var I=S.charCodeAt(S.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",T,F.length-1)}function g(F){var T=F&&F.length?this.write(F):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,S)}return T}function m(F,T){var S=(F.length-T)%3;return S===0?F.toString("base64",T):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=F[F.length-1]:(this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1]),F.toString("base64",T,F.length-S))}function v(F){var T=F&&F.length?this.write(F):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function _(F){return F.toString(this.encoding)}function O(F){return F&&F.length?this.write(F):""}},{"safe-buffer":396}],414:[function(t,C,b){(function(a,u){(function(){var A=t("process/browser.js").nextTick,c=Function.prototype.apply,h=Array.prototype.slice,o={},n=0;b.setTimeout=function(){return new r(c.call(setTimeout,window,arguments),clearTimeout)},b.setInterval=function(){return new r(c.call(setInterval,window,arguments),clearInterval)},b.clearTimeout=b.clearInterval=function(s){s.close()};function r(s,l){this._id=s,this._clearFn=l}r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},b.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},b.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},b._unrefActive=b.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},b.setImmediate=typeof a=="function"?a:function(s){var l=n++,d=arguments.length<2?!1:h.call(arguments,1);return o[l]=!0,A(function(){o[l]&&(d?s.apply(null,d):s.call(null),b.clearImmediate(l))}),l},b.clearImmediate=typeof u=="function"?u:function(s){delete o[s]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(t,C,b){var a=t("buffer").Buffer;C.exports=function(u){if(u instanceof Uint8Array){if(u.byteOffset===0&&u.byteLength===u.buffer.byteLength)return u.buffer;if(typeof u.buffer.slice=="function")return u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength)}if(a.isBuffer(u)){for(var A=new Uint8Array(u.length),c=u.length,h=0;h<c;h++)A[h]=u[h];return A.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(t,C,b){(function(a){(function(){C.exports=u;function u(c,h){if(A("noDeprecation"))return c;var o=!1;function n(){if(!o){if(A("throwDeprecation"))throw new Error(h);A("traceDeprecation")?console.trace(h):console.warn(h),o=!0}return c.apply(this,arguments)}return n}function A(c){try{if(!a.localStorage)return!1}catch(o){return!1}var h=a.localStorage[c];return h==null?!1:String(h).toLowerCase()==="true"}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(t,C,b){arguments[4][84][0].apply(b,arguments)},{dup:84}],418:[function(t,C,b){"use strict";var a=t("is-arguments"),u=t("is-generator-function"),A=t("which-typed-array"),c=t("is-typed-array");function h(ge){return ge.call.bind(ge)}var o=typeof BigInt!="undefined",n=typeof Symbol!="undefined",r=h(Object.prototype.toString),s=h(Number.prototype.valueOf),l=h(String.prototype.valueOf),d=h(Boolean.prototype.valueOf);if(o)var p=h(BigInt.prototype.valueOf);if(n)var g=h(Symbol.prototype.valueOf);function m(ge,Be){if(typeof ge!="object")return!1;try{return Be(ge),!0}catch(Oe){return!1}}b.isArgumentsObject=a,b.isGeneratorFunction=u,b.isTypedArray=c;function v(ge){return typeof Promise!="undefined"&&ge instanceof Promise||ge!==null&&typeof ge=="object"&&typeof ge.then=="function"&&typeof ge.catch=="function"}b.isPromise=v;function _(ge){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ge):c(ge)||ce(ge)}b.isArrayBufferView=_;function O(ge){return A(ge)==="Uint8Array"}b.isUint8Array=O;function F(ge){return A(ge)==="Uint8ClampedArray"}b.isUint8ClampedArray=F;function T(ge){return A(ge)==="Uint16Array"}b.isUint16Array=T;function S(ge){return A(ge)==="Uint32Array"}b.isUint32Array=S;function I(ge){return A(ge)==="Int8Array"}b.isInt8Array=I;function E(ge){return A(ge)==="Int16Array"}b.isInt16Array=E;function M(ge){return A(ge)==="Int32Array"}b.isInt32Array=M;function N(ge){return A(ge)==="Float32Array"}b.isFloat32Array=N;function V(ge){return A(ge)==="Float64Array"}b.isFloat64Array=V;function H(ge){return A(ge)==="BigInt64Array"}b.isBigInt64Array=H;function X(ge){return A(ge)==="BigUint64Array"}b.isBigUint64Array=X;function G(ge){return r(ge)==="[object Map]"}G.working=typeof Map!="undefined"&&G(new Map);function ee(ge){return typeof Map=="undefined"?!1:G.working?G(ge):ge instanceof Map}b.isMap=ee;function Z(ge){return r(ge)==="[object Set]"}Z.working=typeof Set!="undefined"&&Z(new Set);function Ae(ge){return typeof Set=="undefined"?!1:Z.working?Z(ge):ge instanceof Set}b.isSet=Ae;function U(ge){return r(ge)==="[object WeakMap]"}U.working=typeof WeakMap!="undefined"&&U(new WeakMap);function W(ge){return typeof WeakMap=="undefined"?!1:U.working?U(ge):ge instanceof WeakMap}b.isWeakMap=W;function le(ge){return r(ge)==="[object WeakSet]"}le.working=typeof WeakSet!="undefined"&&le(new WeakSet);function he(ge){return le(ge)}b.isWeakSet=he;function ue(ge){return r(ge)==="[object ArrayBuffer]"}ue.working=typeof ArrayBuffer!="undefined"&&ue(new ArrayBuffer);function pe(ge){return typeof ArrayBuffer=="undefined"?!1:ue.working?ue(ge):ge instanceof ArrayBuffer}b.isArrayBuffer=pe;function fe(ge){return r(ge)==="[object DataView]"}fe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&fe(new DataView(new ArrayBuffer(1),0,1));function ce(ge){return typeof DataView=="undefined"?!1:fe.working?fe(ge):ge instanceof DataView}b.isDataView=ce;var be=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Ce(ge){return r(ge)==="[object SharedArrayBuffer]"}function xe(ge){return typeof be=="undefined"?!1:(typeof Ce.working=="undefined"&&(Ce.working=Ce(new be)),Ce.working?Ce(ge):ge instanceof be)}b.isSharedArrayBuffer=xe;function Se(ge){return r(ge)==="[object AsyncFunction]"}b.isAsyncFunction=Se;function me(ge){return r(ge)==="[object Map Iterator]"}b.isMapIterator=me;function te(ge){return r(ge)==="[object Set Iterator]"}b.isSetIterator=te;function $(ge){return r(ge)==="[object Generator]"}b.isGeneratorObject=$;function B(ge){return r(ge)==="[object WebAssembly.Module]"}b.isWebAssemblyCompiledModule=B;function k(ge){return m(ge,s)}b.isNumberObject=k;function q(ge){return m(ge,l)}b.isStringObject=q;function ne(ge){return m(ge,d)}b.isBooleanObject=ne;function Q(ge){return o&&m(ge,p)}b.isBigIntObject=Q;function z(ge){return n&&m(ge,g)}b.isSymbolObject=z;function Y(ge){return k(ge)||q(ge)||ne(ge)||Q(ge)||z(ge)}b.isBoxedPrimitive=Y;function re(ge){return typeof Uint8Array!="undefined"&&(pe(ge)||xe(ge))}b.isAnyArrayBuffer=re,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ge){Object.defineProperty(b,ge,{enumerable:!1,value:function(){throw new Error(ge+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(t,C,b){(function(a){(function(){var u=Object.getOwnPropertyDescriptors||function(be){for(var Ce=Object.keys(be),xe={},Se=0;Se<Ce.length;Se++)xe[Ce[Se]]=Object.getOwnPropertyDescriptor(be,Ce[Se]);return xe},A=/%[sdj%]/g;b.format=function(ce){if(!E(ce)){for(var be=[],Ce=0;Ce<arguments.length;Ce++)be.push(n(arguments[Ce]));return be.join(" ")}for(var Ce=1,xe=arguments,Se=xe.length,me=String(ce).replace(A,function($){if($==="%%")return"%";if(Ce>=Se)return $;switch($){case"%s":return String(xe[Ce++]);case"%d":return Number(xe[Ce++]);case"%j":try{return JSON.stringify(xe[Ce++])}catch(B){return"[Circular]"}default:return $}}),te=xe[Ce];Ce<Se;te=xe[++Ce])T(te)||!H(te)?me+=" "+te:me+=" "+n(te);return me},b.deprecate=function(ce,be){if(typeof a!="undefined"&&a.noDeprecation===!0)return ce;if(typeof a=="undefined")return function(){return b.deprecate(ce,be).apply(this,arguments)};var Ce=!1;function xe(){if(!Ce){if(a.throwDeprecation)throw new Error(be);a.traceDeprecation?console.trace(be):console.error(be),Ce=!0}return ce.apply(this,arguments)}return xe};var c={},h=/^$/;if(a.env.NODE_DEBUG){var o=a.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),h=new RegExp("^"+o+"$","i")}b.debuglog=function(ce){if(ce=ce.toUpperCase(),!c[ce])if(h.test(ce)){var be=a.pid;c[ce]=function(){var Ce=b.format.apply(b,arguments);console.error("%s %d: %s",ce,be,Ce)}}else c[ce]=function(){};return c[ce]};function n(ce,be){var Ce={seen:[],stylize:s};return arguments.length>=3&&(Ce.depth=arguments[2]),arguments.length>=4&&(Ce.colors=arguments[3]),F(be)?Ce.showHidden=be:be&&b._extend(Ce,be),N(Ce.showHidden)&&(Ce.showHidden=!1),N(Ce.depth)&&(Ce.depth=2),N(Ce.colors)&&(Ce.colors=!1),N(Ce.customInspect)&&(Ce.customInspect=!0),Ce.colors&&(Ce.stylize=r),d(Ce,ce,Ce.depth)}b.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(ce,be){var Ce=n.styles[be];return Ce?"\x1B["+n.colors[Ce][0]+"m"+ce+"\x1B["+n.colors[Ce][1]+"m":ce}function s(ce,be){return ce}function l(ce){var be={};return ce.forEach(function(Ce,xe){be[Ce]=!0}),be}function d(ce,be,Ce){if(ce.customInspect&&be&&ee(be.inspect)&&be.inspect!==b.inspect&&!(be.constructor&&be.constructor.prototype===be)){var xe=be.inspect(Ce,ce);return E(xe)||(xe=d(ce,xe,Ce)),xe}var Se=p(ce,be);if(Se)return Se;var me=Object.keys(be),te=l(me);if(ce.showHidden&&(me=Object.getOwnPropertyNames(be)),G(be)&&(me.indexOf("message")>=0||me.indexOf("description")>=0))return g(be);if(me.length===0){if(ee(be)){var $=be.name?": "+be.name:"";return ce.stylize("[Function"+$+"]","special")}if(V(be))return ce.stylize(RegExp.prototype.toString.call(be),"regexp");if(X(be))return ce.stylize(Date.prototype.toString.call(be),"date");if(G(be))return g(be)}var B="",k=!1,q=["{","}"];if(O(be)&&(k=!0,q=["[","]"]),ee(be)){var ne=be.name?": "+be.name:"";B=" [Function"+ne+"]"}if(V(be)&&(B=" "+RegExp.prototype.toString.call(be)),X(be)&&(B=" "+Date.prototype.toUTCString.call(be)),G(be)&&(B=" "+g(be)),me.length===0&&(!k||be.length==0))return q[0]+B+q[1];if(Ce<0)return V(be)?ce.stylize(RegExp.prototype.toString.call(be),"regexp"):ce.stylize("[Object]","special");ce.seen.push(be);var Q;return k?Q=m(ce,be,Ce,te,me):Q=me.map(function(z){return v(ce,be,Ce,te,z,k)}),ce.seen.pop(),_(Q,B,q)}function p(ce,be){if(N(be))return ce.stylize("undefined","undefined");if(E(be)){var Ce="'"+JSON.stringify(be).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(Ce,"string")}if(I(be))return ce.stylize(""+be,"number");if(F(be))return ce.stylize(""+be,"boolean");if(T(be))return ce.stylize("null","null")}function g(ce){return"["+Error.prototype.toString.call(ce)+"]"}function m(ce,be,Ce,xe,Se){for(var me=[],te=0,$=be.length;te<$;++te)he(be,String(te))?me.push(v(ce,be,Ce,xe,String(te),!0)):me.push("");return Se.forEach(function(B){B.match(/^\d+$/)||me.push(v(ce,be,Ce,xe,B,!0))}),me}function v(ce,be,Ce,xe,Se,me){var te,$,B;if(B=Object.getOwnPropertyDescriptor(be,Se)||{value:be[Se]},B.get?B.set?$=ce.stylize("[Getter/Setter]","special"):$=ce.stylize("[Getter]","special"):B.set&&($=ce.stylize("[Setter]","special")),he(xe,Se)||(te="["+Se+"]"),$||(ce.seen.indexOf(B.value)<0?(T(Ce)?$=d(ce,B.value,null):$=d(ce,B.value,Ce-1),$.indexOf(`
|
|
|
`)>-1&&(me?$=$.split(`
|
|
|
`).map(function(k){return" "+k}).join(`
|
|
|
`).slice(2):$=`
|
|
|
`+$.split(`
|
|
|
`).map(function(k){return" "+k}).join(`
|
|
|
`))):$=ce.stylize("[Circular]","special")),N(te)){if(me&&Se.match(/^\d+$/))return $;te=JSON.stringify(""+Se),te.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(te=te.slice(1,-1),te=ce.stylize(te,"name")):(te=te.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),te=ce.stylize(te,"string"))}return te+": "+$}function _(ce,be,Ce){var xe=0,Se=ce.reduce(function(me,te){return xe++,te.indexOf(`
|
|
|
`)>=0&&xe++,me+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Se>60?Ce[0]+(be===""?"":be+`
|
|
|
`)+" "+ce.join(`,
|
|
|
`)+" "+Ce[1]:Ce[0]+be+" "+ce.join(", ")+" "+Ce[1]}b.types=t("./support/types");function O(ce){return Array.isArray(ce)}b.isArray=O;function F(ce){return typeof ce=="boolean"}b.isBoolean=F;function T(ce){return ce===null}b.isNull=T;function S(ce){return ce==null}b.isNullOrUndefined=S;function I(ce){return typeof ce=="number"}b.isNumber=I;function E(ce){return typeof ce=="string"}b.isString=E;function M(ce){return typeof ce=="symbol"}b.isSymbol=M;function N(ce){return ce===void 0}b.isUndefined=N;function V(ce){return H(ce)&&Ae(ce)==="[object RegExp]"}b.isRegExp=V,b.types.isRegExp=V;function H(ce){return typeof ce=="object"&&ce!==null}b.isObject=H;function X(ce){return H(ce)&&Ae(ce)==="[object Date]"}b.isDate=X,b.types.isDate=X;function G(ce){return H(ce)&&(Ae(ce)==="[object Error]"||ce instanceof Error)}b.isError=G,b.types.isNativeError=G;function ee(ce){return typeof ce=="function"}b.isFunction=ee;function Z(ce){return ce===null||typeof ce=="boolean"||typeof ce=="number"||typeof ce=="string"||typeof ce=="symbol"||typeof ce=="undefined"}b.isPrimitive=Z,b.isBuffer=t("./support/isBuffer");function Ae(ce){return Object.prototype.toString.call(ce)}function U(ce){return ce<10?"0"+ce.toString(10):ce.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var ce=new Date,be=[U(ce.getHours()),U(ce.getMinutes()),U(ce.getSeconds())].join(":");return[ce.getDate(),W[ce.getMonth()],be].join(" ")}b.log=function(){console.log("%s - %s",le(),b.format.apply(b,arguments))},b.inherits=t("inherits"),b._extend=function(ce,be){if(!be||!H(be))return ce;for(var Ce=Object.keys(be),xe=Ce.length;xe--;)ce[Ce[xe]]=be[Ce[xe]];return ce};function he(ce,be){return Object.prototype.hasOwnProperty.call(ce,be)}var ue=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;b.promisify=function(be){if(typeof be!="function")throw new TypeError('The "original" argument must be of type Function');if(ue&&be[ue]){var Ce=be[ue];if(typeof Ce!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ce,ue,{value:Ce,enumerable:!1,writable:!1,configurable:!0}),Ce}function Ce(){for(var xe,Se,me=new Promise(function(B,k){xe=B,Se=k}),te=[],$=0;$<arguments.length;$++)te.push(arguments[$]);te.push(function(B,k){B?Se(B):xe(k)});try{be.apply(this,te)}catch(B){Se(B)}return me}return Object.setPrototypeOf(Ce,Object.getPrototypeOf(be)),ue&&Object.defineProperty(Ce,ue,{value:Ce,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Ce,u(be))},b.promisify.custom=ue;function pe(ce,be){if(!ce){var Ce=new Error("Promise was rejected with a falsy value");Ce.reason=ce,ce=Ce}return be(ce)}function fe(ce){if(typeof ce!="function")throw new TypeError('The "original" argument must be of type Function');function be(){for(var Ce=[],xe=0;xe<arguments.length;xe++)Ce.push(arguments[xe]);var Se=Ce.pop();if(typeof Se!="function")throw new TypeError("The last argument must be of type Function");var me=this,te=function(){return Se.apply(me,arguments)};ce.apply(this,Ce).then(function($){a.nextTick(te.bind(null,null,$))},function($){a.nextTick(pe.bind(null,$,te))})}return Object.setPrototypeOf(be,Object.getPrototypeOf(ce)),Object.defineProperties(be,u(ce)),be}b.callbackify=fe}).call(this)}).call(this,t("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(t,C,b){(function(a){(function(){"use strict";var u=t("for-each"),A=t("available-typed-arrays"),c=t("call-bind"),h=t("call-bind/callBound"),o=t("gopd"),n=h("Object.prototype.toString"),r=t("has-tostringtag/shams")(),s=typeof globalThis=="undefined"?a:globalThis,l=A(),d=h("String.prototype.slice"),p=Object.getPrototypeOf,g=h("Array.prototype.indexOf",!0)||function(F,T){for(var S=0;S<F.length;S+=1)if(F[S]===T)return S;return-1},m={__proto__:null};r&&o&&p?u(l,function(O){var F=new s[O];if(Symbol.toStringTag in F){var T=p(F),S=o(T,Symbol.toStringTag);if(!S){var I=p(T);S=o(I,Symbol.toStringTag)}m["$"+O]=c(S.get)}}):u(l,function(O){var F=new s[O];m["$"+O]=c(F.slice)});var v=function(F){var T=!1;return u(m,function(S,I){if(!T)try{"$"+S(F)===I&&(T=d(I,1))}catch(E){}}),T},_=function(F){var T=!1;return u(m,function(S,I){if(!T)try{S(F),T=d(I,1)}catch(E){}}),T};C.exports=function(F){if(!F||typeof F!="object")return!1;if(!r){var T=d(n(F),8,-1);return g(l,T)>-1?T:T!=="Object"?!1:_(F)}return o?v(F):null}}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(t,C,b){(function(){"use strict";b.stripBOM=function(a){return a[0]==="\uFEFF"?a.substring(1):a}}).call(this)},{}],422:[function(t,C,b){(function(){"use strict";var a,u,A,c,h,o={}.hasOwnProperty;a=t("xmlbuilder"),u=t("./defaults").defaults,c=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},h=function(n){return"<![CDATA["+A(n)+"]]>"},A=function(n){return n.replace("]]>","]]]]><![CDATA[>")},b.Builder=function(){function n(r){var s,l,d;this.options={},l=u["0.2"];for(s in l)o.call(l,s)&&(d=l[s],this.options[s]=d);for(s in r)o.call(r,s)&&(d=r[s],this.options[s]=d)}return n.prototype.buildObject=function(r){var s,l,d,p,g;return s=this.options.attrkey,l=this.options.charkey,Object.keys(r).length===1&&this.options.rootName===u["0.2"].rootName?(g=Object.keys(r)[0],r=r[g]):g=this.options.rootName,d=function(m){return function(v,_){var O,F,T,S,I,E;if(typeof _!="object")m.options.cdata&&c(_)?v.raw(h(_)):v.txt(_);else if(Array.isArray(_)){for(S in _)if(o.call(_,S)){F=_[S];for(I in F)T=F[I],v=d(v.ele(I),T).up()}}else for(I in _)if(o.call(_,I))if(F=_[I],I===s){if(typeof F=="object")for(O in F)E=F[O],v=v.att(O,E)}else if(I===l)m.options.cdata&&c(F)?v=v.raw(h(F)):v=v.txt(F);else if(Array.isArray(F))for(S in F)o.call(F,S)&&(T=F[S],typeof T=="string"?m.options.cdata&&c(T)?v=v.ele(I).raw(h(T)).up():v=v.ele(I,T).up():v=d(v.ele(I),T).up());else typeof F=="object"?v=d(v.ele(I),F).up():typeof F=="string"&&m.options.cdata&&c(F)?v=v.ele(I).raw(h(F)).up():(F==null&&(F=""),v=v.ele(I,F.toString()).up());return v}}(this),p=a.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(p,r).end(this.options.renderOpts)},n}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(t,C,b){(function(){b.defaults={"0.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:""},"0.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:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(t,C,b){(function(){"use strict";var a,u,A,c,h,o,n,r,s,l=function(g,m){return function(){return g.apply(m,arguments)}},d=function(g,m){for(var v in m)p.call(m,v)&&(g[v]=m[v]);function _(){this.constructor=g}return _.prototype=m.prototype,g.prototype=new _,g.__super__=m.prototype,g},p={}.hasOwnProperty;r=t("sax"),c=t("events"),a=t("./bom"),n=t("./processors"),s=t("timers").setImmediate,u=t("./defaults").defaults,h=function(g){return typeof g=="object"&&g!=null&&Object.keys(g).length===0},o=function(g,m,v){var _,O,F;for(_=0,O=g.length;_<O;_++)F=g[_],m=F(m,v);return m},A=function(g,m,v){var _;return _=Object.create(null),_.value=v,_.writable=!0,_.enumerable=!0,_.configurable=!0,Object.defineProperty(g,m,_)},b.Parser=function(g){d(m,g);function m(v){this.parseStringPromise=l(this.parseStringPromise,this),this.parseString=l(this.parseString,this),this.reset=l(this.reset,this),this.assignOrPush=l(this.assignOrPush,this),this.processAsync=l(this.processAsync,this);var _,O,F;if(!(this instanceof b.Parser))return new b.Parser(v);this.options={},O=u["0.2"];for(_ in O)p.call(O,_)&&(F=O[_],this.options[_]=F);for(_ in v)p.call(v,_)&&(F=v[_],this.options[_]=F);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return m.prototype.processAsync=function(){var v,_;try{return this.remaining.length<=this.options.chunkSize?(v=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(v),this.saxParser.close()):(v=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(v),s(this.processAsync))}catch(O){if(_=O,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(_)}},m.prototype.assignOrPush=function(v,_,O){return _ in v?(v[_]instanceof Array||A(v,_,[v[_]]),v[_].push(O)):this.options.explicitArray?A(v,_,[O]):A(v,_,O)},m.prototype.reset=function(){var v,_,O,F;return this.removeAllListeners(),this.saxParser=r.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(T){return function(S){if(T.saxParser.resume(),!T.saxParser.errThrown)return T.saxParser.errThrown=!0,T.emit("error",S)}}(this),this.saxParser.onend=function(T){return function(){if(!T.saxParser.ended)return T.saxParser.ended=!0,T.emit("end",T.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,F=[],v=this.options.attrkey,_=this.options.charkey,this.saxParser.onopentag=function(T){return function(S){var I,E,M,N,V;if(M={},M[_]="",!T.options.ignoreAttrs){V=S.attributes;for(I in V)p.call(V,I)&&(!(v in M)&&!T.options.mergeAttrs&&(M[v]={}),E=T.options.attrValueProcessors?o(T.options.attrValueProcessors,S.attributes[I],I):S.attributes[I],N=T.options.attrNameProcessors?o(T.options.attrNameProcessors,I):I,T.options.mergeAttrs?T.assignOrPush(M,N,E):A(M[v],N,E))}return M["#name"]=T.options.tagNameProcessors?o(T.options.tagNameProcessors,S.name):S.name,T.options.xmlns&&(M[T.options.xmlnskey]={uri:S.uri,local:S.local}),F.push(M)}}(this),this.saxParser.onclosetag=function(T){return function(){var S,I,E,M,N,V,H,X,G,ee;if(V=F.pop(),N=V["#name"],(!T.options.explicitChildren||!T.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(S=V.cdata,delete V.cdata),G=F[F.length-1],V[_].match(/^\s*$/)&&!S?(I=V[_],delete V[_]):(T.options.trim&&(V[_]=V[_].trim()),T.options.normalize&&(V[_]=V[_].replace(/\s{2,}/g," ").trim()),V[_]=T.options.valueProcessors?o(T.options.valueProcessors,V[_],N):V[_],Object.keys(V).length===1&&_ in V&&!T.EXPLICIT_CHARKEY&&(V=V[_])),h(V)&&(typeof T.options.emptyTag=="function"?V=T.options.emptyTag():V=T.options.emptyTag!==""?T.options.emptyTag:I),T.options.validator!=null&&(ee="/"+function(){var Z,Ae,U;for(U=[],Z=0,Ae=F.length;Z<Ae;Z++)M=F[Z],U.push(M["#name"]);return U}().concat(N).join("/"),function(){var Z;try{return V=T.options.validator(ee,G&&G[N],V)}catch(Ae){return Z=Ae,T.emit("error",Z)}}()),T.options.explicitChildren&&!T.options.mergeAttrs&&typeof V=="object"){if(!T.options.preserveChildrenOrder)M={},T.options.attrkey in V&&(M[T.options.attrkey]=V[T.options.attrkey],delete V[T.options.attrkey]),!T.options.charsAsChildren&&T.options.charkey in V&&(M[T.options.charkey]=V[T.options.charkey],delete V[T.options.charkey]),Object.getOwnPropertyNames(V).length>0&&(M[T.options.childkey]=V),V=M;else if(G){G[T.options.childkey]=G[T.options.childkey]||[],H={};for(E in V)p.call(V,E)&&A(H,E,V[E]);G[T.options.childkey].push(H),delete V["#name"],Object.keys(V).length===1&&_ in V&&!T.EXPLICIT_CHARKEY&&(V=V[_])}}return F.length>0?T.assignOrPush(G,N,V):(T.options.explicitRoot&&(X=V,V={},A(V,N,X)),T.resultObject=V,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),O=function(T){return function(S){var I,E;if(E=F[F.length-1],E)return E[_]+=S,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||S.replace(/\\n/g,"").trim()!=="")&&(E[T.options.childkey]=E[T.options.childkey]||[],I={"#name":"__text__"},I[_]=S,T.options.normalize&&(I[_]=I[_].replace(/\s{2,}/g," ").trim()),E[T.options.childkey].push(I)),E}}(this),this.saxParser.ontext=O,this.saxParser.oncdata=function(T){return function(S){var I;if(I=O(S),I)return I.cdata=!0}}(this)},m.prototype.parseString=function(v,_){var O;_!=null&&typeof _=="function"&&(this.on("end",function(F){return this.reset(),_(null,F)}),this.on("error",function(F){return this.reset(),_(F)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=a.stripBOM(v),this.options.async?(this.remaining=v,s(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(F){if(O=F,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw O}else return this.emit("error",O),this.saxParser.errThrown=!0}},m.prototype.parseStringPromise=function(v){return new Promise(function(_){return function(O,F){return _.parseString(v,function(T,S){return T?F(T):O(S)})}}(this))},m}(c),b.parseString=function(g,m,v){var _,O,F;return v!=null?(typeof v=="function"&&(_=v),typeof m=="object"&&(O=m)):(typeof m=="function"&&(_=m),O={}),F=new b.Parser(O),F.parseString(g,_)},b.parseStringPromise=function(g,m){var v,_;return typeof m=="object"&&(v=m),_=new b.Parser(v),_.parseStringPromise(g)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(t,C,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(u){return u.toLowerCase()},b.firstCharLowerCase=function(u){return u.charAt(0).toLowerCase()+u.slice(1)},b.stripPrefix=function(u){return u.replace(a,"")},b.parseNumbers=function(u){return isNaN(u)||(u=u%1===0?parseInt(u,10):parseFloat(u)),u},b.parseBooleans=function(u){return/^(?:true|false)$/i.test(u)&&(u=u.toLowerCase()==="true"),u}}).call(this)},{}],426:[function(t,C,b){(function(){"use strict";var a,u,A,c,h=function(n,r){for(var s in r)o.call(r,s)&&(n[s]=r[s]);function l(){this.constructor=n}return l.prototype=r.prototype,n.prototype=new l,n.__super__=r.prototype,n},o={}.hasOwnProperty;u=t("./defaults"),a=t("./builder"),A=t("./parser"),c=t("./processors"),b.defaults=u.defaults,b.processors=c,b.ValidationError=function(n){h(r,n);function r(s){this.message=s}return r}(Error),b.Builder=a.Builder,b.Parser=A.Parser,b.parseString=A.parseString,b.parseStringPromise=A.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(t,C,b){(function(){C.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(t,C,b){(function(){C.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)},{}],429:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r=[].slice,s={}.hasOwnProperty;a=function(){var l,d,p,g,m,v;if(v=arguments[0],m=2<=arguments.length?r.call(arguments,1):[],h(Object.assign))Object.assign.apply(null,arguments);else for(l=0,p=m.length;l<p;l++)if(g=m[l],g!=null)for(d in g)s.call(g,d)&&(v[d]=g[d]);return v},h=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},o=function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},A=function(l){return h(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},c=function(l){var d;if(A(l))return!l.length;for(d in l)if(s.call(l,d))return!1;return!0},n=function(l){var d,p;return o(l)&&(p=Object.getPrototypeOf(l))&&(d=p.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},u=function(l){return h(l.valueOf)?l.valueOf():l},C.exports.assign=a,C.exports.isFunction=h,C.exports.isObject=o,C.exports.isArray=A,C.exports.isEmpty=c,C.exports.isPlainObject=n,C.exports.getValue=u}).call(this)},{}],430:[function(t,C,b){(function(){C.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(t,C,b){(function(){var a,u,A;a=t("./NodeType"),A=t("./XMLNode"),C.exports=u=function(){function c(h,o,n){if(this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(n),this.type=a.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(c.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(c.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(h){return this.value=h||""}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"specified",{get:function(){return!0}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.attribute(this,this.options.writer.filterOptions(h))},c.prototype.debugInfo=function(h){return h=h||this.name,h==null?"parent: <"+this.parent.name+">":"attribute: {"+h+"}, parent: <"+this.parent.name+">"},c.prototype.isEqualNode=function(h){return!(h.namespaceURI!==this.namespaceURI||h.prefix!==this.prefix||h.localName!==this.localName||h.value!==this.value)},c}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;a=t("./NodeType"),A=t("./XMLCharacterData"),C.exports=u=function(o){c(n,o);function n(r,s){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=a.CData,this.value=this.stringify.cdata(s)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},n}(A)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(t,C,b){(function(){var a,u,A=function(h,o){for(var n in o)c.call(o,n)&&(h[n]=o[n]);function r(){this.constructor=h}return r.prototype=o.prototype,h.prototype=new r,h.__super__=o.prototype,h},c={}.hasOwnProperty;u=t("./XMLNode"),C.exports=a=function(h){A(o,h);function o(n){o.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),o.prototype.clone=function(){return Object.create(this)},o.prototype.substringData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(n,r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(n){return!(!o.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.data!==this.data)},o}(u)}).call(this)},{"./XMLNode":450}],434:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;a=t("./NodeType"),u=t("./XMLCharacterData"),C.exports=A=function(o){c(n,o);function n(r,s){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=a.Comment,this.value=this.stringify.comment(s)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},n}(u)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(t,C,b){(function(){var a,u,A;u=t("./XMLDOMErrorHandler"),A=t("./XMLDOMStringList"),C.exports=a=function(){function c(){var h;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new u,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=h=Object.create(this.defaultParams)}return Object.defineProperty(c.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),c.prototype.getParameter=function(h){return this.params.hasOwnProperty(h)?this.params[h]:null},c.prototype.canSetParameter=function(h,o){return!0},c.prototype.setParameter=function(h,o){return o!=null?this.params[h]=o:delete this.params[h]},c}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(t,C,b){(function(){var a;C.exports=a=function(){function u(){}return u.prototype.handleError=function(A){throw new Error(A)},u}()}).call(this)},{}],437:[function(t,C,b){(function(){var a;C.exports=a=function(){function u(){}return u.prototype.hasFeature=function(A,c){return!0},u.prototype.createDocumentType=function(A,c,h){throw new Error("This DOM method is not implemented.")},u.prototype.createDocument=function(A,c,h){throw new Error("This DOM method is not implemented.")},u.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},u.prototype.getFeature=function(A,c){throw new Error("This DOM method is not implemented.")},u}()}).call(this)},{}],438:[function(t,C,b){(function(){var a;C.exports=a=function(){function u(A){this.arr=A||[]}return Object.defineProperty(u.prototype,"length",{get:function(){return this.arr.length}}),u.prototype.item=function(A){return this.arr[A]||null},u.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},u}()}).call(this)},{}],439:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(o){c(n,o);function n(r,s,l,d,p,g){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!p)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(p.indexOf("#")!==0&&(p="#"+p),!p.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(g&&!p.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=a.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(d),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=p}return n.prototype.toString=function(r){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(r))},n}(A)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(o){c(n,o);function n(r,s,l){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(s),this.type=a.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return n.prototype.toString=function(r){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(r))},n}(A)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(t,C,b){(function(){var a,u,A,c,h=function(n,r){for(var s in r)o.call(r,s)&&(n[s]=r[s]);function l(){this.constructor=n}return l.prototype=r.prototype,n.prototype=new l,n.__super__=r.prototype,n},o={}.hasOwnProperty;c=t("./Utility").isObject,A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(n){h(r,n);function r(s,l,d,p){if(r.__super__.constructor.call(this,s),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(p==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!l,this.name=this.stringify.name(d),this.type=a.EntityDeclaration,!c(p))this.value=this.stringify.dtdEntityValue(p),this.internal=!0;else{if(!p.pubID&&!p.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(p.pubID&&!p.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,p.pubID!=null&&(this.pubID=this.stringify.dtdPubID(p.pubID)),p.sysID!=null&&(this.sysID=this.stringify.dtdSysID(p.sysID)),p.nData!=null&&(this.nData=this.stringify.dtdNData(p.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(s){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(s))},r}(A)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(o){c(n,o);function n(r,s,l){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing DTD notation name. "+this.debugInfo(s));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(s));this.name=this.stringify.name(s),this.type=a.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))},n}(A)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(t,C,b){(function(){var a,u,A,c,h=function(n,r){for(var s in r)o.call(r,s)&&(n[s]=r[s]);function l(){this.constructor=n}return l.prototype=r.prototype,n.prototype=new l,n.__super__=r.prototype,n},o={}.hasOwnProperty;c=t("./Utility").isObject,A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(n){h(r,n);function r(s,l,d,p){var g;r.__super__.constructor.call(this,s),c(l)&&(g=l,l=g.version,d=g.encoding,p=g.standalone),l||(l="1.0"),this.type=a.Declaration,this.version=this.stringify.xmlVersion(l),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),p!=null&&(this.standalone=this.stringify.xmlStandalone(p))}return r.prototype.toString=function(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))},r}(A)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l=function(p,g){for(var m in g)d.call(g,m)&&(p[m]=g[m]);function v(){this.constructor=p}return v.prototype=g.prototype,p.prototype=new v,p.__super__=g.prototype,p},d={}.hasOwnProperty;s=t("./Utility").isObject,r=t("./XMLNode"),a=t("./NodeType"),u=t("./XMLDTDAttList"),c=t("./XMLDTDEntity"),A=t("./XMLDTDElement"),h=t("./XMLDTDNotation"),n=t("./XMLNamedNodeMap"),C.exports=o=function(p){l(g,p);function g(m,v,_){var O,F,T,S,I,E;if(g.__super__.constructor.call(this,m),this.type=a.DocType,m.children){for(S=m.children,F=0,T=S.length;F<T;F++)if(O=S[F],O.type===a.Element){this.name=O.name;break}}this.documentObject=m,s(v)&&(I=v,v=I.pubID,_=I.sysID),_==null&&(E=[v,_],_=E[0],v=E[1]),v!=null&&(this.pubID=this.stringify.dtdPubID(v)),_!=null&&(this.sysID=this.stringify.dtdSysID(_))}return Object.defineProperty(g.prototype,"entities",{get:function(){var m,v,_,O,F;for(O={},F=this.children,v=0,_=F.length;v<_;v++)m=F[v],m.type===a.EntityDeclaration&&!m.pe&&(O[m.name]=m);return new n(O)}}),Object.defineProperty(g.prototype,"notations",{get:function(){var m,v,_,O,F;for(O={},F=this.children,v=0,_=F.length;v<_;v++)m=F[v],m.type===a.NotationDeclaration&&(O[m.name]=m);return new n(O)}}),Object.defineProperty(g.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(g.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(g.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),g.prototype.element=function(m,v){var _;return _=new A(this,m,v),this.children.push(_),this},g.prototype.attList=function(m,v,_,O,F){var T;return T=new u(this,m,v,_,O,F),this.children.push(T),this},g.prototype.entity=function(m,v){var _;return _=new c(this,!1,m,v),this.children.push(_),this},g.prototype.pEntity=function(m,v){var _;return _=new c(this,!0,m,v),this.children.push(_),this},g.prototype.notation=function(m,v){var _;return _=new h(this,m,v),this.children.push(_),this},g.prototype.toString=function(m){return this.options.writer.docType(this,this.options.writer.filterOptions(m))},g.prototype.ele=function(m,v){return this.element(m,v)},g.prototype.att=function(m,v,_,O,F){return this.attList(m,v,_,O,F)},g.prototype.ent=function(m,v){return this.entity(m,v)},g.prototype.pent=function(m,v){return this.pEntity(m,v)},g.prototype.not=function(m,v){return this.notation(m,v)},g.prototype.up=function(){return this.root()||this.documentObject},g.prototype.isEqualNode=function(m){return!(!g.__super__.isEqualNode.apply(this,arguments).isEqualNode(m)||m.name!==this.name||m.publicId!==this.publicId||m.systemId!==this.systemId)},g}(r)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s=function(d,p){for(var g in p)l.call(p,g)&&(d[g]=p[g]);function m(){this.constructor=d}return m.prototype=p.prototype,d.prototype=new m,d.__super__=p.prototype,d},l={}.hasOwnProperty;r=t("./Utility").isPlainObject,A=t("./XMLDOMImplementation"),u=t("./XMLDOMConfiguration"),h=t("./XMLNode"),a=t("./NodeType"),n=t("./XMLStringifier"),o=t("./XMLStringWriter"),C.exports=c=function(d){s(p,d);function p(g){p.__super__.constructor.call(this,null),this.name="#document",this.type=a.Document,this.documentURI=null,this.domConfig=new u,g||(g={}),g.writer||(g.writer=new o),this.options=g,this.stringify=new n(g)}return Object.defineProperty(p.prototype,"implementation",{value:new A}),Object.defineProperty(p.prototype,"doctype",{get:function(){var g,m,v,_;for(_=this.children,m=0,v=_.length;m<v;m++)if(g=_[m],g.type===a.DocType)return g;return null}}),Object.defineProperty(p.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(p.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(p.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===a.Declaration?this.children[0].encoding:null}}),Object.defineProperty(p.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===a.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(p.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===a.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(p.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(p.prototype,"origin",{get:function(){return null}}),Object.defineProperty(p.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(p.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(p.prototype,"contentType",{get:function(){return null}}),p.prototype.end=function(g){var m;return m={},g?r(g)&&(m=g,g=this.options.writer):g=this.options.writer,g.document(this,g.filterOptions(m))},p.prototype.toString=function(g){return this.options.writer.document(this,this.options.writer.filterOptions(g))},p.prototype.createElement=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createTextNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createComment=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createCDATASection=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createProcessingInstruction=function(g,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createAttribute=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createEntityReference=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.importNode=function(g,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createElementNS=function(g,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createAttributeNS=function(g,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagNameNS=function(g,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementById=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.adoptNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.renameNode=function(g,m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByClassName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createEvent=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createNodeIterator=function(g,m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.createTreeWalker=function(g,m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p}(h)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l,d,p,g,m,v,_,O,F,T,S,I,E,M,N,V={}.hasOwnProperty;N=t("./Utility"),E=N.isObject,I=N.isFunction,M=N.isPlainObject,S=N.getValue,a=t("./NodeType"),p=t("./XMLDocument"),m=t("./XMLElement"),c=t("./XMLCData"),h=t("./XMLComment"),_=t("./XMLRaw"),T=t("./XMLText"),v=t("./XMLProcessingInstruction"),l=t("./XMLDeclaration"),d=t("./XMLDocType"),o=t("./XMLDTDAttList"),r=t("./XMLDTDEntity"),n=t("./XMLDTDElement"),s=t("./XMLDTDNotation"),A=t("./XMLAttribute"),F=t("./XMLStringifier"),O=t("./XMLStringWriter"),u=t("./WriterState"),C.exports=g=function(){function H(X,G,ee){var Z;this.name="?xml",this.type=a.Document,X||(X={}),Z={},X.writer?M(X.writer)&&(Z=X.writer,X.writer=new O):X.writer=new O,this.options=X,this.writer=X.writer,this.writerOptions=this.writer.filterOptions(Z),this.stringify=new F(X),this.onDataCallback=G||function(){},this.onEndCallback=ee||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return H.prototype.createChildNode=function(X){var G,ee,Z,Ae,U,W,le,he;switch(X.type){case a.CData:this.cdata(X.value);break;case a.Comment:this.comment(X.value);break;case a.Element:Z={},le=X.attribs;for(ee in le)V.call(le,ee)&&(G=le[ee],Z[ee]=G.value);this.node(X.name,Z);break;case a.Dummy:this.dummy();break;case a.Raw:this.raw(X.value);break;case a.Text:this.text(X.value);break;case a.ProcessingInstruction:this.instruction(X.target,X.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+X.constructor.name)}for(he=X.children,U=0,W=he.length;U<W;U++)Ae=he[U],this.createChildNode(Ae),Ae.type===a.Element&&this.up();return this},H.prototype.dummy=function(){return this},H.prototype.node=function(X,G,ee){var Z;if(X==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(X));return this.openCurrent(),X=S(X),G==null&&(G={}),G=S(G),E(G)||(Z=[G,ee],ee=Z[0],G=Z[1]),this.currentNode=new m(this,X,G),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ee!=null&&this.text(ee),this},H.prototype.element=function(X,G,ee){var Z,Ae,U,W,le,he;if(this.currentNode&&this.currentNode.type===a.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(X)||E(X)||I(X))for(W=this.options.noValidation,this.options.noValidation=!0,he=new p(this.options).element("TEMP_ROOT"),he.element(X),this.options.noValidation=W,le=he.children,Ae=0,U=le.length;Ae<U;Ae++)Z=le[Ae],this.createChildNode(Z),Z.type===a.Element&&this.up();else this.node(X,G,ee);return this},H.prototype.attribute=function(X,G){var ee,Z;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(X));if(X!=null&&(X=S(X)),E(X))for(ee in X)V.call(X,ee)&&(Z=X[ee],this.attribute(ee,Z));else I(G)&&(G=G.apply()),this.options.keepNullAttributes&&G==null?this.currentNode.attribs[X]=new A(this,X,""):G!=null&&(this.currentNode.attribs[X]=new A(this,X,G));return this},H.prototype.text=function(X){var G;return this.openCurrent(),G=new T(this,X),this.onData(this.writer.text(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.cdata=function(X){var G;return this.openCurrent(),G=new c(this,X),this.onData(this.writer.cdata(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.comment=function(X){var G;return this.openCurrent(),G=new h(this,X),this.onData(this.writer.comment(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.raw=function(X){var G;return this.openCurrent(),G=new _(this,X),this.onData(this.writer.raw(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.instruction=function(X,G){var ee,Z,Ae,U,W;if(this.openCurrent(),X!=null&&(X=S(X)),G!=null&&(G=S(G)),Array.isArray(X))for(ee=0,U=X.length;ee<U;ee++)Z=X[ee],this.instruction(Z);else if(E(X))for(Z in X)V.call(X,Z)&&(Ae=X[Z],this.instruction(Z,Ae));else I(G)&&(G=G.apply()),W=new v(this,X,G),this.onData(this.writer.processingInstruction(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},H.prototype.declaration=function(X,G,ee){var Z;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Z=new l(this,X,G,ee),this.onData(this.writer.declaration(Z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.doctype=function(X,G,ee){if(this.openCurrent(),X==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,G,ee),this.currentNode.rootNodeName=X,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},H.prototype.dtdElement=function(X,G){var ee;return this.openCurrent(),ee=new n(this,X,G),this.onData(this.writer.dtdElement(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.attList=function(X,G,ee,Z,Ae){var U;return this.openCurrent(),U=new o(this,X,G,ee,Z,Ae),this.onData(this.writer.dtdAttList(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.entity=function(X,G){var ee;return this.openCurrent(),ee=new r(this,!1,X,G),this.onData(this.writer.dtdEntity(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.pEntity=function(X,G){var ee;return this.openCurrent(),ee=new r(this,!0,X,G),this.onData(this.writer.dtdEntity(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.prototype.notation=function(X,G){var ee;return this.openCurrent(),ee=new s(this,X,G),this.onData(this.writer.dtdNotation(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},H.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},H.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},H.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},H.prototype.openNode=function(X){var G,ee,Z,Ae;if(!X.isOpen){if(!this.root&&this.currentLevel===0&&X.type===a.Element&&(this.root=X),ee="",X.type===a.Element){this.writerOptions.state=u.OpenTag,ee=this.writer.indent(X,this.writerOptions,this.currentLevel)+"<"+X.name,Ae=X.attribs;for(Z in Ae)V.call(Ae,Z)&&(G=Ae[Z],ee+=this.writer.attribute(G,this.writerOptions,this.currentLevel));ee+=(X.children?">":"/>")+this.writer.endline(X,this.writerOptions,this.currentLevel),this.writerOptions.state=u.InsideTag}else this.writerOptions.state=u.OpenTag,ee=this.writer.indent(X,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+X.rootNodeName,X.pubID&&X.sysID?ee+=' PUBLIC "'+X.pubID+'" "'+X.sysID+'"':X.sysID&&(ee+=' SYSTEM "'+X.sysID+'"'),X.children?(ee+=" [",this.writerOptions.state=u.InsideTag):(this.writerOptions.state=u.CloseTag,ee+=">"),ee+=this.writer.endline(X,this.writerOptions,this.currentLevel);return this.onData(ee,this.currentLevel),X.isOpen=!0}},H.prototype.closeNode=function(X){var G;if(!X.isClosed)return G="",this.writerOptions.state=u.CloseTag,X.type===a.Element?G=this.writer.indent(X,this.writerOptions,this.currentLevel)+"</"+X.name+">"+this.writer.endline(X,this.writerOptions,this.currentLevel):G=this.writer.indent(X,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(X,this.writerOptions,this.currentLevel),this.writerOptions.state=u.None,this.onData(G,this.currentLevel),X.isClosed=!0},H.prototype.onData=function(X,G){return this.documentStarted=!0,this.onDataCallback(X,G+1)},H.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},H.prototype.debugInfo=function(X){return X==null?"":"node: <"+X+">"},H.prototype.ele=function(){return this.element.apply(this,arguments)},H.prototype.nod=function(X,G,ee){return this.node(X,G,ee)},H.prototype.txt=function(X){return this.text(X)},H.prototype.dat=function(X){return this.cdata(X)},H.prototype.com=function(X){return this.comment(X)},H.prototype.ins=function(X,G){return this.instruction(X,G)},H.prototype.dec=function(X,G,ee){return this.declaration(X,G,ee)},H.prototype.dtd=function(X,G,ee){return this.doctype(X,G,ee)},H.prototype.e=function(X,G,ee){return this.element(X,G,ee)},H.prototype.n=function(X,G,ee){return this.node(X,G,ee)},H.prototype.t=function(X){return this.text(X)},H.prototype.d=function(X){return this.cdata(X)},H.prototype.c=function(X){return this.comment(X)},H.prototype.r=function(X){return this.raw(X)},H.prototype.i=function(X,G){return this.instruction(X,G)},H.prototype.att=function(){return this.currentNode&&this.currentNode.type===a.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},H.prototype.a=function(){return this.currentNode&&this.currentNode.type===a.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},H.prototype.ent=function(X,G){return this.entity(X,G)},H.prototype.pent=function(X,G){return this.pEntity(X,G)},H.prototype.not=function(X,G){return this.notation(X,G)},H}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;A=t("./XMLNode"),a=t("./NodeType"),C.exports=u=function(o){c(n,o);function n(r){n.__super__.constructor.call(this,r),this.type=a.Dummy}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return""},n}(A)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l=function(p,g){for(var m in g)d.call(g,m)&&(p[m]=g[m]);function v(){this.constructor=p}return v.prototype=g.prototype,p.prototype=new v,p.__super__=g.prototype,p},d={}.hasOwnProperty;s=t("./Utility"),r=s.isObject,n=s.isFunction,o=s.getValue,h=t("./XMLNode"),a=t("./NodeType"),u=t("./XMLAttribute"),c=t("./XMLNamedNodeMap"),C.exports=A=function(p){l(g,p);function g(m,v,_){var O,F,T,S;if(g.__super__.constructor.call(this,m),v==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(v),this.type=a.Element,this.attribs={},this.schemaTypeInfo=null,_!=null&&this.attribute(_),m.type===a.Document&&(this.isRoot=!0,this.documentObject=m,m.rootObject=this,m.children)){for(S=m.children,F=0,T=S.length;F<T;F++)if(O=S[F],O.type===a.DocType){O.name=this.name;break}}}return Object.defineProperty(g.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(g.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(g.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new c(this.attribs)),this.attributeMap}}),g.prototype.clone=function(){var m,v,_,O;_=Object.create(this),_.isRoot&&(_.documentObject=null),_.attribs={},O=this.attribs;for(v in O)d.call(O,v)&&(m=O[v],_.attribs[v]=m.clone());return _.children=[],this.children.forEach(function(F){var T;return T=F.clone(),T.parent=_,_.children.push(T)}),_},g.prototype.attribute=function(m,v){var _,O;if(m!=null&&(m=o(m)),r(m))for(_ in m)d.call(m,_)&&(O=m[_],this.attribute(_,O));else n(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.attribs[m]=new u(this,m,""):v!=null&&(this.attribs[m]=new u(this,m,v));return this},g.prototype.removeAttribute=function(m){var v,_,O;if(m==null)throw new Error("Missing attribute name. "+this.debugInfo());if(m=o(m),Array.isArray(m))for(_=0,O=m.length;_<O;_++)v=m[_],delete this.attribs[v];else delete this.attribs[m];return this},g.prototype.toString=function(m){return this.options.writer.element(this,this.options.writer.filterOptions(m))},g.prototype.att=function(m,v){return this.attribute(m,v)},g.prototype.a=function(m,v){return this.attribute(m,v)},g.prototype.getAttribute=function(m){return this.attribs.hasOwnProperty(m)?this.attribs[m].value:null},g.prototype.setAttribute=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNode=function(m){return this.attribs.hasOwnProperty(m)?this.attribs[m]:null},g.prototype.setAttributeNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeAttributeNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setAttributeNS=function(m,v,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeAttributeNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNodeNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setAttributeNodeNS=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasAttribute=function(m){return this.attribs.hasOwnProperty(m)},g.prototype.hasAttributeNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setIdAttribute=function(m,v){return this.attribs.hasOwnProperty(m)?this.attribs[m].isId:v},g.prototype.setIdAttributeNS=function(m,v,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setIdAttributeNode=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(m,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(m){var v,_,O;if(!g.__super__.isEqualNode.apply(this,arguments).isEqualNode(m)||m.namespaceURI!==this.namespaceURI||m.prefix!==this.prefix||m.localName!==this.localName||m.attribs.length!==this.attribs.length)return!1;for(v=_=0,O=this.attribs.length-1;0<=O?_<=O:_>=O;v=0<=O?++_:--_)if(!this.attribs[v].isEqualNode(m.attribs[v]))return!1;return!0},g}(h)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(t,C,b){(function(){var a;C.exports=a=function(){function u(A){this.nodes=A}return Object.defineProperty(u.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),u.prototype.clone=function(){return this.nodes=null},u.prototype.getNamedItem=function(A){return this.nodes[A]},u.prototype.setNamedItem=function(A){var c;return c=this.nodes[A.nodeName],this.nodes[A.nodeName]=A,c||null},u.prototype.removeNamedItem=function(A){var c;return c=this.nodes[A],delete this.nodes[A],c||null},u.prototype.item=function(A){return this.nodes[Object.keys(this.nodes)[A]]||null},u.prototype.getNamedItemNS=function(A,c){throw new Error("This DOM method is not implemented.")},u.prototype.setNamedItemNS=function(A){throw new Error("This DOM method is not implemented.")},u.prototype.removeNamedItemNS=function(A,c){throw new Error("This DOM method is not implemented.")},u}()}).call(this)},{}],450:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l,d,p,g,m,v,_,O,F,T,S={}.hasOwnProperty;T=t("./Utility"),F=T.isObject,O=T.isFunction,_=T.isEmpty,v=T.getValue,r=null,A=null,c=null,h=null,o=null,g=null,m=null,p=null,n=null,u=null,d=null,s=null,a=null,C.exports=l=function(){function I(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,r||(r=t("./XMLElement"),A=t("./XMLCData"),c=t("./XMLComment"),h=t("./XMLDeclaration"),o=t("./XMLDocType"),g=t("./XMLRaw"),m=t("./XMLText"),p=t("./XMLProcessingInstruction"),n=t("./XMLDummy"),u=t("./NodeType"),d=t("./XMLNodeList"),s=t("./XMLNamedNodeMap"),a=t("./DocumentPosition"))}return Object.defineProperty(I.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(I.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(I.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(I.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(I.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(I.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(I.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(I.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(I.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(I.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(I.prototype,"textContent",{get:function(){var E,M,N,V,H;if(this.nodeType===u.Element||this.nodeType===u.DocumentFragment){for(H="",V=this.children,M=0,N=V.length;M<N;M++)E=V[M],E.textContent&&(H+=E.textContent);return H}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),I.prototype.setParent=function(E){var M,N,V,H,X;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),H=this.children,X=[],N=0,V=H.length;N<V;N++)M=H[N],X.push(M.setParent(this));return X},I.prototype.element=function(E,M,N){var V,H,X,G,ee,Z,Ae,U,W,le,he;if(Z=null,M===null&&N==null&&(W=[{},null],M=W[0],N=W[1]),M==null&&(M={}),M=v(M),F(M)||(le=[M,N],N=le[0],M=le[1]),E!=null&&(E=v(E)),Array.isArray(E))for(X=0,Ae=E.length;X<Ae;X++)H=E[X],Z=this.element(H);else if(O(E))Z=this.element(E.apply());else if(F(E)){for(ee in E)if(S.call(E,ee))if(he=E[ee],O(he)&&(he=he.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ee.indexOf(this.stringify.convertAttKey)===0)Z=this.attribute(ee.substr(this.stringify.convertAttKey.length),he);else if(!this.options.separateArrayItems&&Array.isArray(he)&&_(he))Z=this.dummy();else if(F(he)&&_(he))Z=this.element(ee);else if(!this.options.keepNullNodes&&he==null)Z=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(he))for(G=0,U=he.length;G<U;G++)H=he[G],V={},V[ee]=H,Z=this.element(V);else F(he)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ee.indexOf(this.stringify.convertTextKey)===0?Z=this.element(he):(Z=this.element(ee),Z.element(he)):Z=this.element(ee,he)}else!this.options.keepNullNodes&&N===null?Z=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?Z=this.text(N):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?Z=this.cdata(N):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?Z=this.comment(N):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?Z=this.raw(N):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?Z=this.instruction(E.substr(this.stringify.convertPIKey.length),N):Z=this.node(E,M,N);if(Z==null)throw new Error("Could not create any elements with: "+E+". "+this.debugInfo());return Z},I.prototype.insertBefore=function(E,M,N){var V,H,X,G,ee;if(E!=null&&E.type)return X=E,G=M,X.setParent(this),G?(H=children.indexOf(G),ee=children.splice(H),children.push(X),Array.prototype.push.apply(children,ee)):children.push(X),X;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return H=this.parent.children.indexOf(this),ee=this.parent.children.splice(H),V=this.parent.element(E,M,N),Array.prototype.push.apply(this.parent.children,ee),V},I.prototype.insertAfter=function(E,M,N){var V,H,X;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return H=this.parent.children.indexOf(this),X=this.parent.children.splice(H+1),V=this.parent.element(E,M,N),Array.prototype.push.apply(this.parent.children,X),V},I.prototype.remove=function(){var E,M;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(M=[])),this.parent},I.prototype.node=function(E,M,N){var V,H;return E!=null&&(E=v(E)),M||(M={}),M=v(M),F(M)||(H=[M,N],N=H[0],M=H[1]),V=new r(this,E,M),N!=null&&V.text(N),this.children.push(V),V},I.prototype.text=function(E){var M;return F(E)&&this.element(E),M=new m(this,E),this.children.push(M),this},I.prototype.cdata=function(E){var M;return M=new A(this,E),this.children.push(M),this},I.prototype.comment=function(E){var M;return M=new c(this,E),this.children.push(M),this},I.prototype.commentBefore=function(E){var M,N,V;return N=this.parent.children.indexOf(this),V=this.parent.children.splice(N),M=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,V),this},I.prototype.commentAfter=function(E){var M,N,V;return N=this.parent.children.indexOf(this),V=this.parent.children.splice(N+1),M=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,V),this},I.prototype.raw=function(E){var M;return M=new g(this,E),this.children.push(M),this},I.prototype.dummy=function(){var E;return E=new n(this),E},I.prototype.instruction=function(E,M){var N,V,H,X,G;if(E!=null&&(E=v(E)),M!=null&&(M=v(M)),Array.isArray(E))for(X=0,G=E.length;X<G;X++)N=E[X],this.instruction(N);else if(F(E))for(N in E)S.call(E,N)&&(V=E[N],this.instruction(N,V));else O(M)&&(M=M.apply()),H=new p(this,E,M),this.children.push(H);return this},I.prototype.instructionBefore=function(E,M){var N,V,H;return V=this.parent.children.indexOf(this),H=this.parent.children.splice(V),N=this.parent.instruction(E,M),Array.prototype.push.apply(this.parent.children,H),this},I.prototype.instructionAfter=function(E,M){var N,V,H;return V=this.parent.children.indexOf(this),H=this.parent.children.splice(V+1),N=this.parent.instruction(E,M),Array.prototype.push.apply(this.parent.children,H),this},I.prototype.declaration=function(E,M,N){var V,H;return V=this.document(),H=new h(V,E,M,N),V.children.length===0?V.children.unshift(H):V.children[0].type===u.Declaration?V.children[0]=H:V.children.unshift(H),V.root()||V},I.prototype.dtd=function(E,M){var N,V,H,X,G,ee,Z,Ae,U,W;for(V=this.document(),H=new o(V,E,M),U=V.children,X=G=0,Z=U.length;G<Z;X=++G)if(N=U[X],N.type===u.DocType)return V.children[X]=H,H;for(W=V.children,X=ee=0,Ae=W.length;ee<Ae;X=++ee)if(N=W[X],N.isRoot)return V.children.splice(X,0,H),H;return V.children.push(H),H},I.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},I.prototype.root=function(){var E;for(E=this;E;){if(E.type===u.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},I.prototype.document=function(){var E;for(E=this;E;){if(E.type===u.Document)return E;E=E.parent}},I.prototype.end=function(E){return this.document().end(E)},I.prototype.prev=function(){var E;if(E=this.parent.children.indexOf(this),E<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[E-1]},I.prototype.next=function(){var E;if(E=this.parent.children.indexOf(this),E===-1||E===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[E+1]},I.prototype.importDocument=function(E){var M;return M=E.root().clone(),M.parent=this,M.isRoot=!1,this.children.push(M),this},I.prototype.debugInfo=function(E){var M,N;return E=E||this.name,E==null&&!((M=this.parent)!=null&&M.name)?"":E==null?"parent: <"+this.parent.name+">":(N=this.parent)!=null&&N.name?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},I.prototype.ele=function(E,M,N){return this.element(E,M,N)},I.prototype.nod=function(E,M,N){return this.node(E,M,N)},I.prototype.txt=function(E){return this.text(E)},I.prototype.dat=function(E){return this.cdata(E)},I.prototype.com=function(E){return this.comment(E)},I.prototype.ins=function(E,M){return this.instruction(E,M)},I.prototype.doc=function(){return this.document()},I.prototype.dec=function(E,M,N){return this.declaration(E,M,N)},I.prototype.e=function(E,M,N){return this.element(E,M,N)},I.prototype.n=function(E,M,N){return this.node(E,M,N)},I.prototype.t=function(E){return this.text(E)},I.prototype.d=function(E){return this.cdata(E)},I.prototype.c=function(E){return this.comment(E)},I.prototype.r=function(E){return this.raw(E)},I.prototype.i=function(E,M){return this.instruction(E,M)},I.prototype.u=function(){return this.up()},I.prototype.importXMLBuilder=function(E){return this.importDocument(E)},I.prototype.replaceChild=function(E,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.hasChildNodes=function(){return this.children.length!==0},I.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.isSupported=function(E,M){return!0},I.prototype.hasAttributes=function(){return this.attribs.length!==0},I.prototype.compareDocumentPosition=function(E){var M,N;return M=this,M===E?0:this.document()!==E.document()?(N=a.Disconnected|a.ImplementationSpecific,Math.random()<.5?N|=a.Preceding:N|=a.Following,N):M.isAncestor(E)?a.Contains|a.Preceding:M.isDescendant(E)?a.Contains|a.Following:M.isPreceding(E)?a.Preceding:a.Following},I.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.isEqualNode=function(E){var M,N,V;if(E.nodeType!==this.nodeType||E.children.length!==this.children.length)return!1;for(M=N=0,V=this.children.length-1;0<=V?N<=V:N>=V;M=0<=V?++N:--N)if(!this.children[M].isEqualNode(E.children[M]))return!1;return!0},I.prototype.getFeature=function(E,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.setUserData=function(E,M,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},I.prototype.isDescendant=function(E){var M,N,V,H,X;for(X=this.children,V=0,H=X.length;V<H;V++)if(M=X[V],E===M||(N=M.isDescendant(E),N))return!0;return!1},I.prototype.isAncestor=function(E){return E.isDescendant(this)},I.prototype.isPreceding=function(E){var M,N;return M=this.treePosition(E),N=this.treePosition(this),M===-1||N===-1?!1:M<N},I.prototype.isFollowing=function(E){var M,N;return M=this.treePosition(E),N=this.treePosition(this),M===-1||N===-1?!1:M>N},I.prototype.treePosition=function(E){var M,N;return N=0,M=!1,this.foreachTreeNode(this.document(),function(V){if(N++,!M&&V===E)return M=!0}),M?N:-1},I.prototype.foreachTreeNode=function(E,M){var N,V,H,X,G;for(E||(E=this.document()),X=E.children,V=0,H=X.length;V<H;V++){if(N=X[V],G=M(N))return G;if(G=this.foreachTreeNode(N,M),G)return G}},I}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(t,C,b){(function(){var a;C.exports=a=function(){function u(A){this.nodes=A}return Object.defineProperty(u.prototype,"length",{get:function(){return this.nodes.length||0}}),u.prototype.clone=function(){return this.nodes=null},u.prototype.item=function(A){return this.nodes[A]||null},u}()}).call(this)},{}],452:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;a=t("./NodeType"),u=t("./XMLCharacterData"),C.exports=A=function(o){c(n,o);function n(r,s,l){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=a.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,l&&(this.value=this.stringify.insValue(l))}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},n.prototype.isEqualNode=function(r){return!(!n.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)||r.target!==this.target)},n}(u)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;a=t("./NodeType"),u=t("./XMLNode"),C.exports=A=function(o){c(n,o);function n(r,s){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=a.Raw,this.value=this.stringify.raw(s)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},n}(u)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(t,C,b){(function(){var a,u,A,c,h=function(n,r){for(var s in r)o.call(r,s)&&(n[s]=r[s]);function l(){this.constructor=n}return l.prototype=r.prototype,n.prototype=new l,n.__super__=r.prototype,n},o={}.hasOwnProperty;a=t("./NodeType"),c=t("./XMLWriterBase"),u=t("./WriterState"),C.exports=A=function(n){h(r,n);function r(s,l){this.stream=s,r.__super__.constructor.call(this,l)}return r.prototype.endline=function(s,l,d){return s.isLastRootNode&&l.state===u.CloseTag?"":r.__super__.endline.call(this,s,l,d)},r.prototype.document=function(s,l){var d,p,g,m,v,_,O,F,T;for(O=s.children,p=g=0,v=O.length;g<v;p=++g)d=O[p],d.isLastRootNode=p===s.children.length-1;for(l=this.filterOptions(l),F=s.children,T=[],m=0,_=F.length;m<_;m++)d=F[m],T.push(this.writeChildNode(d,l,0));return T},r.prototype.attribute=function(s,l,d){return this.stream.write(r.__super__.attribute.call(this,s,l,d))},r.prototype.cdata=function(s,l,d){return this.stream.write(r.__super__.cdata.call(this,s,l,d))},r.prototype.comment=function(s,l,d){return this.stream.write(r.__super__.comment.call(this,s,l,d))},r.prototype.declaration=function(s,l,d){return this.stream.write(r.__super__.declaration.call(this,s,l,d))},r.prototype.docType=function(s,l,d){var p,g,m,v;if(d||(d=0),this.openNode(s,l,d),l.state=u.OpenTag,this.stream.write(this.indent(s,l,d)),this.stream.write("<!DOCTYPE "+s.root().name),s.pubID&&s.sysID?this.stream.write(' PUBLIC "'+s.pubID+'" "'+s.sysID+'"'):s.sysID&&this.stream.write(' SYSTEM "'+s.sysID+'"'),s.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(s,l,d)),l.state=u.InsideTag,v=s.children,g=0,m=v.length;g<m;g++)p=v[g],this.writeChildNode(p,l,d+1);l.state=u.CloseTag,this.stream.write("]")}return l.state=u.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(s,l,d)),l.state=u.None,this.closeNode(s,l,d)},r.prototype.element=function(s,l,d){var p,g,m,v,_,O,F,T,S,I;d||(d=0),this.openNode(s,l,d),l.state=u.OpenTag,this.stream.write(this.indent(s,l,d)+"<"+s.name),S=s.attribs;for(F in S)o.call(S,F)&&(p=S[F],this.attribute(p,l,d));if(m=s.children.length,v=m===0?null:s.children[0],m===0||s.children.every(function(E){return(E.type===a.Text||E.type===a.Raw)&&E.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=u.CloseTag,this.stream.write("</"+s.name+">")):(l.state=u.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(l.pretty&&m===1&&(v.type===a.Text||v.type===a.Raw)&&v.value!=null)this.stream.write(">"),l.state=u.InsideTag,l.suppressPrettyCount++,T=!0,this.writeChildNode(v,l,d+1),l.suppressPrettyCount--,T=!1,l.state=u.CloseTag,this.stream.write("</"+s.name+">");else{for(this.stream.write(">"+this.endline(s,l,d)),l.state=u.InsideTag,I=s.children,_=0,O=I.length;_<O;_++)g=I[_],this.writeChildNode(g,l,d+1);l.state=u.CloseTag,this.stream.write(this.indent(s,l,d)+"</"+s.name+">")}return this.stream.write(this.endline(s,l,d)),l.state=u.None,this.closeNode(s,l,d)},r.prototype.processingInstruction=function(s,l,d){return this.stream.write(r.__super__.processingInstruction.call(this,s,l,d))},r.prototype.raw=function(s,l,d){return this.stream.write(r.__super__.raw.call(this,s,l,d))},r.prototype.text=function(s,l,d){return this.stream.write(r.__super__.text.call(this,s,l,d))},r.prototype.dtdAttList=function(s,l,d){return this.stream.write(r.__super__.dtdAttList.call(this,s,l,d))},r.prototype.dtdElement=function(s,l,d){return this.stream.write(r.__super__.dtdElement.call(this,s,l,d))},r.prototype.dtdEntity=function(s,l,d){return this.stream.write(r.__super__.dtdEntity.call(this,s,l,d))},r.prototype.dtdNotation=function(s,l,d){return this.stream.write(r.__super__.dtdNotation.call(this,s,l,d))},r}(c)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(t,C,b){(function(){var a,u,A=function(h,o){for(var n in o)c.call(o,n)&&(h[n]=o[n]);function r(){this.constructor=h}return r.prototype=o.prototype,h.prototype=new r,h.__super__=o.prototype,h},c={}.hasOwnProperty;u=t("./XMLWriterBase"),C.exports=a=function(h){A(o,h);function o(n){o.__super__.constructor.call(this,n)}return o.prototype.document=function(n,r){var s,l,d,p,g;for(r=this.filterOptions(r),p="",g=n.children,l=0,d=g.length;l<d;l++)s=g[l],p+=this.writeChildNode(s,r,0);return r.pretty&&p.slice(-r.newline.length)===r.newline&&(p=p.slice(0,-r.newline.length)),p},o}(u)}).call(this)},{"./XMLWriterBase":458}],456:[function(t,C,b){(function(){var a,u=function(c,h){return function(){return c.apply(h,arguments)}},A={}.hasOwnProperty;C.exports=a=function(){function c(h){this.assertLegalName=u(this.assertLegalName,this),this.assertLegalChar=u(this.assertLegalChar,this);var o,n,r;h||(h={}),this.options=h,this.options.version||(this.options.version="1.0"),n=h.stringify||{};for(o in n)A.call(n,o)&&(r=n[o],this[o]=r)}return c.prototype.name=function(h){return this.options.noValidation?h:this.assertLegalName(""+h||"")},c.prototype.text=function(h){return this.options.noValidation?h:this.assertLegalChar(this.textEscape(""+h||""))},c.prototype.cdata=function(h){return this.options.noValidation?h:(h=""+h||"",h=h.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(h))},c.prototype.comment=function(h){if(this.options.noValidation)return h;if(h=""+h||"",h.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+h);return this.assertLegalChar(h)},c.prototype.raw=function(h){return this.options.noValidation?h:""+h||""},c.prototype.attValue=function(h){return this.options.noValidation?h:this.assertLegalChar(this.attEscape(h=""+h||""))},c.prototype.insTarget=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.insValue=function(h){if(this.options.noValidation)return h;if(h=""+h||"",h.match(/\?>/))throw new Error("Invalid processing instruction value: "+h);return this.assertLegalChar(h)},c.prototype.xmlVersion=function(h){if(this.options.noValidation)return h;if(h=""+h||"",!h.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+h);return h},c.prototype.xmlEncoding=function(h){if(this.options.noValidation)return h;if(h=""+h||"",!h.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+h);return this.assertLegalChar(h)},c.prototype.xmlStandalone=function(h){return this.options.noValidation?h:h?"yes":"no"},c.prototype.dtdPubID=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdSysID=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdElementValue=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdAttType=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdAttDefault=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdEntityValue=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.dtdNData=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},c.prototype.convertAttKey="@",c.prototype.convertPIKey="?",c.prototype.convertTextKey="#text",c.prototype.convertCDataKey="#cdata",c.prototype.convertCommentKey="#comment",c.prototype.convertRawKey="#raw",c.prototype.assertLegalChar=function(h){var o,n;if(this.options.noValidation)return h;if(o="",this.options.version==="1.0"){if(o=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=h.match(o))throw new Error("Invalid character in string: "+h+" at index "+n.index)}else if(this.options.version==="1.1"&&(o=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=h.match(o)))throw new Error("Invalid character in string: "+h+" at index "+n.index);return h},c.prototype.assertLegalName=function(h){var o;if(this.options.noValidation)return h;if(this.assertLegalChar(h),o=/^([: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])*$/,!h.match(o))throw new Error("Invalid character in name");return h},c.prototype.textEscape=function(h){var o;return this.options.noValidation?h:(o=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,h.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},c.prototype.attEscape=function(h){var o;return this.options.noValidation?h:(o=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,h.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},c}()}).call(this)},{}],457:[function(t,C,b){(function(){var a,u,A,c=function(o,n){for(var r in n)h.call(n,r)&&(o[r]=n[r]);function s(){this.constructor=o}return s.prototype=n.prototype,o.prototype=new s,o.__super__=n.prototype,o},h={}.hasOwnProperty;a=t("./NodeType"),u=t("./XMLCharacterData"),C.exports=A=function(o){c(n,o);function n(r,s){if(n.__super__.constructor.call(this,r),s==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=a.Text,this.value=this.stringify.text(s)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var r,s,l;for(l="",s=this.previousSibling;s;)l=s.data+l,s=s.previousSibling;for(l+=this.data,r=this.nextSibling;r;)l=l+r.data,r=r.nextSibling;return l}}),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},n.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(u)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l,d,p,g,m,v,_,O,F={}.hasOwnProperty;O=t("./Utility").assign,a=t("./NodeType"),s=t("./XMLDeclaration"),l=t("./XMLDocType"),A=t("./XMLCData"),c=t("./XMLComment"),p=t("./XMLElement"),m=t("./XMLRaw"),v=t("./XMLText"),g=t("./XMLProcessingInstruction"),d=t("./XMLDummy"),h=t("./XMLDTDAttList"),o=t("./XMLDTDElement"),n=t("./XMLDTDEntity"),r=t("./XMLDTDNotation"),u=t("./WriterState"),C.exports=_=function(){function T(S){var I,E,M;S||(S={}),this.options=S,E=S.writer||{};for(I in E)F.call(E,I)&&(M=E[I],this["_"+I]=this[I],this[I]=M)}return T.prototype.filterOptions=function(S){var I,E,M,N,V,H,X,G;return S||(S={}),S=O({},this.options,S),I={writer:this},I.pretty=S.pretty||!1,I.allowEmpty=S.allowEmpty||!1,I.indent=(E=S.indent)!=null?E:" ",I.newline=(M=S.newline)!=null?M:`
|
|
|
`,I.offset=(N=S.offset)!=null?N:0,I.dontPrettyTextNodes=(V=(H=S.dontPrettyTextNodes)!=null?H:S.dontprettytextnodes)!=null?V:0,I.spaceBeforeSlash=(X=(G=S.spaceBeforeSlash)!=null?G:S.spacebeforeslash)!=null?X:"",I.spaceBeforeSlash===!0&&(I.spaceBeforeSlash=" "),I.suppressPrettyCount=0,I.user={},I.state=u.None,I},T.prototype.indent=function(S,I,E){var M;return!I.pretty||I.suppressPrettyCount?"":I.pretty&&(M=(E||0)+I.offset+1,M>0)?new Array(M).join(I.indent):""},T.prototype.endline=function(S,I,E){return!I.pretty||I.suppressPrettyCount?"":I.newline},T.prototype.attribute=function(S,I,E){var M;return this.openAttribute(S,I,E),M=" "+S.name+'="'+S.value+'"',this.closeAttribute(S,I,E),M},T.prototype.cdata=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<![CDATA[",I.state=u.InsideTag,M+=S.value,I.state=u.CloseTag,M+="]]>"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.comment=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<!-- ",I.state=u.InsideTag,M+=S.value,I.state=u.CloseTag,M+=" -->"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.declaration=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<?xml",I.state=u.InsideTag,M+=' version="'+S.version+'"',S.encoding!=null&&(M+=' encoding="'+S.encoding+'"'),S.standalone!=null&&(M+=' standalone="'+S.standalone+'"'),I.state=u.CloseTag,M+=I.spaceBeforeSlash+"?>",M+=this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.docType=function(S,I,E){var M,N,V,H,X;if(E||(E=0),this.openNode(S,I,E),I.state=u.OpenTag,H=this.indent(S,I,E),H+="<!DOCTYPE "+S.root().name,S.pubID&&S.sysID?H+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(H+=' SYSTEM "'+S.sysID+'"'),S.children.length>0){for(H+=" [",H+=this.endline(S,I,E),I.state=u.InsideTag,X=S.children,N=0,V=X.length;N<V;N++)M=X[N],H+=this.writeChildNode(M,I,E+1);I.state=u.CloseTag,H+="]"}return I.state=u.CloseTag,H+=I.spaceBeforeSlash+">",H+=this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),H},T.prototype.element=function(S,I,E){var M,N,V,H,X,G,ee,Z,Ae,U,W,le,he,ue;E||(E=0),U=!1,W="",this.openNode(S,I,E),I.state=u.OpenTag,W+=this.indent(S,I,E)+"<"+S.name,le=S.attribs;for(Ae in le)F.call(le,Ae)&&(M=le[Ae],W+=this.attribute(M,I,E));if(V=S.children.length,H=V===0?null:S.children[0],V===0||S.children.every(function(pe){return(pe.type===a.Text||pe.type===a.Raw)&&pe.value===""}))I.allowEmpty?(W+=">",I.state=u.CloseTag,W+="</"+S.name+">"+this.endline(S,I,E)):(I.state=u.CloseTag,W+=I.spaceBeforeSlash+"/>"+this.endline(S,I,E));else if(I.pretty&&V===1&&(H.type===a.Text||H.type===a.Raw)&&H.value!=null)W+=">",I.state=u.InsideTag,I.suppressPrettyCount++,U=!0,W+=this.writeChildNode(H,I,E+1),I.suppressPrettyCount--,U=!1,I.state=u.CloseTag,W+="</"+S.name+">"+this.endline(S,I,E);else{if(I.dontPrettyTextNodes){for(he=S.children,X=0,ee=he.length;X<ee;X++)if(N=he[X],(N.type===a.Text||N.type===a.Raw)&&N.value!=null){I.suppressPrettyCount++,U=!0;break}}for(W+=">"+this.endline(S,I,E),I.state=u.InsideTag,ue=S.children,G=0,Z=ue.length;G<Z;G++)N=ue[G],W+=this.writeChildNode(N,I,E+1);I.state=u.CloseTag,W+=this.indent(S,I,E)+"</"+S.name+">",U&&I.suppressPrettyCount--,W+=this.endline(S,I,E),I.state=u.None}return this.closeNode(S,I,E),W},T.prototype.writeChildNode=function(S,I,E){switch(S.type){case a.CData:return this.cdata(S,I,E);case a.Comment:return this.comment(S,I,E);case a.Element:return this.element(S,I,E);case a.Raw:return this.raw(S,I,E);case a.Text:return this.text(S,I,E);case a.ProcessingInstruction:return this.processingInstruction(S,I,E);case a.Dummy:return"";case a.Declaration:return this.declaration(S,I,E);case a.DocType:return this.docType(S,I,E);case a.AttributeDeclaration:return this.dtdAttList(S,I,E);case a.ElementDeclaration:return this.dtdElement(S,I,E);case a.EntityDeclaration:return this.dtdEntity(S,I,E);case a.NotationDeclaration:return this.dtdNotation(S,I,E);default:throw new Error("Unknown XML node type: "+S.constructor.name)}},T.prototype.processingInstruction=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<?",I.state=u.InsideTag,M+=S.target,S.value&&(M+=" "+S.value),I.state=u.CloseTag,M+=I.spaceBeforeSlash+"?>",M+=this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.raw=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E),I.state=u.InsideTag,M+=S.value,I.state=u.CloseTag,M+=this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.text=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E),I.state=u.InsideTag,M+=S.value,I.state=u.CloseTag,M+=this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.dtdAttList=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<!ATTLIST",I.state=u.InsideTag,M+=" "+S.elementName+" "+S.attributeName+" "+S.attributeType,S.defaultValueType!=="#DEFAULT"&&(M+=" "+S.defaultValueType),S.defaultValue&&(M+=' "'+S.defaultValue+'"'),I.state=u.CloseTag,M+=I.spaceBeforeSlash+">"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.dtdElement=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<!ELEMENT",I.state=u.InsideTag,M+=" "+S.name+" "+S.value,I.state=u.CloseTag,M+=I.spaceBeforeSlash+">"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.dtdEntity=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<!ENTITY",I.state=u.InsideTag,S.pe&&(M+=" %"),M+=" "+S.name,S.value?M+=' "'+S.value+'"':(S.pubID&&S.sysID?M+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(M+=' SYSTEM "'+S.sysID+'"'),S.nData&&(M+=" NDATA "+S.nData)),I.state=u.CloseTag,M+=I.spaceBeforeSlash+">"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.dtdNotation=function(S,I,E){var M;return this.openNode(S,I,E),I.state=u.OpenTag,M=this.indent(S,I,E)+"<!NOTATION",I.state=u.InsideTag,M+=" "+S.name,S.pubID&&S.sysID?M+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.pubID?M+=' PUBLIC "'+S.pubID+'"':S.sysID&&(M+=' SYSTEM "'+S.sysID+'"'),I.state=u.CloseTag,M+=I.spaceBeforeSlash+">"+this.endline(S,I,E),I.state=u.None,this.closeNode(S,I,E),M},T.prototype.openNode=function(S,I,E){},T.prototype.closeNode=function(S,I,E){},T.prototype.openAttribute=function(S,I,E){},T.prototype.closeAttribute=function(S,I,E){},T}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(t,C,b){(function(){var a,u,A,c,h,o,n,r,s,l;l=t("./Utility"),r=l.assign,s=l.isFunction,A=t("./XMLDOMImplementation"),c=t("./XMLDocument"),h=t("./XMLDocumentCB"),n=t("./XMLStringWriter"),o=t("./XMLStreamWriter"),a=t("./NodeType"),u=t("./WriterState"),C.exports.create=function(d,p,g,m){var v,_;if(d==null)throw new Error("Root element needs a name.");return m=r({},p,g,m),v=new c(m),_=v.element(d),m.headless||(v.declaration(m),(m.pubID!=null||m.sysID!=null)&&v.dtd(m)),_},C.exports.begin=function(d,p,g){var m;return s(d)&&(m=[d,p],p=m[0],g=m[1],d={}),p?new h(d,p,g):new c(d)},C.exports.stringWriter=function(d){return new n(d)},C.exports.streamWriter=function(d,p){return new o(d,p)},C.exports.implementation=new A,C.exports.nodeType=a,C.exports.writerState=u}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(t,C,b){C.exports=u;var a=Object.prototype.hasOwnProperty;function u(){for(var A={},c=0;c<arguments.length;c++){var h=arguments[c];for(var o in h)a.call(h,o)&&(A[o]=h[o])}return A}},{}],461:[function(t,C,b){"use strict";t("core-js/modules/es.array.fill.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.regexp.to-string.js"),t("core-js/modules/es.array.join.js"),t("core-js/modules/es.array.slice.js");var a=t("buffer").Buffer,u=t("./sha"),A=t("./md5"),c={sha1:u,md5:A},h=64,o=a.alloc(h);o.fill(0);function n(l,d,p){a.isBuffer(d)||(d=a.from(d)),a.isBuffer(p)||(p=a.from(p)),d.length>h?d=l(d):d.length<h&&(d=a.concat([d,o],h));for(var g=a.alloc(h),m=a.alloc(h),v=0;v<h;v++)g[v]=d[v]^54,m[v]=d[v]^92;var _=l(a.concat([g,p]));return l(a.concat([m,_]))}function r(l,d){l=l||"sha1";var p=c[l],g=[],m=0;return p||s("algorithm:",l,"is not yet supported"),{update:function(_){return a.isBuffer(_)||(_=a.from(_)),g.push(_),m+=_.length,this},digest:function(_){var O=a.concat(g),F=d?n(p,d,O):p(O);return g=null,_?F.toString(_):F}}}function s(){var l=[].slice.call(arguments).join(" ");throw new Error([l,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}b.createHash=function(l){return r(l)},b.createHmac=function(l,d){return r(l,d)},b.createCredentials=function(){s("sorry,createCredentials is not implemented yet")},b.createCipher=function(){s("sorry,createCipher is not implemented yet")},b.createCipheriv=function(){s("sorry,createCipheriv is not implemented yet")},b.createDecipher=function(){s("sorry,createDecipher is not implemented yet")},b.createDecipheriv=function(){s("sorry,createDecipheriv is not implemented yet")},b.createSign=function(){s("sorry,createSign is not implemented yet")},b.createVerify=function(){s("sorry,createVerify is not implemented yet")},b.createDiffieHellman=function(){s("sorry,createDiffieHellman is not implemented yet")},b.pbkdf2=function(){s("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(t,C,b){"use strict";t("core-js/modules/es.array.fill.js"),t("core-js/modules/es.array.concat.js");var a=t("buffer").Buffer,u=4,A=a.alloc(u);A.fill(0);var c=8;function h(r,s){if(r.length%u!==0){var l=r.length+(u-r.length%u);r=a.concat([r,A],l)}for(var d=[],p=s?r.readInt32BE:r.readInt32LE,g=0;g<r.length;g+=u)d.push(p.call(r,g));return d}function o(r,s,l){for(var d=a.alloc(s),p=l?d.writeInt32BE:d.writeInt32LE,g=0;g<r.length;g++)p.call(d,r[g],g*4,!0);return d}function n(r,s,l,d){a.isBuffer(r)||(r=a.from(r));var p=s(h(r,d),r.length*c);return o(p,l,d)}C.exports={hash:n}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(t,C,b){"use strict";var a=t("./helpers");function u(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function A(d,p){d[p>>5]|=128<<p%32,d[(p+64>>>9<<4)+14]=p;for(var g=1732584193,m=-271733879,v=-1732584194,_=271733878,O=0;O<d.length;O+=16){var F=g,T=m,S=v,I=_;g=h(g,m,v,_,d[O+0],7,-680876936),_=h(_,g,m,v,d[O+1],12,-389564586),v=h(v,_,g,m,d[O+2],17,606105819),m=h(m,v,_,g,d[O+3],22,-1044525330),g=h(g,m,v,_,d[O+4],7,-176418897),_=h(_,g,m,v,d[O+5],12,1200080426),v=h(v,_,g,m,d[O+6],17,-1473231341),m=h(m,v,_,g,d[O+7],22,-45705983),g=h(g,m,v,_,d[O+8],7,1770035416),_=h(_,g,m,v,d[O+9],12,-1958414417),v=h(v,_,g,m,d[O+10],17,-42063),m=h(m,v,_,g,d[O+11],22,-1990404162),g=h(g,m,v,_,d[O+12],7,1804603682),_=h(_,g,m,v,d[O+13],12,-40341101),v=h(v,_,g,m,d[O+14],17,-1502002290),m=h(m,v,_,g,d[O+15],22,1236535329),g=o(g,m,v,_,d[O+1],5,-165796510),_=o(_,g,m,v,d[O+6],9,-1069501632),v=o(v,_,g,m,d[O+11],14,643717713),m=o(m,v,_,g,d[O+0],20,-373897302),g=o(g,m,v,_,d[O+5],5,-701558691),_=o(_,g,m,v,d[O+10],9,38016083),v=o(v,_,g,m,d[O+15],14,-660478335),m=o(m,v,_,g,d[O+4],20,-405537848),g=o(g,m,v,_,d[O+9],5,568446438),_=o(_,g,m,v,d[O+14],9,-1019803690),v=o(v,_,g,m,d[O+3],14,-187363961),m=o(m,v,_,g,d[O+8],20,1163531501),g=o(g,m,v,_,d[O+13],5,-1444681467),_=o(_,g,m,v,d[O+2],9,-51403784),v=o(v,_,g,m,d[O+7],14,1735328473),m=o(m,v,_,g,d[O+12],20,-1926607734),g=n(g,m,v,_,d[O+5],4,-378558),_=n(_,g,m,v,d[O+8],11,-2022574463),v=n(v,_,g,m,d[O+11],16,1839030562),m=n(m,v,_,g,d[O+14],23,-35309556),g=n(g,m,v,_,d[O+1],4,-1530992060),_=n(_,g,m,v,d[O+4],11,1272893353),v=n(v,_,g,m,d[O+7],16,-155497632),m=n(m,v,_,g,d[O+10],23,-1094730640),g=n(g,m,v,_,d[O+13],4,681279174),_=n(_,g,m,v,d[O+0],11,-358537222),v=n(v,_,g,m,d[O+3],16,-722521979),m=n(m,v,_,g,d[O+6],23,76029189),g=n(g,m,v,_,d[O+9],4,-640364487),_=n(_,g,m,v,d[O+12],11,-421815835),v=n(v,_,g,m,d[O+15],16,530742520),m=n(m,v,_,g,d[O+2],23,-995338651),g=r(g,m,v,_,d[O+0],6,-198630844),_=r(_,g,m,v,d[O+7],10,1126891415),v=r(v,_,g,m,d[O+14],15,-1416354905),m=r(m,v,_,g,d[O+5],21,-57434055),g=r(g,m,v,_,d[O+12],6,1700485571),_=r(_,g,m,v,d[O+3],10,-1894986606),v=r(v,_,g,m,d[O+10],15,-1051523),m=r(m,v,_,g,d[O+1],21,-2054922799),g=r(g,m,v,_,d[O+8],6,1873313359),_=r(_,g,m,v,d[O+15],10,-30611744),v=r(v,_,g,m,d[O+6],15,-1560198380),m=r(m,v,_,g,d[O+13],21,1309151649),g=r(g,m,v,_,d[O+4],6,-145523070),_=r(_,g,m,v,d[O+11],10,-1120210379),v=r(v,_,g,m,d[O+2],15,718787259),m=r(m,v,_,g,d[O+9],21,-343485551),g=s(g,F),m=s(m,T),v=s(v,S),_=s(_,I)}return Array(g,m,v,_)}function c(d,p,g,m,v,_){return s(l(s(s(p,d),s(m,_)),v),g)}function h(d,p,g,m,v,_,O){return c(p&g|~p&m,d,p,v,_,O)}function o(d,p,g,m,v,_,O){return c(p&m|g&~m,d,p,v,_,O)}function n(d,p,g,m,v,_,O){return c(p^g^m,d,p,v,_,O)}function r(d,p,g,m,v,_,O){return c(g^(p|~m),d,p,v,_,O)}function s(d,p){var g=(d&65535)+(p&65535),m=(d>>16)+(p>>16)+(g>>16);return m<<16|g&65535}function l(d,p){return d<<p|d>>>32-p}C.exports=function(p){return a.hash(p,A,16)}},{"./helpers":462}],464:[function(t,C,b){"use strict";var a=t("./helpers");function u(n,r){n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var s=Array(80),l=1732584193,d=-271733879,p=-1732584194,g=271733878,m=-1009589776,v=0;v<n.length;v+=16){for(var _=l,O=d,F=p,T=g,S=m,I=0;I<80;I++){I<16?s[I]=n[v+I]:s[I]=o(s[I-3]^s[I-8]^s[I-14]^s[I-16],1);var E=h(h(o(l,5),A(I,d,p,g)),h(h(m,s[I]),c(I)));m=g,g=p,p=o(d,30),d=l,l=E}l=h(l,_),d=h(d,O),p=h(p,F),g=h(g,T),m=h(m,S)}return Array(l,d,p,g,m)}function A(n,r,s,l){return n<20?r&s|~r&l:n<40?r^s^l:n<60?r&s|r&l|s&l:r^s^l}function c(n){return n<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514}function h(n,r){var s=(n&65535)+(r&65535),l=(n>>16)+(r>>16)+(s>>16);return l<<16|s&65535}function o(n,r){return n<<r|n>>>32-r}C.exports=function(r){return a.hash(r,u,20,!0)}},{"./helpers":462}],465:[function(t,C,b){"use strict";C.exports=function(){return function(){}}},{}],466:[function(t,C,b){(function(a){(function(){"use strict";var u=t("@babel/runtime/helpers/interopRequireDefault"),A=u(t("@babel/runtime/helpers/typeof")),c=t("stream"),h=c.Stream,o=t("../lib/common/utils/isArray"),n=o.isArray;C.exports.string=function(l){return typeof l=="string"},C.exports.array=n,C.exports.buffer=a.isBuffer;function r(s){return s instanceof h}C.exports.writableStream=function(l){return r(l)&&typeof l._write=="function"&&(0,A.default)(l._writableState)==="object"}}).call(this)}).call(this,{isBuffer:t("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(t,C,b){"use strict";var a=t("immediate"),u=C.exports={};u.nextTick=a,u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function A(){}u.on=A,u.addListener=A,u.once=A,u.off=A,u.removeListener=A,u.removeAllListeners=A,u.emit=A,u.prependListener=A,u.prependOnceListener=A,u.listeners=function(c){return[]},u.binding=function(c){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(c){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{immediate:358}],468:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.search.js");var u=t("./lib/request"),A=t("./lib/response"),c=t("xtend"),h=t("builtin-status-codes"),o=t("url"),n=b;n.request=function(r,s){typeof r=="string"?r=o.parse(r):r=c(r);var l=a.location.protocol.search(/^https?:$/)===-1?"http:":"",d=r.protocol||l,p=r.hostname||r.host,g=r.port,m=r.path||"/";p&&p.indexOf(":")!==-1&&(p="["+p+"]"),r.url=(p?d+"//"+p:"")+(g?":"+g:"")+m,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var v=new u(r);return s&&v.on("response",s),v},n.get=function(s,l){var d=n.request(s,l);return d.end(),d},n.ClientRequest=u,n.IncomingMessage=A.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=h,n.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,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(t,C,b){(function(a){(function(){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.array-buffer.constructor.js"),t("core-js/modules/es.array-buffer.slice.js"),t("core-js/modules/es.array.slice.js"),b.fetch=n(a.fetch)&&n(a.ReadableStream),b.writableStream=n(a.WritableStream),b.abortController=n(a.AbortController),b.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),b.blobConstructor=!0}catch(r){}var u;function A(){if(u!==void 0)return u;if(a.XMLHttpRequest){u=new a.XMLHttpRequest;try{u.open("GET",a.XDomainRequest?"/":"https://example.com")}catch(r){u=null}}else u=null;return u}function c(r){var s=A();if(!s)return!1;try{return s.responseType=r,s.responseType===r}catch(l){}return!1}var h=typeof a.ArrayBuffer!="undefined",o=h&&n(a.ArrayBuffer.prototype.slice);b.arraybuffer=b.fetch||h&&c("arraybuffer"),b.msstream=!b.fetch&&o&&c("ms-stream"),b.mozchunkedarraybuffer=!b.fetch&&h&&c("moz-chunked-arraybuffer"),b.overrideMimeType=b.fetch||(A()?n(A().overrideMimeType):!1),b.vbArray=n(a.VBArray);function n(r){return typeof r=="function"}u=null}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(t,C,b){(function(a,u,A){(function(){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.regexp.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.array.map.js"),t("core-js/modules/es.function.name.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.split.js");var c=t("./capability"),h=t("inherits"),o=t("./response"),n=t("readable-stream"),r=t("to-arraybuffer"),s=o.IncomingMessage,l=o.readyStates;function d(v,_){return c.fetch&&_?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&v?"arraybuffer":c.vbArray&&v?"text:vbarray":"text"}var p=C.exports=function(v){var _=this;n.Writable.call(_),_._opts=v,_._body=[],_._headers={},v.auth&&_.setHeader("Authorization","Basic "+new A(v.auth).toString("base64")),Object.keys(v.headers).forEach(function(T){_.setHeader(T,v.headers[T])});var O,F=!0;if(v.mode==="disable-fetch"||"requestTimeout"in v&&!c.abortController)F=!1,O=!0;else if(v.mode==="prefer-streaming")O=!1;else if(v.mode==="allow-wrong-content-type")O=!c.overrideMimeType;else if(!v.mode||v.mode==="default"||v.mode==="prefer-fast")O=!0;else throw new Error("Invalid value for opts.mode");_._mode=d(O,F),_._fetchTimer=null,_.on("finish",function(){_._onFinish()})};h(p,n.Writable),p.prototype.setHeader=function(v,_){var O=this,F=v.toLowerCase();m.indexOf(F)===-1&&(O._headers[F]={name:v,value:_})},p.prototype.getHeader=function(v){var _=this._headers[v.toLowerCase()];return _?_.value:null},p.prototype.removeHeader=function(v){var _=this;delete _._headers[v.toLowerCase()]},p.prototype._onFinish=function(){var v=this;if(!v._destroyed){var _=v._opts,O=v._headers,F=null;_.method!=="GET"&&_.method!=="HEAD"&&(c.arraybuffer?F=r(A.concat(v._body)):c.blobConstructor?F=new u.Blob(v._body.map(function(N){return r(N)}),{type:(O["content-type"]||{}).value||""}):F=A.concat(v._body).toString());var T=[];if(Object.keys(O).forEach(function(N){var V=O[N].name,H=O[N].value;Array.isArray(H)?H.forEach(function(X){T.push([V,X])}):T.push([V,H])}),v._mode==="fetch"){var S=null,I=null;if(c.abortController){var E=new AbortController;S=E.signal,v._fetchAbortController=E,"requestTimeout"in _&&_.requestTimeout!==0&&(v._fetchTimer=u.setTimeout(function(){v.emit("requestTimeout"),v._fetchAbortController&&v._fetchAbortController.abort()},_.requestTimeout))}u.fetch(v._opts.url,{method:v._opts.method,headers:T,body:F||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:S}).then(function(N){v._fetchResponse=N,v._connect()},function(N){u.clearTimeout(v._fetchTimer),v._destroyed||v.emit("error",N)})}else{var M=v._xhr=new u.XMLHttpRequest;try{M.open(v._opts.method,v._opts.url,!0)}catch(N){a.nextTick(function(){v.emit("error",N)});return}"responseType"in M&&(M.responseType=v._mode.split(":")[0]),"withCredentials"in M&&(M.withCredentials=!!_.withCredentials),v._mode==="text"&&"overrideMimeType"in M&&M.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(M.timeout=_.requestTimeout,M.ontimeout=function(){v.emit("requestTimeout")}),T.forEach(function(N){M.setRequestHeader(N[0],N[1])}),v._response=null,M.onreadystatechange=function(){switch(M.readyState){case l.LOADING:case l.DONE:v._onXHRProgress();break}},v._mode==="moz-chunked-arraybuffer"&&(M.onprogress=function(){v._onXHRProgress()}),M.onerror=function(){v._destroyed||v.emit("error",new Error("XHR error"))};try{M.send(F)}catch(N){a.nextTick(function(){v.emit("error",N)});return}}}};function g(v){try{var _=v.status;return _!==null&&_!==0}catch(O){return!1}}p.prototype._onXHRProgress=function(){var v=this;!g(v._xhr)||v._destroyed||(v._response||v._connect(),v._response._onXHRProgress())},p.prototype._connect=function(){var v=this;v._destroyed||(v._response=new s(v._xhr,v._fetchResponse,v._mode,v._fetchTimer),v._response.on("error",function(_){v.emit("error",_)}),v.emit("response",v._response))},p.prototype._write=function(v,_,O){var F=this;F._body.push(v),O()},p.prototype.abort=p.prototype.destroy=function(){var v=this;v._destroyed=!0,u.clearTimeout(v._fetchTimer),v._response&&(v._response._destroyed=!0),v._xhr?v._xhr.abort():v._fetchAbortController&&v._fetchAbortController.abort()},p.prototype.end=function(v,_,O){var F=this;typeof v=="function"&&(O=v,v=void 0),n.Writable.prototype.end.call(F,v,_,O)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var m=["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,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(t,C,b){(function(a,u,A){(function(){"use strict";t("core-js/modules/es.object.to-string.js"),t("core-js/modules/web.dom-collections.for-each.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.split.js"),t("core-js/modules/es.string.match.js"),t("core-js/modules/es.array.iterator.js"),t("core-js/modules/es.array-buffer.slice.js"),t("core-js/modules/es.typed-array.uint8-array.js"),t("core-js/modules/es.typed-array.copy-within.js"),t("core-js/modules/es.typed-array.every.js"),t("core-js/modules/es.typed-array.fill.js"),t("core-js/modules/es.typed-array.filter.js"),t("core-js/modules/es.typed-array.find.js"),t("core-js/modules/es.typed-array.find-index.js"),t("core-js/modules/es.typed-array.for-each.js"),t("core-js/modules/es.typed-array.includes.js"),t("core-js/modules/es.typed-array.index-of.js"),t("core-js/modules/es.typed-array.iterator.js"),t("core-js/modules/es.typed-array.join.js"),t("core-js/modules/es.typed-array.last-index-of.js"),t("core-js/modules/es.typed-array.map.js"),t("core-js/modules/es.typed-array.reduce.js"),t("core-js/modules/es.typed-array.reduce-right.js"),t("core-js/modules/es.typed-array.reverse.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.slice.js"),t("core-js/modules/es.typed-array.some.js"),t("core-js/modules/es.typed-array.sort.js"),t("core-js/modules/es.typed-array.subarray.js"),t("core-js/modules/es.typed-array.to-locale-string.js"),t("core-js/modules/es.typed-array.to-string.js"),t("core-js/modules/es.array.slice.js");var c=t("./capability"),h=t("inherits"),o=t("readable-stream"),n=b.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=b.IncomingMessage=function(s,l,d,p){var g=this;if(o.Readable.call(g),g._mode=d,g.headers={},g.rawHeaders=[],g.trailers={},g.rawTrailers=[],g.on("end",function(){a.nextTick(function(){g.emit("close")})}),d==="fetch"){var m=function S(){_.read().then(function(I){if(!g._destroyed){if(I.done){u.clearTimeout(p),g.push(null);return}g.push(new A(I.value)),S()}}).catch(function(I){u.clearTimeout(p),g._destroyed||g.emit("error",I)})};if(g._fetchResponse=l,g.url=l.url,g.statusCode=l.status,g.statusMessage=l.statusText,l.headers.forEach(function(S,I){g.headers[I.toLowerCase()]=S,g.rawHeaders.push(I,S)}),c.writableStream){var v=new WritableStream({write:function(I){return new Promise(function(E,M){g._destroyed?M():g.push(new A(I))?E():g._resumeFetch=E})},close:function(){u.clearTimeout(p),g._destroyed||g.push(null)},abort:function(I){g._destroyed||g.emit("error",I)}});try{l.body.pipeTo(v).catch(function(S){u.clearTimeout(p),g._destroyed||g.emit("error",S)});return}catch(S){}}var _=l.body.getReader();m()}else{g._xhr=s,g._pos=0,g.url=s.responseURL,g.statusCode=s.status,g.statusMessage=s.statusText;var O=s.getAllResponseHeaders().split(/\r?\n/);if(O.forEach(function(S){var I=S.match(/^([^:]+):\s*(.*)/);if(I){var E=I[1].toLowerCase();E==="set-cookie"?(g.headers[E]===void 0&&(g.headers[E]=[]),g.headers[E].push(I[2])):g.headers[E]!==void 0?g.headers[E]+=", "+I[2]:g.headers[E]=I[2],g.rawHeaders.push(I[1],I[2])}}),g._charset="x-user-defined",!c.overrideMimeType){var F=g.rawHeaders["mime-type"];if(F){var T=F.match(/;\s*charset=([^;])(;|$)/);T&&(g._charset=T[1].toLowerCase())}g._charset||(g._charset="utf-8")}}};h(r,o.Readable),r.prototype._read=function(){var s=this,l=s._resumeFetch;l&&(s._resumeFetch=null,l())},r.prototype._onXHRProgress=function(){var s=this,l=s._xhr,d=null;switch(s._mode){case"text:vbarray":if(l.readyState!==n.DONE)break;try{d=new u.VBArray(l.responseBody).toArray()}catch(_){}if(d!==null){s.push(new A(d));break}case"text":try{d=l.responseText}catch(_){s._mode="text:vbarray";break}if(d.length>s._pos){var p=d.substr(s._pos);if(s._charset==="x-user-defined"){for(var g=new A(p.length),m=0;m<p.length;m++)g[m]=p.charCodeAt(m)&255;s.push(g)}else s.push(p,s._charset);s._pos=d.length}break;case"arraybuffer":if(l.readyState!==n.DONE||!l.response)break;d=l.response,s.push(new A(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=l.response,l.readyState!==n.LOADING||!d)break;s.push(new A(new Uint8Array(d)));break;case"ms-stream":if(d=l.response,l.readyState!==n.LOADING)break;var v=new u.MSStreamReader;v.onprogress=function(){v.result.byteLength>s._pos&&(s.push(new A(new Uint8Array(v.result.slice(s._pos)))),s._pos=v.result.byteLength)},v.onload=function(){s.push(null)},v.readAsArrayBuffer(d);break}s._xhr.readyState===n.DONE&&s._mode!=="ms-stream"&&s.push(null)}}).call(this)}).call(this,t("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/helpers/typeof"));t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.search.js"),t("core-js/modules/es.array.concat.js"),t("core-js/modules/es.string.split.js"),t("core-js/modules/es.string.replace.js"),t("core-js/modules/es.array.join.js"),t("core-js/modules/es.string.trim.js"),t("core-js/modules/es.string.match.js"),t("core-js/modules/es.array.slice.js"),t("core-js/modules/es.object.keys.js"),t("core-js/modules/es.array.splice.js");var A=t("punycode"),c=t("./util");b.parse=I,b.resolve=M,b.resolveObject=N,b.format=E,b.Url=h;function h(){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}var o=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],l=["{","}","|","\\","^","`"].concat(s),d=["'"].concat(l),p=["%","/","?",";","#"].concat(d),g=["/","?","#"],m=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},F={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=t("querystring");function I(V,H,X){if(V&&c.isObject(V)&&V instanceof h)return V;var G=new h;return G.parse(V,H,X),G}h.prototype.parse=function(V,H,X){if(!c.isString(V))throw new TypeError("Parameter 'url' must be a string, not "+(0,u.default)(V));var G=V.indexOf("?"),ee=G!==-1&&G<V.indexOf("#")?"?":"#",Z=V.split(ee),Ae=/\\/g;Z[0]=Z[0].replace(Ae,"/"),V=Z.join(ee);var U=V;if(U=U.trim(),!X&&V.split("#").length===1){var W=r.exec(U);if(W)return this.path=U,this.href=U,this.pathname=W[1],W[2]?(this.search=W[2],H?this.query=S.parse(this.search.substr(1)):this.query=this.search.substr(1)):H&&(this.search="",this.query={}),this}var le=o.exec(U);if(le){le=le[0];var he=le.toLowerCase();this.protocol=he,U=U.substr(le.length)}if(X||le||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var ue=U.substr(0,2)==="//";ue&&!(le&&F[le])&&(U=U.substr(2),this.slashes=!0)}if(!F[le]&&(ue||le&&!T[le])){for(var pe=-1,fe=0;fe<g.length;fe++){var ce=U.indexOf(g[fe]);ce!==-1&&(pe===-1||ce<pe)&&(pe=ce)}var be,Ce;pe===-1?Ce=U.lastIndexOf("@"):Ce=U.lastIndexOf("@",pe),Ce!==-1&&(be=U.slice(0,Ce),U=U.slice(Ce+1),this.auth=decodeURIComponent(be)),pe=-1;for(var fe=0;fe<p.length;fe++){var ce=U.indexOf(p[fe]);ce!==-1&&(pe===-1||ce<pe)&&(pe=ce)}pe===-1&&(pe=U.length),this.host=U.slice(0,pe),U=U.slice(pe),this.parseHost(),this.hostname=this.hostname||"";var xe=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!xe)for(var Se=this.hostname.split("."),fe=0,me=Se.length;fe<me;fe++){var te=Se[fe];if(te&&!te.match(v)){for(var $="",B=0,k=te.length;B<k;B++)te.charCodeAt(B)>127?$+="x":$+=te[B];if(!$.match(v)){var q=Se.slice(0,fe),ne=Se.slice(fe+1),Q=te.match(_);Q&&(q.push(Q[1]),ne.unshift(Q[2])),ne.length&&(U="/"+ne.join(".")+U),this.hostname=q.join(".");break}}}this.hostname.length>m?this.hostname="":this.hostname=this.hostname.toLowerCase(),xe||(this.hostname=A.toASCII(this.hostname));var z=this.port?":"+this.port:"",Y=this.hostname||"";this.host=Y+z,this.href+=this.host,xe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!O[he])for(var fe=0,me=d.length;fe<me;fe++){var re=d[fe];if(U.indexOf(re)!==-1){var ge=encodeURIComponent(re);ge===re&&(ge=escape(re)),U=U.split(re).join(ge)}}var Be=U.indexOf("#");Be!==-1&&(this.hash=U.substr(Be),U=U.slice(0,Be));var Oe=U.indexOf("?");if(Oe!==-1?(this.search=U.substr(Oe),this.query=U.substr(Oe+1),H&&(this.query=S.parse(this.query)),U=U.slice(0,Oe)):H&&(this.search="",this.query={}),U&&(this.pathname=U),T[he]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",Le=this.search||"";this.path=z+Le}return this.href=this.format(),this};function E(V){return c.isString(V)&&(V=I(V)),V instanceof h?V.format():h.prototype.format.call(V)}h.prototype.format=function(){var V=this.auth||"";V&&(V=encodeURIComponent(V),V=V.replace(/%3A/i,":"),V+="@");var H=this.protocol||"",X=this.pathname||"",G=this.hash||"",ee=!1,Z="";this.host?ee=V+this.host:this.hostname&&(ee=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ee+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(Z=S.stringify(this.query));var Ae=this.search||Z&&"?"+Z||"";return H&&H.substr(-1)!==":"&&(H+=":"),this.slashes||(!H||T[H])&&ee!==!1?(ee="//"+(ee||""),X&&X.charAt(0)!=="/"&&(X="/"+X)):ee||(ee=""),G&&G.charAt(0)!=="#"&&(G="#"+G),Ae&&Ae.charAt(0)!=="?"&&(Ae="?"+Ae),X=X.replace(/[?#]/g,function(U){return encodeURIComponent(U)}),Ae=Ae.replace("#","%23"),H+ee+X+Ae+G};function M(V,H){return I(V,!1,!0).resolve(H)}h.prototype.resolve=function(V){return this.resolveObject(I(V,!1,!0)).format()};function N(V,H){return V?I(V,!1,!0).resolveObject(H):H}h.prototype.resolveObject=function(V){if(c.isString(V)){var H=new h;H.parse(V,!1,!0),V=H}for(var X=new h,G=Object.keys(this),ee=0;ee<G.length;ee++){var Z=G[ee];X[Z]=this[Z]}if(X.hash=V.hash,V.href==="")return X.href=X.format(),X;if(V.slashes&&!V.protocol){for(var Ae=Object.keys(V),U=0;U<Ae.length;U++){var W=Ae[U];W!=="protocol"&&(X[W]=V[W])}return T[X.protocol]&&X.hostname&&!X.pathname&&(X.path=X.pathname="/"),X.href=X.format(),X}if(V.protocol&&V.protocol!==X.protocol){if(!T[V.protocol]){for(var le=Object.keys(V),he=0;he<le.length;he++){var ue=le[he];X[ue]=V[ue]}return X.href=X.format(),X}if(X.protocol=V.protocol,!V.host&&!F[V.protocol]){for(var me=(V.pathname||"").split("/");me.length&&!(V.host=me.shift()););V.host||(V.host=""),V.hostname||(V.hostname=""),me[0]!==""&&me.unshift(""),me.length<2&&me.unshift(""),X.pathname=me.join("/")}else X.pathname=V.pathname;if(X.search=V.search,X.query=V.query,X.host=V.host||"",X.auth=V.auth,X.hostname=V.hostname||V.host,X.port=V.port,X.pathname||X.search){var pe=X.pathname||"",fe=X.search||"";X.path=pe+fe}return X.slashes=X.slashes||V.slashes,X.href=X.format(),X}var ce=X.pathname&&X.pathname.charAt(0)==="/",be=V.host||V.pathname&&V.pathname.charAt(0)==="/",Ce=be||ce||X.host&&V.pathname,xe=Ce,Se=X.pathname&&X.pathname.split("/")||[],me=V.pathname&&V.pathname.split("/")||[],te=X.protocol&&!T[X.protocol];if(te&&(X.hostname="",X.port=null,X.host&&(Se[0]===""?Se[0]=X.host:Se.unshift(X.host)),X.host="",V.protocol&&(V.hostname=null,V.port=null,V.host&&(me[0]===""?me[0]=V.host:me.unshift(V.host)),V.host=null),Ce=Ce&&(me[0]===""||Se[0]==="")),be)X.host=V.host||V.host===""?V.host:X.host,X.hostname=V.hostname||V.hostname===""?V.hostname:X.hostname,X.search=V.search,X.query=V.query,Se=me;else if(me.length)Se||(Se=[]),Se.pop(),Se=Se.concat(me),X.search=V.search,X.query=V.query;else if(!c.isNullOrUndefined(V.search)){if(te){X.hostname=X.host=Se.shift();var $=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;$&&(X.auth=$.shift(),X.host=X.hostname=$.shift())}return X.search=V.search,X.query=V.query,(!c.isNull(X.pathname)||!c.isNull(X.search))&&(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.href=X.format(),X}if(!Se.length)return X.pathname=null,X.search?X.path="/"+X.search:X.path=null,X.href=X.format(),X;for(var B=Se.slice(-1)[0],k=(X.host||V.host||Se.length>1)&&(B==="."||B==="..")||B==="",q=0,ne=Se.length;ne>=0;ne--)B=Se[ne],B==="."?Se.splice(ne,1):B===".."?(Se.splice(ne,1),q++):q&&(Se.splice(ne,1),q--);if(!Ce&&!xe)for(;q--;q)Se.unshift("..");Ce&&Se[0]!==""&&(!Se[0]||Se[0].charAt(0)!=="/")&&Se.unshift(""),k&&Se.join("/").substr(-1)!=="/"&&Se.push("");var Q=Se[0]===""||Se[0]&&Se[0].charAt(0)==="/";if(te){X.hostname=X.host=Q?"":Se.length?Se.shift():"";var $=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;$&&(X.auth=$.shift(),X.host=X.hostname=$.shift())}return Ce=Ce||X.host&&Se.length,Ce&&!Q&&Se.unshift(""),Se.length?X.pathname=Se.join("/"):(X.pathname=null,X.path=null),(!c.isNull(X.pathname)||!c.isNull(X.search))&&(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.auth=V.auth||X.auth,X.slashes=X.slashes||V.slashes,X.href=X.format(),X},h.prototype.parseHost=function(){var V=this.host,H=n.exec(V);H&&(H=H[0],H!==":"&&(this.port=H.substr(1)),V=V.substr(0,V.length-H.length)),V&&(this.hostname=V)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(t,C,b){"use strict";var a=t("@babel/runtime/helpers/interopRequireDefault"),u=a(t("@babel/runtime/helpers/typeof"));C.exports={isString:function(c){return typeof c=="string"},isObject:function(c){return(0,u.default)(c)==="object"&&c!==null},isNull:function(c){return c===null},isNullOrUndefined:function(c){return c==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(t,C,b){"use strict";t("core-js/modules/es.number.constructor.js"),b.encodeURIComponent=function(a){try{return encodeURIComponent(a)}catch(u){return a}},b.escape=t("escape-html"),b.timestamp=function(u){if(u){var A=u;return typeof A=="string"&&(A=Number(A)),String(u).length===10&&(A*=1e3),new Date(A)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(t,C,b){(function(a,u){(function(){"use strict";var A=t("@babel/runtime/helpers/interopRequireDefault"),c=A(t("@babel/runtime/helpers/typeof"));t("core-js/modules/es.string.trim.js"),t("core-js/modules/es.regexp.exec.js"),t("core-js/modules/es.string.split.js"),t("core-js/modules/es.object.to-string.js"),t("core-js/modules/es.promise.js"),t("core-js/modules/es.function.name.js"),t("core-js/modules/es.array.concat.js");var h=t("util"),o=t("url"),n=t("http"),r=t("https"),s=t("debug")("urllib"),l=t("humanize-ms"),d=0,p=Math.pow(2,31)-10,g=/^https?:\/\//i;function m(F,T){return F===void 0?T:F}function v(F){return F?F.split(";")[0].trim().toLowerCase():""}function _(F,T){return function(S,I,E){if(S)return T(S);F({data:I,status:E.statusCode,headers:E.headers,res:E})}}b.TIMEOUTS=[l("300s"),l("300s")];var O=["json","text"];b.request=function(T,S,I){return arguments.length===2&&typeof S=="function"&&(I=S,S=null),typeof I=="function"?b.requestWithCallback(T,S,I):new Promise(function(E,M){b.requestWithCallback(T,S,_(E,M))})},b.requestWithCallback=function(T,S,I){if(!T||typeof T!="string"&&(0,c.default)(T)!=="object"){var E=h.format("expect request url to be a string or a http request options, but got %j",T);throw new Error(E)}arguments.length===2&&typeof S=="function"&&(I=S,S=null),S=S||{},d>=p&&(d=0);var M=++d;S.requestUrls=S.requestUrls||[];var N={requestId:M,url:T,args:S,ctx:S.ctx};S.emitter&&S.emitter.emit("request",N),S.timeout=S.timeout||b.TIMEOUTS,S.maxRedirects=S.maxRedirects||10,S.streaming=S.streaming||S.customResponse;var V=Date.now(),H;typeof T=="string"?(g.test(T)||(T="https://"+T),H=o.parse(T)):H=T;var X=(S.type||S.method||H.method||"GET").toUpperCase(),G=H.port||80,ee=n,Z=m(S.agent,b.agent),Ae=S.fixJSONCtlChars;H.protocol==="https:"&&(ee=r,Z=m(S.httpsAgent,b.httpsAgent),H.port||(G=443));var U={host:H.hostname||H.host||"localhost",path:H.path||"/",method:X,port:G,agent:Z,headers:S.headers||{},lookup:S.lookup};Array.isArray(S.timeout)?U.requestTimeout=S.timeout[S.timeout.length-1]:typeof S.timeout!="undefined"&&(U.requestTimeout=S.timeout);var W=S.auth||H.auth;W&&(U.auth=W);var le=S.content||S.data,he=X==="GET"||X==="HEAD"||S.dataAsQueryString;if(!S.content&&le&&!(typeof le=="string"||u.isBuffer(le)))if(he)le=S.nestedQuerystring?qs.stringify(le):querystring.stringify(le);else{var ue=U.headers["Content-Type"]||U.headers["content-type"];ue||(S.contentType==="json"?ue="application/json":ue="application/x-www-form-urlencoded",U.headers["Content-Type"]=ue),v(ue)==="application/json"?le=JSON.stringify(le):le=S.nestedQuerystring?qs.stringify(le):querystring.stringify(le)}he&&le&&(U.path+=(H.query?"&":"?")+le,le=null);var pe=0;if(le){var fe=le.length;u.isBuffer(le)||(fe=u.byteLength(le)),pe=U.headers["Content-Length"]=fe}S.dataType==="json"&&(U.headers.Accept="application/json"),typeof S.beforeRequest=="function"&&S.beforeRequest(U);var ce=null,be=null,Ce=null,xe=!1,Se=!1,me=0,te=-1,$=!1,B="",k="",q=null;S.timing&&(q={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function ne(){ce&&(clearTimeout(ce),ce=null)}function Q(){be&&(clearTimeout(be),be=null)}function z(Ue,Ye,ze){if(Q(),!I){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),M,a.pid,U.method,T),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),M,a.pid,Ue.name,Ue.message,Ue.stack);return}var Xe=I;I=null;var qe={};ze&&(te=ze.statusCode,qe=ze.headers);var Qe=Date.now()-V;q&&(q.contentDownload=Qe),s("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Qe,me,te,U.method,U.host,U.path,Se,q);var He={status:te,statusCode:te,headers:qe,size:me,aborted:$,rt:Qe,keepAliveSocket:Se,data:Ye,requestUrls:S.requestUrls,timing:q,remoteAddress:B,remotePort:k};if(Ue){var Ge="";Z&&typeof Z.getCurrentStatus=="function"&&(Ge=", agent status: "+JSON.stringify(Z.getCurrentStatus())),Ue.message+=", "+U.method+" "+T+" "+te+" (connected: "+xe+", keepalive socket: "+Se+Ge+`)
|
|
|
headers: `+JSON.stringify(qe),Ue.data=Ye,Ue.path=U.path,Ue.status=te,Ue.headers=qe,Ue.res=He}Xe(Ue,Ye,S.streaming?ze:He),S.emitter&&(N.url=T,N.socket=Ke&&Ke.connection,N.options=U,N.size=pe,S.emitter.emit("response",{requestId:M,error:Ue,ctx:S.ctx,req:N,res:He}))}function Y(Ue){var Ye=null;if(S.followRedirect&&statuses.redirect[Ue.statusCode]){S._followRedirectCount=(S._followRedirectCount||0)+1;var ze=Ue.headers.location;if(!ze)Ye=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),Ye.name="FollowRedirectError";else if(S._followRedirectCount>S.maxRedirects)Ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+T),Ye.name="MaxRedirectError";else{var Xe=S.formatRedirectUrl?S.formatRedirectUrl(T,ze):o.resolve(T,ze);s("Request#%d %s: `redirected` from %s to %s",M,U.path,T,Xe),Q(),S.headers&&S.headers.Host&&g.test(ze)&&(S.headers.Host=null);var qe=I;return I=null,b.requestWithCallback(Xe,S,qe),{redirect:!0,error:null}}}return{redirect:!1,error:Ye}}S.gzip&&!U.headers["Accept-Encoding"]&&!U.headers["accept-encoding"]&&(U.headers["Accept-Encoding"]="gzip");function re(Ue,Ye,ze){var Xe=Ue.headers["content-encoding"];return ze(null,Ye,Xe)}var ge=S.writeStream;s("Request#%d %s %s with headers %j, options.path: %s",M,X,T,U.headers,U.path),S.requestUrls.push(T);function Be(Ue){if(q&&(q.waiting=Date.now()-V),s("Request#%d %s `req response` event emit: status %d, headers: %j",M,T,Ue.statusCode,Ue.headers),S.streaming){var Ye=Y(Ue);if(Ye.redirect){Ue.resume();return}return Ye.error?(Ue.resume(),z(Ye.error,null,Ue)):z(null,null,Ue)}if(Ue.on("close",function(){s("Request#%d %s: `res close` event emit, total size %d",M,T,me)}),Ue.on("error",function(){s("Request#%d %s: `res error` event emit, total size %d",M,T,me)}),Ue.on("aborted",function(){$=!0,s("Request#%d %s: `res aborted` event emit, total size %d",M,T,me)}),ge){var ze=Y(Ue);if(ze.redirect){Ue.resume();return}return ze.error?(Ue.resume(),ge.end(),z(ze.error,null,Ue)):(S.consumeWriteStream===!1?Ue.on("end",z.bind(null,null,null,Ue)):ge.on("close",function(){s("Request#%d %s: writeStream close event emitted",M,T),z(Ce||null,null,Ue)}),Ue.pipe(ge))}var Xe=[];Ue.on("data",function(qe){s("Request#%d %s: `res data` event emit, size %d",M,T,qe.length),me+=qe.length,Xe.push(qe)}),Ue.on("end",function(){var qe=u.concat(Xe,me);if(s("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",M,T,me,Ue._dumped),Ce)return z(Ce,qe,Ue);var Qe=Y(Ue);if(Qe.error)return z(Qe.error,qe,Ue);Qe.redirect||re(Ue,qe,function(He,Ge,nt){if(He)return z(He,qe,Ue);if(!nt&&O.indexOf(S.dataType)>=0){try{Ge=decodeBodyByCharset(Ge,Ue)}catch(Tt){return s("decodeBodyByCharset error: %s",Tt),z(null,Ge,Ue)}if(S.dataType==="json")if(me===0)Ge=null;else{var st=parseJSON(Ge,Ae);st.error?He=st.error:Ge=st.data}}$&&s("Request#%d %s: Remote socket was terminated before `response.end()` was called",M,T),z(He,Ge,Ue)})})}var Oe,Le;Array.isArray(S.timeout)?(Oe=l(S.timeout[0]),Le=l(S.timeout[1])):Oe=Le=l(S.timeout),s("ConnectTimeout: %d, ResponseTimeout: %d",Oe,Le);function Pe(){s("Connect timer ticking, timeout: %d",Oe),ce=setTimeout(function(){ce=null,te===-1&&(te=-2);var Ue="Connect timeout for "+Oe+"ms",Ye="ConnectionTimeoutError";Ke.socket||(Ye="SocketAssignTimeoutError",Ue+=", working sockets is full"),Ce=new Error(Ue),Ce.name=Ye,Ce.requestId=M,s("ConnectTimeout: Request#%d %s %s: %s, connected: %s",M,T,Ce.name,Ue,xe),Ne()},Oe)}function $e(){s("Response timer ticking, timeout: %d",Le),be=setTimeout(function(){be=null;var Ue="Response timeout for "+Le+"ms",Ye="ResponseTimeoutError";Ce=new Error(Ue),Ce.name=Ye,Ce.requestId=M,s("ResponseTimeout: Request#%d %s %s: %s, connected: %s",M,T,Ce.name,Ue,xe),Ne()},Le)}var Ke;U.mode=S.mode?S.mode:"";try{Ke=ee.request(U,Be)}catch(Ue){return z(Ue)}typeof window=="undefined"?Pe():Ke.on("requestTimeout",function(){te===-1&&(te=-2);var Ue="Connect timeout for "+Oe+"ms",Ye="ConnectionTimeoutError";Ce=new Error(Ue),Ce.name=Ye,Ce.requestId=M,Ne()});function Ne(){s("Request#%d %s abort, connected: %s",M,T,xe),Ke.socket||(Ce.noSocket=!0,z(Ce)),Ke.abort()}return q&&Ke.on("finish",function(){q.requestSent=Date.now()-V}),Ke.once("socket",function(Ue){q&&(q.queuing=Date.now()-V);var Ye=Ue.readyState;if(Ye==="opening"){Ue.once("lookup",function(ze,Xe,qe){s("Request#%d %s lookup: %s, %s, %s",M,T,ze,Xe,qe),q&&(q.dnslookup=Date.now()-V),Xe&&(B=Xe)}),Ue.once("connect",function(){q&&(q.connected=Date.now()-V),ne(),$e(),s("Request#%d %s new socket connected",M,T),xe=!0,B||(B=Ue.remoteAddress),k=Ue.remotePort});return}s("Request#%d %s reuse socket connected, readyState: %s",M,T,Ye),xe=!0,Se=!0,B||(B=Ue.remoteAddress),k=Ue.remotePort,ne(),$e()}),Ke.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=xe?"ResponseError":"RequestError"),Ue.message+=' (req "error")',s("Request#%d %s `req error` event emit, %s: %s",M,T,Ue.name,Ue.message),z(Ce||Ue)}),ge&&ge.once("error",function(Ue){Ue.message+=' (writeStream "error")',Ce=Ue,s("Request#%d %s `writeStream error` event emit, %s: %s",M,T,Ue.name,Ue.message),Ne()}),S.stream?(S.stream.pipe(Ke),S.stream.once("error",function(Ue){Ue.message+=' (stream "error")',Ce=Ue,s("Request#%d %s `readStream error` event emit, %s: %s",M,T,Ue.name,Ue.message),Ne()})):Ke.end(le),Ke.requestId=M,Ke}}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},93725:function(rt,ke,J){"use strict";J.d(ke,{Z:function(){return E}});var oe=J(59301),ie=J(96512),t=J(92310),C=J.n(t),b=J(18929),a=J(2738),u=J(48755),A=J(37639),c=J(15565),h=J(54500),o=J(7939),n=J(61670),r=J(9017),s=J(85981),l=J(69106),d=J(16931);const p=M=>{const{componentCls:N,iconCls:V,antCls:H,zIndexPopup:X,colorText:G,colorWarning:ee,marginXXS:Z,marginXS:Ae,fontSize:U,fontWeightStrong:W,colorTextHeading:le}=M;return{[N]:{zIndex:X,[`&${H}-popover`]:{fontSize:U},[`${N}-message`]:{marginBottom:Ae,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${N}-message-icon ${V}`]:{color:ee,fontSize:U,lineHeight:1,marginInlineEnd:Ae},[`${N}-title`]:{fontWeight:W,color:le,"&:only-child":{fontWeight:"normal"}},[`${N}-description`]:{marginTop:Z,color:G}},[`${N}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Ae}}}}},g=M=>{const{zIndexPopupBase:N}=M;return{zIndexPopup:N+60}};var m=(0,d.I$)("Popconfirm",M=>p(M),g,{resetStyle:!1}),v=function(M,N){var V={};for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&N.indexOf(H)<0&&(V[H]=M[H]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,H=Object.getOwnPropertySymbols(M);X<H.length;X++)N.indexOf(H[X])<0&&Object.prototype.propertyIsEnumerable.call(M,H[X])&&(V[H[X]]=M[H[X]]);return V};const _=M=>{const{prefixCls:N,okButtonProps:V,cancelButtonProps:H,title:X,description:G,cancelText:ee,okText:Z,okType:Ae="primary",icon:U=oe.createElement(ie.Z,null),showCancel:W=!0,close:le,onConfirm:he,onCancel:ue,onPopupClick:pe}=M,{getPrefixCls:fe}=oe.useContext(u.E_),[ce]=(0,r.Z)("Popconfirm",s.Z.Popconfirm),be=(0,h.Z)(X),Ce=(0,h.Z)(G);return oe.createElement("div",{className:`${N}-inner-content`,onClick:pe},oe.createElement("div",{className:`${N}-message`},U&&oe.createElement("span",{className:`${N}-message-icon`},U),oe.createElement("div",{className:`${N}-message-text`},be&&oe.createElement("div",{className:`${N}-title`},be),Ce&&oe.createElement("div",{className:`${N}-description`},Ce))),oe.createElement("div",{className:`${N}-buttons`},W&&oe.createElement(o.ZP,Object.assign({onClick:ue,size:"small"},H),ee||(ce==null?void 0:ce.cancelText)),oe.createElement(c.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,n.nx)(Ae)),V),actionFn:he,close:le,prefixCls:fe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Z||(ce==null?void 0:ce.okText))))};var F=M=>{const{prefixCls:N,placement:V,className:H,style:X}=M,G=v(M,["prefixCls","placement","className","style"]),{getPrefixCls:ee}=oe.useContext(u.E_),Z=ee("popconfirm",N),[Ae]=m(Z);return Ae(oe.createElement(l.ZP,{placement:V,className:C()(Z,H),style:X,content:oe.createElement(_,Object.assign({prefixCls:Z},G))}))},T=function(M,N){var V={};for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&N.indexOf(H)<0&&(V[H]=M[H]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,H=Object.getOwnPropertySymbols(M);X<H.length;X++)N.indexOf(H[X])<0&&Object.prototype.propertyIsEnumerable.call(M,H[X])&&(V[H[X]]=M[H[X]]);return V};const I=oe.forwardRef((M,N)=>{var V,H;const{prefixCls:X,placement:G="top",trigger:ee="click",okType:Z="primary",icon:Ae=oe.createElement(ie.Z,null),children:U,overlayClassName:W,onOpenChange:le,onVisibleChange:he,overlayStyle:ue,styles:pe,classNames:fe}=M,ce=T(M,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:be,className:Ce,style:xe,classNames:Se,styles:me}=(0,u.dj)("popconfirm"),[te,$]=(0,b.Z)(!1,{value:(V=M.open)!==null&&V!==void 0?V:M.visible,defaultValue:(H=M.defaultOpen)!==null&&H!==void 0?H:M.defaultVisible}),B=(Be,Oe)=>{$(Be,!0),he==null||he(Be),le==null||le(Be,Oe)},k=Be=>{B(!1,Be)},q=Be=>{var Oe;return(Oe=M.onConfirm)===null||Oe===void 0?void 0:Oe.call(void 0,Be)},ne=Be=>{var Oe;B(!1,Be),(Oe=M.onCancel)===null||Oe===void 0||Oe.call(void 0,Be)},Q=(Be,Oe)=>{const{disabled:Le=!1}=M;Le||B(Be,Oe)},z=be("popconfirm",X),Y=C()(z,Ce,W,Se.root,fe==null?void 0:fe.root),re=C()(Se.body,fe==null?void 0:fe.body),[ge]=m(z);return ge(oe.createElement(A.Z,Object.assign({},(0,a.Z)(ce,["title"]),{trigger:ee,placement:G,onOpenChange:Q,open:te,ref:N,classNames:{root:Y,body:re},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},me.root),xe),ue),pe==null?void 0:pe.root),body:Object.assign(Object.assign({},me.body),pe==null?void 0:pe.body)},content:oe.createElement(_,Object.assign({okType:Z,icon:Ae},M,{prefixCls:z,close:k,onConfirm:q,onCancel:ne})),"data-popover-inject":!0}),U))});I._InternalPanelDoNotUseOrYouWillBeFired=F;var E=I},58755:function(rt,ke,J){"use strict";J.d(ke,{Z:function(){return G}});var oe=J(59301),ie=J(58617),t=J(92310),C=J.n(t),b=J(60499),a=J(18642),u=J(72190),A=J(42244),c=J(18929),h=J(10228),o=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],n=oe.forwardRef(function(ee,Z){var Ae,U=ee.prefixCls,W=U===void 0?"rc-switch":U,le=ee.className,he=ee.checked,ue=ee.defaultChecked,pe=ee.disabled,fe=ee.loadingIcon,ce=ee.checkedChildren,be=ee.unCheckedChildren,Ce=ee.onClick,xe=ee.onChange,Se=ee.onKeyDown,me=(0,A.Z)(ee,o),te=(0,c.Z)(!1,{value:he,defaultValue:ue}),$=(0,u.Z)(te,2),B=$[0],k=$[1];function q(Y,re){var ge=B;return pe||(ge=Y,k(ge),xe==null||xe(ge,re)),ge}function ne(Y){Y.which===h.Z.LEFT?q(!1,Y):Y.which===h.Z.RIGHT&&q(!0,Y),Se==null||Se(Y)}function Q(Y){var re=q(!B,Y);Ce==null||Ce(re,Y)}var z=C()(W,le,(Ae={},(0,a.Z)(Ae,"".concat(W,"-checked"),B),(0,a.Z)(Ae,"".concat(W,"-disabled"),pe),Ae));return oe.createElement("button",(0,b.Z)({},me,{type:"button",role:"switch","aria-checked":B,disabled:pe,className:z,ref:Z,onKeyDown:ne,onClick:Q}),fe,oe.createElement("span",{className:"".concat(W,"-inner")},oe.createElement("span",{className:"".concat(W,"-inner-checked")},ce),oe.createElement("span",{className:"".concat(W,"-inner-unchecked")},be)))});n.displayName="Switch";var r=n,s=J(12919),l=J(48755),d=J(2171),p=J(31756),g=J(36237),m=J(17835),v=J(63356),_=J(16931),O=J(51636);const F=ee=>{const{componentCls:Z,trackHeightSM:Ae,trackPadding:U,trackMinWidthSM:W,innerMinMarginSM:le,innerMaxMarginSM:he,handleSizeSM:ue,calc:pe}=ee,fe=`${Z}-inner`,ce=(0,g.unit)(pe(ue).add(pe(U).mul(2)).equal()),be=(0,g.unit)(pe(he).mul(2).equal());return{[Z]:{[`&${Z}-small`]:{minWidth:W,height:Ae,lineHeight:(0,g.unit)(Ae),[`${Z}-inner`]:{paddingInlineStart:he,paddingInlineEnd:le,[`${fe}-checked, ${fe}-unchecked`]:{minHeight:Ae},[`${fe}-checked`]:{marginInlineStart:`calc(-100% + ${ce} - ${be})`,marginInlineEnd:`calc(100% - ${ce} + ${be})`},[`${fe}-unchecked`]:{marginTop:pe(Ae).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Z}-handle`]:{width:ue,height:ue},[`${Z}-loading-icon`]:{top:pe(pe(ue).sub(ee.switchLoadingIconSize)).div(2).equal(),fontSize:ee.switchLoadingIconSize},[`&${Z}-checked`]:{[`${Z}-inner`]:{paddingInlineStart:le,paddingInlineEnd:he,[`${fe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${fe}-unchecked`]:{marginInlineStart:`calc(100% - ${ce} + ${be})`,marginInlineEnd:`calc(-100% + ${ce} - ${be})`}},[`${Z}-handle`]:{insetInlineStart:`calc(100% - ${(0,g.unit)(pe(ue).add(U).equal())})`}},[`&:not(${Z}-disabled):active`]:{[`&:not(${Z}-checked) ${fe}`]:{[`${fe}-unchecked`]:{marginInlineStart:pe(ee.marginXXS).div(2).equal(),marginInlineEnd:pe(ee.marginXXS).mul(-1).div(2).equal()}},[`&${Z}-checked ${fe}`]:{[`${fe}-checked`]:{marginInlineStart:pe(ee.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:pe(ee.marginXXS).div(2).equal()}}}}}}},T=ee=>{const{componentCls:Z,handleSize:Ae,calc:U}=ee;return{[Z]:{[`${Z}-loading-icon${ee.iconCls}`]:{position:"relative",top:U(U(Ae).sub(ee.fontSize)).div(2).equal(),color:ee.switchLoadingIconColor,verticalAlign:"top"},[`&${Z}-checked ${Z}-loading-icon`]:{color:ee.switchColor}}}},S=ee=>{const{componentCls:Z,trackPadding:Ae,handleBg:U,handleShadow:W,handleSize:le,calc:he}=ee,ue=`${Z}-handle`;return{[Z]:{[ue]:{position:"absolute",top:Ae,insetInlineStart:Ae,width:le,height:le,transition:`all ${ee.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:U,borderRadius:he(le).div(2).equal(),boxShadow:W,transition:`all ${ee.switchDuration} ease-in-out`,content:'""'}},[`&${Z}-checked ${ue}`]:{insetInlineStart:`calc(100% - ${(0,g.unit)(he(le).add(Ae).equal())})`},[`&:not(${Z}-disabled):active`]:{[`${ue}::before`]:{insetInlineEnd:ee.switchHandleActiveInset,insetInlineStart:0},[`&${Z}-checked ${ue}::before`]:{insetInlineEnd:0,insetInlineStart:ee.switchHandleActiveInset}}}}},I=ee=>{const{componentCls:Z,trackHeight:Ae,trackPadding:U,innerMinMargin:W,innerMaxMargin:le,handleSize:he,calc:ue}=ee,pe=`${Z}-inner`,fe=(0,g.unit)(ue(he).add(ue(U).mul(2)).equal()),ce=(0,g.unit)(ue(le).mul(2).equal());return{[Z]:{[pe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:le,paddingInlineEnd:W,transition:`padding-inline-start ${ee.switchDuration} ease-in-out, padding-inline-end ${ee.switchDuration} ease-in-out`,[`${pe}-checked, ${pe}-unchecked`]:{display:"block",color:ee.colorTextLightSolid,fontSize:ee.fontSizeSM,transition:`margin-inline-start ${ee.switchDuration} ease-in-out, margin-inline-end ${ee.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ae},[`${pe}-checked`]:{marginInlineStart:`calc(-100% + ${fe} - ${ce})`,marginInlineEnd:`calc(100% - ${fe} + ${ce})`},[`${pe}-unchecked`]:{marginTop:ue(Ae).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Z}-checked ${pe}`]:{paddingInlineStart:W,paddingInlineEnd:le,[`${pe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pe}-unchecked`]:{marginInlineStart:`calc(100% - ${fe} + ${ce})`,marginInlineEnd:`calc(-100% + ${fe} - ${ce})`}},[`&:not(${Z}-disabled):active`]:{[`&:not(${Z}-checked) ${pe}`]:{[`${pe}-unchecked`]:{marginInlineStart:ue(U).mul(2).equal(),marginInlineEnd:ue(U).mul(-1).mul(2).equal()}},[`&${Z}-checked ${pe}`]:{[`${pe}-checked`]:{marginInlineStart:ue(U).mul(-1).mul(2).equal(),marginInlineEnd:ue(U).mul(2).equal()}}}}}},E=ee=>{const{componentCls:Z,trackHeight:Ae,trackMinWidth:U}=ee;return{[Z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(ee)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:U,height:Ae,lineHeight:(0,g.unit)(Ae),verticalAlign:"middle",background:ee.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ee.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Z}-disabled)`]:{background:ee.colorTextTertiary}}),(0,v.Qy)(ee)),{[`&${Z}-checked`]:{background:ee.switchColor,[`&:hover:not(${Z}-disabled)`]:{background:ee.colorPrimaryHover}},[`&${Z}-loading, &${Z}-disabled`]:{cursor:"not-allowed",opacity:ee.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Z}-rtl`]:{direction:"rtl"}})}},M=ee=>{const{fontSize:Z,lineHeight:Ae,controlHeight:U,colorWhite:W}=ee,le=Z*Ae,he=U/2,ue=2,pe=le-ue*2,fe=he-ue*2;return{trackHeight:le,trackHeightSM:he,trackMinWidth:pe*2+ue*4,trackMinWidthSM:fe*2+ue*2,trackPadding:ue,handleBg:W,handleSize:pe,handleSizeSM:fe,handleShadow:`0 2px 4px 0 ${new m.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:pe/2,innerMaxMargin:pe+ue+ue*2,innerMinMarginSM:fe/2,innerMaxMarginSM:fe+ue+ue*2}};var N=(0,_.I$)("Switch",ee=>{const Z=(0,O.mergeToken)(ee,{switchDuration:ee.motionDurationMid,switchColor:ee.colorPrimary,switchDisabledOpacity:ee.opacityLoading,switchLoadingIconSize:ee.calc(ee.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ee.opacityLoading})`,switchHandleActiveInset:"-30%"});return[E(Z),I(Z),S(Z),T(Z),F(Z)]},M),V=function(ee,Z){var Ae={};for(var U in ee)Object.prototype.hasOwnProperty.call(ee,U)&&Z.indexOf(U)<0&&(Ae[U]=ee[U]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,U=Object.getOwnPropertySymbols(ee);W<U.length;W++)Z.indexOf(U[W])<0&&Object.prototype.propertyIsEnumerable.call(ee,U[W])&&(Ae[U[W]]=ee[U[W]]);return Ae};const X=oe.forwardRef((ee,Z)=>{const{prefixCls:Ae,size:U,disabled:W,loading:le,className:he,rootClassName:ue,style:pe,checked:fe,value:ce,defaultChecked:be,defaultValue:Ce,onChange:xe}=ee,Se=V(ee,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[me,te]=(0,c.Z)(!1,{value:fe!=null?fe:ce,defaultValue:be!=null?be:Ce}),{getPrefixCls:$,direction:B,switch:k}=oe.useContext(l.E_),q=oe.useContext(d.Z),ne=(W!=null?W:q)||le,Q=$("switch",Ae),z=oe.createElement("div",{className:`${Q}-handle`},le&&oe.createElement(ie.Z,{className:`${Q}-loading-icon`})),[Y,re,ge]=N(Q),Be=(0,p.Z)(U),Oe=C()(k==null?void 0:k.className,{[`${Q}-small`]:Be==="small",[`${Q}-loading`]:le,[`${Q}-rtl`]:B==="rtl"},he,ue,re,ge),Le=Object.assign(Object.assign({},k==null?void 0:k.style),pe),Pe=function(){te(arguments.length<=0?void 0:arguments[0]),xe==null||xe.apply(void 0,arguments)};return Y(oe.createElement(s.Z,{component:"Switch"},oe.createElement(r,Object.assign({},Se,{checked:me,onChange:Pe,prefixCls:Q,className:Oe,style:Le,disabled:ne,ref:Z,loadingIcon:z}))))});X.__ANT_SWITCH=!0;var G=X},25376:function(rt,ke,J){"use strict";J.d(ke,{Z:function(){return qe}});var oe=J(59301),ie=J(85899),t=J(60499),C=J(43749),b=J(72190),a=J(42244),u=J(43403),A=J(68196),c=J(92310),h=J.n(c),o=J(34280),n=J(18929);function r(Qe){return Qe!==null&&(0,C.Z)(Qe)==="object"}function s(Qe,He,Ge){if(Qe===!1||He===!1&&(!r(Qe)||!Qe.closeIcon))return null;var nt=typeof He!="boolean"?He:void 0;if(r(Qe)){var st;return(0,ie.Z)((0,ie.Z)({},Qe),{},{closeIcon:(st=Qe.closeIcon)!==null&&st!==void 0?st:nt})}return Ge||Qe||He?{closeIcon:nt}:"empty"}function l(Qe,He,Ge,nt){return oe.useMemo(function(){var st=s(Qe,He,!1),Tt=s(Ge,nt,!0);return st!=="empty"?st:Tt},[Ge,nt,Qe,He])}var d=J(6089);function p(Qe){var He=window.innerWidth||document.documentElement.clientWidth,Ge=window.innerHeight||document.documentElement.clientHeight,nt=Qe.getBoundingClientRect(),st=nt.top,Tt=nt.right,xt=nt.bottom,Et=nt.left;return st>=0&&Et>=0&&Tt<=He&&xt<=Ge}function g(Qe,He,Ge){var nt;return(nt=Ge!=null?Ge:He)!==null&&nt!==void 0?nt:Qe===null?"center":"bottom"}function m(Qe){return typeof Qe=="number"&&!Number.isNaN(Qe)}function v(Qe,He,Ge,nt){var st=(0,oe.useState)(void 0),Tt=(0,b.Z)(st,2),xt=Tt[0],Et=Tt[1];(0,o.Z)(function(){var Mt=typeof Qe=="function"?Qe():Qe;Et(Mt||null)});var Dt=(0,oe.useState)(null),Wt=(0,b.Z)(Dt,2),Qt=Wt[0],Rt=Wt[1],Xt=(0,d.Z)(function(){if(xt){!p(xt)&&He&&xt.scrollIntoView(nt);var Mt=xt.getBoundingClientRect(),It=Mt.left,_t=Mt.top,pr=Mt.width,lr=Mt.height,Pr={left:It,top:_t,width:pr,height:lr,radius:0};Rt(function(Gr){return JSON.stringify(Gr)!==JSON.stringify(Pr)?Pr:Gr})}else Rt(null)}),Ar=function(It){var _t;return(_t=Array.isArray(Ge==null?void 0:Ge.offset)?Ge==null?void 0:Ge.offset[It]:Ge==null?void 0:Ge.offset)!==null&&_t!==void 0?_t:6};(0,o.Z)(function(){return Xt(),window.addEventListener("resize",Xt),function(){window.removeEventListener("resize",Xt)}},[xt,He,Xt]);var bt=(0,oe.useMemo)(function(){if(!Qt)return Qt;var Mt=Ar(0),It=Ar(1),_t=m(Ge==null?void 0:Ge.radius)?Ge==null?void 0:Ge.radius:2;return{left:Qt.left-Mt,top:Qt.top-It,width:Qt.width+Mt*2,height:Qt.height+It*2,radius:_t}},[Qt,Ge]);return[bt,xt]}var _=J(80402),O={fill:"transparent",pointerEvents:"auto"},F=function(He){var Ge=He.prefixCls,nt=He.rootClassName,st=He.pos,Tt=He.showMask,xt=He.style,Et=xt===void 0?{}:xt,Dt=He.fill,Wt=Dt===void 0?"rgba(0,0,0,0.5)":Dt,Qt=He.open,Rt=He.animated,Xt=He.zIndex,Ar=He.disabledInteraction,bt=(0,_.Z)(),Mt="".concat(Ge,"-mask-").concat(bt),It=(0,C.Z)(Rt)==="object"?Rt==null?void 0:Rt.placeholder:Rt,_t=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),pr=_t?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return oe.createElement(u.Z,{open:Qt,autoLock:!0},oe.createElement("div",{className:h()("".concat(Ge,"-mask"),nt),style:(0,ie.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Xt,pointerEvents:st&&!Ar?"none":"auto"},Et)},Tt?oe.createElement("svg",{style:{width:"100%",height:"100%"}},oe.createElement("defs",null,oe.createElement("mask",{id:Mt},oe.createElement("rect",(0,t.Z)({x:"0",y:"0"},pr,{fill:"white"})),st&&oe.createElement("rect",{x:st.left,y:st.top,rx:st.radius,width:st.width,height:st.height,fill:"black",className:It?"".concat(Ge,"-placeholder-animated"):""}))),oe.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Wt,mask:"url(#".concat(Mt,")")}),st&&oe.createElement(oe.Fragment,null,oe.createElement("rect",(0,t.Z)({},O,{x:"0",y:"0",width:"100%",height:st.top})),oe.createElement("rect",(0,t.Z)({},O,{x:"0",y:"0",width:st.left,height:"100%"})),oe.createElement("rect",(0,t.Z)({},O,{x:"0",y:st.top+st.height,width:"100%",height:"calc(100vh - ".concat(st.top+st.height,"px)")})),oe.createElement("rect",(0,t.Z)({},O,{x:st.left+st.width,y:"0",width:"calc(100vw - ".concat(st.left+st.width,"px)"),height:"100%"})))):null))},T=F,S={adjustX:1,adjustY:1},I=[0,0],E={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function M(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,He={};return Object.keys(E).forEach(function(Ge){He[Ge]=(0,ie.Z)((0,ie.Z)({},E[Ge]),{},{autoArrow:Qe,targetOffset:I})}),He}var N=M(),V=J(77654),H=J(26112);function X(Qe){var He,Ge=Qe.prefixCls,nt=Qe.current,st=Qe.total,Tt=Qe.title,xt=Qe.description,Et=Qe.onClose,Dt=Qe.onPrev,Wt=Qe.onNext,Qt=Qe.onFinish,Rt=Qe.className,Xt=Qe.closable,Ar=(0,H.Z)(Xt||{},!0),bt=(He=Xt==null?void 0:Xt.closeIcon)!==null&&He!==void 0?He:oe.createElement("span",{className:"".concat(Ge,"-close-x")},"\xD7"),Mt=!!Xt;return oe.createElement("div",{className:h()("".concat(Ge,"-content"),Rt)},oe.createElement("div",{className:"".concat(Ge,"-inner")},Mt&&oe.createElement("button",(0,t.Z)({type:"button",onClick:Et,"aria-label":"Close"},Ar,{className:"".concat(Ge,"-close")}),bt),oe.createElement("div",{className:"".concat(Ge,"-header")},oe.createElement("div",{className:"".concat(Ge,"-title")},Tt)),oe.createElement("div",{className:"".concat(Ge,"-description")},xt),oe.createElement("div",{className:"".concat(Ge,"-footer")},oe.createElement("div",{className:"".concat(Ge,"-sliders")},st>1?(0,V.Z)(Array.from({length:st}).keys()).map(function(It,_t){return oe.createElement("span",{key:It,className:_t===nt?"active":""})}):null),oe.createElement("div",{className:"".concat(Ge,"-buttons")},nt!==0?oe.createElement("button",{className:"".concat(Ge,"-prev-btn"),onClick:Dt},"Prev"):null,nt===st-1?oe.createElement("button",{className:"".concat(Ge,"-finish-btn"),onClick:Qt},"Finish"):oe.createElement("button",{className:"".concat(Ge,"-next-btn"),onClick:Wt},"Next")))))}var G=function(He){var Ge=He.current,nt=He.renderPanel;return oe.createElement(oe.Fragment,null,typeof nt=="function"?nt(He,Ge):oe.createElement(X,He))},ee=G,Z=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Ae={left:"50%",top:"50%",width:1,height:1},U={block:"center",inline:"center"},W=function(He){var Ge=He.prefixCls,nt=Ge===void 0?"rc-tour":Ge,st=He.steps,Tt=st===void 0?[]:st,xt=He.defaultCurrent,Et=He.current,Dt=He.onChange,Wt=He.onClose,Qt=He.onFinish,Rt=He.open,Xt=He.mask,Ar=Xt===void 0?!0:Xt,bt=He.arrow,Mt=bt===void 0?!0:bt,It=He.rootClassName,_t=He.placement,pr=He.renderPanel,lr=He.gap,Pr=He.animated,Gr=He.scrollIntoViewOptions,or=Gr===void 0?U:Gr,wr=He.zIndex,ln=wr===void 0?1001:wr,ui=He.closeIcon,$r=He.closable,un=He.builtinPlacements,Nn=He.disabledInteraction,ir=(0,a.Z)(He,Z),pt=oe.useRef(),gr=(0,n.Z)(0,{value:Et,defaultValue:xt}),Lr=(0,b.Z)(gr,2),$t=Lr[0],jt=Lr[1],qr=(0,n.Z)(void 0,{value:Rt,postState:function(Hr){return $t<0||$t>=Tt.length?!1:Hr!=null?Hr:!0}}),xn=(0,b.Z)(qr,2),Er=xn[0],et=xn[1],Ct=oe.useState(Er),En=(0,b.Z)(Ct,2),Tn=En[0],Di=En[1],ci=oe.useRef(Er);(0,o.Z)(function(){Er&&(ci.current||jt(0),Di(!0)),ci.current=Er},[Er]);var en=Tt[$t]||{},wt=en.target,Mi=en.placement,Wn=en.style,fi=en.arrow,sr=en.className,Ri=en.mask,as=en.scrollIntoViewOptions,Fn=as===void 0?U:as,As=en.closeIcon,Ys=en.closable,ls=l(Ys,As,$r,ui),Kn=Er&&(Ri!=null?Ri:Ar),Js=Fn!=null?Fn:or,hi=v(wt,Rt,lr,Js),us=(0,b.Z)(hi,2),cs=us[0],ji=us[1],Zs=g(ji,_t,Mi),Rr=ji?typeof fi=="undefined"?Mt:fi:!1,Gn=(0,C.Z)(Rr)==="object"?Rr.pointAtCenter:!1;(0,o.Z)(function(){var tn;(tn=pt.current)===null||tn===void 0||tn.forceAlign()},[Gn,$t]);var yn=function(Hr){jt(Hr),Dt==null||Dt(Hr)},Qi=(0,oe.useMemo)(function(){return un?typeof un=="function"?un({arrowPointAtCenter:Gn}):un:M(Gn)},[un,Gn]);if(ji===void 0||!Tn)return null;var zn=function(){et(!1),Wt==null||Wt($t)},Po=function(){return oe.createElement(ee,(0,t.Z)({arrow:Rr,key:"content",prefixCls:nt,total:Tt.length,renderPanel:pr,onPrev:function(){yn($t-1)},onNext:function(){yn($t+1)},onClose:zn,current:$t,onFinish:function(){zn(),Qt==null||Qt()}},Tt[$t],{closable:ls}))},di=typeof Kn=="boolean"?Kn:!!Kn,Vn=typeof Kn=="boolean"?void 0:Kn,Ho=function(Hr){return Hr||ji||document.body};return oe.createElement(oe.Fragment,null,oe.createElement(T,{zIndex:ln,prefixCls:nt,pos:cs,showMask:di,style:Vn==null?void 0:Vn.style,fill:Vn==null?void 0:Vn.color,open:Er,animated:Pr,rootClassName:It,disabledInteraction:Nn}),oe.createElement(A.Z,(0,t.Z)({},ir,{builtinPlacements:Qi,ref:pt,popupStyle:Wn,popupPlacement:Zs,popupVisible:Er,popupClassName:h()(It,sr),prefixCls:nt,popup:Po,forceRender:!1,destroyPopupOnHide:!0,zIndex:ln,getTriggerDOMNode:Ho,arrow:!!Rr}),oe.createElement(u.Z,{open:Er,autoLock:!0},oe.createElement("div",{className:h()(It,"".concat(nt,"-target-placeholder")),style:(0,ie.Z)((0,ie.Z)({},cs||Ae),{},{position:"fixed",pointerEvents:"none"})}))))},le=W,he=le,ue=J(75030),pe=J(52838),fe=J(55743),ce=J(48755),be=J(57700),Ce=J(99267),xe=J(7939),Se=J(9017),me=J(85981);function te(Qe){return Qe!=null}var B=Qe=>{var He,Ge;const{stepProps:nt,current:st,type:Tt,indicatorsRender:xt}=Qe,{prefixCls:Et,total:Dt=1,title:Wt,onClose:Qt,onPrev:Rt,onNext:Xt,onFinish:Ar,cover:bt,description:Mt,nextButtonProps:It,prevButtonProps:_t,type:pr,closable:lr}=nt,Pr=pr!=null?pr:Tt,Gr=oe.createElement("button",{type:"button",onClick:Qt,className:`${Et}-close`},(lr==null?void 0:lr.closeIcon)||oe.createElement(Ce.Z,{className:`${Et}-close-icon`})),or=st===Dt-1,wr=()=>{var Lr;Rt==null||Rt(),(Lr=_t==null?void 0:_t.onClick)===null||Lr===void 0||Lr.call(_t)},ln=()=>{var Lr;or?Ar==null||Ar():Xt==null||Xt(),(Lr=It==null?void 0:It.onClick)===null||Lr===void 0||Lr.call(It)},ui=te(Wt)?oe.createElement("div",{className:`${Et}-header`},oe.createElement("div",{className:`${Et}-title`},Wt)):null,$r=te(Mt)?oe.createElement("div",{className:`${Et}-description`},Mt):null,un=te(bt)?oe.createElement("div",{className:`${Et}-cover`},bt):null;let Nn;xt?Nn=xt(st,Dt):Nn=(0,V.Z)(Array.from({length:Dt}).keys()).map((Lr,$t)=>oe.createElement("span",{key:Lr,className:h()($t===st&&`${Et}-indicator-active`,`${Et}-indicator`)}));const ir=Pr==="primary"?"default":"primary",pt={type:"default",ghost:Pr==="primary"},[gr]=(0,Se.Z)("Tour",me.Z.Tour);return oe.createElement("div",{className:`${Et}-content`},oe.createElement("div",{className:`${Et}-inner`},lr&&Gr,un,ui,$r,oe.createElement("div",{className:`${Et}-footer`},Dt>1&&oe.createElement("div",{className:`${Et}-indicators`},Nn),oe.createElement("div",{className:`${Et}-buttons`},st!==0?oe.createElement(xe.ZP,Object.assign({},pt,_t,{onClick:wr,size:"small",className:h()(`${Et}-prev-btn`,_t==null?void 0:_t.className)}),(He=_t==null?void 0:_t.children)!==null&&He!==void 0?He:gr==null?void 0:gr.Previous):null,oe.createElement(xe.ZP,Object.assign({type:ir},It,{onClick:ln,size:"small",className:h()(`${Et}-next-btn`,It==null?void 0:It.className)}),(Ge=It==null?void 0:It.children)!==null&&Ge!==void 0?Ge:or?gr==null?void 0:gr.Finish:gr==null?void 0:gr.Next)))))},k=J(78776),q=J(45915),ne=J(22703),Q=J(69106),z=J(36237),Y=J(17835),re=J(63356),ge=J(37645),Be=J(36305),Oe=J(16931),Le=J(51636);const Pe=Qe=>{const{componentCls:He,padding:Ge,paddingXS:nt,borderRadius:st,borderRadiusXS:Tt,colorPrimary:xt,colorFill:Et,indicatorHeight:Dt,indicatorWidth:Wt,boxShadowTertiary:Qt,zIndexPopup:Rt,colorBgElevated:Xt,fontWeightStrong:Ar,marginXS:bt,colorTextLightSolid:Mt,tourBorderRadius:It,colorWhite:_t,primaryNextBtnHoverBg:pr,closeBtnSize:lr,motionDurationSlow:Pr,antCls:Gr,primaryPrevBtnBg:or}=Qe;return[{[He]:Object.assign(Object.assign({},(0,re.Wf)(Qe)),{position:"absolute",zIndex:Rt,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":Xt,"&-pure":{maxWidth:"100%",position:"relative"},[`&${He}-hidden`]:{display:"none"},[`${He}-content`]:{position:"relative"},[`${He}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:It,boxShadow:Qt,position:"relative",backgroundColor:Xt,border:"none",backgroundClip:"padding-box",[`${He}-close`]:Object.assign({position:"absolute",top:Ge,insetInlineEnd:Ge,color:Qe.colorIcon,background:"none",border:"none",width:lr,height:lr,borderRadius:Qe.borderRadiusSM,transition:`background-color ${Qe.motionDurationMid}, color ${Qe.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:Qe.colorIconHover,backgroundColor:Qe.colorBgTextHover},"&:active":{backgroundColor:Qe.colorBgTextActive}},(0,re.Qy)(Qe)),[`${He}-cover`]:{textAlign:"center",padding:`${(0,z.unit)(Qe.calc(Ge).add(lr).add(nt).equal())} ${(0,z.unit)(Ge)} 0`,img:{width:"100%"}},[`${He}-header`]:{padding:`${(0,z.unit)(Ge)} ${(0,z.unit)(Ge)} ${(0,z.unit)(nt)}`,width:`calc(100% - ${(0,z.unit)(lr)})`,wordBreak:"break-word",[`${He}-title`]:{fontWeight:Ar}},[`${He}-description`]:{padding:`0 ${(0,z.unit)(Ge)}`,wordWrap:"break-word"},[`${He}-footer`]:{padding:`${(0,z.unit)(nt)} ${(0,z.unit)(Ge)} ${(0,z.unit)(Ge)}`,textAlign:"end",borderRadius:`0 0 ${(0,z.unit)(Tt)} ${(0,z.unit)(Tt)}`,display:"flex",[`${He}-indicators`]:{display:"inline-block",[`${He}-indicator`]:{width:Wt,height:Dt,display:"inline-block",borderRadius:"50%",background:Et,"&:not(:last-child)":{marginInlineEnd:Dt},"&-active":{background:xt}}},[`${He}-buttons`]:{marginInlineStart:"auto",[`${Gr}-btn`]:{marginInlineStart:bt}}}},[`${He}-primary, &${He}-primary`]:{"--antd-arrow-background-color":xt,[`${He}-inner`]:{color:Mt,textAlign:"start",textDecoration:"none",backgroundColor:xt,borderRadius:st,boxShadow:Qt,[`${He}-close`]:{color:Mt},[`${He}-indicators`]:{[`${He}-indicator`]:{background:or,"&-active":{background:Mt}}},[`${He}-prev-btn`]:{color:Mt,borderColor:or,backgroundColor:xt,"&:hover":{backgroundColor:or,borderColor:"transparent"}},[`${He}-next-btn`]:{color:xt,borderColor:"transparent",background:_t,"&:hover":{background:pr}}}}}),[`${He}-mask`]:{[`${He}-placeholder-animated`]:{transition:`all ${Pr}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${He}-inner`]:{borderRadius:Qe.min(It,ge.qN)}}},(0,ge.ZP)(Qe,"var(--antd-arrow-background-color)")]},$e=Qe=>Object.assign(Object.assign({zIndexPopup:Qe.zIndexPopupBase+70,closeBtnSize:Qe.fontSize*Qe.lineHeight,primaryPrevBtnBg:new Y.FastColor(Qe.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new Y.FastColor(Qe.colorBgTextHover).onBackground(Qe.colorWhite).toRgbString()},(0,ge.wZ)({contentRadius:Qe.borderRadiusLG,limitVerticalRadius:!0})),(0,Be.w)(Qe));var Ke=(0,Oe.I$)("Tour",Qe=>{const{borderRadiusLG:He}=Qe,Ge=(0,Le.mergeToken)(Qe,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:He});return[Pe(Ge)]},$e),Ne=function(Qe,He){var Ge={};for(var nt in Qe)Object.prototype.hasOwnProperty.call(Qe,nt)&&He.indexOf(nt)<0&&(Ge[nt]=Qe[nt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,nt=Object.getOwnPropertySymbols(Qe);st<nt.length;st++)He.indexOf(nt[st])<0&&Object.prototype.propertyIsEnumerable.call(Qe,nt[st])&&(Ge[nt[st]]=Qe[nt[st]]);return Ge};const Ue=Qe=>{const{prefixCls:He,current:Ge=0,total:nt=6,className:st,style:Tt,type:xt,closable:Et,closeIcon:Dt}=Qe,Wt=Ne(Qe,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:Qt}=oe.useContext(ce.E_),Rt=Qt("tour",He),[Xt,Ar,bt]=Ke(Rt),[Mt,It]=(0,k.Z)({closable:Et,closeIcon:Dt},null,{closable:!0,closeIconRender:_t=>oe.isValidElement(_t)?(0,ne.Tm)(_t,{className:h()(_t.props.className,`${Rt}-close-icon`)}):_t});return Xt(oe.createElement(Q.t5,{prefixCls:Rt,hashId:Ar,className:h()(st,`${Rt}-pure`,xt&&`${Rt}-${xt}`,bt),style:Tt},oe.createElement(B,{stepProps:Object.assign(Object.assign({},Wt),{prefixCls:Rt,total:nt,closable:Mt?{closeIcon:It}:void 0}),current:Ge,type:xt})))};var Ye=(0,q.i)(Ue),ze=function(Qe,He){var Ge={};for(var nt in Qe)Object.prototype.hasOwnProperty.call(Qe,nt)&&He.indexOf(nt)<0&&(Ge[nt]=Qe[nt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,nt=Object.getOwnPropertySymbols(Qe);st<nt.length;st++)He.indexOf(nt[st])<0&&Object.prototype.propertyIsEnumerable.call(Qe,nt[st])&&(Ge[nt[st]]=Qe[nt[st]]);return Ge};const Xe=Qe=>{const{prefixCls:He,type:Ge,rootClassName:nt,indicatorsRender:st,steps:Tt,closeIcon:xt}=Qe,Et=ze(Qe,["prefixCls","type","rootClassName","indicatorsRender","steps","closeIcon"]),{getPrefixCls:Dt,direction:Wt,tour:Qt}=(0,oe.useContext)(ce.E_),Rt=Dt("tour",He),[Xt,Ar,bt]=Ke(Rt),[,Mt]=(0,be.ZP)(),It=oe.useMemo(()=>Tt==null?void 0:Tt.map(or=>{var wr;return Object.assign(Object.assign({},or),{className:h()(or.className,{[`${Rt}-primary`]:((wr=or.type)!==null&&wr!==void 0?wr:Ge)==="primary"})})}),[Tt,Ge]),_t=or=>{var wr;return(0,pe.Z)({arrowPointAtCenter:(wr=or==null?void 0:or.arrowPointAtCenter)!==null&&wr!==void 0?wr:!0,autoAdjustOverflow:!0,offset:Mt.marginXXS,arrowWidth:Mt.sizePopupArrow,borderRadius:Mt.borderRadius})},pr=h()({[`${Rt}-rtl`]:Wt==="rtl"},Ar,bt,nt),lr=(or,wr)=>oe.createElement(B,{type:Ge,stepProps:or,current:wr,indicatorsRender:st}),[Pr,Gr]=(0,ue.Cn)("Tour",Et.zIndex);return Xt(oe.createElement(fe.Z.Provider,{value:Gr},oe.createElement(he,Object.assign({},Et,{closeIcon:xt!=null?xt:Qt==null?void 0:Qt.closeIcon,zIndex:Pr,rootClassName:pr,prefixCls:Rt,animated:!0,renderPanel:lr,builtinPlacements:_t,steps:It}))))};Xe._InternalPanelDoNotUseOrYouWillBeFired=Ye;var qe=Xe},57780:function(rt,ke,J){"use strict";J.r(ke),J.d(ke,{clsx:function(){return ie}});function oe(t){var C,b,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t))for(C=0;C<t.length;C++)t[C]&&(b=oe(t[C]))&&(a&&(a+=" "),a+=b);else for(C in t)t[C]&&(a&&(a+=" "),a+=C);return a}function ie(){for(var t,C,b=0,a="";b<arguments.length;)(t=arguments[b++])&&(C=oe(t))&&(a&&(a+=" "),a+=C);return a}ke.default=ie},99498:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){oe.defineOption("placeholder","",function(A,c,h){var o=h&&h!=oe.Init;if(c&&!o)A.on("blur",b),A.on("change",a),A.on("swapDoc",a),oe.on(A.getInputField(),"compositionupdate",A.state.placeholderCompose=function(){C(A)}),a(A);else if(!c&&o){A.off("blur",b),A.off("change",a),A.off("swapDoc",a),oe.off(A.getInputField(),"compositionupdate",A.state.placeholderCompose),ie(A);var n=A.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}c&&!A.hasFocus()&&b(A)});function ie(A){A.state.placeholder&&(A.state.placeholder.parentNode.removeChild(A.state.placeholder),A.state.placeholder=null)}function t(A){ie(A);var c=A.state.placeholder=document.createElement("pre");c.style.cssText="height: 0; overflow: visible",c.style.direction=A.getOption("direction"),c.className="CodeMirror-placeholder CodeMirror-line-like";var h=A.getOption("placeholder");typeof h=="string"&&(h=document.createTextNode(h)),c.appendChild(h),A.display.lineSpace.insertBefore(c,A.display.lineSpace.firstChild)}function C(A){setTimeout(function(){var c=!1,h=A.getInputField();h.nodeName=="TEXTAREA"?c=!h.value:A.lineCount()==1&&(c=!/[^\u200b]/.test(h.querySelector(".CodeMirror-line").textContent)),c?t(A):ie(A)},20)}function b(A){u(A)&&t(A)}function a(A){var c=A.getWrapperElement(),h=u(A);c.className=c.className.replace(" CodeMirror-empty","")+(h?" CodeMirror-empty":""),h?t(A):ie(A)}function u(A){return A.lineCount()===1&&A.getLine(0)===""}})},25717:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},t=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(l,d,p){p&&p!=oe.Init&&(l.removeKeyMap(b),l.state.closeBrackets=null),d&&(a(C(d,"pairs")),l.state.closeBrackets=d,l.addKeyMap(b))});function C(l,d){return d=="pairs"&&typeof l=="string"?l:typeof l=="object"&&l[d]!=null?l[d]:ie[d]}var b={Backspace:c,Enter:h};function a(l){for(var d=0;d<l.length;d++){var p=l.charAt(d),g="'"+p+"'";b[g]||(b[g]=u(p))}}a(ie.pairs+"`");function u(l){return function(d){return n(d,l)}}function A(l){var d=l.state.closeBrackets;if(!d||d.override)return d;var p=l.getModeAt(l.getCursor());return p.closeBrackets||d}function c(l){var d=A(l);if(!d||l.getOption("disableInput"))return oe.Pass;for(var p=C(d,"pairs"),g=l.listSelections(),m=0;m<g.length;m++){if(!g[m].empty())return oe.Pass;var v=r(l,g[m].head);if(!v||p.indexOf(v)%2!=0)return oe.Pass}for(var m=g.length-1;m>=0;m--){var _=g[m].head;l.replaceRange("",t(_.line,_.ch-1),t(_.line,_.ch+1),"+delete")}}function h(l){var d=A(l),p=d&&C(d,"explode");if(!p||l.getOption("disableInput"))return oe.Pass;for(var g=l.listSelections(),m=0;m<g.length;m++){if(!g[m].empty())return oe.Pass;var v=r(l,g[m].head);if(!v||p.indexOf(v)%2!=0)return oe.Pass}l.operation(function(){var _=l.lineSeparator()||`
|
|
|
`;l.replaceSelection(_+_,null),l.execCommand("goCharLeft"),g=l.listSelections();for(var O=0;O<g.length;O++){var F=g[O].head.line;l.indentLine(F,null,!0),l.indentLine(F+1,null,!0)}})}function o(l){var d=oe.cmpPos(l.anchor,l.head)>0;return{anchor:new t(l.anchor.line,l.anchor.ch+(d?-1:1)),head:new t(l.head.line,l.head.ch+(d?1:-1))}}function n(l,d){var p=A(l);if(!p||l.getOption("disableInput"))return oe.Pass;var g=C(p,"pairs"),m=g.indexOf(d);if(m==-1)return oe.Pass;for(var v=C(p,"closeBefore"),_=C(p,"triples"),O=g.charAt(m+1)==d,F=l.listSelections(),T=m%2==0,S,I=0;I<F.length;I++){var E=F[I],M=E.head,N,V=l.getRange(M,t(M.line,M.ch+1));if(T&&!E.empty())N="surround";else if((O||!T)&&V==d)O&&s(l,M)?N="both":_.indexOf(d)>=0&&l.getRange(M,t(M.line,M.ch+3))==d+d+d?N="skipThree":N="skip";else if(O&&M.ch>1&&_.indexOf(d)>=0&&l.getRange(t(M.line,M.ch-2),M)==d+d){if(M.ch>2&&/\bstring/.test(l.getTokenTypeAt(t(M.line,M.ch-2))))return oe.Pass;N="addFour"}else if(O){var H=M.ch==0?" ":l.getRange(t(M.line,M.ch-1),M);if(!oe.isWordChar(V)&&H!=d&&!oe.isWordChar(H))N="both";else return oe.Pass}else if(T&&(V.length===0||/\s/.test(V)||v.indexOf(V)>-1))N="both";else return oe.Pass;if(!S)S=N;else if(S!=N)return oe.Pass}var X=m%2?g.charAt(m-1):d,G=m%2?d:g.charAt(m+1);l.operation(function(){if(S=="skip")l.execCommand("goCharRight");else if(S=="skipThree")for(var ee=0;ee<3;ee++)l.execCommand("goCharRight");else if(S=="surround"){for(var Z=l.getSelections(),ee=0;ee<Z.length;ee++)Z[ee]=X+Z[ee]+G;l.replaceSelections(Z,"around"),Z=l.listSelections().slice();for(var ee=0;ee<Z.length;ee++)Z[ee]=o(Z[ee]);l.setSelections(Z)}else S=="both"?(l.replaceSelection(X+G,null),l.triggerElectric(X+G),l.execCommand("goCharLeft")):S=="addFour"&&(l.replaceSelection(X+X+X+X,"before"),l.execCommand("goCharRight"))})}function r(l,d){var p=l.getRange(t(d.line,d.ch-1),t(d.line,d.ch+1));return p.length==2?p:null}function s(l,d){var p=l.getTokenAt(t(d.line,d.ch+1));return/\bstring/.test(p.type)&&p.start==d.ch&&(d.ch==0||!/\bstring/.test(l.getTokenTypeAt(d)))}})},6313:function(rt,ke,J){(function(oe){oe(J(89780),J(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(c,h,o){if(o!=oe.Init&&o&&c.removeKeyMap("autoCloseTags"),!!h){var n={name:"autoCloseTags"};(typeof h!="object"||h.whenClosing!==!1)&&(n["'/'"]=function(r){return a(r)}),(typeof h!="object"||h.whenOpening!==!1)&&(n["'>'"]=function(r){return C(r)}),c.addKeyMap(n)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],t=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function C(c){if(c.getOption("disableInput"))return oe.Pass;for(var h=c.listSelections(),o=[],n=c.getOption("autoCloseTags"),r=0;r<h.length;r++){if(!h[r].empty())return oe.Pass;var s=h[r].head,l=c.getTokenAt(s),d=oe.innerMode(c.getMode(),l.state),p=d.state,g=d.mode.xmlCurrentTag&&d.mode.xmlCurrentTag(p),m=g&&g.name;if(!m)return oe.Pass;var v=d.mode.configuration=="html",_=typeof n=="object"&&n.dontCloseTags||v&&ie,O=typeof n=="object"&&n.indentTags||v&&t;l.end>s.ch&&(m=m.slice(0,m.length-l.end+s.ch));var F=m.toLowerCase();if(!m||l.type=="string"&&(l.end!=s.ch||!/[\"\']/.test(l.string.charAt(l.string.length-1))||l.string.length==1)||l.type=="tag"&&g.close||l.string.indexOf("/")==s.ch-l.start-1||_&&u(_,F)>-1||A(c,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p)||[],m,s,!0))return oe.Pass;var T=typeof n=="object"&&n.emptyTags;if(T&&u(T,m)>-1){o[r]={text:"/>",newPos:oe.Pos(s.line,s.ch+2)};continue}var S=O&&u(O,F)>-1;o[r]={indent:S,text:">"+(S?`
|
|
|
|
|
|
`:"")+"</"+m+">",newPos:S?oe.Pos(s.line+1,0):oe.Pos(s.line,s.ch+1)}}for(var I=typeof n=="object"&&n.dontIndentOnAutoClose,r=h.length-1;r>=0;r--){var E=o[r];c.replaceRange(E.text,h[r].head,h[r].anchor,"+insert");var M=c.listSelections().slice(0);M[r]={head:E.newPos,anchor:E.newPos},c.setSelections(M),!I&&E.indent&&(c.indentLine(E.newPos.line,null,!0),c.indentLine(E.newPos.line+1,null,!0))}}function b(c,h){for(var o=c.listSelections(),n=[],r=h?"/":"</",s=c.getOption("autoCloseTags"),l=typeof s=="object"&&s.dontIndentOnSlash,d=0;d<o.length;d++){if(!o[d].empty())return oe.Pass;var p=o[d].head,g=c.getTokenAt(p),m=oe.innerMode(c.getMode(),g.state),v=m.state;if(h&&(g.type=="string"||g.string.charAt(0)!="<"||g.start!=p.ch-1))return oe.Pass;var _,O=m.mode.name!="xml"&&c.getMode().name=="htmlmixed";if(O&&m.mode.name=="javascript")_=r+"script";else if(O&&m.mode.name=="css")_=r+"style";else{var F=m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(v);if(!F||F.length&&A(c,F,F[F.length-1],p))return oe.Pass;_=r+F[F.length-1]}c.getLine(p.line).charAt(g.end)!=">"&&(_+=">"),n[d]=_}if(c.replaceSelections(n),o=c.listSelections(),!l)for(var d=0;d<o.length;d++)(d==o.length-1||o[d].head.line<o[d+1].head.line)&&c.indentLine(o[d].head.line)}function a(c){return c.getOption("disableInput")?oe.Pass:b(c,!0)}oe.commands.closeTag=function(c){return b(c)};function u(c,h){if(c.indexOf)return c.indexOf(h);for(var o=0,n=c.length;o<n;++o)if(c[o]==h)return o;return-1}function A(c,h,o,n,r){if(!oe.scanForClosingTag)return!1;var s=Math.min(c.lastLine()+1,n.line+500),l=oe.scanForClosingTag(c,n,null,s);if(!l||l.tag!=o)return!1;for(var d=r?1:0,p=h.length-1;p>=0&&h[p]==o;p--)++d;n=l.to;for(var p=1;p<d;p++){var g=oe.scanForClosingTag(c,n,null,s);if(!g||g.tag!=o)return!1;n=g.to}return!0}})},32855:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){"use strict";var ie=oe.Pos;function t(p,g){return p.line-g.line||p.ch-g.ch}var C="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",b=C+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",a=new RegExp("<(/?)(["+C+"]["+b+"]*)","g");function u(p,g,m,v){this.line=g,this.ch=m,this.cm=p,this.text=p.getLine(g),this.min=v?Math.max(v.from,p.firstLine()):p.firstLine(),this.max=v?Math.min(v.to-1,p.lastLine()):p.lastLine()}function A(p,g){var m=p.cm.getTokenTypeAt(ie(p.line,g));return m&&/\btag\b/.test(m)}function c(p){if(!(p.line>=p.max))return p.ch=0,p.text=p.cm.getLine(++p.line),!0}function h(p){if(!(p.line<=p.min))return p.text=p.cm.getLine(--p.line),p.ch=p.text.length,!0}function o(p){for(;;){var g=p.text.indexOf(">",p.ch);if(g==-1){if(c(p))continue;return}if(!A(p,g+1)){p.ch=g+1;continue}var m=p.text.lastIndexOf("/",g),v=m>-1&&!/\S/.test(p.text.slice(m+1,g));return p.ch=g+1,v?"selfClose":"regular"}}function n(p){for(;;){var g=p.ch?p.text.lastIndexOf("<",p.ch-1):-1;if(g==-1){if(h(p))continue;return}if(!A(p,g+1)){p.ch=g;continue}a.lastIndex=g,p.ch=g;var m=a.exec(p.text);if(m&&m.index==g)return m}}function r(p){for(;;){a.lastIndex=p.ch;var g=a.exec(p.text);if(!g){if(c(p))continue;return}if(!A(p,g.index+1)){p.ch=g.index+1;continue}return p.ch=g.index+g[0].length,g}}function s(p){for(;;){var g=p.ch?p.text.lastIndexOf(">",p.ch-1):-1;if(g==-1){if(h(p))continue;return}if(!A(p,g+1)){p.ch=g;continue}var m=p.text.lastIndexOf("/",g),v=m>-1&&!/\S/.test(p.text.slice(m+1,g));return p.ch=g+1,v?"selfClose":"regular"}}function l(p,g){for(var m=[];;){var v=r(p),_,O=p.line,F=p.ch-(v?v[0].length:0);if(!v||!(_=o(p)))return;if(_!="selfClose")if(v[1]){for(var T=m.length-1;T>=0;--T)if(m[T]==v[2]){m.length=T;break}if(T<0&&(!g||g==v[2]))return{tag:v[2],from:ie(O,F),to:ie(p.line,p.ch)}}else m.push(v[2])}}function d(p,g){for(var m=[];;){var v=s(p);if(!v)return;if(v=="selfClose"){n(p);continue}var _=p.line,O=p.ch,F=n(p);if(!F)return;if(F[1])m.push(F[2]);else{for(var T=m.length-1;T>=0;--T)if(m[T]==F[2]){m.length=T;break}if(T<0&&(!g||g==F[2]))return{tag:F[2],from:ie(p.line,p.ch),to:ie(_,O)}}}}oe.registerHelper("fold","xml",function(p,g){for(var m=new u(p,g.line,0);;){var v=r(m);if(!v||m.line!=g.line)return;var _=o(m);if(!_)return;if(!v[1]&&_!="selfClose"){var O=ie(m.line,m.ch),F=l(m,v[2]);return F&&t(F.from,O)>0?{from:O,to:F.from}:null}}}),oe.findMatchingTag=function(p,g,m){var v=new u(p,g.line,g.ch,m);if(!(v.text.indexOf(">")==-1&&v.text.indexOf("<")==-1)){var _=o(v),O=_&&ie(v.line,v.ch),F=_&&n(v);if(!(!_||!F||t(v,g)>0)){var T={from:ie(v.line,v.ch),to:O,tag:F[2]};return _=="selfClose"?{open:T,close:null,at:"open"}:F[1]?{open:d(v,F[2]),close:T,at:"close"}:(v=new u(p,O.line,O.ch,m),{open:T,close:l(v,F[2]),at:"open"})}}},oe.findEnclosingTag=function(p,g,m,v){for(var _=new u(p,g.line,g.ch,m);;){var O=d(_,v);if(!O)break;var F=new u(p,g.line,g.ch,m),T=l(F,O.tag);if(T)return{open:O,close:T}}},oe.scanForClosingTag=function(p,g,m,v){var _=new u(p,g.line,g.ch,v?{from:0,to:v}:null);return l(_,m)}})},89780:function(rt){(function(ke,J){rt.exports=J()})(this,function(){"use strict";var ke=navigator.userAgent,J=navigator.platform,oe=/gecko\/\d/i.test(ke),ie=/MSIE \d/.test(ke),t=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ke),C=/Edge\/(\d+)/.exec(ke),b=ie||t||C,a=b&&(ie?document.documentMode||6:+(C||t)[1]),u=!C&&/WebKit\//.test(ke),A=u&&/Qt\/\d+\.\d+/.test(ke),c=!C&&/Chrome\//.test(ke),h=/Opera\//.test(ke),o=/Apple Computer/.test(navigator.vendor),n=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ke),r=/PhantomJS/.test(ke),s=!C&&/AppleWebKit/.test(ke)&&/Mobile\/\w+/.test(ke),l=/Android/.test(ke),d=s||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ke),p=s||/Mac/.test(J),g=/\bCrOS\b/.test(ke),m=/win/i.test(J),v=h&&ke.match(/Version\/(\d*\.\d*)/);v&&(v=Number(v[1])),v&&v>=15&&(h=!1,u=!0);var _=p&&(A||h&&(v==null||v<12.11)),O=oe||b&&a>=9;function F(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T=function(e,i){var w=e.className,y=F(i).exec(w);if(y){var x=w.slice(y.index+y[0].length);e.className=w.slice(0,y.index)+(x?y[1]+x:"")}};function S(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function I(e,i){return S(e).appendChild(i)}function E(e,i,w,y){var x=document.createElement(e);if(w&&(x.className=w),y&&(x.style.cssText=y),typeof i=="string")x.appendChild(document.createTextNode(i));else if(i)for(var K=0;K<i.length;++K)x.appendChild(i[K]);return x}function M(e,i,w,y){var x=E(e,i,w,y);return x.setAttribute("role","presentation"),x}var N;document.createRange?N=function(e,i,w,y){var x=document.createRange();return x.setEnd(y||e,w),x.setStart(e,i),x}:N=function(e,i,w){var y=document.body.createTextRange();try{y.moveToElementText(e.parentNode)}catch(x){return y}return y.collapse(!0),y.moveEnd("character",w),y.moveStart("character",i),y};function V(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function H(){var e;try{e=document.activeElement}catch(i){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function X(e,i){var w=e.className;F(i).test(w)||(e.className+=(w?" ":"")+i)}function G(e,i){for(var w=e.split(" "),y=0;y<w.length;y++)w[y]&&!F(w[y]).test(i)&&(i+=" "+w[y]);return i}var ee=function(e){e.select()};s?ee=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(ee=function(e){try{e.select()}catch(i){}});function Z(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function Ae(e,i,w){i||(i={});for(var y in e)e.hasOwnProperty(y)&&(w!==!1||!i.hasOwnProperty(y))&&(i[y]=e[y]);return i}function U(e,i,w,y,x){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var K=y||0,se=x||0;;){var de=e.indexOf(" ",K);if(de<0||de>=i)return se+(i-K);se+=de-K,se+=w-se%w,K=de+1}}var W=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};W.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},W.prototype.set=function(e,i){this.f=i;var w=+new Date+e;(!this.id||w<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=w)};function le(e,i){for(var w=0;w<e.length;++w)if(e[w]==i)return w;return-1}var he=50,ue={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},fe={origin:"*mouse"},ce={origin:"+move"};function be(e,i,w){for(var y=0,x=0;;){var K=e.indexOf(" ",y);K==-1&&(K=e.length);var se=K-y;if(K==e.length||x+se>=i)return y+Math.min(se,i-x);if(x+=K-y,x+=w-x%w,y=K+1,x>=i)return y}}var Ce=[""];function xe(e){for(;Ce.length<=e;)Ce.push(Se(Ce)+" ");return Ce[e]}function Se(e){return e[e.length-1]}function me(e,i){for(var w=[],y=0;y<e.length;y++)w[y]=i(e[y],y);return w}function te(e,i,w){for(var y=0,x=w(i);y<e.length&&w(e[y])<=x;)y++;e.splice(y,0,i)}function $(){}function B(e,i){var w;return Object.create?w=Object.create(e):($.prototype=e,w=new $),i&&Ae(i,w),w}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function q(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||k.test(e))}function ne(e,i){return i?i.source.indexOf("\\w")>-1&&q(e)?!0:i.test(e):q(e)}function Q(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var z=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Y(e){return e.charCodeAt(0)>=768&&z.test(e)}function re(e,i,w){for(;(w<0?i>0:i<e.length)&&Y(e.charAt(i));)i+=w;return i}function ge(e,i,w){for(var y=i>w?-1:1;;){if(i==w)return i;var x=(i+w)/2,K=y<0?Math.ceil(x):Math.floor(x);if(K==i)return e(K)?i:w;e(K)?w=K:i=K+y}}function Be(e,i,w,y){if(!e)return y(i,w,"ltr",0);for(var x=!1,K=0;K<e.length;++K){var se=e[K];(se.from<w&&se.to>i||i==w&&se.to==i)&&(y(Math.max(se.from,i),Math.min(se.to,w),se.level==1?"rtl":"ltr",K),x=!0)}x||y(i,w,"ltr")}var Oe=null;function Le(e,i,w){var y;Oe=null;for(var x=0;x<e.length;++x){var K=e[x];if(K.from<i&&K.to>i)return x;K.to==i&&(K.from!=K.to&&w=="before"?y=x:Oe=x),K.from==i&&(K.from!=K.to&&w!="before"?y=x:Oe=x)}return y!=null?y:Oe}var Pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function w(we){return we<=247?e.charAt(we):1424<=we&&we<=1524?"R":1536<=we&&we<=1785?i.charAt(we-1536):1774<=we&&we<=2220?"r":8192<=we&&we<=8203?"w":we==8204?"b":"L"}var y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,x=/[stwN]/,K=/[LRr]/,se=/[Lb1n]/,de=/[1n]/;function ve(we,Fe,Ie){this.level=we,this.from=Fe,this.to=Ie}return function(we,Fe){var Ie=Fe=="ltr"?"L":"R";if(we.length==0||Fe=="ltr"&&!y.test(we))return!1;for(var Re=we.length,Me=[],Ve=0;Ve<Re;++Ve)Me.push(w(we.charCodeAt(Ve)));for(var Ze=0,tt=Ie;Ze<Re;++Ze){var ot=Me[Ze];ot=="m"?Me[Ze]=tt:tt=ot}for(var lt=0,at=Ie;lt<Re;++lt){var ct=Me[lt];ct=="1"&&at=="r"?Me[lt]="n":K.test(ct)&&(at=ct,ct=="r"&&(Me[lt]="R"))}for(var yt=1,vt=Me[0];yt<Re-1;++yt){var Ft=Me[yt];Ft=="+"&&vt=="1"&&Me[yt+1]=="1"?Me[yt]="1":Ft==","&&vt==Me[yt+1]&&(vt=="1"||vt=="n")&&(Me[yt]=vt),vt=Ft}for(var Jt=0;Jt<Re;++Jt){var yr=Me[Jt];if(yr==",")Me[Jt]="N";else if(yr=="%"){var ar=void 0;for(ar=Jt+1;ar<Re&&Me[ar]=="%";++ar);for(var Kr=Jt&&Me[Jt-1]=="!"||ar<Re&&Me[ar]=="1"?"1":"N",kr=Jt;kr<ar;++kr)Me[kr]=Kr;Jt=ar-1}}for(var cr=0,Ir=Ie;cr<Re;++cr){var Sr=Me[cr];Ir=="L"&&Sr=="1"?Me[cr]="L":K.test(Sr)&&(Ir=Sr)}for(var it=0;it<Re;++it)if(x.test(Me[it])){var er=void 0;for(er=it+1;er<Re&&x.test(Me[er]);++er);for(var tr=(it?Me[it-1]:Ie)=="L",rr=(er<Re?Me[er]:Ie)=="L",ns=tr==rr?tr?"L":"R":Ie,Ut=it;Ut<er;++Ut)Me[Ut]=ns;it=er-1}for(var kt=[],Zr,br=0;br<Re;)if(se.test(Me[br])){var is=br;for(++br;br<Re&&se.test(Me[br]);++br);kt.push(new ve(0,is,br))}else{var Hn=br,_n=kt.length,ki=Fe=="rtl"?1:0;for(++br;br<Re&&Me[br]!="L";++br);for(var Mr=Hn;Mr<br;)if(de.test(Me[Mr])){Hn<Mr&&(kt.splice(_n,0,new ve(1,Hn,Mr)),_n+=ki);var Ii=Mr;for(++Mr;Mr<br&&de.test(Me[Mr]);++Mr);kt.splice(_n,0,new ve(2,Ii,Mr)),_n+=ki,Hn=Mr}else++Mr;Hn<br&&kt.splice(_n,0,new ve(1,Hn,br))}return Fe=="ltr"&&(kt[0].level==1&&(Zr=we.match(/^\s+/))&&(kt[0].from=Zr[0].length,kt.unshift(new ve(0,0,Zr[0].length))),Se(kt).level==1&&(Zr=we.match(/\s+$/))&&(Se(kt).to-=Zr[0].length,kt.push(new ve(0,Re-Zr[0].length,Re)))),Fe=="rtl"?kt.reverse():kt}}();function $e(e,i){var w=e.order;return w==null&&(w=e.order=Pe(e.text,i)),w}var Ke=[],Ne=function(e,i,w){if(e.addEventListener)e.addEventListener(i,w,!1);else if(e.attachEvent)e.attachEvent("on"+i,w);else{var y=e._handlers||(e._handlers={});y[i]=(y[i]||Ke).concat(w)}};function Ue(e,i){return e._handlers&&e._handlers[i]||Ke}function Ye(e,i,w){if(e.removeEventListener)e.removeEventListener(i,w,!1);else if(e.detachEvent)e.detachEvent("on"+i,w);else{var y=e._handlers,x=y&&y[i];if(x){var K=le(x,w);K>-1&&(y[i]=x.slice(0,K).concat(x.slice(K+1)))}}}function ze(e,i){var w=Ue(e,i);if(w.length)for(var y=Array.prototype.slice.call(arguments,2),x=0;x<w.length;++x)w[x].apply(null,y)}function Xe(e,i,w){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ze(e,w||i.type,e,i),st(i)||i.codemirrorIgnore}function qe(e){var i=e._handlers&&e._handlers.cursorActivity;if(i)for(var w=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),y=0;y<i.length;++y)le(w,i[y])==-1&&w.push(i[y])}function Qe(e,i){return Ue(e,i).length>0}function He(e){e.prototype.on=function(i,w){Ne(this,i,w)},e.prototype.off=function(i,w){Ye(this,i,w)}}function Ge(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function nt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function st(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Tt(e){Ge(e),nt(e)}function xt(e){return e.target||e.srcElement}function Et(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),p&&e.ctrlKey&&i==1&&(i=3),i}var Dt=function(){if(b&&a<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Wt;function Qt(e){if(Wt==null){var i=E("span","\u200B");I(e,E("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Wt=i.offsetWidth<=1&&i.offsetHeight>2&&!(b&&a<8))}var w=Wt?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return w.setAttribute("cm-text",""),w}var Rt;function Xt(e){if(Rt!=null)return Rt;var i=I(e,document.createTextNode("A\u062EA")),w=N(i,0,1).getBoundingClientRect(),y=N(i,1,2).getBoundingClientRect();return S(e),!w||w.left==w.right?!1:Rt=y.right-w.right<3}var Ar=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(e){for(var i=0,w=[],y=e.length;i<=y;){var x=e.indexOf(`
|
|
|
`,i);x==-1&&(x=e.length);var K=e.slice(i,e.charAt(x-1)=="\r"?x-1:x),se=K.indexOf("\r");se!=-1?(w.push(K.slice(0,se)),i+=se+1):(w.push(K),i=x+1)}return w}:function(e){return e.split(/\r\n?|\n/)},bt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(i){return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch(w){}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Mt=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),It=null;function _t(e){if(It!=null)return It;var i=I(e,E("span","x")),w=i.getBoundingClientRect(),y=N(i,0,1).getBoundingClientRect();return It=Math.abs(w.left-y.left)>1}var pr={},lr={};function Pr(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),pr[e]=i}function Gr(e,i){lr[e]=i}function or(e){if(typeof e=="string"&&lr.hasOwnProperty(e))e=lr[e];else if(e&&typeof e.name=="string"&&lr.hasOwnProperty(e.name)){var i=lr[e.name];typeof i=="string"&&(i={name:i}),e=B(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return or("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return or("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function wr(e,i){i=or(i);var w=pr[i.name];if(!w)return wr(e,"text/plain");var y=w(e,i);if(ln.hasOwnProperty(i.name)){var x=ln[i.name];for(var K in x)x.hasOwnProperty(K)&&(y.hasOwnProperty(K)&&(y["_"+K]=y[K]),y[K]=x[K])}if(y.name=i.name,i.helperType&&(y.helperType=i.helperType),i.modeProps)for(var se in i.modeProps)y[se]=i.modeProps[se];return y}var ln={};function ui(e,i){var w=ln.hasOwnProperty(e)?ln[e]:ln[e]={};Ae(i,w)}function $r(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var w={};for(var y in i){var x=i[y];x instanceof Array&&(x=x.concat([])),w[y]=x}return w}function un(e,i){for(var w;e.innerMode&&(w=e.innerMode(i),!(!w||w.mode==e));)i=w.state,e=w.mode;return w||{mode:e,state:i}}function Nn(e,i,w){return e.startState?e.startState(i,w):!0}var ir=function(e,i,w){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=w};ir.prototype.eol=function(){return this.pos>=this.string.length},ir.prototype.sol=function(){return this.pos==this.lineStart},ir.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ir.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ir.prototype.eat=function(e){var i=this.string.charAt(this.pos),w;if(typeof e=="string"?w=i==e:w=i&&(e.test?e.test(i):e(i)),w)return++this.pos,i},ir.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},ir.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ir.prototype.skipToEnd=function(){this.pos=this.string.length},ir.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},ir.prototype.backUp=function(e){this.pos-=e},ir.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},ir.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},ir.prototype.match=function(e,i,w){if(typeof e=="string"){var y=function(se){return w?se.toLowerCase():se},x=this.string.substr(this.pos,e.length);if(y(x)==y(e))return i!==!1&&(this.pos+=e.length),!0}else{var K=this.string.slice(this.pos).match(e);return K&&K.index>0?null:(K&&i!==!1&&(this.pos+=K[0].length),K)}},ir.prototype.current=function(){return this.string.slice(this.start,this.pos)},ir.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},ir.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},ir.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function pt(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var w=e;!w.lines;)for(var y=0;;++y){var x=w.children[y],K=x.chunkSize();if(i<K){w=x;break}i-=K}return w.lines[i]}function gr(e,i,w){var y=[],x=i.line;return e.iter(i.line,w.line+1,function(K){var se=K.text;x==w.line&&(se=se.slice(0,w.ch)),x==i.line&&(se=se.slice(i.ch)),y.push(se),++x}),y}function Lr(e,i,w){var y=[];return e.iter(i,w,function(x){y.push(x.text)}),y}function $t(e,i){var w=i-e.height;if(w)for(var y=e;y;y=y.parent)y.height+=w}function jt(e){if(e.parent==null)return null;for(var i=e.parent,w=le(i.lines,e),y=i.parent;y;i=y,y=y.parent)for(var x=0;y.children[x]!=i;++x)w+=y.children[x].chunkSize();return w+i.first}function qr(e,i){var w=e.first;e:do{for(var y=0;y<e.children.length;++y){var x=e.children[y],K=x.height;if(i<K){e=x;continue e}i-=K,w+=x.chunkSize()}return w}while(!e.lines);for(var se=0;se<e.lines.length;++se){var de=e.lines[se],ve=de.height;if(i<ve)break;i-=ve}return w+se}function xn(e,i){return i>=e.first&&i<e.first+e.size}function Er(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function et(e,i,w){if(w===void 0&&(w=null),!(this instanceof et))return new et(e,i,w);this.line=e,this.ch=i,this.sticky=w}function Ct(e,i){return e.line-i.line||e.ch-i.ch}function En(e,i){return e.sticky==i.sticky&&Ct(e,i)==0}function Tn(e){return et(e.line,e.ch)}function Di(e,i){return Ct(e,i)<0?i:e}function ci(e,i){return Ct(e,i)<0?e:i}function en(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function wt(e,i){if(i.line<e.first)return et(e.first,0);var w=e.first+e.size-1;return i.line>w?et(w,pt(e,w).text.length):Mi(i,pt(e,i.line).text.length)}function Mi(e,i){var w=e.ch;return w==null||w>i?et(e.line,i):w<0?et(e.line,0):e}function Wn(e,i){for(var w=[],y=0;y<i.length;y++)w[y]=wt(e,i[y]);return w}var fi=function(e,i){this.state=e,this.lookAhead=i},sr=function(e,i,w,y){this.state=i,this.doc=e,this.line=w,this.maxLookAhead=y||0,this.baseTokens=null,this.baseTokenPos=1};sr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},sr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},sr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sr.fromSaved=function(e,i,w){return i instanceof fi?new sr(e,$r(e.mode,i.state),w,i.lookAhead):new sr(e,$r(e.mode,i),w)},sr.prototype.save=function(e){var i=e!==!1?$r(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fi(i,this.maxLookAhead):i};function Ri(e,i,w,y){var x=[e.state.modeGen],K={};us(e,i.text,e.doc.mode,w,function(we,Fe){return x.push(we,Fe)},K,y);for(var se=w.state,de=function(we){w.baseTokens=x;var Fe=e.state.overlays[we],Ie=1,Re=0;w.state=!0,us(e,i.text,Fe.mode,w,function(Me,Ve){for(var Ze=Ie;Re<Me;){var tt=x[Ie];tt>Me&&x.splice(Ie,1,Me,x[Ie+1],tt),Ie+=2,Re=Math.min(Me,tt)}if(Ve)if(Fe.opaque)x.splice(Ze,Ie-Ze,Me,"overlay "+Ve),Ie=Ze+2;else for(;Ze<Ie;Ze+=2){var ot=x[Ze+1];x[Ze+1]=(ot?ot+" ":"")+"overlay "+Ve}},K),w.state=se,w.baseTokens=null,w.baseTokenPos=1},ve=0;ve<e.state.overlays.length;++ve)de(ve);return{styles:x,classes:K.bgClass||K.textClass?K:null}}function as(e,i,w){if(!i.styles||i.styles[0]!=e.state.modeGen){var y=Fn(e,jt(i)),x=i.text.length>e.options.maxHighlightLength&&$r(e.doc.mode,y.state),K=Ri(e,i,y);x&&(y.state=x),i.stateAfter=y.save(!x),i.styles=K.styles,K.classes?i.styleClasses=K.classes:i.styleClasses&&(i.styleClasses=null),w===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function Fn(e,i,w){var y=e.doc,x=e.display;if(!y.mode.startState)return new sr(y,!0,i);var K=cs(e,i,w),se=K>y.first&&pt(y,K-1).stateAfter,de=se?sr.fromSaved(y,se,K):new sr(y,Nn(y.mode),K);return y.iter(K,i,function(ve){As(e,ve.text,de);var we=de.line;ve.stateAfter=we==i-1||we%5==0||we>=x.viewFrom&&we<x.viewTo?de.save():null,de.nextLine()}),w&&(y.modeFrontier=de.line),de}function As(e,i,w,y){var x=e.doc.mode,K=new ir(i,e.options.tabSize,w);for(K.start=K.pos=y||0,i==""&&Ys(x,w.state);!K.eol();)ls(x,K,w.state),K.start=K.pos}function Ys(e,i){if(e.blankLine)return e.blankLine(i);if(e.innerMode){var w=un(e,i);if(w.mode.blankLine)return w.mode.blankLine(w.state)}}function ls(e,i,w,y){for(var x=0;x<10;x++){y&&(y[0]=un(e,w).mode);var K=e.token(i,w);if(i.pos>i.start)return K}throw new Error("Mode "+e.name+" failed to advance stream.")}var Kn=function(e,i,w){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=w};function Js(e,i,w,y){var x=e.doc,K=x.mode,se;i=wt(x,i);var de=pt(x,i.line),ve=Fn(e,i.line,w),we=new ir(de.text,e.options.tabSize,ve),Fe;for(y&&(Fe=[]);(y||we.pos<i.ch)&&!we.eol();)we.start=we.pos,se=ls(K,we,ve.state),y&&Fe.push(new Kn(we,se,$r(x.mode,ve.state)));return y?Fe:new Kn(we,se,ve.state)}function hi(e,i){if(e)for(;;){var w=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!w)break;e=e.slice(0,w.index)+e.slice(w.index+w[0].length);var y=w[1]?"bgClass":"textClass";i[y]==null?i[y]=w[2]:new RegExp("(?:^|\\s)"+w[2]+"(?:$|\\s)").test(i[y])||(i[y]+=" "+w[2])}return e}function us(e,i,w,y,x,K,se){var de=w.flattenSpans;de==null&&(de=e.options.flattenSpans);var ve=0,we=null,Fe=new ir(i,e.options.tabSize,y),Ie,Re=e.options.addModeClass&&[null];for(i==""&&hi(Ys(w,y.state),K);!Fe.eol();){if(Fe.pos>e.options.maxHighlightLength?(de=!1,se&&As(e,i,y,Fe.pos),Fe.pos=i.length,Ie=null):Ie=hi(ls(w,Fe,y.state,Re),K),Re){var Me=Re[0].name;Me&&(Ie="m-"+(Ie?Me+" "+Ie:Me))}if(!de||we!=Ie){for(;ve<Fe.start;)ve=Math.min(Fe.start,ve+5e3),x(ve,we);we=Ie}Fe.start=Fe.pos}for(;ve<Fe.pos;){var Ve=Math.min(Fe.pos,ve+5e3);x(Ve,we),ve=Ve}}function cs(e,i,w){for(var y,x,K=e.doc,se=w?-1:i-(e.doc.mode.innerMode?1e3:100),de=i;de>se;--de){if(de<=K.first)return K.first;var ve=pt(K,de-1),we=ve.stateAfter;if(we&&(!w||de+(we instanceof fi?we.lookAhead:0)<=K.modeFrontier))return de;var Fe=U(ve.text,null,e.options.tabSize);(x==null||y>Fe)&&(x=de-1,y=Fe)}return x}function ji(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var w=e.first,y=i-1;y>w;y--){var x=pt(e,y).stateAfter;if(x&&(!(x instanceof fi)||y+x.lookAhead<i)){w=y+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,w)}}var Zs=!1,Rr=!1;function Gn(){Zs=!0}function yn(){Rr=!0}function Qi(e,i,w){this.marker=e,this.from=i,this.to=w}function zn(e,i){if(e)for(var w=0;w<e.length;++w){var y=e[w];if(y.marker==i)return y}}function Po(e,i){for(var w,y=0;y<e.length;++y)e[y]!=i&&(w||(w=[])).push(e[y]);return w}function di(e,i){e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],i.marker.attachLine(e)}function Vn(e,i,w){var y;if(e)for(var x=0;x<e.length;++x){var K=e[x],se=K.marker,de=K.from==null||(se.inclusiveLeft?K.from<=i:K.from<i);if(de||K.from==i&&se.type=="bookmark"&&(!w||!K.marker.insertLeft)){var ve=K.to==null||(se.inclusiveRight?K.to>=i:K.to>i);(y||(y=[])).push(new Qi(se,K.from,ve?null:K.to))}}return y}function Ho(e,i,w){var y;if(e)for(var x=0;x<e.length;++x){var K=e[x],se=K.marker,de=K.to==null||(se.inclusiveRight?K.to>=i:K.to>i);if(de||K.from==i&&se.type=="bookmark"&&(!w||K.marker.insertLeft)){var ve=K.from==null||(se.inclusiveLeft?K.from<=i:K.from<i);(y||(y=[])).push(new Qi(se,ve?null:K.from-i,K.to==null?null:K.to-i))}}return y}function tn(e,i){if(i.full)return null;var w=xn(e,i.from.line)&&pt(e,i.from.line).markedSpans,y=xn(e,i.to.line)&&pt(e,i.to.line).markedSpans;if(!w&&!y)return null;var x=i.from.ch,K=i.to.ch,se=Ct(i.from,i.to)==0,de=Vn(w,x,se),ve=Ho(y,K,se),we=i.text.length==1,Fe=Se(i.text).length+(we?x:0);if(de)for(var Ie=0;Ie<de.length;++Ie){var Re=de[Ie];if(Re.to==null){var Me=zn(ve,Re.marker);Me?we&&(Re.to=Me.to==null?null:Me.to+Fe):Re.to=x}}if(ve)for(var Ve=0;Ve<ve.length;++Ve){var Ze=ve[Ve];if(Ze.to!=null&&(Ze.to+=Fe),Ze.from==null){var tt=zn(de,Ze.marker);tt||(Ze.from=Fe,we&&(de||(de=[])).push(Ze))}else Ze.from+=Fe,we&&(de||(de=[])).push(Ze)}de&&(de=Hr(de)),ve&&ve!=de&&(ve=Hr(ve));var ot=[de];if(!we){var lt=i.text.length-2,at;if(lt>0&&de)for(var ct=0;ct<de.length;++ct)de[ct].to==null&&(at||(at=[])).push(new Qi(de[ct].marker,null,null));for(var yt=0;yt<lt;++yt)ot.push(at);ot.push(ve)}return ot}function Hr(e){for(var i=0;i<e.length;++i){var w=e[i];w.from!=null&&w.from==w.to&&w.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function ol(e,i,w){var y=null;if(e.iter(i.line,w.line+1,function(Me){if(Me.markedSpans)for(var Ve=0;Ve<Me.markedSpans.length;++Ve){var Ze=Me.markedSpans[Ve].marker;Ze.readOnly&&(!y||le(y,Ze)==-1)&&(y||(y=[])).push(Ze)}}),!y)return null;for(var x=[{from:i,to:w}],K=0;K<y.length;++K)for(var se=y[K],de=se.find(0),ve=0;ve<x.length;++ve){var we=x[ve];if(!(Ct(we.to,de.from)<0||Ct(we.from,de.to)>0)){var Fe=[ve,1],Ie=Ct(we.from,de.from),Re=Ct(we.to,de.to);(Ie<0||!se.inclusiveLeft&&!Ie)&&Fe.push({from:we.from,to:de.from}),(Re>0||!se.inclusiveRight&&!Re)&&Fe.push({from:de.to,to:we.to}),x.splice.apply(x,Fe),ve+=Fe.length-3}}return x}function Ua(e){var i=e.markedSpans;if(i){for(var w=0;w<i.length;++w)i[w].marker.detachLine(e);e.markedSpans=null}}function cn(e,i){if(i){for(var w=0;w<i.length;++w)i[w].marker.attachLine(e);e.markedSpans=i}}function fs(e){return e.inclusiveLeft?-1:0}function hs(e){return e.inclusiveRight?1:0}function $s(e,i){var w=e.lines.length-i.lines.length;if(w!=0)return w;var y=e.find(),x=i.find(),K=Ct(y.from,x.from)||fs(e)-fs(i);if(K)return-K;var se=Ct(y.to,x.to)||hs(e)-hs(i);return se||i.id-e.id}function Da(e,i){var w=Rr&&e.markedSpans,y;if(w)for(var x=void 0,K=0;K<w.length;++K)x=w[K],x.marker.collapsed&&(i?x.from:x.to)==null&&(!y||$s(y,x.marker)<0)&&(y=x.marker);return y}function Ma(e){return Da(e,!0)}function eo(e){return Da(e,!1)}function Ra(e,i){var w=Rr&&e.markedSpans,y;if(w)for(var x=0;x<w.length;++x){var K=w[x];K.marker.collapsed&&(K.from==null||K.from<i)&&(K.to==null||K.to>i)&&(!y||$s(y,K.marker)<0)&&(y=K.marker)}return y}function No(e,i,w,y,x){var K=pt(e,i),se=Rr&&K.markedSpans;if(se)for(var de=0;de<se.length;++de){var ve=se[de];if(ve.marker.collapsed){var we=ve.marker.find(0),Fe=Ct(we.from,w)||fs(ve.marker)-fs(x),Ie=Ct(we.to,y)||hs(ve.marker)-hs(x);if(!(Fe>=0&&Ie<=0||Fe<=0&&Ie>=0)&&(Fe<=0&&(ve.marker.inclusiveRight&&x.inclusiveLeft?Ct(we.to,w)>=0:Ct(we.to,w)>0)||Fe>=0&&(ve.marker.inclusiveRight&&x.inclusiveLeft?Ct(we.from,y)<=0:Ct(we.from,y)<0)))return!0}}}function fn(e){for(var i;i=Ma(e);)e=i.find(-1,!0).line;return e}function al(e){for(var i;i=eo(e);)e=i.find(1,!0).line;return e}function Al(e){for(var i,w;i=eo(e);)e=i.find(1,!0).line,(w||(w=[])).push(e);return w}function Cr(e,i){var w=pt(e,i),y=fn(w);return w==y?i:jt(y)}function ja(e,i){if(i>e.lastLine())return i;var w=pt(e,i),y;if(!zr(e,w))return i;for(;y=eo(w);)w=y.find(1,!0).line;return jt(w)+1}function zr(e,i){var w=Rr&&i.markedSpans;if(w){for(var y=void 0,x=0;x<w.length;++x)if(y=w[x],!!y.marker.collapsed){if(y.from==null)return!0;if(!y.marker.widgetNode&&y.from==0&&y.marker.inclusiveLeft&&Wo(e,i,y))return!0}}}function Wo(e,i,w){if(w.to==null){var y=w.marker.find(1,!0);return Wo(e,y.line,zn(y.line.markedSpans,w.marker))}if(w.marker.inclusiveRight&&w.to==i.text.length)return!0;for(var x=void 0,K=0;K<i.markedSpans.length;++K)if(x=i.markedSpans[K],x.marker.collapsed&&!x.marker.widgetNode&&x.from==w.to&&(x.to==null||x.to!=w.from)&&(x.marker.inclusiveLeft||w.marker.inclusiveRight)&&Wo(e,i,x))return!0}function kn(e){e=fn(e);for(var i=0,w=e.parent,y=0;y<w.lines.length;++y){var x=w.lines[y];if(x==e)break;i+=x.height}for(var K=w.parent;K;w=K,K=w.parent)for(var se=0;se<K.children.length;++se){var de=K.children[se];if(de==w)break;i+=de.height}return i}function to(e){if(e.height==0)return 0;for(var i=e.text.length,w,y=e;w=Ma(y);){var x=w.find(0,!0);y=x.from.line,i+=x.from.ch-x.to.ch}for(y=e;w=eo(y);){var K=w.find(0,!0);i-=y.text.length-K.from.ch,y=K.to.line,i+=y.text.length-K.to.ch}return i}function Ko(e){var i=e.display,w=e.doc;i.maxLine=pt(w,w.first),i.maxLineLength=to(i.maxLine),i.maxLineChanged=!0,w.iter(function(y){var x=to(y);x>i.maxLineLength&&(i.maxLineLength=x,i.maxLine=y)})}var In=function(e,i,w){this.text=e,cn(this,i),this.height=w?w(this):1};In.prototype.lineNo=function(){return jt(this)},He(In);function ro(e,i,w,y){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ua(e),cn(e,w);var x=y?y(e):1;x!=e.height&&$t(e,x)}function Qa(e){e.parent=null,Ua(e)}var ll={},Xn={};function ds(e,i){if(!e||/^\s*$/.test(e))return null;var w=i.addModeClass?Xn:ll;return w[e]||(w[e]=e.replace(/\S+/g,"cm-$&"))}function no(e,i){var w=M("span",null,null,u?"padding-right: .1px":null),y={pre:M("pre",[w],"CodeMirror-line"),content:w,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var x=0;x<=(i.rest?i.rest.length:0);x++){var K=x?i.rest[x-1]:i.line,se=void 0;y.pos=0,y.addToken=cl,Xt(e.display.measure)&&(se=$e(K,e.doc.direction))&&(y.addToken=hl(y.addToken,se)),y.map=[];var de=i!=e.display.externalMeasured&&jt(K);dl(K,y,as(e,K,de)),K.styleClasses&&(K.styleClasses.bgClass&&(y.bgClass=G(K.styleClasses.bgClass,y.bgClass||"")),K.styleClasses.textClass&&(y.textClass=G(K.styleClasses.textClass,y.textClass||""))),y.map.length==0&&y.map.push(0,0,y.content.appendChild(Qt(e.display.measure))),x==0?(i.measure.map=y.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(y.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(u){var ve=y.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(y.content.className="cm-tab-wrap-hack")}return ze(e,"renderLine",e,i.line,y.pre),y.pre.className&&(y.textClass=G(y.pre.className,y.textClass||"")),y}function ul(e){var i=E("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function cl(e,i,w,y,x,K,se){if(i){var de=e.splitSpaces?fl(i,e.trailingSpace):i,ve=e.cm.state.specialChars,we=!1,Fe;if(!ve.test(i))e.col+=i.length,Fe=document.createTextNode(de),e.map.push(e.pos,e.pos+i.length,Fe),b&&a<9&&(we=!0),e.pos+=i.length;else{Fe=document.createDocumentFragment();for(var Ie=0;;){ve.lastIndex=Ie;var Re=ve.exec(i),Me=Re?Re.index-Ie:i.length-Ie;if(Me){var Ve=document.createTextNode(de.slice(Ie,Ie+Me));b&&a<9?Fe.appendChild(E("span",[Ve])):Fe.appendChild(Ve),e.map.push(e.pos,e.pos+Me,Ve),e.col+=Me,e.pos+=Me}if(!Re)break;Ie+=Me+1;var Ze=void 0;if(Re[0]==" "){var tt=e.cm.options.tabSize,ot=tt-e.col%tt;Ze=Fe.appendChild(E("span",xe(ot),"cm-tab")),Ze.setAttribute("role","presentation"),Ze.setAttribute("cm-text"," "),e.col+=ot}else Re[0]=="\r"||Re[0]==`
|
|
|
`?(Ze=Fe.appendChild(E("span",Re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ze.setAttribute("cm-text",Re[0]),e.col+=1):(Ze=e.cm.options.specialCharPlaceholder(Re[0]),Ze.setAttribute("cm-text",Re[0]),b&&a<9?Fe.appendChild(E("span",[Ze])):Fe.appendChild(Ze),e.col+=1);e.map.push(e.pos,e.pos+1,Ze),e.pos++}}if(e.trailingSpace=de.charCodeAt(i.length-1)==32,w||y||x||we||K||se){var lt=w||"";y&&(lt+=y),x&&(lt+=x);var at=E("span",[Fe],lt,K);if(se)for(var ct in se)se.hasOwnProperty(ct)&&ct!="style"&&ct!="class"&&at.setAttribute(ct,se[ct]);return e.content.appendChild(at)}e.content.appendChild(Fe)}}function fl(e,i){if(e.length>1&&!/ /.test(e))return e;for(var w=i,y="",x=0;x<e.length;x++){var K=e.charAt(x);K==" "&&w&&(x==e.length-1||e.charCodeAt(x+1)==32)&&(K="\xA0"),y+=K,w=K==" "}return y}function hl(e,i){return function(w,y,x,K,se,de,ve){x=x?x+" cm-force-border":"cm-force-border";for(var we=w.pos,Fe=we+y.length;;){for(var Ie=void 0,Re=0;Re<i.length&&(Ie=i[Re],!(Ie.to>we&&Ie.from<=we));Re++);if(Ie.to>=Fe)return e(w,y,x,K,se,de,ve);e(w,y.slice(0,Ie.to-we),x,K,null,de,ve),K=null,y=y.slice(Ie.to-we),we=Ie.to}}}function Pa(e,i,w,y){var x=!y&&w.widgetNode;x&&e.map.push(e.pos,e.pos+i,x),!y&&e.cm.display.input.needsContentAttribute&&(x||(x=e.content.appendChild(document.createElement("span"))),x.setAttribute("cm-marker",w.id)),x&&(e.cm.display.input.setUneditable(x),e.content.appendChild(x)),e.pos+=i,e.trailingSpace=!1}function dl(e,i,w){var y=e.markedSpans,x=e.text,K=0;if(!y){for(var se=1;se<w.length;se+=2)i.addToken(i,x.slice(K,K=w[se]),ds(w[se+1],i.cm.options));return}for(var de=x.length,ve=0,we=1,Fe="",Ie,Re,Me=0,Ve,Ze,tt,ot,lt;;){if(Me==ve){Ve=Ze=tt=Re="",lt=null,ot=null,Me=1/0;for(var at=[],ct=void 0,yt=0;yt<y.length;++yt){var vt=y[yt],Ft=vt.marker;if(Ft.type=="bookmark"&&vt.from==ve&&Ft.widgetNode)at.push(Ft);else if(vt.from<=ve&&(vt.to==null||vt.to>ve||Ft.collapsed&&vt.to==ve&&vt.from==ve)){if(vt.to!=null&&vt.to!=ve&&Me>vt.to&&(Me=vt.to,Ze=""),Ft.className&&(Ve+=" "+Ft.className),Ft.css&&(Re=(Re?Re+";":"")+Ft.css),Ft.startStyle&&vt.from==ve&&(tt+=" "+Ft.startStyle),Ft.endStyle&&vt.to==Me&&(ct||(ct=[])).push(Ft.endStyle,vt.to),Ft.title&&((lt||(lt={})).title=Ft.title),Ft.attributes)for(var Jt in Ft.attributes)(lt||(lt={}))[Jt]=Ft.attributes[Jt];Ft.collapsed&&(!ot||$s(ot.marker,Ft)<0)&&(ot=vt)}else vt.from>ve&&Me>vt.from&&(Me=vt.from)}if(ct)for(var yr=0;yr<ct.length;yr+=2)ct[yr+1]==Me&&(Ze+=" "+ct[yr]);if(!ot||ot.from==ve)for(var ar=0;ar<at.length;++ar)Pa(i,0,at[ar]);if(ot&&(ot.from||0)==ve){if(Pa(i,(ot.to==null?de+1:ot.to)-ve,ot.marker,ot.from==null),ot.to==null)return;ot.to==ve&&(ot=!1)}}if(ve>=de)break;for(var Kr=Math.min(de,Me);;){if(Fe){var kr=ve+Fe.length;if(!ot){var cr=kr>Kr?Fe.slice(0,Kr-ve):Fe;i.addToken(i,cr,Ie?Ie+Ve:Ve,tt,ve+cr.length==Me?Ze:"",Re,lt)}if(kr>=Kr){Fe=Fe.slice(Kr-ve),ve=Kr;break}ve=kr,tt=""}Fe=x.slice(K,K=w[we++]),Ie=ds(w[we++],i.cm.options)}}}function Ha(e,i,w){this.line=i,this.rest=Al(i),this.size=this.rest?jt(Se(this.rest))-w+1:1,this.node=this.text=null,this.hidden=zr(e,i)}function io(e,i,w){for(var y=[],x,K=i;K<w;K=x){var se=new Ha(e.doc,pt(e.doc,K),K);x=K+se.size,y.push(se)}return y}var Pi=null;function pl(e){Pi?Pi.ops.push(e):e.ownsGroup=Pi={ops:[e],delayedCallbacks:[]}}function gl(e){var i=e.delayedCallbacks,w=0;do{for(;w<i.length;w++)i[w].call(null);for(var y=0;y<e.ops.length;y++){var x=e.ops[y];if(x.cursorActivityHandlers)for(;x.cursorActivityCalled<x.cursorActivityHandlers.length;)x.cursorActivityHandlers[x.cursorActivityCalled++].call(null,x.cm)}}while(w<i.length)}function vl(e,i){var w=e.ownsGroup;if(w)try{gl(w)}finally{Pi=null,i(w)}}var Yn=null;function Br(e,i){var w=Ue(e,i);if(w.length){var y=Array.prototype.slice.call(arguments,2),x;Pi?x=Pi.delayedCallbacks:Yn?x=Yn:(x=Yn=[],setTimeout(ml,0));for(var K=function(de){x.push(function(){return w[de].apply(null,y)})},se=0;se<w.length;++se)K(se)}}function ml(){var e=Yn;Yn=null;for(var i=0;i<e.length;++i)e[i]()}function Na(e,i,w,y){for(var x=0;x<i.changes.length;x++){var K=i.changes[x];K=="text"?bl(e,i):K=="gutter"?so(e,i,w,y):K=="class"?Go(e,i):K=="widget"&&Ka(e,i,y)}i.changes=null}function ps(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&a<8&&(e.node.style.zIndex=2)),e.node}function yl(e,i){var w=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(w&&(w+=" CodeMirror-linebackground"),i.background)w?i.background.className=w:(i.background.parentNode.removeChild(i.background),i.background=null);else if(w){var y=ps(i);i.background=y.insertBefore(E("div",null,w),y.firstChild),e.display.input.setUneditable(i.background)}}function Wa(e,i){var w=e.display.externalMeasured;return w&&w.line==i.line?(e.display.externalMeasured=null,i.measure=w.measure,w.built):no(e,i)}function bl(e,i){var w=i.text.className,y=Wa(e,i);i.text==i.node&&(i.node=y.pre),i.text.parentNode.replaceChild(y.pre,i.text),i.text=y.pre,y.bgClass!=i.bgClass||y.textClass!=i.textClass?(i.bgClass=y.bgClass,i.textClass=y.textClass,Go(e,i)):w&&(i.text.className=w)}function Go(e,i){yl(e,i),i.line.wrapClass?ps(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var w=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=w||""}function so(e,i,w,y){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var x=ps(i);i.gutterBackground=E("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px; width: "+y.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),x.insertBefore(i.gutterBackground,i.text)}var K=i.line.gutterMarkers;if(e.options.lineNumbers||K){var se=ps(i),de=i.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px");if(e.display.input.setUneditable(de),se.insertBefore(de,i.text),i.line.gutterClass&&(de.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!K||!K["CodeMirror-linenumbers"])&&(i.lineNumber=de.appendChild(E("div",Er(e.options,w),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+y.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),K)for(var ve=0;ve<e.display.gutterSpecs.length;++ve){var we=e.display.gutterSpecs[ve].className,Fe=K.hasOwnProperty(we)&&K[we];Fe&&de.appendChild(E("div",[Fe],"CodeMirror-gutter-elt","left: "+y.gutterLeft[we]+"px; width: "+y.gutterWidth[we]+"px"))}}}function Ka(e,i,w){i.alignable&&(i.alignable=null);for(var y=F("CodeMirror-linewidget"),x=i.node.firstChild,K=void 0;x;x=K)K=x.nextSibling,y.test(x.className)&&i.node.removeChild(x);Hi(e,i,w)}function Ga(e,i,w,y){var x=Wa(e,i);return i.text=i.node=x.pre,x.bgClass&&(i.bgClass=x.bgClass),x.textClass&&(i.textClass=x.textClass),Go(e,i),so(e,i,w,y),Hi(e,i,y),i.node}function Hi(e,i,w){if(pi(e,i.line,i,w,!0),i.rest)for(var y=0;y<i.rest.length;y++)pi(e,i.rest[y],i,w,!1)}function pi(e,i,w,y,x){if(i.widgets)for(var K=ps(w),se=0,de=i.widgets;se<de.length;++se){var ve=de[se],we=E("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||we.setAttribute("cm-ignore-events","true"),Yt(ve,we,w,y),e.display.input.setUneditable(we),x&&ve.above?K.insertBefore(we,w.gutter||w.text):K.appendChild(we),Br(ve,"redraw")}}function Yt(e,i,w,y){if(e.noHScroll){(w.alignable||(w.alignable=[])).push(i);var x=y.wrapperWidth;i.style.left=y.fixedPos+"px",e.coverGutter||(x-=y.gutterTotalWidth,i.style.paddingLeft=y.gutterTotalWidth+"px"),i.style.width=x+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-y.gutterTotalWidth+"px"))}function gs(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!V(document.body,e.node)){var w="position: relative;";e.coverGutter&&(w+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(w+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,E("div",[e.node],null,w))}return e.height=e.node.parentNode.offsetHeight}function hn(e,i){for(var w=xt(i);w!=e.wrapper;w=w.parentNode)if(!w||w.nodeType==1&&w.getAttribute("cm-ignore-events")=="true"||w.parentNode==e.sizer&&w!=e.mover)return!0}function vs(e){return e.lineSpace.offsetTop}function Jn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function dn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=I(e.measure,E("pre","x","CodeMirror-line-like")),w=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,y={left:parseInt(w.paddingLeft),right:parseInt(w.paddingRight)};return!isNaN(y.left)&&!isNaN(y.right)&&(e.cachedPaddingH=y),y}function bn(e){return he-e.display.nativeBarWidth}function Nr(e){return e.display.scroller.clientWidth-bn(e)-e.display.barWidth}function ur(e){return e.display.scroller.clientHeight-bn(e)-e.display.barHeight}function za(e,i,w){var y=e.options.lineWrapping,x=y&&Nr(e);if(!i.measure.heights||y&&i.measure.width!=x){var K=i.measure.heights=[];if(y){i.measure.width=x;for(var se=i.text.firstChild.getClientRects(),de=0;de<se.length-1;de++){var ve=se[de],we=se[de+1];Math.abs(ve.bottom-we.bottom)>2&&K.push((ve.bottom+we.top)/2-w.top)}}K.push(w.bottom-w.top)}}function _r(e,i,w){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};for(var y=0;y<e.rest.length;y++)if(e.rest[y]==i)return{map:e.measure.maps[y],cache:e.measure.caches[y]};for(var x=0;x<e.rest.length;x++)if(jt(e.rest[x])>w)return{map:e.measure.maps[x],cache:e.measure.caches[x],before:!0}}function zo(e,i){i=fn(i);var w=jt(i),y=e.display.externalMeasured=new Ha(e.doc,i,w);y.lineN=w;var x=y.built=no(e,y);return y.text=x.pre,I(e.display.lineMeasure,x.pre),y}function Ln(e,i,w,y){return pn(e,Kt(e,i),w,y)}function gi(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[$n(e,i)];var w=e.display.externalMeasured;if(w&&i>=w.lineN&&i<w.lineN+w.size)return w}function Kt(e,i){var w=jt(i),y=gi(e,w);y&&!y.text?y=null:y&&y.changes&&(Na(e,y,w,Zo(e)),e.curOp.forceUpdate=!0),y||(y=zo(e,i));var x=_r(y,i,w);return{line:i,view:y,rect:null,map:x.map,cache:x.cache,before:x.before,hasHeights:!1}}function pn(e,i,w,y,x){i.before&&(w=-1);var K=w+(y||""),se;return i.cache.hasOwnProperty(K)?se=i.cache[K]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(za(e,i.view,i.rect),i.hasHeights=!0),se=oo(e,i,w,y),se.bogus||(i.cache[K]=se)),{left:se.left,right:se.right,top:x?se.rtop:se.top,bottom:x?se.rbottom:se.bottom}}var Vo={left:0,right:0,top:0,bottom:0};function Xo(e,i,w){for(var y,x,K,se,de,ve,we=0;we<e.length;we+=3)if(de=e[we],ve=e[we+1],i<de?(x=0,K=1,se="left"):i<ve?(x=i-de,K=x+1):(we==e.length-3||i==ve&&e[we+3]>i)&&(K=ve-de,x=K-1,i>=ve&&(se="right")),x!=null){if(y=e[we+2],de==ve&&w==(y.insertLeft?"left":"right")&&(se=w),w=="left"&&x==0)for(;we&&e[we-2]==e[we-3]&&e[we-1].insertLeft;)y=e[(we-=3)+2],se="left";if(w=="right"&&x==ve-de)for(;we<e.length-3&&e[we+3]==e[we+4]&&!e[we+5].insertLeft;)y=e[(we+=3)+2],se="right";break}return{node:y,start:x,end:K,collapse:se,coverStart:de,coverEnd:ve}}function Va(e,i){var w=Vo;if(i=="left")for(var y=0;y<e.length&&(w=e[y]).left==w.right;y++);else for(var x=e.length-1;x>=0&&(w=e[x]).left==w.right;x--);return w}function oo(e,i,w,y){var x=Xo(i.map,w,y),K=x.node,se=x.start,de=x.end,ve=x.collapse,we;if(K.nodeType==3){for(var Fe=0;Fe<4;Fe++){for(;se&&Y(i.line.text.charAt(x.coverStart+se));)--se;for(;x.coverStart+de<x.coverEnd&&Y(i.line.text.charAt(x.coverStart+de));)++de;if(b&&a<9&&se==0&&de==x.coverEnd-x.coverStart?we=K.parentNode.getBoundingClientRect():we=Va(N(K,se,de).getClientRects(),y),we.left||we.right||se==0)break;de=se,se=se-1,ve="right"}b&&a<11&&(we=Xa(e.display.measure,we))}else{se>0&&(ve=y="right");var Ie;e.options.lineWrapping&&(Ie=K.getClientRects()).length>1?we=Ie[y=="right"?Ie.length-1:0]:we=K.getBoundingClientRect()}if(b&&a<9&&!se&&(!we||!we.left&&!we.right)){var Re=K.parentNode.getClientRects()[0];Re?we={left:Re.left,right:Re.left+Wi(e.display),top:Re.top,bottom:Re.bottom}:we=Vo}for(var Me=we.top-i.rect.top,Ve=we.bottom-i.rect.top,Ze=(Me+Ve)/2,tt=i.view.measure.heights,ot=0;ot<tt.length-1&&!(Ze<tt[ot]);ot++);var lt=ot?tt[ot-1]:0,at=tt[ot],ct={left:(ve=="right"?we.right:we.left)-i.rect.left,right:(ve=="left"?we.left:we.right)-i.rect.left,top:lt,bottom:at};return!we.left&&!we.right&&(ct.bogus=!0),e.options.singleCursorHeightPerLine||(ct.rtop=Me,ct.rbottom=Ve),ct}function Xa(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_t(e))return i;var w=screen.logicalXDPI/screen.deviceXDPI,y=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*w,right:i.right*w,top:i.top*y,bottom:i.bottom*y}}function Yo(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Vr(e){e.display.externalMeasure=null,S(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Yo(e.display.view[i])}function rn(e){Vr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function On(){return c&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function vr(){return c&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function wn(e){var i=0;if(e.widgets)for(var w=0;w<e.widgets.length;++w)e.widgets[w].above&&(i+=gs(e.widgets[w]));return i}function ms(e,i,w,y,x){if(!x){var K=wn(i);w.top+=K,w.bottom+=K}if(y=="line")return w;y||(y="local");var se=kn(i);if(y=="local"?se+=vs(e.display):se-=e.display.viewOffset,y=="page"||y=="window"){var de=e.display.lineSpace.getBoundingClientRect();se+=de.top+(y=="window"?0:vr());var ve=de.left+(y=="window"?0:On());w.left+=ve,w.right+=ve}return w.top+=se,w.bottom+=se,w}function Jo(e,i,w){if(w=="div")return i;var y=i.left,x=i.top;if(w=="page")y-=On(),x-=vr();else if(w=="local"||!w){var K=e.display.sizer.getBoundingClientRect();y+=K.left,x+=K.top}var se=e.display.lineSpace.getBoundingClientRect();return{left:y-se.left,top:x-se.top}}function ys(e,i,w,y,x){return y||(y=pt(e.doc,i.line)),ms(e,y,Ln(e,y,i.ch,x),w)}function nn(e,i,w,y,x,K){y=y||pt(e.doc,i.line),x||(x=Kt(e,y));function se(Ve,Ze){var tt=pn(e,x,Ve,Ze?"right":"left",K);return Ze?tt.left=tt.right:tt.right=tt.left,ms(e,y,tt,w)}var de=$e(y,e.doc.direction),ve=i.ch,we=i.sticky;if(ve>=y.text.length?(ve=y.text.length,we="before"):ve<=0&&(ve=0,we="after"),!de)return se(we=="before"?ve-1:ve,we=="before");function Fe(Ve,Ze,tt){var ot=de[Ze],lt=ot.level==1;return se(tt?Ve-1:Ve,lt!=tt)}var Ie=Le(de,ve,we),Re=Oe,Me=Fe(ve,Ie,we=="before");return Re!=null&&(Me.other=Fe(ve,Re,we!="before")),Me}function Ya(e,i){var w=0;i=wt(e.doc,i),e.options.lineWrapping||(w=Wi(e.display)*i.ch);var y=pt(e.doc,i.line),x=kn(y)+vs(e.display);return{left:w,right:w,top:x,bottom:x+y.height}}function vi(e,i,w,y,x){var K=et(e,i,w);return K.xRel=x,y&&(K.outside=y),K}function gn(e,i,w){var y=e.doc;if(w+=e.display.viewOffset,w<0)return vi(y.first,0,null,-1,-1);var x=qr(y,w),K=y.first+y.size-1;if(x>K)return vi(y.first+y.size-1,pt(y,K).text.length,null,1,1);i<0&&(i=0);for(var se=pt(y,x);;){var de=$a(e,se,x,i,w),ve=Ra(se,de.ch+(de.xRel>0||de.outside>0?1:0));if(!ve)return de;var we=ve.find(1);if(we.line==x)return we;se=pt(y,x=we.line)}}function Ja(e,i,w,y){y-=wn(i);var x=i.text.length,K=ge(function(se){return pn(e,w,se-1).bottom<=y},x,0);return x=ge(function(se){return pn(e,w,se).top>y},K,x),{begin:K,end:x}}function Za(e,i,w,y){w||(w=Kt(e,i));var x=ms(e,i,pn(e,w,y),"line").top;return Ja(e,i,w,x)}function Ni(e,i,w,y){return e.bottom<=w?!1:e.top>w?!0:(y?e.left:e.right)>i}function $a(e,i,w,y,x){x-=kn(i);var K=Kt(e,i),se=wn(i),de=0,ve=i.text.length,we=!0,Fe=$e(i,e.doc.direction);if(Fe){var Ie=(e.options.lineWrapping?Cl:wl)(e,i,w,K,Fe,y,x);we=Ie.level!=1,de=we?Ie.from:Ie.to-1,ve=we?Ie.to:Ie.from-1}var Re=null,Me=null,Ve=ge(function(yt){var vt=pn(e,K,yt);return vt.top+=se,vt.bottom+=se,Ni(vt,y,x,!1)?(vt.top<=x&&vt.left<=y&&(Re=yt,Me=vt),!0):!1},de,ve),Ze,tt,ot=!1;if(Me){var lt=y-Me.left<Me.right-y,at=lt==we;Ve=Re+(at?0:1),tt=at?"after":"before",Ze=lt?Me.left:Me.right}else{!we&&(Ve==ve||Ve==de)&&Ve++,tt=Ve==0?"after":Ve==i.text.length?"before":pn(e,K,Ve-(we?1:0)).bottom+se<=x==we?"after":"before";var ct=nn(e,et(w,Ve,tt),"line",i,K);Ze=ct.left,ot=x<ct.top?-1:x>=ct.bottom?1:0}return Ve=re(i.text,Ve,1),vi(w,Ve,tt,ot,y-Ze)}function wl(e,i,w,y,x,K,se){var de=ge(function(Ie){var Re=x[Ie],Me=Re.level!=1;return Ni(nn(e,et(w,Me?Re.to:Re.from,Me?"before":"after"),"line",i,y),K,se,!0)},0,x.length-1),ve=x[de];if(de>0){var we=ve.level!=1,Fe=nn(e,et(w,we?ve.from:ve.to,we?"after":"before"),"line",i,y);Ni(Fe,K,se,!0)&&Fe.top>se&&(ve=x[de-1])}return ve}function Cl(e,i,w,y,x,K,se){var de=Ja(e,i,y,se),ve=de.begin,we=de.end;/\s/.test(i.text.charAt(we-1))&&we--;for(var Fe=null,Ie=null,Re=0;Re<x.length;Re++){var Me=x[Re];if(!(Me.from>=we||Me.to<=ve)){var Ve=Me.level!=1,Ze=pn(e,y,Ve?Math.min(we,Me.to)-1:Math.max(ve,Me.from)).right,tt=Ze<K?K-Ze+1e9:Ze-K;(!Fe||Ie>tt)&&(Fe=Me,Ie=tt)}}return Fe||(Fe=x[x.length-1]),Fe.from<ve&&(Fe={from:ve,to:Fe.to,level:Fe.level}),Fe.to>we&&(Fe={from:Fe.from,to:we,level:Fe.level}),Fe}var Tr;function mi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Tr==null){Tr=E("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(E("br"));Tr.appendChild(document.createTextNode("x"))}I(e.measure,Tr);var w=Tr.offsetHeight/50;return w>3&&(e.cachedTextHeight=w),S(e.measure),w||1}function Wi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=E("span","xxxxxxxxxx"),w=E("pre",[i],"CodeMirror-line-like");I(e.measure,w);var y=i.getBoundingClientRect(),x=(y.right-y.left)/10;return x>2&&(e.cachedCharWidth=x),x||10}function Zo(e){for(var i=e.display,w={},y={},x=i.gutters.clientLeft,K=i.gutters.firstChild,se=0;K;K=K.nextSibling,++se){var de=e.display.gutterSpecs[se].className;w[de]=K.offsetLeft+K.clientLeft+x,y[de]=K.clientWidth}return{fixedPos:Ki(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:w,gutterWidth:y,wrapperWidth:i.wrapper.clientWidth}}function Ki(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function qa(e){var i=mi(e.display),w=e.options.lineWrapping,y=w&&Math.max(5,e.display.scroller.clientWidth/Wi(e.display)-3);return function(x){if(zr(e.doc,x))return 0;var K=0;if(x.widgets)for(var se=0;se<x.widgets.length;se++)x.widgets[se].height&&(K+=x.widgets[se].height);return w?K+(Math.ceil(x.text.length/y)||1)*i:K+i}}function ao(e){var i=e.doc,w=qa(e);i.iter(function(y){var x=w(y);x!=y.height&&$t(y,x)})}function Zn(e,i,w,y){var x=e.display;if(!w&&xt(i).getAttribute("cm-not-content")=="true")return null;var K,se,de=x.lineSpace.getBoundingClientRect();try{K=i.clientX-de.left,se=i.clientY-de.top}catch(Ie){return null}var ve=gn(e,K,se),we;if(y&&ve.xRel>0&&(we=pt(e.doc,ve.line).text).length==ve.ch){var Fe=U(we,we.length,e.options.tabSize)-we.length;ve=et(ve.line,Math.max(0,Math.round((K-dn(e.display).left)/Wi(e.display))-Fe))}return ve}function $n(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var w=e.display.view,y=0;y<w.length;y++)if(i-=w[y].size,i<0)return y}function Or(e,i,w,y){i==null&&(i=e.doc.first),w==null&&(w=e.doc.first+e.doc.size),y||(y=0);var x=e.display;if(y&&w<x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>i)&&(x.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=x.viewTo)Rr&&Cr(e.doc,i)<x.viewTo&&Dn(e);else if(w<=x.viewFrom)Rr&&ja(e.doc,w+y)>x.viewFrom?Dn(e):(x.viewFrom+=y,x.viewTo+=y);else if(i<=x.viewFrom&&w>=x.viewTo)Dn(e);else if(i<=x.viewFrom){var K=bs(e,w,w+y,1);K?(x.view=x.view.slice(K.index),x.viewFrom=K.lineN,x.viewTo+=y):Dn(e)}else if(w>=x.viewTo){var se=bs(e,i,i,-1);se?(x.view=x.view.slice(0,se.index),x.viewTo=se.lineN):Dn(e)}else{var de=bs(e,i,i,-1),ve=bs(e,w,w+y,1);de&&ve?(x.view=x.view.slice(0,de.index).concat(io(e,de.lineN,ve.lineN)).concat(x.view.slice(ve.index)),x.viewTo+=y):Dn(e)}var we=x.externalMeasured;we&&(w<we.lineN?we.lineN+=y:i<we.lineN+we.size&&(x.externalMeasured=null))}function Un(e,i,w){e.curOp.viewChanged=!0;var y=e.display,x=e.display.externalMeasured;if(x&&i>=x.lineN&&i<x.lineN+x.size&&(y.externalMeasured=null),!(i<y.viewFrom||i>=y.viewTo)){var K=y.view[$n(e,i)];if(K.node!=null){var se=K.changes||(K.changes=[]);le(se,w)==-1&&se.push(w)}}}function Dn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function bs(e,i,w,y){var x=$n(e,i),K,se=e.display.view;if(!Rr||w==e.doc.first+e.doc.size)return{index:x,lineN:w};for(var de=e.display.viewFrom,ve=0;ve<x;ve++)de+=se[ve].size;if(de!=i){if(y>0){if(x==se.length-1)return null;K=de+se[x].size-i,x++}else K=de-i;i+=K,w+=K}for(;Cr(e.doc,w)!=w;){if(x==(y<0?0:se.length-1))return null;w+=y*se[x-(y<0?1:0)].size,x+=y}return{index:x,lineN:w}}function eA(e,i,w){var y=e.display,x=y.view;x.length==0||i>=y.viewTo||w<=y.viewFrom?(y.view=io(e,i,w),y.viewFrom=i):(y.viewFrom>i?y.view=io(e,i,y.viewFrom).concat(y.view):y.viewFrom<i&&(y.view=y.view.slice($n(e,i))),y.viewFrom=i,y.viewTo<w?y.view=y.view.concat(io(e,y.viewTo,w)):y.viewTo>w&&(y.view=y.view.slice(0,$n(e,w)))),y.viewTo=w}function tA(e){for(var i=e.display.view,w=0,y=0;y<i.length;y++){var x=i[y];!x.hidden&&(!x.node||x.changes)&&++w}return w}function qn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function rA(e,i){i===void 0&&(i=!0);for(var w=e.doc,y={},x=y.cursors=document.createDocumentFragment(),K=y.selection=document.createDocumentFragment(),se=0;se<w.sel.ranges.length;se++)if(!(!i&&se==w.sel.primIndex)){var de=w.sel.ranges[se];if(!(de.from().line>=e.display.viewTo||de.to().line<e.display.viewFrom)){var ve=de.empty();(ve||e.options.showCursorWhenSelecting)&&nA(e,de.head,x),ve||Bl(e,de,K)}}return y}function nA(e,i,w){var y=nn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),x=w.appendChild(E("div","\xA0","CodeMirror-cursor"));if(x.style.left=y.left+"px",x.style.top=y.top+"px",x.style.height=Math.max(0,y.bottom-y.top)*e.options.cursorHeight+"px",y.other){var K=w.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));K.style.display="",K.style.left=y.other.left+"px",K.style.top=y.other.top+"px",K.style.height=(y.other.bottom-y.other.top)*.85+"px"}}function Gi(e,i){return e.top-i.top||e.left-i.left}function Bl(e,i,w){var y=e.display,x=e.doc,K=document.createDocumentFragment(),se=dn(e.display),de=se.left,ve=Math.max(y.sizerWidth,Nr(e)-y.sizer.offsetLeft)-se.right,we=x.direction=="ltr";function Fe(at,ct,yt,vt){ct<0&&(ct=0),ct=Math.round(ct),vt=Math.round(vt),K.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+at+`px;
|
|
|
top: `+ct+"px; width: "+(yt==null?ve-at:yt)+`px;
|
|
|
height: `+(vt-ct)+"px"))}function Ie(at,ct,yt){var vt=pt(x,at),Ft=vt.text.length,Jt,yr;function ar(cr,Ir){return ys(e,et(at,cr),"div",vt,Ir)}function Kr(cr,Ir,Sr){var it=Za(e,vt,null,cr),er=Ir=="ltr"==(Sr=="after")?"left":"right",tr=Sr=="after"?it.begin:it.end-(/\s/.test(vt.text.charAt(it.end-1))?2:1);return ar(tr,er)[er]}var kr=$e(vt,x.direction);return Be(kr,ct||0,yt==null?Ft:yt,function(cr,Ir,Sr,it){var er=Sr=="ltr",tr=ar(cr,er?"left":"right"),rr=ar(Ir-1,er?"right":"left"),ns=ct==null&&cr==0,Ut=yt==null&&Ir==Ft,kt=it==0,Zr=!kr||it==kr.length-1;if(rr.top-tr.top<=3){var br=(we?ns:Ut)&&kt,is=(we?Ut:ns)&&Zr,Hn=br?de:(er?tr:rr).left,_n=is?ve:(er?rr:tr).right;Fe(Hn,tr.top,_n-Hn,tr.bottom)}else{var ki,Mr,Ii,La;er?(ki=we&&ns&&kt?de:tr.left,Mr=we?ve:Kr(cr,Sr,"before"),Ii=we?de:Kr(Ir,Sr,"after"),La=we&&Ut&&Zr?ve:rr.right):(ki=we?Kr(cr,Sr,"before"):de,Mr=!we&&ns&&kt?ve:tr.right,Ii=!we&&Ut&&Zr?de:rr.left,La=we?Kr(Ir,Sr,"after"):ve),Fe(ki,tr.top,Mr-ki,tr.bottom),tr.bottom<rr.top&&Fe(de,tr.bottom,null,rr.top),Fe(Ii,rr.top,La-Ii,rr.bottom)}(!Jt||Gi(tr,Jt)<0)&&(Jt=tr),Gi(rr,Jt)<0&&(Jt=rr),(!yr||Gi(tr,yr)<0)&&(yr=tr),Gi(rr,yr)<0&&(yr=rr)}),{start:Jt,end:yr}}var Re=i.from(),Me=i.to();if(Re.line==Me.line)Ie(Re.line,Re.ch,Me.ch);else{var Ve=pt(x,Re.line),Ze=pt(x,Me.line),tt=fn(Ve)==fn(Ze),ot=Ie(Re.line,Re.ch,tt?Ve.text.length+1:null).end,lt=Ie(Me.line,tt?0:null,Me.ch).start;tt&&(ot.top<lt.top-2?(Fe(ot.right,ot.top,null,ot.bottom),Fe(de,lt.top,lt.left,lt.bottom)):Fe(ot.right,ot.top,lt.left-ot.right,ot.bottom)),ot.bottom<lt.top&&Fe(de,ot.bottom,null,lt.top)}w.appendChild(K)}function Ao(e){if(e.state.focused){var i=e.display;clearInterval(i.blinker);var w=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||zi(e),i.cursorDiv.style.visibility=(w=!w)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function iA(e){e.state.focused||(e.display.input.focus(),$o(e))}function sA(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,zi(e))},100)}function $o(e,i){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ze(e,"focus",e,i),e.state.focused=!0,X(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),u&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ao(e))}function zi(e,i){e.state.delayingBlurEvent||(e.state.focused&&(ze(e,"blur",e,i),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function lo(e){for(var i=e.display,w=i.lineDiv.offsetTop,y=0;y<i.view.length;y++){var x=i.view[y],K=e.options.lineWrapping,se=void 0,de=0;if(!x.hidden){if(b&&a<8){var ve=x.node.offsetTop+x.node.offsetHeight;se=ve-w,w=ve}else{var we=x.node.getBoundingClientRect();se=we.bottom-we.top,!K&&x.text.firstChild&&(de=x.text.firstChild.getBoundingClientRect().right-we.left-1)}var Fe=x.line.height-se;if((Fe>.005||Fe<-.005)&&($t(x.line,se),yi(x.line),x.rest))for(var Ie=0;Ie<x.rest.length;Ie++)yi(x.rest[Ie]);if(de>e.display.sizerWidth){var Re=Math.ceil(de/Wi(e.display));Re>e.display.maxLineLength&&(e.display.maxLineLength=Re,e.display.maxLine=x.line,e.display.maxLineChanged=!0)}}}}function yi(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var w=e.widgets[i],y=w.node.parentNode;y&&(w.height=y.offsetHeight)}}function uo(e,i,w){var y=w&&w.top!=null?Math.max(0,w.top):e.scroller.scrollTop;y=Math.floor(y-vs(e));var x=w&&w.bottom!=null?w.bottom:y+e.wrapper.clientHeight,K=qr(i,y),se=qr(i,x);if(w&&w.ensure){var de=w.ensure.from.line,ve=w.ensure.to.line;de<K?(K=de,se=qr(i,kn(pt(i,de))+e.wrapper.clientHeight)):Math.min(ve,i.lastLine())>=se&&(K=qr(i,kn(pt(i,ve))-e.wrapper.clientHeight),se=ve)}return{from:K,to:Math.max(se,K+1)}}function _l(e,i){if(!Xe(e,"scrollCursorIntoView")){var w=e.display,y=w.sizer.getBoundingClientRect(),x=null;if(i.top+y.top<0?x=!0:i.bottom+y.top>(window.innerHeight||document.documentElement.clientHeight)&&(x=!1),x!=null&&!r){var K=E("div","\u200B",null,`position: absolute;
|
|
|
top: `+(i.top-w.viewOffset-vs(e.display))+`px;
|
|
|
height: `+(i.bottom-i.top+bn(e)+w.barHeight)+`px;
|
|
|
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(K),K.scrollIntoView(x),e.display.lineSpace.removeChild(K)}}}function co(e,i,w,y){y==null&&(y=0);var x;!e.options.lineWrapping&&i==w&&(i=i.ch?et(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i,w=i.sticky=="before"?et(i.line,i.ch+1,"before"):i);for(var K=0;K<5;K++){var se=!1,de=nn(e,i),ve=!w||w==i?de:nn(e,w);x={left:Math.min(de.left,ve.left),top:Math.min(de.top,ve.top)-y,right:Math.max(de.left,ve.left),bottom:Math.max(de.bottom,ve.bottom)+y};var we=qo(e,x),Fe=e.doc.scrollTop,Ie=e.doc.scrollLeft;if(we.scrollTop!=null&&(ws(e,we.scrollTop),Math.abs(e.doc.scrollTop-Fe)>1&&(se=!0)),we.scrollLeft!=null&&(bi(e,we.scrollLeft),Math.abs(e.doc.scrollLeft-Ie)>1&&(se=!0)),!se)break}return x}function Sl(e,i){var w=qo(e,i);w.scrollTop!=null&&ws(e,w.scrollTop),w.scrollLeft!=null&&bi(e,w.scrollLeft)}function qo(e,i){var w=e.display,y=mi(e.display);i.top<0&&(i.top=0);var x=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:w.scroller.scrollTop,K=ur(e),se={};i.bottom-i.top>K&&(i.bottom=i.top+K);var de=e.doc.height+Jn(w),ve=i.top<y,we=i.bottom>de-y;if(i.top<x)se.scrollTop=ve?0:i.top;else if(i.bottom>x+K){var Fe=Math.min(i.top,(we?de:i.bottom)-K);Fe!=x&&(se.scrollTop=Fe)}var Ie=e.options.fixedGutter?0:w.gutters.offsetWidth,Re=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:w.scroller.scrollLeft-Ie,Me=Nr(e)-w.gutters.offsetWidth,Ve=i.right-i.left>Me;return Ve&&(i.right=i.left+Me),i.left<10?se.scrollLeft=0:i.left<Re?se.scrollLeft=Math.max(0,i.left+Ie-(Ve?0:10)):i.right>Me+Re-3&&(se.scrollLeft=i.right+(Ve?0:10)-Me),se}function ea(e,i){i!=null&&(fo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function Vi(e){fo(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function ei(e,i,w){(i!=null||w!=null)&&fo(e),i!=null&&(e.curOp.scrollLeft=i),w!=null&&(e.curOp.scrollTop=w)}function xl(e,i){fo(e),e.curOp.scrollToPos=i}function fo(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var w=Ya(e,i.from),y=Ya(e,i.to);oA(e,w,y,i.margin)}}function oA(e,i,w,y){var x=qo(e,{left:Math.min(i.left,w.left),top:Math.min(i.top,w.top)-y,right:Math.max(i.right,w.right),bottom:Math.max(i.bottom,w.bottom)+y});ei(e,x.scrollLeft,x.scrollTop)}function ws(e,i){Math.abs(e.doc.scrollTop-i)<2||(oe||Xi(e,{top:i}),Cs(e,i,!0),oe&&Xi(e),_i(e,100))}function Cs(e,i,w){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!w)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function bi(e,i,w,y){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((w?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!y)&&(e.doc.scrollLeft=i,cA(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function Bs(e){var i=e.display,w=i.gutters.offsetWidth,y=Math.round(e.doc.height+Jn(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?w:0,docHeight:y,scrollHeight:y+bn(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:w}}var wi=function(e,i,w){this.cm=w;var y=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),x=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");y.tabIndex=x.tabIndex=-1,e(y),e(x),Ne(y,"scroll",function(){y.clientHeight&&i(y.scrollTop,"vertical")}),Ne(x,"scroll",function(){x.clientWidth&&i(x.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,w=e.scrollHeight>e.clientHeight+1,y=e.nativeBarWidth;if(w){this.vert.style.display="block",this.vert.style.bottom=i?y+"px":"0";var x=e.viewHeight-(i?y:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+x)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=w?y+"px":"0",this.horiz.style.left=e.barLeft+"px";var K=e.viewWidth-e.barLeft-(w?y:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+K)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(y==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:w?y:0,bottom:i?y:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=p&&!n?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new W,this.disableVert=new W},wi.prototype.enableZeroWidthBar=function(e,i,w){e.style.pointerEvents="auto";function y(){var x=e.getBoundingClientRect(),K=w=="vert"?document.elementFromPoint(x.right-1,(x.top+x.bottom)/2):document.elementFromPoint((x.right+x.left)/2,x.bottom-1);K!=e?e.style.pointerEvents="none":i.set(1e3,y)}i.set(1e3,y)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _s=function(){};_s.prototype.update=function(){return{bottom:0,right:0}},_s.prototype.setScrollLeft=function(){},_s.prototype.setScrollTop=function(){},_s.prototype.clear=function(){};function Mn(e,i){i||(i=Bs(e));var w=e.display.barWidth,y=e.display.barHeight;aA(e,i);for(var x=0;x<4&&w!=e.display.barWidth||y!=e.display.barHeight;x++)w!=e.display.barWidth&&e.options.lineWrapping&&lo(e),aA(e,Bs(e)),w=e.display.barWidth,y=e.display.barHeight}function aA(e,i){var w=e.display,y=w.scrollbars.update(i);w.sizer.style.paddingRight=(w.barWidth=y.right)+"px",w.sizer.style.paddingBottom=(w.barHeight=y.bottom)+"px",w.heightForcer.style.borderBottom=y.bottom+"px solid transparent",y.right&&y.bottom?(w.scrollbarFiller.style.display="block",w.scrollbarFiller.style.height=y.bottom+"px",w.scrollbarFiller.style.width=y.right+"px"):w.scrollbarFiller.style.display="",y.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(w.gutterFiller.style.display="block",w.gutterFiller.style.height=y.bottom+"px",w.gutterFiller.style.width=i.gutterWidth+"px"):w.gutterFiller.style.display=""}var AA={native:wi,null:_s};function lA(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new AA[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Ne(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,w){w=="horizontal"?bi(e,i):ws(e,i)},e),e.display.scrollbars.addClass&&X(e.display.wrapper,e.display.scrollbars.addClass)}var El=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++El},pl(e.curOp)}function Bi(e){var i=e.curOp;i&&vl(i,function(w){for(var y=0;y<w.ops.length;y++)w.ops[y].cm.curOp=null;Tl(w)})}function Tl(e){for(var i=e.ops,w=0;w<i.length;w++)Fl(i[w]);for(var y=0;y<i.length;y++)kl(i[y]);for(var x=0;x<i.length;x++)Il(i[x]);for(var K=0;K<i.length;K++)ho(i[K]);for(var se=0;se<i.length;se++)Ll(i[se])}function Fl(e){var i=e.cm,w=i.display;Ol(i),e.updateMaxLine&&Ko(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<w.viewFrom||e.scrollToPos.to.line>=w.viewTo)||w.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new go(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function kl(e){e.updatedDisplay=e.mustUpdate&&ta(e.cm,e.update)}function Il(e){var i=e.cm,w=i.display;e.updatedDisplay&&lo(i),e.barMeasure=Bs(i),w.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Ln(i,w.maxLine,w.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(w.scroller.clientWidth,w.sizer.offsetLeft+e.adjustWidthTo+bn(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,w.sizer.offsetLeft+e.adjustWidthTo-Nr(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=w.input.prepareSelection())}function ho(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&bi(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var w=e.focus&&e.focus==H();e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,w),(e.updatedDisplay||e.startHeight!=i.doc.height)&&Mn(i,e.barMeasure),e.updatedDisplay&&na(i,e.barMeasure),e.selectionChanged&&Ao(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),w&&iA(e.cm)}function Ll(e){var i=e.cm,w=i.display,y=i.doc;if(e.updatedDisplay&&uA(i,e.update),w.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(w.wheelStartX=w.wheelStartY=null),e.scrollTop!=null&&Cs(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&bi(i,e.scrollLeft,!0,!0),e.scrollToPos){var x=co(i,wt(y,e.scrollToPos.from),wt(y,e.scrollToPos.to),e.scrollToPos.margin);_l(i,x)}var K=e.maybeHiddenMarkers,se=e.maybeUnhiddenMarkers;if(K)for(var de=0;de<K.length;++de)K[de].lines.length||ze(K[de],"hide");if(se)for(var ve=0;ve<se.length;++ve)se[ve].lines.length&&ze(se[ve],"unhide");w.wrapper.offsetHeight&&(y.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ze(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function Wr(e,i){if(e.curOp)return i();Ci(e);try{return i()}finally{Bi(e)}}function fr(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ci(e);try{return i.apply(e,arguments)}finally{Bi(e)}}}function Ur(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Bi(this)}}}function mr(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ci(i);try{return e.apply(this,arguments)}finally{Bi(i)}}}function _i(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,Z(po,e))}function po(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var w=+new Date+e.options.workTime,y=Fn(e,i.highlightFrontier),x=[];i.iter(y.line,Math.min(i.first+i.size,e.display.viewTo+500),function(K){if(y.line>=e.display.viewFrom){var se=K.styles,de=K.text.length>e.options.maxHighlightLength?$r(i.mode,y.state):null,ve=Ri(e,K,y,!0);de&&(y.state=de),K.styles=ve.styles;var we=K.styleClasses,Fe=ve.classes;Fe?K.styleClasses=Fe:we&&(K.styleClasses=null);for(var Ie=!se||se.length!=K.styles.length||we!=Fe&&(!we||!Fe||we.bgClass!=Fe.bgClass||we.textClass!=Fe.textClass),Re=0;!Ie&&Re<se.length;++Re)Ie=se[Re]!=K.styles[Re];Ie&&x.push(y.line),K.stateAfter=y.save(),y.nextLine()}else K.text.length<=e.options.maxHighlightLength&&As(e,K.text,y),K.stateAfter=y.line%5==0?y.save():null,y.nextLine();if(+new Date>w)return _i(e,e.options.workDelay),!0}),i.highlightFrontier=y.line,i.modeFrontier=Math.max(i.modeFrontier,y.line),x.length&&Wr(e,function(){for(var K=0;K<x.length;K++)Un(e,x[K],"text")})}}var go=function(e,i,w){var y=e.display;this.viewport=i,this.visible=uo(y,e.doc,i),this.editorIsHidden=!y.wrapper.offsetWidth,this.wrapperHeight=y.wrapper.clientHeight,this.wrapperWidth=y.wrapper.clientWidth,this.oldDisplayWidth=Nr(e),this.force=w,this.dims=Zo(e),this.events=[]};go.prototype.signal=function(e,i){Qe(e,i)&&this.events.push(arguments)},go.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ze.apply(null,this.events[e])};function Ol(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=bn(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=bn(e)+"px",i.scrollbarsClipped=!0)}function Ul(e){if(e.hasFocus())return null;var i=H();if(!i||!V(e.display.lineDiv,i))return null;var w={activeElt:i};if(window.getSelection){var y=window.getSelection();y.anchorNode&&y.extend&&V(e.display.lineDiv,y.anchorNode)&&(w.anchorNode=y.anchorNode,w.anchorOffset=y.anchorOffset,w.focusNode=y.focusNode,w.focusOffset=y.focusOffset)}return w}function Dl(e){if(!(!e||!e.activeElt||e.activeElt==H())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&V(document.body,e.anchorNode)&&V(document.body,e.focusNode))){var i=window.getSelection(),w=document.createRange();w.setEnd(e.anchorNode,e.anchorOffset),w.collapse(!1),i.removeAllRanges(),i.addRange(w),i.extend(e.focusNode,e.focusOffset)}}function ta(e,i){var w=e.display,y=e.doc;if(i.editorIsHidden)return Dn(e),!1;if(!i.force&&i.visible.from>=w.viewFrom&&i.visible.to<=w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo)&&w.renderedView==w.view&&tA(e)==0)return!1;fA(e)&&(Dn(e),i.dims=Zo(e));var x=y.first+y.size,K=Math.max(i.visible.from-e.options.viewportMargin,y.first),se=Math.min(x,i.visible.to+e.options.viewportMargin);w.viewFrom<K&&K-w.viewFrom<20&&(K=Math.max(y.first,w.viewFrom)),w.viewTo>se&&w.viewTo-se<20&&(se=Math.min(x,w.viewTo)),Rr&&(K=Cr(e.doc,K),se=ja(e.doc,se));var de=K!=w.viewFrom||se!=w.viewTo||w.lastWrapHeight!=i.wrapperHeight||w.lastWrapWidth!=i.wrapperWidth;eA(e,K,se),w.viewOffset=kn(pt(e.doc,w.viewFrom)),e.display.mover.style.top=w.viewOffset+"px";var ve=tA(e);if(!de&&ve==0&&!i.force&&w.renderedView==w.view&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo))return!1;var we=Ul(e);return ve>4&&(w.lineDiv.style.display="none"),Ml(e,w.updateLineNumbers,i.dims),ve>4&&(w.lineDiv.style.display=""),w.renderedView=w.view,Dl(we),S(w.cursorDiv),S(w.selectionDiv),w.gutters.style.height=w.sizer.style.minHeight=0,de&&(w.lastWrapHeight=i.wrapperHeight,w.lastWrapWidth=i.wrapperWidth,_i(e,400)),w.updateLineNumbers=null,!0}function uA(e,i){for(var w=i.viewport,y=!0;;y=!1){if(!y||!e.options.lineWrapping||i.oldDisplayWidth==Nr(e)){if(w&&w.top!=null&&(w={top:Math.min(e.doc.height+Jn(e.display)-ur(e),w.top)}),i.visible=uo(e.display,e.doc,w),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else y&&(i.visible=uo(e.display,e.doc,w));if(!ta(e,i))break;lo(e);var x=Bs(e);qn(e),Mn(e,x),na(e,x),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Xi(e,i){var w=new go(e,i);if(ta(e,w)){lo(e),uA(e,w);var y=Bs(e);qn(e),Mn(e,y),na(e,y),w.finish()}}function Ml(e,i,w){var y=e.display,x=e.options.lineNumbers,K=y.lineDiv,se=K.firstChild;function de(Ve){var Ze=Ve.nextSibling;return u&&p&&e.display.currentWheelTarget==Ve?Ve.style.display="none":Ve.parentNode.removeChild(Ve),Ze}for(var ve=y.view,we=y.viewFrom,Fe=0;Fe<ve.length;Fe++){var Ie=ve[Fe];if(!Ie.hidden)if(!Ie.node||Ie.node.parentNode!=K){var Re=Ga(e,Ie,we,w);K.insertBefore(Re,se)}else{for(;se!=Ie.node;)se=de(se);var Me=x&&i!=null&&i<=we&&Ie.lineNumber;Ie.changes&&(le(Ie.changes,"gutter")>-1&&(Me=!1),Na(e,Ie,we,w)),Me&&(S(Ie.lineNumber),Ie.lineNumber.appendChild(document.createTextNode(Er(e.options,we)))),se=Ie.node.nextSibling}we+=Ie.size}for(;se;)se=de(se)}function ra(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px"}function na(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+bn(e)+"px"}function cA(e){var i=e.display,w=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var y=Ki(i)-i.scroller.scrollLeft+e.doc.scrollLeft,x=i.gutters.offsetWidth,K=y+"px",se=0;se<w.length;se++)if(!w[se].hidden){e.options.fixedGutter&&(w[se].gutter&&(w[se].gutter.style.left=K),w[se].gutterBackground&&(w[se].gutterBackground.style.left=K));var de=w[se].alignable;if(de)for(var ve=0;ve<de.length;ve++)de[ve].style.left=K}e.options.fixedGutter&&(i.gutters.style.left=y+x+"px")}}function fA(e){if(!e.options.lineNumbers)return!1;var i=e.doc,w=Er(e.options,i.first+i.size-1),y=e.display;if(w.length!=y.lineNumChars){var x=y.measure.appendChild(E("div",[E("div",w)],"CodeMirror-linenumber CodeMirror-gutter-elt")),K=x.firstChild.offsetWidth,se=x.offsetWidth-K;return y.lineGutter.style.width="",y.lineNumInnerWidth=Math.max(K,y.lineGutter.offsetWidth-se)+1,y.lineNumWidth=y.lineNumInnerWidth+se,y.lineNumChars=y.lineNumInnerWidth?w.length:-1,y.lineGutter.style.width=y.lineNumWidth+"px",ra(e.display),!0}return!1}function ia(e,i){for(var w=[],y=!1,x=0;x<e.length;x++){var K=e[x],se=null;if(typeof K!="string"&&(se=K.style,K=K.className),K=="CodeMirror-linenumbers")if(i)y=!0;else continue;w.push({className:K,style:se})}return i&&!y&&w.push({className:"CodeMirror-linenumbers",style:null}),w}function hA(e){var i=e.gutters,w=e.gutterSpecs;S(i),e.lineGutter=null;for(var y=0;y<w.length;++y){var x=w[y],K=x.className,se=x.style,de=i.appendChild(E("div",null,"CodeMirror-gutter "+K));se&&(de.style.cssText=se),K=="CodeMirror-linenumbers"&&(e.lineGutter=de,de.style.width=(e.lineNumWidth||1)+"px")}i.style.display=w.length?"":"none",ra(e)}function Ss(e){hA(e.display),Or(e),cA(e)}function Rl(e,i,w,y){var x=this;this.input=w,x.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),x.scrollbarFiller.setAttribute("cm-not-content","true"),x.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),x.gutterFiller.setAttribute("cm-not-content","true"),x.lineDiv=M("div",null,"CodeMirror-code"),x.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),x.cursorDiv=E("div",null,"CodeMirror-cursors"),x.measure=E("div",null,"CodeMirror-measure"),x.lineMeasure=E("div",null,"CodeMirror-measure"),x.lineSpace=M("div",[x.measure,x.lineMeasure,x.selectionDiv,x.cursorDiv,x.lineDiv],null,"position: relative; outline: none");var K=M("div",[x.lineSpace],"CodeMirror-lines");x.mover=E("div",[K],null,"position: relative"),x.sizer=E("div",[x.mover],"CodeMirror-sizer"),x.sizerWidth=null,x.heightForcer=E("div",null,null,"position: absolute; height: "+he+"px; width: 1px;"),x.gutters=E("div",null,"CodeMirror-gutters"),x.lineGutter=null,x.scroller=E("div",[x.sizer,x.heightForcer,x.gutters],"CodeMirror-scroll"),x.scroller.setAttribute("tabIndex","-1"),x.wrapper=E("div",[x.scrollbarFiller,x.gutterFiller,x.scroller],"CodeMirror"),b&&a<8&&(x.gutters.style.zIndex=-1,x.scroller.style.paddingRight=0),!u&&!(oe&&d)&&(x.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(x.wrapper):e(x.wrapper)),x.viewFrom=x.viewTo=i.first,x.reportedViewFrom=x.reportedViewTo=i.first,x.view=[],x.renderedView=null,x.externalMeasured=null,x.viewOffset=0,x.lastWrapHeight=x.lastWrapWidth=0,x.updateLineNumbers=null,x.nativeBarWidth=x.barHeight=x.barWidth=0,x.scrollbarsClipped=!1,x.lineNumWidth=x.lineNumInnerWidth=x.lineNumChars=null,x.alignWidgets=!1,x.cachedCharWidth=x.cachedTextHeight=x.cachedPaddingH=null,x.maxLine=null,x.maxLineLength=0,x.maxLineChanged=!1,x.wheelDX=x.wheelDY=x.wheelStartX=x.wheelStartY=null,x.shift=!1,x.selForContextMenu=null,x.activeTouch=null,x.gutterSpecs=ia(y.gutters,y.lineNumbers),hA(x),w.init(x)}var vo=0,Xr=null;b?Xr=-.53:oe?Xr=15:c?Xr=-.7:o&&(Xr=-1/3);function dA(e){var i=e.wheelDeltaX,w=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),w==null&&e.detail&&e.axis==e.VERTICAL_AXIS?w=e.detail:w==null&&(w=e.wheelDelta),{x:i,y:w}}function pA(e){var i=dA(e);return i.x*=Xr,i.y*=Xr,i}function gA(e,i){var w=dA(i),y=w.x,x=w.y,K=e.display,se=K.scroller,de=se.scrollWidth>se.clientWidth,ve=se.scrollHeight>se.clientHeight;if(y&&de||x&&ve){if(x&&p&&u){e:for(var we=i.target,Fe=K.view;we!=se;we=we.parentNode)for(var Ie=0;Ie<Fe.length;Ie++)if(Fe[Ie].node==we){e.display.currentWheelTarget=we;break e}}if(y&&!oe&&!h&&Xr!=null){x&&ve&&ws(e,Math.max(0,se.scrollTop+x*Xr)),bi(e,Math.max(0,se.scrollLeft+y*Xr)),(!x||x&&ve)&&Ge(i),K.wheelStartX=null;return}if(x&&Xr!=null){var Re=x*Xr,Me=e.doc.scrollTop,Ve=Me+K.wrapper.clientHeight;Re<0?Me=Math.max(0,Me+Re-50):Ve=Math.min(e.doc.height,Ve+Re+50),Xi(e,{top:Me,bottom:Ve})}vo<20&&(K.wheelStartX==null?(K.wheelStartX=se.scrollLeft,K.wheelStartY=se.scrollTop,K.wheelDX=y,K.wheelDY=x,setTimeout(function(){if(K.wheelStartX!=null){var Ze=se.scrollLeft-K.wheelStartX,tt=se.scrollTop-K.wheelStartY,ot=tt&&K.wheelDY&&tt/K.wheelDY||Ze&&K.wheelDX&&Ze/K.wheelDX;K.wheelStartX=K.wheelStartY=null,ot&&(Xr=(Xr*vo+ot)/(vo+1),++vo)}},200)):(K.wheelDX+=y,K.wheelDY+=x))}}var Yr=function(e,i){this.ranges=e,this.primIndex=i};Yr.prototype.primary=function(){return this.ranges[this.primIndex]},Yr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var w=this.ranges[i],y=e.ranges[i];if(!En(w.anchor,y.anchor)||!En(w.head,y.head))return!1}return!0},Yr.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new Pt(Tn(this.ranges[i].anchor),Tn(this.ranges[i].head));return new Yr(e,this.primIndex)},Yr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Yr.prototype.contains=function(e,i){i||(i=e);for(var w=0;w<this.ranges.length;w++){var y=this.ranges[w];if(Ct(i,y.from())>=0&&Ct(e,y.to())<=0)return w}return-1};var Pt=function(e,i){this.anchor=e,this.head=i};Pt.prototype.from=function(){return ci(this.anchor,this.head)},Pt.prototype.to=function(){return Di(this.anchor,this.head)},Pt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jr(e,i,w){var y=e&&e.options.selectionsMayTouch,x=i[w];i.sort(function(Re,Me){return Ct(Re.from(),Me.from())}),w=le(i,x);for(var K=1;K<i.length;K++){var se=i[K],de=i[K-1],ve=Ct(de.to(),se.from());if(y&&!se.empty()?ve>0:ve>=0){var we=ci(de.from(),se.from()),Fe=Di(de.to(),se.to()),Ie=de.empty()?se.from()==se.head:de.from()==de.head;K<=w&&--w,i.splice(--K,2,new Pt(Ie?Fe:we,Ie?we:Fe))}}return new Yr(i,w)}function ti(e,i){return new Yr([new Pt(e,i||e)],0)}function ri(e){return e.text?et(e.from.line+e.text.length-1,Se(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function sa(e,i){if(Ct(e,i.from)<0)return e;if(Ct(e,i.to)<=0)return ri(i);var w=e.line+i.text.length-(i.to.line-i.from.line)-1,y=e.ch;return e.line==i.to.line&&(y+=ri(i).ch-i.to.ch),et(w,y)}function oa(e,i){for(var w=[],y=0;y<e.sel.ranges.length;y++){var x=e.sel.ranges[y];w.push(new Pt(sa(x.anchor,i),sa(x.head,i)))}return jr(e.cm,w,e.sel.primIndex)}function vA(e,i,w){return e.line==i.line?et(w.line,e.ch-i.ch+w.ch):et(w.line+(e.line-i.line),e.ch)}function jl(e,i,w){for(var y=[],x=et(e.first,0),K=x,se=0;se<i.length;se++){var de=i[se],ve=vA(de.from,x,K),we=vA(ri(de),x,K);if(x=de.to,K=we,w=="around"){var Fe=e.sel.ranges[se],Ie=Ct(Fe.head,Fe.anchor)<0;y[se]=new Pt(Ie?we:ve,Ie?ve:we)}else y[se]=new Pt(ve,ve)}return new Yr(y,e.sel.primIndex)}function aa(e){e.doc.mode=wr(e.options,e.doc.modeOption),xs(e)}function xs(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,_i(e,100),e.state.modeGen++,e.curOp&&Or(e)}function mA(e,i){return i.from.ch==0&&i.to.ch==0&&Se(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Aa(e,i,w,y){function x(lt){return w?w[lt]:null}function K(lt,at,ct){ro(lt,at,ct,y),Br(lt,"change",lt,i)}function se(lt,at){for(var ct=[],yt=lt;yt<at;++yt)ct.push(new In(we[yt],x(yt),y));return ct}var de=i.from,ve=i.to,we=i.text,Fe=pt(e,de.line),Ie=pt(e,ve.line),Re=Se(we),Me=x(we.length-1),Ve=ve.line-de.line;if(i.full)e.insert(0,se(0,we.length)),e.remove(we.length,e.size-we.length);else if(mA(e,i)){var Ze=se(0,we.length-1);K(Ie,Ie.text,Me),Ve&&e.remove(de.line,Ve),Ze.length&&e.insert(de.line,Ze)}else if(Fe==Ie)if(we.length==1)K(Fe,Fe.text.slice(0,de.ch)+Re+Fe.text.slice(ve.ch),Me);else{var tt=se(1,we.length-1);tt.push(new In(Re+Fe.text.slice(ve.ch),Me,y)),K(Fe,Fe.text.slice(0,de.ch)+we[0],x(0)),e.insert(de.line+1,tt)}else if(we.length==1)K(Fe,Fe.text.slice(0,de.ch)+we[0]+Ie.text.slice(ve.ch),x(0)),e.remove(de.line+1,Ve);else{K(Fe,Fe.text.slice(0,de.ch)+we[0],x(0)),K(Ie,Re+Ie.text.slice(ve.ch),Me);var ot=se(1,we.length-1);Ve>1&&e.remove(de.line+1,Ve-1),e.insert(de.line+1,ot)}Br(e,"change",e,i)}function ni(e,i,w){function y(x,K,se){if(x.linked)for(var de=0;de<x.linked.length;++de){var ve=x.linked[de];if(ve.doc!=K){var we=se&&ve.sharedHist;w&&!we||(i(ve.doc,we),y(ve.doc,x,we))}}}y(e,null,!0)}function hr(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,ao(e),aa(e),yA(e),e.options.lineWrapping||Ko(e),e.options.mode=i.modeOption,Or(e)}function yA(e){(e.doc.direction=="rtl"?X:T)(e.display.lineDiv,"CodeMirror-rtl")}function Ql(e){Wr(e,function(){yA(e),Or(e)})}function mo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function la(e,i){var w={from:Tn(i.from),to:ri(i),text:gr(e,i.from,i.to)};return BA(e,w,i.from.line,i.to.line+1),ni(e,function(y){return BA(y,w,i.from.line,i.to.line+1)},!0),w}function bA(e){for(;e.length;){var i=Se(e);if(i.ranges)e.pop();else break}}function wA(e,i){if(i)return bA(e.done),Se(e.done);if(e.done.length&&!Se(e.done).ranges)return Se(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Se(e.done)}function CA(e,i,w,y){var x=e.history;x.undone.length=0;var K=+new Date,se,de;if((x.lastOp==y||x.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&x.lastModTime>K-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(se=wA(x,x.lastOp==y)))de=Se(se.changes),Ct(i.from,i.to)==0&&Ct(i.from,de.to)==0?de.to=ri(i):se.changes.push(la(e,i));else{var ve=Se(x.done);for((!ve||!ve.ranges)&&yo(e.sel,x.done),se={changes:[la(e,i)],generation:x.generation},x.done.push(se);x.done.length>x.undoDepth;)x.done.shift(),x.done[0].ranges||x.done.shift()}x.done.push(w),x.generation=++x.maxGeneration,x.lastModTime=x.lastSelTime=K,x.lastOp=x.lastSelOp=y,x.lastOrigin=x.lastSelOrigin=i.origin,de||ze(e,"historyAdded")}function Pl(e,i,w,y){var x=i.charAt(0);return x=="*"||x=="+"&&w.ranges.length==y.ranges.length&&w.somethingSelected()==y.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Hl(e,i,w,y){var x=e.history,K=y&&y.origin;w==x.lastSelOp||K&&x.lastSelOrigin==K&&(x.lastModTime==x.lastSelTime&&x.lastOrigin==K||Pl(e,K,Se(x.done),i))?x.done[x.done.length-1]=i:yo(i,x.done),x.lastSelTime=+new Date,x.lastSelOrigin=K,x.lastSelOp=w,y&&y.clearRedo!==!1&&bA(x.undone)}function yo(e,i){var w=Se(i);w&&w.ranges&&w.equals(e)||i.push(e)}function BA(e,i,w,y){var x=i["spans_"+e.id],K=0;e.iter(Math.max(e.first,w),Math.min(e.first+e.size,y),function(se){se.markedSpans&&((x||(x=i["spans_"+e.id]={}))[K]=se.markedSpans),++K})}function Nl(e){if(!e)return null;for(var i,w=0;w<e.length;++w)e[w].marker.explicitlyCleared?i||(i=e.slice(0,w)):i&&i.push(e[w]);return i?i.length?i:null:e}function _A(e,i){var w=i["spans_"+e.id];if(!w)return null;for(var y=[],x=0;x<i.text.length;++x)y.push(Nl(w[x]));return y}function ft(e,i){var w=_A(e,i),y=tn(e,i);if(!w)return y;if(!y)return w;for(var x=0;x<w.length;++x){var K=w[x],se=y[x];if(K&&se)e:for(var de=0;de<se.length;++de){for(var ve=se[de],we=0;we<K.length;++we)if(K[we].marker==ve.marker)continue e;K.push(ve)}else se&&(w[x]=se)}return w}function Yi(e,i,w){for(var y=[],x=0;x<e.length;++x){var K=e[x];if(K.ranges){y.push(w?Yr.prototype.deepCopy.call(K):K);continue}var se=K.changes,de=[];y.push({changes:de});for(var ve=0;ve<se.length;++ve){var we=se[ve],Fe=void 0;if(de.push({from:we.from,to:we.to,text:we.text}),i)for(var Ie in we)(Fe=Ie.match(/^spans_(\d+)$/))&&le(i,Number(Fe[1]))>-1&&(Se(de)[Ie]=we[Ie],delete we[Ie])}}return y}function ua(e,i,w,y){if(y){var x=e.anchor;if(w){var K=Ct(i,x)<0;K!=Ct(w,x)<0?(x=i,i=w):K!=Ct(i,w)<0&&(i=w)}return new Pt(x,i)}else return new Pt(w||i,i)}function Ji(e,i,w,y,x){x==null&&(x=e.cm&&(e.cm.display.shift||e.extend)),Fr(e,new Yr([ua(e.sel.primary(),i,w,x)],0),y)}function vn(e,i,w){for(var y=[],x=e.cm&&(e.cm.display.shift||e.extend),K=0;K<e.sel.ranges.length;K++)y[K]=ua(e.sel.ranges[K],i[K],null,x);var se=jr(e.cm,y,e.sel.primIndex);Fr(e,se,w)}function ca(e,i,w,y){var x=e.sel.ranges.slice(0);x[i]=w,Fr(e,jr(e.cm,x,e.sel.primIndex),y)}function fa(e,i,w,y){Fr(e,ti(i,w),y)}function Es(e,i,w){var y={ranges:i.ranges,update:function(x){this.ranges=[];for(var K=0;K<x.length;K++)this.ranges[K]=new Pt(wt(e,x[K].anchor),wt(e,x[K].head))},origin:w&&w.origin};return ze(e,"beforeSelectionChange",e,y),e.cm&&ze(e.cm,"beforeSelectionChange",e.cm,y),y.ranges!=i.ranges?jr(e.cm,y.ranges,y.ranges.length-1):i}function Ts(e,i,w){var y=e.history.done,x=Se(y);x&&x.ranges?(y[y.length-1]=i,bo(e,i,w)):Fr(e,i,w)}function Fr(e,i,w){bo(e,i,w),Hl(e,e.sel,e.cm?e.cm.curOp.id:NaN,w)}function bo(e,i,w){(Qe(e,"beforeSelectionChange")||e.cm&&Qe(e.cm,"beforeSelectionChange"))&&(i=Es(e,i,w));var y=w&&w.bias||(Ct(i.primary().head,e.sel.primary().head)<0?-1:1);SA(e,wo(e,i,y,!0)),!(w&&w.scroll===!1)&&e.cm&&Vi(e.cm)}function SA(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,qe(e.cm)),Br(e,"cursorActivity",e))}function ii(e){SA(e,wo(e,e.sel,null,!1))}function wo(e,i,w,y){for(var x,K=0;K<i.ranges.length;K++){var se=i.ranges[K],de=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[K],ve=Co(e,se.anchor,de&&de.anchor,w,y),we=Co(e,se.head,de&&de.head,w,y);(x||ve!=se.anchor||we!=se.head)&&(x||(x=i.ranges.slice(0,K)),x[K]=new Pt(ve,we))}return x?jr(e.cm,x,i.primIndex):i}function si(e,i,w,y,x){var K=pt(e,i.line);if(K.markedSpans)for(var se=0;se<K.markedSpans.length;++se){var de=K.markedSpans[se],ve=de.marker,we="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,Fe="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((de.from==null||(we?de.from<=i.ch:de.from<i.ch))&&(de.to==null||(Fe?de.to>=i.ch:de.to>i.ch))){if(x&&(ze(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(K.markedSpans){--se;continue}else break;if(!ve.atomic)continue;if(w){var Ie=ve.find(y<0?1:-1),Re=void 0;if((y<0?Fe:we)&&(Ie=ha(e,Ie,-y,Ie&&Ie.line==i.line?K:null)),Ie&&Ie.line==i.line&&(Re=Ct(Ie,w))&&(y<0?Re<0:Re>0))return si(e,Ie,i,y,x)}var Me=ve.find(y<0?-1:1);return(y<0?we:Fe)&&(Me=ha(e,Me,y,Me.line==i.line?K:null)),Me?si(e,Me,i,y,x):null}}return i}function Co(e,i,w,y,x){var K=y||1,se=si(e,i,w,K,x)||!x&&si(e,i,w,K,!0)||si(e,i,w,-K,x)||!x&&si(e,i,w,-K,!0);return se||(e.cantEdit=!0,et(e.first,0))}function ha(e,i,w,y){return w<0&&i.ch==0?i.line>e.first?wt(e,et(i.line-1)):null:w>0&&i.ch==(y||pt(e,i.line)).text.length?i.line<e.first+e.size-1?et(i.line+1,0):null:new et(i.line,i.ch+w)}function xA(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),pe)}function Bo(e,i,w){var y={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return y.canceled=!0}};return w&&(y.update=function(x,K,se,de){x&&(y.from=wt(e,x)),K&&(y.to=wt(e,K)),se&&(y.text=se),de!==void 0&&(y.origin=de)}),ze(e,"beforeChange",e,y),e.cm&&ze(e.cm,"beforeChange",e.cm,y),y.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:y.from,to:y.to,text:y.text,origin:y.origin}}function Zi(e,i,w){if(e.cm){if(!e.cm.curOp)return fr(e.cm,Zi)(e,i,w);if(e.cm.state.suppressEdits)return}if(!((Qe(e,"beforeChange")||e.cm&&Qe(e.cm,"beforeChange"))&&(i=Bo(e,i,!0),!i))){var y=Zs&&!w&&ol(e,i.from,i.to);if(y)for(var x=y.length-1;x>=0;--x)EA(e,{from:y[x].from,to:y[x].to,text:x?[""]:i.text,origin:i.origin});else EA(e,i)}}function EA(e,i){if(!(i.text.length==1&&i.text[0]==""&&Ct(i.from,i.to)==0)){var w=oa(e,i);CA(e,i,w,e.cm?e.cm.curOp.id:NaN),Fs(e,i,w,tn(e,i));var y=[];ni(e,function(x,K){!K&&le(y,x.history)==-1&&(kA(x.history,i),y.push(x.history)),Fs(x,i,null,tn(x,i))})}}function _o(e,i,w){var y=e.cm&&e.cm.state.suppressEdits;if(!(y&&!w)){for(var x=e.history,K,se=e.sel,de=i=="undo"?x.done:x.undone,ve=i=="undo"?x.undone:x.done,we=0;we<de.length&&(K=de[we],!(w?K.ranges&&!K.equals(e.sel):!K.ranges));we++);if(we!=de.length){for(x.lastOrigin=x.lastSelOrigin=null;;)if(K=de.pop(),K.ranges){if(yo(K,ve),w&&!K.equals(e.sel)){Fr(e,K,{clearRedo:!1});return}se=K}else if(y){de.push(K);return}else break;var Fe=[];yo(se,ve),ve.push({changes:Fe,generation:x.generation}),x.generation=K.generation||++x.maxGeneration;for(var Ie=Qe(e,"beforeChange")||e.cm&&Qe(e.cm,"beforeChange"),Re=function(Ze){var tt=K.changes[Ze];if(tt.origin=i,Ie&&!Bo(e,tt,!1))return de.length=0,{};Fe.push(la(e,tt));var ot=Ze?oa(e,tt):Se(de);Fs(e,tt,ot,ft(e,tt)),!Ze&&e.cm&&e.cm.scrollIntoView({from:tt.from,to:ri(tt)});var lt=[];ni(e,function(at,ct){!ct&&le(lt,at.history)==-1&&(kA(at.history,tt),lt.push(at.history)),Fs(at,tt,null,ft(at,tt))})},Me=K.changes.length-1;Me>=0;--Me){var Ve=Re(Me);if(Ve)return Ve.v}}}}function TA(e,i){if(i!=0&&(e.first+=i,e.sel=new Yr(me(e.sel.ranges,function(x){return new Pt(et(x.anchor.line+i,x.anchor.ch),et(x.head.line+i,x.head.ch))}),e.sel.primIndex),e.cm)){Or(e.cm,e.first,e.first-i,i);for(var w=e.cm.display,y=w.viewFrom;y<w.viewTo;y++)Un(e.cm,y,"gutter")}}function Fs(e,i,w,y){if(e.cm&&!e.cm.curOp)return fr(e.cm,Fs)(e,i,w,y);if(i.to.line<e.first){TA(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var x=i.text.length-1-(e.first-i.from.line);TA(e,x),i={from:et(e.first,0),to:et(i.to.line+x,i.to.ch),text:[Se(i.text)],origin:i.origin}}var K=e.lastLine();i.to.line>K&&(i={from:i.from,to:et(K,pt(e,K).text.length),text:[i.text[0]],origin:i.origin}),i.removed=gr(e,i.from,i.to),w||(w=oa(e,i)),e.cm?Wl(e.cm,i,y):Aa(e,i,y),bo(e,w,pe),e.cantEdit&&Co(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function Wl(e,i,w){var y=e.doc,x=e.display,K=i.from,se=i.to,de=!1,ve=K.line;e.options.lineWrapping||(ve=jt(fn(pt(y,K.line))),y.iter(ve,se.line+1,function(Me){if(Me==x.maxLine)return de=!0,!0})),y.sel.contains(i.from,i.to)>-1&&qe(e),Aa(y,i,w,qa(e)),e.options.lineWrapping||(y.iter(ve,K.line+i.text.length,function(Me){var Ve=to(Me);Ve>x.maxLineLength&&(x.maxLine=Me,x.maxLineLength=Ve,x.maxLineChanged=!0,de=!1)}),de&&(e.curOp.updateMaxLine=!0)),ji(y,K.line),_i(e,400);var we=i.text.length-(se.line-K.line)-1;i.full?Or(e):K.line==se.line&&i.text.length==1&&!mA(e.doc,i)?Un(e,K.line,"text"):Or(e,K.line,se.line+1,we);var Fe=Qe(e,"changes"),Ie=Qe(e,"change");if(Ie||Fe){var Re={from:K,to:se,text:i.text,removed:i.removed,origin:i.origin};Ie&&Br(e,"change",e,Re),Fe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Re)}e.display.selForContextMenu=null}function $i(e,i,w,y,x){var K;y||(y=w),Ct(y,w)<0&&(K=[y,w],w=K[0],y=K[1]),typeof i=="string"&&(i=e.splitLines(i)),Zi(e,{from:w,to:y,text:i,origin:x})}function FA(e,i,w,y){w<e.line?e.line+=y:i<e.line&&(e.line=i,e.ch=0)}function da(e,i,w,y){for(var x=0;x<e.length;++x){var K=e[x],se=!0;if(K.ranges){K.copied||(K=e[x]=K.deepCopy(),K.copied=!0);for(var de=0;de<K.ranges.length;de++)FA(K.ranges[de].anchor,i,w,y),FA(K.ranges[de].head,i,w,y);continue}for(var ve=0;ve<K.changes.length;++ve){var we=K.changes[ve];if(w<we.from.line)we.from=et(we.from.line+y,we.from.ch),we.to=et(we.to.line+y,we.to.ch);else if(i<=we.to.line){se=!1;break}}se||(e.splice(0,x+1),x=0)}}function kA(e,i){var w=i.from.line,y=i.to.line,x=i.text.length-(y-w)-1;da(e.done,w,y,x),da(e.undone,w,y,x)}function ks(e,i,w,y){var x=i,K=i;return typeof i=="number"?K=pt(e,en(e,i)):x=jt(i),x==null?null:(y(K,x)&&e.cm&&Un(e.cm,x,w),K)}function Is(e){this.lines=e,this.parent=null;for(var i=0,w=0;w<e.length;++w)e[w].parent=this,i+=e[w].height;this.height=i}Is.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var w=e,y=e+i;w<y;++w){var x=this.lines[w];this.height-=x.height,Qa(x),Br(x,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,w){this.height+=w,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var y=0;y<i.length;++y)i[y].parent=this},iterN:function(e,i,w){for(var y=e+i;e<y;++e)if(w(this.lines[e]))return!0}};function qi(e){this.children=e;for(var i=0,w=0,y=0;y<e.length;++y){var x=e[y];i+=x.chunkSize(),w+=x.height,x.parent=this}this.size=i,this.height=w,this.parent=null}qi.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var w=0;w<this.children.length;++w){var y=this.children[w],x=y.chunkSize();if(e<x){var K=Math.min(i,x-e),se=y.height;if(y.removeInner(e,K),this.height-=se-y.height,x==K&&(this.children.splice(w--,1),y.parent=null),(i-=K)==0)break;e=0}else e-=x}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Is))){var de=[];this.collapse(de),this.children=[new Is(de)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,w){this.size+=i.length,this.height+=w;for(var y=0;y<this.children.length;++y){var x=this.children[y],K=x.chunkSize();if(e<=K){if(x.insertInner(e,i,w),x.lines&&x.lines.length>50){for(var se=x.lines.length%25+25,de=se;de<x.lines.length;){var ve=new Is(x.lines.slice(de,de+=25));x.height-=ve.height,this.children.splice(++y,0,ve),ve.parent=this}x.lines=x.lines.slice(0,se),this.maybeSpill()}break}e-=K}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),w=new qi(i);if(e.parent){e.size-=w.size,e.height-=w.height;var x=le(e.parent.children,e);e.parent.children.splice(x+1,0,w)}else{var y=new qi(e.children);y.parent=e,e.children=[y,w],e=y}w.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,w){for(var y=0;y<this.children.length;++y){var x=this.children[y],K=x.chunkSize();if(e<K){var se=Math.min(i,K-e);if(x.iterN(e,se,w))return!0;if((i-=se)==0)break;e=0}else e-=K}}};var Ls=function(e,i,w){if(w)for(var y in w)w.hasOwnProperty(y)&&(this[y]=w[y]);this.doc=e,this.node=i};Ls.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,w=this.line,y=jt(w);if(!(y==null||!i)){for(var x=0;x<i.length;++x)i[x]==this&&i.splice(x--,1);i.length||(w.widgets=null);var K=gs(this);$t(w,Math.max(0,w.height-K)),e&&(Wr(e,function(){Os(e,w,-K),Un(e,y,"widget")}),Br(e,"lineWidgetCleared",e,this,y))}},Ls.prototype.changed=function(){var e=this,i=this.height,w=this.doc.cm,y=this.line;this.height=null;var x=gs(this)-i;x&&(zr(this.doc,y)||$t(y,y.height+x),w&&Wr(w,function(){w.curOp.forceUpdate=!0,Os(w,y,x),Br(w,"lineWidgetChanged",w,e,jt(y))}))},He(Ls);function Os(e,i,w){kn(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ea(e,w)}function Kl(e,i,w,y){var x=new Ls(e,w,y),K=e.cm;return K&&x.noHScroll&&(K.display.alignWidgets=!0),ks(e,i,"widget",function(se){var de=se.widgets||(se.widgets=[]);if(x.insertAt==null?de.push(x):de.splice(Math.min(de.length-1,Math.max(0,x.insertAt)),0,x),x.line=se,K&&!zr(e,se)){var ve=kn(se)<e.scrollTop;$t(se,se.height+gs(x)),ve&&ea(K,x.height),K.curOp.forceUpdate=!0}return!0}),K&&Br(K,"lineWidgetAdded",K,x,typeof i=="number"?i:jt(i)),x}var So=0,Cn=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++So};Cn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ci(e),Qe(this,"clear")){var w=this.find();w&&Br(this,"clear",w.from,w.to)}for(var y=null,x=null,K=0;K<this.lines.length;++K){var se=this.lines[K],de=zn(se.markedSpans,this);e&&!this.collapsed?Un(e,jt(se),"text"):e&&(de.to!=null&&(x=jt(se)),de.from!=null&&(y=jt(se))),se.markedSpans=Po(se.markedSpans,de),de.from==null&&this.collapsed&&!zr(this.doc,se)&&e&&$t(se,mi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var we=fn(this.lines[ve]),Fe=to(we);Fe>e.display.maxLineLength&&(e.display.maxLine=we,e.display.maxLineLength=Fe,e.display.maxLineChanged=!0)}y!=null&&e&&this.collapsed&&Or(e,y,x+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ii(e.doc)),e&&Br(e,"markerCleared",e,this,y,x),i&&Bi(e),this.parent&&this.parent.clear()}},Cn.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var w,y,x=0;x<this.lines.length;++x){var K=this.lines[x],se=zn(K.markedSpans,this);if(se.from!=null&&(w=et(i?K:jt(K),se.from),e==-1))return w;if(se.to!=null&&(y=et(i?K:jt(K),se.to),e==1))return y}return w&&{from:w,to:y}},Cn.prototype.changed=function(){var e=this,i=this.find(-1,!0),w=this,y=this.doc.cm;!i||!y||Wr(y,function(){var x=i.line,K=jt(i.line),se=gi(y,K);if(se&&(Yo(se),y.curOp.selectionChanged=y.curOp.forceUpdate=!0),y.curOp.updateMaxLine=!0,!zr(w.doc,x)&&w.height!=null){var de=w.height;w.height=null;var ve=gs(w)-de;ve&&$t(x,x.height+ve)}Br(y,"markerChanged",y,e)})},Cn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||le(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Cn.prototype.detachLine=function(e){if(this.lines.splice(le(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},He(Cn);function Si(e,i,w,y,x){if(y&&y.shared)return Gl(e,i,w,y,x);if(e.cm&&!e.cm.curOp)return fr(e.cm,Si)(e,i,w,y,x);var K=new Cn(e,x),se=Ct(i,w);if(y&&Ae(y,K,!1),se>0||se==0&&K.clearWhenEmpty!==!1)return K;if(K.replacedWith&&(K.collapsed=!0,K.widgetNode=M("span",[K.replacedWith],"CodeMirror-widget"),y.handleMouseEvents||K.widgetNode.setAttribute("cm-ignore-events","true"),y.insertLeft&&(K.widgetNode.insertLeft=!0)),K.collapsed){if(No(e,i.line,i,w,K)||i.line!=w.line&&No(e,w.line,i,w,K))throw new Error("Inserting collapsed marker partially overlapping an existing one");yn()}K.addToHistory&&CA(e,{from:i,to:w,origin:"markText"},e.sel,NaN);var de=i.line,ve=e.cm,we;if(e.iter(de,w.line+1,function(Ie){ve&&K.collapsed&&!ve.options.lineWrapping&&fn(Ie)==ve.display.maxLine&&(we=!0),K.collapsed&&de!=i.line&&$t(Ie,0),di(Ie,new Qi(K,de==i.line?i.ch:null,de==w.line?w.ch:null)),++de}),K.collapsed&&e.iter(i.line,w.line+1,function(Ie){zr(e,Ie)&&$t(Ie,0)}),K.clearOnEnter&&Ne(K,"beforeCursorEnter",function(){return K.clear()}),K.readOnly&&(Gn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),K.collapsed&&(K.id=++So,K.atomic=!0),ve){if(we&&(ve.curOp.updateMaxLine=!0),K.collapsed)Or(ve,i.line,w.line+1);else if(K.className||K.startStyle||K.endStyle||K.css||K.attributes||K.title)for(var Fe=i.line;Fe<=w.line;Fe++)Un(ve,Fe,"text");K.atomic&&ii(ve.doc),Br(ve,"markerAdded",ve,K)}return K}var es=function(e,i){this.markers=e,this.primary=i;for(var w=0;w<e.length;++w)e[w].parent=this};es.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Br(this,"clear")}},es.prototype.find=function(e,i){return this.primary.find(e,i)},He(es);function Gl(e,i,w,y,x){y=Ae(y),y.shared=!1;var K=[Si(e,i,w,y,x)],se=K[0],de=y.widgetNode;return ni(e,function(ve){de&&(y.widgetNode=de.cloneNode(!0)),K.push(Si(ve,wt(ve,i),wt(ve,w),y,x));for(var we=0;we<ve.linked.length;++we)if(ve.linked[we].isParent)return;se=Se(K)}),new es(K,se)}function pa(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),function(i){return i.parent})}function ga(e,i){for(var w=0;w<i.length;w++){var y=i[w],x=y.find(),K=e.clipPos(x.from),se=e.clipPos(x.to);if(Ct(K,se)){var de=Si(e,K,se,y.primary,y.primary.type);y.markers.push(de),de.parent=y}}}function va(e){for(var i=function(y){var x=e[y],K=[x.primary.doc];ni(x.primary.doc,function(ve){return K.push(ve)});for(var se=0;se<x.markers.length;se++){var de=x.markers[se];le(K,de.doc)==-1&&(de.parent=null,x.markers.splice(se--,1))}},w=0;w<e.length;w++)i(w)}var IA=0,Dr=function(e,i,w,y,x){if(!(this instanceof Dr))return new Dr(e,i,w,y,x);w==null&&(w=0),qi.call(this,[new Is([new In("",null)])]),this.first=w,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=w;var K=et(w,0);this.sel=ti(K),this.history=new mo(null),this.id=++IA,this.modeOption=i,this.lineSep=y,this.direction=x=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Aa(this,{from:K,to:K,text:e}),Fr(this,ti(K),pe)};Dr.prototype=B(qi.prototype,{constructor:Dr,iter:function(e,i,w){w?this.iterN(e-this.first,i-e,w):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var w=0,y=0;y<i.length;++y)w+=i[y].height;this.insertInner(e-this.first,i,w)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=Lr(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:mr(function(e){var i=et(this.first,0),w=this.first+this.size-1;Zi(this,{from:i,to:et(w,pt(this,w).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ei(this.cm,0,0),Fr(this,ti(i),pe)}),replaceRange:function(e,i,w,y){i=wt(this,i),w=w?wt(this,w):i,$i(this,e,i,w,y)},getRange:function(e,i,w){var y=gr(this,wt(this,e),wt(this,i));return w===!1?y:y.join(w||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(xn(this,e))return pt(this,e)},getLineNumber:function(e){return jt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=pt(this,e)),fn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return wt(this,e)},getCursor:function(e){var i=this.sel.primary(),w;return e==null||e=="head"?w=i.head:e=="anchor"?w=i.anchor:e=="end"||e=="to"||e===!1?w=i.to():w=i.from(),w},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:mr(function(e,i,w){fa(this,wt(this,typeof e=="number"?et(e,i||0):e),null,w)}),setSelection:mr(function(e,i,w){fa(this,wt(this,e),wt(this,i||e),w)}),extendSelection:mr(function(e,i,w){Ji(this,wt(this,e),i&&wt(this,i),w)}),extendSelections:mr(function(e,i){vn(this,Wn(this,e),i)}),extendSelectionsBy:mr(function(e,i){var w=me(this.sel.ranges,e);vn(this,Wn(this,w),i)}),setSelections:mr(function(e,i,w){if(e.length){for(var y=[],x=0;x<e.length;x++)y[x]=new Pt(wt(this,e[x].anchor),wt(this,e[x].head));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Fr(this,jr(this.cm,y,i),w)}}),addSelection:mr(function(e,i,w){var y=this.sel.ranges.slice(0);y.push(new Pt(wt(this,e),wt(this,i||e))),Fr(this,jr(this.cm,y,y.length-1),w)}),getSelection:function(e){for(var i=this.sel.ranges,w,y=0;y<i.length;y++){var x=gr(this,i[y].from(),i[y].to());w=w?w.concat(x):x}return e===!1?w:w.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],w=this.sel.ranges,y=0;y<w.length;y++){var x=gr(this,w[y].from(),w[y].to());e!==!1&&(x=x.join(e||this.lineSeparator())),i[y]=x}return i},replaceSelection:function(e,i,w){for(var y=[],x=0;x<this.sel.ranges.length;x++)y[x]=e;this.replaceSelections(y,i,w||"+input")},replaceSelections:mr(function(e,i,w){for(var y=[],x=this.sel,K=0;K<x.ranges.length;K++){var se=x.ranges[K];y[K]={from:se.from(),to:se.to(),text:this.splitLines(e[K]),origin:w}}for(var de=i&&i!="end"&&jl(this,y,i),ve=y.length-1;ve>=0;ve--)Zi(this,y[ve]);de?Ts(this,de):this.cm&&Vi(this.cm)}),undo:mr(function(){_o(this,"undo")}),redo:mr(function(){_o(this,"redo")}),undoSelection:mr(function(){_o(this,"undo",!0)}),redoSelection:mr(function(){_o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,w=0,y=0;y<e.done.length;y++)e.done[y].ranges||++i;for(var x=0;x<e.undone.length;x++)e.undone[x].ranges||++w;return{undo:i,redo:w}},clearHistory:function(){var e=this;this.history=new mo(this.history.maxGeneration),ni(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Yi(this.history.done),undone:Yi(this.history.undone)}},setHistory:function(e){var i=this.history=new mo(this.history.maxGeneration);i.done=Yi(e.done.slice(0),null,!0),i.undone=Yi(e.undone.slice(0),null,!0)},setGutterMarker:mr(function(e,i,w){return ks(this,e,"gutter",function(y){var x=y.gutterMarkers||(y.gutterMarkers={});return x[i]=w,!w&&Q(x)&&(y.gutterMarkers=null),!0})}),clearGutter:mr(function(e){var i=this;this.iter(function(w){w.gutterMarkers&&w.gutterMarkers[e]&&ks(i,w,"gutter",function(){return w.gutterMarkers[e]=null,Q(w.gutterMarkers)&&(w.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!xn(this,e)||(i=e,e=pt(this,e),!e))return null}else if(i=jt(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:mr(function(e,i,w){return ks(this,e,i=="gutter"?"gutter":"class",function(y){var x=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!y[x])y[x]=w;else{if(F(w).test(y[x]))return!1;y[x]+=" "+w}return!0})}),removeLineClass:mr(function(e,i,w){return ks(this,e,i=="gutter"?"gutter":"class",function(y){var x=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",K=y[x];if(K)if(w==null)y[x]=null;else{var se=K.match(F(w));if(!se)return!1;var de=se.index+se[0].length;y[x]=K.slice(0,se.index)+(!se.index||de==K.length?"":" ")+K.slice(de)||null}else return!1;return!0})}),addLineWidget:mr(function(e,i,w){return Kl(this,e,i,w)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,w){return Si(this,wt(this,e),wt(this,i),w,w&&w.type||"range")},setBookmark:function(e,i){var w={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=wt(this,e),Si(this,e,e,w,"bookmark")},findMarksAt:function(e){e=wt(this,e);var i=[],w=pt(this,e.line).markedSpans;if(w)for(var y=0;y<w.length;++y){var x=w[y];(x.from==null||x.from<=e.ch)&&(x.to==null||x.to>=e.ch)&&i.push(x.marker.parent||x.marker)}return i},findMarks:function(e,i,w){e=wt(this,e),i=wt(this,i);var y=[],x=e.line;return this.iter(e.line,i.line+1,function(K){var se=K.markedSpans;if(se)for(var de=0;de<se.length;de++){var ve=se[de];!(ve.to!=null&&x==e.line&&e.ch>=ve.to||ve.from==null&&x!=e.line||ve.from!=null&&x==i.line&&ve.from>=i.ch)&&(!w||w(ve.marker))&&y.push(ve.marker.parent||ve.marker)}++x}),y},getAllMarks:function(){var e=[];return this.iter(function(i){var w=i.markedSpans;if(w)for(var y=0;y<w.length;++y)w[y].from!=null&&e.push(w[y].marker)}),e},posFromIndex:function(e){var i,w=this.first,y=this.lineSeparator().length;return this.iter(function(x){var K=x.text.length+y;if(K>e)return i=e,!0;e-=K,++w}),wt(this,et(w,i))},indexFromPos:function(e){e=wt(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var w=this.lineSeparator().length;return this.iter(this.first,e.line,function(y){i+=y.text.length+w}),i},copy:function(e){var i=new Dr(Lr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,w=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<w&&(w=e.to);var y=new Dr(Lr(this,i,w),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(y.history=this.history),(this.linked||(this.linked=[])).push({doc:y,sharedHist:e.sharedHist}),y.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ga(y,pa(this)),y},unlinkDoc:function(e){if(e instanceof Zt&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var w=this.linked[i];if(w.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),va(pa(this));break}}if(e.history==this.history){var y=[e.id];ni(e,function(x){return y.push(x.id)},!0),e.history=new mo(null),e.history.done=Yi(this.history.done,y),e.history.undone=Yi(this.history.undone,y)}},iterLinkedDocs:function(e){ni(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ar(e)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:mr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Ql(this.cm))})}),Dr.prototype.eachLine=Dr.prototype.iter;var ma=0;function LA(e){var i=this;if(OA(i),!(Xe(i,e)||hn(i.display,e))){Ge(e),b&&(ma=+new Date);var w=Zn(i,e,!0),y=e.dataTransfer.files;if(!(!w||i.isReadOnly()))if(y&&y.length&&window.FileReader&&window.File)for(var x=y.length,K=Array(x),se=0,de=function(){++se==x&&fr(i,function(){w=wt(i.doc,w);var Me={from:w,to:w,text:i.doc.splitLines(K.filter(function(Ve){return Ve!=null}).join(i.doc.lineSeparator())),origin:"paste"};Zi(i.doc,Me),Ts(i.doc,ti(wt(i.doc,w),wt(i.doc,ri(Me))))})()},ve=function(Me,Ve){if(i.options.allowDropFileTypes&&le(i.options.allowDropFileTypes,Me.type)==-1){de();return}var Ze=new FileReader;Ze.onerror=function(){return de()},Ze.onload=function(){var tt=Ze.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(tt)){de();return}K[Ve]=tt,de()},Ze.readAsText(Me)},we=0;we<y.length;we++)ve(y[we],we);else{if(i.state.draggingText&&i.doc.sel.contains(w)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var Fe=e.dataTransfer.getData("Text");if(Fe){var Ie;if(i.state.draggingText&&!i.state.draggingText.copy&&(Ie=i.listSelections()),bo(i.doc,ti(w,w)),Ie)for(var Re=0;Re<Ie.length;++Re)$i(i.doc,"",Ie[Re].anchor,Ie[Re].head,"drag");i.replaceSelection(Fe,"around","paste"),i.display.input.focus()}}catch(Me){}}}}function ya(e,i){if(b&&(!e.state.draggingText||+new Date-ma<100)){Tt(i);return}if(!(Xe(e,i)||hn(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!o)){var w=E("img",null,null,"position: fixed; left: 0; top: 0;");w.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(w.width=w.height=1,e.display.wrapper.appendChild(w),w._top=w.offsetTop),i.dataTransfer.setDragImage(w,0,0),h&&w.parentNode.removeChild(w)}}function zl(e,i){var w=Zn(e,i);if(w){var y=document.createDocumentFragment();nA(e,w,y),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,y)}}function OA(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function UA(e){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),w=[],y=0;y<i.length;y++){var x=i[y].CodeMirror;x&&w.push(x)}w.length&&w[0].operation(function(){for(var K=0;K<w.length;K++)e(w[K])})}}var Jr=!1;function ba(){Jr||(Vl(),Jr=!0)}function Vl(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,UA(Xl)},100))}),Ne(window,"blur",function(){return UA(zi)})}function Xl(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var oi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Us=0;Us<10;Us++)oi[Us+48]=oi[Us+96]=String(Us);for(var xo=65;xo<=90;xo++)oi[xo]=String.fromCharCode(xo);for(var Ds=1;Ds<=12;Ds++)oi[Ds+111]=oi[Ds+63235]="F"+Ds;var Rn={};Rn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rn.default=p?Rn.macDefault:Rn.pcDefault;function Yl(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var w,y,x,K,se=0;se<i.length-1;se++){var de=i[se];if(/^(cmd|meta|m)$/i.test(de))K=!0;else if(/^a(lt)?$/i.test(de))w=!0;else if(/^(c|ctrl|control)$/i.test(de))y=!0;else if(/^s(hift)?$/i.test(de))x=!0;else throw new Error("Unrecognized modifier name: "+de)}return w&&(e="Alt-"+e),y&&(e="Ctrl-"+e),K&&(e="Cmd-"+e),x&&(e="Shift-"+e),e}function Jl(e){var i={};for(var w in e)if(e.hasOwnProperty(w)){var y=e[w];if(/^(name|fallthrough|(de|at)tach)$/.test(w))continue;if(y=="..."){delete e[w];continue}for(var x=me(w.split(" "),Yl),K=0;K<x.length;K++){var se=void 0,de=void 0;K==x.length-1?(de=x.join(" "),se=y):(de=x.slice(0,K+1).join(" "),se="...");var ve=i[de];if(!ve)i[de]=se;else if(ve!=se)throw new Error("Inconsistent bindings for "+de)}delete e[w]}for(var we in i)e[we]=i[we];return e}function xi(e,i,w,y){i=dr(i);var x=i.call?i.call(e,y):i[e];if(x===!1)return"nothing";if(x==="...")return"multi";if(x!=null&&w(x))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return xi(e,i.fallthrough,w,y);for(var K=0;K<i.fallthrough.length;K++){var se=xi(e,i.fallthrough[K],w,y);if(se)return se}}}function DA(e){var i=typeof e=="string"?e:oi[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Eo(e,i,w){var y=e;return i.altKey&&y!="Alt"&&(e="Alt-"+e),(_?i.metaKey:i.ctrlKey)&&y!="Ctrl"&&(e="Ctrl-"+e),(_?i.ctrlKey:i.metaKey)&&y!="Mod"&&(e="Cmd-"+e),!w&&i.shiftKey&&y!="Shift"&&(e="Shift-"+e),e}function wa(e,i){if(h&&e.keyCode==34&&e.char)return!1;var w=oi[e.keyCode];return w==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(w=e.code),Eo(w,e,i))}function dr(e){return typeof e=="string"?Rn[e]:e}function Bn(e,i){for(var w=e.doc.sel.ranges,y=[],x=0;x<w.length;x++){for(var K=i(w[x]);y.length&&Ct(K.from,Se(y).to)<=0;){var se=y.pop();if(Ct(se.from,K.from)<0){K.from=se.from;break}}y.push(K)}Wr(e,function(){for(var de=y.length-1;de>=0;de--)$i(e.doc,"",y[de].from,y[de].to,"+delete");Vi(e)})}function Ca(e,i,w){var y=re(e.text,i+w,w);return y<0||y>e.text.length?null:y}function Ba(e,i,w){var y=Ca(e,i.ch,w);return y==null?null:new et(i.line,y,w<0?"after":"before")}function To(e,i,w,y,x){if(e){i.doc.direction=="rtl"&&(x=-x);var K=$e(w,i.doc.direction);if(K){var se=x<0?Se(K):K[0],de=x<0==(se.level==1),ve=de?"after":"before",we;if(se.level>0||i.doc.direction=="rtl"){var Fe=Kt(i,w);we=x<0?w.text.length-1:0;var Ie=pn(i,Fe,we).top;we=ge(function(Re){return pn(i,Fe,Re).top==Ie},x<0==(se.level==1)?se.from:se.to-1,we),ve=="before"&&(we=Ca(w,we,1))}else we=x<0?se.to:se.from;return new et(y,we,ve)}}return new et(y,x<0?w.text.length:0,x<0?"before":"after")}function _a(e,i,w,y){var x=$e(i,e.doc.direction);if(!x)return Ba(i,w,y);w.ch>=i.text.length?(w.ch=i.text.length,w.sticky="before"):w.ch<=0&&(w.ch=0,w.sticky="after");var K=Le(x,w.ch,w.sticky),se=x[K];if(e.doc.direction=="ltr"&&se.level%2==0&&(y>0?se.to>w.ch:se.from<w.ch))return Ba(i,w,y);var de=function(ot,lt){return Ca(i,ot instanceof et?ot.ch:ot,lt)},ve,we=function(ot){return e.options.lineWrapping?(ve=ve||Kt(e,i),Za(e,i,ve,ot)):{begin:0,end:i.text.length}},Fe=we(w.sticky=="before"?de(w,-1):w.ch);if(e.doc.direction=="rtl"||se.level==1){var Ie=se.level==1==y<0,Re=de(w,Ie?1:-1);if(Re!=null&&(Ie?Re<=se.to&&Re<=Fe.end:Re>=se.from&&Re>=Fe.begin)){var Me=Ie?"before":"after";return new et(w.line,Re,Me)}}var Ve=function(ot,lt,at){for(var ct=function(Jt,yr){return yr?new et(w.line,de(Jt,1),"before"):new et(w.line,Jt,"after")};ot>=0&&ot<x.length;ot+=lt){var yt=x[ot],vt=lt>0==(yt.level!=1),Ft=vt?at.begin:de(at.end,-1);if(yt.from<=Ft&&Ft<yt.to||(Ft=vt?yt.from:de(yt.to,-1),at.begin<=Ft&&Ft<at.end))return ct(Ft,vt)}},Ze=Ve(K+y,y,Fe);if(Ze)return Ze;var tt=y>0?Fe.end:de(Fe.begin,-1);return tt!=null&&!(y>0&&tt==i.text.length)&&(Ze=Ve(y>0?0:x.length-1,y,we(tt)),Ze)?Ze:null}var Ms={selectAll:xA,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),pe)},killLine:function(e){return Bn(e,function(i){if(i.empty()){var w=pt(e.doc,i.head.line).text.length;return i.head.ch==w&&i.head.line<e.lastLine()?{from:i.head,to:et(i.head.line+1,0)}:{from:i.head,to:et(i.head.line,w)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return Bn(e,function(i){return{from:et(i.from().line,0),to:wt(e.doc,et(i.to().line+1,0))}})},delLineLeft:function(e){return Bn(e,function(i){return{from:et(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return Bn(e,function(i){var w=e.charCoords(i.head,"div").top+5,y=e.coordsChar({left:0,top:w},"div");return{from:y,to:i.from()}})},delWrappedLineRight:function(e){return Bn(e,function(i){var w=e.charCoords(i.head,"div").top+5,y=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:w},"div");return{from:i.from(),to:y}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return MA(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return RA(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Zl(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var w=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:w},"div")},ce)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var w=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:w},"div")},ce)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var w=e.cursorCoords(i.head,"div").top+5,y=e.coordsChar({left:0,top:w},"div");return y.ch<e.getLine(y.line).search(/\S/)?RA(e,i.head):y},ce)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],w=e.listSelections(),y=e.options.tabSize,x=0;x<w.length;x++){var K=w[x].from(),se=U(e.getLine(K.line),K.ch,y);i.push(xe(y-se%y))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Wr(e,function(){for(var i=e.listSelections(),w=[],y=0;y<i.length;y++)if(i[y].empty()){var x=i[y].head,K=pt(e.doc,x.line).text;if(K){if(x.ch==K.length&&(x=new et(x.line,x.ch-1)),x.ch>0)x=new et(x.line,x.ch+1),e.replaceRange(K.charAt(x.ch-1)+K.charAt(x.ch-2),et(x.line,x.ch-2),x,"+transpose");else if(x.line>e.doc.first){var se=pt(e.doc,x.line-1).text;se&&(x=new et(x.line,1),e.replaceRange(K.charAt(0)+e.doc.lineSeparator()+se.charAt(se.length-1),et(x.line-1,se.length-1),x,"+transpose"))}}w.push(new Pt(x,x))}e.setSelections(w)})},newlineAndIndent:function(e){return Wr(e,function(){for(var i=e.listSelections(),w=i.length-1;w>=0;w--)e.replaceRange(e.doc.lineSeparator(),i[w].anchor,i[w].head,"+input");i=e.listSelections();for(var y=0;y<i.length;y++)e.indentLine(i[y].from().line,null,!0);Vi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function MA(e,i){var w=pt(e.doc,i),y=fn(w);return y!=w&&(i=jt(y)),To(!0,e,y,i,1)}function Zl(e,i){var w=pt(e.doc,i),y=al(w);return y!=w&&(i=jt(y)),To(!0,e,w,i,-1)}function RA(e,i){var w=MA(e,i.line),y=pt(e.doc,w.line),x=$e(y,e.doc.direction);if(!x||x[0].level==0){var K=Math.max(w.ch,y.text.search(/\S/)),se=i.line==w.line&&i.ch<=K&&i.ch;return et(w.line,se?0:K,w.sticky)}return w}function Fo(e,i,w){if(typeof i=="string"&&(i=Ms[i],!i))return!1;e.display.input.ensurePolled();var y=e.display.shift,x=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),w&&(e.display.shift=!1),x=i(e)!=ue}finally{e.display.shift=y,e.state.suppressEdits=!1}return x}function $l(e,i,w){for(var y=0;y<e.state.keyMaps.length;y++){var x=xi(i,e.state.keyMaps[y],w,e);if(x)return x}return e.options.extraKeys&&xi(i,e.options.extraKeys,w,e)||xi(i,e.options.keyMap,w,e)}var ql=new W;function Rs(e,i,w,y){var x=e.state.keySeq;if(x){if(DA(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:ql.set(50,function(){e.state.keySeq==x&&(e.state.keySeq=null,e.display.input.reset())}),Sa(e,x+" "+i,w,y))return!0}return Sa(e,i,w,y)}function Sa(e,i,w,y){var x=$l(e,i,y);return x=="multi"&&(e.state.keySeq=i),x=="handled"&&Br(e,"keyHandled",e,i,w),(x=="handled"||x=="multi")&&(Ge(w),Ao(e)),!!x}function xa(e,i){var w=wa(i,!0);return w?i.shiftKey&&!e.state.keySeq?Rs(e,"Shift-"+w,i,function(y){return Fo(e,y,!0)})||Rs(e,w,i,function(y){if(typeof y=="string"?/^go[A-Z]/.test(y):y.motion)return Fo(e,y)}):Rs(e,w,i,function(y){return Fo(e,y)}):!1}function jA(e,i,w){return Rs(e,"'"+w+"'",i,function(y){return Fo(e,y,!0)})}var ko=null;function Io(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=H(),!Xe(i,e))){b&&a<11&&e.keyCode==27&&(e.returnValue=!1);var w=e.keyCode;i.display.shift=w==16||e.shiftKey;var y=xa(i,e);h&&(ko=y?w:null,!y&&w==88&&!Mt&&(p?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),oe&&!p&&!y&&w==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),w==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&eu(i)}}function eu(e){var i=e.display.lineDiv;X(i,"CodeMirror-crosshair");function w(y){(y.keyCode==18||!y.altKey)&&(T(i,"CodeMirror-crosshair"),Ye(document,"keyup",w),Ye(document,"mouseover",w))}Ne(document,"keyup",w),Ne(document,"mouseover",w)}function QA(e){e.keyCode==16&&(this.doc.sel.shift=!1),Xe(this,e)}function PA(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(hn(i.display,e)||Xe(i,e)||e.ctrlKey&&!e.altKey||p&&e.metaKey)){var w=e.keyCode,y=e.charCode;if(h&&w==ko){ko=null,Ge(e);return}if(!(h&&(!e.which||e.which<10)&&xa(i,e))){var x=String.fromCharCode(y==null?w:y);x!="\b"&&(jA(i,e,x)||i.display.input.onKeyPress(e))}}}var tu=400,ts=function(e,i,w){this.time=e,this.pos=i,this.button=w};ts.prototype.compare=function(e,i,w){return this.time+tu>e&&Ct(i,this.pos)==0&&w==this.button};var ai,js;function HA(e,i){var w=+new Date;return js&&js.compare(w,e,i)?(ai=js=null,"triple"):ai&&ai.compare(w,e,i)?(js=new ts(w,e,i),ai=null,"double"):(ai=new ts(w,e,i),js=null,"single")}function Lo(e){var i=this,w=i.display;if(!(Xe(i,e)||w.activeTouch&&w.input.supportsTouch())){if(w.input.ensurePolled(),w.shift=e.shiftKey,hn(w,e)){u||(w.scroller.draggable=!1,setTimeout(function(){return w.scroller.draggable=!0},100));return}if(!Ea(i,e)){var y=Zn(i,e),x=Et(e),K=y?HA(y,x):"single";window.focus(),x==1&&i.state.selectingText&&i.state.selectingText(e),!(y&&NA(i,x,y,K,e))&&(x==1?y?KA(i,y,K,e):xt(e)==w.scroller&&Ge(e):x==2?(y&&Ji(i.doc,y),setTimeout(function(){return w.input.focus()},20)):x==3&&(O?i.display.input.onContextMenu(e):sA(i)))}}}function NA(e,i,w,y,x){var K="Click";return y=="double"?K="Double"+K:y=="triple"&&(K="Triple"+K),K=(i==1?"Left":i==2?"Middle":"Right")+K,Rs(e,Eo(K,x),x,function(se){if(typeof se=="string"&&(se=Ms[se]),!se)return!1;var de=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),de=se(e,w)!=ue}finally{e.state.suppressEdits=!1}return de})}function WA(e,i,w){var y=e.getOption("configureMouse"),x=y?y(e,i,w):{};if(x.unit==null){var K=g?w.shiftKey&&w.metaKey:w.altKey;x.unit=K?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(x.extend==null||e.doc.extend)&&(x.extend=e.doc.extend||w.shiftKey),x.addNew==null&&(x.addNew=p?w.metaKey:w.ctrlKey),x.moveOnDrag==null&&(x.moveOnDrag=!(p?w.altKey:w.ctrlKey)),x}function KA(e,i,w,y){b?setTimeout(Z(iA,e),0):e.curOp.focus=H();var x=WA(e,w,y),K=e.doc.sel,se;e.options.dragDrop&&Dt&&!e.isReadOnly()&&w=="single"&&(se=K.contains(i))>-1&&(Ct((se=K.ranges[se]).from(),i)<0||i.xRel>0)&&(Ct(se.to(),i)>0||i.xRel<0)?ru(e,y,i,x):GA(e,y,i,x)}function ru(e,i,w,y){var x=e.display,K=!1,se=fr(e,function(we){u&&(x.scroller.draggable=!1),e.state.draggingText=!1,Ye(x.wrapper.ownerDocument,"mouseup",se),Ye(x.wrapper.ownerDocument,"mousemove",de),Ye(x.scroller,"dragstart",ve),Ye(x.scroller,"drop",se),K||(Ge(we),y.addNew||Ji(e.doc,w,null,null,y.extend),u&&!o||b&&a==9?setTimeout(function(){x.wrapper.ownerDocument.body.focus({preventScroll:!0}),x.input.focus()},20):x.input.focus())}),de=function(we){K=K||Math.abs(i.clientX-we.clientX)+Math.abs(i.clientY-we.clientY)>=10},ve=function(){return K=!0};u&&(x.scroller.draggable=!0),e.state.draggingText=se,se.copy=!y.moveOnDrag,x.scroller.dragDrop&&x.scroller.dragDrop(),Ne(x.wrapper.ownerDocument,"mouseup",se),Ne(x.wrapper.ownerDocument,"mousemove",de),Ne(x.scroller,"dragstart",ve),Ne(x.scroller,"drop",se),sA(e),setTimeout(function(){return x.input.focus()},20)}function Qs(e,i,w){if(w=="char")return new Pt(i,i);if(w=="word")return e.findWordAt(i);if(w=="line")return new Pt(et(i.line,0),wt(e.doc,et(i.line+1,0)));var y=w(e,i);return new Pt(y.from,y.to)}function GA(e,i,w,y){var x=e.display,K=e.doc;Ge(i);var se,de,ve=K.sel,we=ve.ranges;if(y.addNew&&!y.extend?(de=K.sel.contains(w),de>-1?se=we[de]:se=new Pt(w,w)):(se=K.sel.primary(),de=K.sel.primIndex),y.unit=="rectangle")y.addNew||(se=new Pt(w,w)),w=Zn(e,i,!0,!0),de=-1;else{var Fe=Qs(e,w,y.unit);y.extend?se=ua(se,Fe.anchor,Fe.head,y.extend):se=Fe}y.addNew?de==-1?(de=we.length,Fr(K,jr(e,we.concat([se]),de),{scroll:!1,origin:"*mouse"})):we.length>1&&we[de].empty()&&y.unit=="char"&&!y.extend?(Fr(K,jr(e,we.slice(0,de).concat(we.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),ve=K.sel):ca(K,de,se,fe):(de=0,Fr(K,new Yr([se],0),fe),ve=K.sel);var Ie=w;function Re(at){if(Ct(Ie,at)!=0)if(Ie=at,y.unit=="rectangle"){for(var ct=[],yt=e.options.tabSize,vt=U(pt(K,w.line).text,w.ch,yt),Ft=U(pt(K,at.line).text,at.ch,yt),Jt=Math.min(vt,Ft),yr=Math.max(vt,Ft),ar=Math.min(w.line,at.line),Kr=Math.min(e.lastLine(),Math.max(w.line,at.line));ar<=Kr;ar++){var kr=pt(K,ar).text,cr=be(kr,Jt,yt);Jt==yr?ct.push(new Pt(et(ar,cr),et(ar,cr))):kr.length>cr&&ct.push(new Pt(et(ar,cr),et(ar,be(kr,yr,yt))))}ct.length||ct.push(new Pt(w,w)),Fr(K,jr(e,ve.ranges.slice(0,de).concat(ct),de),{origin:"*mouse",scroll:!1}),e.scrollIntoView(at)}else{var Ir=se,Sr=Qs(e,at,y.unit),it=Ir.anchor,er;Ct(Sr.anchor,it)>0?(er=Sr.head,it=ci(Ir.from(),Sr.anchor)):(er=Sr.anchor,it=Di(Ir.to(),Sr.head));var tr=ve.ranges.slice(0);tr[de]=zA(e,new Pt(wt(K,it),er)),Fr(K,jr(e,tr,de),fe)}}var Me=x.wrapper.getBoundingClientRect(),Ve=0;function Ze(at){var ct=++Ve,yt=Zn(e,at,!0,y.unit=="rectangle");if(yt)if(Ct(yt,Ie)!=0){e.curOp.focus=H(),Re(yt);var vt=uo(x,K);(yt.line>=vt.to||yt.line<vt.from)&&setTimeout(fr(e,function(){Ve==ct&&Ze(at)}),150)}else{var Ft=at.clientY<Me.top?-20:at.clientY>Me.bottom?20:0;Ft&&setTimeout(fr(e,function(){Ve==ct&&(x.scroller.scrollTop+=Ft,Ze(at))}),50)}}function tt(at){e.state.selectingText=!1,Ve=1/0,at&&(Ge(at),x.input.focus()),Ye(x.wrapper.ownerDocument,"mousemove",ot),Ye(x.wrapper.ownerDocument,"mouseup",lt),K.history.lastSelOrigin=null}var ot=fr(e,function(at){at.buttons===0||!Et(at)?tt(at):Ze(at)}),lt=fr(e,tt);e.state.selectingText=lt,Ne(x.wrapper.ownerDocument,"mousemove",ot),Ne(x.wrapper.ownerDocument,"mouseup",lt)}function zA(e,i){var w=i.anchor,y=i.head,x=pt(e.doc,w.line);if(Ct(w,y)==0&&w.sticky==y.sticky)return i;var K=$e(x);if(!K)return i;var se=Le(K,w.ch,w.sticky),de=K[se];if(de.from!=w.ch&&de.to!=w.ch)return i;var ve=se+(de.from==w.ch==(de.level!=1)?0:1);if(ve==0||ve==K.length)return i;var we;if(y.line!=w.line)we=(y.line-w.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Fe=Le(K,y.ch,y.sticky),Ie=Fe-se||(y.ch-w.ch)*(de.level==1?-1:1);Fe==ve-1||Fe==ve?we=Ie<0:we=Ie>0}var Re=K[ve+(we?-1:0)],Me=we==(Re.level==1),Ve=Me?Re.from:Re.to,Ze=Me?"after":"before";return w.ch==Ve&&w.sticky==Ze?i:new Pt(new et(w.line,Ve,Ze),y)}function VA(e,i,w,y){var x,K;if(i.touches)x=i.touches[0].clientX,K=i.touches[0].clientY;else try{x=i.clientX,K=i.clientY}catch(Re){return!1}if(x>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;y&&Ge(i);var se=e.display,de=se.lineDiv.getBoundingClientRect();if(K>de.bottom||!Qe(e,w))return st(i);K-=de.top-se.viewOffset;for(var ve=0;ve<e.display.gutterSpecs.length;++ve){var we=se.gutters.childNodes[ve];if(we&&we.getBoundingClientRect().right>=x){var Fe=qr(e.doc,K),Ie=e.display.gutterSpecs[ve];return ze(e,w,e,Fe,Ie.className,i),st(i)}}}function Ea(e,i){return VA(e,i,"gutterClick",!0)}function Ta(e,i){hn(e.display,i)||rs(e,i)||Xe(e,i,"contextmenu")||O||e.display.input.onContextMenu(i)}function rs(e,i){return Qe(e,"gutterContextMenu")?VA(e,i,"gutterContextMenu",!1):!1}function Oo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),rn(e)}var jn={toString:function(){return"CodeMirror.Init"}},XA={},Uo={};function nu(e){var i=e.optionHandlers;function w(y,x,K,se){e.defaults[y]=x,K&&(i[y]=se?function(de,ve,we){we!=jn&&K(de,ve,we)}:K)}e.defineOption=w,e.Init=jn,w("value","",function(y,x){return y.setValue(x)},!0),w("mode",null,function(y,x){y.doc.modeOption=x,aa(y)},!0),w("indentUnit",2,aa,!0),w("indentWithTabs",!1),w("smartIndent",!0),w("tabSize",4,function(y){xs(y),rn(y),Or(y)},!0),w("lineSeparator",null,function(y,x){if(y.doc.lineSep=x,!!x){var K=[],se=y.doc.first;y.doc.iter(function(ve){for(var we=0;;){var Fe=ve.text.indexOf(x,we);if(Fe==-1)break;we=Fe+x.length,K.push(et(se,Fe))}se++});for(var de=K.length-1;de>=0;de--)$i(y.doc,x,K[de],et(K[de].line,K[de].ch+x.length))}}),w("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(y,x,K){y.state.specialChars=new RegExp(x.source+(x.test(" ")?"":"| "),"g"),K!=jn&&y.refresh()}),w("specialCharPlaceholder",ul,function(y){return y.refresh()},!0),w("electricChars",!0),w("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),w("spellcheck",!1,function(y,x){return y.getInputField().spellcheck=x},!0),w("autocorrect",!1,function(y,x){return y.getInputField().autocorrect=x},!0),w("autocapitalize",!1,function(y,x){return y.getInputField().autocapitalize=x},!0),w("rtlMoveVisually",!m),w("wholeLineUpdateBefore",!0),w("theme","default",function(y){Oo(y),Ss(y)},!0),w("keyMap","default",function(y,x,K){var se=dr(x),de=K!=jn&&dr(K);de&&de.detach&&de.detach(y,se),se.attach&&se.attach(y,de||null)}),w("extraKeys",null),w("configureMouse",null),w("lineWrapping",!1,YA,!0),w("gutters",[],function(y,x){y.display.gutterSpecs=ia(x,y.options.lineNumbers),Ss(y)},!0),w("fixedGutter",!0,function(y,x){y.display.gutters.style.left=x?Ki(y.display)+"px":"0",y.refresh()},!0),w("coverGutterNextToScrollbar",!1,function(y){return Mn(y)},!0),w("scrollbarStyle","native",function(y){lA(y),Mn(y),y.display.scrollbars.setScrollTop(y.doc.scrollTop),y.display.scrollbars.setScrollLeft(y.doc.scrollLeft)},!0),w("lineNumbers",!1,function(y,x){y.display.gutterSpecs=ia(y.options.gutters,x),Ss(y)},!0),w("firstLineNumber",1,Ss,!0),w("lineNumberFormatter",function(y){return y},Ss,!0),w("showCursorWhenSelecting",!1,qn,!0),w("resetSelectionOnContextMenu",!0),w("lineWiseCopyCut",!0),w("pasteLinesPerSelection",!0),w("selectionsMayTouch",!1),w("readOnly",!1,function(y,x){x=="nocursor"&&(zi(y),y.display.input.blur()),y.display.input.readOnlyChanged(x)}),w("screenReaderLabel",null,function(y,x){x=x===""?null:x,y.display.input.screenReaderLabelChanged(x)}),w("disableInput",!1,function(y,x){x||y.display.input.reset()},!0),w("dragDrop",!0,iu),w("allowDropFileTypes",null),w("cursorBlinkRate",530),w("cursorScrollMargin",0),w("cursorHeight",1,qn,!0),w("singleCursorHeightPerLine",!0,qn,!0),w("workTime",100),w("workDelay",100),w("flattenSpans",!0,xs,!0),w("addModeClass",!1,xs,!0),w("pollInterval",100),w("undoDepth",200,function(y,x){return y.doc.history.undoDepth=x}),w("historyEventDelay",1250),w("viewportMargin",10,function(y){return y.refresh()},!0),w("maxHighlightLength",1e4,xs,!0),w("moveInputWithCursor",!0,function(y,x){x||y.display.input.resetPosition()}),w("tabindex",null,function(y,x){return y.display.input.getField().tabIndex=x||""}),w("autofocus",null),w("direction","ltr",function(y,x){return y.doc.setDirection(x)},!0),w("phrases",null)}function iu(e,i,w){var y=w&&w!=jn;if(!i!=!y){var x=e.display.dragFunctions,K=i?Ne:Ye;K(e.display.scroller,"dragstart",x.start),K(e.display.scroller,"dragenter",x.enter),K(e.display.scroller,"dragover",x.over),K(e.display.scroller,"dragleave",x.leave),K(e.display.scroller,"drop",x.drop)}}function YA(e){e.options.lineWrapping?(X(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Ko(e)),ao(e),Or(e),rn(e),setTimeout(function(){return Mn(e)},100)}function Zt(e,i){var w=this;if(!(this instanceof Zt))return new Zt(e,i);this.options=i=i?Ae(i):{},Ae(XA,i,!1);var y=i.value;typeof y=="string"?y=new Dr(y,i.mode,null,i.lineSeparator,i.direction):i.mode&&(y.modeOption=i.mode),this.doc=y;var x=new Zt.inputStyles[i.inputStyle](this),K=this.display=new Rl(e,y,x,i);K.wrapper.CodeMirror=this,Oo(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),lA(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new W,keySeq:null,specialChars:null},i.autofocus&&!d&&K.input.focus(),b&&a<11&&setTimeout(function(){return w.display.input.reset(!0)},20),JA(this),ba(),Ci(this),this.curOp.forceUpdate=!0,hr(this,y),i.autofocus&&!d||this.hasFocus()?setTimeout(function(){w.hasFocus()&&!w.state.focused&&$o(w)},20):zi(this);for(var se in Uo)Uo.hasOwnProperty(se)&&Uo[se](this,i[se],jn);fA(this),i.finishInit&&i.finishInit(this);for(var de=0;de<Do.length;++de)Do[de](this);Bi(this),u&&i.lineWrapping&&getComputedStyle(K.lineDiv).textRendering=="optimizelegibility"&&(K.lineDiv.style.textRendering="auto")}Zt.defaults=XA,Zt.optionHandlers=Uo;function JA(e){var i=e.display;Ne(i.scroller,"mousedown",fr(e,Lo)),b&&a<11?Ne(i.scroller,"dblclick",fr(e,function(ve){if(!Xe(e,ve)){var we=Zn(e,ve);if(!(!we||Ea(e,ve)||hn(e.display,ve))){Ge(ve);var Fe=e.findWordAt(we);Ji(e.doc,Fe.anchor,Fe.head)}}})):Ne(i.scroller,"dblclick",function(ve){return Xe(e,ve)||Ge(ve)}),Ne(i.scroller,"contextmenu",function(ve){return Ta(e,ve)}),Ne(i.input.getField(),"contextmenu",function(ve){i.scroller.contains(ve.target)||Ta(e,ve)});var w,y={end:0};function x(){i.activeTouch&&(w=setTimeout(function(){return i.activeTouch=null},1e3),y=i.activeTouch,y.end=+new Date)}function K(ve){if(ve.touches.length!=1)return!1;var we=ve.touches[0];return we.radiusX<=1&&we.radiusY<=1}function se(ve,we){if(we.left==null)return!0;var Fe=we.left-ve.left,Ie=we.top-ve.top;return Fe*Fe+Ie*Ie>20*20}Ne(i.scroller,"touchstart",function(ve){if(!Xe(e,ve)&&!K(ve)&&!Ea(e,ve)){i.input.ensurePolled(),clearTimeout(w);var we=+new Date;i.activeTouch={start:we,moved:!1,prev:we-y.end<=300?y:null},ve.touches.length==1&&(i.activeTouch.left=ve.touches[0].pageX,i.activeTouch.top=ve.touches[0].pageY)}}),Ne(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ne(i.scroller,"touchend",function(ve){var we=i.activeTouch;if(we&&!hn(i,ve)&&we.left!=null&&!we.moved&&new Date-we.start<300){var Fe=e.coordsChar(i.activeTouch,"page"),Ie;!we.prev||se(we,we.prev)?Ie=new Pt(Fe,Fe):!we.prev.prev||se(we,we.prev.prev)?Ie=e.findWordAt(Fe):Ie=new Pt(et(Fe.line,0),wt(e.doc,et(Fe.line+1,0))),e.setSelection(Ie.anchor,Ie.head),e.focus(),Ge(ve)}x()}),Ne(i.scroller,"touchcancel",x),Ne(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ws(e,i.scroller.scrollTop),bi(e,i.scroller.scrollLeft,!0),ze(e,"scroll",e))}),Ne(i.scroller,"mousewheel",function(ve){return gA(e,ve)}),Ne(i.scroller,"DOMMouseScroll",function(ve){return gA(e,ve)}),Ne(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(ve){Xe(e,ve)||Tt(ve)},over:function(ve){Xe(e,ve)||(zl(e,ve),Tt(ve))},start:function(ve){return ya(e,ve)},drop:fr(e,LA),leave:function(ve){Xe(e,ve)||OA(e)}};var de=i.input.getField();Ne(de,"keyup",function(ve){return QA.call(e,ve)}),Ne(de,"keydown",fr(e,Io)),Ne(de,"keypress",fr(e,PA)),Ne(de,"focus",function(ve){return $o(e,ve)}),Ne(de,"blur",function(ve){return zi(e,ve)})}var Do=[];Zt.defineInitHook=function(e){return Do.push(e)};function Ei(e,i,w,y){var x=e.doc,K;w==null&&(w="add"),w=="smart"&&(x.mode.indent?K=Fn(e,i).state:w="prev");var se=e.options.tabSize,de=pt(x,i),ve=U(de.text,null,se);de.stateAfter&&(de.stateAfter=null);var we=de.text.match(/^\s*/)[0],Fe;if(!y&&!/\S/.test(de.text))Fe=0,w="not";else if(w=="smart"&&(Fe=x.mode.indent(K,de.text.slice(we.length),de.text),Fe==ue||Fe>150)){if(!y)return;w="prev"}w=="prev"?i>x.first?Fe=U(pt(x,i-1).text,null,se):Fe=0:w=="add"?Fe=ve+e.options.indentUnit:w=="subtract"?Fe=ve-e.options.indentUnit:typeof w=="number"&&(Fe=ve+w),Fe=Math.max(0,Fe);var Ie="",Re=0;if(e.options.indentWithTabs)for(var Me=Math.floor(Fe/se);Me;--Me)Re+=se,Ie+=" ";if(Re<Fe&&(Ie+=xe(Fe-Re)),Ie!=we)return $i(x,Ie,et(i,0),et(i,we.length),"+input"),de.stateAfter=null,!0;for(var Ve=0;Ve<x.sel.ranges.length;Ve++){var Ze=x.sel.ranges[Ve];if(Ze.head.line==i&&Ze.head.ch<we.length){var tt=et(i,we.length);ca(x,Ve,new Pt(tt,tt));break}}}var sn=null;function Ps(e){sn=e}function Fa(e,i,w,y,x){var K=e.doc;e.display.shift=!1,y||(y=K.sel);var se=+new Date-200,de=x=="paste"||e.state.pasteIncoming>se,ve=Ar(i),we=null;if(de&&y.ranges.length>1)if(sn&&sn.text.join(`
|
|
|
`)==i){if(y.ranges.length%sn.text.length==0){we=[];for(var Fe=0;Fe<sn.text.length;Fe++)we.push(K.splitLines(sn.text[Fe]))}}else ve.length==y.ranges.length&&e.options.pasteLinesPerSelection&&(we=me(ve,function(ot){return[ot]}));for(var Ie=e.curOp.updateInput,Re=y.ranges.length-1;Re>=0;Re--){var Me=y.ranges[Re],Ve=Me.from(),Ze=Me.to();Me.empty()&&(w&&w>0?Ve=et(Ve.line,Ve.ch-w):e.state.overwrite&&!de?Ze=et(Ze.line,Math.min(pt(K,Ze.line).text.length,Ze.ch+Se(ve).length)):de&&sn&&sn.lineWise&&sn.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(Ve=Ze=et(Ve.line,0)));var tt={from:Ve,to:Ze,text:we?we[Re%we.length]:ve,origin:x||(de?"paste":e.state.cutIncoming>se?"cut":"+input")};Zi(e.doc,tt),Br(e,"inputRead",e,tt)}i&&!de&&Ns(e,i),Vi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ie),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Hs(e,i){var w=e.clipboardData&&e.clipboardData.getData("Text");if(w)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&Wr(i,function(){return Fa(i,w,0,null,"paste")}),!0}function Ns(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var w=e.doc.sel,y=w.ranges.length-1;y>=0;y--){var x=w.ranges[y];if(!(x.head.ch>100||y&&w.ranges[y-1].head.line==x.head.line)){var K=e.getModeAt(x.head),se=!1;if(K.electricChars){for(var de=0;de<K.electricChars.length;de++)if(i.indexOf(K.electricChars.charAt(de))>-1){se=Ei(e,x.head.line,"smart");break}}else K.electricInput&&K.electricInput.test(pt(e.doc,x.head.line).text.slice(0,x.head.ch))&&(se=Ei(e,x.head.line,"smart"));se&&Br(e,"electricInput",e,x.head.line)}}}function ka(e){for(var i=[],w=[],y=0;y<e.doc.sel.ranges.length;y++){var x=e.doc.sel.ranges[y].head.line,K={anchor:et(x,0),head:et(x+1,0)};w.push(K),i.push(e.getRange(K.anchor,K.head))}return{text:i,ranges:w}}function Ia(e,i,w,y){e.setAttribute("autocorrect",w?"":"off"),e.setAttribute("autocapitalize",y?"":"off"),e.setAttribute("spellcheck",!!i)}function ZA(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),i=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),s&&(e.style.border="1px solid black"),Ia(e),i}function $A(e){var i=e.optionHandlers,w=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(y,x){var K=this.options,se=K[y];K[y]==x&&y!="mode"||(K[y]=x,i.hasOwnProperty(y)&&fr(this,i[y])(this,x,se),ze(this,"optionChange",this,y))},getOption:function(y){return this.options[y]},getDoc:function(){return this.doc},addKeyMap:function(y,x){this.state.keyMaps[x?"push":"unshift"](dr(y))},removeKeyMap:function(y){for(var x=this.state.keyMaps,K=0;K<x.length;++K)if(x[K]==y||x[K].name==y)return x.splice(K,1),!0},addOverlay:Ur(function(y,x){var K=y.token?y:e.getMode(this.options,y);if(K.startState)throw new Error("Overlays may not be stateful.");te(this.state.overlays,{mode:K,modeSpec:y,opaque:x&&x.opaque,priority:x&&x.priority||0},function(se){return se.priority}),this.state.modeGen++,Or(this)}),removeOverlay:Ur(function(y){for(var x=this.state.overlays,K=0;K<x.length;++K){var se=x[K].modeSpec;if(se==y||typeof y=="string"&&se.name==y){x.splice(K,1),this.state.modeGen++,Or(this);return}}}),indentLine:Ur(function(y,x,K){typeof x!="string"&&typeof x!="number"&&(x==null?x=this.options.smartIndent?"smart":"prev":x=x?"add":"subtract"),xn(this.doc,y)&&Ei(this,y,x,K)}),indentSelection:Ur(function(y){for(var x=this.doc.sel.ranges,K=-1,se=0;se<x.length;se++){var de=x[se];if(de.empty())de.head.line>K&&(Ei(this,de.head.line,y,!0),K=de.head.line,se==this.doc.sel.primIndex&&Vi(this));else{var ve=de.from(),we=de.to(),Fe=Math.max(K,ve.line);K=Math.min(this.lastLine(),we.line-(we.ch?0:1))+1;for(var Ie=Fe;Ie<K;++Ie)Ei(this,Ie,y);var Re=this.doc.sel.ranges;ve.ch==0&&x.length==Re.length&&Re[se].from().ch>0&&ca(this.doc,se,new Pt(ve,Re[se].to()),pe)}}}),getTokenAt:function(y,x){return Js(this,y,x)},getLineTokens:function(y,x){return Js(this,et(y),x,!0)},getTokenTypeAt:function(y){y=wt(this.doc,y);var x=as(this,pt(this.doc,y.line)),K=0,se=(x.length-1)/2,de=y.ch,ve;if(de==0)ve=x[2];else for(;;){var we=K+se>>1;if((we?x[we*2-1]:0)>=de)se=we;else if(x[we*2+1]<de)K=we+1;else{ve=x[we*2+2];break}}var Fe=ve?ve.indexOf("overlay "):-1;return Fe<0?ve:Fe==0?null:ve.slice(0,Fe-1)},getModeAt:function(y){var x=this.doc.mode;return x.innerMode?e.innerMode(x,this.getTokenAt(y).state).mode:x},getHelper:function(y,x){return this.getHelpers(y,x)[0]},getHelpers:function(y,x){var K=[];if(!w.hasOwnProperty(x))return K;var se=w[x],de=this.getModeAt(y);if(typeof de[x]=="string")se[de[x]]&&K.push(se[de[x]]);else if(de[x])for(var ve=0;ve<de[x].length;ve++){var we=se[de[x][ve]];we&&K.push(we)}else de.helperType&&se[de.helperType]?K.push(se[de.helperType]):se[de.name]&&K.push(se[de.name]);for(var Fe=0;Fe<se._global.length;Fe++){var Ie=se._global[Fe];Ie.pred(de,this)&&le(K,Ie.val)==-1&&K.push(Ie.val)}return K},getStateAfter:function(y,x){var K=this.doc;return y=en(K,y==null?K.first+K.size-1:y),Fn(this,y+1,x).state},cursorCoords:function(y,x){var K,se=this.doc.sel.primary();return y==null?K=se.head:typeof y=="object"?K=wt(this.doc,y):K=y?se.from():se.to(),nn(this,K,x||"page")},charCoords:function(y,x){return ys(this,wt(this.doc,y),x||"page")},coordsChar:function(y,x){return y=Jo(this,y,x||"page"),gn(this,y.left,y.top)},lineAtHeight:function(y,x){return y=Jo(this,{top:y,left:0},x||"page").top,qr(this.doc,y+this.display.viewOffset)},heightAtLine:function(y,x,K){var se=!1,de;if(typeof y=="number"){var ve=this.doc.first+this.doc.size-1;y<this.doc.first?y=this.doc.first:y>ve&&(y=ve,se=!0),de=pt(this.doc,y)}else de=y;return ms(this,de,{top:0,left:0},x||"page",K||se).top+(se?this.doc.height-kn(de):0)},defaultTextHeight:function(){return mi(this.display)},defaultCharWidth:function(){return Wi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(y,x,K,se,de){var ve=this.display;y=nn(this,wt(this.doc,y));var we=y.bottom,Fe=y.left;if(x.style.position="absolute",x.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(x),ve.sizer.appendChild(x),se=="over")we=y.top;else if(se=="above"||se=="near"){var Ie=Math.max(ve.wrapper.clientHeight,this.doc.height),Re=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(se=="above"||y.bottom+x.offsetHeight>Ie)&&y.top>x.offsetHeight?we=y.top-x.offsetHeight:y.bottom+x.offsetHeight<=Ie&&(we=y.bottom),Fe+x.offsetWidth>Re&&(Fe=Re-x.offsetWidth)}x.style.top=we+"px",x.style.left=x.style.right="",de=="right"?(Fe=ve.sizer.clientWidth-x.offsetWidth,x.style.right="0px"):(de=="left"?Fe=0:de=="middle"&&(Fe=(ve.sizer.clientWidth-x.offsetWidth)/2),x.style.left=Fe+"px"),K&&Sl(this,{left:Fe,top:we,right:Fe+x.offsetWidth,bottom:we+x.offsetHeight})},triggerOnKeyDown:Ur(Io),triggerOnKeyPress:Ur(PA),triggerOnKeyUp:QA,triggerOnMouseDown:Ur(Lo),execCommand:function(y){if(Ms.hasOwnProperty(y))return Ms[y].call(null,this)},triggerElectric:Ur(function(y){Ns(this,y)}),findPosH:function(y,x,K,se){var de=1;x<0&&(de=-1,x=-x);for(var ve=wt(this.doc,y),we=0;we<x&&(ve=Mo(this.doc,ve,de,K,se),!ve.hitSide);++we);return ve},moveH:Ur(function(y,x){var K=this;this.extendSelectionsBy(function(se){return K.display.shift||K.doc.extend||se.empty()?Mo(K.doc,se.head,y,x,K.options.rtlMoveVisually):y<0?se.from():se.to()},ce)}),deleteH:Ur(function(y,x){var K=this.doc.sel,se=this.doc;K.somethingSelected()?se.replaceSelection("",null,"+delete"):Bn(this,function(de){var ve=Mo(se,de.head,y,x,!1);return y<0?{from:ve,to:de.head}:{from:de.head,to:ve}})}),findPosV:function(y,x,K,se){var de=1,ve=se;x<0&&(de=-1,x=-x);for(var we=wt(this.doc,y),Fe=0;Fe<x;++Fe){var Ie=nn(this,we,"div");if(ve==null?ve=Ie.left:Ie.left=ve,we=qA(this,Ie,de,K),we.hitSide)break}return we},moveV:Ur(function(y,x){var K=this,se=this.doc,de=[],ve=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(Fe){if(ve)return y<0?Fe.from():Fe.to();var Ie=nn(K,Fe.head,"div");Fe.goalColumn!=null&&(Ie.left=Fe.goalColumn),de.push(Ie.left);var Re=qA(K,Ie,y,x);return x=="page"&&Fe==se.sel.primary()&&ea(K,ys(K,Re,"div").top-Ie.top),Re},ce),de.length)for(var we=0;we<se.sel.ranges.length;we++)se.sel.ranges[we].goalColumn=de[we]}),findWordAt:function(y){var x=this.doc,K=pt(x,y.line).text,se=y.ch,de=y.ch;if(K){var ve=this.getHelper(y,"wordChars");(y.sticky=="before"||de==K.length)&&se?--se:++de;for(var we=K.charAt(se),Fe=ne(we,ve)?function(Ie){return ne(Ie,ve)}:/\s/.test(we)?function(Ie){return/\s/.test(Ie)}:function(Ie){return!/\s/.test(Ie)&&!ne(Ie)};se>0&&Fe(K.charAt(se-1));)--se;for(;de<K.length&&Fe(K.charAt(de));)++de}return new Pt(et(y.line,se),et(y.line,de))},toggleOverwrite:function(y){y!=null&&y==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==H()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ur(function(y,x){ei(this,y,x)}),getScrollInfo:function(){var y=this.display.scroller;return{left:y.scrollLeft,top:y.scrollTop,height:y.scrollHeight-bn(this)-this.display.barHeight,width:y.scrollWidth-bn(this)-this.display.barWidth,clientHeight:ur(this),clientWidth:Nr(this)}},scrollIntoView:Ur(function(y,x){y==null?(y={from:this.doc.sel.primary().head,to:null},x==null&&(x=this.options.cursorScrollMargin)):typeof y=="number"?y={from:et(y,0),to:null}:y.from==null&&(y={from:y,to:null}),y.to||(y.to=y.from),y.margin=x||0,y.from.line!=null?xl(this,y):oA(this,y.from,y.to,y.margin)}),setSize:Ur(function(y,x){var K=this,se=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};y!=null&&(this.display.wrapper.style.width=se(y)),x!=null&&(this.display.wrapper.style.height=se(x)),this.options.lineWrapping&&Vr(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(ve){if(ve.widgets){for(var we=0;we<ve.widgets.length;we++)if(ve.widgets[we].noHScroll){Un(K,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(y){return Wr(this,y)},startOperation:function(){return Ci(this)},endOperation:function(){return Bi(this)},refresh:Ur(function(){var y=this.display.cachedTextHeight;Or(this),this.curOp.forceUpdate=!0,rn(this),ei(this,this.doc.scrollLeft,this.doc.scrollTop),ra(this.display),(y==null||Math.abs(y-mi(this.display))>.5||this.options.lineWrapping)&&ao(this),ze(this,"refresh",this)}),swapDoc:Ur(function(y){var x=this.doc;return x.cm=null,this.state.selectingText&&this.state.selectingText(),hr(this,y),rn(this),this.display.input.reset(),ei(this,y.scrollLeft,y.scrollTop),this.curOp.forceScroll=!0,Br(this,"swapDoc",this,x),x}),phrase:function(y){var x=this.options.phrases;return x&&Object.prototype.hasOwnProperty.call(x,y)?x[y]:y},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(y,x,K){w.hasOwnProperty(y)||(w[y]=e[y]={_global:[]}),w[y][x]=K},e.registerGlobalHelper=function(y,x,K,se){e.registerHelper(y,x,se),w[y]._global.push({pred:K,val:se})}}function Mo(e,i,w,y,x){var K=i,se=w,de=pt(e,i.line),ve=x&&e.direction=="rtl"?-w:w;function we(){var lt=i.line+ve;return lt<e.first||lt>=e.first+e.size?!1:(i=new et(lt,i.ch,i.sticky),de=pt(e,lt))}function Fe(lt){var at;if(y=="codepoint"){var ct=de.text.charCodeAt(i.ch+(y>0?0:-1));isNaN(ct)?at=null:at=new et(i.line,Math.max(0,Math.min(de.text.length,i.ch+w*(ct>=55296&&ct<56320?2:1))),-w)}else x?at=_a(e.cm,de,i,w):at=Ba(de,i,w);if(at==null)if(!lt&&we())i=To(x,e.cm,de,i.line,ve);else return!1;else i=at;return!0}if(y=="char"||y=="codepoint")Fe();else if(y=="column")Fe(!0);else if(y=="word"||y=="group")for(var Ie=null,Re=y=="group",Me=e.cm&&e.cm.getHelper(i,"wordChars"),Ve=!0;!(w<0&&!Fe(!Ve));Ve=!1){var Ze=de.text.charAt(i.ch)||`
|
|
|
`,tt=ne(Ze,Me)?"w":Re&&Ze==`
|
|
|
`?"n":!Re||/\s/.test(Ze)?null:"p";if(Re&&!Ve&&!tt&&(tt="s"),Ie&&Ie!=tt){w<0&&(w=1,Fe(),i.sticky="after");break}if(tt&&(Ie=tt),w>0&&!Fe(!Ve))break}var ot=Co(e,i,K,se,!0);return En(K,ot)&&(ot.hitSide=!0),ot}function qA(e,i,w,y){var x=e.doc,K=i.left,se;if(y=="page"){var de=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(de-.5*mi(e.display),3);se=(w>0?i.bottom:i.top)+w*ve}else y=="line"&&(se=w>0?i.bottom+3:i.top-3);for(var we;we=gn(e,K,se),!!we.outside;){if(w<0?se<=0:se>=x.height){we.hitSide=!0;break}se+=w*5}return we}var Gt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Gt.prototype.init=function(e){var i=this,w=this,y=w.cm,x=w.div=e.lineDiv;Ia(x,y.options.spellcheck,y.options.autocorrect,y.options.autocapitalize);function K(de){for(var ve=de.target;ve;ve=ve.parentNode){if(ve==x)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Ne(x,"paste",function(de){!K(de)||Xe(y,de)||Hs(de,y)||a<=11&&setTimeout(fr(y,function(){return i.updateFromDOM()}),20)}),Ne(x,"compositionstart",function(de){i.composing={data:de.data,done:!1}}),Ne(x,"compositionupdate",function(de){i.composing||(i.composing={data:de.data,done:!1})}),Ne(x,"compositionend",function(de){i.composing&&(de.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ne(x,"touchstart",function(){return w.forceCompositionEnd()}),Ne(x,"input",function(){i.composing||i.readFromDOMSoon()});function se(de){if(!(!K(de)||Xe(y,de))){if(y.somethingSelected())Ps({lineWise:!1,text:y.getSelections()}),de.type=="cut"&&y.replaceSelection("",null,"cut");else if(y.options.lineWiseCopyCut){var ve=ka(y);Ps({lineWise:!0,text:ve.text}),de.type=="cut"&&y.operation(function(){y.setSelections(ve.ranges,0,pe),y.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var we=sn.text.join(`
|
|
|
`);if(de.clipboardData.setData("Text",we),de.clipboardData.getData("Text")==we){de.preventDefault();return}}var Fe=ZA(),Ie=Fe.firstChild;y.display.lineSpace.insertBefore(Fe,y.display.lineSpace.firstChild),Ie.value=sn.text.join(`
|
|
|
`);var Re=document.activeElement;ee(Ie),setTimeout(function(){y.display.lineSpace.removeChild(Fe),Re.focus(),Re==x&&w.showPrimarySelection()},50)}}Ne(x,"copy",se),Ne(x,"cut",se)},Gt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Gt.prototype.prepareSelection=function(){var e=rA(this.cm,!1);return e.focus=document.activeElement==this.div,e},Gt.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Gt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gt.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,w=i.doc.sel.primary(),y=w.from(),x=w.to();if(i.display.viewTo==i.display.viewFrom||y.line>=i.display.viewTo||x.line<i.display.viewFrom){e.removeAllRanges();return}var K=Qn(i,e.anchorNode,e.anchorOffset),se=Qn(i,e.focusNode,e.focusOffset);if(!(K&&!K.bad&&se&&!se.bad&&Ct(ci(K,se),y)==0&&Ct(Di(K,se),x)==0)){var de=i.display.view,ve=y.line>=i.display.viewFrom&&Ti(i,y)||{node:de[0].measure.map[2],offset:0},we=x.line<i.display.viewTo&&Ti(i,x);if(!we){var Fe=de[de.length-1].measure,Ie=Fe.maps?Fe.maps[Fe.maps.length-1]:Fe.map;we={node:Ie[Ie.length-1],offset:Ie[Ie.length-2]-Ie[Ie.length-3]}}if(!ve||!we){e.removeAllRanges();return}var Re=e.rangeCount&&e.getRangeAt(0),Me;try{Me=N(ve.node,ve.offset,we.offset,we.node)}catch(Ve){}Me&&(!oe&&i.state.focused?(e.collapse(ve.node,ve.offset),Me.collapsed||(e.removeAllRanges(),e.addRange(Me))):(e.removeAllRanges(),e.addRange(Me)),Re&&e.anchorNode==null?e.addRange(Re):oe&&this.startGracePeriod()),this.rememberSelection()}},Gt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Gt.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},Gt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Gt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return V(this.div,i)},Gt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gt.prototype.blur=function(){this.div.blur()},Gt.prototype.getField=function(){return this.div},Gt.prototype.supportsTouch=function(){return!0},Gt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Wr(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function i(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,i))}this.polling.set(this.cm.options.pollInterval,i)},Gt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Gt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(l&&c&&this.cm.display.gutterSpecs.length&&el(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var w=Qn(i,e.anchorNode,e.anchorOffset),y=Qn(i,e.focusNode,e.focusOffset);w&&y&&Wr(i,function(){Fr(i.doc,ti(w,y),pe),(w.bad||y.bad)&&(i.curOp.selectionChanged=!0)})}}},Gt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,w=e.doc.sel.primary(),y=w.from(),x=w.to();if(y.ch==0&&y.line>e.firstLine()&&(y=et(y.line-1,pt(e.doc,y.line-1).length)),x.ch==pt(e.doc,x.line).text.length&&x.line<e.lastLine()&&(x=et(x.line+1,0)),y.line<i.viewFrom||x.line>i.viewTo-1)return!1;var K,se,de;y.line==i.viewFrom||(K=$n(e,y.line))==0?(se=jt(i.view[0].line),de=i.view[0].node):(se=jt(i.view[K].line),de=i.view[K-1].node.nextSibling);var ve=$n(e,x.line),we,Fe;if(ve==i.view.length-1?(we=i.viewTo-1,Fe=i.lineDiv.lastChild):(we=jt(i.view[ve+1].line)-1,Fe=i.view[ve+1].node.previousSibling),!de)return!1;for(var Ie=e.doc.splitLines(Fi(e,de,Fe,se,we)),Re=gr(e.doc,et(se,0),et(we,pt(e.doc,we).text.length));Ie.length>1&&Re.length>1;)if(Se(Ie)==Se(Re))Ie.pop(),Re.pop(),we--;else if(Ie[0]==Re[0])Ie.shift(),Re.shift(),se++;else break;for(var Me=0,Ve=0,Ze=Ie[0],tt=Re[0],ot=Math.min(Ze.length,tt.length);Me<ot&&Ze.charCodeAt(Me)==tt.charCodeAt(Me);)++Me;for(var lt=Se(Ie),at=Se(Re),ct=Math.min(lt.length-(Ie.length==1?Me:0),at.length-(Re.length==1?Me:0));Ve<ct&<.charCodeAt(lt.length-Ve-1)==at.charCodeAt(at.length-Ve-1);)++Ve;if(Ie.length==1&&Re.length==1&&se==y.line)for(;Me&&Me>y.ch&<.charCodeAt(lt.length-Ve-1)==at.charCodeAt(at.length-Ve-1);)Me--,Ve++;Ie[Ie.length-1]=lt.slice(0,lt.length-Ve).replace(/^\u200b+/,""),Ie[0]=Ie[0].slice(Me).replace(/\u200b+$/,"");var yt=et(se,Me),vt=et(we,Re.length?Se(Re).length-Ve:0);if(Ie.length>1||Ie[0]||Ct(yt,vt))return $i(e.doc,Ie,yt,vt,"+input"),!0},Gt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gt.prototype.reset=function(){this.forceCompositionEnd()},Gt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Gt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Or(e.cm)})},Gt.prototype.setUneditable=function(e){e.contentEditable="false"},Gt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||fr(this.cm,Fa)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Gt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Gt.prototype.onContextMenu=function(){},Gt.prototype.resetPosition=function(){},Gt.prototype.needsContentAttribute=!0;function Ti(e,i){var w=gi(e,i.line);if(!w||w.hidden)return null;var y=pt(e.doc,i.line),x=_r(w,y,i.line),K=$e(y,e.doc.direction),se="left";if(K){var de=Le(K,i.ch);se=de%2?"right":"left"}var ve=Xo(x.map,i.ch,se);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function el(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function qt(e,i){return i&&(e.bad=!0),e}function Fi(e,i,w,y,x){var K="",se=!1,de=e.doc.lineSeparator(),ve=!1;function we(Me){return function(Ve){return Ve.id==Me}}function Fe(){se&&(K+=de,ve&&(K+=de),se=ve=!1)}function Ie(Me){Me&&(Fe(),K+=Me)}function Re(Me){if(Me.nodeType==1){var Ve=Me.getAttribute("cm-text");if(Ve){Ie(Ve);return}var Ze=Me.getAttribute("cm-marker"),tt;if(Ze){var ot=e.findMarks(et(y,0),et(x+1,0),we(+Ze));ot.length&&(tt=ot[0].find(0))&&Ie(gr(e.doc,tt.from,tt.to).join(de));return}if(Me.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Me.nodeName);if(!/^br$/i.test(Me.nodeName)&&Me.textContent.length==0)return;lt&&Fe();for(var at=0;at<Me.childNodes.length;at++)Re(Me.childNodes[at]);/^(pre|p)$/i.test(Me.nodeName)&&(ve=!0),lt&&(se=!0)}else Me.nodeType==3&&Ie(Me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Re(i),i!=w;)i=i.nextSibling,ve=!1;return K}function Qn(e,i,w){var y;if(i==e.display.lineDiv){if(y=e.display.lineDiv.childNodes[w],!y)return qt(e.clipPos(et(e.display.viewTo-1)),!0);i=null,w=0}else for(y=i;;y=y.parentNode){if(!y||y==e.display.lineDiv)return null;if(y.parentNode&&y.parentNode==e.display.lineDiv)break}for(var x=0;x<e.display.view.length;x++){var K=e.display.view[x];if(K.node==y)return Ai(K,i,w)}}function Ai(e,i,w){var y=e.text.firstChild,x=!1;if(!i||!V(y,i))return qt(et(jt(e.line),0),!0);if(i==y&&(x=!0,i=y.childNodes[w],w=0,!i)){var K=e.rest?Se(e.rest):e.line;return qt(et(jt(K),K.text.length),x)}var se=i.nodeType==3?i:null,de=i;for(!se&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(se=i.firstChild,w&&(w=se.nodeValue.length));de.parentNode!=y;)de=de.parentNode;var ve=e.measure,we=ve.maps;function Fe(tt,ot,lt){for(var at=-1;at<(we?we.length:0);at++)for(var ct=at<0?ve.map:we[at],yt=0;yt<ct.length;yt+=3){var vt=ct[yt+2];if(vt==tt||vt==ot){var Ft=jt(at<0?e.line:e.rest[at]),Jt=ct[yt]+lt;return(lt<0||vt!=tt)&&(Jt=ct[yt+(lt?1:0)]),et(Ft,Jt)}}}var Ie=Fe(se,de,w);if(Ie)return qt(Ie,x);for(var Re=de.nextSibling,Me=se?se.nodeValue.length-w:0;Re;Re=Re.nextSibling){if(Ie=Fe(Re,Re.firstChild,0),Ie)return qt(et(Ie.line,Ie.ch-Me),x);Me+=Re.textContent.length}for(var Ve=de.previousSibling,Ze=w;Ve;Ve=Ve.previousSibling){if(Ie=Fe(Ve,Ve.firstChild,-1),Ie)return qt(et(Ie.line,Ie.ch+Ze),x);Ze+=Ve.textContent.length}}var Vt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null};Vt.prototype.init=function(e){var i=this,w=this,y=this.cm;this.createField(e);var x=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),s&&(x.style.width="0px"),Ne(x,"input",function(){b&&a>=9&&i.hasSelection&&(i.hasSelection=null),w.poll()}),Ne(x,"paste",function(se){Xe(y,se)||Hs(se,y)||(y.state.pasteIncoming=+new Date,w.fastPoll())});function K(se){if(!Xe(y,se)){if(y.somethingSelected())Ps({lineWise:!1,text:y.getSelections()});else if(y.options.lineWiseCopyCut){var de=ka(y);Ps({lineWise:!0,text:de.text}),se.type=="cut"?y.setSelections(de.ranges,null,pe):(w.prevInput="",x.value=de.text.join(`
|
|
|
`),ee(x))}else return;se.type=="cut"&&(y.state.cutIncoming=+new Date)}}Ne(x,"cut",K),Ne(x,"copy",K),Ne(e.scroller,"paste",function(se){if(!(hn(e,se)||Xe(y,se))){if(!x.dispatchEvent){y.state.pasteIncoming=+new Date,w.focus();return}var de=new Event("paste");de.clipboardData=se.clipboardData,x.dispatchEvent(de)}}),Ne(e.lineSpace,"selectstart",function(se){hn(e,se)||Ge(se)}),Ne(x,"compositionstart",function(){var se=y.getCursor("from");w.composing&&w.composing.range.clear(),w.composing={start:se,range:y.markText(se,y.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(x,"compositionend",function(){w.composing&&(w.poll(),w.composing.range.clear(),w.composing=null)})},Vt.prototype.createField=function(e){this.wrapper=ZA(),this.textarea=this.wrapper.firstChild},Vt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Vt.prototype.prepareSelection=function(){var e=this.cm,i=e.display,w=e.doc,y=rA(e);if(e.options.moveInputWithCursor){var x=nn(e,w.sel.primary().head,"div"),K=i.wrapper.getBoundingClientRect(),se=i.lineDiv.getBoundingClientRect();y.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,x.top+se.top-K.top)),y.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,x.left+se.left-K.left))}return y},Vt.prototype.showSelection=function(e){var i=this.cm,w=i.display;I(w.cursorDiv,e.cursors),I(w.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Vt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var i=this.cm;if(i.somethingSelected()){this.prevInput="";var w=i.getSelection();this.textarea.value=w,i.state.focused&&ee(this.textarea),b&&a>=9&&(this.hasSelection=w)}else e||(this.prevInput=this.textarea.value="",b&&a>=9&&(this.hasSelection=null))}},Vt.prototype.getField=function(){return this.textarea},Vt.prototype.supportsTouch=function(){return!1},Vt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||H()!=this.textarea))try{this.textarea.focus()}catch(e){}},Vt.prototype.blur=function(){this.textarea.blur()},Vt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vt.prototype.receivedFocus=function(){this.slowPoll()},Vt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Vt.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function w(){var y=i.poll();!y&&!e?(e=!0,i.polling.set(60,w)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,w)},Vt.prototype.poll=function(){var e=this,i=this.cm,w=this.textarea,y=this.prevInput;if(this.contextMenuPending||!i.state.focused||bt(w)&&!y&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var x=w.value;if(x==y&&!i.somethingSelected())return!1;if(b&&a>=9&&this.hasSelection===x||p&&/[\uf700-\uf7ff]/.test(x))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var K=x.charCodeAt(0);if(K==8203&&!y&&(y="\u200B"),K==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,de=Math.min(y.length,x.length);se<de&&y.charCodeAt(se)==x.charCodeAt(se);)++se;return Wr(i,function(){Fa(i,x.slice(se),y.length-se,null,e.composing?"*compose":null),x.length>1e3||x.indexOf(`
|
|
|
`)>-1?w.value=e.prevInput="":e.prevInput=x,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vt.prototype.onKeyPress=function(){b&&a>=9&&(this.hasSelection=null),this.fastPoll()},Vt.prototype.onContextMenu=function(e){var i=this,w=i.cm,y=w.display,x=i.textarea;i.contextMenuPending&&i.contextMenuPending();var K=Zn(w,e),se=y.scroller.scrollTop;if(!K||h)return;var de=w.options.resetSelectionOnContextMenu;de&&w.doc.sel.contains(K)==-1&&fr(w,Fr)(w.doc,ti(K),pe);var ve=x.style.cssText,we=i.wrapper.style.cssText,Fe=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",x.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(e.clientY-Fe.top-5)+"px; left: "+(e.clientX-Fe.left-5)+`px;
|
|
|
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ie;u&&(Ie=window.scrollY),y.input.focus(),u&&window.scrollTo(null,Ie),y.input.reset(),w.somethingSelected()||(x.value=i.prevInput=" "),i.contextMenuPending=Me,y.selForContextMenu=w.doc.sel,clearTimeout(y.detectingSelectAll);function Re(){if(x.selectionStart!=null){var Ze=w.somethingSelected(),tt="\u200B"+(Ze?x.value:"");x.value="\u21DA",x.value=tt,i.prevInput=Ze?"":"\u200B",x.selectionStart=1,x.selectionEnd=tt.length,y.selForContextMenu=w.doc.sel}}function Me(){if(i.contextMenuPending==Me&&(i.contextMenuPending=!1,i.wrapper.style.cssText=we,x.style.cssText=ve,b&&a<9&&y.scrollbars.setScrollTop(y.scroller.scrollTop=se),x.selectionStart!=null)){(!b||b&&a<9)&&Re();var Ze=0,tt=function(){y.selForContextMenu==w.doc.sel&&x.selectionStart==0&&x.selectionEnd>0&&i.prevInput=="\u200B"?fr(w,xA)(w):Ze++<10?y.detectingSelectAll=setTimeout(tt,500):(y.selForContextMenu=null,y.input.reset())};y.detectingSelectAll=setTimeout(tt,200)}}if(b&&a>=9&&Re(),O){Tt(e);var Ve=function(){Ye(window,"mouseup",Ve),setTimeout(Me,20)};Ne(window,"mouseup",Ve)}else setTimeout(Me,50)},Vt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Vt.prototype.setUneditable=function(){},Vt.prototype.needsContentAttribute=!1;function Ws(e,i){if(i=i?Ae(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var w=H();i.autofocus=w==e||e.getAttribute("autofocus")!=null&&w==document.body}function y(){e.value=de.getValue()}var x;if(e.form&&(Ne(e.form,"submit",y),!i.leaveSubmitMethodAlone)){var K=e.form;x=K.submit;try{var se=K.submit=function(){y(),K.submit=x,K.submit(),K.submit=se}}catch(ve){}}i.finishInit=function(ve){ve.save=y,ve.getTextArea=function(){return e},ve.toTextArea=function(){ve.toTextArea=isNaN,y(),e.parentNode.removeChild(ve.getWrapperElement()),e.style.display="",e.form&&(Ye(e.form,"submit",y),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=x))}},e.style.display="none";var de=Zt(function(ve){return e.parentNode.insertBefore(ve,e.nextSibling)},i);return de}function Pn(e){e.off=Ye,e.on=Ne,e.wheelEventPixels=pA,e.Doc=Dr,e.splitLines=Ar,e.countColumn=U,e.findColumn=be,e.isWordChar=q,e.Pass=ue,e.signal=ze,e.Line=In,e.changeEnd=ri,e.scrollbarModel=AA,e.Pos=et,e.cmpPos=Ct,e.modes=pr,e.mimeModes=lr,e.resolveMode=or,e.getMode=wr,e.modeExtensions=ln,e.extendMode=ui,e.copyState=$r,e.startState=Nn,e.innerMode=un,e.commands=Ms,e.keyMap=Rn,e.keyName=wa,e.isModifierKey=DA,e.lookupKey=xi,e.normalizeKeyMap=Jl,e.StringStream=ir,e.SharedTextMarker=es,e.TextMarker=Cn,e.LineWidget=Ls,e.e_preventDefault=Ge,e.e_stopPropagation=nt,e.e_stop=Tt,e.addClass=X,e.contains=V,e.rmClass=T,e.keyNames=oi}nu(Zt),$A(Zt);var tl="iter insert remove copy getEditor constructor".split(" ");for(var Ks in Dr.prototype)Dr.prototype.hasOwnProperty(Ks)&&le(tl,Ks)<0&&(Zt.prototype[Ks]=function(e){return function(){return e.apply(this.doc,arguments)}}(Dr.prototype[Ks]));return He(Dr),Zt.inputStyles={textarea:Vt,contenteditable:Gt},Zt.defineMode=function(e){!Zt.defaults.mode&&e!="null"&&(Zt.defaults.mode=e),Pr.apply(this,arguments)},Zt.defineMIME=Gr,Zt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zt.defineMIME("text/plain","null"),Zt.defineExtension=function(e,i){Zt.prototype[e]=i},Zt.defineDocExtension=function(e,i){Dr.prototype[e]=i},Zt.fromTextArea=Ws,Pn(Zt),Zt.version="5.58.2",Zt})},25419:function(rt,ke,J){(function(oe){oe(J(89780),J(15525),J(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(ie,t){var C=oe.getMode(ie,"text/html"),b=C.name=="null";function a(U){if(oe.findModeByName){var W=oe.findModeByName(U);W&&(U=W.mime||W.mimes[0])}var le=oe.getMode(ie,U);return le.name=="null"?null:le}t.highlightFormatting===void 0&&(t.highlightFormatting=!1),t.maxBlockquoteDepth===void 0&&(t.maxBlockquoteDepth=0),t.taskLists===void 0&&(t.taskLists=!1),t.strikethrough===void 0&&(t.strikethrough=!1),t.emoji===void 0&&(t.emoji=!1),t.fencedCodeBlockHighlighting===void 0&&(t.fencedCodeBlockHighlighting=!0),t.fencedCodeBlockDefaultMode===void 0&&(t.fencedCodeBlockDefaultMode="text/plain"),t.xml===void 0&&(t.xml=!0),t.tokenTypeOverrides===void 0&&(t.tokenTypeOverrides={});var u={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var A in u)u.hasOwnProperty(A)&&t.tokenTypeOverrides[A]&&(u[A]=t.tokenTypeOverrides[A]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,h=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,o=/^\[(x| )\](?=\s)/i,n=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,l=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,d=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,g=" ";function m(U,W,le){return W.f=W.inline=le,le(U,W)}function v(U,W,le){return W.f=W.block=le,le(U,W)}function _(U){return!U||!/\S/.test(U.string)}function O(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==T){var W=b;if(!W){var le=oe.innerMode(C,U.htmlState);W=le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText}W&&(U.f=M,U.block=F,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function F(U,W){var le=U.column()===W.indentation,he=_(W.prevLine.stream),ue=W.indentedCode,pe=W.prevLine.hr,fe=W.list!==!1,ce=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var be=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,fe)){for(W.list=null;be<W.listStack[W.listStack.length-1];)W.listStack.pop(),W.listStack.length?W.indentation=W.listStack[W.listStack.length-1]:W.list=!1;W.list!==!1&&(W.indentationDiff=be-W.listStack[W.listStack.length-1])}var Ce=!he&&!pe&&!W.prevLine.header&&(!fe||!ue)&&!W.prevLine.fencedCodeEnd,xe=(W.list===!1||pe||he)&&W.indentation<=ce&&U.match(c),Se=null;if(W.indentationDiff>=4&&(ue||W.prevLine.fencedCodeEnd||W.prevLine.header||he))return U.skipToEnd(),W.indentedCode=!0,u.code;if(U.eatSpace())return null;if(le&&W.indentation<=ce&&(Se=U.match(n))&&Se[1].length<=6)return W.quote=0,W.header=Se[1].length,W.thisLine.header=!0,t.highlightFormatting&&(W.formatting="header"),W.f=W.inline,I(W);if(W.indentation<=ce&&U.eat(">"))return W.quote=le?1:W.quote+1,t.highlightFormatting&&(W.formatting="quote"),U.eatSpace(),I(W);if(!xe&&!W.setext&&le&&W.indentation<=ce&&(Se=U.match(h))){var me=Se[1]?"ol":"ul";return W.indentation=be+U.current().length,W.list=!0,W.quote=0,W.listStack.push(W.indentation),W.em=!1,W.strong=!1,W.code=!1,W.strikethrough=!1,t.taskLists&&U.match(o,!1)&&(W.taskList=!0),W.f=W.inline,t.highlightFormatting&&(W.formatting=["list","list-"+me]),I(W)}else{if(le&&W.indentation<=ce&&(Se=U.match(l,!0)))return W.quote=0,W.fencedEndRE=new RegExp(Se[1]+"+ *$"),W.localMode=t.fencedCodeBlockHighlighting&&a(Se[2]||t.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=oe.startState(W.localMode)),W.f=W.block=S,t.highlightFormatting&&(W.formatting="code-block"),W.code=-1,I(W);if(W.setext||(!Ce||!fe)&&!W.quote&&W.list===!1&&!W.code&&!xe&&!d.test(U.string)&&(Se=U.lookAhead(1))&&(Se=Se.match(r)))return W.setext?(W.header=W.setext,W.setext=0,U.skipToEnd(),t.highlightFormatting&&(W.formatting="header")):(W.header=Se[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,I(W);if(xe)return U.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,u.hr;if(U.peek()==="[")return m(U,W,G)}return m(U,W,W.inline)}function T(U,W){var le=C.token(U,W.htmlState);if(!b){var he=oe.innerMode(C,W.htmlState);(he.mode.name=="xml"&&he.state.tagStart===null&&!he.state.context&&he.state.tokenize.isInText||W.md_inside&&U.current().indexOf(">")>-1)&&(W.f=M,W.block=F,W.htmlState=null)}return le}function S(U,W){var le=W.listStack[W.listStack.length-1]||0,he=W.indentation<le,ue=le+3;if(W.fencedEndRE&&W.indentation<=ue&&(he||U.match(W.fencedEndRE))){t.highlightFormatting&&(W.formatting="code-block");var pe;return he||(pe=I(W)),W.localMode=W.localState=null,W.block=F,W.f=M,W.fencedEndRE=null,W.code=0,W.thisLine.fencedCodeEnd=!0,he?v(U,W,W.block):pe}else return W.localMode?W.localMode.token(U,W.localState):(U.skipToEnd(),u.code)}function I(U){var W=[];if(U.formatting){W.push(u.formatting),typeof U.formatting=="string"&&(U.formatting=[U.formatting]);for(var le=0;le<U.formatting.length;le++)W.push(u.formatting+"-"+U.formatting[le]),U.formatting[le]==="header"&&W.push(u.formatting+"-"+U.formatting[le]+"-"+U.header),U.formatting[le]==="quote"&&(!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=U.quote?W.push(u.formatting+"-"+U.formatting[le]+"-"+U.quote):W.push("error"))}if(U.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(U.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(U.linkHref?W.push(u.linkHref,"url"):(U.strong&&W.push(u.strong),U.em&&W.push(u.em),U.strikethrough&&W.push(u.strikethrough),U.emoji&&W.push(u.emoji),U.linkText&&W.push(u.linkText),U.code&&W.push(u.code),U.image&&W.push(u.image),U.imageAltText&&W.push(u.imageAltText,"link"),U.imageMarker&&W.push(u.imageMarker)),U.header&&W.push(u.header,u.header+"-"+U.header),U.quote&&(W.push(u.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=U.quote?W.push(u.quote+"-"+U.quote):W.push(u.quote+"-"+t.maxBlockquoteDepth)),U.list!==!1){var he=(U.listStack.length-1)%3;he?he===1?W.push(u.list2):W.push(u.list3):W.push(u.list1)}return U.trailingSpaceNewLine?W.push("trailing-space-new-line"):U.trailingSpace&&W.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function E(U,W){if(U.match(s,!0))return I(W)}function M(U,W){var le=W.text(U,W);if(typeof le!="undefined")return le;if(W.list)return W.list=null,I(W);if(W.taskList){var he=U.match(o,!0)[1]===" ";return he?W.taskOpen=!0:W.taskClosed=!0,t.highlightFormatting&&(W.formatting="task"),W.taskList=!1,I(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&U.match(/^#+$/,!0))return t.highlightFormatting&&(W.formatting="header"),I(W);var ue=U.next();if(W.linkTitle){W.linkTitle=!1;var pe=ue;ue==="("&&(pe=")"),pe=(pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+pe+"\\\\]+|\\\\\\\\|\\\\.)"+pe;if(U.match(new RegExp(fe),!0))return u.linkHref}if(ue==="`"){var ce=W.formatting;t.highlightFormatting&&(W.formatting="code"),U.eatWhile("`");var be=U.current().length;if(W.code==0&&(!W.quote||be==1))return W.code=be,I(W);if(be==W.code){var Ce=I(W);return W.code=0,Ce}else return W.formatting=ce,I(W)}else if(W.code)return I(W);if(ue==="\\"&&(U.next(),t.highlightFormatting)){var xe=I(W),Se=u.formatting+"-escape";return xe?xe+" "+Se:Se}if(ue==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,t.highlightFormatting&&(W.formatting="image"),I(W);if(ue==="["&&W.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,t.highlightFormatting&&(W.formatting="image"),I(W);if(ue==="]"&&W.imageAltText){t.highlightFormatting&&(W.formatting="image");var xe=I(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=V,xe}if(ue==="["&&!W.image)return W.linkText&&U.match(/^.*?\]/)||(W.linkText=!0,t.highlightFormatting&&(W.formatting="link")),I(W);if(ue==="]"&&W.linkText){t.highlightFormatting&&(W.formatting="link");var xe=I(W);return W.linkText=!1,W.inline=W.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?V:M,xe}if(ue==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=N,t.highlightFormatting&&(W.formatting="link");var xe=I(W);return xe?xe+=" ":xe="",xe+u.linkInline}if(ue==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=N,t.highlightFormatting&&(W.formatting="link");var xe=I(W);return xe?xe+=" ":xe="",xe+u.linkEmail}if(t.xml&&ue==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=U.string.indexOf(">",U.pos);if(me!=-1){var te=U.string.substring(U.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(te)&&(W.md_inside=!0)}return U.backUp(1),W.htmlState=oe.startState(C),v(U,W,T)}if(t.xml&&ue==="<"&&U.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(ue==="*"||ue==="_"){for(var $=1,B=U.pos==1?" ":U.string.charAt(U.pos-2);$<3&&U.eat(ue);)$++;var k=U.peek()||" ",q=!/\s/.test(k)&&(!p.test(k)||/\s/.test(B)||p.test(B)),ne=!/\s/.test(B)&&(!p.test(B)||/\s/.test(k)||p.test(k)),Q=null,z=null;if($%2&&(!W.em&&q&&(ue==="*"||!ne||p.test(B))?Q=!0:W.em==ue&&ne&&(ue==="*"||!q||p.test(k))&&(Q=!1)),$>1&&(!W.strong&&q&&(ue==="*"||!ne||p.test(B))?z=!0:W.strong==ue&&ne&&(ue==="*"||!q||p.test(k))&&(z=!1)),z!=null||Q!=null){t.highlightFormatting&&(W.formatting=Q==null?"strong":z==null?"em":"strong em"),Q===!0&&(W.em=ue),z===!0&&(W.strong=ue);var Ce=I(W);return Q===!1&&(W.em=!1),z===!1&&(W.strong=!1),Ce}}else if(ue===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return I(W);U.backUp(1)}if(t.strikethrough){if(ue==="~"&&U.eatWhile(ue)){if(W.strikethrough){t.highlightFormatting&&(W.formatting="strikethrough");var Ce=I(W);return W.strikethrough=!1,Ce}else if(U.match(/^[^\s]/,!1))return W.strikethrough=!0,t.highlightFormatting&&(W.formatting="strikethrough"),I(W)}else if(ue===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return I(W);U.backUp(2)}}if(t.emoji&&ue===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,t.highlightFormatting&&(W.formatting="emoji");var Y=I(W);return W.emoji=!1,Y}return ue===" "&&(U.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),I(W)}function N(U,W){var le=U.next();if(le===">"){W.f=W.inline=M,t.highlightFormatting&&(W.formatting="link");var he=I(W);return he?he+=" ":he="",he+u.linkInline}return U.match(/^[^>]+/,!0),u.linkInline}function V(U,W){if(U.eatSpace())return null;var le=U.next();return le==="("||le==="["?(W.f=W.inline=X(le==="("?")":"]"),t.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,I(W)):"error"}var H={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function X(U){return function(W,le){var he=W.next();if(he===U){le.f=le.inline=M,t.highlightFormatting&&(le.formatting="link-string");var ue=I(le);return le.linkHref=!1,ue}return W.match(H[U]),le.linkHref=!0,I(le)}}function G(U,W){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=ee,U.next(),t.highlightFormatting&&(W.formatting="link"),W.linkText=!0,I(W)):m(U,W,M)}function ee(U,W){if(U.match(/^\]:/,!0)){W.f=W.inline=Z,t.highlightFormatting&&(W.formatting="link");var le=I(W);return W.linkText=!1,le}return U.match(/^([^\]\\]|\\.)+/,!0),u.linkText}function Z(U,W){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?W.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=M,u.linkHref+" url")}var Ae={startState:function(){return{f:F,prevLine:{stream:null},thisLine:{stream:null},block:F,htmlState:null,indentation:0,inline:M,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&oe.copyState(C,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?oe.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,W){if(W.formatting=!1,U!=W.thisLine.stream){if(W.header=0,W.hr=!1,U.match(/^\s*$/,!0))return O(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:U},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=T)){var le=U.match(/^\s*/,!0)[0].replace(/\t/g,g).length;if(W.indentation=le,W.indentationDiff=null,le>0)return null}}return W.f(U,W)},innerMode:function(U){return U.block==T?{state:U.htmlState,mode:C}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:Ae}},indent:function(U,W,le){return U.block==T&&C.indent?C.indent(U.htmlState,W,le):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,W,le):oe.Pass},blankLine:O,getType:I,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ae},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){"use strict";oe.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ie=0;ie<oe.modeInfo.length;ie++){var t=oe.modeInfo[ie];t.mimes&&(t.mime=t.mimes[0])}oe.findModeByMIME=function(C){C=C.toLowerCase();for(var b=0;b<oe.modeInfo.length;b++){var a=oe.modeInfo[b];if(a.mime==C)return a;if(a.mimes){for(var u=0;u<a.mimes.length;u++)if(a.mimes[u]==C)return a}}if(/\+xml$/.test(C))return oe.findModeByMIME("application/xml");if(/\+json$/.test(C))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(C){C=C.toLowerCase();for(var b=0;b<oe.modeInfo.length;b++){var a=oe.modeInfo[b];if(a.ext){for(var u=0;u<a.ext.length;u++)if(a.ext[u]==C)return a}}},oe.findModeByFileName=function(C){for(var b=0;b<oe.modeInfo.length;b++){var a=oe.modeInfo[b];if(a.file&&a.file.test(C))return a}var u=C.lastIndexOf("."),A=u>-1&&C.substring(u+1,C.length);if(A)return oe.findModeByExtension(A)},oe.findModeByName=function(C){C=C.toLowerCase();for(var b=0;b<oe.modeInfo.length;b++){var a=oe.modeInfo[b];if(a.name.toLowerCase()==C)return a;if(a.alias){for(var u=0;u<a.alias.length;u++)if(a.alias[u].toLowerCase()==C)return a}}}})},67549:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){"use strict";oe.defineMode("stex",function(ie,t){"use strict";function C(s,l){s.cmdState.push(l)}function b(s){return s.cmdState.length>0?s.cmdState[s.cmdState.length-1]:null}function a(s){var l=s.cmdState.pop();l&&l.closeBracket()}function u(s){for(var l=s.cmdState,d=l.length-1;d>=0;d--){var p=l[d];if(p.name!="DEFAULT")return p}return{styleIdentifier:function(){return null}}}function A(s,l,d){return function(){this.name=s,this.bracketNo=0,this.style=l,this.styles=d,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var c={};c.importmodule=A("importmodule","tag",["string","builtin"]),c.documentclass=A("documentclass","tag",["","atom"]),c.usepackage=A("usepackage","tag",["atom"]),c.begin=A("begin","tag",["atom"]),c.end=A("end","tag",["atom"]),c.label=A("label","tag",["atom"]),c.ref=A("ref","tag",["atom"]),c.eqref=A("eqref","tag",["atom"]),c.cite=A("cite","tag",["atom"]),c.bibitem=A("bibitem","tag",["atom"]),c.Bibitem=A("Bibitem","tag",["atom"]),c.RBibitem=A("RBibitem","tag",["atom"]),c.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function h(s,l){s.f=l}function o(s,l){var d;if(s.match(/^\\[a-zA-Z@]+/)){var p=s.current().slice(1);return d=c.hasOwnProperty(p)?c[p]:c.DEFAULT,d=new d,C(l,d),h(l,r),d.style}if(s.match(/^\\[$&%#{}_]/)||s.match(/^\\[,;!\/\\]/))return"tag";if(s.match("\\["))return h(l,function(m,v){return n(m,v,"\\]")}),"keyword";if(s.match("\\("))return h(l,function(m,v){return n(m,v,"\\)")}),"keyword";if(s.match("$$"))return h(l,function(m,v){return n(m,v,"$$")}),"keyword";if(s.match("$"))return h(l,function(m,v){return n(m,v,"$")}),"keyword";var g=s.next();if(g=="%")return s.skipToEnd(),"comment";if(g=="}"||g=="]"){if(d=b(l),d)d.closeBracket(g),h(l,r);else return"error";return"bracket"}else return g=="{"||g=="["?(d=c.DEFAULT,d=new d,C(l,d),"bracket"):/\d/.test(g)?(s.eatWhile(/[\w.%]/),"atom"):(s.eatWhile(/[\w\-_]/),d=u(l),d.name=="begin"&&(d.argument=s.current()),d.styleIdentifier())}function n(s,l,d){if(s.eatSpace())return null;if(d&&s.match(d))return h(l,o),"keyword";if(s.match(/^\\[a-zA-Z@]+/))return"tag";if(s.match(/^[a-zA-Z]+/))return"variable-2";if(s.match(/^\\[$&%#{}_]/)||s.match(/^\\[,;!\/]/)||s.match(/^[\^_&]/))return"tag";if(s.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(s.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var p=s.next();return p=="{"||p=="}"||p=="["||p=="]"||p=="("||p==")"?"bracket":p=="%"?(s.skipToEnd(),"comment"):"error"}function r(s,l){var d=s.peek(),p;return d=="{"||d=="["?(p=b(l),p.openBracket(d),s.eat(d),h(l,o),"bracket"):/[ \t\r]/.test(d)?(s.eat(d),null):(h(l,o),a(l),o(s,l))}return{startState:function(){var s=t.inMathMode?function(l,d){return n(l,d)}:o;return{cmdState:[],f:s}},copyState:function(s){return{cmdState:s.cmdState.slice(),f:s.f}},token:function(s,l){return l.f(s,l)},blankLine:function(s){s.f=o,s.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(rt,ke,J){(function(oe){oe(J(89780))})(function(oe){"use strict";var ie={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},t={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(C,b){var a=C.indentUnit,u={},A=b.htmlMode?ie:t;for(var c in A)u[c]=A[c];for(var c in b)u[c]=b[c];var h,o;function n(N,V){function H(ee){return V.tokenize=ee,ee(N,V)}var X=N.next();if(X=="<")return N.eat("!")?N.eat("[")?N.match("CDATA[")?H(l("atom","]]>")):null:N.match("--")?H(l("comment","-->")):N.match("DOCTYPE",!0,!0)?(N.eatWhile(/[\w\._\-]/),H(d(1))):null:N.eat("?")?(N.eatWhile(/[\w\._\-]/),V.tokenize=l("meta","?>"),"meta"):(h=N.eat("/")?"closeTag":"openTag",V.tokenize=r,"tag bracket");if(X=="&"){var G;return N.eat("#")?N.eat("x")?G=N.eatWhile(/[a-fA-F\d]/)&&N.eat(";"):G=N.eatWhile(/[\d]/)&&N.eat(";"):G=N.eatWhile(/[\w\.\-:]/)&&N.eat(";"),G?"atom":"error"}else return N.eatWhile(/[^&<]/),null}n.isInText=!0;function r(N,V){var H=N.next();if(H==">"||H=="/"&&N.eat(">"))return V.tokenize=n,h=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return h="equals",null;if(H=="<"){V.tokenize=n,V.state=v,V.tagName=V.tagStart=null;var X=V.tokenize(N,V);return X?X+" tag error":"tag error"}else return/[\'\"]/.test(H)?(V.tokenize=s(H),V.stringStartCol=N.column(),V.tokenize(N,V)):(N.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(N){var V=function(H,X){for(;!H.eol();)if(H.next()==N){X.tokenize=r;break}return"string"};return V.isInAttribute=!0,V}function l(N,V){return function(H,X){for(;!H.eol();){if(H.match(V)){X.tokenize=n;break}H.next()}return N}}function d(N){return function(V,H){for(var X;(X=V.next())!=null;){if(X=="<")return H.tokenize=d(N+1),H.tokenize(V,H);if(X==">")if(N==1){H.tokenize=n;break}else return H.tokenize=d(N-1),H.tokenize(V,H)}return"meta"}}function p(N,V,H){this.prev=N.context,this.tagName=V,this.indent=N.indented,this.startOfLine=H,(u.doNotIndent.hasOwnProperty(V)||N.context&&N.context.noIndent)&&(this.noIndent=!0)}function g(N){N.context&&(N.context=N.context.prev)}function m(N,V){for(var H;;){if(!N.context||(H=N.context.tagName,!u.contextGrabbers.hasOwnProperty(H)||!u.contextGrabbers[H].hasOwnProperty(V)))return;g(N)}}function v(N,V,H){return N=="openTag"?(H.tagStart=V.column(),_):N=="closeTag"?O:v}function _(N,V,H){return N=="word"?(H.tagName=V.current(),o="tag",S):u.allowMissingTagName&&N=="endTag"?(o="tag bracket",S(N,V,H)):(o="error",_)}function O(N,V,H){if(N=="word"){var X=V.current();return H.context&&H.context.tagName!=X&&u.implicitlyClosed.hasOwnProperty(H.context.tagName)&&g(H),H.context&&H.context.tagName==X||u.matchClosing===!1?(o="tag",F):(o="tag error",T)}else return u.allowMissingTagName&&N=="endTag"?(o="tag bracket",F(N,V,H)):(o="error",T)}function F(N,V,H){return N!="endTag"?(o="error",F):(g(H),v)}function T(N,V,H){return o="error",F(N,V,H)}function S(N,V,H){if(N=="word")return o="attribute",I;if(N=="endTag"||N=="selfcloseTag"){var X=H.tagName,G=H.tagStart;return H.tagName=H.tagStart=null,N=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(X)?m(H,X):(m(H,X),H.context=new p(H,X,G==H.indented)),v}return o="error",S}function I(N,V,H){return N=="equals"?E:(u.allowMissing||(o="error"),S(N,V,H))}function E(N,V,H){return N=="string"?M:N=="word"&&u.allowUnquoted?(o="string",S):(o="error",S(N,V,H))}function M(N,V,H){return N=="string"?M:S(N,V,H)}return{startState:function(N){var V={tokenize:n,state:v,indented:N||0,tagName:null,tagStart:null,context:null};return N!=null&&(V.baseIndent=N),V},token:function(N,V){if(!V.tagName&&N.sol()&&(V.indented=N.indentation()),N.eatSpace())return null;h=null;var H=V.tokenize(N,V);return(H||h)&&H!="comment"&&(o=null,V.state=V.state(h||H,N,V),o&&(H=o=="error"?H+" error":o)),H},indent:function(N,V,H){var X=N.context;if(N.tokenize.isInAttribute)return N.tagStart==N.indented?N.stringStartCol+1:N.indented+a;if(X&&X.noIndent)return oe.Pass;if(N.tokenize!=r&&N.tokenize!=n)return H?H.match(/^(\s*)/)[0].length:0;if(N.tagName)return u.multilineTagIndentPastTag!==!1?N.tagStart+N.tagName.length+2:N.tagStart+a*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(V))return 0;var G=V&&/^<(\/)?([\w_:\.-]*)/.exec(V);if(G&&G[1])for(;X;)if(X.tagName==G[2]){X=X.prev;break}else if(u.implicitlyClosed.hasOwnProperty(X.tagName))X=X.prev;else break;else if(G)for(;X;){var ee=u.contextGrabbers[X.tagName];if(ee&&ee.hasOwnProperty(G[2]))X=X.prev;else break}for(;X&&X.prev&&!X.startOfLine;)X=X.prev;return X?X.indent+a:N.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(N){N.state==E&&(N.state=S)},xmlCurrentTag:function(N){return N.tagName?{name:N.tagName,close:N.type=="closeTag"}:null},xmlCurrentContext:function(N){for(var V=[],H=N.context;H;H=H.prev)H.tagName&&V.push(H.tagName);return V.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},64270:function(rt){(function(ke,J){rt.exports=J()})(this,function(){"use strict";var ke=function(D,L){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,R){P.__proto__=R}||function(P,R){for(var ae in R)Object.prototype.hasOwnProperty.call(R,ae)&&(P[ae]=R[ae])},ke(D,L)};function J(D,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");ke(D,L);function P(){this.constructor=D}D.prototype=L===null?Object.create(L):(P.prototype=L.prototype,new P)}var oe=function(){return oe=Object.assign||function(L){for(var P,R=1,ae=arguments.length;R<ae;R++){P=arguments[R];for(var ye in P)Object.prototype.hasOwnProperty.call(P,ye)&&(L[ye]=P[ye])}return L},oe.apply(this,arguments)};function ie(D,L,P,R){function ae(ye){return ye instanceof P?ye:new P(function(_e){_e(ye)})}return new(P||(P=Promise))(function(ye,_e){function Te(je){try{De(R.next(je))}catch(We){_e(We)}}function Ee(je){try{De(R.throw(je))}catch(We){_e(We)}}function De(je){je.done?ye(je.value):ae(je.value).then(Te,Ee)}De((R=R.apply(D,L||[])).next())})}function t(D,L){var P={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},R,ae,ye,_e;return _e={next:Te(0),throw:Te(1),return:Te(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function Te(De){return function(je){return Ee([De,je])}}function Ee(De){if(R)throw new TypeError("Generator is already executing.");for(;P;)try{if(R=1,ae&&(ye=De[0]&2?ae.return:De[0]?ae.throw||((ye=ae.return)&&ye.call(ae),0):ae.next)&&!(ye=ye.call(ae,De[1])).done)return ye;switch(ae=0,ye&&(De=[De[0]&2,ye.value]),De[0]){case 0:case 1:ye=De;break;case 4:return P.label++,{value:De[1],done:!1};case 5:P.label++,ae=De[1],De=[0];continue;case 7:De=P.ops.pop(),P.trys.pop();continue;default:if(ye=P.trys,!(ye=ye.length>0&&ye[ye.length-1])&&(De[0]===6||De[0]===2)){P=0;continue}if(De[0]===3&&(!ye||De[1]>ye[0]&&De[1]<ye[3])){P.label=De[1];break}if(De[0]===6&&P.label<ye[1]){P.label=ye[1],ye=De;break}if(ye&&P.label<ye[2]){P.label=ye[2],P.ops.push(De);break}ye[2]&&P.ops.pop(),P.trys.pop();continue}De=L.call(D,P)}catch(je){De=[6,je],ae=0}finally{R=ye=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}}function C(D,L,P){if(P||arguments.length===2)for(var R=0,ae=L.length,ye;R<ae;R++)(ye||!(R in L))&&(ye||(ye=Array.prototype.slice.call(L,0,R)),ye[R]=L[R]);return D.concat(ye||L)}for(var b=function(){function D(L,P,R,ae){this.left=L,this.top=P,this.width=R,this.height=ae}return D.prototype.add=function(L,P,R,ae){return new D(this.left+L,this.top+P,this.width+R,this.height+ae)},D.fromClientRect=function(L,P){return new D(P.left+L.windowBounds.left,P.top+L.windowBounds.top,P.width,P.height)},D.fromDOMRectList=function(L,P){var R=Array.from(P).find(function(ae){return ae.width!==0});return R?new D(R.left+L.windowBounds.left,R.top+L.windowBounds.top,R.width,R.height):D.EMPTY},D.EMPTY=new D(0,0,0,0),D}(),a=function(D,L){return b.fromClientRect(D,L.getBoundingClientRect())},u=function(D){var L=D.body,P=D.documentElement;if(!L||!P)throw new Error("Unable to get document size");var R=Math.max(Math.max(L.scrollWidth,P.scrollWidth),Math.max(L.offsetWidth,P.offsetWidth),Math.max(L.clientWidth,P.clientWidth)),ae=Math.max(Math.max(L.scrollHeight,P.scrollHeight),Math.max(L.offsetHeight,P.offsetHeight),Math.max(L.clientHeight,P.clientHeight));return new b(0,0,R,ae)},A=function(D){for(var L=[],P=0,R=D.length;P<R;){var ae=D.charCodeAt(P++);if(ae>=55296&&ae<=56319&&P<R){var ye=D.charCodeAt(P++);(ye&64512)===56320?L.push(((ae&1023)<<10)+(ye&1023)+65536):(L.push(ae),P--)}else L.push(ae)}return L},c=function(){for(var D=[],L=0;L<arguments.length;L++)D[L]=arguments[L];if(String.fromCodePoint)return String.fromCodePoint.apply(String,D);var P=D.length;if(!P)return"";for(var R=[],ae=-1,ye="";++ae<P;){var _e=D[ae];_e<=65535?R.push(_e):(_e-=65536,R.push((_e>>10)+55296,_e%1024+56320)),(ae+1===P||R.length>16384)&&(ye+=String.fromCharCode.apply(String,R),R.length=0)}return ye},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n<h.length;n++)o[h.charCodeAt(n)]=n;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<r.length;l++)s[r.charCodeAt(l)]=l;for(var d=function(D){var L=D.length*.75,P=D.length,R,ae=0,ye,_e,Te,Ee;D[D.length-1]==="="&&(L--,D[D.length-2]==="="&&L--);var De=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(L):new Array(L),je=Array.isArray(De)?De:new Uint8Array(De);for(R=0;R<P;R+=4)ye=s[D.charCodeAt(R)],_e=s[D.charCodeAt(R+1)],Te=s[D.charCodeAt(R+2)],Ee=s[D.charCodeAt(R+3)],je[ae++]=ye<<2|_e>>4,je[ae++]=(_e&15)<<4|Te>>2,je[ae++]=(Te&3)<<6|Ee&63;return De},p=function(D){for(var L=D.length,P=[],R=0;R<L;R+=2)P.push(D[R+1]<<8|D[R]);return P},g=function(D){for(var L=D.length,P=[],R=0;R<L;R+=4)P.push(D[R+3]<<24|D[R+2]<<16|D[R+1]<<8|D[R]);return P},m=5,v=11,_=2,O=v-m,F=65536>>m,T=1<<m,S=T-1,I=1024>>m,E=F+I,M=E,N=32,V=M+N,H=65536>>v,X=1<<O,G=X-1,ee=function(D,L,P){return D.slice?D.slice(L,P):new Uint16Array(Array.prototype.slice.call(D,L,P))},Z=function(D,L,P){return D.slice?D.slice(L,P):new Uint32Array(Array.prototype.slice.call(D,L,P))},Ae=function(D,L){var P=d(D),R=Array.isArray(P)?g(P):new Uint32Array(P),ae=Array.isArray(P)?p(P):new Uint16Array(P),ye=24,_e=ee(ae,ye/2,R[4]/2),Te=R[5]===2?ee(ae,(ye+R[4])/2):Z(R,Math.ceil((ye+R[4])/4));return new U(R[0],R[1],R[2],R[3],_e,Te)},U=function(){function D(L,P,R,ae,ye,_e){this.initialValue=L,this.errorValue=P,this.highStart=R,this.highValueIndex=ae,this.index=ye,this.data=_e}return D.prototype.get=function(L){var P;if(L>=0){if(L<55296||L>56319&&L<=65535)return P=this.index[L>>m],P=(P<<_)+(L&S),this.data[P];if(L<=65535)return P=this.index[F+(L-55296>>m)],P=(P<<_)+(L&S),this.data[P];if(L<this.highStart)return P=V-H+(L>>v),P=this.index[P],P+=L>>m&G,P=this.index[P],P=(P<<_)+(L&S),this.data[P];if(L<=1114111)return this.data[this.highValueIndex]}return this.errorValue},D}(),W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),he=0;he<W.length;he++)le[W.charCodeAt(he)]=he;var ue="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",pe=50,fe=1,ce=2,be=3,Ce=4,xe=5,Se=7,me=8,te=9,$=10,B=11,k=12,q=13,ne=14,Q=15,z=16,Y=17,re=18,ge=19,Be=20,Oe=21,Le=22,Pe=23,$e=24,Ke=25,Ne=26,Ue=27,Ye=28,ze=29,Xe=30,qe=31,Qe=32,He=33,Ge=34,nt=35,st=36,Tt=37,xt=38,Et=39,Dt=40,Wt=41,Qt=42,Rt=43,Xt=[9001,65288],Ar="!",bt="\xD7",Mt="\xF7",It=Ae(ue),_t=[Xe,st],pr=[fe,ce,be,xe],lr=[$,me],Pr=[Ue,Ne],Gr=pr.concat(lr),or=[xt,Et,Dt,Ge,nt],wr=[Q,q],ln=function(D,L){L===void 0&&(L="strict");var P=[],R=[],ae=[];return D.forEach(function(ye,_e){var Te=It.get(ye);if(Te>pe?(ae.push(!0),Te-=pe):ae.push(!1),["normal","auto","loose"].indexOf(L)!==-1&&[8208,8211,12316,12448].indexOf(ye)!==-1)return R.push(_e),P.push(z);if(Te===Ce||Te===B){if(_e===0)return R.push(_e),P.push(Xe);var Ee=P[_e-1];return Gr.indexOf(Ee)===-1?(R.push(R[_e-1]),P.push(Ee)):(R.push(_e),P.push(Xe))}if(R.push(_e),Te===qe)return P.push(L==="strict"?Oe:Tt);if(Te===Qt||Te===ze)return P.push(Xe);if(Te===Rt)return ye>=131072&&ye<=196605||ye>=196608&&ye<=262141?P.push(Tt):P.push(Xe);P.push(Te)}),[R,P,ae]},ui=function(D,L,P,R){var ae=R[P];if(Array.isArray(D)?D.indexOf(ae)!==-1:D===ae)for(var ye=P;ye<=R.length;){ye++;var _e=R[ye];if(_e===L)return!0;if(_e!==$)break}if(ae===$)for(var ye=P;ye>0;){ye--;var Te=R[ye];if(Array.isArray(D)?D.indexOf(Te)!==-1:D===Te)for(var Ee=P;Ee<=R.length;){Ee++;var _e=R[Ee];if(_e===L)return!0;if(_e!==$)break}if(Te!==$)break}return!1},$r=function(D,L){for(var P=D;P>=0;){var R=L[P];if(R===$)P--;else return R}return 0},un=function(D,L,P,R,ae){if(P[R]===0)return bt;var ye=R-1;if(Array.isArray(ae)&&ae[ye]===!0)return bt;var _e=ye-1,Te=ye+1,Ee=L[ye],De=_e>=0?L[_e]:0,je=L[Te];if(Ee===ce&&je===be)return bt;if(pr.indexOf(Ee)!==-1)return Ar;if(pr.indexOf(je)!==-1||lr.indexOf(je)!==-1)return bt;if($r(ye,L)===me)return Mt;if(It.get(D[ye])===B||(Ee===Qe||Ee===He)&&It.get(D[Te])===B||Ee===Se||je===Se||Ee===te||[$,q,Q].indexOf(Ee)===-1&&je===te||[Y,re,ge,$e,Ye].indexOf(je)!==-1||$r(ye,L)===Le||ui(Pe,Le,ye,L)||ui([Y,re],Oe,ye,L)||ui(k,k,ye,L))return bt;if(Ee===$)return Mt;if(Ee===Pe||je===Pe)return bt;if(je===z||Ee===z)return Mt;if([q,Q,Oe].indexOf(je)!==-1||Ee===ne||De===st&&wr.indexOf(Ee)!==-1||Ee===Ye&&je===st||je===Be||_t.indexOf(je)!==-1&&Ee===Ke||_t.indexOf(Ee)!==-1&&je===Ke||Ee===Ue&&[Tt,Qe,He].indexOf(je)!==-1||[Tt,Qe,He].indexOf(Ee)!==-1&&je===Ne||_t.indexOf(Ee)!==-1&&Pr.indexOf(je)!==-1||Pr.indexOf(Ee)!==-1&&_t.indexOf(je)!==-1||[Ue,Ne].indexOf(Ee)!==-1&&(je===Ke||[Le,Q].indexOf(je)!==-1&&L[Te+1]===Ke)||[Le,Q].indexOf(Ee)!==-1&&je===Ke||Ee===Ke&&[Ke,Ye,$e].indexOf(je)!==-1)return bt;if([Ke,Ye,$e,Y,re].indexOf(je)!==-1)for(var We=ye;We>=0;){var Je=L[We];if(Je===Ke)return bt;if([Ye,$e].indexOf(Je)!==-1)We--;else break}if([Ue,Ne].indexOf(je)!==-1)for(var We=[Y,re].indexOf(Ee)!==-1?_e:ye;We>=0;){var Je=L[We];if(Je===Ke)return bt;if([Ye,$e].indexOf(Je)!==-1)We--;else break}if(xt===Ee&&[xt,Et,Ge,nt].indexOf(je)!==-1||[Et,Ge].indexOf(Ee)!==-1&&[Et,Dt].indexOf(je)!==-1||[Dt,nt].indexOf(Ee)!==-1&&je===Dt||or.indexOf(Ee)!==-1&&[Be,Ne].indexOf(je)!==-1||or.indexOf(je)!==-1&&Ee===Ue||_t.indexOf(Ee)!==-1&&_t.indexOf(je)!==-1||Ee===$e&&_t.indexOf(je)!==-1||_t.concat(Ke).indexOf(Ee)!==-1&&je===Le&&Xt.indexOf(D[Te])===-1||_t.concat(Ke).indexOf(je)!==-1&&Ee===re)return bt;if(Ee===Wt&&je===Wt){for(var dt=P[ye],At=1;dt>0&&(dt--,L[dt]===Wt);)At++;if(At%2!==0)return bt}return Ee===Qe&&je===He?bt:Mt},Nn=function(D,L){L||(L={lineBreak:"normal",wordBreak:"normal"});var P=ln(D,L.lineBreak),R=P[0],ae=P[1],ye=P[2];(L.wordBreak==="break-all"||L.wordBreak==="break-word")&&(ae=ae.map(function(Te){return[Ke,Xe,Qt].indexOf(Te)!==-1?Tt:Te}));var _e=L.wordBreak==="keep-all"?ye.map(function(Te,Ee){return Te&&D[Ee]>=19968&&D[Ee]<=40959}):void 0;return[R,ae,_e]},ir=function(){function D(L,P,R,ae){this.codePoints=L,this.required=P===Ar,this.start=R,this.end=ae}return D.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},D}(),pt=function(D,L){var P=A(D),R=Nn(P,L),ae=R[0],ye=R[1],_e=R[2],Te=P.length,Ee=0,De=0;return{next:function(){if(De>=Te)return{done:!0,value:null};for(var je=bt;De<Te&&(je=un(P,ye,ae,++De,_e))===bt;);if(je!==bt||De===Te){var We=new ir(P,je,Ee,De);return Ee=De,{value:We,done:!1}}return{done:!0,value:null}}}},gr=1,Lr=2,$t=4,jt=8,qr=10,xn=47,Er=92,et=9,Ct=32,En=34,Tn=61,Di=35,ci=36,en=37,wt=39,Mi=40,Wn=41,fi=95,sr=45,Ri=33,as=60,Fn=62,As=64,Ys=91,ls=93,Kn=61,Js=123,hi=63,us=125,cs=124,ji=126,Zs=128,Rr=65533,Gn=42,yn=43,Qi=44,zn=58,Po=59,di=46,Vn=0,Ho=8,tn=11,Hr=14,ol=31,Ua=127,cn=-1,fs=48,hs=97,$s=101,Da=102,Ma=117,eo=122,Ra=65,No=69,fn=70,al=85,Al=90,Cr=function(D){return D>=fs&&D<=57},ja=function(D){return D>=55296&&D<=57343},zr=function(D){return Cr(D)||D>=Ra&&D<=fn||D>=hs&&D<=Da},Wo=function(D){return D>=hs&&D<=eo},kn=function(D){return D>=Ra&&D<=Al},to=function(D){return Wo(D)||kn(D)},Ko=function(D){return D>=Zs},In=function(D){return D===qr||D===et||D===Ct},ro=function(D){return to(D)||Ko(D)||D===fi},Qa=function(D){return ro(D)||Cr(D)||D===sr},ll=function(D){return D>=Vn&&D<=Ho||D===tn||D>=Hr&&D<=ol||D===Ua},Xn=function(D,L){return D!==Er?!1:L!==qr},ds=function(D,L,P){return D===sr?ro(L)||Xn(L,P):ro(D)?!0:!!(D===Er&&Xn(D,L))},no=function(D,L,P){return D===yn||D===sr?Cr(L)?!0:L===di&&Cr(P):Cr(D===di?L:D)},ul=function(D){var L=0,P=1;(D[L]===yn||D[L]===sr)&&(D[L]===sr&&(P=-1),L++);for(var R=[];Cr(D[L]);)R.push(D[L++]);var ae=R.length?parseInt(c.apply(void 0,R),10):0;D[L]===di&&L++;for(var ye=[];Cr(D[L]);)ye.push(D[L++]);var _e=ye.length,Te=_e?parseInt(c.apply(void 0,ye),10):0;(D[L]===No||D[L]===$s)&&L++;var Ee=1;(D[L]===yn||D[L]===sr)&&(D[L]===sr&&(Ee=-1),L++);for(var De=[];Cr(D[L]);)De.push(D[L++]);var je=De.length?parseInt(c.apply(void 0,De),10):0;return P*(ae+Te*Math.pow(10,-_e))*Math.pow(10,Ee*je)},cl={type:2},fl={type:3},hl={type:4},Pa={type:13},dl={type:8},Ha={type:21},io={type:9},Pi={type:10},pl={type:11},gl={type:12},vl={type:14},Yn={type:23},Br={type:1},ml={type:25},Na={type:24},ps={type:26},yl={type:27},Wa={type:28},bl={type:29},Go={type:31},so={type:32},Ka=function(){function D(){this._value=[]}return D.prototype.write=function(L){this._value=this._value.concat(A(L))},D.prototype.read=function(){for(var L=[],P=this.consumeToken();P!==so;)L.push(P),P=this.consumeToken();return L},D.prototype.consumeToken=function(){var L=this.consumeCodePoint();switch(L){case En:return this.consumeStringToken(En);case Di:var P=this.peekCodePoint(0),R=this.peekCodePoint(1),ae=this.peekCodePoint(2);if(Qa(P)||Xn(R,ae)){var ye=ds(P,R,ae)?Lr:gr,_e=this.consumeName();return{type:5,value:_e,flags:ye}}break;case ci:if(this.peekCodePoint(0)===Tn)return this.consumeCodePoint(),Pa;break;case wt:return this.consumeStringToken(wt);case Mi:return cl;case Wn:return fl;case Gn:if(this.peekCodePoint(0)===Tn)return this.consumeCodePoint(),vl;break;case yn:if(no(L,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(L),this.consumeNumericToken();break;case Qi:return hl;case sr:var Te=L,Ee=this.peekCodePoint(0),De=this.peekCodePoint(1);if(no(Te,Ee,De))return this.reconsumeCodePoint(L),this.consumeNumericToken();if(ds(Te,Ee,De))return this.reconsumeCodePoint(L),this.consumeIdentLikeToken();if(Ee===sr&&De===Fn)return this.consumeCodePoint(),this.consumeCodePoint(),Na;break;case di:if(no(L,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(L),this.consumeNumericToken();break;case xn:if(this.peekCodePoint(0)===Gn)for(this.consumeCodePoint();;){var je=this.consumeCodePoint();if(je===Gn&&(je=this.consumeCodePoint(),je===xn))return this.consumeToken();if(je===cn)return this.consumeToken()}break;case zn:return ps;case Po:return yl;case as:if(this.peekCodePoint(0)===Ri&&this.peekCodePoint(1)===sr&&this.peekCodePoint(2)===sr)return this.consumeCodePoint(),this.consumeCodePoint(),ml;break;case As:var We=this.peekCodePoint(0),Je=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(ds(We,Je,dt)){var _e=this.consumeName();return{type:7,value:_e}}break;case Ys:return Wa;case Er:if(Xn(L,this.peekCodePoint(0)))return this.reconsumeCodePoint(L),this.consumeIdentLikeToken();break;case ls:return bl;case Kn:if(this.peekCodePoint(0)===Tn)return this.consumeCodePoint(),dl;break;case Js:return pl;case us:return gl;case Ma:case al:var At=this.peekCodePoint(0),ut=this.peekCodePoint(1);return At===yn&&(zr(ut)||ut===hi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(L),this.consumeIdentLikeToken();case cs:if(this.peekCodePoint(0)===Tn)return this.consumeCodePoint(),io;if(this.peekCodePoint(0)===cs)return this.consumeCodePoint(),Ha;break;case ji:if(this.peekCodePoint(0)===Tn)return this.consumeCodePoint(),Pi;break;case cn:return so}return In(L)?(this.consumeWhiteSpace(),Go):Cr(L)?(this.reconsumeCodePoint(L),this.consumeNumericToken()):ro(L)?(this.reconsumeCodePoint(L),this.consumeIdentLikeToken()):{type:6,value:c(L)}},D.prototype.consumeCodePoint=function(){var L=this._value.shift();return typeof L=="undefined"?-1:L},D.prototype.reconsumeCodePoint=function(L){this._value.unshift(L)},D.prototype.peekCodePoint=function(L){return L>=this._value.length?-1:this._value[L]},D.prototype.consumeUnicodeRangeToken=function(){for(var L=[],P=this.consumeCodePoint();zr(P)&&L.length<6;)L.push(P),P=this.consumeCodePoint();for(var R=!1;P===hi&&L.length<6;)L.push(P),P=this.consumeCodePoint(),R=!0;if(R){var ae=parseInt(c.apply(void 0,L.map(function(Ee){return Ee===hi?fs:Ee})),16),ye=parseInt(c.apply(void 0,L.map(function(Ee){return Ee===hi?fn:Ee})),16);return{type:30,start:ae,end:ye}}var _e=parseInt(c.apply(void 0,L),16);if(this.peekCodePoint(0)===sr&&zr(this.peekCodePoint(1))){this.consumeCodePoint(),P=this.consumeCodePoint();for(var Te=[];zr(P)&&Te.length<6;)Te.push(P),P=this.consumeCodePoint();var ye=parseInt(c.apply(void 0,Te),16);return{type:30,start:_e,end:ye}}else return{type:30,start:_e,end:_e}},D.prototype.consumeIdentLikeToken=function(){var L=this.consumeName();return L.toLowerCase()==="url"&&this.peekCodePoint(0)===Mi?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Mi?(this.consumeCodePoint(),{type:19,value:L}):{type:20,value:L}},D.prototype.consumeUrlToken=function(){var L=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===cn)return{type:22,value:""};var P=this.peekCodePoint(0);if(P===wt||P===En){var R=this.consumeStringToken(this.consumeCodePoint());return R.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===cn||this.peekCodePoint(0)===Wn)?(this.consumeCodePoint(),{type:22,value:R.value}):(this.consumeBadUrlRemnants(),Yn)}for(;;){var ae=this.consumeCodePoint();if(ae===cn||ae===Wn)return{type:22,value:c.apply(void 0,L)};if(In(ae))return this.consumeWhiteSpace(),this.peekCodePoint(0)===cn||this.peekCodePoint(0)===Wn?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,L)}):(this.consumeBadUrlRemnants(),Yn);if(ae===En||ae===wt||ae===Mi||ll(ae))return this.consumeBadUrlRemnants(),Yn;if(ae===Er)if(Xn(ae,this.peekCodePoint(0)))L.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Yn;else L.push(ae)}},D.prototype.consumeWhiteSpace=function(){for(;In(this.peekCodePoint(0));)this.consumeCodePoint()},D.prototype.consumeBadUrlRemnants=function(){for(;;){var L=this.consumeCodePoint();if(L===Wn||L===cn)return;Xn(L,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},D.prototype.consumeStringSlice=function(L){for(var P=5e4,R="";L>0;){var ae=Math.min(P,L);R+=c.apply(void 0,this._value.splice(0,ae)),L-=ae}return this._value.shift(),R},D.prototype.consumeStringToken=function(L){var P="",R=0;do{var ae=this._value[R];if(ae===cn||ae===void 0||ae===L)return P+=this.consumeStringSlice(R),{type:0,value:P};if(ae===qr)return this._value.splice(0,R),Br;if(ae===Er){var ye=this._value[R+1];ye!==cn&&ye!==void 0&&(ye===qr?(P+=this.consumeStringSlice(R),R=-1,this._value.shift()):Xn(ae,ye)&&(P+=this.consumeStringSlice(R),P+=c(this.consumeEscapedCodePoint()),R=-1))}R++}while(!0)},D.prototype.consumeNumber=function(){var L=[],P=$t,R=this.peekCodePoint(0);for((R===yn||R===sr)&&L.push(this.consumeCodePoint());Cr(this.peekCodePoint(0));)L.push(this.consumeCodePoint());R=this.peekCodePoint(0);var ae=this.peekCodePoint(1);if(R===di&&Cr(ae))for(L.push(this.consumeCodePoint(),this.consumeCodePoint()),P=jt;Cr(this.peekCodePoint(0));)L.push(this.consumeCodePoint());R=this.peekCodePoint(0),ae=this.peekCodePoint(1);var ye=this.peekCodePoint(2);if((R===No||R===$s)&&((ae===yn||ae===sr)&&Cr(ye)||Cr(ae)))for(L.push(this.consumeCodePoint(),this.consumeCodePoint()),P=jt;Cr(this.peekCodePoint(0));)L.push(this.consumeCodePoint());return[ul(L),P]},D.prototype.consumeNumericToken=function(){var L=this.consumeNumber(),P=L[0],R=L[1],ae=this.peekCodePoint(0),ye=this.peekCodePoint(1),_e=this.peekCodePoint(2);if(ds(ae,ye,_e)){var Te=this.consumeName();return{type:15,number:P,flags:R,unit:Te}}return ae===en?(this.consumeCodePoint(),{type:16,number:P,flags:R}):{type:17,number:P,flags:R}},D.prototype.consumeEscapedCodePoint=function(){var L=this.consumeCodePoint();if(zr(L)){for(var P=c(L);zr(this.peekCodePoint(0))&&P.length<6;)P+=c(this.consumeCodePoint());In(this.peekCodePoint(0))&&this.consumeCodePoint();var R=parseInt(P,16);return R===0||ja(R)||R>1114111?Rr:R}return L===cn?Rr:L},D.prototype.consumeName=function(){for(var L="";;){var P=this.consumeCodePoint();if(Qa(P))L+=c(P);else if(Xn(P,this.peekCodePoint(0)))L+=c(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(P),L}},D}(),Ga=function(){function D(L){this._tokens=L}return D.create=function(L){var P=new Ka;return P.write(L),new D(P.read())},D.parseValue=function(L){return D.create(L).parseComponentValue()},D.parseValues=function(L){return D.create(L).parseComponentValues()},D.prototype.parseComponentValue=function(){for(var L=this.consumeToken();L.type===31;)L=this.consumeToken();if(L.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(L);var P=this.consumeComponentValue();do L=this.consumeToken();while(L.type===31);if(L.type===32)return P;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},D.prototype.parseComponentValues=function(){for(var L=[];;){var P=this.consumeComponentValue();if(P.type===32)return L;L.push(P),L.push()}},D.prototype.consumeComponentValue=function(){var L=this.consumeToken();switch(L.type){case 11:case 28:case 2:return this.consumeSimpleBlock(L.type);case 19:return this.consumeFunction(L)}return L},D.prototype.consumeSimpleBlock=function(L){for(var P={type:L,values:[]},R=this.consumeToken();;){if(R.type===32||bn(R,L))return P;this.reconsumeToken(R),P.values.push(this.consumeComponentValue()),R=this.consumeToken()}},D.prototype.consumeFunction=function(L){for(var P={name:L.value,values:[],type:18};;){var R=this.consumeToken();if(R.type===32||R.type===3)return P;this.reconsumeToken(R),P.values.push(this.consumeComponentValue())}},D.prototype.consumeToken=function(){var L=this._tokens.shift();return typeof L=="undefined"?so:L},D.prototype.reconsumeToken=function(L){this._tokens.unshift(L)},D}(),Hi=function(D){return D.type===15},pi=function(D){return D.type===17},Yt=function(D){return D.type===20},gs=function(D){return D.type===0},hn=function(D,L){return Yt(D)&&D.value===L},vs=function(D){return D.type!==31},Jn=function(D){return D.type!==31&&D.type!==4},dn=function(D){var L=[],P=[];return D.forEach(function(R){if(R.type===4){if(P.length===0)throw new Error("Error parsing function args, zero tokens for arg");L.push(P),P=[];return}R.type!==31&&P.push(R)}),P.length&&L.push(P),L},bn=function(D,L){return L===11&&D.type===12||L===28&&D.type===29?!0:L===2&&D.type===3},Nr=function(D){return D.type===17||D.type===15},ur=function(D){return D.type===16||Nr(D)},za=function(D){return D.length>1?[D[0],D[1]]:[D[0]]},_r={type:17,number:0,flags:$t},zo={type:16,number:50,flags:$t},Ln={type:16,number:100,flags:$t},gi=function(D,L,P){var R=D[0],ae=D[1];return[Kt(R,L),Kt(typeof ae!="undefined"?ae:R,P)]},Kt=function(D,L){if(D.type===16)return D.number/100*L;if(Hi(D))switch(D.unit){case"rem":case"em":return 16*D.number;case"px":default:return D.number}return D.number},pn="deg",Vo="grad",Xo="rad",Va="turn",oo={name:"angle",parse:function(D,L){if(L.type===15)switch(L.unit){case pn:return Math.PI*L.number/180;case Vo:return Math.PI/200*L.number;case Xo:return L.number;case Va:return Math.PI*2*L.number}throw new Error("Unsupported angle type")}},Xa=function(D){return D.type===15&&(D.unit===pn||D.unit===Vo||D.unit===Xo||D.unit===Va)},Yo=function(D){var L=D.filter(Yt).map(function(P){return P.value}).join(" ");switch(L){case"to bottom right":case"to right bottom":case"left top":case"top left":return[_r,_r];case"to top":case"bottom":return Vr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[_r,Ln];case"to right":case"left":return Vr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ln,Ln];case"to bottom":case"top":return Vr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ln,_r];case"to left":case"right":return Vr(270)}return 0},Vr=function(D){return Math.PI*D/180},rn={name:"color",parse:function(D,L){if(L.type===18){var P=Ya[L.name];if(typeof P=="undefined")throw new Error('Attempting to parse an unsupported color function "'+L.name+'"');return P(D,L.values)}if(L.type===5){if(L.value.length===3){var R=L.value.substring(0,1),ae=L.value.substring(1,2),ye=L.value.substring(2,3);return wn(parseInt(R+R,16),parseInt(ae+ae,16),parseInt(ye+ye,16),1)}if(L.value.length===4){var R=L.value.substring(0,1),ae=L.value.substring(1,2),ye=L.value.substring(2,3),_e=L.value.substring(3,4);return wn(parseInt(R+R,16),parseInt(ae+ae,16),parseInt(ye+ye,16),parseInt(_e+_e,16)/255)}if(L.value.length===6){var R=L.value.substring(0,2),ae=L.value.substring(2,4),ye=L.value.substring(4,6);return wn(parseInt(R,16),parseInt(ae,16),parseInt(ye,16),1)}if(L.value.length===8){var R=L.value.substring(0,2),ae=L.value.substring(2,4),ye=L.value.substring(4,6),_e=L.value.substring(6,8);return wn(parseInt(R,16),parseInt(ae,16),parseInt(ye,16),parseInt(_e,16)/255)}}if(L.type===20){var Te=gn[L.value.toUpperCase()];if(typeof Te!="undefined")return Te}return gn.TRANSPARENT}},On=function(D){return(255&D)===0},vr=function(D){var L=255&D,P=255&D>>8,R=255&D>>16,ae=255&D>>24;return L<255?"rgba("+ae+","+R+","+P+","+L/255+")":"rgb("+ae+","+R+","+P+")"},wn=function(D,L,P,R){return(D<<24|L<<16|P<<8|Math.round(R*255)<<0)>>>0},ms=function(D,L){if(D.type===17)return D.number;if(D.type===16){var P=L===3?1:255;return L===3?D.number/100*P:Math.round(D.number/100*P)}return 0},Jo=function(D,L){var P=L.filter(Jn);if(P.length===3){var R=P.map(ms),ae=R[0],ye=R[1],_e=R[2];return wn(ae,ye,_e,1)}if(P.length===4){var Te=P.map(ms),ae=Te[0],ye=Te[1],_e=Te[2],Ee=Te[3];return wn(ae,ye,_e,Ee)}return 0};function ys(D,L,P){return P<0&&(P+=1),P>=1&&(P-=1),P<1/6?(L-D)*P*6+D:P<1/2?L:P<2/3?(L-D)*6*(2/3-P)+D:D}var nn=function(D,L){var P=L.filter(Jn),R=P[0],ae=P[1],ye=P[2],_e=P[3],Te=(R.type===17?Vr(R.number):oo.parse(D,R))/(Math.PI*2),Ee=ur(ae)?ae.number/100:0,De=ur(ye)?ye.number/100:0,je=typeof _e!="undefined"&&ur(_e)?Kt(_e,1):1;if(Ee===0)return wn(De*255,De*255,De*255,1);var We=De<=.5?De*(Ee+1):De+Ee-De*Ee,Je=De*2-We,dt=ys(Je,We,Te+1/3),At=ys(Je,We,Te),ut=ys(Je,We,Te-1/3);return wn(dt*255,At*255,ut*255,je)},Ya={hsl:nn,hsla:nn,rgb:Jo,rgba:Jo},vi=function(D,L){return rn.parse(D,Ga.create(L).parseComponentValue())},gn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ja={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(D,L){return L.map(function(P){if(Yt(P))switch(P.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Za={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ni=function(D,L){var P=rn.parse(D,L[0]),R=L[1];return R&&ur(R)?{color:P,stop:R}:{color:P,stop:null}},$a=function(D,L){var P=D[0],R=D[D.length-1];P.stop===null&&(P.stop=_r),R.stop===null&&(R.stop=Ln);for(var ae=[],ye=0,_e=0;_e<D.length;_e++){var Te=D[_e].stop;if(Te!==null){var Ee=Kt(Te,L);Ee>ye?ae.push(Ee):ae.push(ye),ye=Ee}else ae.push(null)}for(var De=null,_e=0;_e<ae.length;_e++){var je=ae[_e];if(je===null)De===null&&(De=_e);else if(De!==null){for(var We=_e-De,Je=ae[De-1],dt=(je-Je)/(We+1),At=1;At<=We;At++)ae[De+At-1]=dt*At;De=null}}return D.map(function(ut,Lt){var mt=ut.color;return{color:mt,stop:Math.max(Math.min(1,ae[Lt]/L),0)}})},wl=function(D,L,P){var R=L/2,ae=P/2,ye=Kt(D[0],L)-R,_e=ae-Kt(D[1],P);return(Math.atan2(_e,ye)+Math.PI*2)%(Math.PI*2)},Cl=function(D,L,P){var R=typeof D=="number"?D:wl(D,L,P),ae=Math.abs(L*Math.sin(R))+Math.abs(P*Math.cos(R)),ye=L/2,_e=P/2,Te=ae/2,Ee=Math.sin(R-Math.PI/2)*Te,De=Math.cos(R-Math.PI/2)*Te;return[ae,ye-De,ye+De,_e-Ee,_e+Ee]},Tr=function(D,L){return Math.sqrt(D*D+L*L)},mi=function(D,L,P,R,ae){var ye=[[0,0],[0,L],[D,0],[D,L]];return ye.reduce(function(_e,Te){var Ee=Te[0],De=Te[1],je=Tr(P-Ee,R-De);return(ae?je<_e.optimumDistance:je>_e.optimumDistance)?{optimumCorner:Te,optimumDistance:je}:_e},{optimumDistance:ae?1/0:-1/0,optimumCorner:null}).optimumCorner},Wi=function(D,L,P,R,ae){var ye=0,_e=0;switch(D.size){case 0:D.shape===0?ye=_e=Math.min(Math.abs(L),Math.abs(L-R),Math.abs(P),Math.abs(P-ae)):D.shape===1&&(ye=Math.min(Math.abs(L),Math.abs(L-R)),_e=Math.min(Math.abs(P),Math.abs(P-ae)));break;case 2:if(D.shape===0)ye=_e=Math.min(Tr(L,P),Tr(L,P-ae),Tr(L-R,P),Tr(L-R,P-ae));else if(D.shape===1){var Te=Math.min(Math.abs(P),Math.abs(P-ae))/Math.min(Math.abs(L),Math.abs(L-R)),Ee=mi(R,ae,L,P,!0),De=Ee[0],je=Ee[1];ye=Tr(De-L,(je-P)/Te),_e=Te*ye}break;case 1:D.shape===0?ye=_e=Math.max(Math.abs(L),Math.abs(L-R),Math.abs(P),Math.abs(P-ae)):D.shape===1&&(ye=Math.max(Math.abs(L),Math.abs(L-R)),_e=Math.max(Math.abs(P),Math.abs(P-ae)));break;case 3:if(D.shape===0)ye=_e=Math.max(Tr(L,P),Tr(L,P-ae),Tr(L-R,P),Tr(L-R,P-ae));else if(D.shape===1){var Te=Math.max(Math.abs(P),Math.abs(P-ae))/Math.max(Math.abs(L),Math.abs(L-R)),We=mi(R,ae,L,P,!1),De=We[0],je=We[1];ye=Tr(De-L,(je-P)/Te),_e=Te*ye}break}return Array.isArray(D.size)&&(ye=Kt(D.size[0],R),_e=D.size.length===2?Kt(D.size[1],ae):ye),[ye,_e]},Zo=function(D,L){var P=Vr(180),R=[];return dn(L).forEach(function(ae,ye){if(ye===0){var _e=ae[0];if(_e.type===20&&_e.value==="to"){P=Yo(ae);return}else if(Xa(_e)){P=oo.parse(D,_e);return}}var Te=Ni(D,ae);R.push(Te)}),{angle:P,stops:R,type:1}},Ki=function(D,L){var P=Vr(180),R=[];return dn(L).forEach(function(ae,ye){if(ye===0){var _e=ae[0];if(_e.type===20&&["top","left","right","bottom"].indexOf(_e.value)!==-1){P=Yo(ae);return}else if(Xa(_e)){P=(oo.parse(D,_e)+Vr(270))%Vr(360);return}}var Te=Ni(D,ae);R.push(Te)}),{angle:P,stops:R,type:1}},qa=function(D,L){var P=Vr(180),R=[],ae=1,ye=0,_e=3,Te=[];return dn(L).forEach(function(Ee,De){var je=Ee[0];if(De===0){if(Yt(je)&&je.value==="linear"){ae=1;return}else if(Yt(je)&&je.value==="radial"){ae=2;return}}if(je.type===18){if(je.name==="from"){var We=rn.parse(D,je.values[0]);R.push({stop:_r,color:We})}else if(je.name==="to"){var We=rn.parse(D,je.values[0]);R.push({stop:Ln,color:We})}else if(je.name==="color-stop"){var Je=je.values.filter(Jn);if(Je.length===2){var We=rn.parse(D,Je[1]),dt=Je[0];pi(dt)&&R.push({stop:{type:16,number:dt.number*100,flags:dt.flags},color:We})}}}}),ae===1?{angle:(P+Vr(180))%Vr(360),stops:R,type:ae}:{size:_e,shape:ye,stops:R,position:Te,type:ae}},ao="closest-side",Zn="farthest-side",$n="closest-corner",Or="farthest-corner",Un="circle",Dn="ellipse",bs="cover",eA="contain",tA=function(D,L){var P=0,R=3,ae=[],ye=[];return dn(L).forEach(function(_e,Te){var Ee=!0;if(Te===0){var De=!1;Ee=_e.reduce(function(We,Je){if(De)if(Yt(Je))switch(Je.value){case"center":return ye.push(zo),We;case"top":case"left":return ye.push(_r),We;case"right":case"bottom":return ye.push(Ln),We}else(ur(Je)||Nr(Je))&&ye.push(Je);else if(Yt(Je))switch(Je.value){case Un:return P=0,!1;case Dn:return P=1,!1;case"at":return De=!0,!1;case ao:return R=0,!1;case bs:case Zn:return R=1,!1;case eA:case $n:return R=2,!1;case Or:return R=3,!1}else if(Nr(Je)||ur(Je))return Array.isArray(R)||(R=[]),R.push(Je),!1;return We},Ee)}if(Ee){var je=Ni(D,_e);ae.push(je)}}),{size:R,shape:P,stops:ae,position:ye,type:2}},qn=function(D,L){var P=0,R=3,ae=[],ye=[];return dn(L).forEach(function(_e,Te){var Ee=!0;if(Te===0?Ee=_e.reduce(function(je,We){if(Yt(We))switch(We.value){case"center":return ye.push(zo),!1;case"top":case"left":return ye.push(_r),!1;case"right":case"bottom":return ye.push(Ln),!1}else if(ur(We)||Nr(We))return ye.push(We),!1;return je},Ee):Te===1&&(Ee=_e.reduce(function(je,We){if(Yt(We))switch(We.value){case Un:return P=0,!1;case Dn:return P=1,!1;case eA:case ao:return R=0,!1;case Zn:return R=1,!1;case $n:return R=2,!1;case bs:case Or:return R=3,!1}else if(Nr(We)||ur(We))return Array.isArray(R)||(R=[]),R.push(We),!1;return je},Ee)),Ee){var De=Ni(D,_e);ae.push(De)}}),{size:R,shape:P,stops:ae,position:ye,type:2}},rA=function(D){return D.type===1},nA=function(D){return D.type===2},Gi={name:"image",parse:function(D,L){if(L.type===22){var P={url:L.value,type:0};return D.cache.addImage(L.value),P}if(L.type===18){var R=Ao[L.name];if(typeof R=="undefined")throw new Error('Attempting to parse an unsupported image function "'+L.name+'"');return R(D,L.values)}throw new Error("Unsupported image type "+L.type)}};function Bl(D){return!(D.type===20&&D.value==="none")&&(D.type!==18||!!Ao[D.name])}var Ao={"linear-gradient":Zo,"-moz-linear-gradient":Ki,"-ms-linear-gradient":Ki,"-o-linear-gradient":Ki,"-webkit-linear-gradient":Ki,"radial-gradient":tA,"-moz-radial-gradient":qn,"-ms-radial-gradient":qn,"-o-radial-gradient":qn,"-webkit-radial-gradient":qn,"-webkit-gradient":qa},iA={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(D,L){if(L.length===0)return[];var P=L[0];return P.type===20&&P.value==="none"?[]:L.filter(function(R){return Jn(R)&&Bl(R)}).map(function(R){return Gi.parse(D,R)})}},sA={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(D,L){return L.map(function(P){if(Yt(P))switch(P.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$o={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(D,L){return dn(L).map(function(P){return P.filter(ur)}).map(za)}},zi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(D,L){return dn(L).map(function(P){return P.filter(Yt).map(function(R){return R.value}).join(" ")}).map(lo)}},lo=function(D){switch(D){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},yi;(function(D){D.AUTO="auto",D.CONTAIN="contain",D.COVER="cover"})(yi||(yi={}));var uo={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(D,L){return dn(L).map(function(P){return P.filter(_l)})}},_l=function(D){return Yt(D)||ur(D)},co=function(D){return{name:"border-"+D+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Sl=co("top"),qo=co("right"),ea=co("bottom"),Vi=co("left"),ei=function(D){return{name:"border-radius-"+D,initialValue:"0 0",prefix:!1,type:1,parse:function(L,P){return za(P.filter(ur))}}},xl=ei("top-left"),fo=ei("top-right"),oA=ei("bottom-right"),ws=ei("bottom-left"),Cs=function(D){return{name:"border-"+D+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(L,P){switch(P){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bi=Cs("top"),Bs=Cs("right"),wi=Cs("bottom"),_s=Cs("left"),Mn=function(D){return{name:"border-"+D+"-width",initialValue:"0",type:0,prefix:!1,parse:function(L,P){return Hi(P)?P.number:0}}},aA=Mn("top"),AA=Mn("right"),lA=Mn("bottom"),El=Mn("left"),Ci={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(D,L){switch(L){case"rtl":return 1;case"ltr":default:return 0}}},Tl={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(D,L){return L.filter(Yt).reduce(function(P,R){return P|Fl(R.value)},0)}},Fl=function(D){switch(D){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},kl={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(D,L){switch(L){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Il={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(D,L){return L.type===20&&L.value==="normal"?0:L.type===17||L.type===15?L.number:0}},ho;(function(D){D.NORMAL="normal",D.STRICT="strict"})(ho||(ho={}));var Ll={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(D,L){switch(L){case"strict":return ho.STRICT;case"normal":default:return ho.NORMAL}}},Wr={name:"line-height",initialValue:"normal",prefix:!1,type:4},fr=function(D,L){return Yt(D)&&D.value==="normal"?1.2*L:D.type===17?L*D.number:ur(D)?Kt(D,L):L},Ur={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(D,L){return L.type===20&&L.value==="none"?null:Gi.parse(D,L)}},mr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(D,L){switch(L){case"inside":return 0;case"outside":default:return 1}}},_i={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(D,L){switch(L){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},po=function(D){return{name:"margin-"+D,initialValue:"0",prefix:!1,type:4}},go=po("top"),Ol=po("right"),Ul=po("bottom"),Dl=po("left"),ta={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(D,L){return L.filter(Yt).map(function(P){switch(P.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},uA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(D,L){switch(L){case"break-word":return"break-word";case"normal":default:return"normal"}}},Xi=function(D){return{name:"padding-"+D,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ml=Xi("top"),ra=Xi("right"),na=Xi("bottom"),cA=Xi("left"),fA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(D,L){switch(L){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ia={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(D,L){switch(L){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},hA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(D,L){return L.length===1&&hn(L[0],"none")?[]:dn(L).map(function(P){for(var R={color:gn.TRANSPARENT,offsetX:_r,offsetY:_r,blur:_r},ae=0,ye=0;ye<P.length;ye++){var _e=P[ye];Nr(_e)?(ae===0?R.offsetX=_e:ae===1?R.offsetY=_e:R.blur=_e,ae++):R.color=rn.parse(D,_e)}return R})}},Ss={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(D,L){switch(L){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Rl={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(D,L){if(L.type===20&&L.value==="none")return null;if(L.type===18){var P=dA[L.name];if(typeof P=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+L.name+'"');return P(L.values)}return null}},vo=function(D){var L=D.filter(function(P){return P.type===17}).map(function(P){return P.number});return L.length===6?L:null},Xr=function(D){var L=D.filter(function(Ee){return Ee.type===17}).map(function(Ee){return Ee.number}),P=L[0],R=L[1];L[2],L[3];var ae=L[4],ye=L[5];L[6],L[7],L[8],L[9],L[10],L[11];var _e=L[12],Te=L[13];return L[14],L[15],L.length===16?[P,R,ae,ye,_e,Te]:null},dA={matrix:vo,matrix3d:Xr},pA={type:16,number:50,flags:$t},gA=[pA,pA],Yr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(D,L){var P=L.filter(ur);return P.length!==2?gA:[P[0],P[1]]}},Pt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(D,L){switch(L){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},jr;(function(D){D.NORMAL="normal",D.BREAK_ALL="break-all",D.KEEP_ALL="keep-all"})(jr||(jr={}));for(var ti={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(D,L){switch(L){case"break-all":return jr.BREAK_ALL;case"keep-all":return jr.KEEP_ALL;case"normal":default:return jr.NORMAL}}},ri={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(D,L){if(L.type===20)return{auto:!0,order:0};if(pi(L))return{auto:!1,order:L.number};throw new Error("Invalid z-index number parsed")}},sa={name:"time",parse:function(D,L){if(L.type===15)switch(L.unit.toLowerCase()){case"s":return 1e3*L.number;case"ms":return L.number}throw new Error("Unsupported time type")}},oa={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(D,L){return pi(L)?L.number:1}},vA={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jl={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(D,L){return L.filter(Yt).map(function(P){switch(P.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(P){return P!==0})}},aa={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(D,L){var P=[],R=[];return L.forEach(function(ae){switch(ae.type){case 20:case 0:P.push(ae.value);break;case 17:P.push(ae.number.toString());break;case 4:R.push(P.join(" ")),P.length=0;break}}),P.length&&R.push(P.join(" ")),R.map(function(ae){return ae.indexOf(" ")===-1?ae:"'"+ae+"'"})}},xs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},mA={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(D,L){if(pi(L))return L.number;if(Yt(L))switch(L.value){case"bold":return 700;case"normal":default:return 400}return 400}},Aa={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(D,L){return L.filter(Yt).map(function(P){return P.value})}},ni={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(D,L){switch(L){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},hr=function(D,L){return(D&L)!==0},yA={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(D,L){if(L.length===0)return[];var P=L[0];return P.type===20&&P.value==="none"?[]:L}},Ql={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(D,L){if(L.length===0)return null;var P=L[0];if(P.type===20&&P.value==="none")return null;for(var R=[],ae=L.filter(vs),ye=0;ye<ae.length;ye++){var _e=ae[ye],Te=ae[ye+1];if(_e.type===20){var Ee=Te&&pi(Te)?Te.number:1;R.push({counter:_e.value,increment:Ee})}}return R}},mo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(D,L){if(L.length===0)return[];for(var P=[],R=L.filter(vs),ae=0;ae<R.length;ae++){var ye=R[ae],_e=R[ae+1];if(Yt(ye)&&ye.value!=="none"){var Te=_e&&pi(_e)?_e.number:0;P.push({counter:ye.value,reset:Te})}}return P}},la={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(D,L){return L.filter(Hi).map(function(P){return sa.parse(D,P)})}},bA={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(D,L){if(L.length===0)return null;var P=L[0];if(P.type===20&&P.value==="none")return null;var R=[],ae=L.filter(gs);if(ae.length%2!==0)return null;for(var ye=0;ye<ae.length;ye+=2){var _e=ae[ye].value,Te=ae[ye+1].value;R.push({open:_e,close:Te})}return R}},wA=function(D,L,P){if(!D)return"";var R=D[Math.min(L,D.length-1)];return R?P?R.open:R.close:""},CA={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(D,L){return L.length===1&&hn(L[0],"none")?[]:dn(L).map(function(P){for(var R={color:255,offsetX:_r,offsetY:_r,blur:_r,spread:_r,inset:!1},ae=0,ye=0;ye<P.length;ye++){var _e=P[ye];hn(_e,"inset")?R.inset=!0:Nr(_e)?(ae===0?R.offsetX=_e:ae===1?R.offsetY=_e:ae===2?R.blur=_e:R.spread=_e,ae++):R.color=rn.parse(D,_e)}return R})}},Pl={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(D,L){var P=[0,1,2],R=[];return L.filter(Yt).forEach(function(ae){switch(ae.value){case"stroke":R.push(1);break;case"fill":R.push(0);break;case"markers":R.push(2);break}}),P.forEach(function(ae){R.indexOf(ae)===-1&&R.push(ae)}),R}},Hl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(D,L){return Hi(L)?L.number:0}},BA=function(){function D(L,P){var R,ae;this.animationDuration=ft(L,la,P.animationDuration),this.backgroundClip=ft(L,Ja,P.backgroundClip),this.backgroundColor=ft(L,Za,P.backgroundColor),this.backgroundImage=ft(L,iA,P.backgroundImage),this.backgroundOrigin=ft(L,sA,P.backgroundOrigin),this.backgroundPosition=ft(L,$o,P.backgroundPosition),this.backgroundRepeat=ft(L,zi,P.backgroundRepeat),this.backgroundSize=ft(L,uo,P.backgroundSize),this.borderTopColor=ft(L,Sl,P.borderTopColor),this.borderRightColor=ft(L,qo,P.borderRightColor),this.borderBottomColor=ft(L,ea,P.borderBottomColor),this.borderLeftColor=ft(L,Vi,P.borderLeftColor),this.borderTopLeftRadius=ft(L,xl,P.borderTopLeftRadius),this.borderTopRightRadius=ft(L,fo,P.borderTopRightRadius),this.borderBottomRightRadius=ft(L,oA,P.borderBottomRightRadius),this.borderBottomLeftRadius=ft(L,ws,P.borderBottomLeftRadius),this.borderTopStyle=ft(L,bi,P.borderTopStyle),this.borderRightStyle=ft(L,Bs,P.borderRightStyle),this.borderBottomStyle=ft(L,wi,P.borderBottomStyle),this.borderLeftStyle=ft(L,_s,P.borderLeftStyle),this.borderTopWidth=ft(L,aA,P.borderTopWidth),this.borderRightWidth=ft(L,AA,P.borderRightWidth),this.borderBottomWidth=ft(L,lA,P.borderBottomWidth),this.borderLeftWidth=ft(L,El,P.borderLeftWidth),this.boxShadow=ft(L,CA,P.boxShadow),this.color=ft(L,Ci,P.color),this.direction=ft(L,Bi,P.direction),this.display=ft(L,Tl,P.display),this.float=ft(L,kl,P.cssFloat),this.fontFamily=ft(L,aa,P.fontFamily),this.fontSize=ft(L,xs,P.fontSize),this.fontStyle=ft(L,ni,P.fontStyle),this.fontVariant=ft(L,Aa,P.fontVariant),this.fontWeight=ft(L,mA,P.fontWeight),this.letterSpacing=ft(L,Il,P.letterSpacing),this.lineBreak=ft(L,Ll,P.lineBreak),this.lineHeight=ft(L,Wr,P.lineHeight),this.listStyleImage=ft(L,Ur,P.listStyleImage),this.listStylePosition=ft(L,mr,P.listStylePosition),this.listStyleType=ft(L,_i,P.listStyleType),this.marginTop=ft(L,go,P.marginTop),this.marginRight=ft(L,Ol,P.marginRight),this.marginBottom=ft(L,Ul,P.marginBottom),this.marginLeft=ft(L,Dl,P.marginLeft),this.opacity=ft(L,oa,P.opacity);var ye=ft(L,ta,P.overflow);this.overflowX=ye[0],this.overflowY=ye[ye.length>1?1:0],this.overflowWrap=ft(L,uA,P.overflowWrap),this.paddingTop=ft(L,Ml,P.paddingTop),this.paddingRight=ft(L,ra,P.paddingRight),this.paddingBottom=ft(L,na,P.paddingBottom),this.paddingLeft=ft(L,cA,P.paddingLeft),this.paintOrder=ft(L,Pl,P.paintOrder),this.position=ft(L,ia,P.position),this.textAlign=ft(L,fA,P.textAlign),this.textDecorationColor=ft(L,vA,(R=P.textDecorationColor)!==null&&R!==void 0?R:P.color),this.textDecorationLine=ft(L,jl,(ae=P.textDecorationLine)!==null&&ae!==void 0?ae:P.textDecoration),this.textShadow=ft(L,hA,P.textShadow),this.textTransform=ft(L,Ss,P.textTransform),this.transform=ft(L,Rl,P.transform),this.transformOrigin=ft(L,Yr,P.transformOrigin),this.visibility=ft(L,Pt,P.visibility),this.webkitTextStrokeColor=ft(L,Hl,P.webkitTextStrokeColor),this.webkitTextStrokeWidth=ft(L,yo,P.webkitTextStrokeWidth),this.wordBreak=ft(L,ti,P.wordBreak),this.zIndex=ft(L,ri,P.zIndex)}return D.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},D.prototype.isTransparent=function(){return On(this.backgroundColor)},D.prototype.isTransformed=function(){return this.transform!==null},D.prototype.isPositioned=function(){return this.position!==0},D.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},D.prototype.isFloating=function(){return this.float!==0},D.prototype.isInlineLevel=function(){return hr(this.display,4)||hr(this.display,33554432)||hr(this.display,268435456)||hr(this.display,536870912)||hr(this.display,67108864)||hr(this.display,134217728)},D}(),Nl=function(){function D(L,P){this.content=ft(L,yA,P.content),this.quotes=ft(L,bA,P.quotes)}return D}(),_A=function(){function D(L,P){this.counterIncrement=ft(L,Ql,P.counterIncrement),this.counterReset=ft(L,mo,P.counterReset)}return D}(),ft=function(D,L,P){var R=new Ka,ae=P!==null&&typeof P!="undefined"?P.toString():L.initialValue;R.write(ae);var ye=new Ga(R.read());switch(L.type){case 2:var _e=ye.parseComponentValue();return L.parse(D,Yt(_e)?_e.value:L.initialValue);case 0:return L.parse(D,ye.parseComponentValue());case 1:return L.parse(D,ye.parseComponentValues());case 4:return ye.parseComponentValue();case 3:switch(L.format){case"angle":return oo.parse(D,ye.parseComponentValue());case"color":return rn.parse(D,ye.parseComponentValue());case"image":return Gi.parse(D,ye.parseComponentValue());case"length":var Te=ye.parseComponentValue();return Nr(Te)?Te:_r;case"length-percentage":var Ee=ye.parseComponentValue();return ur(Ee)?Ee:_r;case"time":return sa.parse(D,ye.parseComponentValue())}break}},Yi="data-html2canvas-debug",ua=function(D){var L=D.getAttribute(Yi);switch(L){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ji=function(D,L){var P=ua(D);return P===1||L===P},vn=function(){function D(L,P){if(this.context=L,this.textNodes=[],this.elements=[],this.flags=0,Ji(P,3))debugger;this.styles=new BA(L,window.getComputedStyle(P,null)),Oo(P)&&(this.styles.animationDuration.some(function(R){return R>0})&&(P.style.animationDuration="0s"),this.styles.transform!==null&&(P.style.transform="none")),this.bounds=a(this.context,P),Ji(P,4)&&(this.flags|=16)}return D}(),ca="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Es=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ts=0;Ts<fa.length;Ts++)Es[fa.charCodeAt(Ts)]=Ts;for(var Fr=function(D){var L=D.length*.75,P=D.length,R,ae=0,ye,_e,Te,Ee;D[D.length-1]==="="&&(L--,D[D.length-2]==="="&&L--);var De=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(L):new Array(L),je=Array.isArray(De)?De:new Uint8Array(De);for(R=0;R<P;R+=4)ye=Es[D.charCodeAt(R)],_e=Es[D.charCodeAt(R+1)],Te=Es[D.charCodeAt(R+2)],Ee=Es[D.charCodeAt(R+3)],je[ae++]=ye<<2|_e>>4,je[ae++]=(_e&15)<<4|Te>>2,je[ae++]=(Te&3)<<6|Ee&63;return De},bo=function(D){for(var L=D.length,P=[],R=0;R<L;R+=2)P.push(D[R+1]<<8|D[R]);return P},SA=function(D){for(var L=D.length,P=[],R=0;R<L;R+=4)P.push(D[R+3]<<24|D[R+2]<<16|D[R+1]<<8|D[R]);return P},ii=5,wo=11,si=2,Co=wo-ii,ha=65536>>ii,xA=1<<ii,Bo=xA-1,Zi=1024>>ii,EA=ha+Zi,_o=EA,TA=32,Fs=_o+TA,Wl=65536>>wo,$i=1<<Co,FA=$i-1,da=function(D,L,P){return D.slice?D.slice(L,P):new Uint16Array(Array.prototype.slice.call(D,L,P))},kA=function(D,L,P){return D.slice?D.slice(L,P):new Uint32Array(Array.prototype.slice.call(D,L,P))},ks=function(D,L){var P=Fr(D),R=Array.isArray(P)?SA(P):new Uint32Array(P),ae=Array.isArray(P)?bo(P):new Uint16Array(P),ye=24,_e=da(ae,ye/2,R[4]/2),Te=R[5]===2?da(ae,(ye+R[4])/2):kA(R,Math.ceil((ye+R[4])/4));return new Is(R[0],R[1],R[2],R[3],_e,Te)},Is=function(){function D(L,P,R,ae,ye,_e){this.initialValue=L,this.errorValue=P,this.highStart=R,this.highValueIndex=ae,this.index=ye,this.data=_e}return D.prototype.get=function(L){var P;if(L>=0){if(L<55296||L>56319&&L<=65535)return P=this.index[L>>ii],P=(P<<si)+(L&Bo),this.data[P];if(L<=65535)return P=this.index[ha+(L-55296>>ii)],P=(P<<si)+(L&Bo),this.data[P];if(L<this.highStart)return P=Fs-Wl+(L>>wo),P=this.index[P],P+=L>>ii&FA,P=this.index[P],P=(P<<si)+(L&Bo),this.data[P];if(L<=1114111)return this.data[this.highValueIndex]}return this.errorValue},D}(),qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ls=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Os=0;Os<qi.length;Os++)Ls[qi.charCodeAt(Os)]=Os;var Kl=1,So=2,Cn=3,Si=4,es=5,Gl=7,pa=8,ga=9,va=10,IA=11,Dr=12,ma=13,LA=14,ya=15,zl=function(D){for(var L=[],P=0,R=D.length;P<R;){var ae=D.charCodeAt(P++);if(ae>=55296&&ae<=56319&&P<R){var ye=D.charCodeAt(P++);(ye&64512)===56320?L.push(((ae&1023)<<10)+(ye&1023)+65536):(L.push(ae),P--)}else L.push(ae)}return L},OA=function(){for(var D=[],L=0;L<arguments.length;L++)D[L]=arguments[L];if(String.fromCodePoint)return String.fromCodePoint.apply(String,D);var P=D.length;if(!P)return"";for(var R=[],ae=-1,ye="";++ae<P;){var _e=D[ae];_e<=65535?R.push(_e):(_e-=65536,R.push((_e>>10)+55296,_e%1024+56320)),(ae+1===P||R.length>16384)&&(ye+=String.fromCharCode.apply(String,R),R.length=0)}return ye},UA=ks(ca),Jr="\xD7",ba="\xF7",Vl=function(D){return UA.get(D)},Xl=function(D,L,P){var R=P-2,ae=L[R],ye=L[P-1],_e=L[P];if(ye===So&&_e===Cn)return Jr;if(ye===So||ye===Cn||ye===Si||_e===So||_e===Cn||_e===Si)return ba;if(ye===pa&&[pa,ga,IA,Dr].indexOf(_e)!==-1||(ye===IA||ye===ga)&&(_e===ga||_e===va)||(ye===Dr||ye===va)&&_e===va||_e===ma||_e===es||_e===Gl||ye===Kl)return Jr;if(ye===ma&&_e===LA){for(;ae===es;)ae=L[--R];if(ae===LA)return Jr}if(ye===ya&&_e===ya){for(var Te=0;ae===ya;)Te++,ae=L[--R];if(Te%2===0)return Jr}return ba},oi=function(D){var L=zl(D),P=L.length,R=0,ae=0,ye=L.map(Vl);return{next:function(){if(R>=P)return{done:!0,value:null};for(var _e=Jr;R<P&&(_e=Xl(L,ye,++R))===Jr;);if(_e!==Jr||R===P){var Te=OA.apply(null,L.slice(ae,R));return ae=R,{value:Te,done:!1}}return{done:!0,value:null}}}},Us=function(D){for(var L=oi(D),P=[],R;!(R=L.next()).done;)R.value&&P.push(R.value.slice());return P},xo=function(D){var L=123;if(D.createRange){var P=D.createRange();if(P.getBoundingClientRect){var R=D.createElement("boundtest");R.style.height=L+"px",R.style.display="block",D.body.appendChild(R),P.selectNode(R);var ae=P.getBoundingClientRect(),ye=Math.round(ae.height);if(D.body.removeChild(R),ye===L)return!0}}return!1},Ds=function(D){var L=D.createElement("boundtest");L.style.width="50px",L.style.display="block",L.style.fontSize="12px",L.style.letterSpacing="0px",L.style.wordSpacing="0px",D.body.appendChild(L);var P=D.createRange();L.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var R=L.firstChild,ae=A(R.data).map(function(Ee){return c(Ee)}),ye=0,_e={},Te=ae.every(function(Ee,De){P.setStart(R,ye),P.setEnd(R,ye+Ee.length);var je=P.getBoundingClientRect();ye+=Ee.length;var We=je.x>_e.x||je.y>_e.y;return _e=je,De===0?!0:We});return D.body.removeChild(L),Te},Rn=function(){return typeof new Image().crossOrigin!="undefined"},Yl=function(){return typeof new XMLHttpRequest().responseType=="string"},Jl=function(D){var L=new Image,P=D.createElement("canvas"),R=P.getContext("2d");if(!R)return!1;L.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{R.drawImage(L,0,0),P.toDataURL()}catch(ae){return!1}return!0},xi=function(D){return D[0]===0&&D[1]===255&&D[2]===0&&D[3]===255},DA=function(D){var L=D.createElement("canvas"),P=100;L.width=P,L.height=P;var R=L.getContext("2d");if(!R)return Promise.reject(!1);R.fillStyle="rgb(0, 255, 0)",R.fillRect(0,0,P,P);var ae=new Image,ye=L.toDataURL();ae.src=ye;var _e=Eo(P,P,0,0,ae);return R.fillStyle="red",R.fillRect(0,0,P,P),wa(_e).then(function(Te){R.drawImage(Te,0,0);var Ee=R.getImageData(0,0,P,P).data;R.fillStyle="red",R.fillRect(0,0,P,P);var De=D.createElement("div");return De.style.backgroundImage="url("+ye+")",De.style.height=P+"px",xi(Ee)?wa(Eo(P,P,0,0,De)):Promise.reject(!1)}).then(function(Te){return R.drawImage(Te,0,0),xi(R.getImageData(0,0,P,P).data)}).catch(function(){return!1})},Eo=function(D,L,P,R,ae){var ye="http://www.w3.org/2000/svg",_e=document.createElementNS(ye,"svg"),Te=document.createElementNS(ye,"foreignObject");return _e.setAttributeNS(null,"width",D.toString()),_e.setAttributeNS(null,"height",L.toString()),Te.setAttributeNS(null,"width","100%"),Te.setAttributeNS(null,"height","100%"),Te.setAttributeNS(null,"x",P.toString()),Te.setAttributeNS(null,"y",R.toString()),Te.setAttributeNS(null,"externalResourcesRequired","true"),_e.appendChild(Te),Te.appendChild(ae),_e},wa=function(D){return new Promise(function(L,P){var R=new Image;R.onload=function(){return L(R)},R.onerror=P,R.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(D))})},dr={get SUPPORT_RANGE_BOUNDS(){var D=xo(document);return Object.defineProperty(dr,"SUPPORT_RANGE_BOUNDS",{value:D}),D},get SUPPORT_WORD_BREAKING(){var D=dr.SUPPORT_RANGE_BOUNDS&&Ds(document);return Object.defineProperty(dr,"SUPPORT_WORD_BREAKING",{value:D}),D},get SUPPORT_SVG_DRAWING(){var D=Jl(document);return Object.defineProperty(dr,"SUPPORT_SVG_DRAWING",{value:D}),D},get SUPPORT_FOREIGNOBJECT_DRAWING(){var D=typeof Array.from=="function"&&typeof window.fetch=="function"?DA(document):Promise.resolve(!1);return Object.defineProperty(dr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:D}),D},get SUPPORT_CORS_IMAGES(){var D=Rn();return Object.defineProperty(dr,"SUPPORT_CORS_IMAGES",{value:D}),D},get SUPPORT_RESPONSE_TYPE(){var D=Yl();return Object.defineProperty(dr,"SUPPORT_RESPONSE_TYPE",{value:D}),D},get SUPPORT_CORS_XHR(){var D="withCredentials"in new XMLHttpRequest;return Object.defineProperty(dr,"SUPPORT_CORS_XHR",{value:D}),D},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var D=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(dr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:D}),D}},Bn=function(){function D(L,P){this.text=L,this.bounds=P}return D}(),Ca=function(D,L,P,R){var ae=MA(L,P),ye=[],_e=0;return ae.forEach(function(Te){if(P.textDecorationLine.length||Te.trim().length>0)if(dr.SUPPORT_RANGE_BOUNDS){var Ee=To(R,_e,Te.length).getClientRects();if(Ee.length>1){var De=_a(Te),je=0;De.forEach(function(Je){ye.push(new Bn(Je,b.fromDOMRectList(D,To(R,je+_e,Je.length).getClientRects()))),je+=Je.length})}else ye.push(new Bn(Te,b.fromDOMRectList(D,Ee)))}else{var We=R.splitText(Te.length);ye.push(new Bn(Te,Ba(D,R))),R=We}else dr.SUPPORT_RANGE_BOUNDS||(R=R.splitText(Te.length));_e+=Te.length}),ye},Ba=function(D,L){var P=L.ownerDocument;if(P){var R=P.createElement("html2canvaswrapper");R.appendChild(L.cloneNode(!0));var ae=L.parentNode;if(ae){ae.replaceChild(R,L);var ye=a(D,R);return R.firstChild&&ae.replaceChild(R.firstChild,R),ye}}return b.EMPTY},To=function(D,L,P){var R=D.ownerDocument;if(!R)throw new Error("Node has no owner document");var ae=R.createRange();return ae.setStart(D,L),ae.setEnd(D,L+P),ae},_a=function(D){if(dr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var L=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(L.segment(D)).map(function(P){return P.segment})}return Us(D)},Ms=function(D,L){if(dr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var P=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(P.segment(D)).map(function(R){return R.segment})}return RA(D,L)},MA=function(D,L){return L.letterSpacing!==0?_a(D):Ms(D,L)},Zl=[32,160,4961,65792,65793,4153,4241],RA=function(D,L){for(var P=pt(D,{lineBreak:L.lineBreak,wordBreak:L.overflowWrap==="break-word"?"break-word":L.wordBreak}),R=[],ae,ye=function(){if(ae.value){var _e=ae.value.slice(),Te=A(_e),Ee="";Te.forEach(function(De){Zl.indexOf(De)===-1?Ee+=c(De):(Ee.length&&R.push(Ee),R.push(c(De)),Ee="")}),Ee.length&&R.push(Ee)}};!(ae=P.next()).done;)ye();return R},Fo=function(){function D(L,P,R){this.text=$l(P.data,R.textTransform),this.textBounds=Ca(L,this.text,R,P)}return D}(),$l=function(D,L){switch(L){case 1:return D.toLowerCase();case 3:return D.replace(ql,Rs);case 2:return D.toUpperCase();default:return D}},ql=/(^|\s|:|-|\(|\))([a-z])/g,Rs=function(D,L,P){return D.length>0?L+P.toUpperCase():D},Sa=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.src=R.currentSrc||R.src,ae.intrinsicWidth=R.naturalWidth,ae.intrinsicHeight=R.naturalHeight,ae.context.cache.addImage(ae.src),ae}return L}(vn),xa=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.canvas=R,ae.intrinsicWidth=R.width,ae.intrinsicHeight=R.height,ae}return L}(vn),jA=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this,ye=new XMLSerializer,_e=a(P,R);return R.setAttribute("width",_e.width+"px"),R.setAttribute("height",_e.height+"px"),ae.svg="data:image/svg+xml,"+encodeURIComponent(ye.serializeToString(R)),ae.intrinsicWidth=R.width.baseVal.value,ae.intrinsicHeight=R.height.baseVal.value,ae.context.cache.addImage(ae.svg),ae}return L}(vn),ko=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.value=R.value,ae}return L}(vn),Io=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.start=R.start,ae.reversed=typeof R.reversed=="boolean"&&R.reversed===!0,ae}return L}(vn),eu=[{type:15,flags:0,unit:"px",number:3}],QA=[{type:16,flags:0,number:50}],PA=function(D){return D.width>D.height?new b(D.left+(D.width-D.height)/2,D.top,D.height,D.height):D.width<D.height?new b(D.left,D.top+(D.height-D.width)/2,D.width,D.width):D},tu=function(D){var L=D.type===js?new Array(D.value.length+1).join("\u2022"):D.value;return L.length===0?D.placeholder||"":L},ts="checkbox",ai="radio",js="password",HA=707406591,Lo=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;switch(ae.type=R.type.toLowerCase(),ae.checked=R.checked,ae.value=tu(R),(ae.type===ts||ae.type===ai)&&(ae.styles.backgroundColor=3739148031,ae.styles.borderTopColor=ae.styles.borderRightColor=ae.styles.borderBottomColor=ae.styles.borderLeftColor=2779096575,ae.styles.borderTopWidth=ae.styles.borderRightWidth=ae.styles.borderBottomWidth=ae.styles.borderLeftWidth=1,ae.styles.borderTopStyle=ae.styles.borderRightStyle=ae.styles.borderBottomStyle=ae.styles.borderLeftStyle=1,ae.styles.backgroundClip=[0],ae.styles.backgroundOrigin=[0],ae.bounds=PA(ae.bounds)),ae.type){case ts:ae.styles.borderTopRightRadius=ae.styles.borderTopLeftRadius=ae.styles.borderBottomRightRadius=ae.styles.borderBottomLeftRadius=eu;break;case ai:ae.styles.borderTopRightRadius=ae.styles.borderTopLeftRadius=ae.styles.borderBottomRightRadius=ae.styles.borderBottomLeftRadius=QA;break}return ae}return L}(vn),NA=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this,ye=R.options[R.selectedIndex||0];return ae.value=ye&&ye.text||"",ae}return L}(vn),WA=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.value=R.value,ae}return L}(vn),KA=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;ae.src=R.src,ae.width=parseInt(R.width,10)||0,ae.height=parseInt(R.height,10)||0,ae.backgroundColor=ae.styles.backgroundColor;try{if(R.contentWindow&&R.contentWindow.document&&R.contentWindow.document.documentElement){ae.tree=zA(P,R.contentWindow.document.documentElement);var ye=R.contentWindow.document.documentElement?vi(P,getComputedStyle(R.contentWindow.document.documentElement).backgroundColor):gn.TRANSPARENT,_e=R.contentWindow.document.body?vi(P,getComputedStyle(R.contentWindow.document.body).backgroundColor):gn.TRANSPARENT;ae.backgroundColor=On(ye)?On(_e)?ae.styles.backgroundColor:_e:ye}}catch(Te){}return ae}return L}(vn),ru=["OL","UL","MENU"],Qs=function(D,L,P,R){for(var ae=L.firstChild,ye=void 0;ae;ae=ye)if(ye=ae.nextSibling,Ta(ae)&&ae.data.trim().length>0)P.textNodes.push(new Fo(D,ae,P.styles));else if(rs(ae))if(ka(ae)&&ae.assignedNodes)ae.assignedNodes().forEach(function(Te){return Qs(D,Te,P,R)});else{var _e=GA(D,ae);_e.styles.isVisible()&&(VA(ae,_e,R)?_e.flags|=4:Ea(_e.styles)&&(_e.flags|=2),ru.indexOf(ae.tagName)!==-1&&(_e.flags|=8),P.elements.push(_e),ae.slot,ae.shadowRoot?Qs(D,ae.shadowRoot,_e,R):!Hs(ae)&&!YA(ae)&&!Ns(ae)&&Qs(D,ae,_e,R))}},GA=function(D,L){return Ei(L)?new Sa(D,L):JA(L)?new xa(D,L):YA(L)?new jA(D,L):XA(L)?new ko(D,L):Uo(L)?new Io(D,L):nu(L)?new Lo(D,L):Ns(L)?new NA(D,L):Hs(L)?new WA(D,L):sn(L)?new KA(D,L):new vn(D,L)},zA=function(D,L){var P=GA(D,L);return P.flags|=4,Qs(D,L,P,P),P},VA=function(D,L,P){return L.styles.isPositionedWithZIndex()||L.styles.opacity<1||L.styles.isTransformed()||Zt(D)&&P.styles.isTransparent()},Ea=function(D){return D.isPositioned()||D.isFloating()},Ta=function(D){return D.nodeType===Node.TEXT_NODE},rs=function(D){return D.nodeType===Node.ELEMENT_NODE},Oo=function(D){return rs(D)&&typeof D.style!="undefined"&&!jn(D)},jn=function(D){return typeof D.className=="object"},XA=function(D){return D.tagName==="LI"},Uo=function(D){return D.tagName==="OL"},nu=function(D){return D.tagName==="INPUT"},iu=function(D){return D.tagName==="HTML"},YA=function(D){return D.tagName==="svg"},Zt=function(D){return D.tagName==="BODY"},JA=function(D){return D.tagName==="CANVAS"},Do=function(D){return D.tagName==="VIDEO"},Ei=function(D){return D.tagName==="IMG"},sn=function(D){return D.tagName==="IFRAME"},Ps=function(D){return D.tagName==="STYLE"},Fa=function(D){return D.tagName==="SCRIPT"},Hs=function(D){return D.tagName==="TEXTAREA"},Ns=function(D){return D.tagName==="SELECT"},ka=function(D){return D.tagName==="SLOT"},Ia=function(D){return D.tagName.indexOf("-")>0},ZA=function(){function D(){this.counters={}}return D.prototype.getCounterValue=function(L){var P=this.counters[L];return P&&P.length?P[P.length-1]:1},D.prototype.getCounterValues=function(L){var P=this.counters[L];return P||[]},D.prototype.pop=function(L){var P=this;L.forEach(function(R){return P.counters[R].pop()})},D.prototype.parse=function(L){var P=this,R=L.counterIncrement,ae=L.counterReset,ye=!0;R!==null&&R.forEach(function(Te){var Ee=P.counters[Te.counter];Ee&&Te.increment!==0&&(ye=!1,Ee.length||Ee.push(1),Ee[Math.max(0,Ee.length-1)]+=Te.increment)});var _e=[];return ye&&ae.forEach(function(Te){var Ee=P.counters[Te.counter];_e.push(Te.counter),Ee||(Ee=P.counters[Te.counter]=[]),Ee.push(Te.reset)}),_e},D}(),$A={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Mo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},qA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Gt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Ti=function(D,L,P,R,ae,ye){return D<L||D>P?w(D,ae,ye.length>0):R.integers.reduce(function(_e,Te,Ee){for(;D>=Te;)D-=Te,_e+=R.values[Ee];return _e},"")+ye},el=function(D,L,P,R){var ae="";do P||D--,ae=R(D)+ae,D/=L;while(D*L>=L);return ae},qt=function(D,L,P,R,ae){var ye=P-L+1;return(D<0?"-":"")+(el(Math.abs(D),ye,R,function(_e){return c(Math.floor(_e%ye)+L)})+ae)},Fi=function(D,L,P){P===void 0&&(P=". ");var R=L.length;return el(Math.abs(D),R,!1,function(ae){return L[Math.floor(ae%R)]})+P},Qn=1,Ai=2,Vt=4,Ws=8,Pn=function(D,L,P,R,ae,ye){if(D<-9999||D>9999)return w(D,4,ae.length>0);var _e=Math.abs(D),Te=ae;if(_e===0)return L[0]+Te;for(var Ee=0;_e>0&&Ee<=4;Ee++){var De=_e%10;De===0&&hr(ye,Qn)&&Te!==""?Te=L[De]+Te:De>1||De===1&&Ee===0||De===1&&Ee===1&&hr(ye,Ai)||De===1&&Ee===1&&hr(ye,Vt)&&D>100||De===1&&Ee>1&&hr(ye,Ws)?Te=L[De]+(Ee>0?P[Ee-1]:"")+Te:De===1&&Ee>0&&(Te=P[Ee-1]+Te),_e=Math.floor(_e/10)}return(D<0?R:"")+Te},tl="\u5341\u767E\u5343\u842C",Ks="\u62FE\u4F70\u4EDF\u842C",e="\u30DE\u30A4\u30CA\u30B9",i="\uB9C8\uC774\uB108\uC2A4",w=function(D,L,P){var R=P?". ":"",ae=P?"\u3001":"",ye=P?", ":"",_e=P?" ":"";switch(L){case 0:return"\u2022"+_e;case 1:return"\u25E6"+_e;case 2:return"\u25FE"+_e;case 5:var Te=qt(D,48,57,!0,R);return Te.length<4?"0"+Te:Te;case 4:return Fi(D,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ae);case 6:return Ti(D,1,3999,$A,3,R).toLowerCase();case 7:return Ti(D,1,3999,$A,3,R);case 8:return qt(D,945,969,!1,R);case 9:return qt(D,97,122,!1,R);case 10:return qt(D,65,90,!1,R);case 11:return qt(D,1632,1641,!0,R);case 12:case 49:return Ti(D,1,9999,Mo,3,R);case 35:return Ti(D,1,9999,Mo,3,R).toLowerCase();case 13:return qt(D,2534,2543,!0,R);case 14:case 30:return qt(D,6112,6121,!0,R);case 15:return Fi(D,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",ae);case 16:return Fi(D,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",ae);case 17:case 48:return Pn(D,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",tl,"\u8CA0",ae,Ai|Vt|Ws);case 47:return Pn(D,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Ks,"\u8CA0",ae,Qn|Ai|Vt|Ws);case 42:return Pn(D,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",tl,"\u8D1F",ae,Ai|Vt|Ws);case 41:return Pn(D,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Ks,"\u8D1F",ae,Qn|Ai|Vt|Ws);case 26:return Pn(D,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",e,ae,0);case 25:return Pn(D,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",e,ae,Qn|Ai|Vt);case 31:return Pn(D,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",i,ye,Qn|Ai|Vt);case 33:return Pn(D,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",i,ye,0);case 32:return Pn(D,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",i,ye,Qn|Ai|Vt);case 18:return qt(D,2406,2415,!0,R);case 20:return Ti(D,1,19999,Gt,3,R);case 21:return qt(D,2790,2799,!0,R);case 22:return qt(D,2662,2671,!0,R);case 22:return Ti(D,1,10999,qA,3,R);case 23:return Fi(D,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Fi(D,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return qt(D,3302,3311,!0,R);case 28:return Fi(D,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",ae);case 29:return Fi(D,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",ae);case 34:return qt(D,3792,3801,!0,R);case 37:return qt(D,6160,6169,!0,R);case 38:return qt(D,4160,4169,!0,R);case 39:return qt(D,2918,2927,!0,R);case 40:return qt(D,1776,1785,!0,R);case 43:return qt(D,3046,3055,!0,R);case 44:return qt(D,3174,3183,!0,R);case 45:return qt(D,3664,3673,!0,R);case 46:return qt(D,3872,3881,!0,R);case 3:default:return qt(D,48,57,!0,R)}},y="data-html2canvas-ignore",x=function(){function D(L,P,R){if(this.context=L,this.options=R,this.scrolledElements=[],this.referenceElement=P,this.counters=new ZA,this.quoteDepth=0,!P.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(P.ownerDocument.documentElement,!1)}return D.prototype.toIFrame=function(L,P){var R=this,ae=se(L,P);if(!ae.contentWindow)return Promise.reject("Unable to find iframe window");var ye=L.defaultView.pageXOffset,_e=L.defaultView.pageYOffset,Te=ae.contentWindow,Ee=Te.document,De=we(ae).then(function(){return ie(R,void 0,void 0,function(){var je,We;return t(this,function(Je){switch(Je.label){case 0:return this.scrolledElements.forEach(Ve),Te&&(Te.scrollTo(P.left,P.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Te.scrollY!==P.top||Te.scrollX!==P.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Te.scrollX-P.left,Te.scrollY-P.top,0,0))),je=this.options.onclone,We=this.clonedReferenceElement,typeof We=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Ee.fonts&&Ee.fonts.ready?[4,Ee.fonts.ready]:[3,2];case 1:Je.sent(),Je.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ve(Ee)]:[3,4];case 3:Je.sent(),Je.label=4;case 4:return typeof je=="function"?[2,Promise.resolve().then(function(){return je(Ee,We)}).then(function(){return ae})]:[2,ae]}})})});return Ee.open(),Ee.write(Re(document.doctype)+"<html></html>"),Me(this.referenceElement.ownerDocument,ye,_e),Ee.replaceChild(Ee.adoptNode(this.documentElement),Ee.documentElement),Ee.close(),De},D.prototype.createElementClone=function(L){if(Ji(L,2))debugger;if(JA(L))return this.createCanvasClone(L);if(Do(L))return this.createVideoClone(L);if(Ps(L))return this.createStyleClone(L);var P=L.cloneNode(!1);return Ei(P)&&(Ei(L)&&L.currentSrc&&L.currentSrc!==L.src&&(P.src=L.currentSrc,P.srcset=""),P.loading==="lazy"&&(P.loading="eager")),Ia(P)?this.createCustomElementClone(P):P},D.prototype.createCustomElementClone=function(L){var P=document.createElement("html2canvascustomelement");return Ie(L.style,P),P},D.prototype.createStyleClone=function(L){try{var P=L.sheet;if(P&&P.cssRules){var R=[].slice.call(P.cssRules,0).reduce(function(ye,_e){return _e&&typeof _e.cssText=="string"?ye+_e.cssText:ye},""),ae=L.cloneNode(!1);return ae.textContent=R,ae}}catch(ye){if(this.context.logger.error("Unable to access cssRules property",ye),ye.name!=="SecurityError")throw ye}return L.cloneNode(!1)},D.prototype.createCanvasClone=function(L){var P;if(this.options.inlineImages&&L.ownerDocument){var R=L.ownerDocument.createElement("img");try{return R.src=L.toDataURL(),R}catch(De){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",L)}}var ae=L.cloneNode(!1);try{ae.width=L.width,ae.height=L.height;var ye=L.getContext("2d"),_e=ae.getContext("2d");if(_e)if(!this.options.allowTaint&&ye)_e.putImageData(ye.getImageData(0,0,L.width,L.height),0,0);else{var Te=(P=L.getContext("webgl2"))!==null&&P!==void 0?P:L.getContext("webgl");if(Te){var Ee=Te.getContextAttributes();(Ee==null?void 0:Ee.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",L)}_e.drawImage(L,0,0)}return ae}catch(De){this.context.logger.info("Unable to clone canvas as it is tainted",L)}return ae},D.prototype.createVideoClone=function(L){var P=L.ownerDocument.createElement("canvas");P.width=L.offsetWidth,P.height=L.offsetHeight;var R=P.getContext("2d");try{return R&&(R.drawImage(L,0,0,P.width,P.height),this.options.allowTaint||R.getImageData(0,0,P.width,P.height)),P}catch(ye){this.context.logger.info("Unable to clone video as it is tainted",L)}var ae=L.ownerDocument.createElement("canvas");return ae.width=L.offsetWidth,ae.height=L.offsetHeight,ae},D.prototype.appendChildNode=function(L,P,R){(!rs(P)||!Fa(P)&&!P.hasAttribute(y)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(P)))&&(!this.options.copyStyles||!rs(P)||!Ps(P))&&L.appendChild(this.cloneNode(P,R))},D.prototype.cloneChildNodes=function(L,P,R){for(var ae=this,ye=L.shadowRoot?L.shadowRoot.firstChild:L.firstChild;ye;ye=ye.nextSibling)if(rs(ye)&&ka(ye)&&typeof ye.assignedNodes=="function"){var _e=ye.assignedNodes();_e.length&&_e.forEach(function(Te){return ae.appendChildNode(P,Te,R)})}else this.appendChildNode(P,ye,R)},D.prototype.cloneNode=function(L,P){if(Ta(L))return document.createTextNode(L.data);if(!L.ownerDocument)return L.cloneNode(!1);var R=L.ownerDocument.defaultView;if(R&&rs(L)&&(Oo(L)||jn(L))){var ae=this.createElementClone(L);ae.style.transitionProperty="none";var ye=R.getComputedStyle(L),_e=R.getComputedStyle(L,":before"),Te=R.getComputedStyle(L,":after");this.referenceElement===L&&Oo(ae)&&(this.clonedReferenceElement=ae),Zt(ae)&&ct(ae);var Ee=this.counters.parse(new _A(this.context,ye)),De=this.resolvePseudoContent(L,ae,_e,K.BEFORE);Ia(L)&&(P=!0),Do(L)||this.cloneChildNodes(L,ae,P),De&&ae.insertBefore(De,ae.firstChild);var je=this.resolvePseudoContent(L,ae,Te,K.AFTER);return je&&ae.appendChild(je),this.counters.pop(Ee),(ye&&(this.options.copyStyles||jn(L))&&!sn(L)||P)&&Ie(ye,ae),(L.scrollTop!==0||L.scrollLeft!==0)&&this.scrolledElements.push([ae,L.scrollLeft,L.scrollTop]),(Hs(L)||Ns(L))&&(Hs(ae)||Ns(ae))&&(ae.value=L.value),ae}return L.cloneNode(!1)},D.prototype.resolvePseudoContent=function(L,P,R,ae){var ye=this;if(R){var _e=R.content,Te=P.ownerDocument;if(!(!Te||!_e||_e==="none"||_e==="-moz-alt-content"||R.display==="none")){this.counters.parse(new _A(this.context,R));var Ee=new Nl(this.context,R),De=Te.createElement("html2canvaspseudoelement");Ie(R,De),Ee.content.forEach(function(We){if(We.type===0)De.appendChild(Te.createTextNode(We.value));else if(We.type===22){var Je=Te.createElement("img");Je.src=We.value,Je.style.opacity="1",De.appendChild(Je)}else if(We.type===18){if(We.name==="attr"){var dt=We.values.filter(Yt);dt.length&&De.appendChild(Te.createTextNode(L.getAttribute(dt[0].value)||""))}else if(We.name==="counter"){var At=We.values.filter(Jn),ut=At[0],Lt=At[1];if(ut&&Yt(ut)){var mt=ye.counters.getCounterValue(ut.value),gt=Lt&&Yt(Lt)?_i.parse(ye.context,Lt.value):3;De.appendChild(Te.createTextNode(w(mt,gt,!1)))}}else if(We.name==="counters"){var zt=We.values.filter(Jn),ut=zt[0],Ot=zt[1],Lt=zt[2];if(ut&&Yt(ut)){var Bt=ye.counters.getCounterValues(ut.value),ht=Lt&&Yt(Lt)?_i.parse(ye.context,Lt.value):3,Ht=Ot&&Ot.type===0?Ot.value:"",Nt=Bt.map(function(on){return w(on,ht,!1)}).join(Ht);De.appendChild(Te.createTextNode(Nt))}}}else if(We.type===20)switch(We.value){case"open-quote":De.appendChild(Te.createTextNode(wA(Ee.quotes,ye.quoteDepth++,!0)));break;case"close-quote":De.appendChild(Te.createTextNode(wA(Ee.quotes,--ye.quoteDepth,!1)));break;default:De.appendChild(Te.createTextNode(We.value))}}),De.className=ot+" "+lt;var je=ae===K.BEFORE?" "+ot:" "+lt;return jn(P)?P.className.baseValue+=je:P.className+=je,De}}},D.destroy=function(L){return L.parentNode?(L.parentNode.removeChild(L),!0):!1},D}(),K;(function(D){D[D.BEFORE=0]="BEFORE",D[D.AFTER=1]="AFTER"})(K||(K={}));var se=function(D,L){var P=D.createElement("iframe");return P.className="html2canvas-container",P.style.visibility="hidden",P.style.position="fixed",P.style.left="-10000px",P.style.top="0px",P.style.border="0",P.width=L.width.toString(),P.height=L.height.toString(),P.scrolling="no",P.setAttribute(y,"true"),D.body.appendChild(P),P},de=function(D){return new Promise(function(L){if(D.complete){L();return}if(!D.src){L();return}D.onload=L,D.onerror=L})},ve=function(D){return Promise.all([].slice.call(D.images,0).map(de))},we=function(D){return new Promise(function(L,P){var R=D.contentWindow;if(!R)return P("No window assigned for iframe");var ae=R.document;R.onload=D.onload=function(){R.onload=D.onload=null;var ye=setInterval(function(){ae.body.childNodes.length>0&&ae.readyState==="complete"&&(clearInterval(ye),L(D))},50)}})},Fe=["all","d","content"],Ie=function(D,L){for(var P=D.length-1;P>=0;P--){var R=D.item(P);Fe.indexOf(R)===-1&&L.style.setProperty(R,D.getPropertyValue(R))}return L},Re=function(D){var L="";return D&&(L+="<!DOCTYPE ",D.name&&(L+=D.name),D.internalSubset&&(L+=D.internalSubset),D.publicId&&(L+='"'+D.publicId+'"'),D.systemId&&(L+='"'+D.systemId+'"'),L+=">"),L},Me=function(D,L,P){D&&D.defaultView&&(L!==D.defaultView.pageXOffset||P!==D.defaultView.pageYOffset)&&D.defaultView.scrollTo(L,P)},Ve=function(D){var L=D[0],P=D[1],R=D[2];L.scrollLeft=P,L.scrollTop=R},Ze=":before",tt=":after",ot="___html2canvas___pseudoelement_before",lt="___html2canvas___pseudoelement_after",at=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ct=function(D){yt(D,"."+ot+Ze+at+`
|
|
|
.`+lt+tt+at)},yt=function(D,L){var P=D.ownerDocument;if(P){var R=P.createElement("style");R.textContent=L,D.appendChild(R)}},vt=function(){function D(){}return D.getOrigin=function(L){var P=D._link;return P?(P.href=L,P.href=P.href,P.protocol+P.hostname+P.port):"about:blank"},D.isSameOrigin=function(L){return D.getOrigin(L)===D._origin},D.setContext=function(L){D._link=L.document.createElement("a"),D._origin=D.getOrigin(L.location.href)},D._origin="about:blank",D}(),Ft=function(){function D(L,P){this.context=L,this._options=P,this._cache={}}return D.prototype.addImage=function(L){var P=Promise.resolve();return this.has(L)||(Ir(L)||Kr(L))&&(this._cache[L]=this.loadImage(L)).catch(function(){}),P},D.prototype.match=function(L){return this._cache[L]},D.prototype.loadImage=function(L){return ie(this,void 0,void 0,function(){var P,R,ae,ye,_e=this;return t(this,function(Te){switch(Te.label){case 0:return P=vt.isSameOrigin(L),R=!kr(L)&&this._options.useCORS===!0&&dr.SUPPORT_CORS_IMAGES&&!P,ae=!kr(L)&&!P&&!Ir(L)&&typeof this._options.proxy=="string"&&dr.SUPPORT_CORS_XHR&&!R,!P&&this._options.allowTaint===!1&&!kr(L)&&!Ir(L)&&!ae&&!R?[2]:(ye=L,ae?[4,this.proxy(ye)]:[3,2]);case 1:ye=Te.sent(),Te.label=2;case 2:return this.context.logger.debug("Added image "+L.substring(0,256)),[4,new Promise(function(Ee,De){var je=new Image;je.onload=function(){return Ee(je)},je.onerror=De,(cr(ye)||R)&&(je.crossOrigin="anonymous"),je.src=ye,je.complete===!0&&setTimeout(function(){return Ee(je)},500),_e._options.imageTimeout>0&&setTimeout(function(){return De("Timed out ("+_e._options.imageTimeout+"ms) loading image")},_e._options.imageTimeout)})];case 3:return[2,Te.sent()]}})})},D.prototype.has=function(L){return typeof this._cache[L]!="undefined"},D.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},D.prototype.proxy=function(L){var P=this,R=this._options.proxy;if(!R)throw new Error("No proxy defined");var ae=L.substring(0,256);return new Promise(function(ye,_e){var Te=dr.SUPPORT_RESPONSE_TYPE?"blob":"text",Ee=new XMLHttpRequest;Ee.onload=function(){if(Ee.status===200)if(Te==="text")ye(Ee.response);else{var We=new FileReader;We.addEventListener("load",function(){return ye(We.result)},!1),We.addEventListener("error",function(Je){return _e(Je)},!1),We.readAsDataURL(Ee.response)}else _e("Failed to proxy resource "+ae+" with status code "+Ee.status)},Ee.onerror=_e;var De=R.indexOf("?")>-1?"&":"?";if(Ee.open("GET",""+R+De+"url="+encodeURIComponent(L)+"&responseType="+Te),Te!=="text"&&Ee instanceof XMLHttpRequest&&(Ee.responseType=Te),P._options.imageTimeout){var je=P._options.imageTimeout;Ee.timeout=je,Ee.ontimeout=function(){return _e("Timed out ("+je+"ms) proxying "+ae)}}Ee.send()})},D}(),Jt=/^data:image\/svg\+xml/i,yr=/^data:image\/.*;base64,/i,ar=/^data:image\/.*/i,Kr=function(D){return dr.SUPPORT_SVG_DRAWING||!Sr(D)},kr=function(D){return ar.test(D)},cr=function(D){return yr.test(D)},Ir=function(D){return D.substr(0,4)==="blob"},Sr=function(D){return D.substr(-3).toLowerCase()==="svg"||Jt.test(D)},it=function(){function D(L,P){this.type=0,this.x=L,this.y=P}return D.prototype.add=function(L,P){return new D(this.x+L,this.y+P)},D}(),er=function(D,L,P){return new it(D.x+(L.x-D.x)*P,D.y+(L.y-D.y)*P)},tr=function(){function D(L,P,R,ae){this.type=1,this.start=L,this.startControl=P,this.endControl=R,this.end=ae}return D.prototype.subdivide=function(L,P){var R=er(this.start,this.startControl,L),ae=er(this.startControl,this.endControl,L),ye=er(this.endControl,this.end,L),_e=er(R,ae,L),Te=er(ae,ye,L),Ee=er(_e,Te,L);return P?new D(this.start,R,_e,Ee):new D(Ee,Te,ye,this.end)},D.prototype.add=function(L,P){return new D(this.start.add(L,P),this.startControl.add(L,P),this.endControl.add(L,P),this.end.add(L,P))},D.prototype.reverse=function(){return new D(this.end,this.endControl,this.startControl,this.start)},D}(),rr=function(D){return D.type===1},ns=function(){function D(L){var P=L.styles,R=L.bounds,ae=gi(P.borderTopLeftRadius,R.width,R.height),ye=ae[0],_e=ae[1],Te=gi(P.borderTopRightRadius,R.width,R.height),Ee=Te[0],De=Te[1],je=gi(P.borderBottomRightRadius,R.width,R.height),We=je[0],Je=je[1],dt=gi(P.borderBottomLeftRadius,R.width,R.height),At=dt[0],ut=dt[1],Lt=[];Lt.push((ye+Ee)/R.width),Lt.push((At+We)/R.width),Lt.push((_e+ut)/R.height),Lt.push((De+Je)/R.height);var mt=Math.max.apply(Math,Lt);mt>1&&(ye/=mt,_e/=mt,Ee/=mt,De/=mt,We/=mt,Je/=mt,At/=mt,ut/=mt);var gt=R.width-Ee,zt=R.height-Je,Ot=R.width-We,Bt=R.height-ut,ht=P.borderTopWidth,Ht=P.borderRightWidth,Nt=P.borderBottomWidth,St=P.borderLeftWidth,xr=Kt(P.paddingTop,L.bounds.width),on=Kt(P.paddingRight,L.bounds.width),mn=Kt(P.paddingBottom,L.bounds.width),nr=Kt(P.paddingLeft,L.bounds.width);this.topLeftBorderDoubleOuterBox=ye>0||_e>0?kt(R.left+St/3,R.top+ht/3,ye-St/3,_e-ht/3,Ut.TOP_LEFT):new it(R.left+St/3,R.top+ht/3),this.topRightBorderDoubleOuterBox=ye>0||_e>0?kt(R.left+gt,R.top+ht/3,Ee-Ht/3,De-ht/3,Ut.TOP_RIGHT):new it(R.left+R.width-Ht/3,R.top+ht/3),this.bottomRightBorderDoubleOuterBox=We>0||Je>0?kt(R.left+Ot,R.top+zt,We-Ht/3,Je-Nt/3,Ut.BOTTOM_RIGHT):new it(R.left+R.width-Ht/3,R.top+R.height-Nt/3),this.bottomLeftBorderDoubleOuterBox=At>0||ut>0?kt(R.left+St/3,R.top+Bt,At-St/3,ut-Nt/3,Ut.BOTTOM_LEFT):new it(R.left+St/3,R.top+R.height-Nt/3),this.topLeftBorderDoubleInnerBox=ye>0||_e>0?kt(R.left+St*2/3,R.top+ht*2/3,ye-St*2/3,_e-ht*2/3,Ut.TOP_LEFT):new it(R.left+St*2/3,R.top+ht*2/3),this.topRightBorderDoubleInnerBox=ye>0||_e>0?kt(R.left+gt,R.top+ht*2/3,Ee-Ht*2/3,De-ht*2/3,Ut.TOP_RIGHT):new it(R.left+R.width-Ht*2/3,R.top+ht*2/3),this.bottomRightBorderDoubleInnerBox=We>0||Je>0?kt(R.left+Ot,R.top+zt,We-Ht*2/3,Je-Nt*2/3,Ut.BOTTOM_RIGHT):new it(R.left+R.width-Ht*2/3,R.top+R.height-Nt*2/3),this.bottomLeftBorderDoubleInnerBox=At>0||ut>0?kt(R.left+St*2/3,R.top+Bt,At-St*2/3,ut-Nt*2/3,Ut.BOTTOM_LEFT):new it(R.left+St*2/3,R.top+R.height-Nt*2/3),this.topLeftBorderStroke=ye>0||_e>0?kt(R.left+St/2,R.top+ht/2,ye-St/2,_e-ht/2,Ut.TOP_LEFT):new it(R.left+St/2,R.top+ht/2),this.topRightBorderStroke=ye>0||_e>0?kt(R.left+gt,R.top+ht/2,Ee-Ht/2,De-ht/2,Ut.TOP_RIGHT):new it(R.left+R.width-Ht/2,R.top+ht/2),this.bottomRightBorderStroke=We>0||Je>0?kt(R.left+Ot,R.top+zt,We-Ht/2,Je-Nt/2,Ut.BOTTOM_RIGHT):new it(R.left+R.width-Ht/2,R.top+R.height-Nt/2),this.bottomLeftBorderStroke=At>0||ut>0?kt(R.left+St/2,R.top+Bt,At-St/2,ut-Nt/2,Ut.BOTTOM_LEFT):new it(R.left+St/2,R.top+R.height-Nt/2),this.topLeftBorderBox=ye>0||_e>0?kt(R.left,R.top,ye,_e,Ut.TOP_LEFT):new it(R.left,R.top),this.topRightBorderBox=Ee>0||De>0?kt(R.left+gt,R.top,Ee,De,Ut.TOP_RIGHT):new it(R.left+R.width,R.top),this.bottomRightBorderBox=We>0||Je>0?kt(R.left+Ot,R.top+zt,We,Je,Ut.BOTTOM_RIGHT):new it(R.left+R.width,R.top+R.height),this.bottomLeftBorderBox=At>0||ut>0?kt(R.left,R.top+Bt,At,ut,Ut.BOTTOM_LEFT):new it(R.left,R.top+R.height),this.topLeftPaddingBox=ye>0||_e>0?kt(R.left+St,R.top+ht,Math.max(0,ye-St),Math.max(0,_e-ht),Ut.TOP_LEFT):new it(R.left+St,R.top+ht),this.topRightPaddingBox=Ee>0||De>0?kt(R.left+Math.min(gt,R.width-Ht),R.top+ht,gt>R.width+Ht?0:Math.max(0,Ee-Ht),Math.max(0,De-ht),Ut.TOP_RIGHT):new it(R.left+R.width-Ht,R.top+ht),this.bottomRightPaddingBox=We>0||Je>0?kt(R.left+Math.min(Ot,R.width-St),R.top+Math.min(zt,R.height-Nt),Math.max(0,We-Ht),Math.max(0,Je-Nt),Ut.BOTTOM_RIGHT):new it(R.left+R.width-Ht,R.top+R.height-Nt),this.bottomLeftPaddingBox=At>0||ut>0?kt(R.left+St,R.top+Math.min(Bt,R.height-Nt),Math.max(0,At-St),Math.max(0,ut-Nt),Ut.BOTTOM_LEFT):new it(R.left+St,R.top+R.height-Nt),this.topLeftContentBox=ye>0||_e>0?kt(R.left+St+nr,R.top+ht+xr,Math.max(0,ye-(St+nr)),Math.max(0,_e-(ht+xr)),Ut.TOP_LEFT):new it(R.left+St+nr,R.top+ht+xr),this.topRightContentBox=Ee>0||De>0?kt(R.left+Math.min(gt,R.width+St+nr),R.top+ht+xr,gt>R.width+St+nr?0:Ee-St+nr,De-(ht+xr),Ut.TOP_RIGHT):new it(R.left+R.width-(Ht+on),R.top+ht+xr),this.bottomRightContentBox=We>0||Je>0?kt(R.left+Math.min(Ot,R.width-(St+nr)),R.top+Math.min(zt,R.height+ht+xr),Math.max(0,We-(Ht+on)),Je-(Nt+mn),Ut.BOTTOM_RIGHT):new it(R.left+R.width-(Ht+on),R.top+R.height-(Nt+mn)),this.bottomLeftContentBox=At>0||ut>0?kt(R.left+St+nr,R.top+Bt,Math.max(0,At-(St+nr)),ut-(Nt+mn),Ut.BOTTOM_LEFT):new it(R.left+St+nr,R.top+R.height-(Nt+mn))}return D}(),Ut;(function(D){D[D.TOP_LEFT=0]="TOP_LEFT",D[D.TOP_RIGHT=1]="TOP_RIGHT",D[D.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",D[D.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ut||(Ut={}));var kt=function(D,L,P,R,ae){var ye=4*((Math.sqrt(2)-1)/3),_e=P*ye,Te=R*ye,Ee=D+P,De=L+R;switch(ae){case Ut.TOP_LEFT:return new tr(new it(D,De),new it(D,De-Te),new it(Ee-_e,L),new it(Ee,L));case Ut.TOP_RIGHT:return new tr(new it(D,L),new it(D+_e,L),new it(Ee,De-Te),new it(Ee,De));case Ut.BOTTOM_RIGHT:return new tr(new it(Ee,L),new it(Ee,L+Te),new it(D+_e,De),new it(D,De));case Ut.BOTTOM_LEFT:default:return new tr(new it(Ee,De),new it(Ee-_e,De),new it(D,L+Te),new it(D,L))}},Zr=function(D){return[D.topLeftBorderBox,D.topRightBorderBox,D.bottomRightBorderBox,D.bottomLeftBorderBox]},br=function(D){return[D.topLeftContentBox,D.topRightContentBox,D.bottomRightContentBox,D.bottomLeftContentBox]},is=function(D){return[D.topLeftPaddingBox,D.topRightPaddingBox,D.bottomRightPaddingBox,D.bottomLeftPaddingBox]},Hn=function(){function D(L,P,R){this.offsetX=L,this.offsetY=P,this.matrix=R,this.type=0,this.target=6}return D}(),_n=function(){function D(L,P){this.path=L,this.target=P,this.type=1}return D}(),ki=function(){function D(L){this.opacity=L,this.type=2,this.target=6}return D}(),Mr=function(D){return D.type===0},Ii=function(D){return D.type===1},La=function(D){return D.type===2},Au=function(D,L){return D.length===L.length?D.some(function(P,R){return P===L[R]}):!1},bu=function(D,L,P,R,ae){return D.map(function(ye,_e){switch(_e){case 0:return ye.add(L,P);case 1:return ye.add(L+R,P);case 2:return ye.add(L+R,P+ae);case 3:return ye.add(L,P+ae)}return ye})},lu=function(){function D(L){this.element=L,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return D}(),uu=function(){function D(L,P){if(this.container=L,this.parent=P,this.effects=[],this.curves=new ns(this.container),this.container.styles.opacity<1&&this.effects.push(new ki(this.container.styles.opacity)),this.container.styles.transform!==null){var R=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ae=this.container.bounds.top+this.container.styles.transformOrigin[1].number,ye=this.container.styles.transform;this.effects.push(new Hn(R,ae,ye))}if(this.container.styles.overflowX!==0){var _e=Zr(this.curves),Te=is(this.curves);Au(_e,Te)?this.effects.push(new _n(_e,6)):(this.effects.push(new _n(_e,2)),this.effects.push(new _n(Te,4)))}}return D.prototype.getEffects=function(L){for(var P=[2,3].indexOf(this.container.styles.position)===-1,R=this.parent,ae=this.effects.slice(0);R;){var ye=R.effects.filter(function(Ee){return!Ii(Ee)});if(P||R.container.styles.position!==0||!R.parent){if(ae.unshift.apply(ae,ye),P=[2,3].indexOf(R.container.styles.position)===-1,R.container.styles.overflowX!==0){var _e=Zr(R.curves),Te=is(R.curves);Au(_e,Te)||ae.unshift(new _n(Te,6))}}else ae.unshift.apply(ae,ye);R=R.parent}return ae.filter(function(Ee){return hr(Ee.target,L)})},D}(),su=function(D,L,P,R){D.container.elements.forEach(function(ae){var ye=hr(ae.flags,4),_e=hr(ae.flags,2),Te=new uu(ae,D);hr(ae.styles.display,2048)&&R.push(Te);var Ee=hr(ae.flags,8)?[]:R;if(ye||_e){var De=ye||ae.styles.isPositioned()?P:L,je=new lu(Te);if(ae.styles.isPositioned()||ae.styles.opacity<1||ae.styles.isTransformed()){var We=ae.styles.zIndex.order;if(We<0){var Je=0;De.negativeZIndex.some(function(At,ut){return We>At.element.container.styles.zIndex.order?(Je=ut,!1):Je>0}),De.negativeZIndex.splice(Je,0,je)}else if(We>0){var dt=0;De.positiveZIndex.some(function(At,ut){return We>=At.element.container.styles.zIndex.order?(dt=ut+1,!1):dt>0}),De.positiveZIndex.splice(dt,0,je)}else De.zeroOrAutoZIndexOrTransformedOrOpacity.push(je)}else ae.styles.isFloating()?De.nonPositionedFloats.push(je):De.nonPositionedInlineLevel.push(je);su(Te,je,ye?je:P,Ee)}else ae.styles.isInlineLevel()?L.inlineLevel.push(Te):L.nonInlineLevel.push(Te),su(Te,L,P,Ee);hr(ae.flags,8)&&cu(ae,Ee)})},cu=function(D,L){for(var P=D instanceof Io?D.start:1,R=D instanceof Io?D.reversed:!1,ae=0;ae<L.length;ae++){var ye=L[ae];ye.container instanceof ko&&typeof ye.container.value=="number"&&ye.container.value!==0&&(P=ye.container.value),ye.listValue=w(P,ye.container.styles.listStyleType,!0),P+=R?-1:1}},wu=function(D){var L=new uu(D,null),P=new lu(L),R=[];return su(L,P,P,R),cu(L.container,R),P},fu=function(D,L){switch(L){case 0:return Sn(D.topLeftBorderBox,D.topLeftPaddingBox,D.topRightBorderBox,D.topRightPaddingBox);case 1:return Sn(D.topRightBorderBox,D.topRightPaddingBox,D.bottomRightBorderBox,D.bottomRightPaddingBox);case 2:return Sn(D.bottomRightBorderBox,D.bottomRightPaddingBox,D.bottomLeftBorderBox,D.bottomLeftPaddingBox);case 3:default:return Sn(D.bottomLeftBorderBox,D.bottomLeftPaddingBox,D.topLeftBorderBox,D.topLeftPaddingBox)}},Cu=function(D,L){switch(L){case 0:return Sn(D.topLeftBorderBox,D.topLeftBorderDoubleOuterBox,D.topRightBorderBox,D.topRightBorderDoubleOuterBox);case 1:return Sn(D.topRightBorderBox,D.topRightBorderDoubleOuterBox,D.bottomRightBorderBox,D.bottomRightBorderDoubleOuterBox);case 2:return Sn(D.bottomRightBorderBox,D.bottomRightBorderDoubleOuterBox,D.bottomLeftBorderBox,D.bottomLeftBorderDoubleOuterBox);case 3:default:return Sn(D.bottomLeftBorderBox,D.bottomLeftBorderDoubleOuterBox,D.topLeftBorderBox,D.topLeftBorderDoubleOuterBox)}},Bu=function(D,L){switch(L){case 0:return Sn(D.topLeftBorderDoubleInnerBox,D.topLeftPaddingBox,D.topRightBorderDoubleInnerBox,D.topRightPaddingBox);case 1:return Sn(D.topRightBorderDoubleInnerBox,D.topRightPaddingBox,D.bottomRightBorderDoubleInnerBox,D.bottomRightPaddingBox);case 2:return Sn(D.bottomRightBorderDoubleInnerBox,D.bottomRightPaddingBox,D.bottomLeftBorderDoubleInnerBox,D.bottomLeftPaddingBox);case 3:default:return Sn(D.bottomLeftBorderDoubleInnerBox,D.bottomLeftPaddingBox,D.topLeftBorderDoubleInnerBox,D.topLeftPaddingBox)}},_u=function(D,L){switch(L){case 0:return rl(D.topLeftBorderStroke,D.topRightBorderStroke);case 1:return rl(D.topRightBorderStroke,D.bottomRightBorderStroke);case 2:return rl(D.bottomRightBorderStroke,D.bottomLeftBorderStroke);case 3:default:return rl(D.bottomLeftBorderStroke,D.topLeftBorderStroke)}},rl=function(D,L){var P=[];return rr(D)?P.push(D.subdivide(.5,!1)):P.push(D),rr(L)?P.push(L.subdivide(.5,!0)):P.push(L),P},Sn=function(D,L,P,R){var ae=[];return rr(D)?ae.push(D.subdivide(.5,!1)):ae.push(D),rr(P)?ae.push(P.subdivide(.5,!0)):ae.push(P),rr(R)?ae.push(R.subdivide(.5,!0).reverse()):ae.push(R),rr(L)?ae.push(L.subdivide(.5,!1).reverse()):ae.push(L),ae},hu=function(D){var L=D.bounds,P=D.styles;return L.add(P.borderLeftWidth,P.borderTopWidth,-(P.borderRightWidth+P.borderLeftWidth),-(P.borderTopWidth+P.borderBottomWidth))},nl=function(D){var L=D.styles,P=D.bounds,R=Kt(L.paddingLeft,P.width),ae=Kt(L.paddingRight,P.width),ye=Kt(L.paddingTop,P.width),_e=Kt(L.paddingBottom,P.width);return P.add(R+L.borderLeftWidth,ye+L.borderTopWidth,-(L.borderRightWidth+L.borderLeftWidth+R+ae),-(L.borderTopWidth+L.borderBottomWidth+ye+_e))},Su=function(D,L){return D===0?L.bounds:D===2?nl(L):hu(L)},xu=function(D,L){return D===0?L.bounds:D===2?nl(L):hu(L)},ou=function(D,L,P){var R=Su(jo(D.styles.backgroundOrigin,L),D),ae=xu(jo(D.styles.backgroundClip,L),D),ye=Eu(jo(D.styles.backgroundSize,L),P,R),_e=ye[0],Te=ye[1],Ee=gi(jo(D.styles.backgroundPosition,L),R.width-_e,R.height-Te),De=Tu(jo(D.styles.backgroundRepeat,L),Ee,ye,R,ae),je=Math.round(R.left+Ee[0]),We=Math.round(R.top+Ee[1]);return[De,je,We,_e,Te]},Ro=function(D){return Yt(D)&&D.value===yi.AUTO},il=function(D){return typeof D=="number"},Eu=function(D,L,P){var R=L[0],ae=L[1],ye=L[2],_e=D[0],Te=D[1];if(!_e)return[0,0];if(ur(_e)&&Te&&ur(Te))return[Kt(_e,P.width),Kt(Te,P.height)];var Ee=il(ye);if(Yt(_e)&&(_e.value===yi.CONTAIN||_e.value===yi.COVER)){if(il(ye)){var De=P.width/P.height;return De<ye!=(_e.value===yi.COVER)?[P.width,P.width/ye]:[P.height*ye,P.height]}return[P.width,P.height]}var je=il(R),We=il(ae),Je=je||We;if(Ro(_e)&&(!Te||Ro(Te))){if(je&&We)return[R,ae];if(!Ee&&!Je)return[P.width,P.height];if(Je&&Ee){var dt=je?R:ae*ye,At=We?ae:R/ye;return[dt,At]}var ut=je?R:P.width,Lt=We?ae:P.height;return[ut,Lt]}if(Ee){var mt=0,gt=0;return ur(_e)?mt=Kt(_e,P.width):ur(Te)&&(gt=Kt(Te,P.height)),Ro(_e)?mt=gt*ye:(!Te||Ro(Te))&&(gt=mt/ye),[mt,gt]}var zt=null,Ot=null;if(ur(_e)?zt=Kt(_e,P.width):Te&&ur(Te)&&(Ot=Kt(Te,P.height)),zt!==null&&(!Te||Ro(Te))&&(Ot=je&&We?zt/R*ae:P.height),Ot!==null&&Ro(_e)&&(zt=je&&We?Ot/ae*R:P.width),zt!==null&&Ot!==null)return[zt,Ot];throw new Error("Unable to calculate background-size for element")},jo=function(D,L){var P=D[L];return typeof P=="undefined"?D[0]:P},Tu=function(D,L,P,R,ae){var ye=L[0],_e=L[1],Te=P[0],Ee=P[1];switch(D){case 2:return[new it(Math.round(R.left),Math.round(R.top+_e)),new it(Math.round(R.left+R.width),Math.round(R.top+_e)),new it(Math.round(R.left+R.width),Math.round(Ee+R.top+_e)),new it(Math.round(R.left),Math.round(Ee+R.top+_e))];case 3:return[new it(Math.round(R.left+ye),Math.round(R.top)),new it(Math.round(R.left+ye+Te),Math.round(R.top)),new it(Math.round(R.left+ye+Te),Math.round(R.height+R.top)),new it(Math.round(R.left+ye),Math.round(R.height+R.top))];case 1:return[new it(Math.round(R.left+ye),Math.round(R.top+_e)),new it(Math.round(R.left+ye+Te),Math.round(R.top+_e)),new it(Math.round(R.left+ye+Te),Math.round(R.top+_e+Ee)),new it(Math.round(R.left+ye),Math.round(R.top+_e+Ee))];default:return[new it(Math.round(ae.left),Math.round(ae.top)),new it(Math.round(ae.left+ae.width),Math.round(ae.top)),new it(Math.round(ae.left+ae.width),Math.round(ae.height+ae.top)),new it(Math.round(ae.left),Math.round(ae.height+ae.top))]}},Fu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",du="Hidden Text",ku=function(){function D(L){this._data={},this._document=L}return D.prototype.parseMetrics=function(L,P){var R=this._document.createElement("div"),ae=this._document.createElement("img"),ye=this._document.createElement("span"),_e=this._document.body;R.style.visibility="hidden",R.style.fontFamily=L,R.style.fontSize=P,R.style.margin="0",R.style.padding="0",R.style.whiteSpace="nowrap",_e.appendChild(R),ae.src=Fu,ae.width=1,ae.height=1,ae.style.margin="0",ae.style.padding="0",ae.style.verticalAlign="baseline",ye.style.fontFamily=L,ye.style.fontSize=P,ye.style.margin="0",ye.style.padding="0",ye.appendChild(this._document.createTextNode(du)),R.appendChild(ye),R.appendChild(ae);var Te=ae.offsetTop-ye.offsetTop+2;R.removeChild(ye),R.appendChild(this._document.createTextNode(du)),R.style.lineHeight="normal",ae.style.verticalAlign="super";var Ee=ae.offsetTop-R.offsetTop+2;return _e.removeChild(R),{baseline:Te,middle:Ee}},D.prototype.getMetrics=function(L,P){var R=L+" "+P;return typeof this._data[R]=="undefined"&&(this._data[R]=this.parseMetrics(L,P)),this._data[R]},D}(),pu=function(){function D(L,P){this.context=L,this.options=P}return D}(),Iu=1e4,Lu=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae._activeEffects=[],ae.canvas=R.canvas?R.canvas:document.createElement("canvas"),ae.ctx=ae.canvas.getContext("2d"),R.canvas||(ae.canvas.width=Math.floor(R.width*R.scale),ae.canvas.height=Math.floor(R.height*R.scale),ae.canvas.style.width=R.width+"px",ae.canvas.style.height=R.height+"px"),ae.fontMetrics=new ku(document),ae.ctx.scale(ae.options.scale,ae.options.scale),ae.ctx.translate(-R.x,-R.y),ae.ctx.textBaseline="bottom",ae._activeEffects=[],ae.context.logger.debug("Canvas renderer initialized ("+R.width+"x"+R.height+") with scale "+R.scale),ae}return L.prototype.applyEffects=function(P){for(var R=this;this._activeEffects.length;)this.popEffect();P.forEach(function(ae){return R.applyEffect(ae)})},L.prototype.applyEffect=function(P){this.ctx.save(),La(P)&&(this.ctx.globalAlpha=P.opacity),Mr(P)&&(this.ctx.translate(P.offsetX,P.offsetY),this.ctx.transform(P.matrix[0],P.matrix[1],P.matrix[2],P.matrix[3],P.matrix[4],P.matrix[5]),this.ctx.translate(-P.offsetX,-P.offsetY)),Ii(P)&&(this.path(P.path),this.ctx.clip()),this._activeEffects.push(P)},L.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},L.prototype.renderStack=function(P){return ie(this,void 0,void 0,function(){var R;return t(this,function(ae){switch(ae.label){case 0:return R=P.element.container.styles,R.isVisible()?[4,this.renderStackContent(P)]:[3,2];case 1:ae.sent(),ae.label=2;case 2:return[2]}})})},L.prototype.renderNode=function(P){return ie(this,void 0,void 0,function(){return t(this,function(R){switch(R.label){case 0:if(hr(P.container.flags,16))debugger;return P.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(P)]:[3,3];case 1:return R.sent(),[4,this.renderNodeContent(P)];case 2:R.sent(),R.label=3;case 3:return[2]}})})},L.prototype.renderTextWithLetterSpacing=function(P,R,ae){var ye=this;if(R===0)this.ctx.fillText(P.text,P.bounds.left,P.bounds.top+ae);else{var _e=_a(P.text);_e.reduce(function(Te,Ee){return ye.ctx.fillText(Ee,Te,P.bounds.top+ae),Te+ye.ctx.measureText(Ee).width},P.bounds.left)}},L.prototype.createFontStyle=function(P){var R=P.fontVariant.filter(function(_e){return _e==="normal"||_e==="small-caps"}).join(""),ae=Ru(P.fontFamily).join(", "),ye=Hi(P.fontSize)?""+P.fontSize.number+P.fontSize.unit:P.fontSize.number+"px";return[[P.fontStyle,R,P.fontWeight,ye,ae].join(" "),ae,ye]},L.prototype.renderTextNode=function(P,R){return ie(this,void 0,void 0,function(){var ae,ye,_e,Te,Ee,De,je,We,Je=this;return t(this,function(dt){return ae=this.createFontStyle(R),ye=ae[0],_e=ae[1],Te=ae[2],this.ctx.font=ye,this.ctx.direction=R.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Ee=this.fontMetrics.getMetrics(_e,Te),De=Ee.baseline,je=Ee.middle,We=R.paintOrder,P.textBounds.forEach(function(At){We.forEach(function(ut){switch(ut){case 0:Je.ctx.fillStyle=vr(R.color),Je.renderTextWithLetterSpacing(At,R.letterSpacing,De);var Lt=R.textShadow;Lt.length&&At.text.trim().length&&(Lt.slice(0).reverse().forEach(function(mt){Je.ctx.shadowColor=vr(mt.color),Je.ctx.shadowOffsetX=mt.offsetX.number*Je.options.scale,Je.ctx.shadowOffsetY=mt.offsetY.number*Je.options.scale,Je.ctx.shadowBlur=mt.blur.number,Je.renderTextWithLetterSpacing(At,R.letterSpacing,De)}),Je.ctx.shadowColor="",Je.ctx.shadowOffsetX=0,Je.ctx.shadowOffsetY=0,Je.ctx.shadowBlur=0),R.textDecorationLine.length&&(Je.ctx.fillStyle=vr(R.textDecorationColor||R.color),R.textDecorationLine.forEach(function(mt){switch(mt){case 1:Je.ctx.fillRect(At.bounds.left,Math.round(At.bounds.top+De),At.bounds.width,1);break;case 2:Je.ctx.fillRect(At.bounds.left,Math.round(At.bounds.top),At.bounds.width,1);break;case 3:Je.ctx.fillRect(At.bounds.left,Math.ceil(At.bounds.top+je),At.bounds.width,1);break}}));break;case 1:R.webkitTextStrokeWidth&&At.text.trim().length&&(Je.ctx.strokeStyle=vr(R.webkitTextStrokeColor),Je.ctx.lineWidth=R.webkitTextStrokeWidth,Je.ctx.lineJoin=window.chrome?"miter":"round",Je.ctx.strokeText(At.text,At.bounds.left,At.bounds.top+De)),Je.ctx.strokeStyle="",Je.ctx.lineWidth=0,Je.ctx.lineJoin="miter";break}})}),[2]})})},L.prototype.renderReplacedElement=function(P,R,ae){if(ae&&P.intrinsicWidth>0&&P.intrinsicHeight>0){var ye=nl(P),_e=is(R);this.path(_e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ae,0,0,P.intrinsicWidth,P.intrinsicHeight,ye.left,ye.top,ye.width,ye.height),this.ctx.restore()}},L.prototype.renderNodeContent=function(P){return ie(this,void 0,void 0,function(){var R,ae,ye,_e,Te,Ee,gt,gt,De,je,We,Je,Ot,dt,At,Bt,ut,Lt,mt,gt,zt,Ot,Bt;return t(this,function(ht){switch(ht.label){case 0:this.applyEffects(P.getEffects(4)),R=P.container,ae=P.curves,ye=R.styles,_e=0,Te=R.textNodes,ht.label=1;case 1:return _e<Te.length?(Ee=Te[_e],[4,this.renderTextNode(Ee,ye)]):[3,4];case 2:ht.sent(),ht.label=3;case 3:return _e++,[3,1];case 4:if(!(R instanceof Sa))return[3,8];ht.label=5;case 5:return ht.trys.push([5,7,,8]),[4,this.context.cache.match(R.src)];case 6:return gt=ht.sent(),this.renderReplacedElement(R,ae,gt),[3,8];case 7:return ht.sent(),this.context.logger.error("Error loading image "+R.src),[3,8];case 8:if(R instanceof xa&&this.renderReplacedElement(R,ae,R.canvas),!(R instanceof jA))return[3,12];ht.label=9;case 9:return ht.trys.push([9,11,,12]),[4,this.context.cache.match(R.svg)];case 10:return gt=ht.sent(),this.renderReplacedElement(R,ae,gt),[3,12];case 11:return ht.sent(),this.context.logger.error("Error loading svg "+R.svg.substring(0,255)),[3,12];case 12:return R instanceof KA&&R.tree?(De=new L(this.context,{scale:this.options.scale,backgroundColor:R.backgroundColor,x:0,y:0,width:R.width,height:R.height}),[4,De.render(R.tree)]):[3,14];case 13:je=ht.sent(),R.width&&R.height&&this.ctx.drawImage(je,0,0,R.width,R.height,R.bounds.left,R.bounds.top,R.bounds.width,R.bounds.height),ht.label=14;case 14:if(R instanceof Lo&&(We=Math.min(R.bounds.width,R.bounds.height),R.type===ts?R.checked&&(this.ctx.save(),this.path([new it(R.bounds.left+We*.39363,R.bounds.top+We*.79),new it(R.bounds.left+We*.16,R.bounds.top+We*.5549),new it(R.bounds.left+We*.27347,R.bounds.top+We*.44071),new it(R.bounds.left+We*.39694,R.bounds.top+We*.5649),new it(R.bounds.left+We*.72983,R.bounds.top+We*.23),new it(R.bounds.left+We*.84,R.bounds.top+We*.34085),new it(R.bounds.left+We*.39363,R.bounds.top+We*.79)]),this.ctx.fillStyle=vr(HA),this.ctx.fill(),this.ctx.restore()):R.type===ai&&R.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(R.bounds.left+We/2,R.bounds.top+We/2,We/4,0,Math.PI*2,!0),this.ctx.fillStyle=vr(HA),this.ctx.fill(),this.ctx.restore())),Ou(R)&&R.value.length){switch(Je=this.createFontStyle(ye),Ot=Je[0],dt=Je[1],At=this.fontMetrics.getMetrics(Ot,dt).baseline,this.ctx.font=Ot,this.ctx.fillStyle=vr(ye.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Du(R.styles.textAlign),Bt=nl(R),ut=0,R.styles.textAlign){case 1:ut+=Bt.width/2;break;case 2:ut+=Bt.width;break}Lt=Bt.add(ut,0,0,-Bt.height/2+1),this.ctx.save(),this.path([new it(Bt.left,Bt.top),new it(Bt.left+Bt.width,Bt.top),new it(Bt.left+Bt.width,Bt.top+Bt.height),new it(Bt.left,Bt.top+Bt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bn(R.value,Lt),ye.letterSpacing,At),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!hr(R.styles.display,2048))return[3,20];if(R.styles.listStyleImage===null)return[3,19];if(mt=R.styles.listStyleImage,mt.type!==0)return[3,18];gt=void 0,zt=mt.url,ht.label=15;case 15:return ht.trys.push([15,17,,18]),[4,this.context.cache.match(zt)];case 16:return gt=ht.sent(),this.ctx.drawImage(gt,R.bounds.left-(gt.width+10),R.bounds.top),[3,18];case 17:return ht.sent(),this.context.logger.error("Error loading list-style-image "+zt),[3,18];case 18:return[3,20];case 19:P.listValue&&R.styles.listStyleType!==-1&&(Ot=this.createFontStyle(ye)[0],this.ctx.font=Ot,this.ctx.fillStyle=vr(ye.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Bt=new b(R.bounds.left,R.bounds.top+Kt(R.styles.paddingTop,R.bounds.width),R.bounds.width,fr(ye.lineHeight,ye.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bn(P.listValue,Bt),ye.letterSpacing,fr(ye.lineHeight,ye.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ht.label=20;case 20:return[2]}})})},L.prototype.renderStackContent=function(P){return ie(this,void 0,void 0,function(){var R,ae,mt,ye,_e,mt,Te,Ee,mt,De,je,mt,We,Je,mt,dt,At,mt,ut,Lt,mt;return t(this,function(gt){switch(gt.label){case 0:if(hr(P.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(P.element)];case 1:gt.sent(),R=0,ae=P.negativeZIndex,gt.label=2;case 2:return R<ae.length?(mt=ae[R],[4,this.renderStack(mt)]):[3,5];case 3:gt.sent(),gt.label=4;case 4:return R++,[3,2];case 5:return[4,this.renderNodeContent(P.element)];case 6:gt.sent(),ye=0,_e=P.nonInlineLevel,gt.label=7;case 7:return ye<_e.length?(mt=_e[ye],[4,this.renderNode(mt)]):[3,10];case 8:gt.sent(),gt.label=9;case 9:return ye++,[3,7];case 10:Te=0,Ee=P.nonPositionedFloats,gt.label=11;case 11:return Te<Ee.length?(mt=Ee[Te],[4,this.renderStack(mt)]):[3,14];case 12:gt.sent(),gt.label=13;case 13:return Te++,[3,11];case 14:De=0,je=P.nonPositionedInlineLevel,gt.label=15;case 15:return De<je.length?(mt=je[De],[4,this.renderStack(mt)]):[3,18];case 16:gt.sent(),gt.label=17;case 17:return De++,[3,15];case 18:We=0,Je=P.inlineLevel,gt.label=19;case 19:return We<Je.length?(mt=Je[We],[4,this.renderNode(mt)]):[3,22];case 20:gt.sent(),gt.label=21;case 21:return We++,[3,19];case 22:dt=0,At=P.zeroOrAutoZIndexOrTransformedOrOpacity,gt.label=23;case 23:return dt<At.length?(mt=At[dt],[4,this.renderStack(mt)]):[3,26];case 24:gt.sent(),gt.label=25;case 25:return dt++,[3,23];case 26:ut=0,Lt=P.positiveZIndex,gt.label=27;case 27:return ut<Lt.length?(mt=Lt[ut],[4,this.renderStack(mt)]):[3,30];case 28:gt.sent(),gt.label=29;case 29:return ut++,[3,27];case 30:return[2]}})})},L.prototype.mask=function(P){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(P.slice(0).reverse()),this.ctx.closePath()},L.prototype.path=function(P){this.ctx.beginPath(),this.formatPath(P),this.ctx.closePath()},L.prototype.formatPath=function(P){var R=this;P.forEach(function(ae,ye){var _e=rr(ae)?ae.start:ae;ye===0?R.ctx.moveTo(_e.x,_e.y):R.ctx.lineTo(_e.x,_e.y),rr(ae)&&R.ctx.bezierCurveTo(ae.startControl.x,ae.startControl.y,ae.endControl.x,ae.endControl.y,ae.end.x,ae.end.y)})},L.prototype.renderRepeat=function(P,R,ae,ye){this.path(P),this.ctx.fillStyle=R,this.ctx.translate(ae,ye),this.ctx.fill(),this.ctx.translate(-ae,-ye)},L.prototype.resizeImage=function(P,R,ae){var ye;if(P.width===R&&P.height===ae)return P;var _e=(ye=this.canvas.ownerDocument)!==null&&ye!==void 0?ye:document,Te=_e.createElement("canvas");Te.width=Math.max(1,R),Te.height=Math.max(1,ae);var Ee=Te.getContext("2d");return Ee.drawImage(P,0,0,P.width,P.height,0,0,R,ae),Te},L.prototype.renderBackgroundImage=function(P){return ie(this,void 0,void 0,function(){var R,ae,ye,_e,Te,Ee;return t(this,function(De){switch(De.label){case 0:R=P.styles.backgroundImage.length-1,ae=function(je){var We,Je,dt,xr,an,An,nr,Qr,Nt,At,xr,an,An,nr,Qr,ut,Lt,mt,gt,zt,Ot,Bt,ht,Ht,Nt,St,xr,on,mn,nr,Qr,ss,an,An,Gs,li,os,zs,Vs,Li,Xs,Oi;return t(this,function(Qo){switch(Qo.label){case 0:if(je.type!==0)return[3,5];We=void 0,Je=je.url,Qo.label=1;case 1:return Qo.trys.push([1,3,,4]),[4,ye.context.cache.match(Je)];case 2:return We=Qo.sent(),[3,4];case 3:return Qo.sent(),ye.context.logger.error("Error loading background-image "+Je),[3,4];case 4:return We&&(dt=ou(P,R,[We.width,We.height,We.width/We.height]),xr=dt[0],an=dt[1],An=dt[2],nr=dt[3],Qr=dt[4],Nt=ye.ctx.createPattern(ye.resizeImage(We,nr,Qr),"repeat"),ye.renderRepeat(xr,Nt,an,An)),[3,6];case 5:rA(je)?(At=ou(P,R,[null,null,null]),xr=At[0],an=At[1],An=At[2],nr=At[3],Qr=At[4],ut=Cl(je.angle,nr,Qr),Lt=ut[0],mt=ut[1],gt=ut[2],zt=ut[3],Ot=ut[4],Bt=document.createElement("canvas"),Bt.width=nr,Bt.height=Qr,ht=Bt.getContext("2d"),Ht=ht.createLinearGradient(mt,zt,gt,Ot),$a(je.stops,Lt).forEach(function(Oa){return Ht.addColorStop(Oa.stop,vr(Oa.color))}),ht.fillStyle=Ht,ht.fillRect(0,0,nr,Qr),nr>0&&Qr>0&&(Nt=ye.ctx.createPattern(Bt,"repeat"),ye.renderRepeat(xr,Nt,an,An))):nA(je)&&(St=ou(P,R,[null,null,null]),xr=St[0],on=St[1],mn=St[2],nr=St[3],Qr=St[4],ss=je.position.length===0?[zo]:je.position,an=Kt(ss[0],nr),An=Kt(ss[ss.length-1],Qr),Gs=Wi(je,an,An,nr,Qr),li=Gs[0],os=Gs[1],li>0&&os>0&&(zs=ye.ctx.createRadialGradient(on+an,mn+An,0,on+an,mn+An,li),$a(je.stops,li*2).forEach(function(Oa){return zs.addColorStop(Oa.stop,vr(Oa.color))}),ye.path(xr),ye.ctx.fillStyle=zs,li!==os?(Vs=P.bounds.left+.5*P.bounds.width,Li=P.bounds.top+.5*P.bounds.height,Xs=os/li,Oi=1/Xs,ye.ctx.save(),ye.ctx.translate(Vs,Li),ye.ctx.transform(1,0,0,Xs,0,0),ye.ctx.translate(-Vs,-Li),ye.ctx.fillRect(on,Oi*(mn-Li)+Li,nr,Qr*Oi),ye.ctx.restore()):ye.ctx.fill())),Qo.label=6;case 6:return R--,[2]}})},ye=this,_e=0,Te=P.styles.backgroundImage.slice(0).reverse(),De.label=1;case 1:return _e<Te.length?(Ee=Te[_e],[5,ae(Ee)]):[3,4];case 2:De.sent(),De.label=3;case 3:return _e++,[3,1];case 4:return[2]}})})},L.prototype.renderSolidBorder=function(P,R,ae){return ie(this,void 0,void 0,function(){return t(this,function(ye){return this.path(fu(ae,R)),this.ctx.fillStyle=vr(P),this.ctx.fill(),[2]})})},L.prototype.renderDoubleBorder=function(P,R,ae,ye){return ie(this,void 0,void 0,function(){var _e,Te;return t(this,function(Ee){switch(Ee.label){case 0:return R<3?[4,this.renderSolidBorder(P,ae,ye)]:[3,2];case 1:return Ee.sent(),[2];case 2:return _e=Cu(ye,ae),this.path(_e),this.ctx.fillStyle=vr(P),this.ctx.fill(),Te=Bu(ye,ae),this.path(Te),this.ctx.fill(),[2]}})})},L.prototype.renderNodeBackgroundAndBorders=function(P){return ie(this,void 0,void 0,function(){var R,ae,ye,_e,Te,Ee,De,je,We=this;return t(this,function(Je){switch(Je.label){case 0:return this.applyEffects(P.getEffects(2)),R=P.container.styles,ae=!On(R.backgroundColor)||R.backgroundImage.length,ye=[{style:R.borderTopStyle,color:R.borderTopColor,width:R.borderTopWidth},{style:R.borderRightStyle,color:R.borderRightColor,width:R.borderRightWidth},{style:R.borderBottomStyle,color:R.borderBottomColor,width:R.borderBottomWidth},{style:R.borderLeftStyle,color:R.borderLeftColor,width:R.borderLeftWidth}],_e=Uu(jo(R.backgroundClip,0),P.curves),ae||R.boxShadow.length?(this.ctx.save(),this.path(_e),this.ctx.clip(),On(R.backgroundColor)||(this.ctx.fillStyle=vr(R.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(P.container)]):[3,2];case 1:Je.sent(),this.ctx.restore(),R.boxShadow.slice(0).reverse().forEach(function(dt){We.ctx.save();var At=Zr(P.curves),ut=dt.inset?0:Iu,Lt=bu(At,-ut+(dt.inset?1:-1)*dt.spread.number,(dt.inset?1:-1)*dt.spread.number,dt.spread.number*(dt.inset?-2:2),dt.spread.number*(dt.inset?-2:2));dt.inset?(We.path(At),We.ctx.clip(),We.mask(Lt)):(We.mask(At),We.ctx.clip(),We.path(Lt)),We.ctx.shadowOffsetX=dt.offsetX.number+ut,We.ctx.shadowOffsetY=dt.offsetY.number,We.ctx.shadowColor=vr(dt.color),We.ctx.shadowBlur=dt.blur.number,We.ctx.fillStyle=dt.inset?vr(dt.color):"rgba(0,0,0,1)",We.ctx.fill(),We.ctx.restore()}),Je.label=2;case 2:Te=0,Ee=0,De=ye,Je.label=3;case 3:return Ee<De.length?(je=De[Ee],je.style!==0&&!On(je.color)&&je.width>0?je.style!==2?[3,5]:[4,this.renderDashedDottedBorder(je.color,je.width,Te,P.curves,2)]:[3,11]):[3,13];case 4:return Je.sent(),[3,11];case 5:return je.style!==3?[3,7]:[4,this.renderDashedDottedBorder(je.color,je.width,Te,P.curves,3)];case 6:return Je.sent(),[3,11];case 7:return je.style!==4?[3,9]:[4,this.renderDoubleBorder(je.color,je.width,Te,P.curves)];case 8:return Je.sent(),[3,11];case 9:return[4,this.renderSolidBorder(je.color,Te,P.curves)];case 10:Je.sent(),Je.label=11;case 11:Te++,Je.label=12;case 12:return Ee++,[3,3];case 13:return[2]}})})},L.prototype.renderDashedDottedBorder=function(P,R,ae,ye,_e){return ie(this,void 0,void 0,function(){var Te,Ee,De,je,We,Je,dt,At,ut,Lt,mt,gt,zt,Ot,Bt,ht,Bt,ht;return t(this,function(Ht){return this.ctx.save(),Te=_u(ye,ae),Ee=fu(ye,ae),_e===2&&(this.path(Ee),this.ctx.clip()),rr(Ee[0])?(De=Ee[0].start.x,je=Ee[0].start.y):(De=Ee[0].x,je=Ee[0].y),rr(Ee[1])?(We=Ee[1].end.x,Je=Ee[1].end.y):(We=Ee[1].x,Je=Ee[1].y),ae===0||ae===2?dt=Math.abs(De-We):dt=Math.abs(je-Je),this.ctx.beginPath(),_e===3?this.formatPath(Te):this.formatPath(Ee.slice(0,2)),At=R<3?R*3:R*2,ut=R<3?R*2:R,_e===3&&(At=R,ut=R),Lt=!0,dt<=At*2?Lt=!1:dt<=At*2+ut?(mt=dt/(2*At+ut),At*=mt,ut*=mt):(gt=Math.floor((dt+ut)/(At+ut)),zt=(dt-gt*At)/(gt-1),Ot=(dt-(gt+1)*At)/gt,ut=Ot<=0||Math.abs(ut-zt)<Math.abs(ut-Ot)?zt:Ot),Lt&&(_e===3?this.ctx.setLineDash([0,At+ut]):this.ctx.setLineDash([At,ut])),_e===3?(this.ctx.lineCap="round",this.ctx.lineWidth=R):this.ctx.lineWidth=R*2+1.1,this.ctx.strokeStyle=vr(P),this.ctx.stroke(),this.ctx.setLineDash([]),_e===2&&(rr(Ee[0])&&(Bt=Ee[3],ht=Ee[0],this.ctx.beginPath(),this.formatPath([new it(Bt.end.x,Bt.end.y),new it(ht.start.x,ht.start.y)]),this.ctx.stroke()),rr(Ee[1])&&(Bt=Ee[1],ht=Ee[2],this.ctx.beginPath(),this.formatPath([new it(Bt.end.x,Bt.end.y),new it(ht.start.x,ht.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},L.prototype.render=function(P){return ie(this,void 0,void 0,function(){var R;return t(this,function(ae){switch(ae.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=vr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),R=wu(P),[4,this.renderStack(R)];case 1:return ae.sent(),this.applyEffects([]),[2,this.canvas]}})})},L}(pu),Ou=function(D){return D instanceof WA||D instanceof NA?!0:D instanceof Lo&&D.type!==ai&&D.type!==ts},Uu=function(D,L){switch(D){case 0:return Zr(L);case 2:return br(L);case 1:default:return is(L)}},Du=function(D){switch(D){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Mu=["-apple-system","system-ui"],Ru=function(D){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?D.filter(function(L){return Mu.indexOf(L)===-1}):D},ju=function(D){J(L,D);function L(P,R){var ae=D.call(this,P,R)||this;return ae.canvas=R.canvas?R.canvas:document.createElement("canvas"),ae.ctx=ae.canvas.getContext("2d"),ae.options=R,ae.canvas.width=Math.floor(R.width*R.scale),ae.canvas.height=Math.floor(R.height*R.scale),ae.canvas.style.width=R.width+"px",ae.canvas.style.height=R.height+"px",ae.ctx.scale(ae.options.scale,ae.options.scale),ae.ctx.translate(-R.x,-R.y),ae.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+R.width+"x"+R.height+" at "+R.x+","+R.y+") with scale "+R.scale),ae}return L.prototype.render=function(P){return ie(this,void 0,void 0,function(){var R,ae;return t(this,function(ye){switch(ye.label){case 0:return R=Eo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,P),[4,Qu(R)];case 1:return ae=ye.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=vr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ae,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},L}(pu),Qu=function(D){return new Promise(function(L,P){var R=new Image;R.onload=function(){L(R)},R.onerror=P,R.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(D))})},Pu=function(){function D(L){var P=L.id,R=L.enabled;this.id=P,this.enabled=R,this.start=Date.now()}return D.prototype.debug=function(){for(var L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,C([this.id,this.getTime()+"ms"],L)):this.info.apply(this,L))},D.prototype.getTime=function(){return Date.now()-this.start},D.prototype.info=function(){for(var L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,C([this.id,this.getTime()+"ms"],L))},D.prototype.warn=function(){for(var L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,C([this.id,this.getTime()+"ms"],L)):this.info.apply(this,L))},D.prototype.error=function(){for(var L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,C([this.id,this.getTime()+"ms"],L)):this.info.apply(this,L))},D.instances={},D}(),Hu=function(){function D(L,P){var R;this.windowBounds=P,this.instanceName="#"+D.instanceCount++,this.logger=new Pu({id:this.instanceName,enabled:L.logging}),this.cache=(R=L.cache)!==null&&R!==void 0?R:new Ft(this,L)}return D.instanceCount=1,D}(),Nu=function(D,L){return L===void 0&&(L={}),Wu(D,L)};typeof window!="undefined"&&vt.setContext(window);var Wu=function(D,L){return ie(void 0,void 0,void 0,function(){var P,R,ae,ye,_e,Te,Ee,De,je,We,Je,dt,At,ut,Lt,mt,gt,zt,Ot,Bt,Ht,ht,Ht,Nt,St,xr,on,mn,nr,Qr,ss,an,An,Gs,li,os,zs,Vs,Li,Xs;return t(this,function(Oi){switch(Oi.label){case 0:if(!D||typeof D!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(P=D.ownerDocument,!P)throw new Error("Element is not attached to a Document");if(R=P.defaultView,!R)throw new Error("Document is not attached to a Window");return ae={allowTaint:(Nt=L.allowTaint)!==null&&Nt!==void 0?Nt:!1,imageTimeout:(St=L.imageTimeout)!==null&&St!==void 0?St:15e3,proxy:L.proxy,useCORS:(xr=L.useCORS)!==null&&xr!==void 0?xr:!1},ye=oe({logging:(on=L.logging)!==null&&on!==void 0?on:!0,cache:L.cache},ae),_e={windowWidth:(mn=L.windowWidth)!==null&&mn!==void 0?mn:R.innerWidth,windowHeight:(nr=L.windowHeight)!==null&&nr!==void 0?nr:R.innerHeight,scrollX:(Qr=L.scrollX)!==null&&Qr!==void 0?Qr:R.pageXOffset,scrollY:(ss=L.scrollY)!==null&&ss!==void 0?ss:R.pageYOffset},Te=new b(_e.scrollX,_e.scrollY,_e.windowWidth,_e.windowHeight),Ee=new Hu(ye,Te),De=(an=L.foreignObjectRendering)!==null&&an!==void 0?an:!1,je={allowTaint:(An=L.allowTaint)!==null&&An!==void 0?An:!1,onclone:L.onclone,ignoreElements:L.ignoreElements,inlineImages:De,copyStyles:De},Ee.logger.debug("Starting document clone with size "+Te.width+"x"+Te.height+" scrolled to "+-Te.left+","+-Te.top),We=new x(Ee,D,je),Je=We.clonedReferenceElement,Je?[4,We.toIFrame(P,Te)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return dt=Oi.sent(),At=Zt(Je)||iu(Je)?u(Je.ownerDocument):a(Ee,Je),ut=At.width,Lt=At.height,mt=At.left,gt=At.top,zt=Ku(Ee,Je,L.backgroundColor),Ot={canvas:L.canvas,backgroundColor:zt,scale:(li=(Gs=L.scale)!==null&&Gs!==void 0?Gs:R.devicePixelRatio)!==null&&li!==void 0?li:1,x:((os=L.x)!==null&&os!==void 0?os:0)+mt,y:((zs=L.y)!==null&&zs!==void 0?zs:0)+gt,width:(Vs=L.width)!==null&&Vs!==void 0?Vs:Math.ceil(ut),height:(Li=L.height)!==null&&Li!==void 0?Li:Math.ceil(Lt)},De?(Ee.logger.debug("Document cloned, using foreign object rendering"),Ht=new ju(Ee,Ot),[4,Ht.render(Je)]):[3,3];case 2:return Bt=Oi.sent(),[3,5];case 3:return Ee.logger.debug("Document cloned, element located at "+mt+","+gt+" with size "+ut+"x"+Lt+" using computed rendering"),Ee.logger.debug("Starting DOM parsing"),ht=zA(Ee,Je),zt===ht.styles.backgroundColor&&(ht.styles.backgroundColor=gn.TRANSPARENT),Ee.logger.debug("Starting renderer for element at "+Ot.x+","+Ot.y+" with size "+Ot.width+"x"+Ot.height),Ht=new Lu(Ee,Ot),[4,Ht.render(ht)];case 4:Bt=Oi.sent(),Oi.label=5;case 5:return(!((Xs=L.removeContainer)!==null&&Xs!==void 0)||Xs)&&(x.destroy(dt)||Ee.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ee.logger.debug("Finished rendering"),[2,Bt]}})})},Ku=function(D,L,P){var R=L.ownerDocument,ae=R.documentElement?vi(D,getComputedStyle(R.documentElement).backgroundColor):gn.TRANSPARENT,ye=R.body?vi(D,getComputedStyle(R.body).backgroundColor):gn.TRANSPARENT,_e=typeof P=="string"?vi(D,P):P===null?gn.TRANSPARENT:4294967295;return L===R.documentElement?On(ae)?On(ye)?_e:ye:ae:_e};return Nu})},24334:function(rt,ke,J){var oe,ie;(function(t,C){rt.exports=C(t)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof J.g!="undefined"?J.g:this,function(t){"use strict";t=t||{};var C=t.Base64,b="2.6.4",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(H){for(var X={},G=0,ee=H.length;G<ee;G++)X[H.charAt(G)]=G;return X}(a),A=String.fromCharCode,c=function(H){if(H.length<2){var X=H.charCodeAt(0);return X<128?H:X<2048?A(192|X>>>6)+A(128|X&63):A(224|X>>>12&15)+A(128|X>>>6&63)+A(128|X&63)}else{var X=65536+(H.charCodeAt(0)-55296)*1024+(H.charCodeAt(1)-56320);return A(240|X>>>18&7)+A(128|X>>>12&63)+A(128|X>>>6&63)+A(128|X&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(H){return H.replace(h,c)},n=function(H){var X=[0,2,1][H.length%3],G=H.charCodeAt(0)<<16|(H.length>1?H.charCodeAt(1):0)<<8|(H.length>2?H.charCodeAt(2):0),ee=[a.charAt(G>>>18),a.charAt(G>>>12&63),X>=2?"=":a.charAt(G>>>6&63),X>=1?"=":a.charAt(G&63)];return ee.join("")},r=t.btoa&&typeof t.btoa=="function"?function(H){return t.btoa(H)}:function(H){if(H.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return H.replace(/[\s\S]{1,3}/g,n)},s=function(H){return r(o(String(H)))},l=function(H){return H.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},d=function(H,X){return X?l(s(H)):s(H)},p=function(H){return d(H,!0)},g;t.Uint8Array&&(g=function(H,X){for(var G="",ee=0,Z=H.length;ee<Z;ee+=3){var Ae=H[ee],U=H[ee+1],W=H[ee+2],le=Ae<<16|U<<8|W;G+=a.charAt(le>>>18)+a.charAt(le>>>12&63)+(typeof U!="undefined"?a.charAt(le>>>6&63):"=")+(typeof W!="undefined"?a.charAt(le&63):"=")}return X?l(G):G});var m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(H){switch(H.length){case 4:var X=(7&H.charCodeAt(0))<<18|(63&H.charCodeAt(1))<<12|(63&H.charCodeAt(2))<<6|63&H.charCodeAt(3),G=X-65536;return A((G>>>10)+55296)+A((G&1023)+56320);case 3:return A((15&H.charCodeAt(0))<<12|(63&H.charCodeAt(1))<<6|63&H.charCodeAt(2));default:return A((31&H.charCodeAt(0))<<6|63&H.charCodeAt(1))}},_=function(H){return H.replace(m,v)},O=function(H){var X=H.length,G=X%4,ee=(X>0?u[H.charAt(0)]<<18:0)|(X>1?u[H.charAt(1)]<<12:0)|(X>2?u[H.charAt(2)]<<6:0)|(X>3?u[H.charAt(3)]:0),Z=[A(ee>>>16),A(ee>>>8&255),A(ee&255)];return Z.length-=[0,0,2,1][G],Z.join("")},F=t.atob&&typeof t.atob=="function"?function(H){return t.atob(H)}:function(H){return H.replace(/\S{1,4}/g,O)},T=function(H){return F(String(H).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(H){return _(F(H))},I=function(H){return String(H).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(H){return S(I(H))},M;t.Uint8Array&&(M=function(H){return Uint8Array.from(T(I(H)),function(X){return X.charCodeAt(0)})});var N=function(){var H=t.Base64;return t.Base64=C,H};if(t.Base64={VERSION:b,atob:T,btoa:r,fromBase64:E,toBase64:d,utob:o,encode:d,encodeURI:p,btou:_,decode:E,noConflict:N,fromUint8Array:g,toUint8Array:M},typeof Object.defineProperty=="function"){var V=function(H){return{value:H,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",V(function(){return E(this)})),Object.defineProperty(String.prototype,"toBase64",V(function(H){return d(this,H)})),Object.defineProperty(String.prototype,"toBase64URI",V(function(){return d(this,!0)}))}}return t.Meteor&&(Base64=t.Base64),rt.exports?rt.exports.Base64=t.Base64:(oe=[],ie=function(){return t.Base64}.apply(ke,oe),ie!==void 0&&(rt.exports=ie)),{Base64:t.Base64}})},2859:function(rt,ke,J){"use strict";J.d(ke,{hP:function(){return te}});var oe=function($,B){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,q){k.__proto__=q}||function(k,q){for(var ne in q)Object.prototype.hasOwnProperty.call(q,ne)&&(k[ne]=q[ne])})($,B)};function ie($,B){function k(){this.constructor=$}oe($,B),$.prototype=B===null?Object.create(B):(k.prototype=B.prototype,new k)}function t($,B,k,q){return new(k||(k=Promise))(function(ne,Q){function z(ge){try{re(q.next(ge))}catch(Be){Q(Be)}}function Y(ge){try{re(q.throw(ge))}catch(Be){Q(Be)}}function re(ge){var Be;ge.done?ne(ge.value):(Be=ge.value,Be instanceof k?Be:new k(function(Oe){Oe(Be)})).then(z,Y)}re((q=q.apply($,B||[])).next())})}function C($,B){var k,q,ne,Q,z={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return Q={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function Y(re){return function(ge){return function(Be){if(k)throw new TypeError("Generator is already executing.");for(;z;)try{if(k=1,q&&(ne=2&Be[0]?q.return:Be[0]?q.throw||((ne=q.return)&&ne.call(q),0):q.next)&&!(ne=ne.call(q,Be[1])).done)return ne;switch(q=0,ne&&(Be=[2&Be[0],ne.value]),Be[0]){case 0:case 1:ne=Be;break;case 4:return z.label++,{value:Be[1],done:!1};case 5:z.label++,q=Be[1],Be=[0];continue;case 7:Be=z.ops.pop(),z.trys.pop();continue;default:if(ne=z.trys,!((ne=ne.length>0&&ne[ne.length-1])||Be[0]!==6&&Be[0]!==2)){z=0;continue}if(Be[0]===3&&(!ne||Be[1]>ne[0]&&Be[1]<ne[3])){z.label=Be[1];break}if(Be[0]===6&&z.label<ne[1]){z.label=ne[1],ne=Be;break}if(ne&&z.label<ne[2]){z.label=ne[2],z.ops.push(Be);break}ne[2]&&z.ops.pop(),z.trys.pop();continue}Be=B.call($,z)}catch(Oe){Be=[6,Oe],q=0}finally{k=ne=0}if(5&Be[0])throw Be[1];return{value:Be[0]?Be[1]:void 0,done:!0}}([re,ge])}}}function b(){for(var $=0,B=0,k=arguments.length;B<k;B++)$+=arguments[B].length;var q=Array($),ne=0;for(B=0;B<k;B++)for(var Q=arguments[B],z=0,Y=Q.length;z<Y;z++,ne++)q[ne]=Q[z];return q}var a=function(){function $(){}return $.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$.setAttributes=function(B,k){for(var q=0,ne=k;q<ne.length;q++){var Q=ne[q],z=Q[0],Y=Q[1];B.setAttribute(z,Y)}},$.createRect=function(B,k,q){var ne=document.createElementNS("http://www.w3.org/2000/svg","rect");return ne.setAttribute("width",B.toString()),ne.setAttribute("height",k.toString()),q&&$.setAttributes(ne,q),ne},$.createLine=function(B,k,q,ne,Q){var z=document.createElementNS("http://www.w3.org/2000/svg","line");return z.setAttribute("x1",B.toString()),z.setAttribute("y1",k.toString()),z.setAttribute("x2",q.toString()),z.setAttribute("y2",ne.toString()),Q&&$.setAttributes(z,Q),z},$.createPolygon=function(B,k){var q=document.createElementNS("http://www.w3.org/2000/svg","polygon");return q.setAttribute("points",B),k&&$.setAttributes(q,k),q},$.createCircle=function(B,k){var q=document.createElementNS("http://www.w3.org/2000/svg","circle");return q.setAttribute("cx",(B/2).toString()),q.setAttribute("cy",(B/2).toString()),q.setAttribute("r",B.toString()),k&&$.setAttributes(q,k),q},$.createEllipse=function(B,k,q){var ne=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ne.setAttribute("cx",(B/2).toString()),ne.setAttribute("cy",(k/2).toString()),ne.setAttribute("rx",(B/2).toString()),ne.setAttribute("ry",(k/2).toString()),q&&$.setAttributes(ne,q),ne},$.createGroup=function(B){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return B&&$.setAttributes(k,B),k},$.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$.createMarker=function(B,k,q,ne,Q,z,Y){var re=document.createElementNS("http://www.w3.org/2000/svg","marker");return $.setAttributes(re,[["id",B],["orient",k],["markerWidth",q.toString()],["markerHeight",ne.toString()],["refX",Q.toString()],["refY",z.toString()]]),re.appendChild(Y),re},$.createText=function(B){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),B&&$.setAttributes(k,B),k},$.createTSpan=function(B,k){var q=document.createElementNS("http://www.w3.org/2000/svg","tspan");return q.textContent=B,k&&$.setAttributes(q,k),q},$.createImage=function(B){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return B&&$.setAttributes(k,B),k},$.createPoint=function(B,k){var q=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return q.x=B,q.y=k,q},$.createPath=function(B,k){var q=document.createElementNS("http://www.w3.org/2000/svg","path");return q.setAttribute("d",B),k&&$.setAttributes(q,k),q},$}(),u=function(){function $(){}return $.addKey=function(B){$.key=B},Object.defineProperty($,"isLicensed",{get:function(){return!!$.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($.key)},enumerable:!1,configurable:!0}),$}(),A=function(){function $(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $.prototype.rasterize=function(B,k,q){var ne=this;return new Promise(function(Q){var z=q!==void 0?q:document.createElement("canvas");B===null&&(ne.markersOnly=!0,ne.naturalSize=!1);var Y=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.setAttribute("xmlns","http://www.w3.org/2000/svg"),Y.setAttribute("width",k.width.baseVal.valueAsString),Y.setAttribute("height",k.height.baseVal.valueAsString),Y.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),Y.innerHTML=k.innerHTML,ne.naturalSize===!0?(Y.width.baseVal.value=B.naturalWidth,Y.height.baseVal.value=B.naturalHeight):ne.width!==void 0&&ne.height!==void 0&&(Y.width.baseVal.value=ne.width,Y.height.baseVal.value=ne.height),z.width=Y.width.baseVal.value,z.height=Y.height.baseVal.value;var re=Y.outerHTML,ge=z.getContext("2d");ne.markersOnly!==!0&&ge.drawImage(B,0,0,z.width,z.height);var Be=window.URL,Oe=new Image(z.width,z.height);Oe.setAttribute("crossOrigin","anonymous");var Le=new Blob([re],{type:"image/svg+xml"}),Pe=Be.createObjectURL(Le);Oe.onload=function(){ge.drawImage(Oe,0,0),Be.revokeObjectURL(Pe);var $e=z.toDataURL(ne.imageType,ne.imageQuality);Q($e)},Oe.src=Pe})},$}(),c=function(){},h=function(){function $(B){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+B+"_"}return Object.defineProperty($.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$.prototype.addClass=function(B){return this.styleSheet===void 0&&this.addStyleSheet(),B.name=""+this.classNamePrefix+B.localName,this.classes.push(B),this.styleSheet.sheet.insertRule("."+B.name+" {"+B.style+"}",this.styleSheet.sheet.cssRules.length),B},$.prototype.addRule=function(B){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(B),this.styleSheet.sheet.insertRule(B.selector+" {"+B.style+"}",this.styleSheet.sheet.cssRules.length)},$.prototype.addStyleSheet=function(){var B;this.styleSheet=document.createElement("style"),((B=this.styleSheetRoot)!==null&&B!==void 0?B:document.head).appendChild(this.styleSheet),this.addRule(new o("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new o("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new o("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new n("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new n("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},$.prototype.removeStyleSheet=function(){var B;this.styleSheet&&(((B=this.styleSheetRoot)!==null&&B!==void 0?B:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$}(),o=function($,B){this.selector=$,this.style=B},n=function($,B){this.localName=$,this.style=B},r=function(){function $(B,k,q,ne,Q){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=B,this.displayMode=k,this.markerItems=q,this.uiStyleSettings=ne,this.styles=Q,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $.prototype.show=function(B){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=B,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var q=document.createElement("div");q.className=this.toolbarBlockStyleClass.name,q.style.whiteSpace="nowrap",this.uiContainer.appendChild(q),this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(q,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Q){var z=document.createElement("div");z.className=""+k.toolbarButtonStyleClass.name,z.setAttribute("data-type-name",Q.typeName),z.innerHTML=Q.icon,z.addEventListener("click",function(){k.markerToolbarButtonClicked(z,Q)}),k.buttons.push(z),k.markerButtons.push(z)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ne=document.createElement("div");ne.className=this.toolbarBlockStyleClass.name,ne.style.whiteSpace="nowrap",ne.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ne),this.addActionButton(ne,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ne,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},$.prototype.addButtonClickListener=function(B){this.buttonClickListeners.push(B)},$.prototype.removeButtonClickListener=function(B){this.buttonClickListeners.indexOf(B)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(B),1)},$.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var B=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var k=0;k<this.markerButtons.length;k++)k<B||k===B&&this.markerButtons.length-1===B?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===B&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},$.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},$.prototype.resetButtonStyles=function(){var B=this;this.buttons.forEach(function(k){k.className=k.className.replace(B.uiStyleSettings.toolbarButtonStyleColorsClassName?B.uiStyleSettings.toolbarButtonStyleColorsClassName:B.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(B.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?B.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:B.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(B.uiStyleSettings.toolbarButtonStyleColorsClassName?B.uiStyleSettings.toolbarButtonStyleColorsClassName:B.toolbarButtonStyleColorsClass.name)})},$.prototype.addActionButton=function(B,k,q){var ne=this,Q=document.createElement("div");switch(Q.className=""+this.toolbarButtonStyleClass.name,Q.innerHTML=k,Q.setAttribute("data-action",q),Q.addEventListener("click",function(){ne.actionToolbarButtonClicked(Q,q)}),q){case"select":Q.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Q.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Q.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Q.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Q.style.fill=this.uiStyleSettings.closeButtonColor}B.appendChild(Q),this.buttons.push(Q)},$.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new n("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new n("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new n("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new n("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new n("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var B=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new n("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
|
|
|
padding: `+B+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new n("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new n("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new o("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new o("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},$.prototype.markerToolbarButtonClicked=function(B,k){this.setActiveButton(B),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(q){return q("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},$.prototype.actionToolbarButtonClicked=function(B,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(q){return q("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$.prototype.setActiveButton=function(B){this.resetButtonStyles(),B.className=B.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),B.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$.prototype.setActiveMarkerButton=function(B){var k=this.markerButtons.find(function(q){return q.getAttribute("data-type-name")===B});k&&this.setActiveButton(k)},$.prototype.setCurrentMarker=function(B){var k=this;this.currentMarker=B,this.buttons.filter(function(q){return/delete|notes/.test(q.getAttribute("data-action"))}).forEach(function(q){k.currentMarker===void 0?(q.style.fillOpacity="0.4",q.style.pointerEvents="none"):(q.style.fillOpacity="1",q.style.pointerEvents="all")})},$}(),s=function(){function $(B,k,q,ne){this.panels=[],this.panelButtons=[],this.markerjsContainer=B,this.displayMode=k,this.uiStyleSettings=q,this.styles=ne,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $.prototype.addStyles=function(){var B;this.toolboxStyleClass=this.styles.addClass(new n("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new n("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new n("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new n("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new n("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new n("toolbox-panel-row_colors",`
|
|
|
background-color: `+((B=this.uiStyleSettings.toolboxBackgroundColor)!==null&&B!==void 0?B:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new n("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
padding: `+k+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new n("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new n("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new o("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new o("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},$.prototype.show=function(B){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=B,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$.prototype.setPanelButtons=function(B){var k,q,ne=this;this.panels=B,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((k=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((q=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Q){var z;Q.uiStyleSettings=ne.uiStyleSettings;var Y=document.createElement("div");Y.className=ne.toolboxButtonStyleClass.name+" "+((z=ne.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&z!==void 0?z:ne.toolboxButtonStyleColorsClass.name),Y.innerHTML=Q.icon,Y.title=Q.title,Y.addEventListener("click",function(){ne.panelButtonClick(Q)}),ne.panelButtons.push(Y),ne.buttonRow.appendChild(Y)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$.prototype.panelButtonClick=function(B){var k=this,q=-1;if(B!==this.activePanel){q=this.panels.indexOf(B),this.panelRow.innerHTML="";var ne=B.getUi();ne.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ne),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=B}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){k.displayMode==="inline"?k.panelRow.style.display="none":k.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Q,z){var Y,re;Q.className=k.toolboxButtonStyleClass.name+" "+(z===q?""+((Y=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Y!==void 0?Y:k.toolboxActiveButtonStyleColorsClass.name):""+((re=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&re!==void 0?re:k.toolboxButtonStyleColorsClass.name))})},$}(),l=function($,B){this.title=$,this.icon=B},d=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return z.colors=[],z.addTransparent=!1,z.colorBoxes=[],z.colors=q,z.currentColor=ne,z.setCurrentColor=z.setCurrentColor.bind(z),z.getColorBox=z.getColorBox.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.overflow="hidden",q.style.whiteSpace="nowrap",this.colors.forEach(function(ne){var Q=k.getColorBox(ne);q.appendChild(Q),k.colorBoxes.push(Q)}),q},B.prototype.getColorBox=function(k){var q=this,ne=this.uiStyleSettings.toolbarHeight/4,Q=this.uiStyleSettings.toolbarHeight-ne,z=document.createElement("div");z.style.display="inline-block",z.style.boxSizing="content-box",z.style.width=Q-2+"px",z.style.height=Q-2+"px",z.style.padding="1px",z.style.marginRight="2px",z.style.marginBottom="2px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderRadius=(Q+2)/2+"px",z.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){q.setCurrentColor(k,z)});var Y=document.createElement("div");return Y.style.display="inline-block",Y.style.width=Q-2+"px",Y.style.height=Q-2+"px",Y.style.backgroundColor=k,Y.style.borderRadius=Q/2+"px",k==="transparent"&&(Y.style.fill=this.uiStyleSettings.toolboxAccentColor,Y.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),z.appendChild(Y),z},B.prototype.setCurrentColor=function(k,q){var ne=this;this.currentColor=k,this.colorBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},B}(l),p=function(){function $(B,k,q){this._state="new",this._isSelected=!1,this._container=B,this._overlayContainer=k,this.globalSettings=q,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$.prototype.ownsTarget=function(B){return!1},Object.defineProperty($.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$.prototype.pointerDown=function(B,k){},$.prototype.dblClick=function(B,k){},$.prototype.manipulate=function(B){},$.prototype.pointerUp=function(B){this.stateChanged()},$.prototype.dispose=function(){},$.prototype.addMarkerVisualToContainer=function(B){this.container.childNodes.length>0?this.container.insertBefore(B,this.container.childNodes[0]):this.container.appendChild(B)},$.prototype.getState=function(){return{typeName:$.typeName,state:this.state,notes:this.notes}},$.prototype.restoreState=function(B){this._state=B.state,this.notes=B.notes},$.prototype.scale=function(B,k){},$.prototype.colorChanged=function(B){this.onColorChanged&&this.onColorChanged(B),this.stateChanged()},$.prototype.fillColorChanged=function(B){this.onFillColorChanged&&this.onFillColorChanged(B),this.stateChanged()},$.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var B=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),B.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(B)&&this.onStateChanged(this)}},$.typeName="MarkerBase",$}(),g=function(){function $(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $.prototype.findGripByVisual=function(B){return this.topLeft.ownsTarget(B)?this.topLeft:this.topCenter.ownsTarget(B)?this.topCenter:this.topRight.ownsTarget(B)?this.topRight:this.centerLeft.ownsTarget(B)?this.centerLeft:this.centerRight.ownsTarget(B)?this.centerRight:this.bottomLeft.ownsTarget(B)?this.bottomLeft:this.bottomCenter.ownsTarget(B)?this.bottomCenter:this.bottomRight.ownsTarget(B)?this.bottomRight:void 0},$}(),m=function(){function $(){this.GRIP_SIZE=10,this.visual=a.createGroup(),this.visual.appendChild(a.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(a.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $.prototype.ownsTarget=function(B){return B===this.visual||B===this.visual.childNodes[0]||B===this.visual.childNodes[1]},$}(),v=function(){function $(){}return $.toITransformMatrix=function(B){return{a:B.a,b:B.b,c:B.c,d:B.d,e:B.e,f:B.f}},$.toSVGMatrix=function(B,k){return B.a=k.a,B.b=k.b,B.c=k.c,B.d=k.d,B.e=k.e,B.f=k.f,B},$}(),_=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.left=0,Q.top=0,Q.width=0,Q.height=0,Q.defaultSize={x:50,y:20},Q.offsetX=0,Q.offsetY=0,Q.rotationAngle=0,Q.CB_DISTANCE=10,Q._suppressMarkerCreateEvent=!1,Q.container.transform.baseVal.appendItem(a.createTransform()),Q.setupControlBox(),Q}return ie(B,$),Object.defineProperty(B.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var q=a.createTransform();this._visual.transform.baseVal.appendItem(q)},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(k){return!!$.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ne=this.unrotatePoint(k);if(this.manipulationStartX=ne.x,this.manipulationStartY=ne.y,this.offsetX=ne.x-this.left,this.offsetY=ne.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(q),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q)){this.activeGrip=this.rotatorGrip;var Q=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Q.x-this.width/2,this.top=Q.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},B.prototype.pointerUp=function(k){var q=this.state;$.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",q==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},B.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},B.prototype.manipulate=function(k){var q=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(q.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(q.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(q):this.state==="rotate"&&this.rotate(k)},B.prototype.resize=function(k){var q=this.manipulationStartLeft,ne=this.manipulationStartWidth,Q=this.manipulationStartTop,z=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:q=this.manipulationStartLeft+k.x-this.manipulationStartX,ne=this.manipulationStartWidth+this.manipulationStartLeft-q;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ne=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Q=this.manipulationStartTop+k.y-this.manipulationStartY,z=this.manipulationStartHeight+this.manipulationStartTop-Q;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:z=this.manipulationStartHeight+k.y-this.manipulationStartY}ne>=0?(this.left=q,this.width=ne):(this.left=q+ne,this.width=-ne),z>=0?(this.top=Q,this.height=z):(this.top=Q+z,this.height=-z),this.setSize()},B.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},B.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var q=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*q,this.applyRotation()}},B.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},B.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var q=this.container.getCTM(),ne=a.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform(q)).x,y:ne.y}},B.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var q=this.container.getCTM();q=q.inverse();var ne=a.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform(q)).x,y:ne.y}},B.prototype.select=function(){$.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){$.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=a.createGroup();var k=a.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=a.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=a.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new g,this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},B.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},B.prototype.createGrip=function(){var k=new m;return k.visual.transform.baseVal.appendItem(a.createTransform()),this.controlBox.appendChild(k.visual),k},B.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,q=-k/2,ne=q,Q=(this.width+this.CB_DISTANCE)/2-k/2,z=(this.height+this.CB_DISTANCE)/2-k/2,Y=this.height+this.CB_DISTANCE-k/2,re=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,q,ne),this.positionGrip(this.controlGrips.topCenter.visual,Q,ne),this.positionGrip(this.controlGrips.topRight.visual,re,ne),this.positionGrip(this.controlGrips.centerLeft.visual,q,z),this.positionGrip(this.controlGrips.centerRight.visual,re,z),this.positionGrip(this.controlGrips.bottomLeft.visual,q,Y),this.positionGrip(this.controlGrips.bottomCenter.visual,Q,Y),this.positionGrip(this.controlGrips.bottomRight.visual,re,Y),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Q,ne-3*this.CB_DISTANCE)},B.prototype.positionGrip=function(k,q,ne){var Q=k.transform.baseVal.getItem(0);Q.setTranslate(q,ne),k.transform.baseVal.replaceItem(Q,0)},B.prototype.hideControlBox=function(){this.controlBox.style.display="none"},B.prototype.showControlBox=function(){this.controlBox.style.display=""},B.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:v.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:v.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$.prototype.getState.call(this))},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.left=q.left,this.top=q.top,this.width=q.width,this.height=q.height,this.rotationAngle=q.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(v.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,q.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(v.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,q.containerTransformMatrix))},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q);var ne=this.rotatePoint({x:this.left,y:this.top}),Q=this.unrotatePoint({x:ne.x*k,y:ne.y*q});this.left=Q.x,this.top=Q.y,this.width=this.width*k,this.height=this.height*q,this.adjustControlBox()},B}(p),O=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.opacity=1,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual)},B.prototype.createVisual=function(){this.visual=a.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&a.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&a.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&a.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&a.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$.prototype.getState.call(this))},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.opacity=q.opacity,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.title="Rectangle marker",B}(_),F=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return z.widths=[],z.widthBoxes=[],z.widths=q,z.currentWidth=ne,z.setCurrentWidth=z.setCurrentWidth.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2",this.widths.forEach(function(ne){var Q=document.createElement("div");Q.style.display="flex",Q.style.flexGrow="2",Q.style.alignItems="center",Q.style.justifyContent="space-between",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=ne===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentWidth(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.innerText=ne.toString(),z.style.marginRight="5px",Q.appendChild(z);var Y=document.createElement("div");Y.style.minHeight="20px",Y.style.flexGrow="2",Y.style.display="flex",Y.style.alignItems="center";var re=document.createElement("hr");re.style.minWidth="20px",re.style.border="0px",re.style.borderTop=ne+"px solid "+k.uiStyleSettings.toolboxColor,re.style.flexGrow="2",Y.appendChild(re),Q.appendChild(Y),k.widthBoxes.push(Q)}),q},B.prototype.setCurrentWidth=function(k,q){var ne=this;this.currentWidth=k,this.widthBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},B}(l),T=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return z.styles=[],z.styleBoxes=[],z.styles=q,z.currentStyle=ne,z.setCurrentStyle=z.setCurrentStyle.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2",this.styles.forEach(function(ne){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="space-between",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.overflow="hidden",Q.style.maxWidth=100/k.styles.length-5+"%",Q.style.borderColor=ne===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentStyle(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.style.minHeight="20px",z.style.flexGrow="2",z.style.overflow="hidden";var Y=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ne!==""?'stroke-dasharray="'+ne+'"':"")+` />
|
|
|
</svg>`;z.innerHTML=Y,Q.appendChild(z),k.styleBoxes.push(Q)}),q},B.prototype.setCurrentStyle=function(k,q){var ne=this;this.currentStyle=k,this.styleBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},B}(l),S=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.strokePanel=new d("Line color",ne.defaultColorSet,ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="FrameMarker",B.title="Frame marker",B.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',B}(O),I=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},E=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.x1=0,Q.y1=0,Q.x2=0,Q.y2=0,Q.defaultLength=50,Q.manipulationStartX=0,Q.manipulationStartY=0,Q.manipulationStartX1=0,Q.manipulationStartY1=0,Q.manipulationStartX2=0,Q.manipulationStartY2=0,Q.setupControlBox(),Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!!$.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(q)?this.activeGrip=this.grip1:this.grip2.ownsTarget(q)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},B.prototype.pointerUp=function(k){var q=this.state;$.prototype.pointerUp.call(this,k),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(k),this._state="select",q==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},B.prototype.adjustVisual=function(){},B.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},B.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},B.prototype.select=function(){$.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){$.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=a.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){this.positionGrips()},B.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},B.prototype.createGrip=function(){var k=new m;return k.visual.transform.baseVal.appendItem(a.createTransform()),this.controlBox.appendChild(k.visual),k},B.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},B.prototype.positionGrip=function(k,q,ne){var Q=k.transform.baseVal.getItem(0);Q.setTranslate(q,ne),k.transform.baseVal.replaceItem(Q,0)},B.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$.prototype.getState.call(this))},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.x1=q.x1,this.y1=q.y1,this.x2=q.x2,this.y2=q.y2},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.x1=this.x1*k,this.y1=this.y1*q,this.x2=this.x2*k,this.y2=this.y2*q,this.adjustVisual(),this.adjustControlBox()},B}(p),M=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.strokePanel=new d("Line color",ne.defaultColorSet,ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.selectorLine=a.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=a.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},B.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),a.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),a.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.createVisual(),this.adjustVisual()},B.typeName="LineMarker",B.title="Line marker",B.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',B}(E),N=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return z.fonts=[],z.fontBoxes=[],z.fonts=q,z.currentFont=ne,z.setCurrentFont=z.setCurrentFont.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.overflow="hidden",q.style.flexGrow="2",this.fonts.forEach(function(ne){var Q=document.createElement("div");Q.style.display="inline-block",Q.style.alignItems="center",Q.style.justifyContent="space-between",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.overflow="hidden",Q.style.maxWidth=100/k.fonts.length-5+"%",Q.style.borderColor=ne===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentFont(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.style.display="flex",z.style.minHeight="20px",z.style.flexGrow="2",z.style.fontFamily=ne,z.style.overflow="hidden";var Y=document.createElement("div");Y.style.whiteSpace="nowrap",Y.style.overflow="hidden",Y.style.textOverflow="ellipsis",Y.innerHTML="The quick brown fox jumps over the lazy dog",z.appendChild(Y),Q.appendChild(z),k.fontBoxes.push(Q)}),q},B.prototype.setCurrentFont=function(k,q){var ne=this;this.currentFont=k,this.fontBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},B}(l),V=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.color="transparent",Q.padding=5,Q.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Q.text=Q.DEFAULT_TEXT,Q.isMoved=!1,Q.color=ne.defaultColor,Q.fontFamily=ne.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setColor=Q.setColor.bind(Q),Q.setFont=Q.setFont.bind(Q),Q.renderText=Q.renderText.bind(Q),Q.sizeText=Q.sizeText.bind(Q),Q.textEditDivClicked=Q.textEditDivClicked.bind(Q),Q.showTextEditor=Q.showTextEditor.bind(Q),Q.setSize=Q.setSize.bind(Q),Q.positionTextEditor=Q.positionTextEditor.bind(Q),Q.colorPanel=new d("Color",ne.defaultColorSet,ne.defaultColor),Q.colorPanel.onColorChanged=Q.setColor,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q}return ie(B,$),B.prototype.ownsTarget=function(k){if($.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var q=!1;return this.textElement.childNodes.forEach(function(ne){ne===k&&(q=!0)}),q},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.bgRectangle=a.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=a.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(a.createTransform()),this.textElement.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.renderText=function(){var k=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(q){k.textElement.appendChild(a.createTSpan(q.trim()===""?" ":q.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},B.prototype.getTextScale=function(){var k=this.textElement.getBBox(),q=1;if(k.width>0&&k.height>0){var ne=(1*this.width-this.width*this.padding*2/100)/k.width,Q=(1*this.height-this.height*this.padding*2/100)/k.height;q=Math.min(ne,Q)}return q},B.prototype.getTextPosition=function(k){var q=this.textElement.getBBox(),ne=0,Q=0;return q.width>0&&q.height>0&&(ne=(this.width-q.width*k)/2,Q=this.height/2-q.height*k/2),{x:ne,y:Q}},B.prototype.sizeText=function(){var k=this.textElement.getBBox(),q=this.getTextScale(),ne=this.getTextPosition(q);ne.y-=k.y*q,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ne.x+"px, "+ne.y+"px) scale("+q+", "+q+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ne.x,ne.y),this.textElement.transform.baseVal.getItem(1).setScale(q,q))},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},B.prototype.setSize=function(){$.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(a.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),a.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},B.prototype.pointerUp=function(k){var q=this.state;q==="creating"&&(this._suppressMarkerCreateEvent=!0),$.prototype.pointerUp.call(this,k),this.setSize(),(q==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(q){q.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var q=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&q>.9;)q-=.1,k.textEditor.style.fontSize=Math.max(q,.9)+"em"}),this.textEditor.addEventListener("keyup",function(q){q.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(q){if(q.clipboardData){var ne=q.clipboardData.getData("text"),Q=window.getSelection();if(!Q.rangeCount)return!1;Q.deleteFromDocument(),Q.getRangeAt(0).insertNode(document.createTextNode(ne)),q.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},B.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),q=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ne=this.textElement.getBBox(),Q={x:ne.width*k,y:ne.height*k};q.x-=Q.x/2,q.y-=Q.y/2,this.textEditor.style.top=q.y+"px",this.textEditor.style.left=q.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-q.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},B.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},B.prototype.select=function(){$.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},B.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$.prototype.deselect.call(this)},B.prototype.dblClick=function(k,q){$.prototype.dblClick.call(this,k,q),this.showTextEditor()},B.prototype.setColor=function(k){this.textElement&&a.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},B.prototype.setFont=function(k){this.textElement&&a.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},B.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},B.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){var q=k;this.color=q.color,this.fontFamily=q.fontFamily,this.padding=q.padding,this.text=q.text,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize(),this.sizeText(),this.positionTextEditor()},B.typeName="TextMarker",B.title="Text marker",B.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',B}(_),H=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.color="transparent",Q.lineWidth=3,Q.drawing=!1,Q.pixelRatio=1,Q.color=ne.defaultColor,Q.lineWidth=ne.defaultStrokeWidth,Q.pixelRatio=ne.freehandPixelRatio,Q.setColor=Q.setColor.bind(Q),Q.addCanvas=Q.addCanvas.bind(Q),Q.finishCreation=Q.finishCreation.bind(Q),Q.setLineWidth=Q.setLineWidth.bind(Q),Q.colorPanel=new d("Color",ne.defaultColorSet,ne.defaultColor),Q.colorPanel.onColorChanged=Q.setColor,Q.lineWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.lineWidthPanel.onWidthChanged=Q.setLineWidth,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.drawingImage=a.createImage(),this.visual.appendChild(this.drawingImage);var k=a.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(k.x,k.y),this.drawing=!0):$.prototype.pointerDown.call(this,k,q)},B.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),a.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),a.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$.prototype.pointerUp.call(this,k)},B.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},B.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$.prototype.select.call(this)},B.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$.prototype.deselect.call(this)},B.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),q=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ne=q[0],Q=q[1],z=q[2],Y=q[3],re=!1,ge=0;ge<this.canvasElement.height;ge++)for(var Be=0;Be<this.canvasElement.width;Be++)k.data[ge*this.canvasElement.width*4+4*Be+3]>0&&(re=!0,ge<Q&&(Q=ge),Be<ne&&(ne=Be),ge>Y&&(Y=ge),Be>z&&(z=Be));if(re){this.left=ne/this.pixelRatio,this.top=Q/this.pixelRatio,this.width=(z-ne)/this.pixelRatio,this.height=(Y-Q)/this.pixelRatio;var Oe=document.createElement("canvas");Oe.width=z-ne,Oe.height=Y-Q,Oe.getContext("2d").putImageData(this.canvasContext.getImageData(ne,Q,z-ne,Y-Q),0,0),this.drawingImgUrl=Oe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},B.prototype.setDrawingImage=function(){a.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),a.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},B.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},B.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){this.createVisual(),$.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setDrawingImage()},B.typeName="FreehandMarker",B.title="Freehand marker",B.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',B}(_),X=function($){function B(k,q,ne){var Q=$.call(this,k,ne||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Q.typeBoxes=[],Q.currentType=q,Q.setCurrentType=Q.setCurrentType.bind(Q),Q}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2";for(var ne=function(Y){var re="both";switch(Y){case 0:re="both";break;case 1:re="start";break;case 2:re="end";break;case 3:re="none"}var ge=document.createElement("div");if(ge.style.display="flex",ge.style.flexGrow="2",ge.style.alignItems="center",ge.style.justifyContent="space-between",ge.style.padding="5px",ge.style.borderWidth="2px",ge.style.borderStyle="solid",ge.style.borderColor=re===Q.currentType?Q.uiStyleSettings.toolboxAccentColor:"transparent",ge.addEventListener("click",function(){k.setCurrentType(re,ge)}),q.appendChild(ge),re==="both"||re==="start"){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.minHeight="20px",Be.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Be.style.marginLeft="5px",ge.appendChild(Be)}var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.style.flexGrow="2";var Le=document.createElement("hr");if(Le.style.minWidth="20px",Le.style.border="0px",Le.style.borderTop="3px solid "+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee"),Le.style.flexGrow="2",Oe.appendChild(Le),ge.appendChild(Oe),re==="both"||re==="end"){var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.alignItems="center",Pe.style.minHeight="20px",Pe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Pe.style.marginRight="5px",ge.appendChild(Pe)}Q.typeBoxes.push(ge)},Q=this,z=0;z<4;z++)ne(z);return q},B.prototype.setCurrentType=function(k,q){var ne=this;this.currentType=k,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(l),G=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new X("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},B.prototype.getArrowPoints=function(k,q){var ne=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return k-ne/2+","+(q+Q/2)+" "+k+","+(q-Q/2)+" "+(k+ne/2)+","+(q+Q/2)},B.prototype.createTips=function(){this.arrow1=a.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=a.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",a.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),a.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var q=this.arrow1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(q,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},B.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.arrowType=q.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',B}(M),ee=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor=ne.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new d("Color",ne.defaultColorSet,ne.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="CoverMarker",B.title="Cover marker",B.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',B}(O),Z=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return z.opacities=[],z.opacityBoxes=[],z.opacities=q,z.currentOpacity=ne,z.setCurrentOpacity=z.setCurrentOpacity.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2",q.style.justifyContent="space-between",this.opacities.forEach(function(ne){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=ne===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentOpacity(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.innerText=100*ne+"%",Q.appendChild(z),k.opacityBoxes.push(Q)}),q},B.prototype.setCurrentOpacity=function(k,q){var ne=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(l),Ae=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=ne.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=ne.defaultHighlightOpacity,Q.fillPanel=new d("Color",ne.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="HighlightMarker",B.title="Highlight marker",B.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',B}(ee),U='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',W='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',le=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=ne.defaultStrokeColor,Q.bgColor=ne.defaultFillColor,Q.fontFamily=ne.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new d("Text color",ne.defaultColorSet,Q.color,U),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new d("Fill color",ne.defaultColorSet,Q.bgColor,W),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new m,Q.tipGrip.visual.transform.baseVal.appendItem(a.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return ie(B,$),B.prototype.ownsTarget=function(k){return $.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},B.prototype.createTip=function(){a.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=a.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(k,q){this.state==="new"&&$.prototype.pointerDown.call(this,k,q),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(q)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$.prototype.pointerDown.call(this,k,q)},B.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$.prototype.pointerUp.call(this,k);else{var q=this.state==="creating";$.prototype.pointerUp.call(this,k),this.setTipPoints(q),this.positionTip()}},B.prototype.manipulate=function(k){if(this.tipMoving){var q=this.unrotatePoint(k);this.tipPosition={x:q.x-this.manipulationStartLeft,y:q.y-this.manipulationStartTop},this.positionTip()}else $.prototype.manipulate.call(this,k)},B.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(a.setAttributes(this.bgRectangle,[["fill",k]]),a.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},B.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},B.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var q=Math.min(this.height/2,15),ne=this.height/5;k&&(this.tipPosition={x:q+ne/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Q<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ne=this.width/5,q=Math.min(this.width/2,15),this.tipBase1Position={x:q,y:0},this.tipBase2Position={x:q+ne,y:0}):(this.tipBase1Position={x:0,y:q},this.tipBase2Position={x:0,y:q+ne}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Q<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ne=this.width/5,q=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-q-ne,y:0},this.tipBase2Position={x:this.width-q,y:0}):(this.tipBase1Position={x:this.width,y:q},this.tipBase2Position={x:this.width,y:q+ne}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Q<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ne=this.width/5,q=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-q-ne,y:this.height},this.tipBase2Position={x:this.width-q,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-q-ne},this.tipBase2Position={x:this.width,y:this.height-q}):Q<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ne=this.width/5,q=Math.min(this.width/2,15),this.tipBase1Position={x:q,y:this.height},this.tipBase2Position={x:q+ne,y:this.height}):(this.tipBase1Position={x:0,y:this.height-q},this.tipBase2Position={x:0,y:this.height-q-ne})},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.positionTip()},B.prototype.positionTip=function(){a.setAttributes(this.tip,[["points",this.getTipPoints()]]);var k=this.tipGrip.visual.transform.baseVal.getItem(0);k.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(k,0)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.select=function(){this.positionTip(),$.prototype.select.call(this)},B.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){var q=k;this.bgColor=q.bgColor,this.tipPosition=q.tipPosition,$.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*q},this.positionTip()},B.typeName="CalloutMarker",B.title="Callout marker",B.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',B}(V),he=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.opacity=1,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.setOpacity=Q.setOpacity.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual)},B.prototype.createVisual=function(){this.visual=a.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&a.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&a.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&a.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&a.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.opacity=q.opacity,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="EllipseMarker",B.title="Ellipse marker",B.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',B}(_),ue=function($){function B(k,q,ne){return $.call(this,k,q,ne)||this}return ie(B,$),Object.defineProperty(B.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},B.prototype.createTips=function(){this.tip1=a.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip1),this.tip2=a.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(a.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),q=this.tip1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(q,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',B}(M),pe=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokePanel.colors=ne.defaultColorSet,Q.fillColor="transparent",Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',B}(he),fe=function(){function $(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},$.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},$.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$}(),ce=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.strokePanel=new d("Line color",ne.defaultColorSet,ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.selectorCurve=a.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=a.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(q)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),a.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),a.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){$.prototype.setupControlBox.call(this),this.curveControlLine1=a.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=a.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){$.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},B.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),$.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},B.prototype.scale=function(k,q){this.curveX=this.curveX*k,this.curveY=this.curveY*q,$.prototype.scale.call(this,k,q)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.curveX=q.curveX,this.curveY=q.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',B}(E),be=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.textColor="transparent",Q.fontSize="1rem",Q.isMoved=!1,Q.captionText="Caption",Q.PADDING=5,Q.captionBoxWidth=0,Q.captionBoxHeight=0,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.textColor=ne.defaultStrokeColor,Q.fontFamily=ne.defaultFontFamily,Q.fontSize=ne.defaultCaptionFontSize,Q.captionText=ne.defaultCaptionText,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.sizeCaption=Q.sizeCaption.bind(Q),Q.setCaptionText=Q.setCaptionText.bind(Q),Q.showTextEditor=Q.showTextEditor.bind(Q),Q.positionTextEditor=Q.positionTextEditor.bind(Q),Q.finishTextEditing=Q.finishTextEditing.bind(Q),Q.setFont=Q.setFont.bind(Q),Q.setTextColor=Q.setTextColor.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),Q.strokeColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.textColorPanel=new d("Text color",ne.defaultColorSet,Q.textColor,U),Q.textColorPanel.onColorChanged=Q.setTextColor,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=a.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=a.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=a.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},B.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),a.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),a.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},B.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(q){q.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(q){q.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(q){q.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},B.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},B.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},B.prototype.setFont=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},B.prototype.setTextColor=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.dblClick=function(k,q){$.prototype.dblClick.call(this,k,q),this.showTextEditor()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&a.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&a.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&a.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&a.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},$.prototype.getState.call(this));return k.typeName=this.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.textColor=q.textColor,this.fontFamily=q.fontFamily,this.captionText=q.captionText,this.fontSize=q.fontSize,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="CaptionFrameMarker",B.title="Caption frame marker",B.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',B}(_),Ce=function(){function $(B,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=k}return Object.defineProperty($.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$.prototype.preventDefault=function(){this._defaultPrevented=!0},$}(),xe=function($){function B(k,q,ne){var Q=$.call(this,k,!1)||this;return Q.dataUrl=q,Q.state=ne,Q}return ie(B,$),B}(Ce),Se=function($){function B(k,q,ne){ne===void 0&&(ne=!1);var Q=$.call(this,k,ne)||this;return Q.marker=q,Q}return ie(B,$),B}(Ce),me=function(){function $(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return $.prototype.addEventListener=function(B,k){this[B].push(k)},$.prototype.removeEventListener=function(B,k){var q=this[B].indexOf(k);q>-1&&this[B].splice(q,1)},$}(),te=function(){function $(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new I,this._isOpen=!1,this.undoRedoManager=new fe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new me,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$.instanceCounter++,this.styles=new h(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty($.prototype,"ALL_MARKER_TYPES",{get:function(){return[S,H,G,V,pe,he,Ae,le,ue,ee,M,ce,be]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[S,H,G,V,he,Ae,le]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"BASIC_MARKER_TYPES",{get:function(){return[S,H,G,V,Ae]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var k=this;this._availableMarkerTypes.splice(0),B.forEach(function(q){if(typeof q=="string"){var ne=k.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===q});ne!==void 0&&k._availableMarkerTypes.push(ne)}else k._availableMarkerTypes.push(q)})},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),u.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&c.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=c.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new Ce(B))})},$.prototype.render=function(){return t(this,void 0,void 0,function(){var B;return C(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(B=new A).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},$.prototype.close=function(B){var k=this;if(B===void 0&&(B=!1),this.isOpen){var q=!1;B||this.eventListeners.beforeclose.forEach(function(ne){var Q=new Ce(k,!0);ne(Q),Q.defaultPrevented&&(q=!0)}),q||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Ce(k))}),this.detachEvents(),this._isOpen=!1)}},$.prototype.addMarkersToToolbar=function(){for(var B,k=[],q=0;q<arguments.length;q++)k[q]=arguments[q];(B=this._availableMarkerTypes).push.apply(B,k)},$.prototype.addRenderEventListener=function(B){this.addEventListener("render",function(k){B(k.dataUrl,k.state)})},$.prototype.removeRenderEventListener=function(B){},$.prototype.addCloseEventListener=function(B){this.addEventListener("close",function(){B()})},$.prototype.removeCloseEventListener=function(B){},$.prototype.setupResizeObserver=function(){var B=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){B.resize(B.target.clientWidth,B.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return B.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$.prototype.onPopupTargetResize=function(){var B=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/B>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,q=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/B;this.resize(k,q)},$.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$.prototype.resize=function(B,k){this._isResizing=!0;var q=B/this.imageWidth,ne=k/this.imageHeight;this.imageWidth=Math.round(B),this.imageHeight=Math.round(k),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(q,ne),this._isResizing=!1},$.prototype.scaleMarkers=function(B,k){var q,ne=this;this._currentMarker&&this._currentMarker instanceof V?this._currentMarker.scale(B,k):(q=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Q){Q!==ne._currentMarker&&Q.scale(B,k)}),q!==void 0&&this.setCurrentMarker(q)},$.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},$.prototype.setTopLeft=function(){var B=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=B.left-k.left,this.top=B.top-k.top},$.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},$.prototype.addDefs=function(){for(var B,k=[],q=0;q<arguments.length;q++)k[q]=arguments[q];this.defs=a.createDefs(),this.addDefsToImage(),(B=this.defs).append.apply(B,k)},$.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},$.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},$.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},$.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var B=document.createElement("a");B.href="https://markerjs.com/",B.target="_blank",B.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},$.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},$.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var B=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new r(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new s(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$.prototype.removeMarker=function(B){this.markerImage.removeChild(B.container),this.markers.indexOf(B)>-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},$.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},$.prototype.toolbarButtonClicked=function(B,k){if(B==="marker"&&k!==void 0)this.createNewMarker(k);else if(B==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},$.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var Q=new Se(B,B._currentMarker,!0);ne(Q),Q.defaultPrevented&&(k=!0)}),!k){var q=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new Se(B,q))})}}},$.prototype.clear=function(){var B=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(z){var Y=new Se(B,void 0,!0);z(Y),Y.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var q=function(z){var Y=ne.markers[z];ne.setCurrentMarker(ne.markers[z]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(re){return re(new Se(B,Y))})},ne=this,Q=this.markers.length-1;Q>=0;Q--)q(Q);this.addUndoStep()}},Object.defineProperty($.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$.prototype.showNotesEditor=function(){var B;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},$.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},$.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),q=this.undoRedoManager.getLastUndoStep();if(!q||q.width===k.width&&q.height===k.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ne<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Q){return Q(new Ce(B))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(Q){return Q(new Ce(B))})}},$.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$.prototype.undoStep=function(){var B=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(q){return q(new Ce(B))}))},$.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$.prototype.redoStep=function(){var B=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(q){return q(new Ce(B))}))},$.prototype.stepZoom=function(){var B=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=B<this.zoomSteps.length-1?this.zoomSteps[B+1]:this.zoomSteps[0]},$.prototype.panTo=function(B){this.contentDiv.scrollBy({left:this.prevPanPoint.x-B.x,top:this.prevPanPoint.y-B.y}),this.prevPanPoint=B},$.prototype.startRenderAndClose=function(){return t(this,void 0,void 0,function(){var B,k,q=this;return C(this,function(ne){switch(ne.label){case 0:return[4,this.render()];case 1:return B=ne.sent(),k=this.getState(),this.eventListeners.render.forEach(function(Q){return Q(new xe(q,B,k))}),this.close(!0),[2]}})})},$.prototype.getState=function(B){B===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(q){return k.markers.push(q.getState())}),k},$.prototype.restoreState=function(B){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);B.markers.forEach(function(q){var ne=k._availableMarkerTypes.find(function(z){return z.typeName===q.typeName});if(ne!==void 0){var Q=k.addNewMarker(ne);Q.restoreState(q),k.markers.push(Q)}}),B.width&&B.height&&(B.width!==this.imageWidth||B.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/B.width,this.imageHeight/B.height),this.eventListeners.restorestate.forEach(function(q){return q(new Ce(k))})},$.prototype.addNewMarker=function(B){var k=a.createGroup();return this.markerImage.appendChild(k),new B(k,this.overlayContainer,this.settings)},$.prototype.createNewMarker=function(B){var k,q=this;(k=typeof B=="string"?this._availableMarkerTypes.find(function(ne){return ne.typeName===B}):B)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(k),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(k.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ne){return ne(new Se(q,q._currentMarker))}))},$.prototype.markerCreated=function(B){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(B),this.setCurrentMarker(B),B instanceof H&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(H):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(q){return q(new Se(k,k._currentMarker))})},$.prototype.colorChanged=function(B){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=B,this.settings.defaultStrokeColor=B)},$.prototype.fillColorChanged=function(B){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=B)},$.prototype.markerStateChanged=function(B){var k=this;this.eventListeners.markerchange.forEach(function(q){return q(new Se(k,B))})},$.prototype.setCurrentMarker=function(B){var k=this;this._currentMarker!==B&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(q){return q(new Se(k,k._currentMarker))})),this._currentMarker=B,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(q){return q(new Se(k,k._currentMarker))}))},$.prototype.onPointerDown=function(B){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||B.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var k=this.markers.find(function(q){return q.ownsTarget(B.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(B.clientX,B.clientY),B.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:B.clientX,y:B.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(B.clientX,B.clientY))},$.prototype.onDblClick=function(B){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(q){return q.ownsTarget(B.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(B.clientX,B.clientY),B.target):this.setCurrentMarker()}},$.prototype.onPointerMove=function(B){this.touchPoints!==1&&B.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||B.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(B.clientX,B.clientY)):this.zoomLevel>1&&this.panTo({x:B.clientX,y:B.clientY}))},$.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},$.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},$.prototype.clientToLocalCoordinates=function(B,k){var q=this.markerImage.getBoundingClientRect();return{x:(B-q.left)/this.zoomLevel,y:(k-q.top)/this.zoomLevel}},$.prototype.onWindowResize=function(){this.positionUI()},$.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},$.prototype.addLicenseKey=function(B){u.addKey(B)},$.prototype.addEventListener=function(B,k){this.eventListeners.addEventListener(B,k)},$.prototype.removeEventListener=function(B,k){this.eventListeners.removeEventListener(B,k)},$.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new Ce(B))}))},$.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new Ce(B))}))},$.instanceCounter=0,$}()},2637:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),Object.defineProperty(ke,"DraggableCore",{enumerable:!0,get:function(){return A.default}}),ke.default=void 0;var oe=n(J(59301)),ie=h(J(12708)),t=h(J(4676)),C=h(J(57780)),b=J(13957),a=J(9479),u=J(36641),A=h(J(80486)),c=h(J(94187));function h(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(o=function(_){return _?v:m})(g)}function n(g,m){if(!m&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=o(m);if(v&&v.has(g))return v.get(g);var _={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in g)if(F!=="default"&&Object.prototype.hasOwnProperty.call(g,F)){var T=O?Object.getOwnPropertyDescriptor(g,F):null;T&&(T.get||T.set)?Object.defineProperty(_,F,T):_[F]=g[F]}return _.default=g,v&&v.set(g,_),_}function r(){return r=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(g[_]=v[_])}return g},r.apply(this,arguments)}function s(g,m,v){return m=l(m),m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v,g}function l(g){var m=d(g,"string");return typeof m=="symbol"?m:String(m)}function d(g,m){if(typeof g!="object"||g===null)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var _=v.call(g,m||"default");if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}class p extends oe.Component{static getDerivedStateFromProps(m,v){let{position:_}=m,{prevPropsPosition:O}=v;return _&&(!O||_.x!==O.x||_.y!==O.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:_,prevPropsPosition:O}),{x:_.x,y:_.y,prevPropsPosition:Ui({},_)}):null}constructor(m){super(m),s(this,"onDragStart",(v,_)=>{if((0,c.default)("Draggable: onDragStart: %j",_),this.props.onStart(v,(0,a.createDraggableData)(this,_))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),s(this,"onDrag",(v,_)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",_);const O=(0,a.createDraggableData)(this,_),F={x:O.x,y:O.y,slackX:0,slackY:0};if(this.props.bounds){const{x:S,y:I}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[E,M]=(0,a.getBoundPosition)(this,F.x,F.y);F.x=E,F.y=M,F.slackX=this.state.slackX+(S-F.x),F.slackY=this.state.slackY+(I-F.y),O.x=F.x,O.y=F.y,O.deltaX=F.x-this.state.x,O.deltaY=F.y-this.state.y}if(this.props.onDrag(v,O)===!1)return!1;this.setState(F)}),s(this,"onDragStop",(v,_)=>{if(!this.state.dragging||this.props.onStop(v,(0,a.createDraggableData)(this,_))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",_);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:S,y:I}=this.props.position;F.x=S,F.y=I}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:m.position?m.position.x:m.defaultPosition.x,y:m.position?m.position.y:m.defaultPosition.y,prevPropsPosition:Ui({},m.position),slackX:0,slackY:0,isElementSVG:!1},m.position&&!(m.onDrag||m.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var m,v;return(m=(v=this.props)===null||v===void 0||(v=v.nodeRef)===null||v===void 0?void 0:v.current)!==null&&m!==void 0?m:t.default.findDOMNode(this)}render(){const U=this.props,{axis:m,bounds:v,children:_,defaultPosition:O,defaultClassName:F,defaultClassNameDragging:T,defaultClassNameDragged:S,position:I,positionOffset:E,scale:M}=U,N=yu(U,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let V={},H=null;const G=!!!I||this.state.dragging,ee=I||O,Z={x:(0,a.canDragX)(this)&&G?this.state.x:ee.x,y:(0,a.canDragY)(this)&&G?this.state.y:ee.y};this.state.isElementSVG?H=(0,b.createSVGTransform)(Z,E):V=(0,b.createCSSTransform)(Z,E);const Ae=(0,C.default)(_.props.className||"",F,{[T]:this.state.dragging,[S]:this.state.dragged});return oe.createElement(A.default,r({},N,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),oe.cloneElement(oe.Children.only(_),{className:Ae,style:Ui(Ui({},_.props.style),V),transform:H}))}}ke.default=p,s(p,"displayName","Draggable"),s(p,"propTypes",au(Ui({},A.default.propTypes),{axis:ie.default.oneOf(["both","x","y","none"]),bounds:ie.default.oneOfType([ie.default.shape({left:ie.default.number,right:ie.default.number,top:ie.default.number,bottom:ie.default.number}),ie.default.string,ie.default.oneOf([!1])]),defaultClassName:ie.default.string,defaultClassNameDragging:ie.default.string,defaultClassNameDragged:ie.default.string,defaultPosition:ie.default.shape({x:ie.default.number,y:ie.default.number}),positionOffset:ie.default.shape({x:ie.default.oneOfType([ie.default.number,ie.default.string]),y:ie.default.oneOfType([ie.default.number,ie.default.string])}),position:ie.default.shape({x:ie.default.number,y:ie.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),s(p,"defaultProps",au(Ui({},A.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=void 0;var oe=h(J(59301)),ie=A(J(12708)),t=A(J(4676)),C=J(13957),b=J(9479),a=J(36641),u=A(J(94187));function A(p){return p&&p.__esModule?p:{default:p}}function c(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(v){return v?m:g})(p)}function h(p,g){if(!g&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=c(g);if(m&&m.has(p))return m.get(p);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in p)if(O!=="default"&&Object.prototype.hasOwnProperty.call(p,O)){var F=_?Object.getOwnPropertyDescriptor(p,O):null;F&&(F.get||F.set)?Object.defineProperty(v,O,F):v[O]=p[O]}return v.default=p,m&&m.set(p,v),v}function o(p,g,m){return g=n(g),g in p?Object.defineProperty(p,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[g]=m,p}function n(p){var g=r(p,"string");return typeof g=="symbol"?g:String(g)}function r(p,g){if(typeof p!="object"||p===null)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,g||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)}const s={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let l=s.mouse;class d extends oe.Component{constructor(){super(...arguments),o(this,"dragging",!1),o(this,"lastX",NaN),o(this,"lastY",NaN),o(this,"touchIdentifier",null),o(this,"mounted",!1),o(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:v}=m;if(this.props.disabled||!(g.target instanceof v.defaultView.Node)||this.props.handle&&!(0,C.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,C.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const _=(0,C.getTouchIdentifier)(g);this.touchIdentifier=_;const O=(0,b.getControlPosition)(g,_,this);if(O==null)return;const{x:F,y:T}=O,S=(0,b.createCoreData)(this,F,T);(0,u.default)("DraggableCore: handleDragStart: %j",S),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,C.addUserSelectStyles)(v),this.dragging=!0,this.lastX=F,this.lastY=T,(0,C.addEvent)(v,l.move,this.handleDrag),(0,C.addEvent)(v,l.stop,this.handleDragStop))}),o(this,"handleDrag",g=>{const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let T=v-this.lastX,S=_-this.lastY;if([T,S]=(0,b.snapToGrid)(this.props.grid,T,S),!T&&!S)return;v=this.lastX+T,_=this.lastY+S}const O=(0,b.createCoreData)(this,v,_);if((0,u.default)("DraggableCore: handleDrag: %j",O),this.props.onDrag(g,O)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(T){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=v,this.lastY=_}),o(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let S=v-this.lastX||0,I=_-this.lastY||0;[S,I]=(0,b.snapToGrid)(this.props.grid,S,I),v=this.lastX+S,_=this.lastY+I}const O=(0,b.createCoreData)(this,v,_);if(this.props.onStop(g,O)===!1||this.mounted===!1)return!1;const T=this.findDOMNode();T&&this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(T.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",O),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,T&&((0,u.default)("DraggableCore: Removing handlers"),(0,C.removeEvent)(T.ownerDocument,l.move,this.handleDrag),(0,C.removeEvent)(T.ownerDocument,l.stop,this.handleDragStop))}),o(this,"onMouseDown",g=>(l=s.mouse,this.handleDragStart(g))),o(this,"onMouseUp",g=>(l=s.mouse,this.handleDragStop(g))),o(this,"onTouchStart",g=>(l=s.touch,this.handleDragStart(g))),o(this,"onTouchEnd",g=>(l=s.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,C.addEvent)(g,s.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,C.removeEvent)(m,s.mouse.move,this.handleDrag),(0,C.removeEvent)(m,s.touch.move,this.handleDrag),(0,C.removeEvent)(m,s.mouse.stop,this.handleDragStop),(0,C.removeEvent)(m,s.touch.stop,this.handleDragStop),(0,C.removeEvent)(g,s.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:t.default.findDOMNode(this)}render(){return oe.cloneElement(oe.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}ke.default=d,o(d,"displayName","DraggableCore"),o(d,"propTypes",{allowAnyClick:ie.default.bool,children:ie.default.node.isRequired,disabled:ie.default.bool,enableUserSelectHack:ie.default.bool,offsetParent:function(p,g){if(p[g]&&p[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ie.default.arrayOf(ie.default.number),handle:ie.default.string,cancel:ie.default.string,nodeRef:ie.default.object,onStart:ie.default.func,onDrag:ie.default.func,onStop:ie.default.func,onMouseDown:ie.default.func,scale:ie.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),o(d,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(rt,ke,J){"use strict";const{default:oe,DraggableCore:ie}=J(2637);rt.exports=oe,rt.exports.default=oe,rt.exports.DraggableCore=ie},13957:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.addClassName=O,ke.addEvent=A,ke.addUserSelectStyles=v,ke.createCSSTransform=l,ke.createSVGTransform=d,ke.getTouch=g,ke.getTouchIdentifier=m,ke.getTranslation=p,ke.innerHeight=n,ke.innerWidth=r,ke.matchesSelector=a,ke.matchesSelectorAndParentsTo=u,ke.offsetXYFromParent=s,ke.outerHeight=h,ke.outerWidth=o,ke.removeClassName=F,ke.removeEvent=c,ke.removeUserSelectStyles=_;var oe=J(36641),ie=C(J(32092));function t(T){if(typeof WeakMap!="function")return null;var S=new WeakMap,I=new WeakMap;return(t=function(E){return E?I:S})(T)}function C(T,S){if(!S&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var I=t(S);if(I&&I.has(T))return I.get(T);var E={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in T)if(N!=="default"&&Object.prototype.hasOwnProperty.call(T,N)){var V=M?Object.getOwnPropertyDescriptor(T,N):null;V&&(V.get||V.set)?Object.defineProperty(E,N,V):E[N]=T[N]}return E.default=T,I&&I.set(T,E),E}let b="";function a(T,S){return b||(b=(0,oe.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(I){return(0,oe.isFunction)(T[I])})),(0,oe.isFunction)(T[b])?T[b](S):!1}function u(T,S,I){let E=T;do{if(a(E,S))return!0;if(E===I)return!1;E=E.parentNode}while(E);return!1}function A(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.addEventListener?T.addEventListener(S,I,M):T.attachEvent?T.attachEvent("on"+S,I):T["on"+S]=I}function c(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.removeEventListener?T.removeEventListener(S,I,M):T.detachEvent?T.detachEvent("on"+S,I):T["on"+S]=null}function h(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderTopWidth),S+=(0,oe.int)(I.borderBottomWidth),S}function o(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderLeftWidth),S+=(0,oe.int)(I.borderRightWidth),S}function n(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingTop),S-=(0,oe.int)(I.paddingBottom),S}function r(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingLeft),S-=(0,oe.int)(I.paddingRight),S}function s(T,S,I){const M=S===S.ownerDocument.body?{left:0,top:0}:S.getBoundingClientRect(),N=(T.clientX+S.scrollLeft-M.left)/I,V=(T.clientY+S.scrollTop-M.top)/I;return{x:N,y:V}}function l(T,S){const I=p(T,S,"px");return{[(0,ie.browserPrefixToKey)("transform",ie.default)]:I}}function d(T,S){return p(T,S,"")}function p(T,S,I){let{x:E,y:M}=T,N="translate(".concat(E).concat(I,",").concat(M).concat(I,")");if(S){const V="".concat(typeof S.x=="string"?S.x:S.x+I),H="".concat(typeof S.y=="string"?S.y:S.y+I);N="translate(".concat(V,", ").concat(H,")")+N}return N}function g(T,S){return T.targetTouches&&(0,oe.findInArray)(T.targetTouches,I=>S===I.identifier)||T.changedTouches&&(0,oe.findInArray)(T.changedTouches,I=>S===I.identifier)}function m(T){if(T.targetTouches&&T.targetTouches[0])return T.targetTouches[0].identifier;if(T.changedTouches&&T.changedTouches[0])return T.changedTouches[0].identifier}function v(T){if(!T)return;let S=T.getElementById("react-draggable-style-el");S||(S=T.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,T.getElementsByTagName("head")[0].appendChild(S)),T.body&&O(T.body,"react-draggable-transparent-selection")}function _(T){if(T)try{if(T.body&&F(T.body,"react-draggable-transparent-selection"),T.selection)T.selection.empty();else{const S=(T.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch(S){}}function O(T,S){T.classList?T.classList.add(S):T.className.match(new RegExp("(?:^|\\s)".concat(S,"(?!\\S)")))||(T.className+=" ".concat(S))}function F(T,S){T.classList?T.classList.remove(S):T.className=T.className.replace(new RegExp("(?:^|\\s)".concat(S,"(?!\\S)"),"g"),"")}},32092:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.browserPrefixToKey=ie,ke.browserPrefixToStyle=t,ke.default=void 0,ke.getPrefix=oe;const J=["Moz","Webkit","O","ms"];function oe(){var a;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const A=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!A||u in A)return"";for(let c=0;c<J.length;c++)if(ie(u,J[c])in A)return J[c];return""}function ie(a,u){return u?"".concat(u).concat(C(a)):a}function t(a,u){return u?"-".concat(u.toLowerCase(),"-").concat(a):a}function C(a){let u="",A=!0;for(let c=0;c<a.length;c++)A?(u+=a[c].toUpperCase(),A=!1):a[c]==="-"?A=!0:u+=a[c];return u}var b=ke.default=oe()},94187:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=J;function J(){}},9479:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.canDragX=b,ke.canDragY=a,ke.createCoreData=A,ke.createDraggableData=c,ke.getBoundPosition=t,ke.getControlPosition=u,ke.snapToGrid=C;var oe=J(36641),ie=J(13957);function t(n,r,s){if(!n.props.bounds)return[r,s];let{bounds:l}=n.props;l=typeof l=="string"?l:h(l);const d=o(n);if(typeof l=="string"){const{ownerDocument:p}=d,g=p.defaultView;let m;if(l==="parent"?m=d.parentNode:m=p.querySelector(l),!(m instanceof g.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const v=m,_=g.getComputedStyle(d),O=g.getComputedStyle(v);l={left:-d.offsetLeft+(0,oe.int)(O.paddingLeft)+(0,oe.int)(_.marginLeft),top:-d.offsetTop+(0,oe.int)(O.paddingTop)+(0,oe.int)(_.marginTop),right:(0,ie.innerWidth)(v)-(0,ie.outerWidth)(d)-d.offsetLeft+(0,oe.int)(O.paddingRight)-(0,oe.int)(_.marginRight),bottom:(0,ie.innerHeight)(v)-(0,ie.outerHeight)(d)-d.offsetTop+(0,oe.int)(O.paddingBottom)-(0,oe.int)(_.marginBottom)}}return(0,oe.isNum)(l.right)&&(r=Math.min(r,l.right)),(0,oe.isNum)(l.bottom)&&(s=Math.min(s,l.bottom)),(0,oe.isNum)(l.left)&&(r=Math.max(r,l.left)),(0,oe.isNum)(l.top)&&(s=Math.max(s,l.top)),[r,s]}function C(n,r,s){const l=Math.round(r/n[0])*n[0],d=Math.round(s/n[1])*n[1];return[l,d]}function b(n){return n.props.axis==="both"||n.props.axis==="x"}function a(n){return n.props.axis==="both"||n.props.axis==="y"}function u(n,r,s){const l=typeof r=="number"?(0,ie.getTouch)(n,r):null;if(typeof r=="number"&&!l)return null;const d=o(s),p=s.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,ie.offsetXYFromParent)(l||n,p,s.props.scale)}function A(n,r,s){const l=!(0,oe.isNum)(n.lastX),d=o(n);return l?{node:d,deltaX:0,deltaY:0,lastX:r,lastY:s,x:r,y:s}:{node:d,deltaX:r-n.lastX,deltaY:s-n.lastY,lastX:n.lastX,lastY:n.lastY,x:r,y:s}}function c(n,r){const s=n.props.scale;return{node:r.node,x:n.state.x+r.deltaX/s,y:n.state.y+r.deltaY/s,deltaX:r.deltaX/s,deltaY:r.deltaY/s,lastX:n.state.x,lastY:n.state.y}}function h(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function o(n){const r=n.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}},36641:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.dontSetMe=C,ke.findInArray=J,ke.int=t,ke.isFunction=oe,ke.isNum=ie;function J(b,a){for(let u=0,A=b.length;u<A;u++)if(a.apply(a,[b[u],u,b]))return b[u]}function oe(b){return typeof b=="function"||Object.prototype.toString.call(b)==="[object Function]"}function ie(b){return typeof b=="number"&&!isNaN(b)}function t(b){return parseInt(b,10)}function C(b,a,u){if(b[a])return new Error("Invalid prop ".concat(a," passed to ").concat(u," - do not set this, set it on the child."))}},34547:function(rt,ke,J){"use strict";J.d(ke,{s:function(){return ee}});var oe=J(59301),ie=J(12911),t=J.n(ie),C=J(37712),b=J(4676),a=function(){return a=Object.assign||function(Z){for(var Ae,U=1,W=arguments.length;U<W;U++){Ae=arguments[U];for(var le in Ae)Object.prototype.hasOwnProperty.call(Ae,le)&&(Z[le]=Ae[le])}return Z},a.apply(this,arguments)},u={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},A={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},c={width:"20px",height:"20px",position:"absolute",zIndex:1},h={top:a(a({},u),{top:"-5px"}),right:a(a({},A),{left:void 0,right:"-5px"}),bottom:a(a({},u),{top:void 0,bottom:"-5px"}),left:a(a({},A),{left:"-5px"}),topRight:a(a({},c),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:a(a({},c),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:a(a({},c),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:a(a({},c),{left:"-10px",top:"-10px",cursor:"nw-resize"})},o=(0,oe.memo)(function(Z){var Ae=Z.onResizeStart,U=Z.direction,W=Z.children,le=Z.replaceStyles,he=Z.className,ue=(0,oe.useCallback)(function(ce){Ae(ce,U)},[Ae,U]),pe=(0,oe.useCallback)(function(ce){Ae(ce,U)},[Ae,U]),fe=(0,oe.useMemo)(function(){return a(a({position:"absolute",userSelect:"none"},h[U]),le!=null?le:{})},[le,U]);return(0,C.jsx)("div",{className:he||void 0,style:fe,onMouseDown:ue,onTouchStart:pe,children:W})}),n=function(){var Z=function(Ae,U){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,le){W.__proto__=le}||function(W,le){for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&(W[he]=le[he])},Z(Ae,U)};return function(Ae,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");Z(Ae,U);function W(){this.constructor=Ae}Ae.prototype=U===null?Object.create(U):(W.prototype=U.prototype,new W)}}(),r=function(){return r=Object.assign||function(Z){for(var Ae,U=1,W=arguments.length;U<W;U++){Ae=arguments[U];for(var le in Ae)Object.prototype.hasOwnProperty.call(Ae,le)&&(Z[le]=Ae[le])}return Z},r.apply(this,arguments)},s={width:"auto",height:"auto"},l=function(Z,Ae,U){return Math.max(Math.min(Z,U),Ae)},d=function(Z,Ae,U){var W=Math.round(Z/Ae);return W*Ae+U*(W-1)},p=function(Z,Ae){return new RegExp(Z,"i").test(Ae)},g=function(Z){return!!(Z.touches&&Z.touches.length)},m=function(Z){return!!((Z.clientX||Z.clientX===0)&&(Z.clientY||Z.clientY===0))},v=function(Z,Ae,U){U===void 0&&(U=0);var W=Ae.reduce(function(he,ue,pe){return Math.abs(ue-Z)<Math.abs(Ae[he]-Z)?pe:he},0),le=Math.abs(Ae[W]-Z);return U===0||le<U?Ae[W]:Z},_=function(Z){return Z=Z.toString(),Z==="auto"||Z.endsWith("px")||Z.endsWith("%")||Z.endsWith("vh")||Z.endsWith("vw")||Z.endsWith("vmax")||Z.endsWith("vmin")?Z:"".concat(Z,"px")},O=function(Z,Ae,U,W){if(Z&&typeof Z=="string"){if(Z.endsWith("px"))return Number(Z.replace("px",""));if(Z.endsWith("%")){var le=Number(Z.replace("%",""))/100;return Ae*le}if(Z.endsWith("vw")){var le=Number(Z.replace("vw",""))/100;return U*le}if(Z.endsWith("vh")){var le=Number(Z.replace("vh",""))/100;return W*le}}return Z},F=function(Z,Ae,U,W,le,he,ue){return W=O(W,Z.width,Ae,U),le=O(le,Z.height,Ae,U),he=O(he,Z.width,Ae,U),ue=O(ue,Z.height,Ae,U),{maxWidth:typeof W=="undefined"?void 0:Number(W),maxHeight:typeof le=="undefined"?void 0:Number(le),minWidth:typeof he=="undefined"?void 0:Number(he),minHeight:typeof ue=="undefined"?void 0:Number(ue)}},T=function(Z){return Array.isArray(Z)?Z:[Z,Z]},S=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],I="__resizable_base__",E=function(Z){n(Ae,Z);function Ae(U){var W,le,he,ue,pe=Z.call(this,U)||this;return pe.ratio=1,pe.resizable=null,pe.parentLeft=0,pe.parentTop=0,pe.resizableLeft=0,pe.resizableRight=0,pe.resizableTop=0,pe.resizableBottom=0,pe.targetLeft=0,pe.targetTop=0,pe.delta={width:0,height:0},pe.appendBase=function(){if(!pe.resizable||!pe.window)return null;var fe=pe.parentNode;if(!fe)return null;var ce=pe.window.document.createElement("div");return ce.style.width="100%",ce.style.height="100%",ce.style.position="absolute",ce.style.transform="scale(0, 0)",ce.style.left="0",ce.style.flex="0 0 100%",ce.classList?ce.classList.add(I):ce.className+=I,fe.appendChild(ce),ce},pe.removeBase=function(fe){var ce=pe.parentNode;ce&&ce.removeChild(fe)},pe.state={isResizing:!1,width:(le=(W=pe.propsSize)===null||W===void 0?void 0:W.width)!==null&&le!==void 0?le:"auto",height:(ue=(he=pe.propsSize)===null||he===void 0?void 0:he.height)!==null&&ue!==void 0?ue:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},pe.onResizeStart=pe.onResizeStart.bind(pe),pe.onMouseMove=pe.onMouseMove.bind(pe),pe.onMouseUp=pe.onMouseUp.bind(pe),pe}return Object.defineProperty(Ae.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||s},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"size",{get:function(){var U=0,W=0;if(this.resizable&&this.window){var le=this.resizable.offsetWidth,he=this.resizable.offsetHeight,ue=this.resizable.style.position;ue!=="relative"&&(this.resizable.style.position="relative"),U=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:le,W=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:he,this.resizable.style.position=ue}return{width:U,height:W}},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"sizeStyle",{get:function(){var U=this,W=this.props.size,le=function(pe){var fe;if(typeof U.state[pe]=="undefined"||U.state[pe]==="auto")return"auto";if(U.propsSize&&U.propsSize[pe]&&(!((fe=U.propsSize[pe])===null||fe===void 0)&&fe.toString().endsWith("%"))){if(U.state[pe].toString().endsWith("%"))return U.state[pe].toString();var ce=U.getParentSize(),be=Number(U.state[pe].toString().replace("px","")),Ce=be/ce[pe]*100;return"".concat(Ce,"%")}return _(U.state[pe])},he=W&&typeof W.width!="undefined"&&!this.state.isResizing?_(W.width):le("width"),ue=W&&typeof W.height!="undefined"&&!this.state.isResizing?_(W.height):le("height");return{width:he,height:ue}},enumerable:!1,configurable:!0}),Ae.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var U=this.appendBase();if(!U)return{width:0,height:0};var W=!1,le=this.parentNode.style.flexWrap;le!=="wrap"&&(W=!0,this.parentNode.style.flexWrap="wrap"),U.style.position="relative",U.style.minWidth="100%",U.style.minHeight="100%";var he={width:U.offsetWidth,height:U.offsetHeight};return W&&(this.parentNode.style.flexWrap=le),this.removeBase(U),he},Ae.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},Ae.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},Ae.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var U=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:U.flexBasis!=="auto"?U.flexBasis:void 0})}},Ae.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},Ae.prototype.createSizeForCssProperty=function(U,W){var le=this.propsSize&&this.propsSize[W];return this.state[W]==="auto"&&this.state.original[W]===U&&(typeof le=="undefined"||le==="auto")?"auto":U},Ae.prototype.calculateNewMaxFromBoundary=function(U,W){var le=this.props.boundsByDirection,he=this.state.direction,ue=le&&p("left",he),pe=le&&p("top",he),fe,ce;if(this.props.bounds==="parent"){var be=this.parentNode;be&&(fe=ue?this.resizableRight-this.parentLeft:be.offsetWidth+(this.parentLeft-this.resizableLeft),ce=pe?this.resizableBottom-this.parentTop:be.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(fe=ue?this.resizableRight:this.window.innerWidth-this.resizableLeft,ce=pe?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(fe=ue?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),ce=pe?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return fe&&Number.isFinite(fe)&&(U=U&&U<fe?U:fe),ce&&Number.isFinite(ce)&&(W=W&&W<ce?W:ce),{maxWidth:U,maxHeight:W}},Ae.prototype.calculateNewSizeFromDirection=function(U,W){var le=this.props.scale||1,he=T(this.props.resizeRatio||1),ue=he[0],pe=he[1],fe=this.state,ce=fe.direction,be=fe.original,Ce=this.props,xe=Ce.lockAspectRatio,Se=Ce.lockAspectRatioExtraHeight,me=Ce.lockAspectRatioExtraWidth,te=be.width,$=be.height,B=Se||0,k=me||0;return p("right",ce)&&(te=be.width+(U-be.x)*ue/le,xe&&($=(te-k)/this.ratio+B)),p("left",ce)&&(te=be.width-(U-be.x)*ue/le,xe&&($=(te-k)/this.ratio+B)),p("bottom",ce)&&($=be.height+(W-be.y)*pe/le,xe&&(te=($-B)*this.ratio+k)),p("top",ce)&&($=be.height-(W-be.y)*pe/le,xe&&(te=($-B)*this.ratio+k)),{newWidth:te,newHeight:$}},Ae.prototype.calculateNewSizeFromAspectRatio=function(U,W,le,he){var ue=this.props,pe=ue.lockAspectRatio,fe=ue.lockAspectRatioExtraHeight,ce=ue.lockAspectRatioExtraWidth,be=typeof he.width=="undefined"?10:he.width,Ce=typeof le.width=="undefined"||le.width<0?U:le.width,xe=typeof he.height=="undefined"?10:he.height,Se=typeof le.height=="undefined"||le.height<0?W:le.height,me=fe||0,te=ce||0;if(pe){var $=(xe-me)*this.ratio+te,B=(Se-me)*this.ratio+te,k=(be-te)/this.ratio+me,q=(Ce-te)/this.ratio+me,ne=Math.max(be,$),Q=Math.min(Ce,B),z=Math.max(xe,k),Y=Math.min(Se,q);U=l(U,ne,Q),W=l(W,z,Y)}else U=l(U,be,Ce),W=l(W,xe,Se);return{newWidth:U,newHeight:W}},Ae.prototype.setBoundingClientRect=function(){var U=1/(this.props.scale||1);if(this.props.bounds==="parent"){var W=this.parentNode;if(W){var le=W.getBoundingClientRect();this.parentLeft=le.left*U,this.parentTop=le.top*U}}if(this.props.bounds&&typeof this.props.bounds!="string"){var he=this.props.bounds.getBoundingClientRect();this.targetLeft=he.left*U,this.targetTop=he.top*U}if(this.resizable){var ue=this.resizable.getBoundingClientRect(),pe=ue.left,fe=ue.top,ce=ue.right,be=ue.bottom;this.resizableLeft=pe*U,this.resizableRight=ce*U,this.resizableTop=fe*U,this.resizableBottom=be*U}},Ae.prototype.onResizeStart=function(U,W){if(!(!this.resizable||!this.window)){var le=0,he=0;if(U.nativeEvent&&m(U.nativeEvent)?(le=U.nativeEvent.clientX,he=U.nativeEvent.clientY):U.nativeEvent&&g(U.nativeEvent)&&(le=U.nativeEvent.touches[0].clientX,he=U.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var ue=this.props.onResizeStart(U,W,this.resizable);if(ue===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var pe,fe=this.window.getComputedStyle(this.resizable);if(fe.flexBasis!=="auto"){var ce=this.parentNode;if(ce){var be=this.window.getComputedStyle(ce).flexDirection;this.flexDir=be.startsWith("row")?"row":"column",pe=fe.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var Ce={original:{x:le,y:he,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:r(r({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(U.target).cursor||"auto"}),direction:W,flexBasis:pe};this.setState(Ce)}},Ae.prototype.onMouseMove=function(U){var W=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&g(U))try{U.preventDefault(),U.stopPropagation()}catch(qe){}var le=this.props,he=le.maxWidth,ue=le.maxHeight,pe=le.minWidth,fe=le.minHeight,ce=g(U)?U.touches[0].clientX:U.clientX,be=g(U)?U.touches[0].clientY:U.clientY,Ce=this.state,xe=Ce.direction,Se=Ce.original,me=Ce.width,te=Ce.height,$=this.getParentSize(),B=F($,this.window.innerWidth,this.window.innerHeight,he,ue,pe,fe);he=B.maxWidth,ue=B.maxHeight,pe=B.minWidth,fe=B.minHeight;var k=this.calculateNewSizeFromDirection(ce,be),q=k.newHeight,ne=k.newWidth,Q=this.calculateNewMaxFromBoundary(he,ue);this.props.snap&&this.props.snap.x&&(ne=v(ne,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(q=v(q,this.props.snap.y,this.props.snapGap));var z=this.calculateNewSizeFromAspectRatio(ne,q,{width:Q.maxWidth,height:Q.maxHeight},{width:pe,height:fe});if(ne=z.newWidth,q=z.newHeight,this.props.grid){var Y=d(ne,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),re=d(q,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),ge=this.props.snapGap||0,Be=ge===0||Math.abs(Y-ne)<=ge?Y:ne,Oe=ge===0||Math.abs(re-q)<=ge?re:q;ne=Be,q=Oe}var Le={width:ne-Se.width,height:q-Se.height};if(this.delta=Le,me&&typeof me=="string"){if(me.endsWith("%")){var Pe=ne/$.width*100;ne="".concat(Pe,"%")}else if(me.endsWith("vw")){var $e=ne/this.window.innerWidth*100;ne="".concat($e,"vw")}else if(me.endsWith("vh")){var Ke=ne/this.window.innerHeight*100;ne="".concat(Ke,"vh")}}if(te&&typeof te=="string"){if(te.endsWith("%")){var Pe=q/$.height*100;q="".concat(Pe,"%")}else if(te.endsWith("vw")){var $e=q/this.window.innerWidth*100;q="".concat($e,"vw")}else if(te.endsWith("vh")){var Ke=q/this.window.innerHeight*100;q="".concat(Ke,"vh")}}var Ne={width:this.createSizeForCssProperty(ne,"width"),height:this.createSizeForCssProperty(q,"height")};this.flexDir==="row"?Ne.flexBasis=Ne.width:this.flexDir==="column"&&(Ne.flexBasis=Ne.height);var Ue=this.state.width!==Ne.width,Ye=this.state.height!==Ne.height,ze=this.state.flexBasis!==Ne.flexBasis,Xe=Ue||Ye||ze;Xe&&(0,b.flushSync)(function(){W.setState(Ne)}),this.props.onResize&&Xe&&this.props.onResize(U,xe,this.resizable,Le)}},Ae.prototype.onMouseUp=function(U){var W,le,he=this.state,ue=he.isResizing,pe=he.direction,fe=he.original;!ue||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(U,pe,this.resizable,this.delta),this.props.size&&this.setState({width:(W=this.props.size.width)!==null&&W!==void 0?W:"auto",height:(le=this.props.size.height)!==null&&le!==void 0?le:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:r(r({},this.state.backgroundStyle),{cursor:"auto"})}))},Ae.prototype.updateSize=function(U){var W,le;this.setState({width:(W=U.width)!==null&&W!==void 0?W:"auto",height:(le=U.height)!==null&&le!==void 0?le:"auto"})},Ae.prototype.renderResizer=function(){var U=this,W=this.props,le=W.enable,he=W.handleStyles,ue=W.handleClasses,pe=W.handleWrapperStyle,fe=W.handleWrapperClass,ce=W.handleComponent;if(!le)return null;var be=Object.keys(le).map(function(Ce){return le[Ce]!==!1?(0,C.jsx)(o,{direction:Ce,onResizeStart:U.onResizeStart,replaceStyles:he&&he[Ce],className:ue&&ue[Ce],children:ce&&ce[Ce]?ce[Ce]:null},Ce):null});return(0,C.jsx)("div",{className:fe,style:pe,children:be})},Ae.prototype.render=function(){var U=this,W=Object.keys(this.props).reduce(function(ue,pe){return S.indexOf(pe)!==-1||(ue[pe]=U.props[pe]),ue},{}),le=r(r(r({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(le.flexBasis=this.state.flexBasis);var he=this.props.as||"div";return(0,C.jsxs)(he,r({style:le,className:this.props.className},W,{ref:function(ue){ue&&(U.resizable=ue)},children:[this.state.isResizing&&(0,C.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},Ae.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},Ae}(oe.PureComponent);var M=function(Z,Ae){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,W){U.__proto__=W}||function(U,W){for(var le in W)W.hasOwnProperty(le)&&(U[le]=W[le])},M(Z,Ae)};function N(Z,Ae){M(Z,Ae);function U(){this.constructor=Z}Z.prototype=Ae===null?Object.create(Ae):(U.prototype=Ae.prototype,new U)}var V=function(){return V=Object.assign||function(Ae){for(var U,W=1,le=arguments.length;W<le;W++){U=arguments[W];for(var he in U)Object.prototype.hasOwnProperty.call(U,he)&&(Ae[he]=U[he])}return Ae},V.apply(this,arguments)};function H(Z,Ae){var U={};for(var W in Z)Object.prototype.hasOwnProperty.call(Z,W)&&Ae.indexOf(W)<0&&(U[W]=Z[W]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,W=Object.getOwnPropertySymbols(Z);le<W.length;le++)Ae.indexOf(W[le])<0&&Object.prototype.propertyIsEnumerable.call(Z,W[le])&&(U[W[le]]=Z[W[le]]);return U}var X={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},G=function(Z){return{bottom:Z,bottomLeft:Z,bottomRight:Z,left:Z,right:Z,top:Z,topLeft:Z,topRight:Z}},ee=function(Z){N(Ae,Z);function Ae(U){var W=Z.call(this,U)||this;return W.resizingPosition={x:0,y:0},W.offsetFromParent={left:0,top:0},W.resizableElement={current:null},W.originalPosition={x:0,y:0},W.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:U.maxWidth,maxHeight:U.maxHeight},W.onResizeStart=W.onResizeStart.bind(W),W.onResize=W.onResize.bind(W),W.onResizeStop=W.onResizeStop.bind(W),W.onDragStart=W.onDragStart.bind(W),W.onDrag=W.onDrag.bind(W),W.onDragStop=W.onDragStop.bind(W),W.getMaxSizesFromProps=W.getMaxSizesFromProps.bind(W),W}return Ae.prototype.componentDidMount=function(){this.updateOffsetFromParent();var U=this.offsetFromParent,W=U.left,le=U.top,he=this.getDraggablePosition(),ue=he.x,pe=he.y;this.draggable.setState({x:ue-W,y:pe-le}),this.forceUpdate()},Ae.prototype.getDraggablePosition=function(){var U=this.draggable.state,W=U.x,le=U.y;return{x:W,y:le}},Ae.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},Ae.prototype.getParentSize=function(){return this.resizable.getParentSize()},Ae.prototype.getMaxSizesFromProps=function(){var U=typeof this.props.maxWidth=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,W=typeof this.props.maxHeight=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:U,maxHeight:W}},Ae.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},Ae.prototype.getOffsetHeight=function(U){var W=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/W;case"body":return document.body.offsetHeight/W;default:return U.offsetHeight}},Ae.prototype.getOffsetWidth=function(U){var W=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/W;case"body":return document.body.offsetWidth/W;default:return U.offsetWidth}},Ae.prototype.onDragStart=function(U,W){this.props.onDragStart&&this.props.onDragStart(U,W);var le=this.getDraggablePosition();if(this.originalPosition=le,!!this.props.bounds){var he=this.getParent(),ue=this.props.scale,pe;if(this.props.bounds==="parent")pe=he;else if(this.props.bounds==="body"){var fe=he.getBoundingClientRect(),ce=fe.left,be=fe.top,Ce=document.body.getBoundingClientRect(),xe=-(ce-he.offsetLeft*ue-Ce.left)/ue,Se=-(be-he.offsetTop*ue-Ce.top)/ue,me=(document.body.offsetWidth-this.resizable.size.width*ue)/ue+xe,te=(document.body.offsetHeight-this.resizable.size.height*ue)/ue+Se;return this.setState({bounds:{top:Se,right:me,bottom:te,left:xe}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var $=he.getBoundingClientRect(),B=$.left,k=$.top,q=-(B-he.offsetLeft*ue)/ue,ne=-(k-he.offsetTop*ue)/ue,me=(window.innerWidth-this.resizable.size.width*ue)/ue+q,te=(window.innerHeight-this.resizable.size.height*ue)/ue+ne;return this.setState({bounds:{top:ne,right:me,bottom:te,left:q}})}else typeof this.props.bounds=="string"?pe=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(pe=this.props.bounds);if(!(!(pe instanceof HTMLElement)||!(he instanceof HTMLElement))){var Q=pe.getBoundingClientRect(),z=Q.left,Y=Q.top,re=he.getBoundingClientRect(),ge=re.left,Be=re.top,Oe=(z-ge)/ue,Le=Y-Be;if(this.resizable){this.updateOffsetFromParent();var Pe=this.offsetFromParent;this.setState({bounds:{top:Le-Pe.top,right:Oe+(pe.offsetWidth-this.resizable.size.width)-Pe.left/ue,bottom:Le+(pe.offsetHeight-this.resizable.size.height)-Pe.top,left:Oe-Pe.left/ue}})}}}},Ae.prototype.onDrag=function(U,W){if(this.props.onDrag){var le=this.offsetFromParent,he=le.left,ue=le.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(U,V(V({},W),{x:W.x+he,y:W.y+ue}));if(this.props.dragAxis==="x")return this.props.onDrag(U,V(V({},W),{x:W.x+he,y:this.originalPosition.y+ue,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(U,V(V({},W),{x:this.originalPosition.x+he,y:W.y+ue,deltaX:0}))}},Ae.prototype.onDragStop=function(U,W){if(this.props.onDragStop){var le=this.offsetFromParent,he=le.left,ue=le.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(U,V(V({},W),{x:W.x+he,y:W.y+ue}));if(this.props.dragAxis==="x")return this.props.onDragStop(U,V(V({},W),{x:W.x+he,y:this.originalPosition.y+ue,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(U,V(V({},W),{x:this.originalPosition.x+he,y:W.y+ue,deltaX:0}))}},Ae.prototype.onResizeStart=function(U,W,le){U.stopPropagation(),this.setState({resizing:!0});var he=this.props.scale,ue=this.offsetFromParent,pe=this.getDraggablePosition();if(this.resizingPosition={x:pe.x+ue.left,y:pe.y+ue.top},this.originalPosition=pe,this.props.bounds){var fe=this.getParent(),ce=void 0;this.props.bounds==="parent"?ce=fe:this.props.bounds==="body"?ce=document.body:this.props.bounds==="window"?ce=window:typeof this.props.bounds=="string"?ce=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(ce=this.props.bounds);var be=this.getSelfElement();if(be instanceof Element&&(ce instanceof HTMLElement||ce===window)&&fe instanceof HTMLElement){var Ce=this.getMaxSizesFromProps(),xe=Ce.maxWidth,Se=Ce.maxHeight,me=this.getParentSize();if(xe&&typeof xe=="string")if(xe.endsWith("%")){var te=Number(xe.replace("%",""))/100;xe=me.width*te}else xe.endsWith("px")&&(xe=Number(xe.replace("px","")));if(Se&&typeof Se=="string")if(Se.endsWith("%")){var te=Number(Se.replace("%",""))/100;Se=me.height*te}else Se.endsWith("px")&&(Se=Number(Se.replace("px","")));var $=be.getBoundingClientRect(),B=$.left,k=$.top,q=this.props.bounds==="window"?{left:0,top:0}:ce.getBoundingClientRect(),ne=q.left,Q=q.top,z=this.getOffsetWidth(ce),Y=this.getOffsetHeight(ce),re=W.toLowerCase().endsWith("left"),ge=W.toLowerCase().endsWith("right"),Be=W.startsWith("top"),Oe=W.startsWith("bottom");if((re||Be)&&this.resizable){var Le=(B-ne)/he+this.resizable.size.width;this.setState({maxWidth:Le>Number(xe)?xe:Le})}if(ge||this.props.lockAspectRatio&&!re&&!Be){var Le=z+(ne-B)/he;this.setState({maxWidth:Le>Number(xe)?xe:Le})}if((Be||re)&&this.resizable){var Le=(k-Q)/he+this.resizable.size.height;this.setState({maxHeight:Le>Number(Se)?Se:Le})}if(Oe||this.props.lockAspectRatio&&!Be&&!re){var Le=Y+(Q-k)/he;this.setState({maxHeight:Le>Number(Se)?Se:Le})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(U,W,le)},Ae.prototype.onResize=function(U,W,le,he){var ue=this,pe={x:this.originalPosition.x,y:this.originalPosition.y},fe=-he.width,ce=-he.height,be=["top","left","topLeft","bottomLeft","topRight"];be.includes(W)&&(W==="bottomLeft"?pe.x+=fe:(W==="topRight"||(pe.x+=fe),pe.y+=ce));var Ce=this.draggable.state;(pe.x!==Ce.x||pe.y!==Ce.y)&&(0,b.flushSync)(function(){ue.draggable.setState(pe)}),this.updateOffsetFromParent();var xe=this.offsetFromParent,Se=this.getDraggablePosition().x+xe.left,me=this.getDraggablePosition().y+xe.top;this.resizingPosition={x:Se,y:me},this.props.onResize&&this.props.onResize(U,W,le,he,{x:Se,y:me})},Ae.prototype.onResizeStop=function(U,W,le,he){this.setState({resizing:!1});var ue=this.getMaxSizesFromProps(),pe=ue.maxWidth,fe=ue.maxHeight;this.setState({maxWidth:pe,maxHeight:fe}),this.props.onResizeStop&&this.props.onResizeStop(U,W,le,he,this.resizingPosition)},Ae.prototype.updateSize=function(U){this.resizable&&this.resizable.updateSize({width:U.width,height:U.height})},Ae.prototype.updatePosition=function(U){this.draggable.setState(U)},Ae.prototype.updateOffsetFromParent=function(){var U=this.props.scale,W=this.getParent(),le=this.getSelfElement();if(!W||le===null)return{top:0,left:0};var he=W.getBoundingClientRect(),ue=he.left,pe=he.top,fe=le.getBoundingClientRect(),ce=this.getDraggablePosition(),be=W.scrollLeft,Ce=W.scrollTop;this.offsetFromParent={left:fe.left-ue+be-ce.x*U,top:fe.top-pe+Ce-ce.y*U}},Ae.prototype.render=function(){var U=this,W=this.props,le=W.disableDragging,he=W.style,ue=W.dragHandleClassName,pe=W.position,fe=W.onMouseDown,ce=W.onMouseUp,be=W.dragAxis,Ce=W.dragGrid,xe=W.bounds,Se=W.enableUserSelectHack,me=W.cancel,te=W.children,$=W.onResizeStart,B=W.onResize,k=W.onResizeStop,q=W.onDragStart,ne=W.onDrag,Q=W.onDragStop,z=W.resizeHandleStyles,Y=W.resizeHandleClasses,re=W.resizeHandleComponent,ge=W.enableResizing,Be=W.resizeGrid,Oe=W.resizeHandleWrapperClass,Le=W.resizeHandleWrapperStyle,Pe=W.scale,$e=W.allowAnyClick,Ke=W.dragPositionOffset,Ne=H(W,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),Ue=this.props.default?V({},this.props.default):void 0;delete Ne.default;var Ye=le||ue?{cursor:"auto"}:{cursor:"move"},ze=V(V(V({},X),Ye),he),Xe=this.offsetFromParent,qe=Xe.left,Qe=Xe.top,He;pe&&(He={x:pe.x-qe,y:pe.y-Qe});var Ge=this.state.resizing?void 0:He,nt=this.state.resizing?"both":be;return(0,oe.createElement)(t(),{ref:function(st){st&&(U.draggable=st)},handle:ue?".".concat(ue):void 0,defaultPosition:Ue,onMouseDown:fe,onMouseUp:ce,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:nt,disabled:le,grid:Ce,bounds:xe?this.state.bounds:void 0,position:Ge,enableUserSelectHack:Se,cancel:me,scale:Pe,allowAnyClick:$e,nodeRef:this.resizableElement,positionOffset:Ke},(0,oe.createElement)(E,V({},Ne,{ref:function(st){st&&(U.resizable=st,U.resizableElement.current=st.resizable)},defaultSize:Ue,size:this.props.size,enable:typeof ge=="boolean"?G(ge):ge,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:ze,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:Be,handleWrapperClass:Oe,handleWrapperStyle:Le,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:z,handleClasses:Y,handleComponent:re,scale:this.props.scale}),te))},Ae.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Ae}(oe.PureComponent)},7062:function(rt,ke,J){var oe=J(19637),ie=J(97573),t=[J(96627)];rt.exports=oe.createStore(ie,t)},96627:function(rt,ke,J){rt.exports=oe;function oe(){return J(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(rt){return rt<10?"0"+rt:rt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(rt){return rx_escapable.lastIndex=0,rx_escapable.test(rt)?'"'+rt.replace(rx_escapable,function(ke){var J=meta[ke];return typeof J=="string"?J:"\\u"+("0000"+ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+rt+'"'}function str(rt,ke){var J,oe,ie,t,C=gap,b,a=ke[rt];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(rt)),typeof rep=="function"&&(a=rep.call(ke,rt,a)),typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(gap+=indent,b=[],Object.prototype.toString.apply(a)==="[object Array]"){for(t=a.length,J=0;J<t;J+=1)b[J]=str(J,a)||"null";return ie=b.length===0?"[]":gap?`[
|
|
|
`+gap+b.join(`,
|
|
|
`+gap)+`
|
|
|
`+C+"]":"["+b.join(",")+"]",gap=C,ie}if(rep&&typeof rep=="object")for(t=rep.length,J=0;J<t;J+=1)typeof rep[J]=="string"&&(oe=rep[J],ie=str(oe,a),ie&&b.push(quote(oe)+(gap?": ":":")+ie));else for(oe in a)Object.prototype.hasOwnProperty.call(a,oe)&&(ie=str(oe,a),ie&&b.push(quote(oe)+(gap?": ":":")+ie));return ie=b.length===0?"{}":gap?`{
|
|
|
`+gap+b.join(`,
|
|
|
`+gap)+`
|
|
|
`+C+"}":"{"+b.join(",")+"}",gap=C,ie}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(rt,ke,J){var oe;if(gap="",indent="",typeof J=="number")for(oe=0;oe<J;oe+=1)indent+=" ";else typeof J=="string"&&(indent=J);if(rep=ke,ke&&typeof ke!="function"&&(typeof ke!="object"||typeof ke.length!="number"))throw new Error("JSON.stringify");return str("",{"":rt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(rt,ke){var J,oe,ie=rt[ke];if(ie&&typeof ie=="object")for(J in ie)Object.prototype.hasOwnProperty.call(ie,J)&&(oe=walk(ie,J),oe!==void 0?ie[J]=oe:delete ie[J]);return reviver.call(rt,ke,ie)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(rt){return"\\u"+("0000"+rt.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(rt,ke,J){var oe=J(67039),ie=oe.slice,t=oe.pluck,C=oe.each,b=oe.bind,a=oe.create,u=oe.isList,A=oe.isFunction,c=oe.isObject;rt.exports={createStore:n};var h={version:"2.0.12",enabled:!1,get:function(r,s){var l=this.storage.read(this._namespacePrefix+r);return this._deserialize(l,s)},set:function(r,s){return s===void 0?this.remove(r):(this.storage.write(this._namespacePrefix+r,this._serialize(s)),s)},remove:function(r){this.storage.remove(this._namespacePrefix+r)},each:function(r){var s=this;this.storage.each(function(l,d){r.call(s,s._deserialize(l),(d||"").replace(s._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(r){return this._namespacePrefix=="__storejs_"+r+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(r){this._addPlugin(r)},namespace:function(r){return n(this.storage,this.plugins,r)}};function o(){var r=typeof console=="undefined"?null:console;if(r){var s=r.warn?r.warn:r.log;s.apply(r,arguments)}}function n(r,s,l){l||(l=""),r&&!u(r)&&(r=[r]),s&&!u(s)&&(s=[s]);var d=l?"__storejs_"+l+"_":"",p=l?new RegExp("^"+d):null,g=/^[a-zA-Z0-9_\-]*$/;if(!g.test(l))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var m={_namespacePrefix:d,_namespaceRegexp:p,_testStorage:function(_){try{var O="__storejs__test__";_.write(O,O);var F=_.read(O)===O;return _.remove(O),F}catch(T){return!1}},_assignPluginFnProp:function(_,O){var F=this[O];this[O]=function(){var S=ie(arguments,0),I=this;function E(){if(F)return C(arguments,function(N,V){S[V]=N}),F.apply(I,S)}var M=[E].concat(S);return _.apply(I,M)}},_serialize:function(_){return JSON.stringify(_)},_deserialize:function(_,O){if(!_)return O;var F="";try{F=JSON.parse(_)}catch(T){F=_}return F!==void 0?F:O},_addStorage:function(_){this.enabled||this._testStorage(_)&&(this.storage=_,this.enabled=!0)},_addPlugin:function(_){var O=this;if(u(_)){C(_,function(S){O._addPlugin(S)});return}var F=t(this.plugins,function(S){return _===S});if(!F){if(this.plugins.push(_),!A(_))throw new Error("Plugins must be function values that return objects");var T=_.call(this);if(!c(T))throw new Error("Plugins must return an object of function properties");C(T,function(S,I){if(!A(S))throw new Error("Bad plugin property: "+I+" from plugin "+_.name+". Plugins should only return functions.");O._assignPluginFnProp(S,I)})}},addStorage:function(_){o("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(_)}},v=a(m,h,{plugins:[]});return v.raw={},C(v,function(_,O){A(_)&&(v.raw[O]=b(v,_))}),C(r,function(_){v._addStorage(_)}),C(s,function(_){v._addPlugin(_)}),v}},67039:function(rt,ke,J){var oe=b(),ie=a(),t=u(),C=typeof window!="undefined"?window:J.g;rt.exports={assign:oe,create:ie,trim:t,bind:A,slice:c,each:h,map:o,pluck:n,isList:r,isFunction:s,isObject:l,Global:C};function b(){return Object.assign?Object.assign:function(p,g,m,v){for(var _=1;_<arguments.length;_++)h(Object(arguments[_]),function(O,F){p[F]=O});return p}}function a(){if(Object.create)return function(g,m,v,_){var O=c(arguments,1);return oe.apply(this,[Object.create(g)].concat(O))};{let p=function(){};var d=p;return function(m,v,_,O){var F=c(arguments,1);return p.prototype=m,oe.apply(this,[new p].concat(F))}}}function u(){return String.prototype.trim?function(p){return String.prototype.trim.call(p)}:function(p){return p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function A(d,p){return function(){return p.apply(d,Array.prototype.slice.call(arguments,0))}}function c(d,p){return Array.prototype.slice.call(d,p||0)}function h(d,p){n(d,function(g,m){return p(g,m),!1})}function o(d,p){var g=r(d)?[]:{};return n(d,function(m,v){return g[v]=p(m,v),!1}),g}function n(d,p){if(r(d)){for(var g=0;g<d.length;g++)if(p(d[g],g))return d[g]}else for(var m in d)if(d.hasOwnProperty(m)&&p(d[m],m))return d[m]}function r(d){return d!=null&&typeof d!="function"&&typeof d.length=="number"}function s(d){return d&&{}.toString.call(d)==="[object Function]"}function l(d){return d&&{}.toString.call(d)==="[object Object]"}},97573:function(rt,ke,J){rt.exports=[J(52496),J(16436),J(76673),J(35701),J(65578),J(65300)]},35701:function(rt,ke,J){var oe=J(67039),ie=oe.Global,t=oe.trim;rt.exports={name:"cookieStorage",read:b,write:u,each:a,remove:A,clearAll:c};var C=ie.document;function b(o){if(!o||!h(o))return null;var n="(?:^|.*;\\s*)"+escape(o).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(C.cookie.replace(new RegExp(n),"$1"))}function a(o){for(var n=C.cookie.split(/; ?/g),r=n.length-1;r>=0;r--)if(t(n[r])){var s=n[r].split("="),l=unescape(s[0]),d=unescape(s[1]);o(d,l)}}function u(o,n){o&&(C.cookie=escape(o)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function A(o){!o||!h(o)||(C.cookie=escape(o)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function c(){a(function(o,n){A(n)})}function h(o){return new RegExp("(?:^|;\\s*)"+escape(o).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(C.cookie)}},52496:function(rt,ke,J){var oe=J(67039),ie=oe.Global;rt.exports={name:"localStorage",read:C,write:b,each:a,remove:u,clearAll:A};function t(){return ie.localStorage}function C(c){return t().getItem(c)}function b(c,h){return t().setItem(c,h)}function a(c){for(var h=t().length-1;h>=0;h--){var o=t().key(h);c(C(o),o)}}function u(c){return t().removeItem(c)}function A(){return t().clear()}},65300:function(rt){rt.exports={name:"memoryStorage",read:J,write:oe,each:ie,remove:t,clearAll:C};var ke={};function J(b){return ke[b]}function oe(b,a){ke[b]=a}function ie(b){for(var a in ke)ke.hasOwnProperty(a)&&b(ke[a],a)}function t(b){delete ke[b]}function C(b){ke={}}},16436:function(rt,ke,J){var oe=J(67039),ie=oe.Global;rt.exports={name:"oldFF-globalStorage",read:C,write:b,each:a,remove:u,clearAll:A};var t=ie.globalStorage;function C(c){return t[c]}function b(c,h){t[c]=h}function a(c){for(var h=t.length-1;h>=0;h--){var o=t.key(h);c(t[o],o)}}function u(c){return t.removeItem(c)}function A(){a(function(c,h){delete t[c]})}},76673:function(rt,ke,J){var oe=J(67039),ie=oe.Global;rt.exports={name:"oldIE-userDataStorage",write:u,read:A,each:c,remove:h,clearAll:o};var t="storejs",C=ie.document,b=s(),a=(ie.navigator?ie.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function u(l,d){if(!a){var p=r(l);b(function(g){g.setAttribute(p,d),g.save(t)})}}function A(l){if(!a){var d=r(l),p=null;return b(function(g){p=g.getAttribute(d)}),p}}function c(l){b(function(d){for(var p=d.XMLDocument.documentElement.attributes,g=p.length-1;g>=0;g--){var m=p[g];l(d.getAttribute(m.name),m.name)}})}function h(l){var d=r(l);b(function(p){p.removeAttribute(d),p.save(t)})}function o(){b(function(l){var d=l.XMLDocument.documentElement.attributes;l.load(t);for(var p=d.length-1;p>=0;p--)l.removeAttribute(d[p].name);l.save(t)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function r(l){return l.replace(/^\d/,"___$&").replace(n,"___")}function s(){if(!C||!C.documentElement||!C.documentElement.addBehavior)return null;var l="script",d,p,g;try{p=new ActiveXObject("htmlfile"),p.open(),p.write("<"+l+">document.w=window</"+l+'><iframe src="/favicon.ico"></iframe>'),p.close(),d=p.w.frames[0].document,g=d.createElement("div")}catch(m){g=C.createElement("div"),d=C.body}return function(m){var v=[].slice.call(arguments,0);v.unshift(g),d.appendChild(g),g.addBehavior("#default#userData"),g.load(t),m.apply(this,v),d.removeChild(g)}}},65578:function(rt,ke,J){var oe=J(67039),ie=oe.Global;rt.exports={name:"sessionStorage",read:C,write:b,each:a,remove:u,clearAll:A};function t(){return ie.sessionStorage}function C(c){return t().getItem(c)}function b(c,h){return t().setItem(c,h)}function a(c){for(var h=t().length-1;h>=0;h--){var o=t().key(h);c(C(o),o)}}function u(c){return t().removeItem(c)}function A(){return t().clear()}},34376:function(rt){(function(ke,J){if(1)rt.exports=J();else var oe,ie})(window,function(){return function(ke){var J={};function oe(ie){if(J[ie])return J[ie].exports;var t=J[ie]={i:ie,l:!1,exports:{}};return ke[ie].call(t.exports,t,t.exports,oe),t.l=!0,t.exports}return oe.m=ke,oe.c=J,oe.d=function(ie,t,C){oe.o(ie,t)||Object.defineProperty(ie,t,{enumerable:!0,get:C})},oe.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},oe.t=function(ie,t){if(1&t&&(ie=oe(ie)),8&t||4&t&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var C=Object.create(null);if(oe.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:ie}),2&t&&typeof ie!="string")for(var b in ie)oe.d(C,b,function(a){return ie[a]}.bind(null,b));return C},oe.n=function(ie){var t=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return oe.d(t,"a",t),t},oe.o=function(ie,t){return Object.prototype.hasOwnProperty.call(ie,t)},oe.p="",oe(oe.s=34)}([function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.forwardEvent=J.EventEmitter=void 0;var ie=function(){function t(){this._listeners=[],this._disposed=!1}return Object.defineProperty(t.prototype,"event",{get:function(){var C=this;return this._event||(this._event=function(b){return C._listeners.push(b),{dispose:function(){if(!C._disposed){for(var a=0;a<C._listeners.length;a++)if(C._listeners[a]===b)return void C._listeners.splice(a,1)}}}}),this._event},enumerable:!1,configurable:!0}),t.prototype.fire=function(C,b){for(var a=[],u=0;u<this._listeners.length;u++)a.push(this._listeners[u]);for(u=0;u<a.length;u++)a[u].call(void 0,C,b)},t.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},t}();J.EventEmitter=ie,J.forwardEvent=function(t,C){return t(function(b){return C.fire(b)})}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.IUnicodeService=J.IOptionsService=J.ILogService=J.IInstantiationService=J.IDirtyRowService=J.ICharsetService=J.ICoreService=J.ICoreMouseService=J.IBufferService=void 0;var ie=oe(14);J.IBufferService=ie.createDecorator("BufferService"),J.ICoreMouseService=ie.createDecorator("CoreMouseService"),J.ICoreService=ie.createDecorator("CoreService"),J.ICharsetService=ie.createDecorator("CharsetService"),J.IDirtyRowService=ie.createDecorator("DirtyRowService"),J.IInstantiationService=ie.createDecorator("InstantiationService"),J.ILogService=ie.createDecorator("LogService"),J.IOptionsService=ie.createDecorator("OptionsService"),J.IUnicodeService=ie.createDecorator("UnicodeService")},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getDisposeArrayDisposable=J.disposeArray=J.Disposable=void 0;var ie=function(){function C(){this._disposables=[],this._isDisposed=!1}return C.prototype.dispose=function(){this._isDisposed=!0;for(var b=0,a=this._disposables;b<a.length;b++)a[b].dispose();this._disposables.length=0},C.prototype.register=function(b){return this._disposables.push(b),b},C.prototype.unregister=function(b){var a=this._disposables.indexOf(b);a!==-1&&this._disposables.splice(a,1)},C}();function t(C){for(var b=0,a=C;b<a.length;b++)a[b].dispose();C.length=0}J.Disposable=ie,J.disposeArray=t,J.getDisposeArrayDisposable=function(C){return{dispose:function(){return t(C)}}}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.WHITESPACE_CELL_CODE=J.WHITESPACE_CELL_WIDTH=J.WHITESPACE_CELL_CHAR=J.NULL_CELL_CODE=J.NULL_CELL_WIDTH=J.NULL_CELL_CHAR=J.CHAR_DATA_CODE_INDEX=J.CHAR_DATA_WIDTH_INDEX=J.CHAR_DATA_CHAR_INDEX=J.CHAR_DATA_ATTR_INDEX=J.DEFAULT_ATTR=J.DEFAULT_COLOR=void 0,J.DEFAULT_COLOR=256,J.DEFAULT_ATTR=256|J.DEFAULT_COLOR<<9,J.CHAR_DATA_ATTR_INDEX=0,J.CHAR_DATA_CHAR_INDEX=1,J.CHAR_DATA_WIDTH_INDEX=2,J.CHAR_DATA_CODE_INDEX=3,J.NULL_CELL_CHAR="",J.NULL_CELL_WIDTH=1,J.NULL_CELL_CODE=0,J.WHITESPACE_CELL_CHAR=" ",J.WHITESPACE_CELL_WIDTH=1,J.WHITESPACE_CELL_CODE=32},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(A,c){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])})(A,c)},function(A,c){function h(){this.constructor=A}ie(A,c),A.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(J,"__esModule",{value:!0}),J.CellData=void 0;var C=oe(8),b=oe(3),a=oe(6),u=function(A){function c(){var h=A!==null&&A.apply(this,arguments)||this;return h.content=0,h.fg=0,h.bg=0,h.extended=new a.ExtendedAttrs,h.combinedData="",h}return t(c,A),c.fromCharData=function(h){var o=new c;return o.setFromCharData(h),o},c.prototype.isCombined=function(){return 2097152&this.content},c.prototype.getWidth=function(){return this.content>>22},c.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?C.stringFromCodePoint(2097151&this.content):""},c.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},c.prototype.setFromCharData=function(h){this.fg=h[b.CHAR_DATA_ATTR_INDEX],this.bg=0;var o=!1;if(h[b.CHAR_DATA_CHAR_INDEX].length>2)o=!0;else if(h[b.CHAR_DATA_CHAR_INDEX].length===2){var n=h[b.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var r=h[b.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(n-55296)+r-56320+65536|h[b.CHAR_DATA_WIDTH_INDEX]<<22:o=!0}else o=!0}else this.content=h[b.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|h[b.CHAR_DATA_WIDTH_INDEX]<<22;o&&(this.combinedData=h[b.CHAR_DATA_CHAR_INDEX],this.content=2097152|h[b.CHAR_DATA_WIDTH_INDEX]<<22)},c.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},c}(a.AttributeData);J.CellData=u},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ISoundService=J.ISelectionService=J.IRenderService=J.IMouseService=J.ICoreBrowserService=J.ICharSizeService=void 0;var ie=oe(14);J.ICharSizeService=ie.createDecorator("CharSizeService"),J.ICoreBrowserService=ie.createDecorator("CoreBrowserService"),J.IMouseService=ie.createDecorator("MouseService"),J.IRenderService=ie.createDecorator("RenderService"),J.ISelectionService=ie.createDecorator("SelectionService"),J.ISoundService=ie.createDecorator("SoundService")},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ExtendedAttrs=J.AttributeData=void 0;var ie=function(){function C(){this.fg=0,this.bg=0,this.extended=new t}return C.toColorRGB=function(b){return[b>>>16&255,b>>>8&255,255&b]},C.fromColorRGB=function(b){return(255&b[0])<<16|(255&b[1])<<8|255&b[2]},C.prototype.clone=function(){var b=new C;return b.fg=this.fg,b.bg=this.bg,b.extended=this.extended.clone(),b},C.prototype.isInverse=function(){return 67108864&this.fg},C.prototype.isBold=function(){return 134217728&this.fg},C.prototype.isUnderline=function(){return 268435456&this.fg},C.prototype.isBlink=function(){return 536870912&this.fg},C.prototype.isInvisible=function(){return 1073741824&this.fg},C.prototype.isItalic=function(){return 67108864&this.bg},C.prototype.isDim=function(){return 134217728&this.bg},C.prototype.getFgColorMode=function(){return 50331648&this.fg},C.prototype.getBgColorMode=function(){return 50331648&this.bg},C.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},C.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},C.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},C.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},C.prototype.isFgDefault=function(){return(50331648&this.fg)==0},C.prototype.isBgDefault=function(){return(50331648&this.bg)==0},C.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},C.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},C.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},C.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},C.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},C.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},C.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},C.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},C.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},C.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},C.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},C}();J.AttributeData=ie;var t=function(){function C(b,a){b===void 0&&(b=0),a===void 0&&(a=-1),this.underlineStyle=b,this.underlineColor=a}return C.prototype.clone=function(){return new C(this.underlineStyle,this.underlineColor)},C.prototype.isEmpty=function(){return this.underlineStyle===0},C}();J.ExtendedAttrs=t},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.addDisposableDomListener=void 0,J.addDisposableDomListener=function(ie,t,C,b){ie.addEventListener(t,C,b);var a=!1;return{dispose:function(){a||(a=!0,ie.removeEventListener(t,C,b))}}}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Utf8ToUtf32=J.StringToUtf32=J.utf32ToString=J.stringFromCodePoint=void 0,J.stringFromCodePoint=function(C){return C>65535?(C-=65536,String.fromCharCode(55296+(C>>10))+String.fromCharCode(C%1024+56320)):String.fromCharCode(C)},J.utf32ToString=function(C,b,a){b===void 0&&(b=0),a===void 0&&(a=C.length);for(var u="",A=b;A<a;++A){var c=C[A];c>65535?(c-=65536,u+=String.fromCharCode(55296+(c>>10))+String.fromCharCode(c%1024+56320)):u+=String.fromCharCode(c)}return u};var ie=function(){function C(){this._interim=0}return C.prototype.clear=function(){this._interim=0},C.prototype.decode=function(b,a){var u=b.length;if(!u)return 0;var A=0,c=0;this._interim&&(56320<=(n=b.charCodeAt(c++))&&n<=57343?a[A++]=1024*(this._interim-55296)+n-56320+65536:(a[A++]=this._interim,a[A++]=n),this._interim=0);for(var h=c;h<u;++h){var o=b.charCodeAt(h);if(55296<=o&&o<=56319){if(++h>=u)return this._interim=o,A;var n;56320<=(n=b.charCodeAt(h))&&n<=57343?a[A++]=1024*(o-55296)+n-56320+65536:(a[A++]=o,a[A++]=n)}else a[A++]=o}return A},C}();J.StringToUtf32=ie;var t=function(){function C(){this.interim=new Uint8Array(3)}return C.prototype.clear=function(){this.interim.fill(0)},C.prototype.decode=function(b,a){var u=b.length;if(!u)return 0;var A,c,h,o,n=0,r=0,s=0;if(this.interim[0]){var l=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;for(var p=0,g=void 0;(g=63&this.interim[++p])&&p<4;)d<<=6,d|=g;for(var m=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=m-p;s<v;){if(s>=u)return 0;if((192&(g=b[s++]))!=128){s--,l=!0;break}this.interim[p++]=g,d<<=6,d|=63&g}l||(m===2?d<128?s--:a[n++]=d:m===3?d<2048||d>=55296&&d<=57343||(a[n++]=d):d<65536||d>1114111||(a[n++]=d)),this.interim.fill(0)}for(var _=u-4,O=s;O<u;){for(;!(!(O<_)||128&(A=b[O])||128&(c=b[O+1])||128&(h=b[O+2])||128&(o=b[O+3]));)a[n++]=A,a[n++]=c,a[n++]=h,a[n++]=o,O+=4;if((A=b[O++])<128)a[n++]=A;else if((224&A)==192){if(O>=u)return this.interim[0]=A,n;if((192&(c=b[O++]))!=128){O--;continue}if((r=(31&A)<<6|63&c)<128){O--;continue}a[n++]=r}else if((240&A)==224){if(O>=u)return this.interim[0]=A,n;if((192&(c=b[O++]))!=128){O--;continue}if(O>=u)return this.interim[0]=A,this.interim[1]=c,n;if((192&(h=b[O++]))!=128){O--;continue}if((r=(15&A)<<12|(63&c)<<6|63&h)<2048||r>=55296&&r<=57343)continue;a[n++]=r}else if((248&A)==240){if(O>=u)return this.interim[0]=A,n;if((192&(c=b[O++]))!=128){O--;continue}if(O>=u)return this.interim[0]=A,this.interim[1]=c,n;if((192&(h=b[O++]))!=128){O--;continue}if(O>=u)return this.interim[0]=A,this.interim[1]=c,this.interim[2]=h,n;if((192&(o=b[O++]))!=128){O--;continue}if((r=(7&A)<<18|(63&c)<<12|(63&h)<<6|63&o)<65536||r>1114111)continue;a[n++]=r}}return n},C}();J.Utf8ToUtf32=t},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.CHAR_ATLAS_CELL_SPACING=J.DIM_OPACITY=J.INVERTED_DEFAULT_COLOR=void 0,J.INVERTED_DEFAULT_COLOR=257,J.DIM_OPACITY=.5,J.CHAR_ATLAS_CELL_SPACING=1},function(ke,J,oe){"use strict";var ie,t,C,b;function a(A){var c=A.toString(16);return c.length<2?"0"+c:c}function u(A,c){return A<c?(c+.05)/(A+.05):(A+.05)/(c+.05)}Object.defineProperty(J,"__esModule",{value:!0}),J.contrastRatio=J.toPaddedHex=J.rgba=J.rgb=J.css=J.color=J.channels=void 0,function(A){A.toCss=function(c,h,o,n){return n!==void 0?"#"+a(c)+a(h)+a(o)+a(n):"#"+a(c)+a(h)+a(o)},A.toRgba=function(c,h,o,n){return n===void 0&&(n=255),(c<<24|h<<16|o<<8|n)>>>0}}(ie=J.channels||(J.channels={})),(t=J.color||(J.color={})).blend=function(A,c){var h=(255&c.rgba)/255;if(h===1)return{css:c.css,rgba:c.rgba};var o=c.rgba>>24&255,n=c.rgba>>16&255,r=c.rgba>>8&255,s=A.rgba>>24&255,l=A.rgba>>16&255,d=A.rgba>>8&255,p=s+Math.round((o-s)*h),g=l+Math.round((n-l)*h),m=d+Math.round((r-d)*h);return{css:ie.toCss(p,g,m),rgba:ie.toRgba(p,g,m)}},t.isOpaque=function(A){return(255&A.rgba)==255},t.ensureContrastRatio=function(A,c,h){var o=b.ensureContrastRatio(A.rgba,c.rgba,h);if(o)return b.toColor(o>>24&255,o>>16&255,o>>8&255)},t.opaque=function(A){var c=(255|A.rgba)>>>0,h=b.toChannels(c),o=h[0],n=h[1],r=h[2];return{css:ie.toCss(o,n,r),rgba:c}},t.opacity=function(A,c){var h=Math.round(255*c),o=b.toChannels(A.rgba),n=o[0],r=o[1],s=o[2];return{css:ie.toCss(n,r,s,h),rgba:ie.toRgba(n,r,s,h)}},(J.css||(J.css={})).toColor=function(A){switch(A.length){case 7:return{css:A,rgba:(parseInt(A.slice(1),16)<<8|255)>>>0};case 9:return{css:A,rgba:parseInt(A.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(A){function c(h,o,n){var r=h/255,s=o/255,l=n/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))}A.relativeLuminance=function(h){return c(h>>16&255,h>>8&255,255&h)},A.relativeLuminance2=c}(C=J.rgb||(J.rgb={})),function(A){function c(o,n,r){for(var s=o>>24&255,l=o>>16&255,d=o>>8&255,p=n>>24&255,g=n>>16&255,m=n>>8&255,v=u(C.relativeLuminance2(p,m,g),C.relativeLuminance2(s,l,d));v<r&&(p>0||g>0||m>0);)p-=Math.max(0,Math.ceil(.1*p)),g-=Math.max(0,Math.ceil(.1*g)),m-=Math.max(0,Math.ceil(.1*m)),v=u(C.relativeLuminance2(p,m,g),C.relativeLuminance2(s,l,d));return(p<<24|g<<16|m<<8|255)>>>0}function h(o,n,r){for(var s=o>>24&255,l=o>>16&255,d=o>>8&255,p=n>>24&255,g=n>>16&255,m=n>>8&255,v=u(C.relativeLuminance2(p,m,g),C.relativeLuminance2(s,l,d));v<r&&(p<255||g<255||m<255);)p=Math.min(255,p+Math.ceil(.1*(255-p))),g=Math.min(255,g+Math.ceil(.1*(255-g))),m=Math.min(255,m+Math.ceil(.1*(255-m))),v=u(C.relativeLuminance2(p,m,g),C.relativeLuminance2(s,l,d));return(p<<24|g<<16|m<<8|255)>>>0}A.ensureContrastRatio=function(o,n,r){var s=C.relativeLuminance(o>>8),l=C.relativeLuminance(n>>8);if(u(s,l)<r)return l<s?c(o,n,r):h(o,n,r)},A.reduceLuminance=c,A.increaseLuminance=h,A.toChannels=function(o){return[o>>24&255,o>>16&255,o>>8&255,255&o]},A.toColor=function(o,n,r){return{css:ie.toCss(o,n,r),rgba:ie.toRgba(o,n,r)}}}(b=J.rgba||(J.rgba={})),J.toPaddedHex=a,J.contrastRatio=u},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.isLinux=J.isWindows=J.isIphone=J.isIpad=J.isMac=J.isSafari=J.isFirefox=void 0;var ie=typeof navigator=="undefined",t=ie?"node":navigator.userAgent,C=ie?"node":navigator.platform;function b(a,u){return a.indexOf(u)>=0}J.isFirefox=!!~t.indexOf("Firefox"),J.isSafari=/^((?!chrome|android).)*safari/i.test(t),J.isMac=b(["Macintosh","MacIntel","MacPPC","Mac68K"],C),J.isIpad=C==="iPad",J.isIphone=C==="iPhone",J.isWindows=b(["Windows","Win16","Win32","WinCE"],C),J.isLinux=C.indexOf("Linux")>=0},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.C1=J.C0=void 0,function(ie){ie.NUL="\0",ie.SOH="",ie.STX="",ie.ETX="",ie.EOT="",ie.ENQ="",ie.ACK="",ie.BEL="\x07",ie.BS="\b",ie.HT=" ",ie.LF=`
|
|
|
`,ie.VT="\v",ie.FF="\f",ie.CR="\r",ie.SO="",ie.SI="",ie.DLE="",ie.DC1="",ie.DC2="",ie.DC3="",ie.DC4="",ie.NAK="",ie.SYN="",ie.ETB="",ie.CAN="",ie.EM="",ie.SUB="",ie.ESC="\x1B",ie.FS="",ie.GS="",ie.RS="",ie.US="",ie.SP=" ",ie.DEL="\x7F"}(J.C0||(J.C0={})),function(ie){ie.PAD="\x80",ie.HOP="\x81",ie.BPH="\x82",ie.NBH="\x83",ie.IND="\x84",ie.NEL="\x85",ie.SSA="\x86",ie.ESA="\x87",ie.HTS="\x88",ie.HTJ="\x89",ie.VTS="\x8A",ie.PLD="\x8B",ie.PLU="\x8C",ie.RI="\x8D",ie.SS2="\x8E",ie.SS3="\x8F",ie.DCS="\x90",ie.PU1="\x91",ie.PU2="\x92",ie.STS="\x93",ie.CCH="\x94",ie.MW="\x95",ie.SPA="\x96",ie.EPA="\x97",ie.SOS="\x98",ie.SGCI="\x99",ie.SCI="\x9A",ie.CSI="\x9B",ie.ST="\x9C",ie.OSC="\x9D",ie.PM="\x9E",ie.APC="\x9F"}(J.C1||(J.C1={}))},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BaseRenderLayer=void 0;var ie=oe(3),t=oe(9),C=oe(25),b=oe(6),a=oe(28),u=oe(10),A=oe(17),c=function(){function h(o,n,r,s,l,d,p,g){this._container=o,this._alpha=s,this._colors=l,this._rendererId=d,this._bufferService=p,this._optionsService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+n+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return h.prototype.dispose=function(){var o;A.removeElementFromParent(this._canvas),(o=this._charAtlas)===null||o===void 0||o.dispose()},h.prototype._initCanvas=function(){this._ctx=a.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},h.prototype.onOptionsChanged=function(){},h.prototype.onBlur=function(){},h.prototype.onFocus=function(){},h.prototype.onCursorMove=function(){},h.prototype.onGridChanged=function(o,n){},h.prototype.onSelectionChanged=function(o,n,r){r===void 0&&(r=!1)},h.prototype.setColors=function(o){this._refreshCharAtlas(o)},h.prototype._setTransparency=function(o){if(o!==this._alpha){var n=this._canvas;this._alpha=o,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},h.prototype._refreshCharAtlas=function(o){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=C.acquireCharAtlas(this._optionsService.options,this._rendererId,o,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},h.prototype.resize=function(o){this._scaledCellWidth=o.scaledCellWidth,this._scaledCellHeight=o.scaledCellHeight,this._scaledCharWidth=o.scaledCharWidth,this._scaledCharHeight=o.scaledCharHeight,this._scaledCharLeft=o.scaledCharLeft,this._scaledCharTop=o.scaledCharTop,this._canvas.width=o.scaledCanvasWidth,this._canvas.height=o.scaledCanvasHeight,this._canvas.style.width=o.canvasWidth+"px",this._canvas.style.height=o.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},h.prototype._fillCells=function(o,n,r,s){this._ctx.fillRect(o*this._scaledCellWidth,n*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},h.prototype._fillBottomLineAtCells=function(o,n,r){r===void 0&&(r=1),this._ctx.fillRect(o*this._scaledCellWidth,(n+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},h.prototype._fillLeftLineAtCell=function(o,n,r){this._ctx.fillRect(o*this._scaledCellWidth,n*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},h.prototype._strokeRectAtCell=function(o,n,r,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(o*this._scaledCellWidth+window.devicePixelRatio/2,n*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},h.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},h.prototype._clearCells=function(o,n,r,s){this._alpha?this._ctx.clearRect(o*this._scaledCellWidth,n*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(o*this._scaledCellWidth,n*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight))},h.prototype._fillCharTrueColor=function(o,n,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(o.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},h.prototype._drawChars=function(o,n,r){var s,l,d=this._getContrastColor(o);d||o.isFgRGB()||o.isBgRGB()?this._drawUncachedChars(o,n,r,d):(o.isInverse()?(s=o.isBgDefault()?t.INVERTED_DEFAULT_COLOR:o.getBgColor(),l=o.isFgDefault()?t.INVERTED_DEFAULT_COLOR:o.getFgColor()):(l=o.isBgDefault()?ie.DEFAULT_COLOR:o.getBgColor(),s=o.isFgDefault()?ie.DEFAULT_COLOR:o.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&o.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=o.getChars()||ie.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=o.getCode()||ie.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!o.isBold(),this._currentGlyphIdentifier.dim=!!o.isDim(),this._currentGlyphIdentifier.italic=!!o.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,n*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(o,n,r))},h.prototype._drawUncachedChars=function(o,n,r,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!o.isBold(),!!o.isItalic()),this._ctx.textBaseline="middle",o.isInverse())if(s)this._ctx.fillStyle=s.css;else if(o.isBgDefault())this._ctx.fillStyle=u.color.opaque(this._colors.background).css;else if(o.isBgRGB())this._ctx.fillStyle="rgb("+b.AttributeData.toColorRGB(o.getBgColor()).join(",")+")";else{var l=o.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&o.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(s)this._ctx.fillStyle=s.css;else if(o.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(o.isFgRGB())this._ctx.fillStyle="rgb("+b.AttributeData.toColorRGB(o.getFgColor()).join(",")+")";else{var d=o.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&o.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].css}this._clipRow(r),o.isDim()&&(this._ctx.globalAlpha=t.DIM_OPACITY),this._ctx.fillText(o.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},h.prototype._clipRow=function(o){this._ctx.beginPath(),this._ctx.rect(0,o*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},h.prototype._getFont=function(o,n){return(n?"italic":"")+" "+(o?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},h.prototype._getContrastColor=function(o){if(this._optionsService.options.minimumContrastRatio!==1){var n=this._colors.contrastCache.getColor(o.bg,o.fg);if(n!==void 0)return n||void 0;var r=o.getFgColor(),s=o.getFgColorMode(),l=o.getBgColor(),d=o.getBgColorMode(),p=!!o.isInverse(),g=!!o.isInverse();if(p){var m=r;r=l,l=m;var v=s;s=d,d=v}var _=this._resolveBackgroundRgba(d,l,p),O=this._resolveForegroundRgba(s,r,p,g),F=u.rgba.ensureContrastRatio(_,O,this._optionsService.options.minimumContrastRatio);if(F){var T={css:u.channels.toCss(F>>24&255,F>>16&255,F>>8&255),rgba:F};return this._colors.contrastCache.setColor(o.bg,o.fg,T),T}this._colors.contrastCache.setColor(o.bg,o.fg,null)}},h.prototype._resolveBackgroundRgba=function(o,n,r){switch(o){case 16777216:case 33554432:return this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},h.prototype._resolveForegroundRgba=function(o,n,r,s){switch(o){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&s&&n<8&&(n+=8),this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},h}();J.BaseRenderLayer=c},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.createDecorator=J.getServiceDependencies=J.serviceRegistry=void 0;function ie(t,C,b){C.di$target===C?C.di$dependencies.push({id:t,index:b}):(C.di$dependencies=[{id:t,index:b}],C.di$target=C)}J.serviceRegistry=new Map,J.getServiceDependencies=function(t){return t.di$dependencies||[]},J.createDecorator=function(t){if(J.serviceRegistry.has(t))return J.serviceRegistry.get(t);var C=function(b,a,u){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(C,b,u)};return C.toString=function(){return t},J.serviceRegistry.set(t,C),C}},function(ke,J,oe){"use strict";function ie(t,C,b,a){if(b===void 0&&(b=0),a===void 0&&(a=t.length),b>=t.length)return t;b=(t.length+b)%t.length,a=a>=t.length?t.length:(t.length+a)%t.length;for(var u=b;u<a;++u)t[u]=C;return t}Object.defineProperty(J,"__esModule",{value:!0}),J.concat=J.fillFallback=J.fill=void 0,J.fill=function(t,C,b,a){return t.fill?t.fill(C,b,a):ie(t,C,b,a)},J.fillFallback=ie,J.concat=function(t,C){var b=new t.constructor(t.length+C.length);return b.set(t),b.set(C,t.length),b}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BufferLine=J.DEFAULT_ATTR_DATA=void 0;var ie=oe(8),t=oe(3),C=oe(4),b=oe(6);J.DEFAULT_ATTR_DATA=Object.freeze(new b.AttributeData);var a=function(){function u(A,c,h){h===void 0&&(h=!1),this.isWrapped=h,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*A);for(var o=c||C.CellData.fromCharData([0,t.NULL_CELL_CHAR,t.NULL_CELL_WIDTH,t.NULL_CELL_CODE]),n=0;n<A;++n)this.setCell(n,o);this.length=A}return u.prototype.get=function(A){var c=this._data[3*A+0],h=2097151&c;return[this._data[3*A+1],2097152&c?this._combined[A]:h?ie.stringFromCodePoint(h):"",c>>22,2097152&c?this._combined[A].charCodeAt(this._combined[A].length-1):h]},u.prototype.set=function(A,c){this._data[3*A+1]=c[t.CHAR_DATA_ATTR_INDEX],c[t.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[A]=c[1],this._data[3*A+0]=2097152|A|c[t.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*A+0]=c[t.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|c[t.CHAR_DATA_WIDTH_INDEX]<<22},u.prototype.getWidth=function(A){return this._data[3*A+0]>>22},u.prototype.hasWidth=function(A){return 12582912&this._data[3*A+0]},u.prototype.getFg=function(A){return this._data[3*A+1]},u.prototype.getBg=function(A){return this._data[3*A+2]},u.prototype.hasContent=function(A){return 4194303&this._data[3*A+0]},u.prototype.getCodePoint=function(A){var c=this._data[3*A+0];return 2097152&c?this._combined[A].charCodeAt(this._combined[A].length-1):2097151&c},u.prototype.isCombined=function(A){return 2097152&this._data[3*A+0]},u.prototype.getString=function(A){var c=this._data[3*A+0];return 2097152&c?this._combined[A]:2097151&c?ie.stringFromCodePoint(2097151&c):""},u.prototype.loadCell=function(A,c){var h=3*A;return c.content=this._data[h+0],c.fg=this._data[h+1],c.bg=this._data[h+2],2097152&c.content&&(c.combinedData=this._combined[A]),268435456&c.bg&&(c.extended=this._extendedAttrs[A]),c},u.prototype.setCell=function(A,c){2097152&c.content&&(this._combined[A]=c.combinedData),268435456&c.bg&&(this._extendedAttrs[A]=c.extended),this._data[3*A+0]=c.content,this._data[3*A+1]=c.fg,this._data[3*A+2]=c.bg},u.prototype.setCellFromCodePoint=function(A,c,h,o,n,r){268435456&n&&(this._extendedAttrs[A]=r),this._data[3*A+0]=c|h<<22,this._data[3*A+1]=o,this._data[3*A+2]=n},u.prototype.addCodepointToCell=function(A,c){var h=this._data[3*A+0];2097152&h?this._combined[A]+=ie.stringFromCodePoint(c):(2097151&h?(this._combined[A]=ie.stringFromCodePoint(2097151&h)+ie.stringFromCodePoint(c),h&=-2097152,h|=2097152):h=c|1<<22,this._data[3*A+0]=h)},u.prototype.insertCells=function(A,c,h,o){if((A%=this.length)&&this.getWidth(A-1)===2&&this.setCellFromCodePoint(A-1,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs),c<this.length-A){for(var n=new C.CellData,r=this.length-A-c-1;r>=0;--r)this.setCell(A+c+r,this.loadCell(A+r,n));for(r=0;r<c;++r)this.setCell(A+r,h)}else for(r=A;r<this.length;++r)this.setCell(r,h);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs)},u.prototype.deleteCells=function(A,c,h,o){if(A%=this.length,c<this.length-A){for(var n=new C.CellData,r=0;r<this.length-A-c;++r)this.setCell(A+r,this.loadCell(A+c+r,n));for(r=this.length-c;r<this.length;++r)this.setCell(r,h)}else for(r=A;r<this.length;++r)this.setCell(r,h);A&&this.getWidth(A-1)===2&&this.setCellFromCodePoint(A-1,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs),this.getWidth(A)!==0||this.hasContent(A)||this.setCellFromCodePoint(A,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs)},u.prototype.replaceCells=function(A,c,h,o){for(A&&this.getWidth(A-1)===2&&this.setCellFromCodePoint(A-1,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs),c<this.length&&this.getWidth(c-1)===2&&this.setCellFromCodePoint(c,0,1,(o==null?void 0:o.fg)||0,(o==null?void 0:o.bg)||0,(o==null?void 0:o.extended)||new b.ExtendedAttrs);A<c&&A<this.length;)this.setCell(A++,h)},u.prototype.resize=function(A,c){if(A!==this.length){if(A>this.length){var h=new Uint32Array(3*A);this.length&&(3*A<this._data.length?h.set(this._data.subarray(0,3*A)):h.set(this._data)),this._data=h;for(var o=this.length;o<A;++o)this.setCell(o,c)}else if(A){(h=new Uint32Array(3*A)).set(this._data.subarray(0,3*A)),this._data=h;var n=Object.keys(this._combined);for(o=0;o<n.length;o++){var r=parseInt(n[o],10);r>=A&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=A}},u.prototype.fill=function(A){this._combined={},this._extendedAttrs={};for(var c=0;c<this.length;++c)this.setCell(c,A)},u.prototype.copyFrom=function(A){for(var c in this.length!==A.length?this._data=new Uint32Array(A._data):this._data.set(A._data),this.length=A.length,this._combined={},A._combined)this._combined[c]=A._combined[c];for(var c in this._extendedAttrs={},A._extendedAttrs)this._extendedAttrs[c]=A._extendedAttrs[c];this.isWrapped=A.isWrapped},u.prototype.clone=function(){var A=new u(0);for(var c in A._data=new Uint32Array(this._data),A.length=this.length,this._combined)A._combined[c]=this._combined[c];for(var c in this._extendedAttrs)A._extendedAttrs[c]=this._extendedAttrs[c];return A.isWrapped=this.isWrapped,A},u.prototype.getTrimmedLength=function(){for(var A=this.length-1;A>=0;--A)if(4194303&this._data[3*A+0])return A+(this._data[3*A+0]>>22);return 0},u.prototype.copyCellsFrom=function(A,c,h,o,n){var r=A._data;if(n)for(var s=o-1;s>=0;s--)for(var l=0;l<3;l++)this._data[3*(h+s)+l]=r[3*(c+s)+l];else for(s=0;s<o;s++)for(l=0;l<3;l++)this._data[3*(h+s)+l]=r[3*(c+s)+l];var d=Object.keys(A._combined);for(l=0;l<d.length;l++){var p=parseInt(d[l],10);p>=c&&(this._combined[p-c+h]=A._combined[p])}},u.prototype.translateToString=function(A,c,h){A===void 0&&(A=!1),c===void 0&&(c=0),h===void 0&&(h=this.length),A&&(h=Math.min(h,this.getTrimmedLength()));for(var o="";c<h;){var n=this._data[3*c+0],r=2097151&n;o+=2097152&n?this._combined[c]:r?ie.stringFromCodePoint(r):t.WHITESPACE_CELL_CHAR,c+=n>>22||1}return o},u}();J.BufferLine=a},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.removeElementFromParent=void 0,J.removeElementFromParent=function(){for(var ie,t=[],C=0;C<arguments.length;C++)t[C]=arguments[C];for(var b=0,a=t;b<a.length;b++){var u=a[b];(ie=u==null?void 0:u.parentElement)===null||ie===void 0||ie.removeChild(u)}}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.tooMuchOutput=J.promptLabel=void 0,J.promptLabel="Terminal input",J.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(O,F){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var I in S)S.hasOwnProperty(I)&&(T[I]=S[I])})(O,F)},function(O,F){function T(){this.constructor=O}ie(O,F),O.prototype=F===null?Object.create(F):(T.prototype=F.prototype,new T)});Object.defineProperty(J,"__esModule",{value:!0}),J.InputHandler=J.WindowsOptionsReportType=void 0;var C,b=oe(12),a=oe(20),u=oe(39),A=oe(2),c=oe(15),h=oe(8),o=oe(16),n=oe(0),r=oe(3),s=oe(4),l=oe(6),d=oe(22),p=oe(24),g={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function m(O,F){if(O>24)return F.setWinLines||!1;switch(O){case 1:return!!F.restoreWin;case 2:return!!F.minimizeWin;case 3:return!!F.setWinPosition;case 4:return!!F.setWinSizePixels;case 5:return!!F.raiseWin;case 6:return!!F.lowerWin;case 7:return!!F.refreshWin;case 8:return!!F.setWinSizeChars;case 9:return!!F.maximizeWin;case 10:return!!F.fullscreenWin;case 11:return!!F.getWinState;case 13:return!!F.getWinPosition;case 14:return!!F.getWinSizePixels;case 15:return!!F.getScreenSizePixels;case 16:return!!F.getCellSizePixels;case 18:return!!F.getWinSizeChars;case 19:return!!F.getScreenSizeChars;case 20:return!!F.getIconTitle;case 21:return!!F.getWinTitle;case 22:return!!F.pushTitle;case 23:return!!F.popTitle;case 24:return!!F.setWinLines}return!1}(function(O){O[O.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",O[O.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(C=J.WindowsOptionsReportType||(J.WindowsOptionsReportType={}));var v=function(){function O(F,T,S,I){this._bufferService=F,this._coreService=T,this._logService=S,this._optionsService=I,this._data=new Uint32Array(0)}return O.prototype.hook=function(F){this._data=new Uint32Array(0)},O.prototype.put=function(F,T,S){this._data=c.concat(this._data,F.subarray(T,S))},O.prototype.unhook=function(F){if(F){var T=h.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(b.C0.ESC+'P1$r0"q'+b.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(b.C0.ESC+'P1$r61;1"p'+b.C0.ESC+"\\");case"r":var S=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(b.C0.ESC+"P1$r"+S+b.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(b.C0.ESC+"P1$r0m"+b.C0.ESC+"\\");case" q":var I={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return I-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(b.C0.ESC+"P1$r"+I+" q"+b.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(b.C0.ESC+"P0$r"+b.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},O}(),_=function(O){function F(T,S,I,E,M,N,V,H,X){X===void 0&&(X=new u.EscapeSequenceParser);var G=O.call(this)||this;G._bufferService=T,G._charsetService=S,G._coreService=I,G._dirtyRowService=E,G._logService=M,G._optionsService=N,G._coreMouseService=V,G._unicodeService=H,G._parser=X,G._parseBuffer=new Uint32Array(4096),G._stringDecoder=new h.StringToUtf32,G._utf8Decoder=new h.Utf8ToUtf32,G._workCell=new s.CellData,G._windowTitle="",G._iconName="",G._windowTitleStack=[],G._iconNameStack=[],G._curAttrData=o.DEFAULT_ATTR_DATA.clone(),G._eraseAttrDataInternal=o.DEFAULT_ATTR_DATA.clone(),G._onRequestBell=new n.EventEmitter,G._onRequestRefreshRows=new n.EventEmitter,G._onRequestReset=new n.EventEmitter,G._onRequestScroll=new n.EventEmitter,G._onRequestSyncScrollBar=new n.EventEmitter,G._onRequestWindowsOptionsReport=new n.EventEmitter,G._onA11yChar=new n.EventEmitter,G._onA11yTab=new n.EventEmitter,G._onCursorMove=new n.EventEmitter,G._onLineFeed=new n.EventEmitter,G._onScroll=new n.EventEmitter,G._onTitleChange=new n.EventEmitter,G.register(G._parser),G._parser.setCsiHandlerFallback(function(U,W){G._logService.debug("Unknown CSI code: ",{identifier:G._parser.identToString(U),params:W.toArray()})}),G._parser.setEscHandlerFallback(function(U){G._logService.debug("Unknown ESC code: ",{identifier:G._parser.identToString(U)})}),G._parser.setExecuteHandlerFallback(function(U){G._logService.debug("Unknown EXECUTE code: ",{code:U})}),G._parser.setOscHandlerFallback(function(U,W,le){G._logService.debug("Unknown OSC code: ",{identifier:U,action:W,data:le})}),G._parser.setDcsHandlerFallback(function(U,W,le){W==="HOOK"&&(le=le.toArray()),G._logService.debug("Unknown DCS code: ",{identifier:G._parser.identToString(U),action:W,payload:le})}),G._parser.setPrintHandler(function(U,W,le){return G.print(U,W,le)}),G._parser.setCsiHandler({final:"@"},function(U){return G.insertChars(U)}),G._parser.setCsiHandler({intermediates:" ",final:"@"},function(U){return G.scrollLeft(U)}),G._parser.setCsiHandler({final:"A"},function(U){return G.cursorUp(U)}),G._parser.setCsiHandler({intermediates:" ",final:"A"},function(U){return G.scrollRight(U)}),G._parser.setCsiHandler({final:"B"},function(U){return G.cursorDown(U)}),G._parser.setCsiHandler({final:"C"},function(U){return G.cursorForward(U)}),G._parser.setCsiHandler({final:"D"},function(U){return G.cursorBackward(U)}),G._parser.setCsiHandler({final:"E"},function(U){return G.cursorNextLine(U)}),G._parser.setCsiHandler({final:"F"},function(U){return G.cursorPrecedingLine(U)}),G._parser.setCsiHandler({final:"G"},function(U){return G.cursorCharAbsolute(U)}),G._parser.setCsiHandler({final:"H"},function(U){return G.cursorPosition(U)}),G._parser.setCsiHandler({final:"I"},function(U){return G.cursorForwardTab(U)}),G._parser.setCsiHandler({final:"J"},function(U){return G.eraseInDisplay(U)}),G._parser.setCsiHandler({prefix:"?",final:"J"},function(U){return G.eraseInDisplay(U)}),G._parser.setCsiHandler({final:"K"},function(U){return G.eraseInLine(U)}),G._parser.setCsiHandler({prefix:"?",final:"K"},function(U){return G.eraseInLine(U)}),G._parser.setCsiHandler({final:"L"},function(U){return G.insertLines(U)}),G._parser.setCsiHandler({final:"M"},function(U){return G.deleteLines(U)}),G._parser.setCsiHandler({final:"P"},function(U){return G.deleteChars(U)}),G._parser.setCsiHandler({final:"S"},function(U){return G.scrollUp(U)}),G._parser.setCsiHandler({final:"T"},function(U){return G.scrollDown(U)}),G._parser.setCsiHandler({final:"X"},function(U){return G.eraseChars(U)}),G._parser.setCsiHandler({final:"Z"},function(U){return G.cursorBackwardTab(U)}),G._parser.setCsiHandler({final:"`"},function(U){return G.charPosAbsolute(U)}),G._parser.setCsiHandler({final:"a"},function(U){return G.hPositionRelative(U)}),G._parser.setCsiHandler({final:"b"},function(U){return G.repeatPrecedingCharacter(U)}),G._parser.setCsiHandler({final:"c"},function(U){return G.sendDeviceAttributesPrimary(U)}),G._parser.setCsiHandler({prefix:">",final:"c"},function(U){return G.sendDeviceAttributesSecondary(U)}),G._parser.setCsiHandler({final:"d"},function(U){return G.linePosAbsolute(U)}),G._parser.setCsiHandler({final:"e"},function(U){return G.vPositionRelative(U)}),G._parser.setCsiHandler({final:"f"},function(U){return G.hVPosition(U)}),G._parser.setCsiHandler({final:"g"},function(U){return G.tabClear(U)}),G._parser.setCsiHandler({final:"h"},function(U){return G.setMode(U)}),G._parser.setCsiHandler({prefix:"?",final:"h"},function(U){return G.setModePrivate(U)}),G._parser.setCsiHandler({final:"l"},function(U){return G.resetMode(U)}),G._parser.setCsiHandler({prefix:"?",final:"l"},function(U){return G.resetModePrivate(U)}),G._parser.setCsiHandler({final:"m"},function(U){return G.charAttributes(U)}),G._parser.setCsiHandler({final:"n"},function(U){return G.deviceStatus(U)}),G._parser.setCsiHandler({prefix:"?",final:"n"},function(U){return G.deviceStatusPrivate(U)}),G._parser.setCsiHandler({intermediates:"!",final:"p"},function(U){return G.softReset(U)}),G._parser.setCsiHandler({intermediates:" ",final:"q"},function(U){return G.setCursorStyle(U)}),G._parser.setCsiHandler({final:"r"},function(U){return G.setScrollRegion(U)}),G._parser.setCsiHandler({final:"s"},function(U){return G.saveCursor(U)}),G._parser.setCsiHandler({final:"t"},function(U){return G.windowOptions(U)}),G._parser.setCsiHandler({final:"u"},function(U){return G.restoreCursor(U)}),G._parser.setCsiHandler({intermediates:"'",final:"}"},function(U){return G.insertColumns(U)}),G._parser.setCsiHandler({intermediates:"'",final:"~"},function(U){return G.deleteColumns(U)}),G._parser.setExecuteHandler(b.C0.BEL,function(){return G.bell()}),G._parser.setExecuteHandler(b.C0.LF,function(){return G.lineFeed()}),G._parser.setExecuteHandler(b.C0.VT,function(){return G.lineFeed()}),G._parser.setExecuteHandler(b.C0.FF,function(){return G.lineFeed()}),G._parser.setExecuteHandler(b.C0.CR,function(){return G.carriageReturn()}),G._parser.setExecuteHandler(b.C0.BS,function(){return G.backspace()}),G._parser.setExecuteHandler(b.C0.HT,function(){return G.tab()}),G._parser.setExecuteHandler(b.C0.SO,function(){return G.shiftOut()}),G._parser.setExecuteHandler(b.C0.SI,function(){return G.shiftIn()}),G._parser.setExecuteHandler(b.C1.IND,function(){return G.index()}),G._parser.setExecuteHandler(b.C1.NEL,function(){return G.nextLine()}),G._parser.setExecuteHandler(b.C1.HTS,function(){return G.tabSet()}),G._parser.setOscHandler(0,new d.OscHandler(function(U){G.setTitle(U),G.setIconName(U)})),G._parser.setOscHandler(1,new d.OscHandler(function(U){return G.setIconName(U)})),G._parser.setOscHandler(2,new d.OscHandler(function(U){return G.setTitle(U)})),G._parser.setEscHandler({final:"7"},function(){return G.saveCursor()}),G._parser.setEscHandler({final:"8"},function(){return G.restoreCursor()}),G._parser.setEscHandler({final:"D"},function(){return G.index()}),G._parser.setEscHandler({final:"E"},function(){return G.nextLine()}),G._parser.setEscHandler({final:"H"},function(){return G.tabSet()}),G._parser.setEscHandler({final:"M"},function(){return G.reverseIndex()}),G._parser.setEscHandler({final:"="},function(){return G.keypadApplicationMode()}),G._parser.setEscHandler({final:">"},function(){return G.keypadNumericMode()}),G._parser.setEscHandler({final:"c"},function(){return G.fullReset()}),G._parser.setEscHandler({final:"n"},function(){return G.setgLevel(2)}),G._parser.setEscHandler({final:"o"},function(){return G.setgLevel(3)}),G._parser.setEscHandler({final:"|"},function(){return G.setgLevel(3)}),G._parser.setEscHandler({final:"}"},function(){return G.setgLevel(2)}),G._parser.setEscHandler({final:"~"},function(){return G.setgLevel(1)}),G._parser.setEscHandler({intermediates:"%",final:"@"},function(){return G.selectDefaultCharset()}),G._parser.setEscHandler({intermediates:"%",final:"G"},function(){return G.selectDefaultCharset()});var ee=function(U){Z._parser.setEscHandler({intermediates:"(",final:U},function(){return G.selectCharset("("+U)}),Z._parser.setEscHandler({intermediates:")",final:U},function(){return G.selectCharset(")"+U)}),Z._parser.setEscHandler({intermediates:"*",final:U},function(){return G.selectCharset("*"+U)}),Z._parser.setEscHandler({intermediates:"+",final:U},function(){return G.selectCharset("+"+U)}),Z._parser.setEscHandler({intermediates:"-",final:U},function(){return G.selectCharset("-"+U)}),Z._parser.setEscHandler({intermediates:".",final:U},function(){return G.selectCharset("."+U)}),Z._parser.setEscHandler({intermediates:"/",final:U},function(){return G.selectCharset("/"+U)})},Z=this;for(var Ae in a.CHARSETS)ee(Ae);return G._parser.setEscHandler({intermediates:"#",final:"8"},function(){return G.screenAlignmentPattern()}),G._parser.setErrorHandler(function(U){return G._logService.error("Parsing error: ",U),U}),G._parser.setDcsHandler({intermediates:"$",final:"q"},new v(G._bufferService,G._coreService,G._logService,G._optionsService)),G}return t(F,O),Object.defineProperty(F.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){O.prototype.dispose.call(this)},F.prototype.parse=function(T){var S=this._bufferService.buffer,I=S.x,E=S.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var M=0;M<T.length;M+=131072){var N=M+131072<T.length?M+131072:T.length,V=typeof T=="string"?this._stringDecoder.decode(T.substring(M,N),this._parseBuffer):this._utf8Decoder.decode(T.subarray(M,N),this._parseBuffer);this._parser.parse(this._parseBuffer,V)}else V=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,V);(S=this._bufferService.buffer).x===I&&S.y===E||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},F.prototype.print=function(T,S,I){var E,M,N=this._bufferService.buffer,V=this._charsetService.charset,H=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,G=this._coreService.decPrivateModes.wraparound,ee=this._coreService.modes.insertMode,Z=this._curAttrData,Ae=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&I-S>0&&Ae.getWidth(N.x-1)===2&&Ae.setCellFromCodePoint(N.x-1,0,1,Z.fg,Z.bg,Z.extended);for(var U=S;U<I;++U){if(E=T[U],M=this._unicodeService.wcwidth(E),E<127&&V){var W=V[String.fromCharCode(E)];W&&(E=W.charCodeAt(0))}if(H&&this._onA11yChar.fire(h.stringFromCodePoint(E)),M||!N.x){if(N.x+M-1>=X){if(G){for(;N.x<X;)Ae.setCellFromCodePoint(N.x++,0,1,Z.fg,Z.bg,Z.extended);N.x=0,N.y++,N.y===N.scrollBottom+1?(N.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(N.y>=this._bufferService.rows&&(N.y=this._bufferService.rows-1),N.lines.get(N.ybase+N.y).isWrapped=!0),Ae=N.lines.get(N.ybase+N.y)}else if(N.x=X-1,M===2)continue}if(ee&&(Ae.insertCells(N.x,M,N.getNullCell(Z),Z),Ae.getWidth(X-1)===2&&Ae.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,Z.fg,Z.bg,Z.extended)),Ae.setCellFromCodePoint(N.x++,E,M,Z.fg,Z.bg,Z.extended),M>0)for(;--M;)Ae.setCellFromCodePoint(N.x++,0,0,Z.fg,Z.bg,Z.extended)}else Ae.getWidth(N.x-1)?Ae.addCodepointToCell(N.x-1,E):Ae.addCodepointToCell(N.x-2,E)}I-S>0&&(Ae.loadCell(N.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),N.x<X&&I-S>0&&Ae.getWidth(N.x)===0&&!Ae.hasContent(N.x)&&Ae.setCellFromCodePoint(N.x,0,1,Z.fg,Z.bg,Z.extended),this._dirtyRowService.markDirty(N.y)},F.prototype.addCsiHandler=function(T,S){var I=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,S):this._parser.addCsiHandler(T,function(E){return!m(E.params[0],I._optionsService.options.windowOptions)||S(E)})},F.prototype.addDcsHandler=function(T,S){return this._parser.addDcsHandler(T,new p.DcsHandler(S))},F.prototype.addEscHandler=function(T,S){return this._parser.addEscHandler(T,S)},F.prototype.addOscHandler=function(T,S){return this._parser.addOscHandler(T,new d.OscHandler(S))},F.prototype.bell=function(){this._onRequestBell.fire()},F.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},F.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},F.prototype.backspace=function(){var T,S=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(S.x>0&&S.x--);if(this._restrictCursor(this._bufferService.cols),S.x>0)S.x--;else if(S.x===0&&S.y>S.scrollTop&&S.y<=S.scrollBottom&&(!((T=S.lines.get(S.ybase+S.y))===null||T===void 0)&&T.isWrapped)){S.lines.get(S.ybase+S.y).isWrapped=!1,S.y--,S.x=this._bufferService.cols-1;var I=S.lines.get(S.ybase+S.y);I.hasWidth(S.x)&&!I.hasContent(S.x)&&S.x--}this._restrictCursor()},F.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},F.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},F.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},F.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},F.prototype._setCursor=function(T,S){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+S):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=S),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},F.prototype._moveCursor=function(T,S){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+S)},F.prototype.cursorUp=function(T){var S=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;S>=0?this._moveCursor(0,-Math.min(S,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},F.prototype.cursorDown=function(T){var S=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;S>=0?this._moveCursor(0,Math.min(S,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},F.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},F.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},F.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},F.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},F.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},F.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},F.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},F.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},F.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},F.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},F.prototype.hVPosition=function(T){this.cursorPosition(T)},F.prototype.tabClear=function(T){var S=T.params[0];S===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:S===3&&(this._bufferService.buffer.tabs={})},F.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=T.params[0]||1;S--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},F.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=T.params[0]||1,I=this._bufferService.buffer;S--;)I.x=I.prevStop()},F.prototype._eraseInBufferLine=function(T,S,I,E){E===void 0&&(E=!1);var M=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);M.replaceCells(S,I,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),E&&(M.isWrapped=!1)},F.prototype._resetBufferLine=function(T){var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);S.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),S.isWrapped=!1},F.prototype.eraseInDisplay=function(T){var S;switch(this._restrictCursor(),T.params[0]){case 0:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);S<this._bufferService.rows;S++)this._resetBufferLine(S);this._dirtyRowService.markDirty(S);break;case 1:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(S+1).isWrapped=!1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 2:for(S=this._bufferService.rows,this._dirtyRowService.markDirty(S-1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 3:var I=this._bufferService.buffer.lines.length-this._bufferService.rows;I>0&&(this._bufferService.buffer.lines.trimStart(I),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-I,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-I,0),this._onScroll.fire(0))}},F.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},F.prototype.insertLines=function(T){this._restrictCursor();var S=T.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){for(var E=I.ybase+I.y,M=this._bufferService.rows-1-I.scrollBottom,N=this._bufferService.rows-1+I.ybase-M+1;S--;)I.lines.splice(N-1,1),I.lines.splice(E,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},F.prototype.deleteLines=function(T){this._restrictCursor();var S=T.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){var E,M=I.ybase+I.y;for(E=this._bufferService.rows-1-I.scrollBottom,E=this._bufferService.rows-1+I.ybase-E;S--;)I.lines.splice(M,1),I.lines.splice(E,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},F.prototype.insertChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.deleteChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.scrollUp=function(T){for(var S=T.params[0]||1,I=this._bufferService.buffer;S--;)I.lines.splice(I.ybase+I.scrollTop,1),I.lines.splice(I.ybase+I.scrollBottom,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},F.prototype.scrollDown=function(T){for(var S=T.params[0]||1,I=this._bufferService.buffer;S--;)I.lines.splice(I.ybase+I.scrollBottom,1),I.lines.splice(I.ybase+I.scrollTop,0,I.getBlankLine(o.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},F.prototype.scrollLeft=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var I=T.params[0]||1,E=S.scrollTop;E<=S.scrollBottom;++E){var M=S.lines.get(S.ybase+E);M.deleteCells(0,I,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),M.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},F.prototype.scrollRight=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var I=T.params[0]||1,E=S.scrollTop;E<=S.scrollBottom;++E){var M=S.lines.get(S.ybase+E);M.insertCells(0,I,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),M.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},F.prototype.insertColumns=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var I=T.params[0]||1,E=S.scrollTop;E<=S.scrollBottom;++E){var M=this._bufferService.buffer.lines.get(S.ybase+E);M.insertCells(S.x,I,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),M.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},F.prototype.deleteColumns=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var I=T.params[0]||1,E=S.scrollTop;E<=S.scrollBottom;++E){var M=S.lines.get(S.ybase+E);M.deleteCells(S.x,I,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),M.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},F.prototype.eraseChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var S=T.params[0]||1,I=new Uint32Array(S),E=0;E<S;++E)I[E]=this._parser.precedingCodepoint;this.print(I,0,I.length)}},F.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(b.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(b.C0.ESC+"[?6c"))},F.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(b.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(b.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(b.C0.ESC+"[>83;40003;0c"))},F.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},F.prototype.setMode=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 4:this._coreService.modes.insertMode=!0}},F.prototype.setModePrivate=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,a.DEFAULT_CHARSET),this._charsetService.setgCharset(1,a.DEFAULT_CHARSET),this._charsetService.setgCharset(2,a.DEFAULT_CHARSET),this._charsetService.setgCharset(3,a.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},F.prototype.resetMode=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 4:this._coreService.modes.insertMode=!1}},F.prototype.resetModePrivate=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[S]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},F.prototype._updateAttrColor=function(T,S,I,E,M){return S===2?(T|=50331648,T&=-16777216,T|=l.AttributeData.fromColorRGB([I,E,M])):S===5&&(T&=-50331904,T|=33554432|255&I),T},F.prototype._extractColor=function(T,S,I){var E=[0,0,-1,0,0,0],M=0,N=0;do{if(E[N+M]=T.params[S+N],T.hasSubParams(S+N)){var V=T.getSubParams(S+N),H=0;do E[1]===5&&(M=1),E[N+H+1+M]=V[H];while(++H<V.length&&H+N+1+M<E.length);break}if(E[1]===5&&N+M>=2||E[1]===2&&N+M>=5)break;E[1]&&(M=1)}while(++N+S<T.length&&N+M<E.length);for(H=2;H<E.length;++H)E[H]===-1&&(E[H]=0);switch(E[0]){case 38:I.fg=this._updateAttrColor(I.fg,E[1],E[3],E[4],E[5]);break;case 48:I.bg=this._updateAttrColor(I.bg,E[1],E[3],E[4],E[5]);break;case 58:I.extended=I.extended.clone(),I.extended.underlineColor=this._updateAttrColor(I.extended.underlineColor,E[1],E[3],E[4],E[5])}return N},F.prototype._processUnderline=function(T,S){S.extended=S.extended.clone(),(!~T||T>5)&&(T=1),S.extended.underlineStyle=T,S.fg|=268435456,T===0&&(S.fg&=-268435457),S.updateExtended()},F.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=o.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=o.DEFAULT_ATTR_DATA.bg);for(var S,I=T.length,E=this._curAttrData,M=0;M<I;M++)(S=T.params[M])>=30&&S<=37?(E.fg&=-50331904,E.fg|=16777216|S-30):S>=40&&S<=47?(E.bg&=-50331904,E.bg|=16777216|S-40):S>=90&&S<=97?(E.fg&=-50331904,E.fg|=16777224|S-90):S>=100&&S<=107?(E.bg&=-50331904,E.bg|=16777224|S-100):S===0?(E.fg=o.DEFAULT_ATTR_DATA.fg,E.bg=o.DEFAULT_ATTR_DATA.bg):S===1?E.fg|=134217728:S===3?E.bg|=67108864:S===4?(E.fg|=268435456,this._processUnderline(T.hasSubParams(M)?T.getSubParams(M)[0]:1,E)):S===5?E.fg|=536870912:S===7?E.fg|=67108864:S===8?E.fg|=1073741824:S===2?E.bg|=134217728:S===21?this._processUnderline(2,E):S===22?(E.fg&=-134217729,E.bg&=-134217729):S===23?E.bg&=-67108865:S===24?E.fg&=-268435457:S===25?E.fg&=-536870913:S===27?E.fg&=-67108865:S===28?E.fg&=-1073741825:S===39?(E.fg&=-67108864,E.fg|=16777215&o.DEFAULT_ATTR_DATA.fg):S===49?(E.bg&=-67108864,E.bg|=16777215&o.DEFAULT_ATTR_DATA.bg):S===38||S===48||S===58?M+=this._extractColor(T,M,E):S===59?(E.extended=E.extended.clone(),E.extended.underlineColor=-1,E.updateExtended()):S===100?(E.fg&=-67108864,E.fg|=16777215&o.DEFAULT_ATTR_DATA.fg,E.bg&=-67108864,E.bg|=16777215&o.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",S)},F.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(b.C0.ESC+"[0n");break;case 6:var S=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(b.C0.ESC+"["+S+";"+I+"R")}},F.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var S=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(b.C0.ESC+"[?"+S+";"+I+"R")}},F.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=o.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},F.prototype.setCursorStyle=function(T){var S=T.params[0]||1;switch(S){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var I=S%2==1;this._optionsService.options.cursorBlink=I},F.prototype.setScrollRegion=function(T){var S,I=T.params[0]||1;(T.length<2||(S=T.params[1])>this._bufferService.rows||S===0)&&(S=this._bufferService.rows),S>I&&(this._bufferService.buffer.scrollTop=I-1,this._bufferService.buffer.scrollBottom=S-1,this._setCursor(0,0))},F.prototype.windowOptions=function(T){if(m(T.params[0],this._optionsService.options.windowOptions)){var S=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:S!==2&&this._onRequestWindowsOptionsReport.fire(C.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(C.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(b.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:S!==0&&S!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),S!==0&&S!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:S!==0&&S!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),S!==0&&S!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},F.prototype.saveCursor=function(T){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},F.prototype.restoreCursor=function(T){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},F.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},F.prototype.setIconName=function(T){this._iconName=T},F.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},F.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},F.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},F.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,a.DEFAULT_CHARSET)},F.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(g[T[0]],a.CHARSETS[T[1]]||a.DEFAULT_CHARSET):this.selectDefaultCharset()},F.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},F.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},F.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var S=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,S,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},F.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},F.prototype.reset=function(){this._curAttrData=o.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=o.DEFAULT_ATTR_DATA.clone()},F.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},F.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},F.prototype.screenAlignmentPattern=function(){var T=new s.CellData;T.content=1<<22|69,T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var S=this._bufferService.buffer;this._setCursor(0,0);for(var I=0;I<this._bufferService.rows;++I){var E=S.ybase+S.y+I,M=S.lines.get(E);M&&(M.fill(T),M.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},F}(A.Disposable);J.InputHandler=_},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.DEFAULT_CHARSET=J.CHARSETS=void 0,J.CHARSETS={},J.DEFAULT_CHARSET=J.CHARSETS.B,J.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},J.CHARSETS.A={"#":"\xA3"},J.CHARSETS.B=void 0,J.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},J.CHARSETS.C=J.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},J.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},J.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},J.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},J.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},J.CHARSETS.E=J.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},J.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},J.CHARSETS.H=J.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},J.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Params=void 0;var ie=function(){function t(C,b){if(C===void 0&&(C=32),b===void 0&&(b=32),this.maxLength=C,this.maxSubParamsLength=b,b>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(C),this.length=0,this._subParams=new Int32Array(b),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(C),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return t.fromArray=function(C){var b=new t;if(!C.length)return b;for(var a=C[0]instanceof Array?1:0;a<C.length;++a){var u=C[a];if(u instanceof Array)for(var A=0;A<u.length;++A)b.addSubParam(u[A]);else b.addParam(u)}return b},t.prototype.clone=function(){var C=new t(this.maxLength,this.maxSubParamsLength);return C.params.set(this.params),C.length=this.length,C._subParams.set(this._subParams),C._subParamsLength=this._subParamsLength,C._subParamsIdx.set(this._subParamsIdx),C._rejectDigits=this._rejectDigits,C._rejectSubDigits=this._rejectSubDigits,C._digitIsSub=this._digitIsSub,C},t.prototype.toArray=function(){for(var C=[],b=0;b<this.length;++b){C.push(this.params[b]);var a=this._subParamsIdx[b]>>8,u=255&this._subParamsIdx[b];u-a>0&&C.push(Array.prototype.slice.call(this._subParams,a,u))}return C},t.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},t.prototype.addParam=function(C){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(C<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=C>2147483647?2147483647:C}},t.prototype.addSubParam=function(C){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(C<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=C>2147483647?2147483647:C,this._subParamsIdx[this.length-1]++}},t.prototype.hasSubParams=function(C){return(255&this._subParamsIdx[C])-(this._subParamsIdx[C]>>8)>0},t.prototype.getSubParams=function(C){var b=this._subParamsIdx[C]>>8,a=255&this._subParamsIdx[C];return a-b>0?this._subParams.subarray(b,a):null},t.prototype.getSubParamsAll=function(){for(var C={},b=0;b<this.length;++b){var a=this._subParamsIdx[b]>>8,u=255&this._subParamsIdx[b];u-a>0&&(C[b]=this._subParams.slice(a,u))}return C},t.prototype.addDigit=function(C){var b;if(!(this._rejectDigits||!(b=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var a=this._digitIsSub?this._subParams:this.params,u=a[b-1];a[b-1]=~u?Math.min(10*u+C,2147483647):C}},t}();J.Params=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.OscHandler=J.OscParser=void 0;var ie=oe(23),t=oe(8),C=function(){function a(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return a.prototype.addHandler=function(u,A){this._handlers[u]===void 0&&(this._handlers[u]=[]);var c=this._handlers[u];return c.push(A),{dispose:function(){var h=c.indexOf(A);h!==-1&&c.splice(h,1)}}},a.prototype.setHandler=function(u,A){this._handlers[u]=[A]},a.prototype.clearHandler=function(u){this._handlers[u]&&delete this._handlers[u]},a.prototype.setHandlerFallback=function(u){this._handlerFb=u},a.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},a.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},a.prototype._start=function(){var u=this._handlers[this._id];if(u)for(var A=u.length-1;A>=0;A--)u[A].start();else this._handlerFb(this._id,"START")},a.prototype._put=function(u,A,c){var h=this._handlers[this._id];if(h)for(var o=h.length-1;o>=0;o--)h[o].put(u,A,c);else this._handlerFb(this._id,"PUT",t.utf32ToString(u,A,c))},a.prototype._end=function(u){var A=this._handlers[this._id];if(A){for(var c=A.length-1;c>=0&&A[c].end(u)===!1;c--);for(c--;c>=0;c--)A[c].end(!1)}else this._handlerFb(this._id,"END",u)},a.prototype.start=function(){this.reset(),this._id=-1,this._state=1},a.prototype.put=function(u,A,c){if(this._state!==3){if(this._state===1)for(;A<c;){var h=u[A++];if(h===59){this._state=2,this._start();break}if(h<48||57<h)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+h-48}this._state===2&&c-A>0&&this._put(u,A,c)}},a.prototype.end=function(u){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(u)),this._id=-1,this._state=0)},a}();J.OscParser=C;var b=function(){function a(u){this._handler=u,this._data="",this._hitLimit=!1}return a.prototype.start=function(){this._data="",this._hitLimit=!1},a.prototype.put=function(u,A,c){this._hitLimit||(this._data+=t.utf32ToString(u,A,c),this._data.length>ie.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},a.prototype.end=function(u){var A;return this._hitLimit?A=!1:u&&(A=this._handler(this._data)),this._data="",this._hitLimit=!1,A},a}();J.OscHandler=b},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.PAYLOAD_LIMIT=void 0,J.PAYLOAD_LIMIT=1e7},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.DcsHandler=J.DcsParser=void 0;var ie=oe(8),t=oe(21),C=oe(23),b=[],a=function(){function A(){this._handlers=Object.create(null),this._active=b,this._ident=0,this._handlerFb=function(){}}return A.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},A.prototype.addHandler=function(c,h){this._handlers[c]===void 0&&(this._handlers[c]=[]);var o=this._handlers[c];return o.push(h),{dispose:function(){var n=o.indexOf(h);n!==-1&&o.splice(n,1)}}},A.prototype.setHandler=function(c,h){this._handlers[c]=[h]},A.prototype.clearHandler=function(c){this._handlers[c]&&delete this._handlers[c]},A.prototype.setHandlerFallback=function(c){this._handlerFb=c},A.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=b,this._ident=0},A.prototype.hook=function(c,h){if(this.reset(),this._ident=c,this._active=this._handlers[c]||b,this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].hook(h);else this._handlerFb(this._ident,"HOOK",h)},A.prototype.put=function(c,h,o){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(c,h,o);else this._handlerFb(this._ident,"PUT",ie.utf32ToString(c,h,o))},A.prototype.unhook=function(c){if(this._active.length){for(var h=this._active.length-1;h>=0&&this._active[h].unhook(c)===!1;h--);for(h--;h>=0;h--)this._active[h].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",c);this._active=b,this._ident=0},A}();J.DcsParser=a;var u=function(){function A(c){this._handler=c,this._data="",this._hitLimit=!1}return A.prototype.hook=function(c){this._params=c.clone(),this._data="",this._hitLimit=!1},A.prototype.put=function(c,h,o){this._hitLimit||(this._data+=ie.utf32ToString(c,h,o),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},A.prototype.unhook=function(c){var h;return this._hitLimit?h=!1:c&&(h=this._handler(this._data,this._params||new t.Params)),this._params=void 0,this._data="",this._hitLimit=!1,h},A}();J.DcsHandler=u},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.removeTerminalFromCache=J.acquireCharAtlas=void 0;var ie=oe(26),t=oe(43),C=[];J.acquireCharAtlas=function(b,a,u,A,c){for(var h=ie.generateConfig(A,c,b,u),o=0;o<C.length;o++){var n=(r=C[o]).ownedBy.indexOf(a);if(n>=0){if(ie.configEquals(r.config,h))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),C.splice(o,1)):r.ownedBy.splice(n,1);break}}for(o=0;o<C.length;o++){var r=C[o];if(ie.configEquals(r.config,h))return r.ownedBy.push(a),r.atlas}var s={atlas:new t.DynamicCharAtlas(document,h),config:h,ownedBy:[a]};return C.push(s),s.atlas},J.removeTerminalFromCache=function(b){for(var a=0;a<C.length;a++){var u=C[a].ownedBy.indexOf(b);if(u!==-1){C[a].ownedBy.length===1?(C[a].atlas.dispose(),C.splice(a,1)):C[a].ownedBy.splice(u,1);break}}}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.is256Color=J.configEquals=J.generateConfig=void 0;var ie=oe(3);J.generateConfig=function(t,C,b,a){var u={foreground:a.foreground,background:a.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:a.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:t,scaledCharHeight:C,fontFamily:b.fontFamily,fontSize:b.fontSize,fontWeight:b.fontWeight,fontWeightBold:b.fontWeightBold,allowTransparency:b.allowTransparency,colors:u}},J.configEquals=function(t,C){for(var b=0;b<t.colors.ansi.length;b++)if(t.colors.ansi[b].rgba!==C.colors.ansi[b].rgba)return!1;return t.devicePixelRatio===C.devicePixelRatio&&t.fontFamily===C.fontFamily&&t.fontSize===C.fontSize&&t.fontWeight===C.fontWeight&&t.fontWeightBold===C.fontWeightBold&&t.allowTransparency===C.allowTransparency&&t.scaledCharWidth===C.scaledCharWidth&&t.scaledCharHeight===C.scaledCharHeight&&t.colors.foreground===C.colors.foreground&&t.colors.background===C.colors.background},J.is256Color=function(t){return t<ie.DEFAULT_COLOR}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ColorManager=J.DEFAULT_ANSI_COLORS=void 0;var ie=oe(10),t=oe(45),C=ie.css.toColor("#ffffff"),b=ie.css.toColor("#000000"),a=ie.css.toColor("#ffffff"),u=ie.css.toColor("#000000"),A={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};J.DEFAULT_ANSI_COLORS=function(){for(var h=[ie.css.toColor("#2e3436"),ie.css.toColor("#cc0000"),ie.css.toColor("#4e9a06"),ie.css.toColor("#c4a000"),ie.css.toColor("#3465a4"),ie.css.toColor("#75507b"),ie.css.toColor("#06989a"),ie.css.toColor("#d3d7cf"),ie.css.toColor("#555753"),ie.css.toColor("#ef2929"),ie.css.toColor("#8ae234"),ie.css.toColor("#fce94f"),ie.css.toColor("#729fcf"),ie.css.toColor("#ad7fa8"),ie.css.toColor("#34e2e2"),ie.css.toColor("#eeeeec")],o=[0,95,135,175,215,255],n=0;n<216;n++){var r=o[n/36%6|0],s=o[n/6%6|0],l=o[n%6];h.push({css:ie.channels.toCss(r,s,l),rgba:ie.channels.toRgba(r,s,l)})}for(n=0;n<24;n++){var d=8+10*n;h.push({css:ie.channels.toCss(d,d,d),rgba:ie.channels.toRgba(d,d,d)})}return h}();var c=function(){function h(o,n){this.allowTransparency=n;var r=o.createElement("canvas");r.width=1,r.height=1;var s=r.getContext("2d");if(!s)throw new Error("Could not get rendering context");this._ctx=s,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new t.ColorContrastCache,this.colors={foreground:C,background:b,cursor:a,cursorAccent:u,selectionTransparent:A,selectionOpaque:ie.color.blend(b,A),ansi:J.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return h.prototype.onOptionsChange=function(o){o==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(o){o===void 0&&(o={}),this.colors.foreground=this._parseColor(o.foreground,C),this.colors.background=this._parseColor(o.background,b),this.colors.cursor=this._parseColor(o.cursor,a,!0),this.colors.cursorAccent=this._parseColor(o.cursorAccent,u,!0),this.colors.selectionTransparent=this._parseColor(o.selection,A,!0),this.colors.selectionOpaque=ie.color.blend(this.colors.background,this.colors.selectionTransparent),ie.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ie.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(o.black,J.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(o.red,J.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(o.green,J.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(o.yellow,J.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(o.blue,J.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(o.magenta,J.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(o.cyan,J.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(o.white,J.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(o.brightBlack,J.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(o.brightRed,J.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(o.brightGreen,J.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(o.brightYellow,J.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(o.brightBlue,J.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(o.brightMagenta,J.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(o.brightCyan,J.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(o.brightWhite,J.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},h.prototype._parseColor=function(o,n,r){if(r===void 0&&(r=this.allowTransparency),o===void 0)return n;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=o,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+o+" is invalid using fallback "+n.css),n;this._ctx.fillRect(0,0,1,1);var s=this._ctx.getImageData(0,0,1,1).data;if(s[3]!==255){if(!r)return console.warn("Color: "+o+" is using transparency, but allowTransparency is false. Using fallback "+n.css+"."),n;var l=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(_){return Number(_)}),d=l[0],p=l[1],g=l[2],m=l[3],v=Math.round(255*m);return{rgba:ie.channels.toRgba(d,p,g,v),css:o}}return{css:this._ctx.fillStyle,rgba:ie.channels.toRgba(s[0],s[1],s[2],s[3])}},h}();J.ColorManager=c},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.throwIfFalsy=void 0,J.throwIfFalsy=function(ie){if(!ie)throw new Error("value must not be falsy");return ie}},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(c,h){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)n.hasOwnProperty(r)&&(o[r]=n[r])})(c,h)},function(c,h){function o(){this.constructor=c}ie(c,h),c.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)});Object.defineProperty(J,"__esModule",{value:!0}),J.CharacterJoinerRegistry=J.JoinedCellData=void 0;var C=oe(6),b=oe(3),a=oe(4),u=function(c){function h(o,n,r){var s=c.call(this)||this;return s.content=0,s.combinedData="",s.fg=o.fg,s.bg=o.bg,s.combinedData=n,s._width=r,s}return t(h,c),h.prototype.isCombined=function(){return 2097152},h.prototype.getWidth=function(){return this._width},h.prototype.getChars=function(){return this.combinedData},h.prototype.getCode=function(){return 2097151},h.prototype.setFromCharData=function(o){throw new Error("not implemented")},h.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},h}(C.AttributeData);J.JoinedCellData=u;var A=function(){function c(h){this._bufferService=h,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return c.prototype.registerCharacterJoiner=function(h){var o={id:this._nextCharacterJoinerId++,handler:h};return this._characterJoiners.push(o),o.id},c.prototype.deregisterCharacterJoiner=function(h){for(var o=0;o<this._characterJoiners.length;o++)if(this._characterJoiners[o].id===h)return this._characterJoiners.splice(o,1),!0;return!1},c.prototype.getJoinedCharacters=function(h){if(this._characterJoiners.length===0)return[];var o=this._bufferService.buffer.lines.get(h);if(!o||o.length===0)return[];for(var n=[],r=o.translateToString(!0),s=0,l=0,d=0,p=o.getFg(0),g=o.getBg(0),m=0;m<o.getTrimmedLength();m++)if(o.loadCell(m,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==p||this._workCell.bg!==g){if(m-s>1)for(var v=this._getJoinedRanges(r,d,l,o,s),_=0;_<v.length;_++)n.push(v[_]);s=m,d=l,p=this._workCell.fg,g=this._workCell.bg}l+=this._workCell.getChars().length||b.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(v=this._getJoinedRanges(r,d,l,o,s),_=0;_<v.length;_++)n.push(v[_]);return n},c.prototype._getJoinedRanges=function(h,o,n,r,s){for(var l=h.substring(o,n),d=this._characterJoiners[0].handler(l),p=1;p<this._characterJoiners.length;p++)for(var g=this._characterJoiners[p].handler(l),m=0;m<g.length;m++)c._mergeRanges(d,g[m]);return this._stringRangesToCellRanges(d,r,s),d},c.prototype._stringRangesToCellRanges=function(h,o,n){var r=0,s=!1,l=0,d=h[r];if(d){for(var p=n;p<this._bufferService.cols;p++){var g=o.getWidth(p),m=o.getString(p).length||b.WHITESPACE_CELL_CHAR.length;if(g!==0){if(!s&&d[0]<=l&&(d[0]=p,s=!0),d[1]<=l){if(d[1]=p,!(d=h[++r]))break;d[0]<=l?(d[0]=p,s=!0):s=!1}l+=m}}d&&(d[1]=this._bufferService.cols)}},c._mergeRanges=function(h,o){for(var n=!1,r=0;r<h.length;r++){var s=h[r];if(n){if(o[1]<=s[0])return h[r-1][1]=o[1],h;if(o[1]<=s[1])return h[r-1][1]=Math.max(o[1],s[1]),h.splice(r,1),h;h.splice(r,1),r--}else{if(o[1]<=s[0])return h.splice(r,0,o),h;if(o[1]<=s[1])return s[0]=Math.min(o[0],s[0]),h;o[0]<s[1]&&(s[0]=Math.min(o[0],s[0]),n=!0)}}return n?h[h.length-1][1]=o[1]:h.push(o),h},c}();J.CharacterJoinerRegistry=A},function(ke,J,oe){"use strict";function ie(t,C){var b=C.getBoundingClientRect();return[t.clientX-b.left,t.clientY-b.top]}Object.defineProperty(J,"__esModule",{value:!0}),J.getRawByteCoords=J.getCoords=J.getCoordsRelativeToElement=void 0,J.getCoordsRelativeToElement=ie,J.getCoords=function(t,C,b,a,u,A,c,h){if(u){var o=ie(t,C);if(o)return o[0]=Math.ceil((o[0]+(h?A/2:0))/A),o[1]=Math.ceil(o[1]/c),o[0]=Math.min(Math.max(o[0],1),b+(h?1:0)),o[1]=Math.min(Math.max(o[1],1),a),o}},J.getRawByteCoords=function(t){if(t)return{x:t[0]+32,y:t[1]+32}}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.RenderDebouncer=void 0;var ie=function(){function t(C){this._renderCallback=C}return t.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},t.prototype.refresh=function(C,b,a){var u=this;this._rowCount=a,C=C!==void 0?C:0,b=b!==void 0?b:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,C):C,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,b):b,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return u._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var C=Math.max(this._rowStart,0),b=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(C,b)}},t}();J.RenderDebouncer=ie},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(b,a){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,A){u.__proto__=A}||function(u,A){for(var c in A)A.hasOwnProperty(c)&&(u[c]=A[c])})(b,a)},function(b,a){function u(){this.constructor=b}ie(b,a),b.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(J,"__esModule",{value:!0}),J.ScreenDprMonitor=void 0;var C=function(b){function a(){var u=b!==null&&b.apply(this,arguments)||this;return u._currentDevicePixelRatio=window.devicePixelRatio,u}return t(a,b),a.prototype.setListener=function(u){var A=this;this._listener&&this.clearListener(),this._listener=u,this._outerListener=function(){A._listener&&(A._listener(window.devicePixelRatio,A._currentDevicePixelRatio),A._updateDpr())},this._updateDpr()},a.prototype.dispose=function(){b.prototype.dispose.call(this),this.clearListener()},a.prototype._updateDpr=function(){var u;this._outerListener&&((u=this._resolutionMediaMatchList)===null||u===void 0||u.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},a.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},a}(oe(2).Disposable);J.ScreenDprMonitor=C},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.clone=void 0,J.clone=function ie(t,C){if(C===void 0&&(C=5),typeof t!="object")return t;var b=Array.isArray(t)?[]:{};for(var a in t)b[a]=C<=1?t[a]:t[a]?ie(t[a],C-1):t[a];return b}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Terminal=void 0;var ie=oe(4),t=oe(35),C=oe(18),b=oe(0),a=oe(83),u=function(){function r(s){this._core=new t.Terminal(s),this._addonManager=new a.AddonManager}return r.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new o(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new n(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),new c(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(s,l){this._verifyIntegers(s,l),this._core.resize(s,l)},r.prototype.open=function(s){this._core.open(s)},r.prototype.attachCustomKeyEventHandler=function(s){this._core.attachCustomKeyEventHandler(s)},r.prototype.registerLinkMatcher=function(s,l,d){return this._checkProposedApi(),this._core.registerLinkMatcher(s,l,d)},r.prototype.deregisterLinkMatcher=function(s){this._checkProposedApi(),this._core.deregisterLinkMatcher(s)},r.prototype.registerLinkProvider=function(s){return this._checkProposedApi(),this._core.registerLinkProvider(s)},r.prototype.registerCharacterJoiner=function(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)},r.prototype.deregisterCharacterJoiner=function(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)},r.prototype.registerMarker=function(s){return this._checkProposedApi(),this._verifyIntegers(s),this._core.addMarker(s)},r.prototype.addMarker=function(s){return this.registerMarker(s)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(s,l,d){this._verifyIntegers(s,l,d),this._core.select(s,l,d)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(s,l){this._verifyIntegers(s,l),this._core.selectLines(s,l)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(s){this._verifyIntegers(s),this._core.scrollLines(s)},r.prototype.scrollPages=function(s){this._verifyIntegers(s),this._core.scrollPages(s)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(s){this._verifyIntegers(s),this._core.scrollToLine(s)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(s,l){this._core.write(s,l)},r.prototype.writeUtf8=function(s,l){this._core.write(s,l)},r.prototype.writeln=function(s,l){this._core.write(s),this._core.write(`\r
|
|
|
`,l)},r.prototype.paste=function(s){this._core.paste(s)},r.prototype.getOption=function(s){return this._core.optionsService.getOption(s)},r.prototype.setOption=function(s,l){this._core.optionsService.setOption(s,l)},r.prototype.refresh=function(s,l){this._verifyIntegers(s,l),this._core.refresh(s,l)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(s){return this._addonManager.loadAddon(this,s)},Object.defineProperty(r,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];for(var d=0,p=s;d<p.length;d++){var g=p[d];if(g===1/0||isNaN(g)||g%1!=0)throw new Error("This API only accepts integers")}},r}();J.Terminal=u;var A=function(){function r(s,l){this._buffer=s,this.type=l}return r.prototype.init=function(s){return this._buffer=s,this},Object.defineProperty(r.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),r.prototype.getLine=function(s){var l=this._buffer.lines.get(s);if(l)return new h(l)},r.prototype.getNullCell=function(){return new ie.CellData},r}(),c=function(){function r(s){var l=this;this._buffers=s,this._onBufferChange=new b.EventEmitter,this._normal=new A(this._buffers.normal,"normal"),this._alternate=new A(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return l._onBufferChange.fire(l.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),h=function(){function r(s){this._line=s}return Object.defineProperty(r.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),r.prototype.getCell=function(s,l){if(!(s<0||s>=this._line.length))return l?(this._line.loadCell(s,l),l):this._line.loadCell(s,new ie.CellData)},r.prototype.translateToString=function(s,l,d){return this._line.translateToString(s,l,d)},r}(),o=function(){function r(s){this._core=s}return r.prototype.registerCsiHandler=function(s,l){return this._core.addCsiHandler(s,function(d){return l(d.toArray())})},r.prototype.addCsiHandler=function(s,l){return this.registerCsiHandler(s,l)},r.prototype.registerDcsHandler=function(s,l){return this._core.addDcsHandler(s,function(d,p){return l(d,p.toArray())})},r.prototype.addDcsHandler=function(s,l){return this.registerDcsHandler(s,l)},r.prototype.registerEscHandler=function(s,l){return this._core.addEscHandler(s,l)},r.prototype.addEscHandler=function(s,l){return this.registerEscHandler(s,l)},r.prototype.registerOscHandler=function(s,l){return this._core.addOscHandler(s,l)},r.prototype.addOscHandler=function(s,l){return this.registerOscHandler(s,l)},r}(),n=function(){function r(s){this._core=s}return r.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(r.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(s){this._core.unicodeService.activeVersion=s},enumerable:!1,configurable:!0}),r}()},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(X,G){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,Z){ee.__proto__=Z}||function(ee,Z){for(var Ae in Z)Z.hasOwnProperty(Ae)&&(ee[Ae]=Z[Ae])})(X,G)},function(X,G){function ee(){this.constructor=X}ie(X,G),X.prototype=G===null?Object.create(G):(ee.prototype=G.prototype,new ee)});Object.defineProperty(J,"__esModule",{value:!0}),J.Terminal=void 0;var C=oe(36),b=oe(37),a=oe(38),u=oe(12),A=oe(19),c=oe(40),h=oe(50),o=oe(51),n=oe(11),r=oe(7),s=oe(18),l=oe(54),d=oe(55),p=oe(56),g=oe(57),m=oe(59),v=oe(0),_=oe(16),O=oe(27),F=oe(60),T=oe(5),S=oe(61),I=oe(62),E=oe(63),M=oe(64),N=oe(65),V=typeof window!="undefined"?window.document:null,H=function(X){function G(ee){ee===void 0&&(ee={});var Z=X.call(this,ee)||this;return Z.browser=n,Z._keyDownHandled=!1,Z._onCursorMove=new v.EventEmitter,Z._onKey=new v.EventEmitter,Z._onRender=new v.EventEmitter,Z._onSelectionChange=new v.EventEmitter,Z._onTitleChange=new v.EventEmitter,Z._onFocus=new v.EventEmitter,Z._onBlur=new v.EventEmitter,Z._onA11yCharEmitter=new v.EventEmitter,Z._onA11yTabEmitter=new v.EventEmitter,Z._setup(),Z.linkifier=Z._instantiationService.createInstance(h.Linkifier),Z.linkifier2=Z.register(Z._instantiationService.createInstance(E.Linkifier2)),Z.register(Z._inputHandler.onRequestBell(function(){return Z.bell()})),Z.register(Z._inputHandler.onRequestRefreshRows(function(Ae,U){return Z.refresh(Ae,U)})),Z.register(Z._inputHandler.onRequestReset(function(){return Z.reset()})),Z.register(Z._inputHandler.onRequestScroll(function(Ae,U){return Z.scroll(Ae,U||void 0)})),Z.register(Z._inputHandler.onRequestWindowsOptionsReport(function(Ae){return Z._reportWindowsOptions(Ae)})),Z.register(v.forwardEvent(Z._inputHandler.onCursorMove,Z._onCursorMove)),Z.register(v.forwardEvent(Z._inputHandler.onTitleChange,Z._onTitleChange)),Z.register(v.forwardEvent(Z._inputHandler.onA11yChar,Z._onA11yCharEmitter)),Z.register(v.forwardEvent(Z._inputHandler.onA11yTab,Z._onA11yTabEmitter)),Z.register(Z._bufferService.onResize(function(Ae){return Z._afterResize(Ae.cols,Ae.rows)})),Z}return t(G,X),Object.defineProperty(G.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),G.prototype.dispose=function(){var ee,Z,Ae;this._isDisposed||(X.prototype.dispose.call(this),(ee=this._renderService)===null||ee===void 0||ee.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Ae=(Z=this.element)===null||Z===void 0?void 0:Z.parentNode)===null||Ae===void 0||Ae.removeChild(this.element))},G.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(G.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),G.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},G.prototype._updateOptions=function(ee){var Z,Ae,U,W;switch(X.prototype._updateOptions.call(this,ee),ee){case"fontFamily":case"fontSize":(Z=this._renderService)===null||Z===void 0||Z.clear(),(Ae=this._charSizeService)===null||Ae===void 0||Ae.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(U=this.viewport)===null||U===void 0||U.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new p.AccessibilityManager(this,this._renderService)):((W=this._accessibilityManager)===null||W===void 0||W.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},G.prototype._onTextAreaFocus=function(ee){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[I"),this.updateCursorStyle(ee),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},G.prototype.blur=function(){var ee;return(ee=this.textarea)===null||ee===void 0?void 0:ee.blur()},G.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},G.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ee=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Z=this._bufferService.buffer.y*ee,Ae=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=Ae+"px",this.textarea.style.top=Z+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ee+"px",this.textarea.style.lineHeight=ee+"px",this.textarea.style.zIndex="-5"}},G.prototype._initGlobal=function(){var ee=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(Ae){ee.hasSelection()&&a.copyHandler(Ae,ee._selectionService)}));var Z=function(Ae){return a.handlePasteEvent(Ae,ee.textarea,ee._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",Z)),this.register(r.addDisposableDomListener(this.element,"paste",Z)),n.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(Ae){Ae.button===2&&a.rightClickHandler(Ae,ee.textarea,ee.screenElement,ee._selectionService,ee.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(Ae){a.rightClickHandler(Ae,ee.textarea,ee.screenElement,ee._selectionService,ee.options.rightClickSelectsWord)})),n.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(Ae){Ae.button===1&&a.moveTextAreaUnderMouseCursor(Ae,ee.textarea,ee.screenElement)}))},G.prototype._bindKeys=function(){var ee=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(Z){return ee._keyUp(Z)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(Z){return ee._keyDown(Z)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(Z){return ee._keyPress(Z)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return ee._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(Z){return ee._compositionHelper.compositionupdate(Z)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return ee._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ee._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Z){return ee._queueLinkification(Z.start,Z.end)}))},G.prototype.open=function(ee){var Z=this;if(!ee)throw new Error("Terminal requires a parent element.");V.body.contains(ee)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ee.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),ee.appendChild(this.element);var Ae=V.createDocumentFragment();this._viewportElement=V.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Ae.appendChild(this._viewportElement),this._viewportScrollArea=V.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=V.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=V.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Ae.appendChild(this.screenElement),this.textarea=V.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(r.addDisposableDomListener(this.textarea,"focus",function(le){return Z._onTextAreaFocus(le)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return Z._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var U=this._instantiationService.createInstance(M.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,U),this._charSizeService=this._instantiationService.createInstance(S.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=V.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(C.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(Ae),this._theme=this.options.theme||this._theme,this._colorManager=new O.ColorManager(V,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(le){return Z._colorManager.onOptionsChange(le)})),this._colorManager.setTheme(this._theme);var W=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(F.RenderService,W,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(le){return Z._onRender.fire(le)})),this.onResize(function(le){return Z._renderService.resize(le.cols,le.rows)}),this._soundService=this._instantiationService.createInstance(l.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(I.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(b.Viewport,function(le,he){return Z.scrollLines(le,he)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Z.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Z._renderService.onCursorMove(),Z._syncTextArea()})),this.register(this.onResize(function(){return Z._renderService.onResize(Z.cols,Z.rows)})),this.register(this.onBlur(function(){return Z._renderService.onBlur()})),this.register(this.onFocus(function(){return Z._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Z.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(o.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(le){return Z.scrollLines(le.amount,le.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Z._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(le){return Z._renderService.onSelectionChanged(le.start,le.end,le.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(le){Z.textarea.value=le,Z.textarea.focus(),Z.textarea.select()})),this.register(this.onScroll(function(){Z.viewport.syncScrollArea(),Z._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return Z._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(d.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Z._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(le){return Z._selectionService.onMouseDown(le)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new p.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},G.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(c.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(g.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},G.prototype._setTheme=function(ee){var Z,Ae,U;this._theme=ee,(Z=this._colorManager)===null||Z===void 0||Z.setTheme(ee),(Ae=this._renderService)===null||Ae===void 0||Ae.setColors(this._colorManager.colors),(U=this.viewport)===null||U===void 0||U.onThemeChange(this._colorManager.colors)},G.prototype.bindMouse=function(){var ee=this,Z=this,Ae=this.element;function U(fe){var ce,be,Ce=Z._mouseService.getRawByteCoords(fe,Z.screenElement,Z.cols,Z.rows);if(!Ce)return!1;switch(fe.overrideType||fe.type){case"mousemove":be=32,fe.buttons===void 0?(ce=3,fe.button!==void 0&&(ce=fe.button<3?fe.button:3)):ce=1&fe.buttons?0:4&fe.buttons?1:2&fe.buttons?2:3;break;case"mouseup":be=0,ce=fe.button<3?fe.button:3;break;case"mousedown":be=1,ce=fe.button<3?fe.button:3;break;case"wheel":fe.deltaY!==0&&(be=fe.deltaY<0?0:1),ce=4;break;default:return!1}return!(be===void 0||ce===void 0||ce>4)&&Z._coreMouseService.triggerMouseEvent({col:Ce.x-33,row:Ce.y-33,button:ce,action:be,ctrl:fe.ctrlKey,alt:fe.altKey,shift:fe.shiftKey})}var W={mouseup:null,wheel:null,mousedrag:null,mousemove:null},le=function(fe){return U(fe),fe.buttons||(ee._document.removeEventListener("mouseup",W.mouseup),W.mousedrag&&ee._document.removeEventListener("mousemove",W.mousedrag)),ee.cancel(fe)},he=function(fe){return U(fe),fe.preventDefault(),ee.cancel(fe)},ue=function(fe){fe.buttons&&U(fe)},pe=function(fe){fe.buttons||U(fe)};this.register(this._coreMouseService.onProtocolChange(function(fe){fe?(ee.optionsService.options.logLevel==="debug"&&ee._logService.debug("Binding to mouse events:",ee._coreMouseService.explainEvents(fe)),ee.element.classList.add("enable-mouse-events"),ee._selectionService.disable()):(ee._logService.debug("Unbinding from mouse events."),ee.element.classList.remove("enable-mouse-events"),ee._selectionService.enable()),8&fe?W.mousemove||(Ae.addEventListener("mousemove",pe),W.mousemove=pe):(Ae.removeEventListener("mousemove",W.mousemove),W.mousemove=null),16&fe?W.wheel||(Ae.addEventListener("wheel",he,{passive:!1}),W.wheel=he):(Ae.removeEventListener("wheel",W.wheel),W.wheel=null),2&fe?W.mouseup||(W.mouseup=le):(ee._document.removeEventListener("mouseup",W.mouseup),W.mouseup=null),4&fe?W.mousedrag||(W.mousedrag=ue):(ee._document.removeEventListener("mousemove",W.mousedrag),W.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(Ae,"mousedown",function(fe){if(fe.preventDefault(),ee.focus(),ee._coreMouseService.areMouseEventsActive&&!ee._selectionService.shouldForceSelection(fe))return U(fe),W.mouseup&&ee._document.addEventListener("mouseup",W.mouseup),W.mousedrag&&ee._document.addEventListener("mousemove",W.mousedrag),ee.cancel(fe)})),this.register(r.addDisposableDomListener(Ae,"wheel",function(fe){if(!W.wheel){if(!ee.buffer.hasScrollback){var ce=ee.viewport.getLinesScrolled(fe);if(ce===0)return;for(var be=u.C0.ESC+(ee._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(fe.deltaY<0?"A":"B"),Ce="",xe=0;xe<Math.abs(ce);xe++)Ce+=be;ee._coreService.triggerDataEvent(Ce,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(Ae,"wheel",function(fe){if(!W.wheel)return ee.viewport.onWheel(fe)?void 0:ee.cancel(fe)},{passive:!1})),this.register(r.addDisposableDomListener(Ae,"touchstart",function(fe){if(!ee._coreMouseService.areMouseEventsActive)return ee.viewport.onTouchStart(fe),ee.cancel(fe)},{passive:!0})),this.register(r.addDisposableDomListener(Ae,"touchmove",function(fe){if(!ee._coreMouseService.areMouseEventsActive)return ee.viewport.onTouchMove(fe)?void 0:ee.cancel(fe)},{passive:!1}))},G.prototype.refresh=function(ee,Z){var Ae;(Ae=this._renderService)===null||Ae===void 0||Ae.refreshRows(ee,Z)},G.prototype._queueLinkification=function(ee,Z){var Ae;(Ae=this.linkifier)===null||Ae===void 0||Ae.linkifyRows(ee,Z)},G.prototype.updateCursorStyle=function(ee){this._selectionService&&this._selectionService.shouldColumnSelect(ee)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},G.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},G.prototype.scrollLines=function(ee,Z){X.prototype.scrollLines.call(this,ee,Z),this.refresh(0,this.rows-1)},G.prototype.paste=function(ee){a.paste(ee,this.textarea,this._coreService)},G.prototype.attachCustomKeyEventHandler=function(ee){this._customKeyEventHandler=ee},G.prototype.registerLinkMatcher=function(ee,Z,Ae){var U=this.linkifier.registerLinkMatcher(ee,Z,Ae);return this.refresh(0,this.rows-1),U},G.prototype.deregisterLinkMatcher=function(ee){this.linkifier.deregisterLinkMatcher(ee)&&this.refresh(0,this.rows-1)},G.prototype.registerLinkProvider=function(ee){return this.linkifier2.registerLinkProvider(ee)},G.prototype.registerCharacterJoiner=function(ee){var Z=this._renderService.registerCharacterJoiner(ee);return this.refresh(0,this.rows-1),Z},G.prototype.deregisterCharacterJoiner=function(ee){this._renderService.deregisterCharacterJoiner(ee)&&this.refresh(0,this.rows-1)},Object.defineProperty(G.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),G.prototype.addMarker=function(ee){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+ee)},G.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},G.prototype.select=function(ee,Z,Ae){this._selectionService.setSelection(ee,Z,Ae)},G.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},G.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},G.prototype.clearSelection=function(){var ee;(ee=this._selectionService)===null||ee===void 0||ee.clearSelection()},G.prototype.selectAll=function(){var ee;(ee=this._selectionService)===null||ee===void 0||ee.selectAll()},G.prototype.selectLines=function(ee,Z){var Ae;(Ae=this._selectionService)===null||Ae===void 0||Ae.selectLines(ee,Z)},G.prototype._keyDown=function(ee){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(ee)===!1)return!1;if(!this._compositionHelper.keydown(ee))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Z=m.evaluateKeyboardEvent(ee,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(ee),Z.type===3||Z.type===2){var Ae=this.rows-1;return this.scrollLines(Z.type===2?-Ae:Ae),this.cancel(ee,!0)}return Z.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,ee)||(Z.cancel&&this.cancel(ee,!0),!Z.key||(Z.key!==u.C0.ETX&&Z.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Z.key,domEvent:ee}),this._showCursor(),this._coreService.triggerDataEvent(Z.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(ee,!0)))},G.prototype._isThirdLevelShift=function(ee,Z){var Ae=ee.isMac&&!this.options.macOptionIsMeta&&Z.altKey&&!Z.ctrlKey&&!Z.metaKey||ee.isWindows&&Z.altKey&&Z.ctrlKey&&!Z.metaKey;return Z.type==="keypress"?Ae:Ae&&(!Z.keyCode||Z.keyCode>47)},G.prototype._keyUp=function(ee){this._customKeyEventHandler&&this._customKeyEventHandler(ee)===!1||(function(Z){return Z.keyCode===16||Z.keyCode===17||Z.keyCode===18}(ee)||this.focus(),this.updateCursorStyle(ee))},G.prototype._keyPress=function(ee){var Z;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ee)===!1)return!1;if(this.cancel(ee),ee.charCode)Z=ee.charCode;else if(ee.which===null||ee.which===void 0)Z=ee.keyCode;else{if(ee.which===0||ee.charCode===0)return!1;Z=ee.which}return!(!Z||(ee.altKey||ee.ctrlKey||ee.metaKey)&&!this._isThirdLevelShift(this.browser,ee))&&(Z=String.fromCharCode(Z),this._onKey.fire({key:Z,domEvent:ee}),this._showCursor(),this._coreService.triggerDataEvent(Z,!0),!0)},G.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},G.prototype.resize=function(ee,Z){ee!==this.cols||Z!==this.rows?X.prototype.resize.call(this,ee,Z):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},G.prototype._afterResize=function(ee,Z){var Ae,U;(Ae=this._charSizeService)===null||Ae===void 0||Ae.measure(),(U=this.viewport)===null||U===void 0||U.syncScrollArea(!0)},G.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var ee=1;ee<this.rows;ee++)this.buffer.lines.push(this.buffer.getBlankLine(_.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},G.prototype.reset=function(){var ee,Z;this.options.rows=this.rows,this.options.cols=this.cols;var Ae=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(ee=this._selectionService)===null||ee===void 0||ee.reset(),this._customKeyEventHandler=Ae,this.refresh(0,this.rows-1),(Z=this.viewport)===null||Z===void 0||Z.syncScrollArea()},G.prototype._reportWindowsOptions=function(ee){if(this._renderService)switch(ee){case A.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Z=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),Ae=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(u.C0.ESC+"[4;"+Ae+";"+Z+"t");break;case A.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var U=this._renderService.dimensions.scaledCellWidth.toFixed(0),W=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(u.C0.ESC+"[6;"+W+";"+U+"t")}},G.prototype.cancel=function(ee,Z){if(this.options.cancelEvents||Z)return ee.preventDefault(),ee.stopPropagation(),!1},G.prototype._visualBell=function(){return!1},G.prototype._soundBell=function(){return this.options.bellStyle==="sound"},G}(N.CoreTerminal);J.Terminal=H},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(u,A,c,h){var o,n=arguments.length,r=n<3?A:h===null?h=Object.getOwnPropertyDescriptor(A,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,A,c,h);else for(var s=u.length-1;s>=0;s--)(o=u[s])&&(r=(n<3?o(r):n>3?o(A,c,r):o(A,c))||r);return n>3&&r&&Object.defineProperty(A,c,r),r},t=this&&this.__param||function(u,A){return function(c,h){A(c,h,u)}};Object.defineProperty(J,"__esModule",{value:!0}),J.CompositionHelper=void 0;var C=oe(5),b=oe(1),a=function(){function u(A,c,h,o,n,r){this._textarea=A,this._compositionView=c,this._bufferService=h,this._optionsService=o,this._charSizeService=n,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(u.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),u.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},u.prototype.compositionupdate=function(A){var c=this;this._compositionView.textContent=A.data,this.updateCompositionElements(),setTimeout(function(){c._compositionPosition.end=c._textarea.value.length},0)},u.prototype.compositionend=function(){this._finalizeComposition(!0)},u.prototype.keydown=function(A){if(this._isComposing||this._isSendingComposition){if(A.keyCode===229||A.keyCode===16||A.keyCode===17||A.keyCode===18)return!1;this._finalizeComposition(!1)}return A.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},u.prototype._finalizeComposition=function(A){var c=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,A){var h={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(c._isSendingComposition){c._isSendingComposition=!1;var n=void 0;n=c._isComposing?c._textarea.value.substring(h.start,h.end):c._textarea.value.substring(h.start),c._coreService.triggerDataEvent(n,!0)}},0)}else{this._isSendingComposition=!1;var o=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(o,!0)}},u.prototype._handleAnyTextareaChanges=function(){var A=this,c=this._textarea.value;setTimeout(function(){if(!A._isComposing){var h=A._textarea.value.replace(c,"");h.length>0&&A._coreService.triggerDataEvent(h,!0)}},0)},u.prototype.updateCompositionElements=function(A){var c=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var h=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),o=this._bufferService.buffer.y*h,n=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=o+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}A||setTimeout(function(){return c.updateCompositionElements(!0)},0)}},u=ie([t(2,b.IBufferService),t(3,b.IOptionsService),t(4,C.ICharSizeService),t(5,b.ICoreService)],u)}();J.CompositionHelper=a},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}),C=this&&this.__decorate||function(o,n,r,s){var l,d=arguments.length,p=d<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,n,r,s);else for(var g=o.length-1;g>=0;g--)(l=o[g])&&(p=(d<3?l(p):d>3?l(n,r,p):l(n,r))||p);return d>3&&p&&Object.defineProperty(n,r,p),p},b=this&&this.__param||function(o,n){return function(r,s){n(r,s,o)}};Object.defineProperty(J,"__esModule",{value:!0}),J.Viewport=void 0;var a=oe(2),u=oe(7),A=oe(5),c=oe(1),h=function(o){function n(r,s,l,d,p,g,m){var v=o.call(this)||this;return v._scrollLines=r,v._viewportElement=s,v._scrollArea=l,v._bufferService=d,v._optionsService=p,v._charSizeService=g,v._renderService=m,v.scrollBarWidth=0,v._currentRowHeight=0,v._lastRecordedBufferLength=0,v._lastRecordedViewportHeight=0,v._lastRecordedBufferHeight=0,v._lastTouchY=0,v._lastScrollTop=0,v._wheelPartialScroll=0,v._refreshAnimationFrame=null,v._ignoreNextScrollEvent=!1,v.scrollBarWidth=v._viewportElement.offsetWidth-v._scrollArea.offsetWidth||15,v.register(u.addDisposableDomListener(v._viewportElement,"scroll",v._onScroll.bind(v))),setTimeout(function(){return v.syncScrollArea()},0),v}return t(n,o),n.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},n.prototype._refresh=function(r){var s=this;if(r)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return s._innerRefresh()}))},n.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var r=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==r&&(this._lastRecordedBufferHeight=r,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null},n.prototype.syncScrollArea=function(r){if(r===void 0&&(r=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(r);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===s&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(r)}else this._refresh(r)},n.prototype._onScroll=function(r){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s,!0)}},n.prototype._bubbleScroll=function(r,s){var l=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&l<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},n.prototype.onWheel=function(r){var s=this._getPixelsScrolled(r);return s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},n.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?s*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._currentRowHeight*this._bufferService.rows),s},n.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=this._currentRowHeight+0,this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},n.prototype._applyScrollModifier=function(r,s){var l=this._optionsService.options.fastScrollModifier;return l==="alt"&&s.altKey||l==="ctrl"&&s.ctrlKey||l==="shift"&&s.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},n.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},n.prototype.onTouchMove=function(r){var s=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},n=C([b(3,c.IBufferService),b(4,c.IOptionsService),b(5,A.ICharSizeService),b(6,A.IRenderService)],n)}(a.Disposable);J.Viewport=h},function(ke,J,oe){"use strict";function ie(a){return a.replace(/\r?\n/g,"\r")}function t(a,u){return u?"\x1B[200~"+a+"\x1B[201~":a}function C(a,u,A){a=t(a=ie(a),A.decPrivateModes.bracketedPasteMode),A.triggerDataEvent(a,!0),u.value=""}function b(a,u,A){var c=A.getBoundingClientRect(),h=a.clientX-c.left-10,o=a.clientY-c.top-10;u.style.width="20px",u.style.height="20px",u.style.left=h+"px",u.style.top=o+"px",u.style.zIndex="1000",u.focus()}Object.defineProperty(J,"__esModule",{value:!0}),J.rightClickHandler=J.moveTextAreaUnderMouseCursor=J.paste=J.handlePasteEvent=J.copyHandler=J.bracketTextForPaste=J.prepareTextForTerminal=void 0,J.prepareTextForTerminal=ie,J.bracketTextForPaste=t,J.copyHandler=function(a,u){a.clipboardData&&a.clipboardData.setData("text/plain",u.selectionText),a.preventDefault()},J.handlePasteEvent=function(a,u,A){a.stopPropagation(),a.clipboardData&&C(a.clipboardData.getData("text/plain"),u,A)},J.paste=C,J.moveTextAreaUnderMouseCursor=b,J.rightClickHandler=function(a,u,A,c,h){b(a,u,A),h&&!c.isClickInSelection(a)&&c.selectWordAtCursor(a),u.value=c.selectionText,u.select()}},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(J,"__esModule",{value:!0}),J.EscapeSequenceParser=J.VT500_TRANSITION_TABLE=J.TransitionTable=void 0;var C=oe(2),b=oe(15),a=oe(21),u=oe(22),A=oe(24),c=function(){function o(n){this.table=new Uint8Array(n)}return o.prototype.setDefault=function(n,r){b.fill(this.table,n<<4|r)},o.prototype.add=function(n,r,s,l){this.table[r<<8|n]=s<<4|l},o.prototype.addMany=function(n,r,s,l){for(var d=0;d<n.length;d++)this.table[r<<8|n[d]]=s<<4|l},o}();J.TransitionTable=c,J.VT500_TRANSITION_TABLE=function(){var o=new c(4095),n=Array.apply(null,Array(256)).map(function(g,m){return m}),r=function(g,m){return n.slice(g,m)},s=r(32,127),l=r(0,24);l.push(25),l.push.apply(l,r(28,32));var d,p=r(0,14);for(d in o.setDefault(1,0),o.addMany(s,0,2,0),p)o.addMany([24,26,153,154],d,3,0),o.addMany(r(128,144),d,3,0),o.addMany(r(144,152),d,3,0),o.add(156,d,0,0),o.add(27,d,11,1),o.add(157,d,4,8),o.addMany([152,158,159],d,0,7),o.add(155,d,11,3),o.add(144,d,11,9);return o.addMany(l,0,3,0),o.addMany(l,1,3,1),o.add(127,1,0,1),o.addMany(l,8,0,8),o.addMany(l,3,3,3),o.add(127,3,0,3),o.addMany(l,4,3,4),o.add(127,4,0,4),o.addMany(l,6,3,6),o.addMany(l,5,3,5),o.add(127,5,0,5),o.addMany(l,2,3,2),o.add(127,2,0,2),o.add(93,1,4,8),o.addMany(s,8,5,8),o.add(127,8,5,8),o.addMany([156,27,24,26,7],8,6,0),o.addMany(r(28,32),8,0,8),o.addMany([88,94,95],1,0,7),o.addMany(s,7,0,7),o.addMany(l,7,0,7),o.add(156,7,0,0),o.add(127,7,0,7),o.add(91,1,11,3),o.addMany(r(64,127),3,7,0),o.addMany(r(48,60),3,8,4),o.addMany([60,61,62,63],3,9,4),o.addMany(r(48,60),4,8,4),o.addMany(r(64,127),4,7,0),o.addMany([60,61,62,63],4,0,6),o.addMany(r(32,64),6,0,6),o.add(127,6,0,6),o.addMany(r(64,127),6,0,0),o.addMany(r(32,48),3,9,5),o.addMany(r(32,48),5,9,5),o.addMany(r(48,64),5,0,6),o.addMany(r(64,127),5,7,0),o.addMany(r(32,48),4,9,5),o.addMany(r(32,48),1,9,2),o.addMany(r(32,48),2,9,2),o.addMany(r(48,127),2,10,0),o.addMany(r(48,80),1,10,0),o.addMany(r(81,88),1,10,0),o.addMany([89,90,92],1,10,0),o.addMany(r(96,127),1,10,0),o.add(80,1,11,9),o.addMany(l,9,0,9),o.add(127,9,0,9),o.addMany(r(28,32),9,0,9),o.addMany(r(32,48),9,9,12),o.addMany(r(48,60),9,8,10),o.addMany([60,61,62,63],9,9,10),o.addMany(l,11,0,11),o.addMany(r(32,128),11,0,11),o.addMany(r(28,32),11,0,11),o.addMany(l,10,0,10),o.add(127,10,0,10),o.addMany(r(28,32),10,0,10),o.addMany(r(48,60),10,8,10),o.addMany([60,61,62,63],10,0,11),o.addMany(r(32,48),10,9,12),o.addMany(l,12,0,12),o.add(127,12,0,12),o.addMany(r(28,32),12,0,12),o.addMany(r(32,48),12,9,12),o.addMany(r(48,64),12,0,11),o.addMany(r(64,127),12,12,13),o.addMany(r(64,127),10,12,13),o.addMany(r(64,127),9,12,13),o.addMany(l,13,13,13),o.addMany(s,13,13,13),o.add(127,13,0,13),o.addMany([27,156,24,26],13,14,0),o.add(160,0,2,0),o.add(160,8,5,8),o.add(160,6,0,6),o.add(160,11,0,11),o.add(160,13,13,13),o}();var h=function(o){function n(r){r===void 0&&(r=J.VT500_TRANSITION_TABLE);var s=o.call(this)||this;return s._transitions=r,s.initialState=0,s.currentState=s.initialState,s._params=new a.Params,s._params.addParam(0),s._collect=0,s.precedingCodepoint=0,s._printHandlerFb=function(l,d,p){},s._executeHandlerFb=function(l){},s._csiHandlerFb=function(l,d){},s._escHandlerFb=function(l){},s._errorHandlerFb=function(l){return l},s._printHandler=s._printHandlerFb,s._executeHandlers=Object.create(null),s._csiHandlers=Object.create(null),s._escHandlers=Object.create(null),s._oscParser=new u.OscParser,s._dcsParser=new A.DcsParser,s._errorHandler=s._errorHandlerFb,s.setEscHandler({final:"\\"},function(){}),s}return t(n,o),n.prototype._identifier=function(r,s){s===void 0&&(s=[64,126]);var l=0;if(r.prefix){if(r.prefix.length>1)throw new Error("only one byte as prefix supported");if((l=r.prefix.charCodeAt(0))&&60>l||l>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(r.intermediates){if(r.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var d=0;d<r.intermediates.length;++d){var p=r.intermediates.charCodeAt(d);if(32>p||p>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");l<<=8,l|=p}}if(r.final.length!==1)throw new Error("final must be a single byte");var g=r.final.charCodeAt(0);if(s[0]>g||g>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return l<<=8,l|=g},n.prototype.identToString=function(r){for(var s=[];r;)s.push(String.fromCharCode(255&r)),r>>=8;return s.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(r){this._printHandler=r},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.addEscHandler=function(r,s){var l=this._identifier(r,[48,126]);this._escHandlers[l]===void 0&&(this._escHandlers[l]=[]);var d=this._escHandlers[l];return d.push(s),{dispose:function(){var p=d.indexOf(s);p!==-1&&d.splice(p,1)}}},n.prototype.setEscHandler=function(r,s){this._escHandlers[this._identifier(r,[48,126])]=[s]},n.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},n.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},n.prototype.setExecuteHandler=function(r,s){this._executeHandlers[r.charCodeAt(0)]=s},n.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},n.prototype.addCsiHandler=function(r,s){var l=this._identifier(r);this._csiHandlers[l]===void 0&&(this._csiHandlers[l]=[]);var d=this._csiHandlers[l];return d.push(s),{dispose:function(){var p=d.indexOf(s);p!==-1&&d.splice(p,1)}}},n.prototype.setCsiHandler=function(r,s){this._csiHandlers[this._identifier(r)]=[s]},n.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},n.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},n.prototype.addDcsHandler=function(r,s){return this._dcsParser.addHandler(this._identifier(r),s)},n.prototype.setDcsHandler=function(r,s){this._dcsParser.setHandler(this._identifier(r),s)},n.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},n.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},n.prototype.addOscHandler=function(r,s){return this._oscParser.addHandler(r,s)},n.prototype.setOscHandler=function(r,s){this._oscParser.setHandler(r,s)},n.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},n.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},n.prototype.setErrorHandler=function(r){this._errorHandler=r},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},n.prototype.parse=function(r,s){for(var l=0,d=0,p=this.currentState,g=this._oscParser,m=this._dcsParser,v=this._collect,_=this._params,O=this._transitions.table,F=0;F<s;++F){switch((d=O[p<<8|((l=r[F])<160?l:160)])>>4){case 2:for(var T=F+1;;++T){if(T>=s||(l=r[T])<32||l>126&&l<160){this._printHandler(r,F,T),F=T-1;break}if(++T>=s||(l=r[T])<32||l>126&&l<160){this._printHandler(r,F,T),F=T-1;break}if(++T>=s||(l=r[T])<32||l>126&&l<160){this._printHandler(r,F,T),F=T-1;break}if(++T>=s||(l=r[T])<32||l>126&&l<160){this._printHandler(r,F,T),F=T-1;break}}break;case 3:this._executeHandlers[l]?this._executeHandlers[l]():this._executeHandlerFb(l),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:F,code:l,currentState:p,collect:v,params:_,abort:!1}).abort)return;break;case 7:for(var S=this._csiHandlers[v<<8|l],I=S?S.length-1:-1;I>=0&&S[I](_)===!1;I--);I<0&&this._csiHandlerFb(v<<8|l,_),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:_.addParam(0);break;case 58:_.addSubParam(-1);break;default:_.addDigit(l-48)}while(++F<s&&(l=r[F])>47&&l<60);F--;break;case 9:v<<=8,v|=l;break;case 10:for(var E=this._escHandlers[v<<8|l],M=E?E.length-1:-1;M>=0&&E[M]()===!1;M--);M<0&&this._escHandlerFb(v<<8|l),this.precedingCodepoint=0;break;case 11:_.reset(),_.addParam(0),v=0;break;case 12:m.hook(v<<8|l,_);break;case 13:for(var N=F+1;;++N)if(N>=s||(l=r[N])===24||l===26||l===27||l>127&&l<160){m.put(r,F,N),F=N-1;break}break;case 14:m.unhook(l!==24&&l!==26),l===27&&(d|=1),_.reset(),_.addParam(0),v=0,this.precedingCodepoint=0;break;case 4:g.start();break;case 5:for(var V=F+1;;V++)if(V>=s||(l=r[V])<32||l>127&&l<=159){g.put(r,F,V),F=V-1;break}break;case 6:g.end(l!==24&&l!==26),l===27&&(d|=1),_.reset(),_.addParam(0),v=0,this.precedingCodepoint=0}p=15&d}this._collect=v,this.currentState=p},n}(C.Disposable);J.EscapeSequenceParser=h},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(g,m){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,_){v.__proto__=_}||function(v,_){for(var O in _)_.hasOwnProperty(O)&&(v[O]=_[O])})(g,m)},function(g,m){function v(){this.constructor=g}ie(g,m),g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),C=this&&this.__decorate||function(g,m,v,_){var O,F=arguments.length,T=F<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,v):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(g,m,v,_);else for(var S=g.length-1;S>=0;S--)(O=g[S])&&(T=(F<3?O(T):F>3?O(m,v,T):O(m,v))||T);return F>3&&T&&Object.defineProperty(m,v,T),T},b=this&&this.__param||function(g,m){return function(v,_){m(v,_,g)}};Object.defineProperty(J,"__esModule",{value:!0}),J.Renderer=void 0;var a=oe(41),u=oe(47),A=oe(48),c=oe(49),h=oe(29),o=oe(2),n=oe(5),r=oe(1),s=oe(25),l=oe(0),d=1,p=function(g){function m(v,_,O,F,T,S,I,E,M){var N=g.call(this)||this;N._colors=v,N._screenElement=_,N._bufferService=T,N._charSizeService=S,N._optionsService=I,N._id=d++,N._onRequestRedraw=new l.EventEmitter;var V=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new h.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new a.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,V,N._id,N._bufferService,I),new u.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,I),new c.LinkRenderLayer(N._screenElement,2,N._colors,N._id,O,F,N._bufferService,I),new A.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,I,E,M)],N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._devicePixelRatio=window.devicePixelRatio,N._updateDimensions(),N.onOptionsChanged(),N}return t(m,g),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){for(var v=0,_=this._renderLayers;v<_.length;v++)_[v].dispose();g.prototype.dispose.call(this),s.removeTerminalFromCache(this._id)},m.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},m.prototype.setColors=function(v){this._colors=v;for(var _=0,O=this._renderLayers;_<O.length;_++){var F=O[_];F.setColors(this._colors),F.reset()}},m.prototype.onResize=function(v,_){this._updateDimensions();for(var O=0,F=this._renderLayers;O<F.length;O++)F[O].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},m.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},m.prototype.onBlur=function(){this._runOperation(function(v){return v.onBlur()})},m.prototype.onFocus=function(){this._runOperation(function(v){return v.onFocus()})},m.prototype.onSelectionChanged=function(v,_,O){O===void 0&&(O=!1),this._runOperation(function(F){return F.onSelectionChanged(v,_,O)})},m.prototype.onCursorMove=function(){this._runOperation(function(v){return v.onCursorMove()})},m.prototype.onOptionsChanged=function(){this._runOperation(function(v){return v.onOptionsChanged()})},m.prototype.clear=function(){this._runOperation(function(v){return v.reset()})},m.prototype._runOperation=function(v){for(var _=0,O=this._renderLayers;_<O.length;_++)v(O[_])},m.prototype.renderRows=function(v,_){for(var O=0,F=this._renderLayers;O<F.length;O++)F[O].onGridChanged(v,_)},m.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},m.prototype.registerCharacterJoiner=function(v){return this._characterJoinerRegistry.registerCharacterJoiner(v)},m.prototype.deregisterCharacterJoiner=function(v){return this._characterJoinerRegistry.deregisterCharacterJoiner(v)},m=C([b(4,r.IBufferService),b(5,n.ICharSizeService),b(6,r.IOptionsService),b(7,r.ICoreService),b(8,n.ICoreBrowserService)],m)}(o.Disposable);J.Renderer=p},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(J,"__esModule",{value:!0}),J.TextRenderLayer=void 0;var C=oe(42),b=oe(13),a=oe(6),u=oe(3),A=oe(29),c=oe(4),h=function(o){function n(r,s,l,d,p,g,m,v){var _=o.call(this,r,"text",s,p,l,g,m,v)||this;return _._characterWidth=0,_._characterFont="",_._characterOverlapCache={},_._workCell=new c.CellData,_._state=new C.GridCache,_._characterJoinerRegistry=d,_}return t(n,o),n.prototype.resize=function(r){o.prototype.resize.call(this,r);var s=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===s||(this._characterWidth=r.scaledCharWidth,this._characterFont=s,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},n.prototype.reset=function(){this._state.clear(),this._clearAll()},n.prototype._forEachCell=function(r,s,l,d){for(var p=r;p<=s;p++)for(var g=p+this._bufferService.buffer.ydisp,m=this._bufferService.buffer.lines.get(g),v=l?l.getJoinedCharacters(g):[],_=0;_<this._bufferService.cols;_++){m.loadCell(_,this._workCell);var O=this._workCell,F=!1,T=_;if(O.getWidth()!==0){if(v.length>0&&_===v[0][0]){F=!0;var S=v.shift();O=new A.JoinedCellData(this._workCell,m.translateToString(!0,S[0],S[1]),S[1]-S[0]),T=S[1]-1}!F&&this._isOverlapping(O)&&T<m.length-1&&m.getCodePoint(T+1)===u.NULL_CELL_CODE&&(O.content&=-12582913,O.content|=2<<22),d(O,_,p),_=T}}},n.prototype._drawBackground=function(r,s){var l=this,d=this._ctx,p=this._bufferService.cols,g=0,m=0,v=null;d.save(),this._forEachCell(r,s,null,function(_,O,F){var T=null;_.isInverse()?T=_.isFgDefault()?l._colors.foreground.css:_.isFgRGB()?"rgb("+a.AttributeData.toColorRGB(_.getFgColor()).join(",")+")":l._colors.ansi[_.getFgColor()].css:_.isBgRGB()?T="rgb("+a.AttributeData.toColorRGB(_.getBgColor()).join(",")+")":_.isBgPalette()&&(T=l._colors.ansi[_.getBgColor()].css),v===null&&(g=O,m=F),F!==m?(d.fillStyle=v||"",l._fillCells(g,m,p-g,1),g=O,m=F):v!==T&&(d.fillStyle=v||"",l._fillCells(g,m,O-g,1),g=O,m=F),v=T}),v!==null&&(d.fillStyle=v,this._fillCells(g,m,p-g,1)),d.restore()},n.prototype._drawForeground=function(r,s){var l=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(d,p,g){if(!d.isInvisible()&&(l._drawChars(d,p,g),d.isUnderline())){if(l._ctx.save(),d.isInverse())if(d.isBgDefault())l._ctx.fillStyle=l._colors.background.css;else if(d.isBgRGB())l._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(d.getBgColor()).join(",")+")";else{var m=d.getBgColor();l._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&m<8&&(m+=8),l._ctx.fillStyle=l._colors.ansi[m].css}else if(d.isFgDefault())l._ctx.fillStyle=l._colors.foreground.css;else if(d.isFgRGB())l._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(d.getFgColor()).join(",")+")";else{var v=d.getFgColor();l._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&v<8&&(v+=8),l._ctx.fillStyle=l._colors.ansi[v].css}l._fillBottomLineAtCells(p,g,d.getWidth()),l._ctx.restore()}})},n.prototype.onGridChanged=function(r,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,s-r+1),this._drawBackground(r,s),this._drawForeground(r,s))},n.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},n.prototype._isOverlapping=function(r){if(r.getWidth()!==1||r.getCode()<256)return!1;var s=r.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;var l=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=l,l},n}(b.BaseRenderLayer);J.TextRenderLayer=h},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.GridCache=void 0;var ie=function(){function t(){this.cache=[]}return t.prototype.resize=function(C,b){for(var a=0;a<C;a++){this.cache.length<=a&&this.cache.push([]);for(var u=this.cache[a].length;u<b;u++)this.cache[a].push(void 0);this.cache[a].length=b}this.cache.length=C},t.prototype.clear=function(){for(var C=0;C<this.cache.length;C++)for(var b=0;b<this.cache[C].length;b++)this.cache[C][b]=void 0},t}();J.GridCache=ie},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(l,d){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},function(l,d){function p(){this.constructor=l}ie(l,d),l.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)});Object.defineProperty(J,"__esModule",{value:!0}),J.NoneCharAtlas=J.DynamicCharAtlas=J.getGlyphCacheKey=void 0;var C=oe(9),b=oe(44),a=oe(27),u=oe(46),A=oe(11),c=oe(28),h=oe(10),o={css:"rgba(0, 0, 0, 0)",rgba:0};function n(l){return l.code<<21|l.bg<<12|l.fg<<3|(l.bold?0:4)+(l.dim?0:2)+(l.italic?0:1)}J.getGlyphCacheKey=n;var r=function(l){function d(p,g){var m=l.call(this)||this;m._config=g,m._drawToCacheCount=0,m._glyphsWaitingOnBitmap=[],m._bitmapCommitTimeout=null,m._bitmap=null,m._cacheCanvas=p.createElement("canvas"),m._cacheCanvas.width=1024,m._cacheCanvas.height=1024,m._cacheCtx=c.throwIfFalsy(m._cacheCanvas.getContext("2d",{alpha:!0}));var v=p.createElement("canvas");v.width=m._config.scaledCharWidth,v.height=m._config.scaledCharHeight,m._tmpCtx=c.throwIfFalsy(v.getContext("2d",{alpha:m._config.allowTransparency})),m._width=Math.floor(1024/m._config.scaledCharWidth),m._height=Math.floor(1024/m._config.scaledCharHeight);var _=m._width*m._height;return m._cacheMap=new u.LRUMap(_),m._cacheMap.prealloc(_),m}return t(d,l),d.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},d.prototype.beginFrame=function(){this._drawToCacheCount=0},d.prototype.draw=function(p,g,m,v){if(g.code===32)return!0;if(!this._canCache(g))return!1;var _=n(g),O=this._cacheMap.get(_);if(O!=null)return this._drawFromCache(p,O,m,v),!0;if(this._drawToCacheCount<100){var F=void 0;F=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(g,F);return this._cacheMap.set(_,T),this._drawFromCache(p,T,m,v),!0}return!1},d.prototype._canCache=function(p){return p.code<256},d.prototype._toCoordinateX=function(p){return p%this._width*this._config.scaledCharWidth},d.prototype._toCoordinateY=function(p){return Math.floor(p/this._width)*this._config.scaledCharHeight},d.prototype._drawFromCache=function(p,g,m,v){if(!g.isEmpty){var _=this._toCoordinateX(g.index),O=this._toCoordinateY(g.index);p.drawImage(g.inBitmap?this._bitmap:this._cacheCanvas,_,O,this._config.scaledCharWidth,this._config.scaledCharHeight,m,v,this._config.scaledCharWidth,this._config.scaledCharHeight)}},d.prototype._getColorFromAnsiIndex=function(p){return p<this._config.colors.ansi.length?this._config.colors.ansi[p]:a.DEFAULT_ANSI_COLORS[p]},d.prototype._getBackgroundColor=function(p){return this._config.allowTransparency?o:p.bg===C.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:p.bg<256?this._getColorFromAnsiIndex(p.bg):this._config.colors.background},d.prototype._getForegroundColor=function(p){return p.fg===C.INVERTED_DEFAULT_COLOR?h.color.opaque(this._config.colors.background):p.fg<256?this._getColorFromAnsiIndex(p.fg):this._config.colors.foreground},d.prototype._drawToCache=function(p,g){this._drawToCacheCount++,this._tmpCtx.save();var m=this._getBackgroundColor(p);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=m.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var v=p.bold?this._config.fontWeightBold:this._config.fontWeight,_=p.italic?"italic":"";this._tmpCtx.font=_+" "+v+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(p).css,p.dim&&(this._tmpCtx.globalAlpha=C.DIM_OPACITY),this._tmpCtx.fillText(p.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var O=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),F=!1;this._config.allowTransparency||(F=function(E,M){for(var N=!0,V=M.rgba>>>24,H=M.rgba>>>16&255,X=M.rgba>>>8&255,G=0;G<E.data.length;G+=4)E.data[G]===V&&E.data[G+1]===H&&E.data[G+2]===X?E.data[G+3]=0:N=!1;return N}(O,m));var T=this._toCoordinateX(g),S=this._toCoordinateY(g);this._cacheCtx.putImageData(O,T,S);var I={index:g,isEmpty:F,inBitmap:!1};return this._addGlyphToBitmap(I),I},d.prototype._addGlyphToBitmap=function(p){var g=this;!("createImageBitmap"in window)||A.isFirefox||A.isSafari||(this._glyphsWaitingOnBitmap.push(p),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return g._generateBitmap()},100)))},d.prototype._generateBitmap=function(){var p=this,g=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(m){p._bitmap=m;for(var v=0;v<g.length;v++)g[v].inBitmap=!0}),this._bitmapCommitTimeout=null},d}(b.BaseCharAtlas);J.DynamicCharAtlas=r;var s=function(l){function d(p,g){return l.call(this)||this}return t(d,l),d.prototype.draw=function(p,g,m,v){return!1},d}(b.BaseCharAtlas);J.NoneCharAtlas=s},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BaseCharAtlas=void 0;var ie=function(){function t(){this._didWarmUp=!1}return t.prototype.dispose=function(){},t.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},t.prototype._doWarmUp=function(){},t.prototype.beginFrame=function(){},t}();J.BaseCharAtlas=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ColorContrastCache=void 0;var ie=function(){function t(){this._color={},this._rgba={}}return t.prototype.clear=function(){this._color={},this._rgba={}},t.prototype.setCss=function(C,b,a){this._rgba[C]||(this._rgba[C]={}),this._rgba[C][b]=a},t.prototype.getCss=function(C,b){return this._rgba[C]?this._rgba[C][b]:void 0},t.prototype.setColor=function(C,b,a){this._color[C]||(this._color[C]={}),this._color[C][b]=a},t.prototype.getColor=function(C,b){return this._color[C]?this._color[C][b]:void 0},t}();J.ColorContrastCache=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.LRUMap=void 0;var ie=function(){function t(C){this.capacity=C,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return t.prototype._unlinkNode=function(C){var b=C.prev,a=C.next;C===this._head&&(this._head=a),C===this._tail&&(this._tail=b),b!==null&&(b.next=a),a!==null&&(a.prev=b)},t.prototype._appendNode=function(C){var b=this._tail;b!==null&&(b.next=C),C.prev=b,C.next=null,this._tail=C,this._head===null&&(this._head=C)},t.prototype.prealloc=function(C){for(var b=this._nodePool,a=0;a<C;a++)b.push({prev:null,next:null,key:null,value:null})},t.prototype.get=function(C){var b=this._map[C];return b!==void 0?(this._unlinkNode(b),this._appendNode(b),b.value):null},t.prototype.peekValue=function(C){var b=this._map[C];return b!==void 0?b.value:null},t.prototype.peek=function(){var C=this._head;return C===null?null:C.value},t.prototype.set=function(C,b){var a=this._map[C];if(a!==void 0)a=this._map[C],this._unlinkNode(a),a.value=b;else if(this.size>=this.capacity)a=this._head,this._unlinkNode(a),delete this._map[a.key],a.key=C,a.value=b,this._map[C]=a;else{var u=this._nodePool;u.length>0?((a=u.pop()).key=C,a.value=b):a={prev:null,next:null,key:C,value:b},this._map[C]=a,this.size++}this._appendNode(a)},t}();J.LRUMap=ie},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(b,a){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,A){u.__proto__=A}||function(u,A){for(var c in A)A.hasOwnProperty(c)&&(u[c]=A[c])})(b,a)},function(b,a){function u(){this.constructor=b}ie(b,a),b.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(J,"__esModule",{value:!0}),J.SelectionRenderLayer=void 0;var C=function(b){function a(u,A,c,h,o,n){var r=b.call(this,u,"selection",A,!0,c,h,o,n)||this;return r._clearState(),r}return t(a,b),a.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},a.prototype.resize=function(u){b.prototype.resize.call(this,u),this._clearState()},a.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},a.prototype.onSelectionChanged=function(u,A,c){if(this._didStateChange(u,A,c,this._bufferService.buffer.ydisp))if(this._clearAll(),u&&A){var h=u[1]-this._bufferService.buffer.ydisp,o=A[1]-this._bufferService.buffer.ydisp,n=Math.max(h,0),r=Math.min(o,this._bufferService.rows-1);if(!(n>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,c){var s=u[0],l=A[0]-s,d=r-n+1;this._fillCells(s,n,l,d)}else{s=h===n?u[0]:0;var p=n===r?A[0]:this._bufferService.cols;this._fillCells(s,n,p-s,1);var g=Math.max(r-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,g),n!==r){var m=o===r?A[0]:this._bufferService.cols;this._fillCells(0,r,m,1)}}this._state.start=[u[0],u[1]],this._state.end=[A[0],A[1]],this._state.columnSelectMode=c,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},a.prototype._didStateChange=function(u,A,c,h){return!this._areCoordinatesEqual(u,this._state.start)||!this._areCoordinatesEqual(A,this._state.end)||c!==this._state.columnSelectMode||h!==this._state.ydisp},a.prototype._areCoordinatesEqual=function(u,A){return!(!u||!A)&&u[0]===A[0]&&u[1]===A[1]},a}(oe(13).BaseRenderLayer);J.SelectionRenderLayer=C},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(A,c){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])})(A,c)},function(A,c){function h(){this.constructor=A}ie(A,c),A.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(J,"__esModule",{value:!0}),J.CursorRenderLayer=void 0;var C=oe(13),b=oe(4),a=function(A){function c(h,o,n,r,s,l,d,p,g){var m=A.call(this,h,"cursor",o,!0,n,r,l,d)||this;return m._onRequestRedraw=s,m._coreService=p,m._coreBrowserService=g,m._cell=new b.CellData,m._state={x:0,y:0,isFocused:!1,style:"",width:0},m._cursorRenderers={bar:m._renderBarCursor.bind(m),block:m._renderBlockCursor.bind(m),underline:m._renderUnderlineCursor.bind(m)},m}return t(c,A),c.prototype.resize=function(h){A.prototype.resize.call(this,h),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},c.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},c.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},c.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},c.prototype.onOptionsChanged=function(){var h,o=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new u(this._coreBrowserService.isFocused,function(){o._render(!0)})):((h=this._cursorBlinkStateManager)===null||h===void 0||h.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},c.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},c.prototype.onGridChanged=function(h,o){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},c.prototype._render=function(h){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var o=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=o-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(o).loadCell(r,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var s=this._optionsService.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](r,n,this._cell):this._renderBlurCursor(r,n,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=n,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](r,n,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},c.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},c.prototype._renderBarCursor=function(h,o,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(h,o,this._optionsService.options.cursorWidth),this._ctx.restore()},c.prototype._renderBlockCursor=function(h,o,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(h,o,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,h,o),this._ctx.restore()},c.prototype._renderUnderlineCursor=function(h,o,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(h,o),this._ctx.restore()},c.prototype._renderBlurCursor=function(h,o,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(h,o,n.getWidth(),1),this._ctx.restore()},c}(C.BaseRenderLayer);J.CursorRenderLayer=a;var u=function(){function A(c,h){this._renderCallback=h,this.isCursorVisible=!0,c&&this._restartInterval()}return Object.defineProperty(A.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},A.prototype.restartBlinkAnimation=function(){var c=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){c._renderCallback(),c._animationFrame=void 0})))},A.prototype._restartInterval=function(c){var h=this;c===void 0&&(c=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(h._animationTimeRestarted){var o=600-(Date.now()-h._animationTimeRestarted);if(h._animationTimeRestarted=void 0,o>0)return void h._restartInterval(o)}h.isCursorVisible=!1,h._animationFrame=window.requestAnimationFrame(function(){h._renderCallback(),h._animationFrame=void 0}),h._blinkInterval=window.setInterval(function(){if(h._animationTimeRestarted){var n=600-(Date.now()-h._animationTimeRestarted);return h._animationTimeRestarted=void 0,void h._restartInterval(n)}h.isCursorVisible=!h.isCursorVisible,h._animationFrame=window.requestAnimationFrame(function(){h._renderCallback(),h._animationFrame=void 0})},600)},c)},A.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},A.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},A}()},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(A,c){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])})(A,c)},function(A,c){function h(){this.constructor=A}ie(A,c),A.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(J,"__esModule",{value:!0}),J.LinkRenderLayer=void 0;var C=oe(13),b=oe(9),a=oe(26),u=function(A){function c(h,o,n,r,s,l,d,p){var g=A.call(this,h,"link",o,!0,n,r,d,p)||this;return s.onShowLinkUnderline(function(m){return g._onShowLinkUnderline(m)}),s.onHideLinkUnderline(function(m){return g._onHideLinkUnderline(m)}),l.onShowLinkUnderline(function(m){return g._onShowLinkUnderline(m)}),l.onHideLinkUnderline(function(m){return g._onHideLinkUnderline(m)}),g}return t(c,A),c.prototype.resize=function(h){A.prototype.resize.call(this,h),this._state=void 0},c.prototype.reset=function(){this._clearCurrentLink()},c.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var h=this._state.y2-this._state.y1-1;h>0&&this._clearCells(0,this._state.y1+1,this._state.cols,h),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},c.prototype._onShowLinkUnderline=function(h){if(h.fg===b.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:h.fg&&a.is256Color(h.fg)?this._ctx.fillStyle=this._colors.ansi[h.fg].css:this._ctx.fillStyle=this._colors.foreground.css,h.y1===h.y2)this._fillBottomLineAtCells(h.x1,h.y1,h.x2-h.x1);else{this._fillBottomLineAtCells(h.x1,h.y1,h.cols-h.x1);for(var o=h.y1+1;o<h.y2;o++)this._fillBottomLineAtCells(0,o,h.cols);this._fillBottomLineAtCells(0,h.y2,h.x2)}this._state=h},c.prototype._onHideLinkUnderline=function(h){this._clearCurrentLink()},c}(C.BaseRenderLayer);J.LinkRenderLayer=u},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(A,c,h,o){var n,r=arguments.length,s=r<3?c:o===null?o=Object.getOwnPropertyDescriptor(c,h):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(A,c,h,o);else for(var l=A.length-1;l>=0;l--)(n=A[l])&&(s=(r<3?n(s):r>3?n(c,h,s):n(c,h))||s);return r>3&&s&&Object.defineProperty(c,h,s),s},t=this&&this.__param||function(A,c){return function(h,o){c(h,o,A)}};Object.defineProperty(J,"__esModule",{value:!0}),J.MouseZone=J.Linkifier=void 0;var C=oe(0),b=oe(1),a=function(){function A(c,h,o){this._bufferService=c,this._logService=h,this._unicodeService=o,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new C.EventEmitter,this._onHideLinkUnderline=new C.EventEmitter,this._onLinkTooltip=new C.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(A.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),A.prototype.attachToDom=function(c,h){this._element=c,this._mouseZoneManager=h},A.prototype.linkifyRows=function(c,h){var o=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=c,this._rowsToLinkify.end=h):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,c),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,h)),this._mouseZoneManager.clearAll(c,h),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return o._linkifyRows()},A._timeBeforeLatency))},A.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var c=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var h=c.ydisp+this._rowsToLinkify.start;if(!(h>=c.lines.length)){for(var o=c.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,h,o,n,n);r.hasNext();)for(var s=r.next(),l=0;l<this._linkMatchers.length;l++)this._doLinkifyRow(s.range.first,s.content,this._linkMatchers[l]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},A.prototype.registerLinkMatcher=function(c,h,o){if(o===void 0&&(o={}),!h)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:c,handler:h,matchIndex:o.matchIndex,validationCallback:o.validationCallback,hoverTooltipCallback:o.tooltipCallback,hoverLeaveCallback:o.leaveCallback,willLinkActivate:o.willLinkActivate,priority:o.priority||0};return this._addLinkMatcherToList(n),n.id},A.prototype._addLinkMatcherToList=function(c){if(this._linkMatchers.length!==0){for(var h=this._linkMatchers.length-1;h>=0;h--)if(c.priority<=this._linkMatchers[h].priority)return void this._linkMatchers.splice(h+1,0,c);this._linkMatchers.splice(0,0,c)}else this._linkMatchers.push(c)},A.prototype.deregisterLinkMatcher=function(c){for(var h=0;h<this._linkMatchers.length;h++)if(this._linkMatchers[h].id===c)return this._linkMatchers.splice(h,1),!0;return!1},A.prototype._doLinkifyRow=function(c,h,o){for(var n,r=this,s=new RegExp(o.regex.source,(o.regex.flags||"")+"g"),l=-1,d=function(){var g=n[typeof o.matchIndex!="number"?0:o.matchIndex];if(!g)return p._logService.debug("match found without corresponding matchIndex",n,o),"break";if(l=h.indexOf(g,l+1),s.lastIndex=l+g.length,l<0)return"break";var m=p._bufferService.buffer.stringIndexToBufferIndex(c,l);if(m[0]<0)return"break";var v=p._bufferService.buffer.lines.get(m[0]);if(!v)return"break";var _=v.getFg(m[1]),O=_?_>>9&511:void 0;o.validationCallback?o.validationCallback(g,function(F){r._rowsTimeoutId||F&&r._addLink(m[1],m[0]-r._bufferService.buffer.ydisp,g,o,O)}):p._addLink(m[1],m[0]-p._bufferService.buffer.ydisp,g,o,O)},p=this;(n=s.exec(h))!==null&&d()!=="break";);},A.prototype._addLink=function(c,h,o,n,r){var s=this;if(this._mouseZoneManager&&this._element){var l=this._unicodeService.getStringCellWidth(o),d=c%this._bufferService.cols,p=h+Math.floor(c/this._bufferService.cols),g=(d+l)%this._bufferService.cols,m=p+Math.floor((d+l)/this._bufferService.cols);g===0&&(g=this._bufferService.cols,m--),this._mouseZoneManager.add(new u(d+1,p+1,g+1,m+1,function(v){if(n.handler)return n.handler(v,o);var _=window.open();_?(_.opener=null,_.location.href=o):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(d,p,g,m,r)),s._element.classList.add("xterm-cursor-pointer")},function(v){s._onLinkTooltip.fire(s._createLinkHoverEvent(d,p,g,m,r)),n.hoverTooltipCallback&&n.hoverTooltipCallback(v,o,{start:{x:d,y:p},end:{x:g,y:m}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(d,p,g,m,r)),s._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(v){return!n.willLinkActivate||n.willLinkActivate(v,o)}))}},A.prototype._createLinkHoverEvent=function(c,h,o,n,r){return{x1:c,y1:h,x2:o,y2:n,cols:this._bufferService.cols,fg:r}},A._timeBeforeLatency=200,A=ie([t(0,b.IBufferService),t(1,b.ILogService),t(2,b.IUnicodeService)],A)}();J.Linkifier=a;var u=function(A,c,h,o,n,r,s,l,d){this.x1=A,this.y1=c,this.x2=h,this.y2=o,this.clickCallback=n,this.hoverCallback=r,this.tooltipCallback=s,this.leaveCallback=l,this.willLinkActivate=d};J.MouseZone=u},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(g,m){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,_){v.__proto__=_}||function(v,_){for(var O in _)_.hasOwnProperty(O)&&(v[O]=_[O])})(g,m)},function(g,m){function v(){this.constructor=g}ie(g,m),g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),C=this&&this.__decorate||function(g,m,v,_){var O,F=arguments.length,T=F<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,v):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(g,m,v,_);else for(var S=g.length-1;S>=0;S--)(O=g[S])&&(T=(F<3?O(T):F>3?O(m,v,T):O(m,v))||T);return F>3&&T&&Object.defineProperty(m,v,T),T},b=this&&this.__param||function(g,m){return function(v,_){m(v,_,g)}};Object.defineProperty(J,"__esModule",{value:!0}),J.SelectionService=void 0;var a=oe(11),u=oe(52),A=oe(4),c=oe(0),h=oe(5),o=oe(1),n=oe(30),r=oe(53),s=oe(2),l="\xA0",d=new RegExp(l,"g"),p=function(g){function m(v,_,O,F,T,S,I){var E=g.call(this)||this;return E._element=v,E._screenElement=_,E._bufferService=O,E._coreService=F,E._mouseService=T,E._optionsService=S,E._renderService=I,E._dragScrollAmount=0,E._enabled=!0,E._workCell=new A.CellData,E._mouseDownTimeStamp=0,E._onLinuxMouseSelection=E.register(new c.EventEmitter),E._onRedrawRequest=E.register(new c.EventEmitter),E._onSelectionChange=E.register(new c.EventEmitter),E._onRequestScrollLines=E.register(new c.EventEmitter),E._mouseMoveListener=function(M){return E._onMouseMove(M)},E._mouseUpListener=function(M){return E._onMouseUp(M)},E._coreService.onUserInput(function(){E.hasSelection&&E.clearSelection()}),E._trimListener=E._bufferService.buffer.lines.onTrim(function(M){return E._onTrim(M)}),E.register(E._bufferService.buffers.onBufferActivate(function(M){return E._onBufferActivate(M)})),E.enable(),E._model=new u.SelectionModel(E._bufferService),E._activeSelectionMode=0,E}return t(m,g),Object.defineProperty(m.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){this._removeMouseDownListeners()},m.prototype.reset=function(){this.clearSelection()},m.prototype.disable=function(){this.clearSelection(),this._enabled=!1},m.prototype.enable=function(){this._enabled=!0},Object.defineProperty(m.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"hasSelection",{get:function(){var v=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!(!v||!_)&&(v[0]!==_[0]||v[1]!==_[1])},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionText",{get:function(){var v=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;if(!v||!_)return"";var O=this._bufferService.buffer,F=[];if(this._activeSelectionMode===3){if(v[0]===_[0])return"";for(var T=v[1];T<=_[1];T++){var S=O.translateBufferLineToString(T,!0,v[0],_[0]);F.push(S)}}else{var I=v[1]===_[1]?_[0]:void 0;for(F.push(O.translateBufferLineToString(v[1],!0,v[0],I)),T=v[1]+1;T<=_[1]-1;T++){var E=O.lines.get(T);S=O.translateBufferLineToString(T,!0),E&&E.isWrapped?F[F.length-1]+=S:F.push(S)}v[1]!==_[1]&&(E=O.lines.get(_[1]),S=O.translateBufferLineToString(_[1],!0,0,_[0]),E&&E.isWrapped?F[F.length-1]+=S:F.push(S))}return F.map(function(M){return M.replace(d," ")}).join(a.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),m.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},m.prototype.refresh=function(v){var _=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return _._refresh()})),a.isLinux&&v&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},m.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},m.prototype.isClickInSelection=function(v){var _=this._getMouseBufferCoords(v),O=this._model.finalSelectionStart,F=this._model.finalSelectionEnd;return!!(O&&F&&_)&&this._areCoordsInSelection(_,O,F)},m.prototype._areCoordsInSelection=function(v,_,O){return v[1]>_[1]&&v[1]<O[1]||_[1]===O[1]&&v[1]===_[1]&&v[0]>=_[0]&&v[0]<O[0]||_[1]<O[1]&&v[1]===O[1]&&v[0]<O[0]||_[1]<O[1]&&v[1]===_[1]&&v[0]>=_[0]},m.prototype.selectWordAtCursor=function(v){var _=this._getMouseBufferCoords(v);_&&(this._selectWordAt(_,!1),this._model.selectionEnd=void 0,this.refresh(!0))},m.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},m.prototype.selectLines=function(v,_){this._model.clearSelection(),v=Math.max(v,0),_=Math.min(_,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,v],this._model.selectionEnd=[this._bufferService.cols,_],this.refresh(),this._onSelectionChange.fire()},m.prototype._onTrim=function(v){this._model.onTrim(v)&&this.refresh()},m.prototype._getMouseBufferCoords=function(v){var _=this._mouseService.getCoords(v,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(_)return _[0]--,_[1]--,_[1]+=this._bufferService.buffer.ydisp,_},m.prototype._getMouseEventScrollAmount=function(v){var _=n.getCoordsRelativeToElement(v,this._screenElement)[1],O=this._renderService.dimensions.canvasHeight;return _>=0&&_<=O?0:(_>O&&(_-=O),_=Math.min(Math.max(_,-50),50),(_/=50)/Math.abs(_)+Math.round(14*_))},m.prototype.shouldForceSelection=function(v){return a.isMac?v.altKey&&this._optionsService.options.macOptionClickForcesSelection:v.shiftKey},m.prototype.onMouseDown=function(v){if(this._mouseDownTimeStamp=v.timeStamp,(v.button!==2||!this.hasSelection)&&v.button===0){if(!this._enabled){if(!this.shouldForceSelection(v))return;v.stopPropagation()}v.preventDefault(),this._dragScrollAmount=0,this._enabled&&v.shiftKey?this._onIncrementalClick(v):v.detail===1?this._onSingleClick(v):v.detail===2?this._onDoubleClick(v):v.detail===3&&this._onTripleClick(v),this._addMouseDownListeners(),this.refresh(!0)}},m.prototype._addMouseDownListeners=function(){var v=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return v._dragScroll()},50)},m.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},m.prototype._onIncrementalClick=function(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))},m.prototype._onSingleClick=function(v){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(v)?3:0,this._model.selectionStart=this._getMouseBufferCoords(v),this._model.selectionStart){this._model.selectionEnd=void 0;var _=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);_&&_.length!==this._model.selectionStart[0]&&_.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},m.prototype._onDoubleClick=function(v){var _=this._getMouseBufferCoords(v);_&&(this._activeSelectionMode=1,this._selectWordAt(_,!0))},m.prototype._onTripleClick=function(v){var _=this._getMouseBufferCoords(v);_&&(this._activeSelectionMode=2,this._selectLineAt(_[1]))},m.prototype.shouldColumnSelect=function(v){return v.altKey&&!(a.isMac&&this._optionsService.options.macOptionClickForcesSelection)},m.prototype._onMouseMove=function(v){if(v.stopImmediatePropagation(),this._model.selectionStart){var _=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(v),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(v),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var O=this._bufferService.buffer;if(this._model.selectionEnd[1]<O.lines.length){var F=O.lines.get(this._model.selectionEnd[1]);F&&F.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}_&&_[0]===this._model.selectionEnd[0]&&_[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},m.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var v=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(v.ydisp+this._bufferService.rows,v.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=v.ydisp),this.refresh()}},m.prototype._onMouseUp=function(v){var _=v.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&_<500&&v.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var O=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(O&&O[0]!==void 0&&O[1]!==void 0){var F=r.moveToCellSequence(O[0]-1,O[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(F,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},m.prototype._onBufferActivate=function(v){var _=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(function(O){return _._onTrim(O)})},m.prototype._convertViewportColToCharacterIndex=function(v,_){for(var O=_[0],F=0;_[0]>=F;F++){var T=v.loadCell(F,this._workCell).getChars().length;this._workCell.getWidth()===0?O--:T>1&&_[0]!==F&&(O+=T-1)}return O},m.prototype.setSelection=function(v,_,O){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,_],this._model.selectionStartLength=O,this.refresh()},m.prototype._getWordAt=function(v,_,O,F){if(O===void 0&&(O=!0),F===void 0&&(F=!0),!(v[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,S=T.lines.get(v[1]);if(S){var I=T.translateBufferLineToString(v[1],!1),E=this._convertViewportColToCharacterIndex(S,v),M=E,N=v[0]-E,V=0,H=0,X=0,G=0;if(I.charAt(E)===" "){for(;E>0&&I.charAt(E-1)===" ";)E--;for(;M<I.length&&I.charAt(M+1)===" ";)M++}else{var ee=v[0],Z=v[0];S.getWidth(ee)===0&&(V++,ee--),S.getWidth(Z)===2&&(H++,Z++);var Ae=S.getString(Z).length;for(Ae>1&&(G+=Ae-1,M+=Ae-1);ee>0&&E>0&&!this._isCharWordSeparator(S.loadCell(ee-1,this._workCell));){S.loadCell(ee-1,this._workCell);var U=this._workCell.getChars().length;this._workCell.getWidth()===0?(V++,ee--):U>1&&(X+=U-1,E-=U-1),E--,ee--}for(;Z<S.length&&M+1<I.length&&!this._isCharWordSeparator(S.loadCell(Z+1,this._workCell));){S.loadCell(Z+1,this._workCell);var W=this._workCell.getChars().length;this._workCell.getWidth()===2?(H++,Z++):W>1&&(G+=W-1,M+=W-1),M++,Z++}}M++;var le=E+N-V+X,he=Math.min(this._bufferService.cols,M-E+V+H-X-G);if(_||I.slice(E,M).trim()!==""){if(O&&le===0&&S.getCodePoint(0)!==32){var ue=T.lines.get(v[1]-1);if(ue&&S.isWrapped&&ue.getCodePoint(this._bufferService.cols-1)!==32){var pe=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(pe){var fe=this._bufferService.cols-pe.start;le-=fe,he+=fe}}}if(F&&le+he===this._bufferService.cols&&S.getCodePoint(this._bufferService.cols-1)!==32){var ce=T.lines.get(v[1]+1);if(ce&&ce.isWrapped&&ce.getCodePoint(0)!==32){var be=this._getWordAt([0,v[1]+1],!1,!1,!0);be&&(he+=be.length)}}return{start:le,length:he}}}}},m.prototype._selectWordAt=function(v,_){var O=this._getWordAt(v,_);if(O){for(;O.start<0;)O.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[O.start,v[1]],this._model.selectionStartLength=O.length}},m.prototype._selectToWordAt=function(v){var _=this._getWordAt(v,!0);if(_){for(var O=v[1];_.start<0;)_.start+=this._bufferService.cols,O--;if(!this._model.areSelectionValuesReversed())for(;_.start+_.length>this._bufferService.cols;)_.length-=this._bufferService.cols,O++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?_.start:_.start+_.length,O]}},m.prototype._isCharWordSeparator=function(v){return v.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(v.getChars())>=0},m.prototype._selectLineAt=function(v){var _=this._bufferService.buffer.getWrappedRangeForLine(v);this._model.selectionStart=[0,_.first],this._model.selectionEnd=[this._bufferService.cols,_.last],this._model.selectionStartLength=0},m=C([b(2,o.IBufferService),b(3,o.ICoreService),b(4,h.IMouseService),b(5,o.IOptionsService),b(6,h.IRenderService)],m)}(s.Disposable);J.SelectionService=p},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.SelectionModel=void 0;var ie=function(){function t(C){this._bufferService=C,this.isSelectAllActive=!1,this.selectionStartLength=0}return t.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(t.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var C=this.selectionStart[0]+this.selectionStartLength;return C>this._bufferService.cols?[C%this._bufferService.cols,this.selectionStart[1]+Math.floor(C/this._bufferService.cols)]:[C,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),t.prototype.areSelectionValuesReversed=function(){var C=this.selectionStart,b=this.selectionEnd;return!(!C||!b)&&(C[1]>b[1]||C[1]===b[1]&&C[0]>b[0])},t.prototype.onTrim=function(C){return this.selectionStart&&(this.selectionStart[1]-=C),this.selectionEnd&&(this.selectionEnd[1]-=C),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},t}();J.SelectionModel=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.moveToCellSequence=void 0;var ie=oe(12);function t(c,h,o,n){var r=c-C(o,c),s=h-C(o,h);return A(Math.abs(r-s)-function(l,d,p){for(var g=0,m=l-C(p,l),v=d-C(p,d),_=0;_<Math.abs(m-v);_++){var O=b(l,d)==="A"?-1:1,F=p.buffer.lines.get(m+O*_);F&&F.isWrapped&&g++}return g}(c,h,o),u(b(c,h),n))}function C(c,h){for(var o=0,n=c.buffer.lines.get(h),r=n&&n.isWrapped;r&&h>=0&&h<c.rows;)o++,r=(n=c.buffer.lines.get(--h))&&n.isWrapped;return o}function b(c,h){return c>h?"A":"B"}function a(c,h,o,n,r,s){for(var l=c,d=h,p="";l!==o||d!==n;)l+=r?1:-1,r&&l>s.cols-1?(p+=s.buffer.translateBufferLineToString(d,!1,c,l),l=0,c=0,d++):!r&&l<0&&(p+=s.buffer.translateBufferLineToString(d,!1,0,c+1),c=l=s.cols-1,d--);return p+s.buffer.translateBufferLineToString(d,!1,c,l)}function u(c,h){var o=h?"O":"[";return ie.C0.ESC+o+c}function A(c,h){c=Math.floor(c);for(var o="",n=0;n<c;n++)o+=h;return o}J.moveToCellSequence=function(c,h,o,n){var r,s=o.buffer.x,l=o.buffer.y;if(!o.buffer.hasScrollback)return function(p,g,m,v,_,O){return t(g,v,_,O).length===0?"":A(a(p,g,p,g-C(_,g),!1,_).length,u("D",O))}(s,l,0,h,o,n)+t(l,h,o,n)+function(p,g,m,v,_,O){var F;F=t(g,v,_,O).length>0?v-C(_,v):g;var T=v,S=function(I,E,M,N,V,H){var X;return X=t(M,N,V,H).length>0?N-C(V,N):E,I<M&&X<=N||I>=M&&X<N?"C":"D"}(p,g,m,v,_,O);return A(a(p,F,m,T,S==="C",_).length,u(S,O))}(s,l,c,h,o,n);if(l===h)return r=s>c?"D":"C",A(Math.abs(s-c),u(r,n));r=l>h?"D":"C";var d=Math.abs(l-h);return A(function(p,g){return g.cols-p}(l>h?c:s,o)+(d-1)*o.cols+1+((l>h?s:c)-1),u(r,n))}},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(a,u,A,c){var h,o=arguments.length,n=o<3?u:c===null?c=Object.getOwnPropertyDescriptor(u,A):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,u,A,c);else for(var r=a.length-1;r>=0;r--)(h=a[r])&&(n=(o<3?h(n):o>3?h(u,A,n):h(u,A))||n);return o>3&&n&&Object.defineProperty(u,A,n),n},t=this&&this.__param||function(a,u){return function(A,c){u(A,c,a)}};Object.defineProperty(J,"__esModule",{value:!0}),J.SoundService=void 0;var C=oe(1),b=function(){function a(u){this._optionsService=u}return Object.defineProperty(a,"audioContext",{get:function(){if(!a._audioContext){var u=window.AudioContext||window.webkitAudioContext;if(!u)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;a._audioContext=new u}return a._audioContext},enumerable:!1,configurable:!0}),a.prototype.playBellSound=function(){var u=a.audioContext;if(u){var A=u.createBufferSource();u.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(c){A.buffer=c,A.connect(u.destination),A.start(0)})}},a.prototype._base64ToArrayBuffer=function(u){for(var A=window.atob(u),c=A.length,h=new Uint8Array(c),o=0;o<c;o++)h[o]=A.charCodeAt(o);return h.buffer},a.prototype._removeMimeType=function(u){return u.split(",")[1]},a=ie([t(0,C.IOptionsService)],a)}();J.SoundService=b},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}),C=this&&this.__decorate||function(o,n,r,s){var l,d=arguments.length,p=d<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,n,r,s);else for(var g=o.length-1;g>=0;g--)(l=o[g])&&(p=(d<3?l(p):d>3?l(n,r,p):l(n,r))||p);return d>3&&p&&Object.defineProperty(n,r,p),p},b=this&&this.__param||function(o,n){return function(r,s){n(r,s,o)}};Object.defineProperty(J,"__esModule",{value:!0}),J.MouseZoneManager=void 0;var a=oe(2),u=oe(7),A=oe(5),c=oe(1),h=function(o){function n(r,s,l,d,p,g){var m=o.call(this)||this;return m._element=r,m._screenElement=s,m._bufferService=l,m._mouseService=d,m._selectionService=p,m._optionsService=g,m._zones=[],m._areZonesActive=!1,m._lastHoverCoords=[void 0,void 0],m._initialSelectionLength=0,m.register(u.addDisposableDomListener(m._element,"mousedown",function(v){return m._onMouseDown(v)})),m._mouseMoveListener=function(v){return m._onMouseMove(v)},m._mouseLeaveListener=function(v){return m._onMouseLeave(v)},m._clickListener=function(v){return m._onClick(v)},m}return t(n,o),n.prototype.dispose=function(){o.prototype.dispose.call(this),this._deactivate()},n.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},n.prototype.clearAll=function(r,s){if(this._zones.length!==0){r&&s||(r=0,s=this._bufferService.rows-1);for(var l=0;l<this._zones.length;l++){var d=this._zones[l];(d.y1>r&&d.y1<=s+1||d.y2>r&&d.y2<=s+1||d.y1<r&&d.y2>s+1)&&(this._currentZone&&this._currentZone===d&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(l--,1))}this._zones.length===0&&this._deactivate()}},n.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},n.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},n.prototype._onMouseMove=function(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},n.prototype._onHover=function(r){var s=this,l=this._findZoneEventAt(r);l!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),l&&(this._currentZone=l,l.hoverCallback&&l.hoverCallback(r),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},n.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(r);s&&s.tooltipCallback&&s.tooltipCallback(r)},n.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(r);s!=null&&s.willLinkActivate(r)&&(r.preventDefault(),r.stopImmediatePropagation())}},n.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},n.prototype._onClick=function(r){var s=this._findZoneEventAt(r),l=this._getSelectionLength();s&&l===this._initialSelectionLength&&(s.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},n.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},n.prototype._findZoneEventAt=function(r){var s=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var l=s[0],d=s[1],p=0;p<this._zones.length;p++){var g=this._zones[p];if(g.y1===g.y2){if(d===g.y1&&l>=g.x1&&l<g.x2)return g}else if(d===g.y1&&l>=g.x1||d===g.y2&&l<g.x2||d>g.y1&&d<g.y2)return g}},n=C([b(2,c.IBufferService),b(3,A.IMouseService),b(4,A.ISelectionService),b(5,c.IOptionsService)],n)}(a.Disposable);J.MouseZoneManager=h},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(n,r){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(n,r)},function(n,r){function s(){this.constructor=n}ie(n,r),n.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)});Object.defineProperty(J,"__esModule",{value:!0}),J.AccessibilityManager=void 0;var C=oe(18),b=oe(11),a=oe(31),u=oe(7),A=oe(2),c=oe(32),h=oe(17),o=function(n){function r(s,l){var d=n.call(this)||this;d._terminal=s,d._renderService=l,d._liveRegionLineCount=0,d._charsToConsume=[],d._charsToAnnounce="",d._accessibilityTreeRoot=document.createElement("div"),d._accessibilityTreeRoot.classList.add("xterm-accessibility"),d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-accessibility-tree"),d._rowContainer.setAttribute("role","list"),d._rowElements=[];for(var p=0;p<d._terminal.rows;p++)d._rowElements[p]=d._createAccessibilityTreeNode(),d._rowContainer.appendChild(d._rowElements[p]);if(d._topBoundaryFocusListener=function(g){return d._onBoundaryFocus(g,0)},d._bottomBoundaryFocusListener=function(g){return d._onBoundaryFocus(g,1)},d._rowElements[0].addEventListener("focus",d._topBoundaryFocusListener),d._rowElements[d._rowElements.length-1].addEventListener("focus",d._bottomBoundaryFocusListener),d._refreshRowsDimensions(),d._accessibilityTreeRoot.appendChild(d._rowContainer),d._renderRowsDebouncer=new a.RenderDebouncer(d._renderRows.bind(d)),d._refreshRows(),d._liveRegion=document.createElement("div"),d._liveRegion.classList.add("live-region"),d._liveRegion.setAttribute("aria-live","assertive"),d._accessibilityTreeRoot.appendChild(d._liveRegion),!d._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return d._terminal.element.insertAdjacentElement("afterbegin",d._accessibilityTreeRoot),d.register(d._renderRowsDebouncer),d.register(d._terminal.onResize(function(g){return d._onResize(g.rows)})),d.register(d._terminal.onRender(function(g){return d._refreshRows(g.start,g.end)})),d.register(d._terminal.onScroll(function(){return d._refreshRows()})),d.register(d._terminal.onA11yChar(function(g){return d._onChar(g)})),d.register(d._terminal.onLineFeed(function(){return d._onChar(`
|
|
|
`)})),d.register(d._terminal.onA11yTab(function(g){return d._onTab(g)})),d.register(d._terminal.onKey(function(g){return d._onKey(g.key)})),d.register(d._terminal.onBlur(function(){return d._clearLiveRegion()})),d.register(d._renderService.onDimensionsChange(function(){return d._refreshRowsDimensions()})),d._screenDprMonitor=new c.ScreenDprMonitor,d.register(d._screenDprMonitor),d._screenDprMonitor.setListener(function(){return d._refreshRowsDimensions()}),d.register(u.addDisposableDomListener(window,"resize",function(){return d._refreshRowsDimensions()})),d}return t(r,n),r.prototype.dispose=function(){n.prototype.dispose.call(this),h.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,l){var d=s.target,p=this._rowElements[l===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")!==(l===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===p){var g,m;if(l===0?(g=d,m=this._rowElements.pop(),this._rowContainer.removeChild(m)):(g=this._rowElements.shift(),m=d,this._rowContainer.removeChild(g)),g.removeEventListener("focus",this._topBoundaryFocusListener),m.removeEventListener("focus",this._bottomBoundaryFocusListener),l===0){var v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else v=this._createAccessibilityTreeNode(),this._rowElements.push(v),this._rowContainer.appendChild(v);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(l===0?-1:1),this._rowElements[l===0?1:this._rowElements.length-2].focus(),s.preventDefault(),s.stopImmediatePropagation()}},r.prototype._onResize=function(s){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var l=this._rowContainer.children.length;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);for(;this._rowElements.length>s;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},r.prototype._onTab=function(s){for(var l=0;l<s;l++)this._onChar(" ")},r.prototype._onChar=function(s){var l=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=C.tooMuchOutput)),b.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){l._accessibilityTreeRoot.appendChild(l._liveRegion)},0))},r.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,b.isMac&&h.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},r.prototype._refreshRows=function(s,l){this._renderRowsDebouncer.refresh(s,l,this._terminal.rows)},r.prototype._renderRows=function(s,l){for(var d=this._terminal.buffer,p=d.lines.length.toString(),g=s;g<=l;g++){var m=d.translateBufferLineToString(d.ydisp+g,!0),v=(d.ydisp+g+1).toString(),_=this._rowElements[g];_&&(m.length===0?_.innerHTML=" ":_.textContent=m,_.setAttribute("aria-posinset",v),_.setAttribute("aria-setsize",p))}this._announceCharacters()},r.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s<this._terminal.rows;s++)this._refreshRowDimensions(this._rowElements[s])}},r.prototype._refreshRowDimensions=function(s){s.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(A.Disposable);J.AccessibilityManager=o},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(d,p){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)m.hasOwnProperty(v)&&(g[v]=m[v])})(d,p)},function(d,p){function g(){this.constructor=d}ie(d,p),d.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),C=this&&this.__decorate||function(d,p,g,m){var v,_=arguments.length,O=_<3?p:m===null?m=Object.getOwnPropertyDescriptor(p,g):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(d,p,g,m);else for(var F=d.length-1;F>=0;F--)(v=d[F])&&(O=(_<3?v(O):_>3?v(p,g,O):v(p,g))||O);return _>3&&O&&Object.defineProperty(p,g,O),O},b=this&&this.__param||function(d,p){return function(g,m){p(g,m,d)}};Object.defineProperty(J,"__esModule",{value:!0}),J.DomRenderer=void 0;var a=oe(58),u=oe(9),A=oe(2),c=oe(5),h=oe(1),o=oe(0),n=oe(10),r=oe(17),s=1,l=function(d){function p(g,m,v,_,O,F,T,S,I){var E=d.call(this)||this;return E._colors=g,E._element=m,E._screenElement=v,E._viewportElement=_,E._linkifier=O,E._linkifier2=F,E._charSizeService=T,E._optionsService=S,E._bufferService=I,E._terminalClass=s++,E._rowElements=[],E._rowContainer=document.createElement("div"),E._rowContainer.classList.add("xterm-rows"),E._rowContainer.style.lineHeight="normal",E._rowContainer.setAttribute("aria-hidden","true"),E._refreshRowElements(E._bufferService.cols,E._bufferService.rows),E._selectionContainer=document.createElement("div"),E._selectionContainer.classList.add("xterm-selection"),E._selectionContainer.setAttribute("aria-hidden","true"),E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._updateDimensions(),E._injectCss(),E._rowFactory=new a.DomRendererRowFactory(document,E._optionsService,E._colors),E._element.classList.add("xterm-dom-renderer-owner-"+E._terminalClass),E._screenElement.appendChild(E._rowContainer),E._screenElement.appendChild(E._selectionContainer),E._linkifier.onShowLinkUnderline(function(M){return E._onLinkHover(M)}),E._linkifier.onHideLinkUnderline(function(M){return E._onLinkLeave(M)}),E._linkifier2.onShowLinkUnderline(function(M){return E._onLinkHover(M)}),E._linkifier2.onHideLinkUnderline(function(M){return E._onLinkLeave(M)}),E}return t(p,d),Object.defineProperty(p.prototype,"onRequestRedraw",{get:function(){return new o.EventEmitter().event},enumerable:!1,configurable:!0}),p.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),r.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),d.prototype.dispose.call(this)},p.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var g=0,m=this._rowElements;g<m.length;g++){var v=m[g];v.style.width=this.dimensions.canvasWidth+"px",v.style.height=this.dimensions.actualCellHeight+"px",v.style.lineHeight=this.dimensions.actualCellHeight+"px",v.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var _=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=_,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},p.prototype.setColors=function(g){this._colors=g,this._injectCss()},p.prototype._injectCss=function(){var g=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var m=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";m+=this._terminalSelector+" span:not(."+a.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+a.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+a.ITALIC_CLASS+" { font-style: italic;}",m+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",m+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",m+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+":not(."+a.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",m+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(v,_){m+=g._terminalSelector+" .xterm-fg-"+_+" { color: "+v.css+"; }"+g._terminalSelector+" .xterm-bg-"+_+" { background-color: "+v.css+"; }"}),m+=this._terminalSelector+" .xterm-fg-"+u.INVERTED_DEFAULT_COLOR+" { color: "+n.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+u.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=m},p.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},p.prototype._refreshRowElements=function(g,m){for(var v=this._rowElements.length;v<=m;v++){var _=document.createElement("div");this._rowContainer.appendChild(_),this._rowElements.push(_)}for(;this._rowElements.length>m;)this._rowContainer.removeChild(this._rowElements.pop())},p.prototype.onResize=function(g,m){this._refreshRowElements(g,m),this._updateDimensions()},p.prototype.onCharSizeChanged=function(){this._updateDimensions()},p.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},p.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},p.prototype.onSelectionChanged=function(g,m,v){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(g&&m){var _=g[1]-this._bufferService.buffer.ydisp,O=m[1]-this._bufferService.buffer.ydisp,F=Math.max(_,0),T=Math.min(O,this._bufferService.rows-1);if(!(F>=this._bufferService.rows||T<0)){var S=document.createDocumentFragment();if(v)S.appendChild(this._createSelectionElement(F,g[0],m[0],T-F+1));else{var I=_===F?g[0]:0,E=F===T?m[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(F,I,E));var M=T-F-1;if(S.appendChild(this._createSelectionElement(F+1,0,this._bufferService.cols,M)),F!==T){var N=O===T?m[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(T,0,N))}}this._selectionContainer.appendChild(S)}}},p.prototype._createSelectionElement=function(g,m,v,_){_===void 0&&(_=1);var O=document.createElement("div");return O.style.height=_*this.dimensions.actualCellHeight+"px",O.style.top=g*this.dimensions.actualCellHeight+"px",O.style.left=m*this.dimensions.actualCellWidth+"px",O.style.width=this.dimensions.actualCellWidth*(v-m)+"px",O},p.prototype.onCursorMove=function(){},p.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},p.prototype.clear=function(){for(var g=0,m=this._rowElements;g<m.length;g++)m[g].innerHTML=""},p.prototype.renderRows=function(g,m){for(var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,_=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),O=this._optionsService.options.cursorBlink,F=g;F<=m;F++){var T=this._rowElements[F];T.innerHTML="";var S=F+this._bufferService.buffer.ydisp,I=this._bufferService.buffer.lines.get(S),E=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(I,S===v,E,_,O,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(p.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),p.prototype.registerCharacterJoiner=function(g){return-1},p.prototype.deregisterCharacterJoiner=function(g){return!1},p.prototype._onLinkHover=function(g){this._setCellUnderline(g.x1,g.x2,g.y1,g.y2,g.cols,!0)},p.prototype._onLinkLeave=function(g){this._setCellUnderline(g.x1,g.x2,g.y1,g.y2,g.cols,!1)},p.prototype._setCellUnderline=function(g,m,v,_,O,F){for(;g!==m||v!==_;){var T=this._rowElements[v];if(!T)return;var S=T.children[g];S&&(S.style.textDecoration=F?"underline":"none"),++g>=O&&(g=0,v++)}},p=C([b(6,c.ICharSizeService),b(7,h.IOptionsService),b(8,h.IBufferService)],p)}(A.Disposable);J.DomRenderer=l},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.DomRendererRowFactory=J.CURSOR_STYLE_UNDERLINE_CLASS=J.CURSOR_STYLE_BAR_CLASS=J.CURSOR_STYLE_BLOCK_CLASS=J.CURSOR_BLINK_CLASS=J.CURSOR_CLASS=J.UNDERLINE_CLASS=J.ITALIC_CLASS=J.DIM_CLASS=J.BOLD_CLASS=void 0;var ie=oe(9),t=oe(3),C=oe(4),b=oe(10);J.BOLD_CLASS="xterm-bold",J.DIM_CLASS="xterm-dim",J.ITALIC_CLASS="xterm-italic",J.UNDERLINE_CLASS="xterm-underline",J.CURSOR_CLASS="xterm-cursor",J.CURSOR_BLINK_CLASS="xterm-cursor-blink",J.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",J.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",J.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var a=function(){function A(c,h,o){this._document=c,this._optionsService=h,this._colors=o,this._workCell=new C.CellData}return A.prototype.setColors=function(c){this._colors=c},A.prototype.createRow=function(c,h,o,n,r,s,l){for(var d=this._document.createDocumentFragment(),p=0,g=Math.min(c.length,l)-1;g>=0;g--)if(c.loadCell(g,this._workCell).getCode()!==t.NULL_CELL_CODE||h&&g===n){p=g+1;break}for(g=0;g<p;g++){c.loadCell(g,this._workCell);var m=this._workCell.getWidth();if(m!==0){var v=this._document.createElement("span");if(m>1&&(v.style.width=s*m+"px"),h&&g===n)switch(v.classList.add(J.CURSOR_CLASS),r&&v.classList.add(J.CURSOR_BLINK_CLASS),o){case"bar":v.classList.add(J.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(J.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(J.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(J.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(J.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(J.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(J.UNDERLINE_CLASS),this._workCell.isInvisible()?v.textContent=t.WHITESPACE_CELL_CHAR:v.textContent=this._workCell.getChars()||t.WHITESPACE_CELL_CHAR;var _=this._workCell.getFgColor(),O=this._workCell.getFgColorMode(),F=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),S=!!this._workCell.isInverse();if(S){var I=_;_=F,F=I;var E=O;O=T,T=E}switch(O){case 16777216:case 33554432:this._workCell.isBold()&&_<8&&this._optionsService.options.drawBoldTextInBrightColors&&(_+=8),this._applyMinimumContrast(v,this._colors.background,this._colors.ansi[_])||v.classList.add("xterm-fg-"+_);break;case 50331648:var M=b.rgba.toColor(_>>16&255,_>>8&255,255&_);this._applyMinimumContrast(v,this._colors.background,M)||this._addStyle(v,"color:#"+u(_.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(v,this._colors.background,this._colors.foreground)||S&&v.classList.add("xterm-fg-"+ie.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:v.classList.add("xterm-bg-"+F);break;case 50331648:this._addStyle(v,"background-color:#"+u(F.toString(16),"0",6));break;case 0:default:S&&v.classList.add("xterm-bg-"+ie.INVERTED_DEFAULT_COLOR)}d.appendChild(v)}}return d},A.prototype._applyMinimumContrast=function(c,h,o){if(this._optionsService.options.minimumContrastRatio===1)return!1;var n=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return n===void 0&&(n=b.color.ensureContrastRatio(h,o,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,n!=null?n:null)),!!n&&(this._addStyle(c,"color:"+n.css),!0)},A.prototype._addStyle=function(c,h){c.setAttribute("style",""+(c.getAttribute("style")||"")+h+";")},A}();function u(A,c,h){for(;A.length<h;)A=c+A;return A}J.DomRendererRowFactory=a},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.evaluateKeyboardEvent=void 0;var ie=oe(12),t={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};J.evaluateKeyboardEvent=function(C,b,a,u){var A={type:0,cancel:!1,key:void 0},c=(C.shiftKey?1:0)|(C.altKey?2:0)|(C.ctrlKey?4:0)|(C.metaKey?8:0);switch(C.keyCode){case 0:C.key==="UIKeyInputUpArrow"?A.key=b?ie.C0.ESC+"OA":ie.C0.ESC+"[A":C.key==="UIKeyInputLeftArrow"?A.key=b?ie.C0.ESC+"OD":ie.C0.ESC+"[D":C.key==="UIKeyInputRightArrow"?A.key=b?ie.C0.ESC+"OC":ie.C0.ESC+"[C":C.key==="UIKeyInputDownArrow"&&(A.key=b?ie.C0.ESC+"OB":ie.C0.ESC+"[B");break;case 8:if(C.shiftKey){A.key=ie.C0.BS;break}if(C.altKey){A.key=ie.C0.ESC+ie.C0.DEL;break}A.key=ie.C0.DEL;break;case 9:if(C.shiftKey){A.key=ie.C0.ESC+"[Z";break}A.key=ie.C0.HT,A.cancel=!0;break;case 13:A.key=C.altKey?ie.C0.ESC+ie.C0.CR:ie.C0.CR,A.cancel=!0;break;case 27:A.key=ie.C0.ESC,C.altKey&&(A.key=ie.C0.ESC+ie.C0.ESC),A.cancel=!0;break;case 37:if(C.metaKey)break;c?(A.key=ie.C0.ESC+"[1;"+(c+1)+"D",A.key===ie.C0.ESC+"[1;3D"&&(A.key=ie.C0.ESC+(a?"b":"[1;5D"))):A.key=b?ie.C0.ESC+"OD":ie.C0.ESC+"[D";break;case 39:if(C.metaKey)break;c?(A.key=ie.C0.ESC+"[1;"+(c+1)+"C",A.key===ie.C0.ESC+"[1;3C"&&(A.key=ie.C0.ESC+(a?"f":"[1;5C"))):A.key=b?ie.C0.ESC+"OC":ie.C0.ESC+"[C";break;case 38:if(C.metaKey)break;c?(A.key=ie.C0.ESC+"[1;"+(c+1)+"A",a||A.key!==ie.C0.ESC+"[1;3A"||(A.key=ie.C0.ESC+"[1;5A")):A.key=b?ie.C0.ESC+"OA":ie.C0.ESC+"[A";break;case 40:if(C.metaKey)break;c?(A.key=ie.C0.ESC+"[1;"+(c+1)+"B",a||A.key!==ie.C0.ESC+"[1;3B"||(A.key=ie.C0.ESC+"[1;5B")):A.key=b?ie.C0.ESC+"OB":ie.C0.ESC+"[B";break;case 45:C.shiftKey||C.ctrlKey||(A.key=ie.C0.ESC+"[2~");break;case 46:A.key=c?ie.C0.ESC+"[3;"+(c+1)+"~":ie.C0.ESC+"[3~";break;case 36:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"H":b?ie.C0.ESC+"OH":ie.C0.ESC+"[H";break;case 35:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"F":b?ie.C0.ESC+"OF":ie.C0.ESC+"[F";break;case 33:C.shiftKey?A.type=2:A.key=ie.C0.ESC+"[5~";break;case 34:C.shiftKey?A.type=3:A.key=ie.C0.ESC+"[6~";break;case 112:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"P":ie.C0.ESC+"OP";break;case 113:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"Q":ie.C0.ESC+"OQ";break;case 114:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"R":ie.C0.ESC+"OR";break;case 115:A.key=c?ie.C0.ESC+"[1;"+(c+1)+"S":ie.C0.ESC+"OS";break;case 116:A.key=c?ie.C0.ESC+"[15;"+(c+1)+"~":ie.C0.ESC+"[15~";break;case 117:A.key=c?ie.C0.ESC+"[17;"+(c+1)+"~":ie.C0.ESC+"[17~";break;case 118:A.key=c?ie.C0.ESC+"[18;"+(c+1)+"~":ie.C0.ESC+"[18~";break;case 119:A.key=c?ie.C0.ESC+"[19;"+(c+1)+"~":ie.C0.ESC+"[19~";break;case 120:A.key=c?ie.C0.ESC+"[20;"+(c+1)+"~":ie.C0.ESC+"[20~";break;case 121:A.key=c?ie.C0.ESC+"[21;"+(c+1)+"~":ie.C0.ESC+"[21~";break;case 122:A.key=c?ie.C0.ESC+"[23;"+(c+1)+"~":ie.C0.ESC+"[23~";break;case 123:A.key=c?ie.C0.ESC+"[24;"+(c+1)+"~":ie.C0.ESC+"[24~";break;default:if(!C.ctrlKey||C.shiftKey||C.altKey||C.metaKey)if(a&&!u||!C.altKey||C.metaKey)a&&!C.altKey&&!C.ctrlKey&&C.metaKey?C.keyCode===65&&(A.type=1):C.key&&!C.ctrlKey&&!C.altKey&&!C.metaKey&&C.keyCode>=48&&C.key.length===1?A.key=C.key:C.key&&C.ctrlKey&&C.key==="_"&&(A.key=ie.C0.US);else{var h=t[C.keyCode],o=h&&h[C.shiftKey?1:0];if(o)A.key=ie.C0.ESC+o;else if(C.keyCode>=65&&C.keyCode<=90){var n=C.ctrlKey?C.keyCode-64:C.keyCode+32;A.key=ie.C0.ESC+String.fromCharCode(n)}}else C.keyCode>=65&&C.keyCode<=90?A.key=String.fromCharCode(C.keyCode-64):C.keyCode===32?A.key=ie.C0.NUL:C.keyCode>=51&&C.keyCode<=55?A.key=String.fromCharCode(C.keyCode-51+27):C.keyCode===56?A.key=ie.C0.DEL:C.keyCode===219?A.key=ie.C0.ESC:C.keyCode===220?A.key=ie.C0.FS:C.keyCode===221&&(A.key=ie.C0.GS)}return A}},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(s,l){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var g in p)p.hasOwnProperty(g)&&(d[g]=p[g])})(s,l)},function(s,l){function d(){this.constructor=s}ie(s,l),s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),C=this&&this.__decorate||function(s,l,d,p){var g,m=arguments.length,v=m<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,d):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,l,d,p);else for(var _=s.length-1;_>=0;_--)(g=s[_])&&(v=(m<3?g(v):m>3?g(l,d,v):g(l,d))||v);return m>3&&v&&Object.defineProperty(l,d,v),v},b=this&&this.__param||function(s,l){return function(d,p){l(d,p,s)}};Object.defineProperty(J,"__esModule",{value:!0}),J.RenderService=void 0;var a=oe(31),u=oe(0),A=oe(2),c=oe(32),h=oe(7),o=oe(1),n=oe(5),r=function(s){function l(d,p,g,m,v,_){var O=s.call(this)||this;if(O._renderer=d,O._rowCount=p,O._isPaused=!1,O._needsFullRefresh=!1,O._isNextRenderRedrawOnly=!0,O._needsSelectionRefresh=!1,O._canvasWidth=0,O._canvasHeight=0,O._selectionState={start:void 0,end:void 0,columnSelectMode:!1},O._onDimensionsChange=new u.EventEmitter,O._onRender=new u.EventEmitter,O._onRefreshRequest=new u.EventEmitter,O.register({dispose:function(){return O._renderer.dispose()}}),O._renderDebouncer=new a.RenderDebouncer(function(T,S){return O._renderRows(T,S)}),O.register(O._renderDebouncer),O._screenDprMonitor=new c.ScreenDprMonitor,O._screenDprMonitor.setListener(function(){return O.onDevicePixelRatioChange()}),O.register(O._screenDprMonitor),O.register(_.onResize(function(T){return O._fullRefresh()})),O.register(m.onOptionChange(function(){return O._renderer.onOptionsChanged()})),O.register(v.onCharSizeChange(function(){return O.onCharSizeChanged()})),O._renderer.onRequestRedraw(function(T){return O.refreshRows(T.start,T.end,!0)}),O.register(h.addDisposableDomListener(window,"resize",function(){return O.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var F=new IntersectionObserver(function(T){return O._onIntersectionChange(T[T.length-1])},{threshold:0});F.observe(g),O.register({dispose:function(){return F.disconnect()}})}return O}return t(l,s),Object.defineProperty(l.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),l.prototype._onIntersectionChange=function(d){this._isPaused=d.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},l.prototype.refreshRows=function(d,p,g){g===void 0&&(g=!1),this._isPaused?this._needsFullRefresh=!0:(g||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,p,this._rowCount))},l.prototype._renderRows=function(d,p){this._renderer.renderRows(d,p),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:d,end:p}),this._isNextRenderRedrawOnly=!0},l.prototype.resize=function(d,p){this._rowCount=p,this._fireOnCanvasResize()},l.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},l.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},l.prototype.dispose=function(){s.prototype.dispose.call(this)},l.prototype.setRenderer=function(d){var p=this;this._renderer.dispose(),this._renderer=d,this._renderer.onRequestRedraw(function(g){return p.refreshRows(g.start,g.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},l.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},l.prototype.setColors=function(d){this._renderer.setColors(d),this._fullRefresh()},l.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},l.prototype.onResize=function(d,p){this._renderer.onResize(d,p),this._fullRefresh()},l.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},l.prototype.onBlur=function(){this._renderer.onBlur()},l.prototype.onFocus=function(){this._renderer.onFocus()},l.prototype.onSelectionChanged=function(d,p,g){this._selectionState.start=d,this._selectionState.end=p,this._selectionState.columnSelectMode=g,this._renderer.onSelectionChanged(d,p,g)},l.prototype.onCursorMove=function(){this._renderer.onCursorMove()},l.prototype.clear=function(){this._renderer.clear()},l.prototype.registerCharacterJoiner=function(d){return this._renderer.registerCharacterJoiner(d)},l.prototype.deregisterCharacterJoiner=function(d){return this._renderer.deregisterCharacterJoiner(d)},l=C([b(3,o.IOptionsService),b(4,n.ICharSizeService),b(5,o.IBufferService)],l)}(A.Disposable);J.RenderService=r},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(A,c,h,o){var n,r=arguments.length,s=r<3?c:o===null?o=Object.getOwnPropertyDescriptor(c,h):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(A,c,h,o);else for(var l=A.length-1;l>=0;l--)(n=A[l])&&(s=(r<3?n(s):r>3?n(c,h,s):n(c,h))||s);return r>3&&s&&Object.defineProperty(c,h,s),s},t=this&&this.__param||function(A,c){return function(h,o){c(h,o,A)}};Object.defineProperty(J,"__esModule",{value:!0}),J.CharSizeService=void 0;var C=oe(1),b=oe(0),a=function(){function A(c,h,o){this._optionsService=o,this.width=0,this.height=0,this._onCharSizeChange=new b.EventEmitter,this._measureStrategy=new u(c,h,this._optionsService)}return Object.defineProperty(A.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),A.prototype.measure=function(){var c=this._measureStrategy.measure();c.width===this.width&&c.height===this.height||(this.width=c.width,this.height=c.height,this._onCharSizeChange.fire())},A=ie([t(2,C.IOptionsService)],A)}();J.CharSizeService=a;var u=function(){function A(c,h,o){this._document=c,this._parentElement=h,this._optionsService=o,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return A.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var c=this._measureElement.getBoundingClientRect();return c.width!==0&&c.height!==0&&(this._result.width=c.width,this._result.height=Math.ceil(c.height)),this._result},A}()},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(u,A,c,h){var o,n=arguments.length,r=n<3?A:h===null?h=Object.getOwnPropertyDescriptor(A,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,A,c,h);else for(var s=u.length-1;s>=0;s--)(o=u[s])&&(r=(n<3?o(r):n>3?o(A,c,r):o(A,c))||r);return n>3&&r&&Object.defineProperty(A,c,r),r},t=this&&this.__param||function(u,A){return function(c,h){A(c,h,u)}};Object.defineProperty(J,"__esModule",{value:!0}),J.MouseService=void 0;var C=oe(5),b=oe(30),a=function(){function u(A,c){this._renderService=A,this._charSizeService=c}return u.prototype.getCoords=function(A,c,h,o,n){return b.getCoords(A,c,h,o,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},u.prototype.getRawByteCoords=function(A,c,h,o){var n=this.getCoords(A,c,h,o);return b.getRawByteCoords(n)},u=ie([t(0,C.IRenderService),t(1,C.ICharSizeService)],u)}();J.MouseService=a},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}),C=this&&this.__decorate||function(o,n,r,s){var l,d=arguments.length,p=d<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,n,r,s);else for(var g=o.length-1;g>=0;g--)(l=o[g])&&(p=(d<3?l(p):d>3?l(n,r,p):l(n,r))||p);return d>3&&p&&Object.defineProperty(n,r,p),p},b=this&&this.__param||function(o,n){return function(r,s){n(r,s,o)}};Object.defineProperty(J,"__esModule",{value:!0}),J.Linkifier2=void 0;var a=oe(1),u=oe(0),A=oe(2),c=oe(7),h=function(o){function n(r){var s=o.call(this)||this;return s._bufferService=r,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new u.EventEmitter),s._onHideLinkUnderline=s.register(new u.EventEmitter),s.register(A.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return t(n,o),Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),n.prototype.registerLinkProvider=function(r){var s=this;return this._linkProviders.push(r),{dispose:function(){var l=s._linkProviders.indexOf(r);l!==-1&&s._linkProviders.splice(l,1)}}},n.prototype.attachToDom=function(r,s,l){var d=this;this._element=r,this._mouseService=s,this._renderService=l,this.register(c.addDisposableDomListener(this._element,"mouseleave",function(){d._isMouseOut=!0,d._clearCurrentLink()})),this.register(c.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(c.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},n.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var l=r.composedPath(),d=0;d<l.length;d++){var p=l[d];if(p.classList.contains("xterm"))break;if(p.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._onHover(s),this._lastBufferCell=s)}}},n.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},n.prototype._askForLink=function(r,s){var l=this;this._activeProviderReplies&&s||(this._activeProviderReplies=new Map,this._activeLine=r.y);var d=!1;this._linkProviders.forEach(function(p,g){var m;s?!((m=l._activeProviderReplies)===null||m===void 0)&&m.get(g)&&(d=l._checkLinkProviderResult(g,r,d)):p.provideLinks(r.y,function(v){var _,O;if(!l._isMouseOut){var F=v==null?void 0:v.map(function(T){return{link:T}});(_=l._activeProviderReplies)===null||_===void 0||_.set(g,F),d=l._checkLinkProviderResult(g,r,d),((O=l._activeProviderReplies)===null||O===void 0?void 0:O.size)===l._linkProviders.length&&l._removeIntersectingLinks(r.y,l._activeProviderReplies)}})})},n.prototype._removeIntersectingLinks=function(r,s){for(var l=new Set,d=0;d<s.size;d++){var p=s.get(d);if(p)for(var g=0;g<p.length;g++)for(var m=p[g],v=m.link.range.start.y<r?0:m.link.range.start.x,_=m.link.range.end.y>r?this._bufferService.cols:m.link.range.end.x,O=v;O<=_;O++){if(l.has(O)){p.splice(g--,1);break}l.add(O)}}},n.prototype._checkLinkProviderResult=function(r,s,l){var d,p=this;if(!this._activeProviderReplies)return l;for(var g=this._activeProviderReplies.get(r),m=!1,v=0;v<r;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(m=!0);if(!m&&g){var _=g.find(function(F){return p._linkAtPosition(F.link,s)});_&&(l=!0,this._handleNewLink(_))}if(this._activeProviderReplies.size===this._linkProviders.length&&!l)for(v=0;v<this._activeProviderReplies.size;v++){var O=(d=this._activeProviderReplies.get(v))===null||d===void 0?void 0:d.find(function(F){return p._linkAtPosition(F.link,s)});if(O){l=!0,this._handleNewLink(O);break}}return l},n.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);s&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},n.prototype._clearCurrentLink=function(r,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!s||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,A.disposeArray(this._linkCacheDisposables))},n.prototype._handleNewLink=function(r){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(r.link,l)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var d,p;return(p=(d=s._currentLink)===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(d){var p,g;!((p=s._currentLink)===null||p===void 0)&&p.state&&s._currentLink.state.decorations.pointerCursor!==d&&(s._currentLink.state.decorations.pointerCursor=d,s._currentLink.state.isHovered&&((g=s._element)===null||g===void 0||g.classList.toggle("xterm-cursor-pointer",d)))}},underline:{get:function(){var d,p;return(p=(d=s._currentLink)===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.decorations.underline},set:function(d){var p,g,m;!((p=s._currentLink)===null||p===void 0)&&p.state&&((m=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||m===void 0?void 0:m.decorations.underline)!==d&&(s._currentLink.state.decorations.underline=d,s._currentLink.state.isHovered&&s._fireUnderlineEvent(r.link,d))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(d){var p=d.start===0?0:d.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(p,d.end+1+s._bufferService.buffer.ydisp)})))}},n.prototype._linkHover=function(r,s,l){var d;!((d=this._currentLink)===null||d===void 0)&&d.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(l,s.text)},n.prototype._fireUnderlineEvent=function(r,s){var l=r.range,d=this._bufferService.buffer.ydisp,p=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-d-1,l.end.x,l.end.y-d-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(p)},n.prototype._linkLeave=function(r,s,l){var d;!((d=this._currentLink)===null||d===void 0)&&d.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(l,s.text)},n.prototype._linkAtPosition=function(r,s){var l=r.range.start.y===r.range.end.y,d=r.range.start.y<s.y,p=r.range.end.y>s.y;return(l&&r.range.start.x<=s.x&&r.range.end.x>=s.x||d&&r.range.end.x>=s.x||p&&r.range.start.x<=s.x||d&&p)&&r.range.start.y<=s.y&&r.range.end.y>=s.y},n.prototype._positionFromMouseEvent=function(r,s,l){var d=l.getCoords(r,s,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}},n.prototype._createLinkUnderlineEvent=function(r,s,l,d,p){return{x1:r,y1:s,x2:l,y2:d,cols:this._bufferService.cols,fg:p}},n=C([b(0,a.IBufferService)],n)}(A.Disposable);J.Linkifier2=h},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.CoreBrowserService=void 0;var ie=function(){function t(C){this._textarea=C}return Object.defineProperty(t.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),t}();J.CoreBrowserService=ie},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(v,_){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var T in F)F.hasOwnProperty(T)&&(O[T]=F[T])})(v,_)},function(v,_){function O(){this.constructor=v}ie(v,_),v.prototype=_===null?Object.create(_):(O.prototype=_.prototype,new O)});Object.defineProperty(J,"__esModule",{value:!0}),J.CoreTerminal=void 0;var C=oe(2),b=oe(1),a=oe(66),u=oe(67),A=oe(68),c=oe(74),h=oe(75),o=oe(0),n=oe(76),r=oe(77),s=oe(78),l=oe(80),d=oe(81),p=oe(19),g=oe(82),m=function(v){function _(O){var F=v.call(this)||this;return F._onBinary=new o.EventEmitter,F._onData=new o.EventEmitter,F._onLineFeed=new o.EventEmitter,F._onResize=new o.EventEmitter,F._onScroll=new o.EventEmitter,F._instantiationService=new a.InstantiationService,F.optionsService=new c.OptionsService(O),F._instantiationService.setService(b.IOptionsService,F.optionsService),F._bufferService=F.register(F._instantiationService.createInstance(A.BufferService)),F._instantiationService.setService(b.IBufferService,F._bufferService),F._logService=F._instantiationService.createInstance(u.LogService),F._instantiationService.setService(b.ILogService,F._logService),F._coreService=F.register(F._instantiationService.createInstance(h.CoreService,function(){return F.scrollToBottom()})),F._instantiationService.setService(b.ICoreService,F._coreService),F._coreMouseService=F._instantiationService.createInstance(n.CoreMouseService),F._instantiationService.setService(b.ICoreMouseService,F._coreMouseService),F._dirtyRowService=F._instantiationService.createInstance(r.DirtyRowService),F._instantiationService.setService(b.IDirtyRowService,F._dirtyRowService),F.unicodeService=F._instantiationService.createInstance(s.UnicodeService),F._instantiationService.setService(b.IUnicodeService,F.unicodeService),F._charsetService=F._instantiationService.createInstance(l.CharsetService),F._instantiationService.setService(b.ICharsetService,F._charsetService),F._inputHandler=new p.InputHandler(F._bufferService,F._charsetService,F._coreService,F._dirtyRowService,F._logService,F.optionsService,F._coreMouseService,F.unicodeService),F.register(o.forwardEvent(F._inputHandler.onLineFeed,F._onLineFeed)),F.register(F._inputHandler),F.register(o.forwardEvent(F._bufferService.onResize,F._onResize)),F.register(o.forwardEvent(F._coreService.onData,F._onData)),F.register(o.forwardEvent(F._coreService.onBinary,F._onBinary)),F.register(F.optionsService.onOptionChange(function(T){return F._updateOptions(T)})),F._writeBuffer=new g.WriteBuffer(function(T){return F._inputHandler.parse(T)}),F}return t(_,v),Object.defineProperty(_.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){var O;this._isDisposed||(v.prototype.dispose.call(this),(O=this._windowsMode)===null||O===void 0||O.dispose(),this._windowsMode=void 0)},_.prototype.write=function(O,F){this._writeBuffer.write(O,F)},_.prototype.writeSync=function(O){this._writeBuffer.writeSync(O)},_.prototype.resize=function(O,F){isNaN(O)||isNaN(F)||(O=Math.max(O,A.MINIMUM_COLS),F=Math.max(F,A.MINIMUM_ROWS),this._bufferService.resize(O,F))},_.prototype.scroll=function(O,F){F===void 0&&(F=!1);var T,S=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===O.fg&&T.getBg(0)===O.bg||(T=S.getBlankLine(O,F),this._cachedBlankLine=T),T.isWrapped=F;var I=S.ybase+S.scrollTop,E=S.ybase+S.scrollBottom;if(S.scrollTop===0){var M=S.lines.isFull;E===S.lines.length-1?M?S.lines.recycle().copyFrom(T):S.lines.push(T.clone()):S.lines.splice(E+1,0,T.clone()),M?this._bufferService.isUserScrolling&&(S.ydisp=Math.max(S.ydisp-1,0)):(S.ybase++,this._bufferService.isUserScrolling||S.ydisp++)}else{var N=E-I+1;S.lines.shiftElements(I+1,N-1,-1),S.lines.set(E,T.clone())}this._bufferService.isUserScrolling||(S.ydisp=S.ybase),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom),this._onScroll.fire(S.ydisp)},_.prototype.scrollLines=function(O,F){var T=this._bufferService.buffer;if(O<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else O+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var S=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+O,T.ybase),0),S!==T.ydisp&&(F||this._onScroll.fire(T.ydisp))},_.prototype.scrollPages=function(O){this.scrollLines(O*(this.rows-1))},_.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},_.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},_.prototype.scrollToLine=function(O){var F=O-this._bufferService.buffer.ydisp;F!==0&&this.scrollLines(F)},_.prototype.addEscHandler=function(O,F){return this._inputHandler.addEscHandler(O,F)},_.prototype.addDcsHandler=function(O,F){return this._inputHandler.addDcsHandler(O,F)},_.prototype.addCsiHandler=function(O,F){return this._inputHandler.addCsiHandler(O,F)},_.prototype.addOscHandler=function(O,F){return this._inputHandler.addOscHandler(O,F)},_.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},_.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},_.prototype._updateOptions=function(O){var F;switch(O){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((F=this._windowsMode)===null||F===void 0||F.dispose(),this._windowsMode=void 0)}},_.prototype._enableWindowsMode=function(){var O=this;if(!this._windowsMode){var F=[];F.push(this.onLineFeed(d.updateWindowsModeWrappedState.bind(null,this._bufferService))),F.push(this.addCsiHandler({final:"H"},function(){return d.updateWindowsModeWrappedState(O._bufferService),!1})),this._windowsMode={dispose:function(){for(var T=0,S=F;T<S.length;T++)S[T].dispose()}}}},_}(C.Disposable);J.CoreTerminal=m},function(ke,J,oe){"use strict";var ie=this&&this.__spreadArrays||function(){for(var u=0,A=0,c=arguments.length;A<c;A++)u+=arguments[A].length;var h=Array(u),o=0;for(A=0;A<c;A++)for(var n=arguments[A],r=0,s=n.length;r<s;r++,o++)h[o]=n[r];return h};Object.defineProperty(J,"__esModule",{value:!0}),J.InstantiationService=J.ServiceCollection=void 0;var t=oe(1),C=oe(14),b=function(){function u(){for(var A=[],c=0;c<arguments.length;c++)A[c]=arguments[c];this._entries=new Map;for(var h=0,o=A;h<o.length;h++){var n=o[h],r=n[0],s=n[1];this.set(r,s)}}return u.prototype.set=function(A,c){var h=this._entries.get(A);return this._entries.set(A,c),h},u.prototype.forEach=function(A){this._entries.forEach(function(c,h){return A(h,c)})},u.prototype.has=function(A){return this._entries.has(A)},u.prototype.get=function(A){return this._entries.get(A)},u}();J.ServiceCollection=b;var a=function(){function u(){this._services=new b,this._services.set(t.IInstantiationService,this)}return u.prototype.setService=function(A,c){this._services.set(A,c)},u.prototype.getService=function(A){return this._services.get(A)},u.prototype.createInstance=function(A){for(var c=[],h=1;h<arguments.length;h++)c[h-1]=arguments[h];for(var o=C.getServiceDependencies(A).sort(function(g,m){return g.index-m.index}),n=[],r=0,s=o;r<s.length;r++){var l=s[r],d=this._services.get(l.id);if(!d)throw new Error("[createInstance] "+A.name+" depends on UNKNOWN service "+l.id+".");n.push(d)}var p=o.length>0?o[0].index:c.length;if(c.length!==p)throw new Error("[createInstance] First service dependency of "+A.name+" at position "+(p+1)+" conflicts with "+c.length+" static arguments");return new(A.bind.apply(A,ie([void 0],ie(c,n))))},u}();J.InstantiationService=a},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(c,h,o,n){var r,s=arguments.length,l=s<3?h:n===null?n=Object.getOwnPropertyDescriptor(h,o):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,h,o,n);else for(var d=c.length-1;d>=0;d--)(r=c[d])&&(l=(s<3?r(l):s>3?r(h,o,l):r(h,o))||l);return s>3&&l&&Object.defineProperty(h,o,l),l},t=this&&this.__param||function(c,h){return function(o,n){h(o,n,c)}},C=this&&this.__spreadArrays||function(){for(var c=0,h=0,o=arguments.length;h<o;h++)c+=arguments[h].length;var n=Array(c),r=0;for(h=0;h<o;h++)for(var s=arguments[h],l=0,d=s.length;l<d;l++,r++)n[r]=s[l];return n};Object.defineProperty(J,"__esModule",{value:!0}),J.LogService=J.LogLevel=void 0;var b,a=oe(1);(function(c){c[c.DEBUG=0]="DEBUG",c[c.INFO=1]="INFO",c[c.WARN=2]="WARN",c[c.ERROR=3]="ERROR",c[c.OFF=4]="OFF"})(b=J.LogLevel||(J.LogLevel={}));var u={debug:b.DEBUG,info:b.INFO,warn:b.WARN,error:b.ERROR,off:b.OFF},A=function(){function c(h){var o=this;this._optionsService=h,this._updateLogLevel(),this._optionsService.onOptionChange(function(n){n==="logLevel"&&o._updateLogLevel()})}return c.prototype._updateLogLevel=function(){this._logLevel=u[this._optionsService.options.logLevel]},c.prototype._evalLazyOptionalParams=function(h){for(var o=0;o<h.length;o++)typeof h[o]=="function"&&(h[o]=h[o]())},c.prototype._log=function(h,o,n){this._evalLazyOptionalParams(n),h.call.apply(h,C([console,"xterm.js: "+o],n))},c.prototype.debug=function(h){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];this._logLevel<=b.DEBUG&&this._log(console.log,h,o)},c.prototype.info=function(h){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];this._logLevel<=b.INFO&&this._log(console.info,h,o)},c.prototype.warn=function(h){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];this._logLevel<=b.WARN&&this._log(console.warn,h,o)},c.prototype.error=function(h){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];this._logLevel<=b.ERROR&&this._log(console.error,h,o)},c=ie([t(0,a.IOptionsService)],c)}();J.LogService=A},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(o,n){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])})(o,n)},function(o,n){function r(){this.constructor=o}ie(o,n),o.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}),C=this&&this.__decorate||function(o,n,r,s){var l,d=arguments.length,p=d<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,n,r,s);else for(var g=o.length-1;g>=0;g--)(l=o[g])&&(p=(d<3?l(p):d>3?l(n,r,p):l(n,r))||p);return d>3&&p&&Object.defineProperty(n,r,p),p},b=this&&this.__param||function(o,n){return function(r,s){n(r,s,o)}};Object.defineProperty(J,"__esModule",{value:!0}),J.BufferService=J.MINIMUM_ROWS=J.MINIMUM_COLS=void 0;var a=oe(1),u=oe(69),A=oe(0),c=oe(2);J.MINIMUM_COLS=2,J.MINIMUM_ROWS=1;var h=function(o){function n(r){var s=o.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new A.EventEmitter,s.cols=Math.max(r.options.cols,J.MINIMUM_COLS),s.rows=Math.max(r.options.rows,J.MINIMUM_ROWS),s.buffers=new u.BufferSet(r,s),s}return t(n,o),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){o.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(r,s){this.cols=r,this.rows=s,this.buffers.resize(r,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:s})},n.prototype.reset=function(){this.buffers.dispose(),this.buffers=new u.BufferSet(this._optionsService,this),this.isUserScrolling=!1},n=C([b(0,a.IOptionsService)],n)}(c.Disposable);J.BufferService=h},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(u,A){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var o in h)h.hasOwnProperty(o)&&(c[o]=h[o])})(u,A)},function(u,A){function c(){this.constructor=u}ie(u,A),u.prototype=A===null?Object.create(A):(c.prototype=A.prototype,new c)});Object.defineProperty(J,"__esModule",{value:!0}),J.BufferSet=void 0;var C=oe(70),b=oe(0),a=function(u){function A(c,h){var o=u.call(this)||this;return o._onBufferActivate=o.register(new b.EventEmitter),o._normal=new C.Buffer(!0,c,h),o._normal.fillViewportRows(),o._alt=new C.Buffer(!1,c,h),o._activeBuffer=o._normal,o.setupTabStops(),o}return t(A,u),Object.defineProperty(A.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),A.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},A.prototype.activateAltBuffer=function(c){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(c),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},A.prototype.resize=function(c,h){this._normal.resize(c,h),this._alt.resize(c,h)},A.prototype.setupTabStops=function(c){this._normal.setupTabStops(c),this._alt.setupTabStops(c)},A}(oe(2).Disposable);J.BufferSet=a},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BufferStringIterator=J.Buffer=J.MAX_BUFFER_SIZE=void 0;var ie=oe(71),t=oe(16),C=oe(4),b=oe(3),a=oe(72),u=oe(73),A=oe(20),c=oe(6);J.MAX_BUFFER_SIZE=4294967295;var h=function(){function n(r,s,l){this._hasScrollback=r,this._optionsService=s,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=t.DEFAULT_ATTR_DATA.clone(),this.savedCharset=A.DEFAULT_CHARSET,this.markers=[],this._nullCell=C.CellData.fromCharData([0,b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE]),this._whitespaceCell=C.CellData.fromCharData([0,b.WHITESPACE_CELL_CHAR,b.WHITESPACE_CELL_WIDTH,b.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return n.prototype.getNullCell=function(r){return r?(this._nullCell.fg=r.fg,this._nullCell.bg=r.bg,this._nullCell.extended=r.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new c.ExtendedAttrs),this._nullCell},n.prototype.getWhitespaceCell=function(r){return r?(this._whitespaceCell.fg=r.fg,this._whitespaceCell.bg=r.bg,this._whitespaceCell.extended=r.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new c.ExtendedAttrs),this._whitespaceCell},n.prototype.getBlankLine=function(r,s){return new t.BufferLine(this._bufferService.cols,this.getNullCell(r),s)},Object.defineProperty(n.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCursorInViewport",{get:function(){var r=this.ybase+this.y-this.ydisp;return r>=0&&r<this._rows},enumerable:!1,configurable:!0}),n.prototype._getCorrectBufferLength=function(r){if(!this._hasScrollback)return r;var s=r+this._optionsService.options.scrollback;return s>J.MAX_BUFFER_SIZE?J.MAX_BUFFER_SIZE:s},n.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=t.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(r))}},n.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},n.prototype.resize=function(r,s){var l=this.getNullCell(t.DEFAULT_ATTR_DATA),d=this._getCorrectBufferLength(s);if(d>this.lines.maxLength&&(this.lines.maxLength=d),this.lines.length>0){if(this._cols<r)for(var p=0;p<this.lines.length;p++)this.lines.get(p).resize(r,l);var g=0;if(this._rows<s)for(var m=this._rows;m<s;m++)this.lines.length<s+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new t.BufferLine(r,l)):this.ybase>0&&this.lines.length<=this.ybase+this.y+g+1?(this.ybase--,g++,this.ydisp>0&&this.ydisp--):this.lines.push(new t.BufferLine(r,l)));else for(m=this._rows;m>s;m--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(d<this.lines.maxLength){var v=this.lines.length-d;v>0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,0)),this.lines.maxLength=d}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),g&&(this.y+=g),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(r,s),this._cols>r))for(p=0;p<this.lines.length;p++)this.lines.get(p).resize(r,l);this._cols=r,this._rows=s},Object.defineProperty(n.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),n.prototype._reflow=function(r,s){this._cols!==r&&(r>this._cols?this._reflowLarger(r,s):this._reflowSmaller(r,s))},n.prototype._reflowLarger=function(r,s){var l=a.reflowLargerGetLinesToRemove(this.lines,this._cols,r,this.ybase+this.y,this.getNullCell(t.DEFAULT_ATTR_DATA));if(l.length>0){var d=a.reflowLargerCreateNewLayout(this.lines,l);a.reflowLargerApplyNewLayout(this.lines,d.layout),this._reflowLargerAdjustViewport(r,s,d.countRemoved)}},n.prototype._reflowLargerAdjustViewport=function(r,s,l){for(var d=this.getNullCell(t.DEFAULT_ATTR_DATA),p=l;p-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<s&&this.lines.push(new t.BufferLine(r,d))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-l,0)},n.prototype._reflowSmaller=function(r,s){for(var l=this.getNullCell(t.DEFAULT_ATTR_DATA),d=[],p=0,g=this.lines.length-1;g>=0;g--){var m=this.lines.get(g);if(!(!m||!m.isWrapped&&m.getTrimmedLength()<=r)){for(var v=[m];m.isWrapped&&g>0;)m=this.lines.get(--g),v.unshift(m);var _=this.ybase+this.y;if(!(_>=g&&_<g+v.length)){var O=v[v.length-1].getTrimmedLength(),F=a.reflowSmallerGetNewLineLengths(v,this._cols,r),T=F.length-v.length,S=void 0;S=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var I=[],E=0;E<T;E++){var M=this.getBlankLine(t.DEFAULT_ATTR_DATA,!0);I.push(M)}I.length>0&&(d.push({start:g+v.length+p,newLines:I}),p+=I.length),v.push.apply(v,I);var N=F.length-1,V=F[N];V===0&&(V=F[--N]);for(var H=v.length-T-1,X=O;H>=0;){var G=Math.min(X,V);if(v[N].copyCellsFrom(v[H],X-G,V-G,G,!0),(V-=G)===0&&(V=F[--N]),(X-=G)===0){H--;var ee=Math.max(H,0);X=a.getWrappedLineTrimmedLength(v,ee,this._cols)}}for(E=0;E<v.length;E++)F[E]<r&&v[E].setCell(F[E],l);for(var Z=T-S;Z-- >0;)this.ybase===0?this.y<s-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+p)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+s-1)}}}if(d.length>0){var Ae=[],U=[];for(E=0;E<this.lines.length;E++)U.push(this.lines.get(E));var W=this.lines.length,le=W-1,he=0,ue=d[he];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+p);var pe=0;for(E=Math.min(this.lines.maxLength-1,W+p-1);E>=0;E--)if(ue&&ue.start>le+pe){for(var fe=ue.newLines.length-1;fe>=0;fe--)this.lines.set(E--,ue.newLines[fe]);E++,Ae.push({index:le+1,amount:ue.newLines.length}),pe+=ue.newLines.length,ue=d[++he]}else this.lines.set(E,U[le--]);var ce=0;for(E=Ae.length-1;E>=0;E--)Ae[E].index+=ce,this.lines.onInsertEmitter.fire(Ae[E]),ce+=Ae[E].amount;var be=Math.max(0,W+p-this.lines.maxLength);be>0&&this.lines.onTrimEmitter.fire(be)}},n.prototype.stringIndexToBufferIndex=function(r,s,l){for(l===void 0&&(l=!1);s;){var d=this.lines.get(r);if(!d)return[-1,-1];for(var p=l?d.getTrimmedLength():d.length,g=0;g<p;++g)if(d.get(g)[b.CHAR_DATA_WIDTH_INDEX]&&(s-=d.get(g)[b.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,g];r++}return[r,0]},n.prototype.translateBufferLineToString=function(r,s,l,d){l===void 0&&(l=0);var p=this.lines.get(r);return p?p.translateToString(s,l,d):""},n.prototype.getWrappedRangeForLine=function(r){for(var s=r,l=r;s>0&&this.lines.get(s).isWrapped;)s--;for(;l+1<this.lines.length&&this.lines.get(l+1).isWrapped;)l++;return{first:s,last:l}},n.prototype.setupTabStops=function(r){for(r!=null?this.tabs[r]||(r=this.prevStop(r)):(this.tabs={},r=0);r<this._cols;r+=this._optionsService.options.tabStopWidth)this.tabs[r]=!0},n.prototype.prevStop=function(r){for(r==null&&(r=this.x);!this.tabs[--r]&&r>0;);return r>=this._cols?this._cols-1:r<0?0:r},n.prototype.nextStop=function(r){for(r==null&&(r=this.x);!this.tabs[++r]&&r<this._cols;);return r>=this._cols?this._cols-1:r<0?0:r},n.prototype.addMarker=function(r){var s=this,l=new u.Marker(r);return this.markers.push(l),l.register(this.lines.onTrim(function(d){l.line-=d,l.line<0&&l.dispose()})),l.register(this.lines.onInsert(function(d){l.line>=d.index&&(l.line+=d.amount)})),l.register(this.lines.onDelete(function(d){l.line>=d.index&&l.line<d.index+d.amount&&l.dispose(),l.line>d.index&&(l.line-=d.amount)})),l.register(l.onDispose(function(){return s._removeMarker(l)})),l},n.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},n.prototype.iterator=function(r,s,l,d,p){return new o(this,r,s,l,d,p)},n}();J.Buffer=h;var o=function(){function n(r,s,l,d,p,g){l===void 0&&(l=0),d===void 0&&(d=r.lines.length),p===void 0&&(p=0),g===void 0&&(g=0),this._buffer=r,this._trimRight=s,this._startIndex=l,this._endIndex=d,this._startOverscan=p,this._endOverscan=g,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return n.prototype.hasNext=function(){return this._current<this._endIndex},n.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var s="",l=r.first;l<=r.last;++l)s+=this._buffer.translateBufferLineToString(l,this._trimRight);return this._current=r.last+1,{range:r,content:s}},n}();J.BufferStringIterator=o},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.CircularList=void 0;var ie=oe(0),t=function(){function C(b){this._maxLength=b,this.onDeleteEmitter=new ie.EventEmitter,this.onInsertEmitter=new ie.EventEmitter,this.onTrimEmitter=new ie.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(C.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"maxLength",{get:function(){return this._maxLength},set:function(b){if(this._maxLength!==b){for(var a=new Array(b),u=0;u<Math.min(b,this.length);u++)a[u]=this._array[this._getCyclicIndex(u)];this._array=a,this._maxLength=b,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"length",{get:function(){return this._length},set:function(b){if(b>this._length)for(var a=this._length;a<b;a++)this._array[a]=void 0;this._length=b},enumerable:!1,configurable:!0}),C.prototype.get=function(b){return this._array[this._getCyclicIndex(b)]},C.prototype.set=function(b,a){this._array[this._getCyclicIndex(b)]=a},C.prototype.push=function(b){this._array[this._getCyclicIndex(this._length)]=b,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},C.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(C.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),C.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},C.prototype.splice=function(b,a){for(var u=[],A=2;A<arguments.length;A++)u[A-2]=arguments[A];if(a){for(var c=b;c<this._length-a;c++)this._array[this._getCyclicIndex(c)]=this._array[this._getCyclicIndex(c+a)];this._length-=a}for(c=this._length-1;c>=b;c--)this._array[this._getCyclicIndex(c+u.length)]=this._array[this._getCyclicIndex(c)];for(c=0;c<u.length;c++)this._array[this._getCyclicIndex(b+c)]=u[c];if(this._length+u.length>this._maxLength){var h=this._length+u.length-this._maxLength;this._startIndex+=h,this._length=this._maxLength,this.onTrimEmitter.fire(h)}else this._length+=u.length},C.prototype.trimStart=function(b){b>this._length&&(b=this._length),this._startIndex+=b,this._length-=b,this.onTrimEmitter.fire(b)},C.prototype.shiftElements=function(b,a,u){if(!(a<=0)){if(b<0||b>=this._length)throw new Error("start argument out of range");if(b+u<0)throw new Error("Cannot shift elements in list beyond index 0");if(u>0){for(var A=a-1;A>=0;A--)this.set(b+A+u,this.get(b+A));var c=b+a+u-this._length;if(c>0)for(this._length+=c;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(A=0;A<a;A++)this.set(b+A+u,this.get(b+A))}},C.prototype._getCyclicIndex=function(b){return(this._startIndex+b)%this._maxLength},C}();J.CircularList=t},function(ke,J,oe){"use strict";function ie(t,C,b){if(C===t.length-1)return t[C].getTrimmedLength();var a=!t[C].hasContent(b-1)&&t[C].getWidth(b-1)===1,u=t[C+1].getWidth(0)===2;return a&&u?b-1:b}Object.defineProperty(J,"__esModule",{value:!0}),J.getWrappedLineTrimmedLength=J.reflowSmallerGetNewLineLengths=J.reflowLargerApplyNewLayout=J.reflowLargerCreateNewLayout=J.reflowLargerGetLinesToRemove=void 0,J.reflowLargerGetLinesToRemove=function(t,C,b,a,u){for(var A=[],c=0;c<t.length-1;c++){var h=c,o=t.get(++h);if(o.isWrapped){for(var n=[t.get(c)];h<t.length&&o.isWrapped;)n.push(o),o=t.get(++h);if(a>=c&&a<h)c+=n.length-1;else{for(var r=0,s=ie(n,r,C),l=1,d=0;l<n.length;){var p=ie(n,l,C),g=p-d,m=b-s,v=Math.min(g,m);n[r].copyCellsFrom(n[l],d,s,v,!1),(s+=v)===b&&(r++,s=0),(d+=v)===p&&(l++,d=0),s===0&&r!==0&&n[r-1].getWidth(b-1)===2&&(n[r].copyCellsFrom(n[r-1],b-1,s++,1,!1),n[r-1].setCell(b-1,u))}n[r].replaceCells(s,b,u);for(var _=0,O=n.length-1;O>0&&(O>r||n[O].getTrimmedLength()===0);O--)_++;_>0&&(A.push(c+n.length-_),A.push(_)),c+=n.length-1}}}return A},J.reflowLargerCreateNewLayout=function(t,C){for(var b=[],a=0,u=C[a],A=0,c=0;c<t.length;c++)if(u===c){var h=C[++a];t.onDeleteEmitter.fire({index:c-A,amount:h}),c+=h-1,A+=h,u=C[++a]}else b.push(c);return{layout:b,countRemoved:A}},J.reflowLargerApplyNewLayout=function(t,C){for(var b=[],a=0;a<C.length;a++)b.push(t.get(C[a]));for(a=0;a<b.length;a++)t.set(a,b[a]);t.length=C.length},J.reflowSmallerGetNewLineLengths=function(t,C,b){for(var a=[],u=t.map(function(s,l){return ie(t,l,C)}).reduce(function(s,l){return s+l}),A=0,c=0,h=0;h<u;){if(u-h<b){a.push(u-h);break}A+=b;var o=ie(t,c,C);A>o&&(A-=o,c++);var n=t[c].getWidth(A-1)===2;n&&A--;var r=n?b-1:b;a.push(r),h+=r}return a},J.getWrappedLineTrimmedLength=ie},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(a,u){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,c){A.__proto__=c}||function(A,c){for(var h in c)c.hasOwnProperty(h)&&(A[h]=c[h])})(a,u)},function(a,u){function A(){this.constructor=a}ie(a,u),a.prototype=u===null?Object.create(u):(A.prototype=u.prototype,new A)});Object.defineProperty(J,"__esModule",{value:!0}),J.Marker=void 0;var C=oe(0),b=function(a){function u(A){var c=a.call(this)||this;return c.line=A,c._id=u._nextId++,c.isDisposed=!1,c._onDispose=new C.EventEmitter,c}return t(u,a),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},u._nextId=1,u}(oe(2).Disposable);J.Marker=b},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.OptionsService=J.DEFAULT_OPTIONS=J.DEFAULT_BELL_SOUND=void 0;var ie=oe(0),t=oe(11),C=oe(33);J.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",J.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:J.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:t.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var b=["cols","rows"],a=function(){function u(A){this._onOptionChange=new ie.EventEmitter,this.options=C.clone(J.DEFAULT_OPTIONS);for(var c=0,h=Object.keys(A);c<h.length;c++){var o=h[c];if(o in this.options){var n=A[o];this.options[o]=n}}}return Object.defineProperty(u.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),u.prototype.setOption=function(A,c){if(!(A in J.DEFAULT_OPTIONS))throw new Error('No option with key "'+A+'"');if(b.indexOf(A)!==-1)throw new Error('Option "'+A+'" can only be set in the constructor');this.options[A]!==c&&(c=this._sanitizeAndValidateOption(A,c),this.options[A]!==c&&(this.options[A]=c,this._onOptionChange.fire(A)))},u.prototype._sanitizeAndValidateOption=function(A,c){switch(A){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":c||(c=J.DEFAULT_OPTIONS[A]);break;case"cursorWidth":c=Math.floor(c);case"lineHeight":case"tabStopWidth":if(c<1)throw new Error(A+" cannot be less than 1, value: "+c);break;case"minimumContrastRatio":c=Math.max(1,Math.min(21,Math.round(10*c)/10));break;case"scrollback":if((c=Math.min(c,4294967295))<0)throw new Error(A+" cannot be less than 0, value: "+c);break;case"fastScrollSensitivity":case"scrollSensitivity":if(c<=0)throw new Error(A+" cannot be less than or equal to 0, value: "+c)}return c},u.prototype.getOption=function(A){if(!(A in J.DEFAULT_OPTIONS))throw new Error('No option with key "'+A+'"');return this.options[A]},u}();J.OptionsService=a},function(ke,J,oe){"use strict";var ie,t=this&&this.__extends||(ie=function(r,s){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var p in d)d.hasOwnProperty(p)&&(l[p]=d[p])})(r,s)},function(r,s){function l(){this.constructor=r}ie(r,s),r.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}),C=this&&this.__decorate||function(r,s,l,d){var p,g=arguments.length,m=g<3?s:d===null?d=Object.getOwnPropertyDescriptor(s,l):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(r,s,l,d);else for(var v=r.length-1;v>=0;v--)(p=r[v])&&(m=(g<3?p(m):g>3?p(s,l,m):p(s,l))||m);return g>3&&m&&Object.defineProperty(s,l,m),m},b=this&&this.__param||function(r,s){return function(l,d){s(l,d,r)}};Object.defineProperty(J,"__esModule",{value:!0}),J.CoreService=void 0;var a=oe(1),u=oe(0),A=oe(33),c=oe(2),h=Object.freeze({insertMode:!1}),o=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),n=function(r){function s(l,d,p,g){var m=r.call(this)||this;return m._bufferService=d,m._logService=p,m._optionsService=g,m.isCursorInitialized=!1,m.isCursorHidden=!1,m._onData=m.register(new u.EventEmitter),m._onUserInput=m.register(new u.EventEmitter),m._onBinary=m.register(new u.EventEmitter),m._scrollToBottom=l,m.register({dispose:function(){return m._scrollToBottom=void 0}}),m.modes=A.clone(h),m.decPrivateModes=A.clone(o),m}return t(s,r),Object.defineProperty(s.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.modes=A.clone(h),this.decPrivateModes=A.clone(o)},s.prototype.triggerDataEvent=function(l,d){if(d===void 0&&(d=!1),!this._optionsService.options.disableStdin){var p=this._bufferService.buffer;p.ybase!==p.ydisp&&this._scrollToBottom(),d&&this._onUserInput.fire(),this._logService.debug('sending data "'+l+'"',function(){return l.split("").map(function(g){return g.charCodeAt(0)})}),this._onData.fire(l)}},s.prototype.triggerBinaryEvent=function(l){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+l+'"',function(){return l.split("").map(function(d){return d.charCodeAt(0)})}),this._onBinary.fire(l))},s=C([b(1,a.IBufferService),b(2,a.ILogService),b(3,a.IOptionsService)],s)}(c.Disposable);J.CoreService=n},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(o,n,r,s){var l,d=arguments.length,p=d<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,n,r,s);else for(var g=o.length-1;g>=0;g--)(l=o[g])&&(p=(d<3?l(p):d>3?l(n,r,p):l(n,r))||p);return d>3&&p&&Object.defineProperty(n,r,p),p},t=this&&this.__param||function(o,n){return function(r,s){n(r,s,o)}};Object.defineProperty(J,"__esModule",{value:!0}),J.CoreMouseService=void 0;var C=oe(1),b=oe(0),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(o){return o.button!==4&&o.action===1&&(o.ctrl=!1,o.alt=!1,o.shift=!1,!0)}},VT200:{events:19,restrict:function(o){return o.action!==32}},DRAG:{events:23,restrict:function(o){return o.action!==32||o.button!==3}},ANY:{events:31,restrict:function(o){return!0}}};function u(o,n){var r=(o.ctrl?16:0)|(o.shift?4:0)|(o.alt?8:0);return o.button===4?(r|=64,r|=o.action):(r|=3&o.button,4&o.button&&(r|=64),8&o.button&&(r|=128),o.action===32?r|=32:o.action!==0||n||(r|=3)),r}var A=String.fromCharCode,c={DEFAULT:function(o){var n=[u(o,!1)+32,o.col+32,o.row+32];return n[0]>255||n[1]>255||n[2]>255?"":"\x1B[M"+A(n[0])+A(n[1])+A(n[2])},SGR:function(o){var n=o.action===0&&o.button!==4?"m":"M";return"\x1B[<"+u(o,!0)+";"+o.col+";"+o.row+n}},h=function(){function o(n,r){this._bufferService=n,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new b.EventEmitter,this._lastEvent=null;for(var s=0,l=Object.keys(a);s<l.length;s++){var d=l[s];this.addProtocol(d,a[d])}for(var p=0,g=Object.keys(c);p<g.length;p++){var m=g[p];this.addEncoding(m,c[m])}this.reset()}return o.prototype.addProtocol=function(n,r){this._protocols[n]=r},o.prototype.addEncoding=function(n,r){this._encodings[n]=r},Object.defineProperty(o.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(n){if(!this._protocols[n])throw new Error('unknown protocol "'+n+'"');this._activeProtocol=n,this._onProtocolChange.fire(this._protocols[n].events)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(n){if(!this._encodings[n])throw new Error('unknown encoding "'+n+'"');this._activeEncoding=n},enumerable:!1,configurable:!0}),o.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(o.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),o.prototype.triggerMouseEvent=function(n){if(n.col<0||n.col>=this._bufferService.cols||n.row<0||n.row>=this._bufferService.rows||n.button===4&&n.action===32||n.button===3&&n.action!==32||n.button!==4&&(n.action===2||n.action===3)||(n.col++,n.row++,n.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,n))||!this._protocols[this._activeProtocol].restrict(n))return!1;var r=this._encodings[this._activeEncoding](n);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!0)),this._lastEvent=n,!0},o.prototype.explainEvents=function(n){return{down:!!(1&n),up:!!(2&n),drag:!!(4&n),move:!!(8&n),wheel:!!(16&n)}},o.prototype._compareEvents=function(n,r){return n.col===r.col&&n.row===r.row&&n.button===r.button&&n.action===r.action&&n.ctrl===r.ctrl&&n.alt===r.alt&&n.shift===r.shift},o=ie([t(0,C.IBufferService),t(1,C.ICoreService)],o)}();J.CoreMouseService=h},function(ke,J,oe){"use strict";var ie=this&&this.__decorate||function(a,u,A,c){var h,o=arguments.length,n=o<3?u:c===null?c=Object.getOwnPropertyDescriptor(u,A):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,u,A,c);else for(var r=a.length-1;r>=0;r--)(h=a[r])&&(n=(o<3?h(n):o>3?h(u,A,n):h(u,A))||n);return o>3&&n&&Object.defineProperty(u,A,n),n},t=this&&this.__param||function(a,u){return function(A,c){u(A,c,a)}};Object.defineProperty(J,"__esModule",{value:!0}),J.DirtyRowService=void 0;var C=oe(1),b=function(){function a(u){this._bufferService=u,this.clearRange()}return Object.defineProperty(a.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),a.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},a.prototype.markDirty=function(u){u<this._start?this._start=u:u>this._end&&(this._end=u)},a.prototype.markRangeDirty=function(u,A){if(u>A){var c=u;u=A,A=c}u<this._start&&(this._start=u),A>this._end&&(this._end=A)},a.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},a=ie([t(0,C.IBufferService)],a)}();J.DirtyRowService=b},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.UnicodeService=void 0;var ie=oe(0),t=oe(79),C=function(){function b(){this._providers=Object.create(null),this._active="",this._onChange=new ie.EventEmitter;var a=new t.UnicodeV6;this.register(a),this._active=a.version,this._activeProvider=a}return Object.defineProperty(b.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeVersion",{get:function(){return this._active},set:function(a){if(!this._providers[a])throw new Error('unknown Unicode version "'+a+'"');this._active=a,this._activeProvider=this._providers[a],this._onChange.fire(a)},enumerable:!1,configurable:!0}),b.prototype.register=function(a){this._providers[a.version]=a},b.prototype.wcwidth=function(a){return this._activeProvider.wcwidth(a)},b.prototype.getStringCellWidth=function(a){for(var u=0,A=a.length,c=0;c<A;++c){var h=a.charCodeAt(c);if(55296<=h&&h<=56319){if(++c>=A)return u+this.wcwidth(h);var o=a.charCodeAt(c);56320<=o&&o<=57343?h=1024*(h-55296)+o-56320+65536:u+=this.wcwidth(o)}u+=this.wcwidth(h)}return u},b}();J.UnicodeService=C},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.UnicodeV6=void 0;var ie,t=oe(15),C=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],b=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],a=function(){function u(){if(this.version="6",!ie){ie=new Uint8Array(65536),t.fill(ie,1),ie[0]=0,t.fill(ie,0,1,32),t.fill(ie,0,127,160),t.fill(ie,2,4352,4448),ie[9001]=2,ie[9002]=2,t.fill(ie,2,11904,42192),ie[12351]=1,t.fill(ie,2,44032,55204),t.fill(ie,2,63744,64256),t.fill(ie,2,65040,65050),t.fill(ie,2,65072,65136),t.fill(ie,2,65280,65377),t.fill(ie,2,65504,65511);for(var A=0;A<C.length;++A)t.fill(ie,0,C[A][0],C[A][1]+1)}}return u.prototype.wcwidth=function(A){return A<32?0:A<127?1:A<65536?ie[A]:function(c,h){var o,n=0,r=h.length-1;if(c<h[0][0]||c>h[r][1])return!1;for(;r>=n;)if(c>h[o=n+r>>1][1])n=o+1;else{if(!(c<h[o][0]))return!0;r=o-1}return!1}(A,b)?0:A>=131072&&A<=196605||A>=196608&&A<=262141?2:1},u}();J.UnicodeV6=a},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.CharsetService=void 0;var ie=function(){function t(){this.glevel=0,this._charsets=[]}return t.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},t.prototype.setgLevel=function(C){this.glevel=C,this.charset=this._charsets[C]},t.prototype.setgCharset=function(C,b){this._charsets[C]=b,this.glevel===C&&(this.charset=b)},t}();J.CharsetService=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.updateWindowsModeWrappedState=void 0;var ie=oe(3);J.updateWindowsModeWrappedState=function(t){var C=t.buffer.lines.get(t.buffer.ybase+t.buffer.y-1),b=C==null?void 0:C.get(t.cols-1),a=t.buffer.lines.get(t.buffer.ybase+t.buffer.y);a&&b&&(a.isWrapped=b[ie.CHAR_DATA_CODE_INDEX]!==ie.NULL_CELL_CODE&&b[ie.CHAR_DATA_CODE_INDEX]!==ie.WHITESPACE_CELL_CODE)}},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.WriteBuffer=void 0;var ie=function(){function t(C){this._action=C,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return t.prototype.writeSync=function(C){if(this._writeBuffer.length){for(var b=this._bufferOffset;b<this._writeBuffer.length;++b){var a=this._writeBuffer[b],u=this._callbacks[b];this._action(a),u&&u()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(C)},t.prototype.write=function(C,b){var a=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return a._innerWrite()})),this._pendingData+=C.length,this._writeBuffer.push(C),this._callbacks.push(b)},t.prototype._innerWrite=function(){for(var C=this,b=Date.now();this._writeBuffer.length>this._bufferOffset;){var a=this._writeBuffer[this._bufferOffset],u=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(a),this._pendingData-=a.length,u&&u(),Date.now()-b>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return C._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},t}();J.WriteBuffer=ie},function(ke,J,oe){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.AddonManager=void 0;var ie=function(){function t(){this._addons=[]}return t.prototype.dispose=function(){for(var C=this._addons.length-1;C>=0;C--)this._addons[C].instance.dispose()},t.prototype.loadAddon=function(C,b){var a=this,u={instance:b,dispose:b.dispose,isDisposed:!1};this._addons.push(u),b.dispose=function(){return a._wrappedAddonDispose(u)},b.activate(C)},t.prototype._wrappedAddonDispose=function(C){if(!C.isDisposed){for(var b=-1,a=0;a<this._addons.length;a++)if(this._addons[a]===C){b=a;break}if(b===-1)throw new Error("Could not dispose an addon that has not been loaded");C.isDisposed=!0,C.dispose.apply(C.instance),this._addons.splice(b,1)}},t}();J.AddonManager=ie}])})}}]);
|
|
|
}()); |